Skip to content

Commit 667244e

Browse files
chore: FIT-982: sync SDK and clean up public docstrings (#671)
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com>
1 parent a2d3df4 commit 667244e

26 files changed

Lines changed: 332 additions & 72 deletions

.mock/definition/__package__.yml

Lines changed: 70 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -401,10 +401,10 @@ types:
401401
inline: true
402402
Annotation:
403403
docs: |-
404-
A ModelSerializer that takes additional arguments for
405-
"fields", "omit" and "expand" in order to
406-
control which fields are displayed, and whether to replace simple
407-
values with complex, nested serializations
404+
Annotation Serializer with FSM state support.
405+
406+
Note: The 'state' field will be populated from the queryset annotation
407+
if present, preventing N+1 queries. Use .with_state() on your queryset.
408408
properties:
409409
bulk_created:
410410
type: optional<boolean>
@@ -466,6 +466,7 @@ types:
466466
result:
467467
type: optional<list<map<string, unknown>>>
468468
docs: List of annotation results for the task
469+
state: string
469470
task:
470471
type: optional<integer>
471472
docs: Corresponding task for this annotation
@@ -581,10 +582,10 @@ types:
581582
inline: true
582583
AnnotationRequest:
583584
docs: |-
584-
A ModelSerializer that takes additional arguments for
585-
"fields", "omit" and "expand" in order to
586-
control which fields are displayed, and whether to replace simple
587-
values with complex, nested serializations
585+
Annotation Serializer with FSM state support.
586+
587+
Note: The 'state' field will be populated from the queryset annotation
588+
if present, preventing N+1 queries. Use .with_state() on your queryset.
588589
properties:
589590
bulk_created:
590591
type: optional<boolean>
@@ -651,10 +652,14 @@ types:
651652
openapi: openapi/openapi.yaml
652653
AnnotationReview:
653654
docs: |-
654-
A ModelSerializer that takes additional arguments for
655-
"fields", "omit" and "expand" in order to
656-
control which fields are displayed, and whether to replace simple
657-
values with complex, nested serializations
655+
AnnotationReview Serializer with FSM state support.
656+
657+
Note: The 'state' field will be populated from the queryset annotation
658+
if present, preventing N+1 queries. Use .with_state() on your queryset.
659+
660+
The state field display is controlled by both:
661+
- fflag_feat_fit_568_finite_state_management (FSM background calculations)
662+
- fflag_feat_fit_710_fsm_state_fields (state field display in APIs)
658663
properties:
659664
accepted:
660665
type: optional<boolean>
@@ -679,14 +684,19 @@ types:
679684
remove_from_queue: optional<boolean>
680685
result: optional<unknown>
681686
started_at: optional<datetime>
687+
state: string
682688
source:
683689
openapi: openapi/openapi.yaml
684690
AnnotationReviewRequest:
685691
docs: |-
686-
A ModelSerializer that takes additional arguments for
687-
"fields", "omit" and "expand" in order to
688-
control which fields are displayed, and whether to replace simple
689-
values with complex, nested serializations
692+
AnnotationReview Serializer with FSM state support.
693+
694+
Note: The 'state' field will be populated from the queryset annotation
695+
if present, preventing N+1 queries. Use .with_state() on your queryset.
696+
697+
The state field display is controlled by both:
698+
- fflag_feat_fit_568_finite_state_management (FSM background calculations)
699+
- fflag_feat_fit_710_fsm_state_fields (state field display in APIs)
690700
properties:
691701
accepted:
692702
type: optional<boolean>
@@ -1592,6 +1602,15 @@ types:
15921602
source:
15931603
openapi: openapi/openapi.yaml
15941604
Comment:
1605+
docs: |-
1606+
Comment Serializer with FSM state support.
1607+
1608+
Note: The 'state' field will be populated from the queryset annotation
1609+
if present, preventing N+1 queries. Use .with_state() on your queryset.
1610+
1611+
The state field display is controlled by both:
1612+
- fflag_feat_fit_568_finite_state_management (FSM background calculations)
1613+
- fflag_feat_fit_710_fsm_state_fields (state field display in APIs)
15951614
properties:
15961615
annotation: optional<integer>
15971616
classifications: optional<unknown>
@@ -1611,6 +1630,7 @@ types:
16111630
resolved_at:
16121631
type: optional<datetime>
16131632
docs: Resolving time
1633+
state: string
16141634
task: optional<integer>
16151635
text:
16161636
type: optional<string>
@@ -1621,6 +1641,15 @@ types:
16211641
source:
16221642
openapi: openapi/openapi.yaml
16231643
CommentRequest:
1644+
docs: |-
1645+
Comment Serializer with FSM state support.
1646+
1647+
Note: The 'state' field will be populated from the queryset annotation
1648+
if present, preventing N+1 queries. Use .with_state() on your queryset.
1649+
1650+
The state field display is controlled by both:
1651+
- fflag_feat_fit_568_finite_state_management (FSM background calculations)
1652+
- fflag_feat_fit_710_fsm_state_fields (state field display in APIs)
16241653
properties:
16251654
annotation: optional<integer>
16261655
classifications: optional<unknown>
@@ -1635,6 +1664,15 @@ types:
16351664
source:
16361665
openapi: openapi/openapi.yaml
16371666
CommentSerializerWithExpandedUser:
1667+
docs: |-
1668+
Comment Serializer with FSM state support.
1669+
1670+
Note: The 'state' field will be populated from the queryset annotation
1671+
if present, preventing N+1 queries. Use .with_state() on your queryset.
1672+
1673+
The state field display is controlled by both:
1674+
- fflag_feat_fit_568_finite_state_management (FSM background calculations)
1675+
- fflag_feat_fit_710_fsm_state_fields (state field display in APIs)
16381676
properties:
16391677
annotation: optional<integer>
16401678
classifications: optional<unknown>
@@ -1652,6 +1690,7 @@ types:
16521690
resolved_at:
16531691
type: optional<datetime>
16541692
docs: Resolving time
1693+
state: string
16551694
task: optional<integer>
16561695
text:
16571696
type: optional<string>
@@ -5040,7 +5079,7 @@ types:
50405079
openapi: openapi/openapi.yaml
50415080
inline: true
50425081
LseTask:
5043-
docs: Task Serializer with project scheme configs validation
5082+
docs: Data Manager Task Serializer with FSM state support.
50445083
properties:
50455084
agreement: string
50465085
agreement_selected: string
@@ -5119,6 +5158,7 @@ types:
51195158
reviewers_count: integer
51205159
reviews_accepted: optional<integer>
51215160
reviews_rejected: optional<integer>
5161+
state: string
51225162
storage_filename: string
51235163
total_annotations: optional<integer>
51245164
total_predictions: optional<integer>
@@ -5435,7 +5475,7 @@ types:
54355475
openapi: openapi/openapi.yaml
54365476
inline: true
54375477
LseTaskSerializerForAnnotators:
5438-
docs: Task Serializer with project scheme configs validation
5478+
docs: Data Manager Task Serializer with FSM state support.
54395479
properties:
54405480
annotations: string
54415481
annotations_results: string
@@ -5497,7 +5537,7 @@ types:
54975537
openapi: openapi/openapi.yaml
54985538
inline: true
54995539
LseTaskSerializerForReviewers:
5500-
docs: Task Serializer with project scheme configs validation
5540+
docs: Data Manager Task Serializer with FSM state support.
55015541
properties:
55025542
agreement: string
55035543
agreement_selected: string
@@ -5576,6 +5616,7 @@ types:
55765616
reviewers_count: integer
55775617
reviews_accepted: optional<integer>
55785618
reviews_rejected: optional<integer>
5619+
state: string
55795620
storage_filename: string
55805621
total_annotations: optional<integer>
55815622
total_predictions: optional<integer>
@@ -8030,6 +8071,15 @@ types:
80308071
source:
80318072
openapi: openapi/openapi.yaml
80328073
TaskAssignment:
8074+
docs: |-
8075+
TaskAssignment Serializer with FSM state support.
8076+
8077+
Note: The 'state' field will be populated from the queryset annotation
8078+
if present, preventing N+1 queries. Use .with_state() on your queryset.
8079+
8080+
The state field display is controlled by both:
8081+
- fflag_feat_fit_568_finite_state_management (FSM background calculations)
8082+
- fflag_feat_fit_710_fsm_state_fields (state field display in APIs)
80338083
properties:
80348084
assignee:
80358085
type: integer
@@ -8038,6 +8088,7 @@ types:
80388088
type: datetime
80398089
docs: Time of assignment
80408090
id: integer
8091+
state: string
80418092
task:
80428093
type: integer
80438094
docs: Assigned task

.mock/definition/annotationReviews.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ service:
4545
result:
4646
key: value
4747
started_at: '2024-01-15T09:30:00Z'
48+
state: state
4849
audiences:
4950
- public
5051
create:
@@ -90,6 +91,7 @@ service:
9091
result:
9192
key: value
9293
started_at: '2024-01-15T09:30:00Z'
94+
state: state
9395
audiences:
9496
- public
9597
get:
@@ -131,6 +133,7 @@ service:
131133
result:
132134
key: value
133135
started_at: '2024-01-15T09:30:00Z'
136+
state: state
134137
audiences:
135138
- public
136139
api_annotation_reviews_update:
@@ -177,6 +180,7 @@ service:
177180
result:
178181
key: value
179182
started_at: '2024-01-15T09:30:00Z'
183+
state: state
180184
audiences:
181185
- internal
182186
delete:
@@ -262,6 +266,7 @@ service:
262266
result:
263267
key: value
264268
started_at: '2024-01-15T09:30:00Z'
269+
state: state
265270
audiences:
266271
- public
267272
source:

.mock/definition/annotations.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ service:
174174
width: 50
175175
x: 20
176176
'y': 30
177+
state: state
177178
task: 1
178179
updated_at: '2024-01-15T09:30:00Z'
179180
updated_by: 1
@@ -296,6 +297,7 @@ service:
296297
width: 50
297298
x: 20
298299
'y': 30
300+
state: state
299301
task: 1
300302
updated_at: '2024-01-15T09:30:00Z'
301303
updated_by: 1
@@ -361,6 +363,7 @@ service:
361363
project: 1
362364
result:
363365
- key: value
366+
state: state
364367
task: 1
365368
updated_at: '2024-01-15T09:30:00Z'
366369
updated_by: 1
@@ -486,6 +489,7 @@ service:
486489
width: 50
487490
x: 20
488491
'y': 30
492+
state: state
489493
task: 1
490494
updated_at: '2024-01-15T09:30:00Z'
491495
updated_by: 1

.mock/definition/comments.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ service:
4848
region_ref:
4949
key: value
5050
resolved_at: '2024-01-15T09:30:00Z'
51+
state: state
5152
task: 1
5253
text: text
5354
updated_at: '2024-01-15T09:30:00Z'
@@ -95,6 +96,7 @@ service:
9596
region_ref:
9697
key: value
9798
resolved_at: '2024-01-15T09:30:00Z'
99+
state: state
98100
task: 1
99101
text: text
100102
updated_at: '2024-01-15T09:30:00Z'
@@ -176,6 +178,7 @@ service:
176178
region_ref:
177179
key: value
178180
resolved_at: '2024-01-15T09:30:00Z'
181+
state: state
179182
task: 1
180183
text: text
181184
updated_at: '2024-01-15T09:30:00Z'
@@ -227,6 +230,7 @@ service:
227230
region_ref:
228231
key: value
229232
resolved_at: '2024-01-15T09:30:00Z'
233+
state: state
230234
task: 1
231235
text: text
232236
updated_at: '2024-01-15T09:30:00Z'
@@ -317,6 +321,7 @@ service:
317321
region_ref:
318322
key: value
319323
resolved_at: '2024-01-15T09:30:00Z'
324+
state: state
320325
task: 1
321326
text: text
322327
updated_at: '2024-01-15T09:30:00Z'

.mock/definition/projects.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,6 +1147,7 @@ service:
11471147
created_at: '2024-01-15T09:30:00Z'
11481148
created_username: created_username
11491149
id: 1
1150+
state: state
11501151
updated_at: '2024-01-15T09:30:00Z'
11511152
cancelled_annotations: 1
11521153
comment_authors:

.mock/definition/projects/assignments.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ service:
440440
- assignee: 1
441441
created_at: '2024-01-15T09:30:00Z'
442442
id: 1
443+
state: state
443444
task: 1
444445
type: AN
445446
audiences:
@@ -493,6 +494,7 @@ service:
493494
assignee: 1
494495
created_at: '2024-01-15T09:30:00Z'
495496
id: 1
497+
state: state
496498
task: 1
497499
type: AN
498500
audiences:
@@ -587,6 +589,7 @@ service:
587589
assignee: 1
588590
created_at: '2024-01-15T09:30:00Z'
589591
id: 1
592+
state: state
590593
task: 1
591594
type: AN
592595
audiences:

.mock/definition/tasks.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ service:
214214
reviewers_count: 1
215215
reviews_accepted: 1
216216
reviews_rejected: 1
217+
state: state
217218
storage_filename: storage_filename
218219
total_annotations: 1
219220
total_predictions: 1
@@ -375,6 +376,7 @@ service:
375376
reviewers_count: 1
376377
reviews_accepted: 1
377378
reviews_rejected: 1
379+
state: state
378380
storage_filename: storage_filename
379381
total_annotations: 1
380382
total_predictions: 1
@@ -465,6 +467,7 @@ service:
465467
reviewers_count: 1
466468
reviews_accepted: 1
467469
reviews_rejected: 1
470+
state: state
468471
storage_filename: storage_filename
469472
total_annotations: 1
470473
total_predictions: 1
@@ -624,6 +627,7 @@ service:
624627
reviewers_count: 1
625628
reviews_accepted: 1
626629
reviews_rejected: 1
630+
state: state
627631
storage_filename: storage_filename
628632
total_annotations: 1
629633
total_predictions: 1

0 commit comments

Comments
 (0)