Skip to content

Commit d1660db

Browse files
committed
chore: Update OpenAPI Specs
1 parent 2e61906 commit d1660db

File tree

6 files changed

+360
-96
lines changed

6 files changed

+360
-96
lines changed

bapi/2021-02-05.yml

Lines changed: 101 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ tags:
4242
- name: Clients
4343
description: The Client object tracks sessions, as well as the state of any sign in and sign up attempts, for a given device.
4444
externalDocs:
45-
url: https://clerk.com/docs/reference/clerkjs/client
45+
url: https://clerk.com/docs/references/javascript/client
4646
- name: Domains
4747
description: Domains represent each instance's URLs and DNS setup.
4848
- name: Email Addresses
4949
description: A user can be associated with one or more email addresses, which allows them to be contacted via email.
5050
externalDocs:
51-
url: https://clerk.com/docs/reference/clerkjs/emailaddress
51+
url: https://clerk.com/docs/references/javascript/types/email-address
5252
- name: Email & SMS Templates
5353
description: Email & SMS templates allow you to customize the theming and wording of emails & SMS messages that are sent by your instance.
5454
externalDocs:
@@ -87,7 +87,7 @@ tags:
8787
- name: Phone Numbers
8888
description: A user can be associated with one or more phone numbers, which allows them to be contacted via SMS.
8989
externalDocs:
90-
url: https://clerk.com/docs/reference/clerkjs/phonenumber
90+
url: https://clerk.com/docs/references/javascript/types/phone-number
9191
- name: Redirect URLs
9292
description: |-
9393
Redirect URLs are whitelisted URLs that facilitate secure authentication flows in native applications (e.g. React Native, Expo).
@@ -102,7 +102,7 @@ tags:
102102
It models the period of information exchange between a user and the server.
103103
Sessions are created when a user successfully goes through the sign in or sign up flows.
104104
externalDocs:
105-
url: https://clerk.com/docs/reference/clerkjs/session
105+
url: https://clerk.com/docs/references/javascript/session
106106
- name: Machines
107107
description: A Machine represents a machine/server/service which can be used in machine-to-machine authentication.
108108
- name: Sign-in Tokens
@@ -112,15 +112,15 @@ tags:
112112
- name: Sign Ups
113113
description: Sign-up objects track the progress of a sign-up attempt and store any field collected from user input.
114114
externalDocs:
115-
url: https://clerk.com/docs/reference/clerkjs/signup
115+
url: https://clerk.com/docs/references/javascript/sign-up
116116
- name: Testing Tokens
117117
description: Tokens meant for use by end-to-end test suites in requests to the Frontend API, so as to bypass bot detection measures.
118118
externalDocs:
119119
url: https://clerk.com/docs/testing/overview#testing-tokens
120120
- name: Users
121121
description: The user object represents a user that has successfully signed up to your application.
122122
externalDocs:
123-
url: https://clerk.com/docs/reference/clerkjs/user
123+
url: https://clerk.com/docs/references/javascript/user
124124
- name: Webhooks
125125
description: You can configure webhooks to be notified about various events that happen on your instance.
126126
externalDocs:
@@ -863,7 +863,7 @@ paths:
863863
summary: Refresh a session
864864
description: |-
865865
Refreshes a session by creating a new session token. A 401 is returned when there
866-
are validation errors, which signals the SDKs to fallback to the handshake flow.
866+
are validation errors, which signals the SDKs to fall back to the handshake flow.
867867
parameters:
868868
- name: session_id
869869
in: path
@@ -955,7 +955,7 @@ paths:
955955
- Sessions
956956
summary: Verify a session
957957
description: |-
958-
Returns the session if it is authenticated, otherwise returns an error.
958+
Returns the session if it is authenticated; otherwise, returns an error.
959959
WARNING: This endpoint is deprecated and will be removed in future versions. We strongly recommend switching to networkless verification using short-lived session tokens,
960960
which is implemented transparently in all recent SDK versions (e.g. [NodeJS SDK](https://clerk.com/docs/backend-requests/handling/nodejs#clerk-express-require-auth)).
961961
For more details on how networkless verification works, refer to our [Session Tokens documentation](https://clerk.com/docs/backend-requests/resources/session-tokens).
@@ -1013,7 +1013,7 @@ paths:
10131013
type: object
10141014
properties:
10151015
expires_in_seconds:
1016-
type: number
1016+
type: integer
10171017
minimum: 30
10181018
maximum: 315360000
10191019
description: Use this parameter to override the default session token lifetime.
@@ -1065,7 +1065,7 @@ paths:
10651065
type: object
10661066
properties:
10671067
expires_in_seconds:
1068-
type: number
1068+
type: integer
10691069
minimum: 30
10701070
maximum: 315360000
10711071
description: Use this parameter to override the JWT token lifetime.
@@ -1669,7 +1669,7 @@ paths:
16691669
type: string
16701670
description: |-
16711671
The plaintext password to give the user.
1672-
Must be at least 8 characters long, and can not be in any list of hacked passwords.
1672+
Must be at least 8 characters long, and cannot be in any list of hacked passwords.
16731673
nullable: true
16741674
password_digest:
16751675
type: string
@@ -2057,7 +2057,7 @@ paths:
20572057
type: string
20582058
description: |-
20592059
The plaintext password to give the user.
2060-
Must be at least 8 characters long, and can not be in any list of hacked passwords.
2060+
Must be at least 8 characters long, and cannot be in any list of hacked passwords.
20612061
nullable: true
20622062
password_digest:
20632063
type: string
@@ -3144,7 +3144,7 @@ paths:
31443144
type: string
31453145
description: |-
31463146
The identifier to be added in the allow-list.
3147-
This can be an email address, a phone number or a web3 wallet.
3147+
This can be an email address, a phone number, or a web3 wallet.
31483148
notify:
31493149
type: boolean
31503150
description: |-
@@ -3220,7 +3220,7 @@ paths:
32203220
type: string
32213221
description: |-
32223222
The identifier to be added in the block-list.
3223-
This can be an email address, a phone number or a web3 wallet.
3223+
This can be an email address, a phone number, or a web3 wallet.
32243224
required:
32253225
- identifier
32263226
responses:
@@ -3621,7 +3621,7 @@ paths:
36213621
type: array
36223622
items:
36233623
type: string
3624-
description: For browser-like stacks such as browser extensions, Electron (not officially supported), or Capacitor.js (not officially supported), the instance allowed origins need to be updated with the request origin value. For Chrome extensions popup, background, or service worker pages, the origin is chrome-extension://extension_uiid. For Electron apps the default origin is http://localhost:3000. For Capacitor, the origin is capacitor://localhost.
3624+
description: For browser-like stacks such as browser extensions, Electron (not officially supported), or Capacitor.js (not officially supported), the instance allowed origins need to be updated with the request origin value. For Chrome extensions popup, background, or service worker pages, the origin is chrome-extension://extension_uuid. For Electron apps the default origin is http://localhost:3000. For Capacitor, the origin is capacitor://localhost.
36253625
cookieless_dev:
36263626
type: boolean
36273627
description: |-
@@ -3843,13 +3843,13 @@ paths:
38433843
description: JWT template claims in JSON format
38443844
nullable: false
38453845
lifetime:
3846-
type: number
3846+
type: integer
38473847
minimum: 30
38483848
maximum: 315360000
38493849
description: JWT token lifetime
38503850
nullable: true
38513851
allowed_clock_skew:
3852-
type: number
3852+
type: integer
38533853
minimum: 0
38543854
maximum: 300
38553855
description: JWT token allowed clock skew
@@ -3928,13 +3928,13 @@ paths:
39283928
description: JWT template claims in JSON format
39293929
nullable: false
39303930
lifetime:
3931-
type: number
3931+
type: integer
39323932
minimum: 30
39333933
maximum: 315360000
39343934
description: JWT token lifetime
39353935
nullable: true
39363936
allowed_clock_skew:
3937-
type: number
3937+
type: integer
39383938
minimum: 0
39393939
maximum: 300
39403940
description: JWT token allowed clock skew
@@ -4092,9 +4092,15 @@ paths:
40924092
type: string
40934093
description: Array of machine IDs that this machine will have access to. Maximum of 25 scopes per machine.
40944094
maxItems: 25
4095+
default_token_ttl:
4096+
type: integer
4097+
description: The default time-to-live (TTL) in seconds for tokens created by this machine. Must be at least 1 second.
4098+
minimum: 1
4099+
maximum: 315360000
4100+
default: 3600
40954101
responses:
40964102
'200':
4097-
$ref: '#/components/responses/Machine'
4103+
$ref: '#/components/responses/Machine.Created'
40984104
'400':
40994105
$ref: '#/components/responses/ClerkErrors'
41004106
'401':
@@ -4160,6 +4166,11 @@ paths:
41604166
description: The name of the machine
41614167
minLength: 1
41624168
maxLength: 255
4169+
default_token_ttl:
4170+
type: integer
4171+
description: The default time-to-live (TTL) in seconds for tokens created by this machine. Must be at least 1 second.
4172+
minimum: 1
4173+
maximum: 315360000
41634174
responses:
41644175
'200':
41654176
$ref: '#/components/responses/Machine'
@@ -4201,6 +4212,33 @@ paths:
42014212
$ref: '#/components/responses/ResourceNotFound'
42024213
'422':
42034214
$ref: '#/components/responses/UnprocessableEntity'
4215+
/machines/{machine_id}/secret_key:
4216+
get:
4217+
operationId: GetMachineSecretKey
4218+
x-speakeasy-group: machines
4219+
x-speakeasy-name-override: getSecretKey
4220+
summary: Retrieve a machine secret key
4221+
description: Returns the secret key for a machine.
4222+
tags:
4223+
- Machines
4224+
parameters:
4225+
- name: machine_id
4226+
in: path
4227+
description: The ID of the machine to retrieve the secret key for
4228+
required: true
4229+
schema:
4230+
type: string
4231+
responses:
4232+
'200':
4233+
$ref: '#/components/responses/Machine.SecretKey'
4234+
'400':
4235+
$ref: '#/components/responses/ClerkErrors'
4236+
'401':
4237+
$ref: '#/components/responses/AuthenticationInvalid'
4238+
'403':
4239+
$ref: '#/components/responses/AuthorizationInvalid'
4240+
'404':
4241+
$ref: '#/components/responses/ResourceNotFound'
42044242
/machines/{machine_id}/scopes:
42054243
post:
42064244
operationId: CreateMachineScope
@@ -5245,7 +5283,7 @@ paths:
52455283
name: organization_id
52465284
schema:
52475285
type: string
5248-
description: The ID of the organization the membership belongs to
5286+
description: The ID of the organization to which the membership belongs
52495287
- in: path
52505288
required: true
52515289
name: user_id
@@ -5287,7 +5325,7 @@ paths:
52875325
name: organization_id
52885326
schema:
52895327
type: string
5290-
description: The ID of the organization the membership belongs to
5328+
description: The ID of the organization to which the membership belongs
52915329
- in: path
52925330
required: true
52935331
name: user_id
@@ -5323,7 +5361,7 @@ paths:
53235361
name: organization_id
53245362
schema:
53255363
type: string
5326-
description: The ID of the organization the membership belongs to
5364+
description: The ID of the organization to which the membership belongs
53275365
- in: path
53285366
required: true
53295367
name: user_id
@@ -7489,7 +7527,7 @@ components:
74897527
instance_id:
74907528
nullable: true
74917529
type: string
7492-
description: the id of the instance the template belongs to
7530+
description: The id of the instance to which this template belongs
74937531
resource_type:
74947532
type: string
74957533
description: whether this is a system (default) or user overridden) template
@@ -8898,6 +8936,11 @@ components:
88988936
type: integer
88998937
format: int64
89008938
description: Unix timestamp of last update.
8939+
default_token_ttl:
8940+
type: integer
8941+
description: The default time-to-live (TTL) in seconds for tokens created by this machine.
8942+
minimum: 1
8943+
default: 3600
89018944
Machine:
89028945
allOf:
89038946
- $ref: '#/components/schemas/MachineWithoutScopedMachines'
@@ -10036,6 +10079,21 @@ components:
1003610079
total_count:
1003710080
type: integer
1003810081
description: Total number of machines
10082+
Machine.Created:
10083+
description: Success
10084+
content:
10085+
application/json:
10086+
schema:
10087+
allOf:
10088+
- $ref: '#/components/schemas/Machine'
10089+
- type: object
10090+
required:
10091+
- secret_key
10092+
properties:
10093+
secret_key:
10094+
type: string
10095+
readOnly: true
10096+
description: The secret key for the machine, only returned upon creation.
1003910097
Machine:
1004010098
description: Success
1004110099
content:
@@ -10066,6 +10124,25 @@ components:
1006610124
enum:
1006710125
- true
1006810126
description: Whether the machine was successfully deleted
10127+
Machine.SecretKey:
10128+
description: Success
10129+
content:
10130+
application/json:
10131+
schema:
10132+
type: object
10133+
required:
10134+
- object
10135+
- secret
10136+
properties:
10137+
object:
10138+
type: string
10139+
enum:
10140+
- machine_secret_key
10141+
description: String representing the object's type.
10142+
secret:
10143+
type: string
10144+
readOnly: true
10145+
description: The secret key for the machine.
1006910146
MachineScope:
1007010147
description: Machine scope created successfully for a machine
1007110148
content:

0 commit comments

Comments
 (0)