Skip to content

Commit a22d6ac

Browse files
committed
chore: Update OpenAPI Specs
1 parent 4136c88 commit a22d6ac

File tree

6 files changed

+622
-1948
lines changed

6 files changed

+622
-1948
lines changed

bapi/2021-02-05.yml

Lines changed: 48 additions & 203 deletions
Original file line numberDiff line numberDiff line change
@@ -215,89 +215,8 @@ paths:
215215
responses:
216216
'200':
217217
$ref: '#/components/responses/WellKnown.JWKS'
218-
/aws_credentials:
219-
x-internal: true
220-
get:
221-
operationId: GetAWSCredentialList
222-
x-speakeasy-group: awsCredentials
223-
x-speakeasy-name-override: list
224-
tags:
225-
- AWS Credentials
226-
summary: List all AWS Credentials
227-
description: Returns a list of all AWS Credentials.
228-
responses:
229-
'200':
230-
$ref: '#/components/responses/AWSCredential.List'
231-
post:
232-
operationId: CreateAWSCredential
233-
x-speakeasy-group: awsCredentials
234-
x-speakeasy-name-override: create
235-
tags:
236-
- AWS Credentials
237-
summary: Create an AWS Credential
238-
description: Create a new AWS Credential
239-
requestBody:
240-
content:
241-
application/json:
242-
schema:
243-
type: object
244-
properties:
245-
access_key_id:
246-
type: string
247-
description: The Access Key ID from AWS
248-
secret_access_key:
249-
type: string
250-
description: The Secret Access Key from AWS.
251-
user_pool_ids:
252-
type: array
253-
items:
254-
type: string
255-
description: The User Pool IDs from AWS.
256-
required:
257-
- access_key_id
258-
- secret_access_key
259-
- user_pool_ids
260-
responses:
261-
'200':
262-
$ref: '#/components/responses/AWSCredential'
263-
'400':
264-
$ref: '#/components/responses/ClerkErrors'
265-
'401':
266-
$ref: '#/components/responses/AuthenticationInvalid'
267-
'403':
268-
$ref: '#/components/responses/AuthorizationInvalid'
269-
'404':
270-
$ref: '#/components/responses/ResourceNotFound'
271-
'422':
272-
$ref: '#/components/responses/UnprocessableEntity'
218+
/aws_credentials: {}
273219
/aws_credentials/{id}:
274-
x-internal: true
275-
get:
276-
operationId: GetAWSCredential
277-
x-speakeasy-group: awsCredentials
278-
x-speakeasy-name-override: get
279-
tags:
280-
- AWS Credentials
281-
summary: Retrieve an AWS Credential
282-
description: Returns the details of an AWS Credential.
283-
parameters:
284-
- name: id
285-
in: path
286-
description: The ID of the AWS Credential to retrieve
287-
required: true
288-
schema:
289-
type: string
290-
responses:
291-
'200':
292-
$ref: '#/components/responses/AWSCredential'
293-
'400':
294-
$ref: '#/components/responses/ClerkErrors'
295-
'401':
296-
$ref: '#/components/responses/AuthenticationInvalid'
297-
'403':
298-
$ref: '#/components/responses/AuthorizationInvalid'
299-
'404':
300-
$ref: '#/components/responses/ResourceNotFound'
301220
delete:
302221
operationId: DeleteAWSCredential
303222
x-speakeasy-group: awsCredentials
@@ -3984,54 +3903,7 @@ paths:
39843903
$ref: '#/components/responses/AuthorizationInvalid'
39853904
'404':
39863905
$ref: '#/components/responses/ResourceNotFound'
3987-
/machine_tokens:
3988-
x-internal: true
3989-
post:
3990-
operationId: CreateMachineToken
3991-
x-speakeasy-group: machineTokens
3992-
x-speakeasy-name-override: create
3993-
summary: Create a machine token
3994-
description: Create a new machine token
3995-
tags:
3996-
- Machine Tokens
3997-
requestBody:
3998-
content:
3999-
application/json:
4000-
schema:
4001-
type: object
4002-
properties:
4003-
machine_id:
4004-
type: string
4005-
maxLength: 96
4006-
description: ID of the machine creating the token. Must be be prefixed with `mch_`. Must only contain lowercase letters, numbers, and underscores.
4007-
claims:
4008-
type: object
4009-
description: Claims to include in the JWT
4010-
nullable: true
4011-
expires_in_seconds:
4012-
type: integer
4013-
minimum: 30
4014-
maximum: 315360000
4015-
description: Token lifetime in seconds. Defaults to 30 seconds if not specified.
4016-
nullable: true
4017-
allowed_clock_skew:
4018-
type: integer
4019-
minimum: 0
4020-
maximum: 300
4021-
default: 5
4022-
description: Allowed clock skew in seconds. Defaults to 5 seconds if not specified.
4023-
nullable: true
4024-
required:
4025-
- machine_id
4026-
responses:
4027-
'200':
4028-
$ref: '#/components/responses/MachineToken'
4029-
'400':
4030-
$ref: '#/components/responses/ClerkErrors'
4031-
'401':
4032-
$ref: '#/components/responses/AuthenticationInvalid'
4033-
'422':
4034-
$ref: '#/components/responses/UnprocessableEntity'
3906+
/machine_tokens: {}
40353907
/machines:
40363908
get:
40373909
operationId: ListMachines
@@ -7039,41 +6911,21 @@ components:
70396911
- $ref: '#/components/schemas/JWKS.ecdsa.PrivateKey'
70406912
- $ref: '#/components/schemas/JWKS.rsa.PrivateKey'
70416913
- $ref: '#/components/schemas/JWKS.symmetric.Key'
7042-
AWSCredential:
6914+
DeletedObject:
70436915
type: object
70446916
additionalProperties: false
70456917
properties:
7046-
id:
7047-
type: string
70486918
object:
70496919
type: string
7050-
description: |
7051-
String representing the object's type. Objects of the same type share the same value.
7052-
enum:
7053-
- aws_credential
7054-
access_key_id:
6920+
id:
70556921
type: string
7056-
user_pool_ids:
7057-
type: array
7058-
items:
7059-
type: string
7060-
created_at:
7061-
type: integer
7062-
format: int64
7063-
description: |
7064-
Unix timestamp of creation
7065-
updated_at:
7066-
type: integer
7067-
format: int64
7068-
description: |
7069-
Unix timestamp of creation
6922+
slug:
6923+
type: string
6924+
deleted:
6925+
type: boolean
70706926
required:
7071-
- id
70726927
- object
7073-
- access_key_id
7074-
- user_pool_ids
7075-
- created_at
7076-
- updated_at
6928+
- deleted
70776929
ClerkError:
70786930
type: object
70796931
properties:
@@ -7104,21 +6956,41 @@ components:
71046956
type: string
71056957
required:
71066958
- errors
7107-
DeletedObject:
6959+
AWSCredential:
71086960
type: object
71096961
additionalProperties: false
71106962
properties:
7111-
object:
7112-
type: string
71136963
id:
71146964
type: string
7115-
slug:
6965+
object:
71166966
type: string
7117-
deleted:
7118-
type: boolean
6967+
description: |
6968+
String representing the object's type. Objects of the same type share the same value.
6969+
enum:
6970+
- aws_credential
6971+
access_key_id:
6972+
type: string
6973+
user_pool_ids:
6974+
type: array
6975+
items:
6976+
type: string
6977+
created_at:
6978+
type: integer
6979+
format: int64
6980+
description: |
6981+
Unix timestamp of creation
6982+
updated_at:
6983+
type: integer
6984+
format: int64
6985+
description: |
6986+
Unix timestamp of creation
71196987
required:
6988+
- id
71206989
- object
7121-
- deleted
6990+
- access_key_id
6991+
- user_pool_ids
6992+
- created_at
6993+
- updated_at
71226994
SessionActivityResponse:
71236995
type: object
71246996
nullable: true
@@ -9011,19 +8883,6 @@ components:
90118883
- signing_algorithm
90128884
- created_at
90138885
- updated_at
9014-
MachineToken:
9015-
type: object
9016-
additionalProperties: false
9017-
properties:
9018-
object:
9019-
type: string
9020-
enum:
9021-
- token
9022-
jwt:
9023-
type: string
9024-
required:
9025-
- object
9026-
- jwt
90278886
MachineWithoutScopedMachines:
90288887
type: object
90298888
required:
@@ -10075,20 +9934,12 @@ components:
100759934
application/json:
100769935
schema:
100779936
$ref: '#/components/schemas/JWKS'
10078-
AWSCredential.List:
10079-
description: Success
10080-
content:
10081-
application/json:
10082-
schema:
10083-
type: array
10084-
items:
10085-
$ref: '#/components/schemas/AWSCredential'
10086-
AWSCredential:
10087-
description: Success
9937+
DeletedObject:
9938+
description: Deleted Object
100889939
content:
100899940
application/json:
100909941
schema:
10091-
$ref: '#/components/schemas/AWSCredential'
9942+
$ref: '#/components/schemas/DeletedObject'
100929943
ClerkErrors:
100939944
description: Request was not successful
100949945
content:
@@ -10113,18 +9964,12 @@ components:
101139964
application/json:
101149965
schema:
101159966
$ref: '#/components/schemas/ClerkErrors'
10116-
UnprocessableEntity:
10117-
description: Invalid request parameters
10118-
content:
10119-
application/json:
10120-
schema:
10121-
$ref: '#/components/schemas/ClerkErrors'
10122-
DeletedObject:
10123-
description: Deleted Object
9967+
AWSCredential:
9968+
description: Success
101249969
content:
101259970
application/json:
101269971
schema:
10127-
$ref: '#/components/schemas/DeletedObject'
9972+
$ref: '#/components/schemas/AWSCredential'
101289973
Client.List:
101299974
description: Success
101309975
content:
@@ -10139,6 +9984,12 @@ components:
101399984
application/json:
101409985
schema:
101419986
$ref: '#/components/schemas/ClerkErrors'
9987+
UnprocessableEntity:
9988+
description: Invalid request parameters
9989+
content:
9990+
application/json:
9991+
schema:
9992+
$ref: '#/components/schemas/ClerkErrors'
101429993
Client:
101439994
description: Success
101449995
content:
@@ -10372,12 +10223,6 @@ components:
1037210223
application/json:
1037310224
schema:
1037410225
$ref: '#/components/schemas/JWTTemplate'
10375-
MachineToken:
10376-
description: Success
10377-
content:
10378-
application/json:
10379-
schema:
10380-
$ref: '#/components/schemas/MachineToken'
1038110226
Machine.List:
1038210227
description: Success
1038310228
content:

0 commit comments

Comments
 (0)