Skip to content

Commit a5a251e

Browse files
authored
Update API specs (#80)
1 parent 6460bd9 commit a5a251e

File tree

2 files changed

+189
-8
lines changed

2 files changed

+189
-8
lines changed

fern/apis/beta/openapi-beta.yaml

Lines changed: 153 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,8 @@ components:
644644
type: boolean
645645
description: |
646646
If true, the schedule attached to this metric is out of schedule at
647-
the time of the query.
647+
the time of the query. It is not set for metrics in *completed*
648+
stage.
648649
metric_definition:
649650
$ref: '#/components/schemas/metric-definition-summary'
650651
org_schedule:
@@ -3478,6 +3479,17 @@ components:
34783479
custom-stage:
34793480
allOf:
34803481
- $ref: '#/components/schemas/atom-base'
3482+
- type: object
3483+
properties:
3484+
name:
3485+
type: string
3486+
description: The human readable name of the state.
3487+
ordinal:
3488+
type: integer
3489+
description: Ordinal used to sort/group stages.
3490+
format: int32
3491+
state:
3492+
$ref: '#/components/schemas/custom-state-summary'
34813493
title: custom-stage
34823494
custom-stage-summary:
34833495
allOf:
@@ -3611,7 +3623,23 @@ components:
36113623
custom-state:
36123624
allOf:
36133625
- $ref: '#/components/schemas/atom-base'
3626+
- type: object
3627+
properties:
3628+
is_final:
3629+
type: boolean
3630+
description: True if this is a final state.
3631+
name:
3632+
type: string
3633+
description: The human readable name of the state.
3634+
ordinal:
3635+
type: integer
3636+
description: Ordinal used to identify system states.
3637+
format: int32
36143638
title: custom-state
3639+
custom-state-summary:
3640+
allOf:
3641+
- $ref: '#/components/schemas/atom-base-summary'
3642+
title: custom-state-summary
36153643
custom-states-create-request:
36163644
type: object
36173645
properties:
@@ -4908,17 +4936,23 @@ components:
49084936
details:
49094937
type: string
49104938
description: The details of the error.
4939+
different_reporters:
4940+
$ref: '#/components/schemas/error-bad-request-merge-works-error-error-different-reporters'
49114941
different_workspace:
49124942
$ref: '#/components/schemas/error-bad-request-merge-works-error-error-different-workspace'
49134943
invalid_stage_transition:
49144944
$ref: '#/components/schemas/error-bad-request-merge-works-error-error-invalid-stage-transition'
4945+
locked:
4946+
$ref: '#/components/schemas/error-bad-request-merge-works-error-error-locked'
49154947
subtype:
49164948
type: string
49174949
enum:
49184950
- already_merged
49194951
- closed
4952+
- different_reporters
49204953
- different_workspace
49214954
- invalid_stage_transition
4955+
- locked
49224956
work:
49234957
type: string
49244958
description: The ID of the work which failed the validation.
@@ -4939,6 +4973,20 @@ components:
49394973
type: object
49404974
additionalProperties: false
49414975
title: error-bad-request-merge-works-error-error-closed
4976+
error-bad-request-merge-works-error-error-different-reporters:
4977+
type: object
4978+
properties:
4979+
primary_reporters:
4980+
type: array
4981+
description: The reporters of the primary work.
4982+
items:
4983+
type: string
4984+
secondary_reporters:
4985+
type: array
4986+
description: The reporters of the secondary work.
4987+
items:
4988+
type: string
4989+
title: error-bad-request-merge-works-error-error-different-reporters
49424990
error-bad-request-merge-works-error-error-different-workspace:
49434991
type: object
49444992
properties:
@@ -4948,9 +4996,6 @@ components:
49484996
secondary_workspace:
49494997
type: string
49504998
description: The workspace of the secondary work.
4951-
required:
4952-
- primary_workspace
4953-
- secondary_workspace
49544999
title: error-bad-request-merge-works-error-error-different-workspace
49555000
error-bad-request-merge-works-error-error-invalid-stage-transition:
49565001
type: object
@@ -4965,6 +5010,10 @@ components:
49655010
- current_stage
49665011
- requested_stage
49675012
title: error-bad-request-merge-works-error-error-invalid-stage-transition
5013+
error-bad-request-merge-works-error-error-locked:
5014+
type: object
5015+
additionalProperties: false
5016+
title: error-bad-request-merge-works-error-error-locked
49685017
error-bad-request-missing-dependency:
49695018
type: object
49705019
properties:
@@ -8955,6 +9004,11 @@ components:
89559004
- question_answer
89569005
title: question-answers-update-response
89579006
x-go-name: QuestionAnswersUpdateResponseBody
9007+
removed-sla-metric-history:
9008+
type: object
9009+
additionalProperties: false
9010+
description: User, timestamp and metric id of removed metrics.
9011+
title: removed-sla-metric-history
89589012
resource:
89599013
type: object
89609014
description: Resource details.
@@ -10761,6 +10815,11 @@ components:
1076110815
associated with their exact allowed values. The SLA policy applies
1076210816
to issues where all named custom fields have exactly the specified
1076310817
values.
10818+
owners:
10819+
type: array
10820+
description: The SLA policy applies to the issues of these owners.
10821+
items:
10822+
type: string
1076410823
parts:
1076510824
type: array
1076610825
description: The SLA policy applies to the issues of these parts.
@@ -10839,8 +10898,22 @@ components:
1083910898
their exact allowed values. The SLA policy applies to records where
1084010899
all named custom fields have exactly the specified values. If the
1084110900
value is null, the field must have null value or not be present.
10901+
groups:
10902+
type: array
10903+
description: |
10904+
The SLA policy applies to the tickets or conversations of these
10905+
groups.
10906+
items:
10907+
type: string
1084210908
issue_selector:
1084310909
$ref: '#/components/schemas/set-issue-selector'
10910+
owners:
10911+
type: array
10912+
description: |
10913+
The SLA policy applies to the tickets or conversations of these
10914+
owners.
10915+
items:
10916+
type: string
1084410917
parts:
1084510918
type: array
1084610919
description: The SLA policy applies to the tickets of these parts.
@@ -10877,6 +10950,12 @@ components:
1087710950
- TAG-12345
1087810951
items:
1087910952
type: string
10953+
ticket_source_channel:
10954+
type: array
10955+
description: |
10956+
The SLA policy applies to tickets with these source channels.
10957+
items:
10958+
type: string
1088010959
required:
1088110960
- applies_to
1088210961
title: set-sla-selector
@@ -11116,6 +11195,11 @@ components:
1111611195
Summary of the metrics target being tracked in the SLA tracker.
1111711196
items:
1111811197
$ref: '#/components/schemas/archetype-metric-target'
11198+
removed_sla_metric_history:
11199+
type: array
11200+
description: User, timestamp and metric Id of removed metrics.
11201+
items:
11202+
$ref: '#/components/schemas/removed-sla-metric-history'
1111911203
sla:
1112011204
$ref: '#/components/schemas/sla-summary'
1112111205
sla_policy_id:
@@ -11368,6 +11452,15 @@ components:
1136811452
- sla
1136911453
title: slas-update-response
1137011454
x-go-name: SlasUpdateResponseBody
11455+
snap-in:
11456+
allOf:
11457+
- $ref: '#/components/schemas/atom-base'
11458+
- type: object
11459+
properties:
11460+
inputs_values:
11461+
type: object
11462+
description: Values of the inputs.
11463+
title: snap-in
1137111464
snap-in-version-summary:
1137211465
allOf:
1137311466
- $ref: '#/components/schemas/atom-base-summary'
@@ -11421,6 +11514,27 @@ components:
1142111514
- id
1142211515
- secret
1142311516
title: snap-ins-resources-response-keyring-data
11517+
snap-ins-update-request:
11518+
type: object
11519+
properties:
11520+
id:
11521+
type: string
11522+
description: The ID of the snap-in to update.
11523+
inputs_values:
11524+
type: object
11525+
description: The updated values of the inputs.
11526+
required:
11527+
- id
11528+
title: snap-ins-update-request
11529+
snap-ins-update-response:
11530+
type: object
11531+
properties:
11532+
snap_in:
11533+
$ref: '#/components/schemas/snap-in'
11534+
required:
11535+
- snap_in
11536+
title: snap-ins-update-response
11537+
x-go-name: SnapInsUpdateResponseBody
1142411538
snap-widget:
1142511539
type: object
1142611540
discriminator:
@@ -23671,6 +23785,41 @@ paths:
2367123785
x-fern-audiences:
2367223786
- docs
2367323787
- sdks
23788+
/snap-ins.update:
23789+
post:
23790+
description: Updates a snap-in.
23791+
operationId: snap-ins-update
23792+
requestBody:
23793+
content:
23794+
application/json:
23795+
schema:
23796+
$ref: '#/components/schemas/snap-ins-update-request'
23797+
responses:
23798+
"200":
23799+
content:
23800+
application/json:
23801+
schema:
23802+
$ref: '#/components/schemas/snap-ins-update-response'
23803+
description: Success.
23804+
"400":
23805+
$ref: '#/components/responses/bad-request'
23806+
"401":
23807+
$ref: '#/components/responses/unauthorized'
23808+
"403":
23809+
$ref: '#/components/responses/forbidden'
23810+
"404":
23811+
$ref: '#/components/responses/not-found'
23812+
"429":
23813+
$ref: '#/components/responses/too-many-requests'
23814+
"500":
23815+
$ref: '#/components/responses/internal-server-error'
23816+
"503":
23817+
$ref: '#/components/responses/service-unavailable'
23818+
tags:
23819+
- snap-ins
23820+
x-fern-audiences:
23821+
- docs
23822+
- sdks
2367423823
/snap-widgets.create:
2367523824
post:
2367623825
description: Create a snap widget object.

fern/apis/public/openapi-public.yaml

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ components:
356356
type: boolean
357357
description: |
358358
If true, the schedule attached to this metric is out of schedule at
359-
the time of the query.
359+
the time of the query. It is not set for metrics in *completed*
360+
stage.
360361
metric_definition:
361362
$ref: '#/components/schemas/metric-definition-summary'
362363
org_schedule:
@@ -1760,17 +1761,23 @@ components:
17601761
details:
17611762
type: string
17621763
description: The details of the error.
1764+
different_reporters:
1765+
$ref: '#/components/schemas/error-bad-request-merge-works-error-error-different-reporters'
17631766
different_workspace:
17641767
$ref: '#/components/schemas/error-bad-request-merge-works-error-error-different-workspace'
17651768
invalid_stage_transition:
17661769
$ref: '#/components/schemas/error-bad-request-merge-works-error-error-invalid-stage-transition'
1770+
locked:
1771+
$ref: '#/components/schemas/error-bad-request-merge-works-error-error-locked'
17671772
subtype:
17681773
type: string
17691774
enum:
17701775
- already_merged
17711776
- closed
1777+
- different_reporters
17721778
- different_workspace
17731779
- invalid_stage_transition
1780+
- locked
17741781
work:
17751782
type: string
17761783
description: The ID of the work which failed the validation.
@@ -1791,6 +1798,20 @@ components:
17911798
type: object
17921799
additionalProperties: false
17931800
title: error-bad-request-merge-works-error-error-closed
1801+
error-bad-request-merge-works-error-error-different-reporters:
1802+
type: object
1803+
properties:
1804+
primary_reporters:
1805+
type: array
1806+
description: The reporters of the primary work.
1807+
items:
1808+
type: string
1809+
secondary_reporters:
1810+
type: array
1811+
description: The reporters of the secondary work.
1812+
items:
1813+
type: string
1814+
title: error-bad-request-merge-works-error-error-different-reporters
17941815
error-bad-request-merge-works-error-error-different-workspace:
17951816
type: object
17961817
properties:
@@ -1800,9 +1821,6 @@ components:
18001821
secondary_workspace:
18011822
type: string
18021823
description: The workspace of the secondary work.
1803-
required:
1804-
- primary_workspace
1805-
- secondary_workspace
18061824
title: error-bad-request-merge-works-error-error-different-workspace
18071825
error-bad-request-merge-works-error-error-invalid-stage-transition:
18081826
type: object
@@ -1817,6 +1835,10 @@ components:
18171835
- current_stage
18181836
- requested_stage
18191837
title: error-bad-request-merge-works-error-error-invalid-stage-transition
1838+
error-bad-request-merge-works-error-error-locked:
1839+
type: object
1840+
additionalProperties: false
1841+
title: error-bad-request-merge-works-error-error-locked
18201842
error-bad-request-missing-dependency:
18211843
type: object
18221844
properties:
@@ -3155,6 +3177,11 @@ components:
31553177
allOf:
31563178
- $ref: '#/components/schemas/part-base-summary'
31573179
title: product-summary
3180+
removed-sla-metric-history:
3181+
type: object
3182+
additionalProperties: false
3183+
description: User, timestamp and metric id of removed metrics.
3184+
title: removed-sla-metric-history
31583185
rev-org:
31593186
allOf:
31603187
- $ref: '#/components/schemas/org-base'
@@ -3484,6 +3511,11 @@ components:
34843511
Summary of the metrics target being tracked in the SLA tracker.
34853512
items:
34863513
$ref: '#/components/schemas/archetype-metric-target'
3514+
removed_sla_metric_history:
3515+
type: array
3516+
description: User, timestamp and metric Id of removed metrics.
3517+
items:
3518+
$ref: '#/components/schemas/removed-sla-metric-history'
34873519
sla:
34883520
$ref: '#/components/schemas/sla-summary'
34893521
sla_policy_id:

0 commit comments

Comments
 (0)