Skip to content

Commit fdcc436

Browse files
chore: Update OpenAPI Specs (#38)
Co-authored-by: Clerk Bot <cookie@clerk.dev>
1 parent 5de1f1d commit fdcc436

File tree

4 files changed

+573
-201
lines changed

4 files changed

+573
-201
lines changed

bapi/2021-02-05.yml

Lines changed: 112 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ tags:
131131
description: Check if a user is using a proxy.
132132
- name: Organization Domains
133133
description: Manage organization domains.
134+
- name: Accountless Applications
135+
description: Create and complete accountless applications. Note that this is an experimental feature and subject to change or be removed without notice.
134136
externalDocs:
135137
url: https://clerk.com/docs
136138
paths:
@@ -2244,50 +2246,7 @@ paths:
22442246
- $ref: '#/components/parameters/OffsetParameter'
22452247
responses:
22462248
'200':
2247-
description: The OAuth access token of the user, if any.
2248-
content:
2249-
application/json:
2250-
schema:
2251-
type: array
2252-
items:
2253-
type: object
2254-
additionalProperties: false
2255-
properties:
2256-
object:
2257-
type: string
2258-
external_account_id:
2259-
description: External account ID
2260-
type: string
2261-
provider_user_id:
2262-
description: The unique ID of the user in the external provider's system
2263-
type: string
2264-
token:
2265-
type: string
2266-
description: The access token
2267-
provider:
2268-
type: string
2269-
description: The ID of the provider
2270-
public_metadata:
2271-
type: object
2272-
additionalProperties: true
2273-
label:
2274-
type: string
2275-
nullable: true
2276-
scopes:
2277-
type: array
2278-
items:
2279-
type: string
2280-
description: |-
2281-
The list of scopes that the token is valid for.
2282-
Only present for OAuth 2.0 tokens.
2283-
token_secret:
2284-
type: string
2285-
description: The token secret. Only present for OAuth 1.0 tokens.
2286-
expires_at:
2287-
type: integer
2288-
format: int64
2289-
nullable: true
2290-
description: Unix timestamp of the access token expiration.
2249+
$ref: '#/components/responses/OAuthAccessToken'
22912250
'400':
22922251
$ref: '#/components/responses/ClerkErrors'
22932252
'404':
@@ -5887,6 +5846,34 @@ paths:
58875846
$ref: '#/components/responses/ClerkErrors'
58885847
'422':
58895848
$ref: '#/components/responses/UnprocessableEntity'
5849+
/accountless_applications:
5850+
post:
5851+
operationId: CreateAccountlessApplication
5852+
x-speakeasy-group: experimentalAccountlessApplications
5853+
x-speakeasy-name-override: create
5854+
summary: Create an accountless application [EXPERIMENTAL]
5855+
description: Creates a new accountless application. [EXPERIMENTAL]
5856+
tags:
5857+
- Accountless Applications
5858+
responses:
5859+
'200':
5860+
$ref: '#/components/responses/AccountlessApplication'
5861+
'500':
5862+
$ref: '#/components/responses/ClerkErrors'
5863+
/accountless_applications/complete:
5864+
post:
5865+
operationId: CompleteAccountlessApplication
5866+
x-speakeasy-group: experimentalAccountlessApplications
5867+
x-speakeasy-name-override: complete
5868+
summary: Complete an accountless application [EXPERIMENTAL]
5869+
description: Completes an accountless application. [EXPERIMENTAL]
5870+
tags:
5871+
- Accountless Applications
5872+
responses:
5873+
'200':
5874+
$ref: '#/components/responses/AccountlessApplication'
5875+
'500':
5876+
$ref: '#/components/responses/ClerkErrors'
58905877
components:
58915878
securitySchemes:
58925879
bearerAuth:
@@ -7308,6 +7295,56 @@ components:
73087295
required:
73097296
- object
73107297
- total_count
7298+
OAuthAccessToken:
7299+
type: array
7300+
items:
7301+
type: object
7302+
additionalProperties: false
7303+
properties:
7304+
object:
7305+
type: string
7306+
enum:
7307+
- oauth_access_token
7308+
external_account_id:
7309+
type: string
7310+
description: External account ID
7311+
provider_user_id:
7312+
type: string
7313+
description: The unique ID of the user in the external provider's system
7314+
token:
7315+
type: string
7316+
description: The access token
7317+
expires_at:
7318+
type: integer
7319+
format: int64
7320+
nullable: true
7321+
description: Unix timestamp of the access token expiration.
7322+
provider:
7323+
type: string
7324+
description: The ID of the provider
7325+
public_metadata:
7326+
type: object
7327+
additionalProperties: true
7328+
label:
7329+
type: string
7330+
nullable: true
7331+
scopes:
7332+
type: array
7333+
items:
7334+
type: string
7335+
description: The list of scopes that the token is valid for. Only present for OAuth 2.0 tokens.
7336+
token_secret:
7337+
type: string
7338+
description: The token secret. Only present for OAuth 1.0 tokens.
7339+
required:
7340+
- object
7341+
- external_account_id
7342+
- provider_user_id
7343+
- token
7344+
- expires_at
7345+
- provider
7346+
- public_metadata
7347+
- label
73117348
Organization:
73127349
type: object
73137350
properties:
@@ -8685,6 +8722,25 @@ components:
86858722
- status
86868723
- created_at
86878724
- updated_at
8725+
AccountlessApplication:
8726+
type: object
8727+
additionalProperties: false
8728+
properties:
8729+
object:
8730+
type: string
8731+
enum:
8732+
- accountless_application
8733+
publishable_key:
8734+
type: string
8735+
secret_key:
8736+
type: string
8737+
claim_url:
8738+
type: string
8739+
api_keys_url:
8740+
type: string
8741+
required:
8742+
- object
8743+
- publishable_key
86888744
responses:
86898745
WellKnown.JWKS:
86908746
description: Get the JSON Web Key Set
@@ -8820,6 +8876,12 @@ components:
88208876
application/json:
88218877
schema:
88228878
$ref: '#/components/schemas/TotalCount'
8879+
OAuthAccessToken:
8880+
description: Success
8881+
content:
8882+
application/json:
8883+
schema:
8884+
$ref: '#/components/schemas/OAuthAccessToken'
88238885
OrganizationMemberships:
88248886
description: A list of organization memberships
88258887
content:
@@ -9108,6 +9170,12 @@ components:
91089170
application/json:
91099171
schema:
91109172
$ref: '#/components/schemas/WaitlistEntry'
9173+
AccountlessApplication:
9174+
description: Success
9175+
content:
9176+
application/json:
9177+
schema:
9178+
$ref: '#/components/schemas/AccountlessApplication'
91119179
parameters:
91129180
Paginated:
91139181
name: paginated

0 commit comments

Comments
 (0)