Skip to content

Commit 06eceba

Browse files
authored
chore: Update OpenAPI specs (#83)
1 parent 3d2fdf6 commit 06eceba

File tree

2 files changed

+289
-1
lines changed

2 files changed

+289
-1
lines changed

fern/apis/beta/openapi-beta.yaml

Lines changed: 286 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,11 @@ components:
859859
- DEVU-12345
860860
items:
861861
type: string
862+
custom_fields:
863+
type: object
864+
description: Application-defined custom fields.
865+
custom_schema_spec:
866+
$ref: '#/components/schemas/custom-schema-spec'
862867
description:
863868
type: string
864869
description: Description for the article.
@@ -1095,6 +1100,11 @@ components:
10951100
$ref: '#/components/schemas/articles-update-request-artifacts'
10961101
authored_by:
10971102
$ref: '#/components/schemas/articles-update-request-authored-by'
1103+
custom_fields:
1104+
type: object
1105+
description: Application-defined custom fields.
1106+
custom_schema_spec:
1107+
$ref: '#/components/schemas/custom-schema-spec'
10981108
description:
10991109
type: string
11001110
description: |
@@ -2020,6 +2030,7 @@ components:
20202030
description: The display name of the Rev org.
20212031
domain:
20222032
type: string
2033+
deprecated: true
20232034
description: The domain of the Rev org.
20242035
phone_numbers:
20252036
type: array
@@ -2349,7 +2360,12 @@ components:
23492360
- github
23502361
code-changes-create-request:
23512362
type: object
2352-
additionalProperties: false
2363+
properties:
2364+
custom_fields:
2365+
type: object
2366+
description: Application-defined custom fields.
2367+
custom_schema_spec:
2368+
$ref: '#/components/schemas/custom-schema-spec'
23532369
title: code-changes-create-request
23542370
code-changes-create-response:
23552371
type: object
@@ -2438,6 +2454,11 @@ components:
24382454
code-changes-update-request:
24392455
type: object
24402456
properties:
2457+
custom_fields:
2458+
type: object
2459+
description: Application-defined custom fields.
2460+
custom_schema_spec:
2461+
$ref: '#/components/schemas/custom-schema-spec'
24412462
id:
24422463
type: string
24432464
description: The ID of the code change object to be updated.
@@ -3494,6 +3515,11 @@ components:
34943515
custom-stage-summary:
34953516
allOf:
34963517
- $ref: '#/components/schemas/atom-base-summary'
3518+
- type: object
3519+
properties:
3520+
name:
3521+
type: string
3522+
description: The human readable name of the state.
34973523
title: custom-stage-summary
34983524
custom-stages-create-request:
34993525
type: object
@@ -3639,6 +3665,11 @@ components:
36393665
custom-state-summary:
36403666
allOf:
36413667
- $ref: '#/components/schemas/atom-base-summary'
3668+
- type: object
3669+
properties:
3670+
name:
3671+
type: string
3672+
description: The human readable name of the state.
36423673
title: custom-state-summary
36433674
custom-states-create-request:
36443675
type: object
@@ -6953,6 +6984,11 @@ components:
69536984
- $ref: '#/components/schemas/work-base'
69546985
- type: object
69556986
properties:
6987+
actual_start_date:
6988+
type: string
6989+
description: Actual start date for the object.
6990+
example: "2023-01-01T12:00:00.000Z"
6991+
format: date-time
69566992
developed_with:
69576993
type: array
69586994
description: Parts associated based on git events.
@@ -9164,6 +9200,7 @@ components:
91649200
description: Name of the Rev organization.
91659201
domain:
91669202
type: string
9203+
deprecated: true
91679204
description: Company's domain name. Example - 'devrev.ai'.
91689205
environment:
91699206
$ref: '#/components/schemas/org-environment'
@@ -9355,6 +9392,7 @@ components:
93559392
description: Customer chosen name for the Rev organization.
93569393
domain:
93579394
type: string
9395+
deprecated: true
93589396
description: Company's domain name. Example - 'devrev.ai'.
93599397
environment:
93609398
$ref: '#/components/schemas/org-environment'
@@ -9667,6 +9705,78 @@ components:
96679705
- rev_users
96689706
title: rev-users-list-response
96699707
x-go-name: RevUsersListResponseBody
9708+
rev-users-scan-request:
9709+
type: object
9710+
description: Scans the list of Rev users.
9711+
properties:
9712+
created_by:
9713+
type: array
9714+
description: |
9715+
Filters for Rev users that were created by the specified user(s).
9716+
items:
9717+
type: string
9718+
created_date:
9719+
$ref: '#/components/schemas/date-time-filter'
9720+
cursor:
9721+
type: string
9722+
description: |
9723+
The cursor to resume iteration, otherwise the beginning if not
9724+
provided.
9725+
custom_fields:
9726+
type: object
9727+
description: Filters for custom fields.
9728+
email:
9729+
type: array
9730+
description: List of emails of Rev users to be filtered.
9731+
items:
9732+
type: string
9733+
external_ref:
9734+
type: array
9735+
description: List of external refs to filter Rev users for.
9736+
items:
9737+
type: string
9738+
is_verified:
9739+
type: boolean
9740+
description: Value of is_verified field to filter the Rev users.
9741+
modified_date:
9742+
$ref: '#/components/schemas/date-time-filter'
9743+
phone_numbers:
9744+
type: array
9745+
description: |
9746+
List of phone numbers, in E.164 format, to filter Rev users on.
9747+
items:
9748+
type: string
9749+
rev_org:
9750+
type: array
9751+
description: List of IDs of Rev organizations to be filtered.
9752+
example:
9753+
- REV-AbCdEfGh
9754+
items:
9755+
type: string
9756+
tags:
9757+
type: array
9758+
description: List of tags to be filtered.
9759+
items:
9760+
type: string
9761+
title: rev-users-scan-request
9762+
rev-users-scan-response:
9763+
type: object
9764+
description: The response to scanning Rev users.
9765+
properties:
9766+
next_cursor:
9767+
type: string
9768+
description: |
9769+
The cursor that should be used to resume iteration, otherwise if
9770+
not provided, then iteration has completed.
9771+
rev_users:
9772+
type: array
9773+
description: The iterated Rev users.
9774+
items:
9775+
$ref: '#/components/schemas/rev-user'
9776+
required:
9777+
- rev_users
9778+
title: rev-users-scan-response
9779+
x-go-name: RevUsersScanResponseBody
96709780
rev-users-update-request:
96719781
type: object
96729782
description: Request to update details of a Rev user.
@@ -22416,6 +22526,181 @@ paths:
2241622526
x-fern-audiences:
2241722527
- docs
2241822528
- sdks
22529+
/rev-users.scan:
22530+
get:
22531+
description: Scans through all Rev users.
22532+
operationId: rev-users-scan
22533+
parameters:
22534+
- description: |
22535+
Filters for Rev users that were created by the specified user(s).
22536+
explode: false
22537+
in: query
22538+
name: created_by
22539+
schema:
22540+
type: array
22541+
items:
22542+
type: string
22543+
- description: |
22544+
Filters for objects created after the provided timestamp (inclusive).
22545+
explode: false
22546+
in: query
22547+
name: created_date.after
22548+
schema:
22549+
type: string
22550+
example: "2023-01-01T12:00:00.000Z"
22551+
format: date-time
22552+
- description: |
22553+
Filters for objects created before the provided timestamp
22554+
(inclusive).
22555+
explode: false
22556+
in: query
22557+
name: created_date.before
22558+
schema:
22559+
type: string
22560+
example: "2023-01-01T12:00:00.000Z"
22561+
format: date-time
22562+
- description: |
22563+
The cursor to resume iteration, otherwise the beginning if not
22564+
provided.
22565+
explode: false
22566+
in: query
22567+
name: cursor
22568+
schema:
22569+
type: string
22570+
- description: Filters for custom fields.
22571+
explode: false
22572+
in: query
22573+
name: custom_fields
22574+
schema:
22575+
type: object
22576+
- description: List of emails of Rev users to be filtered.
22577+
explode: false
22578+
in: query
22579+
name: email
22580+
schema:
22581+
type: array
22582+
items:
22583+
type: string
22584+
- description: List of external refs to filter Rev users for.
22585+
explode: false
22586+
in: query
22587+
name: external_ref
22588+
schema:
22589+
type: array
22590+
items:
22591+
type: string
22592+
- description: Value of is_verified field to filter the Rev users.
22593+
explode: false
22594+
in: query
22595+
name: is_verified
22596+
schema:
22597+
type: boolean
22598+
- description: |
22599+
Filters for objects created after the provided timestamp (inclusive).
22600+
explode: false
22601+
in: query
22602+
name: modified_date.after
22603+
schema:
22604+
type: string
22605+
example: "2023-01-01T12:00:00.000Z"
22606+
format: date-time
22607+
- description: |
22608+
Filters for objects created before the provided timestamp
22609+
(inclusive).
22610+
explode: false
22611+
in: query
22612+
name: modified_date.before
22613+
schema:
22614+
type: string
22615+
example: "2023-01-01T12:00:00.000Z"
22616+
format: date-time
22617+
- description: |
22618+
List of phone numbers, in E.164 format, to filter Rev users on.
22619+
explode: false
22620+
in: query
22621+
name: phone_numbers
22622+
schema:
22623+
type: array
22624+
items:
22625+
type: string
22626+
- description: List of IDs of Rev organizations to be filtered.
22627+
explode: false
22628+
in: query
22629+
name: rev_org
22630+
schema:
22631+
type: array
22632+
example:
22633+
- REV-AbCdEfGh
22634+
items:
22635+
type: string
22636+
- description: List of tags to be filtered.
22637+
explode: false
22638+
in: query
22639+
name: tags
22640+
schema:
22641+
type: array
22642+
items:
22643+
type: string
22644+
responses:
22645+
"200":
22646+
content:
22647+
application/json:
22648+
schema:
22649+
$ref: '#/components/schemas/rev-users-scan-response'
22650+
description: Success.
22651+
"400":
22652+
$ref: '#/components/responses/bad-request'
22653+
"401":
22654+
$ref: '#/components/responses/unauthorized'
22655+
"403":
22656+
$ref: '#/components/responses/forbidden'
22657+
"404":
22658+
$ref: '#/components/responses/not-found'
22659+
"429":
22660+
$ref: '#/components/responses/too-many-requests'
22661+
"500":
22662+
$ref: '#/components/responses/internal-server-error'
22663+
"503":
22664+
$ref: '#/components/responses/service-unavailable'
22665+
tags:
22666+
- rev-users
22667+
x-fern-audiences:
22668+
- docs
22669+
x-request-name: RevUsersScanQuery
22670+
post:
22671+
description: Scans through all Rev users.
22672+
operationId: rev-users-scan-post
22673+
requestBody:
22674+
content:
22675+
application/json:
22676+
schema:
22677+
$ref: '#/components/schemas/rev-users-scan-request'
22678+
responses:
22679+
"200":
22680+
content:
22681+
application/json:
22682+
schema:
22683+
$ref: '#/components/schemas/rev-users-scan-response'
22684+
description: Success.
22685+
"400":
22686+
$ref: '#/components/responses/bad-request'
22687+
"401":
22688+
$ref: '#/components/responses/unauthorized'
22689+
"403":
22690+
$ref: '#/components/responses/forbidden'
22691+
"404":
22692+
$ref: '#/components/responses/not-found'
22693+
"429":
22694+
$ref: '#/components/responses/too-many-requests'
22695+
"500":
22696+
$ref: '#/components/responses/internal-server-error'
22697+
"503":
22698+
$ref: '#/components/responses/service-unavailable'
22699+
tags:
22700+
- rev-users
22701+
x-fern-audiences:
22702+
- docs
22703+
- sdks
2241922704
/rev-users.unlink:
2242022705
post:
2242122706
description: Unlinks a rev user from a rev org.

fern/apis/public/openapi-public.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,7 @@ components:
10311031
description: The display name of the Rev org.
10321032
domain:
10331033
type: string
1034+
deprecated: true
10341035
description: The domain of the Rev org.
10351036
phone_numbers:
10361037
type: array
@@ -3342,6 +3343,7 @@ components:
33423343
description: Name of the Rev organization.
33433344
domain:
33443345
type: string
3346+
deprecated: true
33453347
description: Company's domain name. Example - 'devrev.ai'.
33463348
environment:
33473349
$ref: '#/components/schemas/org-environment'
@@ -3492,6 +3494,7 @@ components:
34923494
description: Customer chosen name for the Rev organization.
34933495
domain:
34943496
type: string
3497+
deprecated: true
34953498
description: Company's domain name. Example - 'devrev.ai'.
34963499
environment:
34973500
$ref: '#/components/schemas/org-environment'

0 commit comments

Comments
 (0)