Skip to content

Commit

Permalink
chore: Update OpenAPI Specs (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: Clerk Bot <[email protected]>
  • Loading branch information
tmilewski and clerk-cookie authored Jan 31, 2025
1 parent 4a2a6cc commit d5a2a89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 120 deletions.
64 changes: 4 additions & 60 deletions bapi/2021-02-05.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2300,29 +2300,6 @@ paths:
'500':
$ref: '#/components/responses/ClerkErrors'
/users/{user_id}/totp:
post:
operationId: CreateUserTOTP
summary: Create a TOTP for a user
description: |
Creates a TOTP (Time-based One-Time Password) for a given user, returning both the TOTP secret and the URI.
tags:
- Users
parameters:
- name: user_id
in: path
description: The ID of the user for whom the TOTP is being created.
required: true
schema:
type: string
responses:
'200':
$ref: '#/components/responses/TOTP'
'403':
$ref: '#/components/responses/ClerkErrors'
'404':
$ref: '#/components/responses/ResourceNotFound'
'500':
$ref: '#/components/responses/ClerkErrors'
delete:
operationId: DeleteTOTP
summary: Delete all the user's TOTPs
Expand Down Expand Up @@ -4653,10 +4630,7 @@ paths:
example: profile email public_metadata
public:
type: boolean
description: |-
If true, this client is public and cannot securely store a client secret.
Only the authorization code flow with proof key for code exchange (PKCE) may be used.
Public clients cannot be updated to be confidential clients, and vice versa.
description: If true, this client is public and you can use the Proof Key of Code Exchange (PKCE) flow.
required:
- name
responses:
Expand Down Expand Up @@ -4721,6 +4695,9 @@ paths:
description: Define the allowed scopes for the new OAuth applications that dictate the user payload of the OAuth user info endpoint. Available scopes are `profile`, `email`, `public_metadata`, `private_metadata`. Provide the requested scopes as a string, separated by spaces.
default: profile email
example: profile email public_metadata private_metadata
public:
type: boolean
description: If true, this client is public and you can use the Proof Key of Code Exchange (PKCE) flow.
responses:
'200':
$ref: '#/components/responses/OAuthApplication'
Expand Down Expand Up @@ -6281,33 +6258,6 @@ components:
required:
- data
- total_count
TOTP:
type: object
additionalProperties: true
properties:
object:
type: string
id:
type: string
secret:
type: string
nullable: true
uri:
type: string
nullable: true
verified:
type: boolean
backup_codes:
type: array
items:
type: string
nullable: true
required:
- object
- id
- secret
- uri
- verified
Invitation:
type: object
additionalProperties: false
Expand Down Expand Up @@ -7457,12 +7407,6 @@ components:
application/json:
schema:
$ref: '#/components/schemas/OrganizationInvitationsWithPublicOrganizationData'
TOTP:
description: A TOTP (Time-based One-Time Password)
content:
application/json:
schema:
$ref: '#/components/schemas/TOTP'
Invitation.List:
description: List of invitations
content:
Expand Down
64 changes: 4 additions & 60 deletions bapi/2024-10-01.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2300,29 +2300,6 @@ paths:
'500':
$ref: '#/components/responses/ClerkErrors'
/users/{user_id}/totp:
post:
operationId: CreateUserTOTP
summary: Create a TOTP for a user
description: |
Creates a TOTP (Time-based One-Time Password) for a given user, returning both the TOTP secret and the URI.
tags:
- Users
parameters:
- name: user_id
in: path
description: The ID of the user for whom the TOTP is being created.
required: true
schema:
type: string
responses:
'200':
$ref: '#/components/responses/TOTP'
'403':
$ref: '#/components/responses/ClerkErrors'
'404':
$ref: '#/components/responses/ResourceNotFound'
'500':
$ref: '#/components/responses/ClerkErrors'
delete:
operationId: DeleteTOTP
summary: Delete all the user's TOTPs
Expand Down Expand Up @@ -4649,10 +4626,7 @@ paths:
example: profile email public_metadata
public:
type: boolean
description: |-
If true, this client is public and cannot securely store a client secret.
Only the authorization code flow with proof key for code exchange (PKCE) may be used.
Public clients cannot be updated to be confidential clients, and vice versa.
description: If true, this client is public and you can use the Proof Key of Code Exchange (PKCE) flow.
required:
- name
responses:
Expand Down Expand Up @@ -4717,6 +4691,9 @@ paths:
description: Define the allowed scopes for the new OAuth applications that dictate the user payload of the OAuth user info endpoint. Available scopes are `profile`, `email`, `public_metadata`, `private_metadata`. Provide the requested scopes as a string, separated by spaces.
default: profile email
example: profile email public_metadata private_metadata
public:
type: boolean
description: If true, this client is public and you can use the Proof Key of Code Exchange (PKCE) flow.
responses:
'200':
$ref: '#/components/responses/OAuthApplication'
Expand Down Expand Up @@ -6277,33 +6254,6 @@ components:
required:
- data
- total_count
TOTP:
type: object
additionalProperties: true
properties:
object:
type: string
id:
type: string
secret:
type: string
nullable: true
uri:
type: string
nullable: true
verified:
type: boolean
backup_codes:
type: array
items:
type: string
nullable: true
required:
- object
- id
- secret
- uri
- verified
Invitation:
type: object
additionalProperties: false
Expand Down Expand Up @@ -7453,12 +7403,6 @@ components:
application/json:
schema:
$ref: '#/components/schemas/OrganizationInvitationsWithPublicOrganizationData'
TOTP:
description: A TOTP (Time-based One-Time Password)
content:
application/json:
schema:
$ref: '#/components/schemas/TOTP'
Invitation.List:
description: List of invitations
content:
Expand Down

0 comments on commit d5a2a89

Please sign in to comment.