@workos/openapi-spec 0.101.0 → 0.103.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/open-api-spec.yaml +125 -57
- package/dist/types.d.ts +72 -5
- package/package.json +4 -4
package/dist/open-api-spec.yaml
CHANGED
|
@@ -15014,7 +15014,7 @@ paths:
|
|
|
15014
15014
|
content:
|
|
15015
15015
|
application/json:
|
|
15016
15016
|
schema:
|
|
15017
|
-
$ref: '#/components/schemas/
|
|
15017
|
+
$ref: '#/components/schemas/OrganizationConnectedAccountDto'
|
|
15018
15018
|
responses:
|
|
15019
15019
|
'201':
|
|
15020
15020
|
description: The connected account was created successfully.
|
|
@@ -15044,8 +15044,21 @@ paths:
|
|
|
15044
15044
|
updated_at: '2024-01-16T14:20:00.000Z'
|
|
15045
15045
|
'401':
|
|
15046
15046
|
description: The request is missing a valid API key.
|
|
15047
|
+
'403':
|
|
15048
|
+
description: The `user_id` is not an active member of the organization.
|
|
15049
|
+
content:
|
|
15050
|
+
application/json:
|
|
15051
|
+
schema:
|
|
15052
|
+
type: object
|
|
15053
|
+
properties:
|
|
15054
|
+
message:
|
|
15055
|
+
type: string
|
|
15056
|
+
description: A human-readable description of the error.
|
|
15057
|
+
example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
|
|
15058
|
+
required:
|
|
15059
|
+
- message
|
|
15047
15060
|
'404':
|
|
15048
|
-
description: The organization or data integration was not found.
|
|
15061
|
+
description: The organization, user, or data integration was not found.
|
|
15049
15062
|
content:
|
|
15050
15063
|
application/json:
|
|
15051
15064
|
schema:
|
|
@@ -15187,7 +15200,7 @@ paths:
|
|
|
15187
15200
|
content:
|
|
15188
15201
|
application/json:
|
|
15189
15202
|
schema:
|
|
15190
|
-
$ref: '#/components/schemas/
|
|
15203
|
+
$ref: '#/components/schemas/OrganizationConnectedAccountDto'
|
|
15191
15204
|
responses:
|
|
15192
15205
|
'200':
|
|
15193
15206
|
description: The connected account was updated successfully.
|
|
@@ -15230,8 +15243,21 @@ paths:
|
|
|
15230
15243
|
- message
|
|
15231
15244
|
'401':
|
|
15232
15245
|
description: The request is missing a valid API key.
|
|
15246
|
+
'403':
|
|
15247
|
+
description: The `user_id` is not an active member of the organization.
|
|
15248
|
+
content:
|
|
15249
|
+
application/json:
|
|
15250
|
+
schema:
|
|
15251
|
+
type: object
|
|
15252
|
+
properties:
|
|
15253
|
+
message:
|
|
15254
|
+
type: string
|
|
15255
|
+
description: A human-readable description of the error.
|
|
15256
|
+
example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
|
|
15257
|
+
required:
|
|
15258
|
+
- message
|
|
15233
15259
|
'404':
|
|
15234
|
-
description: The organization or connected account was not found.
|
|
15260
|
+
description: The organization, user, or connected account was not found.
|
|
15235
15261
|
content:
|
|
15236
15262
|
application/json:
|
|
15237
15263
|
schema:
|
|
@@ -20274,7 +20300,7 @@ paths:
|
|
|
20274
20300
|
summary: Create an organization membership
|
|
20275
20301
|
tags:
|
|
20276
20302
|
- user-management.organization-membership
|
|
20277
|
-
x-mutually-exclusive-body-groups: &
|
|
20303
|
+
x-mutually-exclusive-body-groups: &ref_18
|
|
20278
20304
|
role:
|
|
20279
20305
|
optional: true
|
|
20280
20306
|
variants:
|
|
@@ -20458,7 +20484,7 @@ paths:
|
|
|
20458
20484
|
summary: Update an organization membership
|
|
20459
20485
|
tags:
|
|
20460
20486
|
- user-management.organization-membership
|
|
20461
|
-
x-mutually-exclusive-body-groups: &
|
|
20487
|
+
x-mutually-exclusive-body-groups: &ref_19
|
|
20462
20488
|
role:
|
|
20463
20489
|
optional: true
|
|
20464
20490
|
variants:
|
|
@@ -21778,7 +21804,7 @@ paths:
|
|
|
21778
21804
|
summary: Create a user
|
|
21779
21805
|
tags:
|
|
21780
21806
|
- user-management.users
|
|
21781
|
-
x-mutually-exclusive-body-groups: &
|
|
21807
|
+
x-mutually-exclusive-body-groups: &ref_20
|
|
21782
21808
|
password:
|
|
21783
21809
|
optional: true
|
|
21784
21810
|
variants:
|
|
@@ -22071,7 +22097,7 @@ paths:
|
|
|
22071
22097
|
summary: Update a user
|
|
22072
22098
|
tags:
|
|
22073
22099
|
- user-management.users
|
|
22074
|
-
x-mutually-exclusive-body-groups: &
|
|
22100
|
+
x-mutually-exclusive-body-groups: &ref_24
|
|
22075
22101
|
password:
|
|
22076
22102
|
optional: true
|
|
22077
22103
|
variants:
|
|
@@ -28155,7 +28181,7 @@ components:
|
|
|
28155
28181
|
Updates to a custom provider's OAuth definition. Only valid for
|
|
28156
28182
|
custom-provider integrations.
|
|
28157
28183
|
$ref: '#/components/schemas/UpdateCustomProviderDefinitionDto'
|
|
28158
|
-
|
|
28184
|
+
OrganizationConnectedAccountDto:
|
|
28159
28185
|
type: object
|
|
28160
28186
|
properties:
|
|
28161
28187
|
access_token:
|
|
@@ -28175,7 +28201,7 @@ components:
|
|
|
28175
28201
|
format: date-time
|
|
28176
28202
|
scopes:
|
|
28177
28203
|
description: The OAuth scopes granted for this connection.
|
|
28178
|
-
example:
|
|
28204
|
+
example: &ref_16
|
|
28179
28205
|
- repo
|
|
28180
28206
|
- user:email
|
|
28181
28207
|
type: array
|
|
@@ -28183,13 +28209,53 @@ components:
|
|
|
28183
28209
|
type: string
|
|
28184
28210
|
state:
|
|
28185
28211
|
type: string
|
|
28186
|
-
enum:
|
|
28212
|
+
enum: &ref_17
|
|
28187
28213
|
- connected
|
|
28188
28214
|
- needs_reauthorization
|
|
28189
28215
|
description: >-
|
|
28190
28216
|
Explicitly set the state of the connected account. When omitted, the
|
|
28191
28217
|
state is derived from the token combination provided.
|
|
28192
28218
|
example: connected
|
|
28219
|
+
user_id:
|
|
28220
|
+
type: string
|
|
28221
|
+
description: >-
|
|
28222
|
+
The [User](/reference/authkit/user) identifier of the organization
|
|
28223
|
+
member on whose behalf the connected account is being imported or
|
|
28224
|
+
updated. The user must be an active member of the organization.
|
|
28225
|
+
example: user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
28226
|
+
required:
|
|
28227
|
+
- user_id
|
|
28228
|
+
ConnectedAccountDto:
|
|
28229
|
+
type: object
|
|
28230
|
+
properties:
|
|
28231
|
+
access_token:
|
|
28232
|
+
type: string
|
|
28233
|
+
description: The OAuth access token for the connected account.
|
|
28234
|
+
example: gho_16C7e42F292c6912E7710c838347Ae178B4a
|
|
28235
|
+
refresh_token:
|
|
28236
|
+
type: string
|
|
28237
|
+
description: The OAuth refresh token for the connected account.
|
|
28238
|
+
example: ghr_xxxxxxxxxxxxxxxxxxxx
|
|
28239
|
+
expires_at:
|
|
28240
|
+
type: string
|
|
28241
|
+
description: >-
|
|
28242
|
+
The ISO-8601 timestamp when the access token expires. Required when
|
|
28243
|
+
`access_token` is provided for tokens that expire.
|
|
28244
|
+
example: '2025-12-31T23:59:59.000Z'
|
|
28245
|
+
format: date-time
|
|
28246
|
+
scopes:
|
|
28247
|
+
description: The OAuth scopes granted for this connection.
|
|
28248
|
+
example: *ref_16
|
|
28249
|
+
type: array
|
|
28250
|
+
items:
|
|
28251
|
+
type: string
|
|
28252
|
+
state:
|
|
28253
|
+
type: string
|
|
28254
|
+
enum: *ref_17
|
|
28255
|
+
description: >-
|
|
28256
|
+
Explicitly set the state of the connected account. When omitted, the
|
|
28257
|
+
state is derived from the token combination provided.
|
|
28258
|
+
example: connected
|
|
28193
28259
|
GenerateLinkDto:
|
|
28194
28260
|
type: object
|
|
28195
28261
|
properties:
|
|
@@ -28695,9 +28761,9 @@ components:
|
|
|
28695
28761
|
x-exclude-from-lint: true
|
|
28696
28762
|
required:
|
|
28697
28763
|
- role_slug
|
|
28698
|
-
x-mutually-exclusive-body-groups: *
|
|
28764
|
+
x-mutually-exclusive-body-groups: *ref_18
|
|
28699
28765
|
UpdateUserlandUserOrganizationMembershipDto:
|
|
28700
|
-
x-mutually-exclusive-body-groups: *
|
|
28766
|
+
x-mutually-exclusive-body-groups: *ref_19
|
|
28701
28767
|
oneOf:
|
|
28702
28768
|
- type: object
|
|
28703
28769
|
not:
|
|
@@ -28789,7 +28855,9 @@ components:
|
|
|
28789
28855
|
email:
|
|
28790
28856
|
type: string
|
|
28791
28857
|
format: email
|
|
28792
|
-
description:
|
|
28858
|
+
description: >-
|
|
28859
|
+
The email address of the user. WorkOS trims whitespace and
|
|
28860
|
+
converts the address to lowercase before storing it.
|
|
28793
28861
|
example: marcelina.davis@example.com
|
|
28794
28862
|
first_name:
|
|
28795
28863
|
type:
|
|
@@ -28821,7 +28889,7 @@ components:
|
|
|
28821
28889
|
- 'null'
|
|
28822
28890
|
additionalProperties: *ref_13
|
|
28823
28891
|
maxProperties: 50
|
|
28824
|
-
example: &
|
|
28892
|
+
example: &ref_21
|
|
28825
28893
|
timezone: America/New_York
|
|
28826
28894
|
description: >-
|
|
28827
28895
|
Object containing metadata key/value pairs associated with the
|
|
@@ -28920,7 +28988,7 @@ components:
|
|
|
28920
28988
|
example: $2a$10$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy
|
|
28921
28989
|
password_hash_type:
|
|
28922
28990
|
type: string
|
|
28923
|
-
enum: &
|
|
28991
|
+
enum: &ref_22
|
|
28924
28992
|
- bcrypt
|
|
28925
28993
|
- firebase-scrypt
|
|
28926
28994
|
- ssha
|
|
@@ -28935,7 +29003,7 @@ components:
|
|
|
28935
29003
|
example: bcrypt
|
|
28936
29004
|
password_salt_position:
|
|
28937
29005
|
type: string
|
|
28938
|
-
enum: &
|
|
29006
|
+
enum: &ref_23
|
|
28939
29007
|
- prefix
|
|
28940
29008
|
- suffix
|
|
28941
29009
|
description: >-
|
|
@@ -28956,7 +29024,7 @@ components:
|
|
|
28956
29024
|
x-exclude-from-lint: true
|
|
28957
29025
|
required:
|
|
28958
29026
|
- password
|
|
28959
|
-
x-mutually-exclusive-body-groups: *
|
|
29027
|
+
x-mutually-exclusive-body-groups: *ref_20
|
|
28960
29028
|
UpdateUserlandUserDto:
|
|
28961
29029
|
allOf:
|
|
28962
29030
|
- type: object
|
|
@@ -28988,7 +29056,7 @@ components:
|
|
|
28988
29056
|
- 'null'
|
|
28989
29057
|
additionalProperties: *ref_13
|
|
28990
29058
|
maxProperties: 50
|
|
28991
|
-
example: *
|
|
29059
|
+
example: *ref_21
|
|
28992
29060
|
description: >-
|
|
28993
29061
|
Object containing metadata key/value pairs associated with the
|
|
28994
29062
|
user.
|
|
@@ -29070,7 +29138,7 @@ components:
|
|
|
29070
29138
|
example: $2a$10$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy
|
|
29071
29139
|
password_hash_type:
|
|
29072
29140
|
type: string
|
|
29073
|
-
enum: *
|
|
29141
|
+
enum: *ref_22
|
|
29074
29142
|
description: >-
|
|
29075
29143
|
The algorithm originally used to hash the password, used
|
|
29076
29144
|
when providing a `password_hash`. Required with
|
|
@@ -29078,7 +29146,7 @@ components:
|
|
|
29078
29146
|
example: bcrypt
|
|
29079
29147
|
password_salt_position:
|
|
29080
29148
|
type: string
|
|
29081
|
-
enum: *
|
|
29149
|
+
enum: *ref_23
|
|
29082
29150
|
description: >-
|
|
29083
29151
|
The position of the salt relative to the password when the
|
|
29084
29152
|
`password_hash` digest was computed: `prefix` for `hash(salt
|
|
@@ -29097,7 +29165,7 @@ components:
|
|
|
29097
29165
|
x-exclude-from-lint: true
|
|
29098
29166
|
required:
|
|
29099
29167
|
- password
|
|
29100
|
-
x-mutually-exclusive-body-groups: *
|
|
29168
|
+
x-mutually-exclusive-body-groups: *ref_24
|
|
29101
29169
|
VerifyEmailAddressDto:
|
|
29102
29170
|
type: object
|
|
29103
29171
|
properties:
|
|
@@ -29206,7 +29274,7 @@ components:
|
|
|
29206
29274
|
description: The events that the Webhook Endpoint is subscribed to.
|
|
29207
29275
|
items:
|
|
29208
29276
|
type: string
|
|
29209
|
-
enum: &
|
|
29277
|
+
enum: &ref_25
|
|
29210
29278
|
- agent.blueprint.created
|
|
29211
29279
|
- agent.blueprint.deleted
|
|
29212
29280
|
- agent.blueprint.updated
|
|
@@ -29337,7 +29405,7 @@ components:
|
|
|
29337
29405
|
description: The events that the Webhook Endpoint is subscribed to.
|
|
29338
29406
|
items:
|
|
29339
29407
|
type: string
|
|
29340
|
-
enum: *
|
|
29408
|
+
enum: *ref_25
|
|
29341
29409
|
example:
|
|
29342
29410
|
- user.created
|
|
29343
29411
|
- dsync.user.created
|
|
@@ -32992,7 +33060,7 @@ components:
|
|
|
32992
33060
|
description: >-
|
|
32993
33061
|
An object containing the custom attribute mapping for the Directory
|
|
32994
33062
|
Provider.
|
|
32995
|
-
example: &
|
|
33063
|
+
example: &ref_31
|
|
32996
33064
|
department: Engineering
|
|
32997
33065
|
job_title: Software Engineer
|
|
32998
33066
|
role:
|
|
@@ -33231,7 +33299,7 @@ components:
|
|
|
33231
33299
|
type: object
|
|
33232
33300
|
additionalProperties: {}
|
|
33233
33301
|
description: The event payload.
|
|
33234
|
-
example: &
|
|
33302
|
+
example: &ref_26
|
|
33235
33303
|
id: directory_user_01E1JG7J09H96KYP8HM9B0G5SJ
|
|
33236
33304
|
directory_id: directory_01ECAZ4NV9QMV47GW873HDCX74
|
|
33237
33305
|
organization_id: org_01EZTR6WYX1A0DSE2CYMGXQ24Y
|
|
@@ -33266,11 +33334,11 @@ components:
|
|
|
33266
33334
|
- data
|
|
33267
33335
|
- created_at
|
|
33268
33336
|
description: An event emitted by WorkOS.
|
|
33269
|
-
example: &
|
|
33337
|
+
example: &ref_36
|
|
33270
33338
|
object: event
|
|
33271
33339
|
id: event_01EHZNVPK3SFK441A1RGBFSHRT
|
|
33272
33340
|
event: dsync.user.created
|
|
33273
|
-
data: *
|
|
33341
|
+
data: *ref_26
|
|
33274
33342
|
created_at: '2021-06-25T19:07:33.155Z'
|
|
33275
33343
|
context: {}
|
|
33276
33344
|
- oneOf:
|
|
@@ -33470,7 +33538,7 @@ components:
|
|
|
33470
33538
|
description: >-
|
|
33471
33539
|
Permission slugs forming the ceiling on what sessions
|
|
33472
33540
|
minted from this blueprint may do.
|
|
33473
|
-
example: &
|
|
33541
|
+
example: &ref_27
|
|
33474
33542
|
- crm:read
|
|
33475
33543
|
- email:send
|
|
33476
33544
|
invocable_by:
|
|
@@ -33483,7 +33551,7 @@ components:
|
|
|
33483
33551
|
description: >-
|
|
33484
33552
|
Role slugs whose members may mint user-delegated
|
|
33485
33553
|
sessions from this blueprint.
|
|
33486
|
-
example: &
|
|
33554
|
+
example: &ref_28
|
|
33487
33555
|
- manager
|
|
33488
33556
|
organization_ids:
|
|
33489
33557
|
type: array
|
|
@@ -33492,7 +33560,7 @@ components:
|
|
|
33492
33560
|
description: >-
|
|
33493
33561
|
Organizations in which autonomous sessions may be
|
|
33494
33562
|
minted from this blueprint.
|
|
33495
|
-
example: &
|
|
33563
|
+
example: &ref_29
|
|
33496
33564
|
- org_01EHWNCE74X7JSDV0X3SZ3KJNY
|
|
33497
33565
|
required:
|
|
33498
33566
|
- role_slugs
|
|
@@ -33651,7 +33719,7 @@ components:
|
|
|
33651
33719
|
description: >-
|
|
33652
33720
|
Permission slugs forming the ceiling on what sessions
|
|
33653
33721
|
minted from this blueprint may do.
|
|
33654
|
-
example: *
|
|
33722
|
+
example: *ref_27
|
|
33655
33723
|
invocable_by:
|
|
33656
33724
|
type: object
|
|
33657
33725
|
properties:
|
|
@@ -33662,7 +33730,7 @@ components:
|
|
|
33662
33730
|
description: >-
|
|
33663
33731
|
Role slugs whose members may mint user-delegated
|
|
33664
33732
|
sessions from this blueprint.
|
|
33665
|
-
example: *
|
|
33733
|
+
example: *ref_28
|
|
33666
33734
|
organization_ids:
|
|
33667
33735
|
type: array
|
|
33668
33736
|
items:
|
|
@@ -33670,7 +33738,7 @@ components:
|
|
|
33670
33738
|
description: >-
|
|
33671
33739
|
Organizations in which autonomous sessions may be
|
|
33672
33740
|
minted from this blueprint.
|
|
33673
|
-
example: *
|
|
33741
|
+
example: *ref_29
|
|
33674
33742
|
required:
|
|
33675
33743
|
- role_slugs
|
|
33676
33744
|
- organization_ids
|
|
@@ -34706,7 +34774,7 @@ components:
|
|
|
34706
34774
|
items:
|
|
34707
34775
|
type: string
|
|
34708
34776
|
description: The permissions granted to the API key.
|
|
34709
|
-
example: &
|
|
34777
|
+
example: &ref_30
|
|
34710
34778
|
- users:read
|
|
34711
34779
|
- users:write
|
|
34712
34780
|
created_at:
|
|
@@ -34832,7 +34900,7 @@ components:
|
|
|
34832
34900
|
items:
|
|
34833
34901
|
type: string
|
|
34834
34902
|
description: The permissions granted to the API key.
|
|
34835
|
-
example: *
|
|
34903
|
+
example: *ref_30
|
|
34836
34904
|
created_at:
|
|
34837
34905
|
type: string
|
|
34838
34906
|
description: The timestamp when the API key was created.
|
|
@@ -34956,7 +35024,7 @@ components:
|
|
|
34956
35024
|
items:
|
|
34957
35025
|
type: string
|
|
34958
35026
|
description: The permissions granted to the API key.
|
|
34959
|
-
example: *
|
|
35027
|
+
example: *ref_30
|
|
34960
35028
|
created_at:
|
|
34961
35029
|
type: string
|
|
34962
35030
|
description: The timestamp when the API key was created.
|
|
@@ -37823,7 +37891,7 @@ components:
|
|
|
37823
37891
|
description: >-
|
|
37824
37892
|
An object containing the custom attribute mapping for
|
|
37825
37893
|
the Directory Provider.
|
|
37826
|
-
example: *
|
|
37894
|
+
example: *ref_31
|
|
37827
37895
|
role:
|
|
37828
37896
|
$ref: '#/components/schemas/SlimRole'
|
|
37829
37897
|
roles:
|
|
@@ -38013,7 +38081,7 @@ components:
|
|
|
38013
38081
|
description: >-
|
|
38014
38082
|
Labels assigned to the Feature Flag for categorizing and
|
|
38015
38083
|
filtering.
|
|
38016
|
-
example: &
|
|
38084
|
+
example: &ref_32
|
|
38017
38085
|
- reports
|
|
38018
38086
|
enabled:
|
|
38019
38087
|
type: boolean
|
|
@@ -38174,7 +38242,7 @@ components:
|
|
|
38174
38242
|
description: >-
|
|
38175
38243
|
Labels assigned to the Feature Flag for categorizing and
|
|
38176
38244
|
filtering.
|
|
38177
|
-
example: *
|
|
38245
|
+
example: *ref_32
|
|
38178
38246
|
enabled:
|
|
38179
38247
|
type: boolean
|
|
38180
38248
|
description: >-
|
|
@@ -38334,7 +38402,7 @@ components:
|
|
|
38334
38402
|
description: >-
|
|
38335
38403
|
Labels assigned to the Feature Flag for categorizing and
|
|
38336
38404
|
filtering.
|
|
38337
|
-
example: *
|
|
38405
|
+
example: *ref_32
|
|
38338
38406
|
enabled:
|
|
38339
38407
|
type: boolean
|
|
38340
38408
|
description: >-
|
|
@@ -38614,7 +38682,7 @@ components:
|
|
|
38614
38682
|
description: >-
|
|
38615
38683
|
Labels assigned to the Feature Flag for categorizing and
|
|
38616
38684
|
filtering.
|
|
38617
|
-
example: *
|
|
38685
|
+
example: *ref_32
|
|
38618
38686
|
enabled:
|
|
38619
38687
|
type: boolean
|
|
38620
38688
|
description: >-
|
|
@@ -39602,7 +39670,7 @@ components:
|
|
|
39602
39670
|
description: >-
|
|
39603
39671
|
Object containing [metadata](/authkit/metadata)
|
|
39604
39672
|
key/value pairs associated with the Organization.
|
|
39605
|
-
example: &
|
|
39673
|
+
example: &ref_33
|
|
39606
39674
|
tier: diamond
|
|
39607
39675
|
propertyNames:
|
|
39608
39676
|
maxLength: 40
|
|
@@ -39752,7 +39820,7 @@ components:
|
|
|
39752
39820
|
description: >-
|
|
39753
39821
|
Object containing [metadata](/authkit/metadata)
|
|
39754
39822
|
key/value pairs associated with the Organization.
|
|
39755
|
-
example: *
|
|
39823
|
+
example: *ref_33
|
|
39756
39824
|
propertyNames:
|
|
39757
39825
|
maxLength: 40
|
|
39758
39826
|
maxProperties: 50
|
|
@@ -40579,7 +40647,7 @@ components:
|
|
|
40579
40647
|
items:
|
|
40580
40648
|
type: string
|
|
40581
40649
|
description: The permissions granted by the role.
|
|
40582
|
-
example: &
|
|
40650
|
+
example: &ref_34
|
|
40583
40651
|
- users:read
|
|
40584
40652
|
- users:write
|
|
40585
40653
|
created_at:
|
|
@@ -40663,7 +40731,7 @@ components:
|
|
|
40663
40731
|
items:
|
|
40664
40732
|
type: string
|
|
40665
40733
|
description: The permissions granted by the role.
|
|
40666
|
-
example: *
|
|
40734
|
+
example: *ref_34
|
|
40667
40735
|
created_at:
|
|
40668
40736
|
format: date-time
|
|
40669
40737
|
type: string
|
|
@@ -40745,7 +40813,7 @@ components:
|
|
|
40745
40813
|
items:
|
|
40746
40814
|
type: string
|
|
40747
40815
|
description: The permissions granted by the role.
|
|
40748
|
-
example: *
|
|
40816
|
+
example: *ref_34
|
|
40749
40817
|
created_at:
|
|
40750
40818
|
format: date-time
|
|
40751
40819
|
type: string
|
|
@@ -40882,7 +40950,7 @@ components:
|
|
|
40882
40950
|
description: >-
|
|
40883
40951
|
Object containing [metadata](/authkit/metadata)
|
|
40884
40952
|
key/value pairs associated with the Organization.
|
|
40885
|
-
example: *
|
|
40953
|
+
example: *ref_33
|
|
40886
40954
|
propertyNames:
|
|
40887
40955
|
maxLength: 40
|
|
40888
40956
|
maxProperties: 50
|
|
@@ -42074,7 +42142,7 @@ components:
|
|
|
42074
42142
|
items:
|
|
42075
42143
|
type: string
|
|
42076
42144
|
description: The permissions granted by the role.
|
|
42077
|
-
example: &
|
|
42145
|
+
example: &ref_35
|
|
42078
42146
|
- users:read
|
|
42079
42147
|
- users:write
|
|
42080
42148
|
created_at:
|
|
@@ -42140,7 +42208,7 @@ components:
|
|
|
42140
42208
|
items:
|
|
42141
42209
|
type: string
|
|
42142
42210
|
description: The permissions granted by the role.
|
|
42143
|
-
example: *
|
|
42211
|
+
example: *ref_35
|
|
42144
42212
|
created_at:
|
|
42145
42213
|
format: date-time
|
|
42146
42214
|
type: string
|
|
@@ -42204,7 +42272,7 @@ components:
|
|
|
42204
42272
|
items:
|
|
42205
42273
|
type: string
|
|
42206
42274
|
description: The permissions granted by the role.
|
|
42207
|
-
example: *
|
|
42275
|
+
example: *ref_35
|
|
42208
42276
|
created_at:
|
|
42209
42277
|
format: date-time
|
|
42210
42278
|
type: string
|
|
@@ -43344,7 +43412,7 @@ components:
|
|
|
43344
43412
|
- data
|
|
43345
43413
|
- created_at
|
|
43346
43414
|
- object
|
|
43347
|
-
example: *
|
|
43415
|
+
example: *ref_36
|
|
43348
43416
|
description: An event emitted by WorkOS.
|
|
43349
43417
|
EventList:
|
|
43350
43418
|
type: object
|
|
@@ -43379,7 +43447,7 @@ components:
|
|
|
43379
43447
|
example:
|
|
43380
43448
|
object: list
|
|
43381
43449
|
data:
|
|
43382
|
-
- *
|
|
43450
|
+
- *ref_36
|
|
43383
43451
|
list_metadata:
|
|
43384
43452
|
after: event_01EHZNVPK3SFK441A1RGBFSHRT
|
|
43385
43453
|
JwtTemplate:
|
|
@@ -45340,7 +45408,7 @@ components:
|
|
|
45340
45408
|
items:
|
|
45341
45409
|
type: string
|
|
45342
45410
|
description: The OAuth scopes granted for this connection.
|
|
45343
|
-
example: &
|
|
45411
|
+
example: &ref_37
|
|
45344
45412
|
- repo
|
|
45345
45413
|
- user:email
|
|
45346
45414
|
auth_method:
|
|
@@ -45390,7 +45458,7 @@ components:
|
|
|
45390
45458
|
`installation` scope, excluding any it declares as
|
|
45391
45459
|
secret. Only present when `auth_method` is
|
|
45392
45460
|
`client_credentials`.
|
|
45393
|
-
example: &
|
|
45461
|
+
example: &ref_38
|
|
45394
45462
|
instance_url: https://example.my.salesforce.com
|
|
45395
45463
|
state:
|
|
45396
45464
|
type: string
|
|
@@ -45519,7 +45587,7 @@ components:
|
|
|
45519
45587
|
items:
|
|
45520
45588
|
type: string
|
|
45521
45589
|
description: The OAuth scopes granted for this connection.
|
|
45522
|
-
example: *
|
|
45590
|
+
example: *ref_37
|
|
45523
45591
|
auth_method:
|
|
45524
45592
|
type: string
|
|
45525
45593
|
enum:
|
|
@@ -45566,7 +45634,7 @@ components:
|
|
|
45566
45634
|
`installation` scope, excluding any it declares as
|
|
45567
45635
|
secret. Only present when `auth_method` is
|
|
45568
45636
|
`client_credentials`.
|
|
45569
|
-
example: *
|
|
45637
|
+
example: *ref_38
|
|
45570
45638
|
state:
|
|
45571
45639
|
type: string
|
|
45572
45640
|
enum:
|
package/dist/types.d.ts
CHANGED
|
@@ -5529,6 +5529,43 @@ export interface components {
|
|
|
5529
5529
|
/** @description Updates to a custom provider's OAuth definition. Only valid for custom-provider integrations. */
|
|
5530
5530
|
custom_provider?: components["schemas"]["UpdateCustomProviderDefinitionDto"];
|
|
5531
5531
|
};
|
|
5532
|
+
OrganizationConnectedAccountDto: {
|
|
5533
|
+
/**
|
|
5534
|
+
* @description The OAuth access token for the connected account.
|
|
5535
|
+
* @example gho_16C7e42F292c6912E7710c838347Ae178B4a
|
|
5536
|
+
*/
|
|
5537
|
+
access_token?: string;
|
|
5538
|
+
/**
|
|
5539
|
+
* @description The OAuth refresh token for the connected account.
|
|
5540
|
+
* @example ghr_xxxxxxxxxxxxxxxxxxxx
|
|
5541
|
+
*/
|
|
5542
|
+
refresh_token?: string;
|
|
5543
|
+
/**
|
|
5544
|
+
* Format: date-time
|
|
5545
|
+
* @description The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire.
|
|
5546
|
+
* @example 2025-12-31T23:59:59.000Z
|
|
5547
|
+
*/
|
|
5548
|
+
expires_at?: string;
|
|
5549
|
+
/**
|
|
5550
|
+
* @description The OAuth scopes granted for this connection.
|
|
5551
|
+
* @example [
|
|
5552
|
+
* "repo",
|
|
5553
|
+
* "user:email"
|
|
5554
|
+
* ]
|
|
5555
|
+
*/
|
|
5556
|
+
scopes?: string[];
|
|
5557
|
+
/**
|
|
5558
|
+
* @description Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided.
|
|
5559
|
+
* @example connected
|
|
5560
|
+
* @enum {string}
|
|
5561
|
+
*/
|
|
5562
|
+
state?: "connected" | "needs_reauthorization";
|
|
5563
|
+
/**
|
|
5564
|
+
* @description The [User](/reference/authkit/user) identifier of the organization member on whose behalf the connected account is being imported or updated. The user must be an active member of the organization.
|
|
5565
|
+
* @example user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
5566
|
+
*/
|
|
5567
|
+
user_id: string;
|
|
5568
|
+
};
|
|
5532
5569
|
ConnectedAccountDto: {
|
|
5533
5570
|
/**
|
|
5534
5571
|
* @description The OAuth access token for the connected account.
|
|
@@ -5832,7 +5869,7 @@ export interface components {
|
|
|
5832
5869
|
CreateUserlandUserDto: {
|
|
5833
5870
|
/**
|
|
5834
5871
|
* Format: email
|
|
5835
|
-
* @description The email address of the user.
|
|
5872
|
+
* @description The email address of the user. WorkOS trims whitespace and converts the address to lowercase before storing it.
|
|
5836
5873
|
* @example marcelina.davis@example.com
|
|
5837
5874
|
*/
|
|
5838
5875
|
email: string;
|
|
@@ -33247,7 +33284,7 @@ export interface operations {
|
|
|
33247
33284
|
};
|
|
33248
33285
|
requestBody: {
|
|
33249
33286
|
content: {
|
|
33250
|
-
"application/json": components["schemas"]["
|
|
33287
|
+
"application/json": components["schemas"]["OrganizationConnectedAccountDto"];
|
|
33251
33288
|
};
|
|
33252
33289
|
};
|
|
33253
33290
|
responses: {
|
|
@@ -33307,7 +33344,22 @@ export interface operations {
|
|
|
33307
33344
|
};
|
|
33308
33345
|
content?: never;
|
|
33309
33346
|
};
|
|
33310
|
-
/** @description The
|
|
33347
|
+
/** @description The `user_id` is not an active member of the organization. */
|
|
33348
|
+
403: {
|
|
33349
|
+
headers: {
|
|
33350
|
+
[name: string]: unknown;
|
|
33351
|
+
};
|
|
33352
|
+
content: {
|
|
33353
|
+
"application/json": {
|
|
33354
|
+
/**
|
|
33355
|
+
* @description A human-readable description of the error.
|
|
33356
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
33357
|
+
*/
|
|
33358
|
+
message: string;
|
|
33359
|
+
};
|
|
33360
|
+
};
|
|
33361
|
+
};
|
|
33362
|
+
/** @description The organization, user, or connected account was not found. */
|
|
33311
33363
|
404: {
|
|
33312
33364
|
headers: {
|
|
33313
33365
|
[name: string]: unknown;
|
|
@@ -33381,7 +33433,7 @@ export interface operations {
|
|
|
33381
33433
|
};
|
|
33382
33434
|
requestBody: {
|
|
33383
33435
|
content: {
|
|
33384
|
-
"application/json": components["schemas"]["
|
|
33436
|
+
"application/json": components["schemas"]["OrganizationConnectedAccountDto"];
|
|
33385
33437
|
};
|
|
33386
33438
|
};
|
|
33387
33439
|
responses: {
|
|
@@ -33426,7 +33478,22 @@ export interface operations {
|
|
|
33426
33478
|
};
|
|
33427
33479
|
content?: never;
|
|
33428
33480
|
};
|
|
33429
|
-
/** @description The
|
|
33481
|
+
/** @description The `user_id` is not an active member of the organization. */
|
|
33482
|
+
403: {
|
|
33483
|
+
headers: {
|
|
33484
|
+
[name: string]: unknown;
|
|
33485
|
+
};
|
|
33486
|
+
content: {
|
|
33487
|
+
"application/json": {
|
|
33488
|
+
/**
|
|
33489
|
+
* @description A human-readable description of the error.
|
|
33490
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
33491
|
+
*/
|
|
33492
|
+
message: string;
|
|
33493
|
+
};
|
|
33494
|
+
};
|
|
33495
|
+
};
|
|
33496
|
+
/** @description The organization, user, or data integration was not found. */
|
|
33430
33497
|
404: {
|
|
33431
33498
|
headers: {
|
|
33432
33499
|
[name: string]: unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workos/openapi-spec",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.103.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,15 +56,15 @@
|
|
|
56
56
|
"lodash": "^4.17.23"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@types/node": "^26.6.
|
|
59
|
+
"@types/node": "^26.6.2",
|
|
60
60
|
"@workos/oagen": "^0.30.2",
|
|
61
|
-
"@workos/oagen-emitters": "^0.24.
|
|
61
|
+
"@workos/oagen-emitters": "^0.24.16",
|
|
62
62
|
"diff2html": "^3.4.56",
|
|
63
63
|
"husky": "^9.1.7",
|
|
64
64
|
"js-yaml": "^5.4.2",
|
|
65
65
|
"openapi-to-postmanv2": "^6.3.3",
|
|
66
66
|
"tsdown": "^0.23.0",
|
|
67
|
-
"tsx": "^4.23.
|
|
67
|
+
"tsx": "^4.23.15",
|
|
68
68
|
"typescript": "^7.0.2"
|
|
69
69
|
}
|
|
70
70
|
}
|