11# generated by datamodel-codegen:
22# filename: QuantConnect-Platform-2.0.0.yaml
3- # timestamp: 2025-07-02T19:56:57 +00:00
3+ # timestamp: 2025-07-03T20:09:22 +00:00
44
55from __future__ import annotations
66from pydantic import RootModel , ConfigDict
@@ -341,7 +341,7 @@ class Permission(Enum):
341341class Collaborator (BaseModel ):
342342 uid : Annotated [Optional [int ], Field (description = 'User ID.' )] = None
343343 liveControl : Annotated [
344- Optional [bool ], Field (description = 'Indicate if the user have live control.' )
344+ Optional [bool ], Field (description = 'Indicate if the user has live control.' )
345345 ] = None
346346 permission : Annotated [
347347 Optional [Permission ], Field (description = 'The permission this user is given.' )
@@ -376,28 +376,24 @@ class CreateCollaboratorRequest(BaseModel):
376376 projectId : Annotated [
377377 int ,
378378 Field (
379- description = 'Project Id we want to add the collaborator to.' ,
379+ description = 'Id of the project to add the collaborator to.' ,
380380 examples = [23456789 ],
381381 ),
382382 ]
383383 collaboratorUserId : Annotated [
384384 str ,
385- Field (
386- description = 'User Id of the collaborator we want to add.' ,
387- examples = ['mia-ai' ],
388- ),
385+ Field (description = 'User Id of the collaborator to add.' , examples = ['mia-ai' ]),
389386 ]
390387 collaborationLiveControl : Annotated [
391- Optional [ bool ] ,
388+ bool ,
392389 Field (
393390 description = 'Gives the right to deploy and stop live algorithms.' ,
394391 examples = [True ],
395392 ),
396- ] = None
393+ ]
397394 collaborationWrite : Annotated [
398- Optional [bool ],
399- Field (description = 'Gives the right to edit the code.' , examples = [False ]),
400- ] = None
395+ bool , Field (description = 'Gives the right to edit the code.' , examples = [False ])
396+ ]
401397
402398
403399class CreateCollaboratorResponse (BaseModel ):
@@ -413,15 +409,16 @@ class ReadCollaboratorsRequest(BaseModel):
413409 projectId : Annotated [
414410 int ,
415411 Field (
416- description = 'Id of the project from which to read one or multiple collaborators.' ,
412+ description = 'Id of the project from which to read the collaborators.' ,
417413 examples = [23456789 ],
418414 ),
419415 ]
420416
421417
422418class ReadCollaboratorsResponse (BaseModel ):
423419 collaborators : Annotated [
424- Optional [List [Collaborator ]], Field (description = 'List of collaborators.' )
420+ Optional [List [Collaborator ]],
421+ Field (description = 'List of collaborators on the project.' ),
425422 ] = None
426423 userLiveControl : Annotated [
427424 Optional [bool ],
@@ -441,28 +438,25 @@ class UpdateCollaboratorRequest(BaseModel):
441438 projectId : Annotated [
442439 int ,
443440 Field (
444- description = 'Project Id we want to add the collaborator to.' ,
445- examples = [23456789 ],
441+ description = 'Id of the project the collaborator is on.' , examples = [23456789 ]
446442 ),
447443 ]
448444 collaboratorUserId : Annotated [
449445 str ,
450446 Field (
451- description = 'User Id of the collaborator we want to add.' ,
452- examples = ['mia-ai' ],
447+ description = 'User Id of the collaborator to update.' , examples = ['mia-ai' ]
453448 ),
454449 ]
455450 liveControl : Annotated [
456- Optional [ bool ] ,
451+ bool ,
457452 Field (
458453 description = 'Gives the right to deploy and stop live algorithms.' ,
459454 examples = [True ],
460455 ),
461- ] = None
456+ ]
462457 write : Annotated [
463- Optional [bool ],
464- Field (description = 'Gives the right to edit the code.' , examples = [True ]),
465- ] = None
458+ bool , Field (description = 'Gives the right to edit the code.' , examples = [True ])
459+ ]
466460
467461
468462class UpdateCollaboratorResponse (BaseModel ):
@@ -478,15 +472,14 @@ class DeleteCollaboratorRequest(BaseModel):
478472 projectId : Annotated [
479473 int ,
480474 Field (
481- description = 'Project Id we want to remove the collaborator from.' ,
475+ description = 'Id of the project to remove the collaborator from.' ,
482476 examples = [23456789 ],
483477 ),
484478 ]
485- collaboratorUserId : Annotated [
479+ collaboratorId : Annotated [
486480 str ,
487481 Field (
488- description = 'User Id of the collaborator we want to remove.' ,
489- examples = ['mia-ai' ],
482+ description = 'User Id of the collaborator to remove.' , examples = ['mia-ai' ]
490483 ),
491484 ]
492485
0 commit comments