Skip to content

Commit eb955cb

Browse files
authored
Merge pull request #87 from clerk/update-openapi-specs-20260212-182811
chore: Update OpenAPI Specs
2 parents 95aaa31 + 8c7c585 commit eb955cb

File tree

6 files changed

+158
-0
lines changed

6 files changed

+158
-0
lines changed

bapi/2021-02-05.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4479,6 +4479,10 @@ paths:
44794479
type: string
44804480
description: A custom date/time denoting _when_ the organization was created, specified in RFC3339 format (e.g. `2012-10-20T07:15:20.902Z`).
44814481
nullable: true
4482+
role_set_key:
4483+
type: string
4484+
description: The key of the [role set](https://clerk.com/docs/guides/organizations/control-access/role-sets) to assign to this organization.
4485+
nullable: true
44824486
required:
44834487
- name
44844488
responses:
@@ -4584,6 +4588,10 @@ paths:
45844588
type: string
45854589
description: A custom date/time denoting _when_ the organization was created, specified in RFC3339 format (e.g. `2012-10-20T07:15:20.902Z`).
45864590
nullable: true
4591+
role_set_key:
4592+
type: string
4593+
description: The key of the [role set](https://clerk.com/docs/guides/organizations/control-access/role-sets) to assign to this organization.
4594+
nullable: true
45874595
responses:
45884596
'200':
45894597
$ref: '#/components/responses/Organization'
@@ -6492,6 +6500,10 @@ paths:
64926500
force_authn:
64936501
type: boolean
64946502
description: Enable or deactivate ForceAuthn
6503+
consent_verified_domains_deletion:
6504+
type: boolean
6505+
description: When enabling the connection, controls behavior when verified domains used for enrollment modes like automatic invitation or automatic suggestion already exist for the same domain. If true, those verified domains are removed and the connection is enabled. If false or omitted, the request fails when any such verified domain exists.
6506+
nullable: true
64956507
responses:
64966508
'200':
64976509
$ref: '#/components/responses/SAMLConnection'
@@ -11173,6 +11185,11 @@ components:
1117311185
format: int64
1117411186
description: |
1117511187
Unix timestamp of last activity.
11188+
role_set_key:
11189+
type: string
11190+
description: |
11191+
The key of the [role set](https://clerk.com/docs/guides/organizations/control-access/role-sets) assigned to this organization.
11192+
nullable: true
1117611193
required:
1117711194
- object
1117811195
- id
@@ -12571,6 +12588,9 @@ components:
1257112588
image_url:
1257212589
type: string
1257312590
description: URL of the payer's image/avatar.
12591+
credits_balance:
12592+
$ref: '#/components/schemas/CommerceMoneyResponse'
12593+
description: Current credits balance for the payer.
1257412594
created_at:
1257512595
type: integer
1257612596
format: int64

bapi/2024-10-01.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4479,6 +4479,10 @@ paths:
44794479
type: string
44804480
description: A custom date/time denoting _when_ the organization was created, specified in RFC3339 format (e.g. `2012-10-20T07:15:20.902Z`).
44814481
nullable: true
4482+
role_set_key:
4483+
type: string
4484+
description: The key of the [role set](https://clerk.com/docs/guides/organizations/control-access/role-sets) to assign to this organization.
4485+
nullable: true
44824486
required:
44834487
- name
44844488
responses:
@@ -4584,6 +4588,10 @@ paths:
45844588
type: string
45854589
description: A custom date/time denoting _when_ the organization was created, specified in RFC3339 format (e.g. `2012-10-20T07:15:20.902Z`).
45864590
nullable: true
4591+
role_set_key:
4592+
type: string
4593+
description: The key of the [role set](https://clerk.com/docs/guides/organizations/control-access/role-sets) to assign to this organization.
4594+
nullable: true
45874595
responses:
45884596
'200':
45894597
$ref: '#/components/responses/Organization'
@@ -6765,6 +6773,10 @@ paths:
67656773
force_authn:
67666774
type: boolean
67676775
description: Enable or deactivate ForceAuthn
6776+
consent_verified_domains_deletion:
6777+
type: boolean
6778+
description: When enabling the connection, controls behavior when verified domains used for enrollment modes like automatic invitation or automatic suggestion already exist for the same domain. If true, those verified domains are removed and the connection is enabled. If false or omitted, the request fails when any such verified domain exists.
6779+
nullable: true
67686780
responses:
67696781
'200':
67706782
$ref: '#/components/responses/SAMLConnection'
@@ -11446,6 +11458,11 @@ components:
1144611458
format: int64
1144711459
description: |
1144811460
Unix timestamp of last activity.
11461+
role_set_key:
11462+
type: string
11463+
description: |
11464+
The key of the [role set](https://clerk.com/docs/guides/organizations/control-access/role-sets) assigned to this organization.
11465+
nullable: true
1144911466
required:
1145011467
- object
1145111468
- id
@@ -12844,6 +12861,9 @@ components:
1284412861
image_url:
1284512862
type: string
1284612863
description: URL of the payer's image/avatar.
12864+
credits_balance:
12865+
$ref: '#/components/schemas/CommerceMoneyResponse'
12866+
description: Current credits balance for the payer.
1284712867
created_at:
1284812868
type: integer
1284912869
format: int64

bapi/2025-04-10.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4470,6 +4470,10 @@ paths:
44704470
type: string
44714471
description: A custom date/time denoting _when_ the organization was created, specified in RFC3339 format (e.g. `2012-10-20T07:15:20.902Z`).
44724472
nullable: true
4473+
role_set_key:
4474+
type: string
4475+
description: The key of the [role set](https://clerk.com/docs/guides/organizations/control-access/role-sets) to assign to this organization.
4476+
nullable: true
44734477
required:
44744478
- name
44754479
responses:
@@ -4575,6 +4579,10 @@ paths:
45754579
type: string
45764580
description: A custom date/time denoting _when_ the organization was created, specified in RFC3339 format (e.g. `2012-10-20T07:15:20.902Z`).
45774581
nullable: true
4582+
role_set_key:
4583+
type: string
4584+
description: The key of the [role set](https://clerk.com/docs/guides/organizations/control-access/role-sets) to assign to this organization.
4585+
nullable: true
45784586
responses:
45794587
'200':
45804588
$ref: '#/components/responses/Organization'
@@ -6756,6 +6764,10 @@ paths:
67566764
force_authn:
67576765
type: boolean
67586766
description: Enable or deactivate ForceAuthn
6767+
consent_verified_domains_deletion:
6768+
type: boolean
6769+
description: When enabling the connection, controls behavior when verified domains used for enrollment modes like automatic invitation or automatic suggestion already exist for the same domain. If true, those verified domains are removed and the connection is enabled. If false or omitted, the request fails when any such verified domain exists.
6770+
nullable: true
67596771
responses:
67606772
'200':
67616773
$ref: '#/components/responses/SAMLConnection'
@@ -11474,6 +11486,11 @@ components:
1147411486
format: int64
1147511487
description: |
1147611488
Unix timestamp of last activity.
11489+
role_set_key:
11490+
type: string
11491+
description: |
11492+
The key of the [role set](https://clerk.com/docs/guides/organizations/control-access/role-sets) assigned to this organization.
11493+
nullable: true
1147711494
required:
1147811495
- object
1147911496
- id
@@ -12147,6 +12164,9 @@ components:
1214712164
image_url:
1214812165
type: string
1214912166
description: URL of the payer's image/avatar.
12167+
credits_balance:
12168+
$ref: '#/components/schemas/CommerceMoneyResponse'
12169+
description: Current credits balance for the payer.
1215012170
created_at:
1215112171
type: integer
1215212172
format: int64

bapi/2025-11-10.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4542,6 +4542,10 @@ paths:
45424542
type: string
45434543
description: A custom date/time denoting _when_ the organization was created, specified in RFC3339 format (e.g. `2012-10-20T07:15:20.902Z`).
45444544
nullable: true
4545+
role_set_key:
4546+
type: string
4547+
description: The key of the [role set](https://clerk.com/docs/guides/organizations/control-access/role-sets) to assign to this organization.
4548+
nullable: true
45454549
required:
45464550
- name
45474551
responses:
@@ -4647,6 +4651,10 @@ paths:
46474651
type: string
46484652
description: A custom date/time denoting _when_ the organization was created, specified in RFC3339 format (e.g. `2012-10-20T07:15:20.902Z`).
46494653
nullable: true
4654+
role_set_key:
4655+
type: string
4656+
description: The key of the [role set](https://clerk.com/docs/guides/organizations/control-access/role-sets) to assign to this organization.
4657+
nullable: true
46504658
responses:
46514659
'200':
46524660
$ref: '#/components/responses/Organization'
@@ -6828,6 +6836,10 @@ paths:
68286836
force_authn:
68296837
type: boolean
68306838
description: Enable or deactivate ForceAuthn
6839+
consent_verified_domains_deletion:
6840+
type: boolean
6841+
description: When enabling the connection, controls behavior when verified domains used for enrollment modes like automatic invitation or automatic suggestion already exist for the same domain. If true, those verified domains are removed and the connection is enabled. If false or omitted, the request fails when any such verified domain exists.
6842+
nullable: true
68316843
responses:
68326844
'200':
68336845
$ref: '#/components/responses/SAMLConnection'
@@ -11736,6 +11748,11 @@ components:
1173611748
format: int64
1173711749
description: |
1173811750
Unix timestamp of last activity.
11751+
role_set_key:
11752+
type: string
11753+
description: |
11754+
The key of the [role set](https://clerk.com/docs/guides/organizations/control-access/role-sets) assigned to this organization.
11755+
nullable: true
1173911756
required:
1174011757
- object
1174111758
- id
@@ -12371,6 +12388,9 @@ components:
1237112388
image_url:
1237212389
type: string
1237312390
description: URL of the payer's image/avatar.
12391+
credits_balance:
12392+
$ref: '#/components/schemas/CommerceMoneyResponse'
12393+
description: Current credits balance for the payer.
1237412394
created_at:
1237512395
type: integer
1237612396
format: int64
@@ -14582,6 +14602,9 @@ components:
1458214602
image_url:
1458314603
type: string
1458414604
description: URL of the payer's image/avatar.
14605+
credits_balance:
14606+
$ref: '#/components/schemas/CommerceMoneyResponse'
14607+
description: Current credits balance for the payer.
1458514608
created_at:
1458614609
type: integer
1458714610
format: int64

fapi/2025-11-10.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11509,6 +11509,9 @@ components:
1150911509
type: string
1151011510
format: uri
1151111511
description: URL of the payer's image/avatar
11512+
credits_balance:
11513+
$ref: '#/components/schemas/BillingMoneyResponse'
11514+
description: Current credits balance for the payer
1151211515
created_at:
1151311516
type: integer
1151411517
format: int64
@@ -11854,6 +11857,66 @@ components:
1185411857
required:
1185511858
- response
1185611859
- client
11860+
BillingProrationCreditDetail:
11861+
type: object
11862+
additionalProperties: false
11863+
properties:
11864+
amount:
11865+
$ref: '#/components/schemas/BillingMoneyResponse'
11866+
description: Credit amount with formatting
11867+
cycle_days_remaining:
11868+
type: integer
11869+
format: int64
11870+
description: Number of days remaining in the billing cycle
11871+
cycle_days_total:
11872+
type: integer
11873+
format: int64
11874+
description: Total number of days in the billing cycle
11875+
cycle_remaining_percent:
11876+
type: number
11877+
format: double
11878+
description: Percentage of the billing cycle remaining
11879+
required:
11880+
- amount
11881+
- cycle_days_remaining
11882+
- cycle_days_total
11883+
- cycle_remaining_percent
11884+
BillingPayerCreditResponse:
11885+
type: object
11886+
additionalProperties: false
11887+
properties:
11888+
remaining_balance:
11889+
$ref: '#/components/schemas/BillingMoneyResponse'
11890+
description: The payer's remaining credit balance after credit is applied for this checkout (in cents)
11891+
applied_amount:
11892+
$ref: '#/components/schemas/BillingMoneyResponse'
11893+
description: The amount of payer credit applied to this checkout (in cents)
11894+
required:
11895+
- remaining_balance
11896+
- applied_amount
11897+
BillingCreditsResponse:
11898+
type: object
11899+
additionalProperties: false
11900+
properties:
11901+
proration:
11902+
type: object
11903+
nullable: true
11904+
allOf:
11905+
- $ref: '#/components/schemas/BillingProrationCreditDetail'
11906+
description: Proration credit details from unused subscription time
11907+
payer:
11908+
type: object
11909+
nullable: true
11910+
allOf:
11911+
- $ref: '#/components/schemas/BillingPayerCreditResponse'
11912+
description: Payer credit details from the payer's credit balance
11913+
total:
11914+
$ref: '#/components/schemas/BillingMoneyResponse'
11915+
description: Total credits applied
11916+
required:
11917+
- proration
11918+
- payer
11919+
- total
1185711920
BillingCheckoutTotals:
1185811921
type: object
1185911922
additionalProperties: false
@@ -11891,12 +11954,19 @@ components:
1189111954
allOf:
1189211955
- $ref: '#/components/schemas/BillingMoneyResponse'
1189311956
description: The amount of credit that will be consumed before the payment method is charged
11957+
credits:
11958+
type: object
11959+
nullable: true
11960+
allOf:
11961+
- $ref: '#/components/schemas/BillingCreditsResponse'
11962+
description: Unified credits breakdown
1189411963
required:
1189511964
- subtotal
1189611965
- tax_total
1189711966
- grand_total
1189811967
- total_due_after_free_trial
1189911968
- credit
11969+
- credits
1190011970
- total_due_now
1190111971
BillingCheckout:
1190211972
type: object

webhooks/2025-04-15.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1997,6 +1997,11 @@ components:
19971997
format: int64
19981998
description: |
19991999
Unix timestamp of last activity.
2000+
role_set_key:
2001+
type: string
2002+
description: |
2003+
The key of the [role set](https://clerk.com/docs/guides/organizations/control-access/role-sets) assigned to this organization.
2004+
nullable: true
20002005
required:
20012006
- object
20022007
- id

0 commit comments

Comments
 (0)