Skip to content

Commit ee66304

Browse files
chore: Update OpenAPI Specs (#35)
Co-authored-by: Clerk Bot <cookie@clerk.dev>
1 parent 0d28e39 commit ee66304

File tree

6 files changed

+570
-9
lines changed

6 files changed

+570
-9
lines changed

bapi/2021-02-05.yml

Lines changed: 185 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6603,6 +6603,46 @@ components:
66036603
- reserved
66046604
- created_at
66056605
- updated_at
6606+
Token:
6607+
type: object
6608+
additionalProperties: false
6609+
properties:
6610+
object:
6611+
type: string
6612+
description: |
6613+
String representing the object's type. Objects of the same type share the same value.
6614+
enum:
6615+
- token
6616+
jwt:
6617+
type: string
6618+
description: |
6619+
String representing the encoded jwt value.
6620+
required:
6621+
- object
6622+
- jwt
6623+
Cookies:
6624+
type: object
6625+
additionalProperties: false
6626+
properties:
6627+
object:
6628+
type: string
6629+
description: String representing the object's type. Objects of the same type share the same value.
6630+
enum:
6631+
- cookies
6632+
cookies:
6633+
type: array
6634+
description: Array of cookie directives.
6635+
items:
6636+
type: string
6637+
required:
6638+
- object
6639+
- cookies
6640+
SessionRefresh:
6641+
oneOf:
6642+
- $ref: '#/components/schemas/Token'
6643+
- $ref: '#/components/schemas/Cookies'
6644+
discriminator:
6645+
propertyName: object
66066646
Template:
66076647
type: object
66086648
additionalProperties: false
@@ -6816,6 +6856,149 @@ components:
68166856
- name
68176857
- last_used_at
68186858
- verification
6859+
Oauth:
6860+
type: object
6861+
additionalProperties: false
6862+
properties:
6863+
status:
6864+
type: string
6865+
x-speakeasy-unknown-values: allow
6866+
enum:
6867+
- unverified
6868+
- verified
6869+
- failed
6870+
- expired
6871+
- transferable
6872+
strategy:
6873+
type: string
6874+
x-speakeasy-unknown-values: allow
6875+
pattern: ^oauth_(?:(?:token_)|(?:custom_))?[a-z]+$
6876+
external_verification_redirect_url:
6877+
type: string
6878+
error:
6879+
type: object
6880+
nullable: true
6881+
oneOf:
6882+
- $ref: '#/components/schemas/ClerkError'
6883+
expire_at:
6884+
type: integer
6885+
attempts:
6886+
type: integer
6887+
nullable: true
6888+
verified_at_client:
6889+
type: string
6890+
nullable: true
6891+
required:
6892+
- status
6893+
- strategy
6894+
- attempts
6895+
- expire_at
6896+
GoogleOneTap:
6897+
type: object
6898+
additionalProperties: false
6899+
properties:
6900+
status:
6901+
type: string
6902+
enum:
6903+
- unverified
6904+
- verified
6905+
strategy:
6906+
type: string
6907+
enum:
6908+
- google_one_tap
6909+
expire_at:
6910+
type: integer
6911+
nullable: true
6912+
attempts:
6913+
type: integer
6914+
nullable: true
6915+
verified_at_client:
6916+
type: string
6917+
nullable: true
6918+
error:
6919+
type: object
6920+
nullable: true
6921+
oneOf:
6922+
- $ref: '#/components/schemas/ClerkError'
6923+
required:
6924+
- status
6925+
- strategy
6926+
- attempts
6927+
- expire_at
6928+
ExternalAccountWithVerification:
6929+
type: object
6930+
additionalProperties: true
6931+
properties:
6932+
object:
6933+
type: string
6934+
description: String representing the object's type. Objects of the same type share the same value.
6935+
enum:
6936+
- external_account
6937+
- facebook_account
6938+
- google_account
6939+
id:
6940+
type: string
6941+
provider:
6942+
type: string
6943+
identification_id:
6944+
type: string
6945+
provider_user_id:
6946+
description: The unique ID of the user in the external provider's system
6947+
type: string
6948+
approved_scopes:
6949+
type: string
6950+
email_address:
6951+
type: string
6952+
first_name:
6953+
type: string
6954+
last_name:
6955+
type: string
6956+
avatar_url:
6957+
type: string
6958+
deprecated: true
6959+
description: Please use `image_url` instead
6960+
image_url:
6961+
type: string
6962+
nullable: true
6963+
username:
6964+
type: string
6965+
nullable: true
6966+
public_metadata:
6967+
type: object
6968+
additionalProperties: true
6969+
label:
6970+
type: string
6971+
nullable: true
6972+
created_at:
6973+
type: integer
6974+
format: int64
6975+
description: |
6976+
Unix timestamp of creation
6977+
updated_at:
6978+
type: integer
6979+
format: int64
6980+
description: |
6981+
Unix timestamp of creation
6982+
verification:
6983+
type: object
6984+
nullable: true
6985+
oneOf:
6986+
- $ref: '#/components/schemas/Oauth'
6987+
- $ref: '#/components/schemas/GoogleOneTap'
6988+
required:
6989+
- object
6990+
- id
6991+
- provider
6992+
- identification_id
6993+
- provider_user_id
6994+
- approved_scopes
6995+
- email_address
6996+
- first_name
6997+
- last_name
6998+
- public_metadata
6999+
- created_at
7000+
- updated_at
7001+
- verification
68197002
SAML:
68207003
type: object
68217004
additionalProperties: false
@@ -7032,7 +7215,7 @@ components:
70327215
external_accounts:
70337216
type: array
70347217
items:
7035-
type: object
7218+
$ref: '#/components/schemas/ExternalAccountWithVerification'
70367219
saml_accounts:
70377220
type: array
70387221
items:
@@ -8598,7 +8781,7 @@ components:
85988781
content:
85998782
application/json:
86008783
schema:
8601-
$ref: '#/components/schemas/Session'
8784+
$ref: '#/components/schemas/SessionRefresh'
86028785
Template.List:
86038786
description: Success
86048787
content:

0 commit comments

Comments
 (0)