@workos/openapi-spec 0.57.0 → 0.59.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 +95 -4
- package/dist/types.d.ts +69 -4
- package/package.json +1 -1
package/dist/open-api-spec.yaml
CHANGED
|
@@ -8013,6 +8013,21 @@ paths:
|
|
|
8013
8013
|
example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
|
|
8014
8014
|
required:
|
|
8015
8015
|
- message
|
|
8016
|
+
'422':
|
|
8017
|
+
description: >-
|
|
8018
|
+
The installation uses an auth method that is not yet supported by
|
|
8019
|
+
this endpoint.
|
|
8020
|
+
content:
|
|
8021
|
+
application/json:
|
|
8022
|
+
schema:
|
|
8023
|
+
type: object
|
|
8024
|
+
properties:
|
|
8025
|
+
message:
|
|
8026
|
+
type: string
|
|
8027
|
+
description: A human-readable description of the error.
|
|
8028
|
+
example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
|
|
8029
|
+
required:
|
|
8030
|
+
- message
|
|
8016
8031
|
summary: Vend credentials for a connected account
|
|
8017
8032
|
tags:
|
|
8018
8033
|
- pipes
|
|
@@ -21184,12 +21199,16 @@ components:
|
|
|
21184
21199
|
authorization_url:
|
|
21185
21200
|
type: string
|
|
21186
21201
|
format: uri
|
|
21187
|
-
description:
|
|
21202
|
+
description: >-
|
|
21203
|
+
The provider's OAuth authorization endpoint. Required for OAuth
|
|
21204
|
+
providers; omit for `api_key` providers.
|
|
21188
21205
|
example: https://provider.example.com/oauth/authorize
|
|
21189
21206
|
token_url:
|
|
21190
21207
|
type: string
|
|
21191
21208
|
format: uri
|
|
21192
|
-
description:
|
|
21209
|
+
description: >-
|
|
21210
|
+
The provider's OAuth token endpoint. Required for OAuth providers;
|
|
21211
|
+
omit for `api_key` providers.
|
|
21193
21212
|
example: https://provider.example.com/oauth/token
|
|
21194
21213
|
refresh_token_url:
|
|
21195
21214
|
type:
|
|
@@ -21246,8 +21265,6 @@ components:
|
|
|
21246
21265
|
example: request_body
|
|
21247
21266
|
required:
|
|
21248
21267
|
- name
|
|
21249
|
-
- authorization_url
|
|
21250
|
-
- token_url
|
|
21251
21268
|
CreateDataIntegrationDto:
|
|
21252
21269
|
type: object
|
|
21253
21270
|
properties:
|
|
@@ -36292,6 +36309,7 @@ components:
|
|
|
36292
36309
|
x-extensible-enum:
|
|
36293
36310
|
- oauth
|
|
36294
36311
|
- api_key
|
|
36312
|
+
- client_credentials
|
|
36295
36313
|
const: oauth
|
|
36296
36314
|
value:
|
|
36297
36315
|
type: string
|
|
@@ -36354,6 +36372,7 @@ components:
|
|
|
36354
36372
|
x-extensible-enum:
|
|
36355
36373
|
- oauth
|
|
36356
36374
|
- api_key
|
|
36375
|
+
- client_credentials
|
|
36357
36376
|
const: api_key
|
|
36358
36377
|
value:
|
|
36359
36378
|
type: string
|
|
@@ -36367,6 +36386,78 @@ components:
|
|
|
36367
36386
|
required:
|
|
36368
36387
|
- active
|
|
36369
36388
|
- credential
|
|
36389
|
+
- type: object
|
|
36390
|
+
properties:
|
|
36391
|
+
active:
|
|
36392
|
+
type: boolean
|
|
36393
|
+
description: Indicates credentials are available.
|
|
36394
|
+
const: true
|
|
36395
|
+
credential:
|
|
36396
|
+
type: object
|
|
36397
|
+
properties:
|
|
36398
|
+
object:
|
|
36399
|
+
type: string
|
|
36400
|
+
description: Distinguishes the credential object.
|
|
36401
|
+
const: credential
|
|
36402
|
+
auth_method:
|
|
36403
|
+
type: string
|
|
36404
|
+
description: >-
|
|
36405
|
+
The authentication method for this credential. Additional
|
|
36406
|
+
values may be added in the future; handle unknown values
|
|
36407
|
+
gracefully.
|
|
36408
|
+
x-extensible-enum:
|
|
36409
|
+
- oauth
|
|
36410
|
+
- api_key
|
|
36411
|
+
- client_credentials
|
|
36412
|
+
const: client_credentials
|
|
36413
|
+
value:
|
|
36414
|
+
type: string
|
|
36415
|
+
description: The client-credentials access token.
|
|
36416
|
+
example: 00D5g000000XXXX!AQEAQ...
|
|
36417
|
+
expires_at:
|
|
36418
|
+
type:
|
|
36419
|
+
- string
|
|
36420
|
+
- 'null'
|
|
36421
|
+
description: >-
|
|
36422
|
+
The ISO-8601 formatted timestamp indicating when the
|
|
36423
|
+
credential expires.
|
|
36424
|
+
example: '2025-12-31T23:59:59.000Z'
|
|
36425
|
+
scopes:
|
|
36426
|
+
type: array
|
|
36427
|
+
items:
|
|
36428
|
+
type: string
|
|
36429
|
+
description: The scopes granted to the access token.
|
|
36430
|
+
example:
|
|
36431
|
+
- api
|
|
36432
|
+
missing_scopes:
|
|
36433
|
+
type: array
|
|
36434
|
+
items:
|
|
36435
|
+
type: string
|
|
36436
|
+
description: >-
|
|
36437
|
+
If the integration has requested scopes that aren't present
|
|
36438
|
+
on the access token, they're listed here.
|
|
36439
|
+
example: []
|
|
36440
|
+
metadata:
|
|
36441
|
+
type: object
|
|
36442
|
+
additionalProperties: {}
|
|
36443
|
+
description: >-
|
|
36444
|
+
Non-sensitive fields captured from the provider token
|
|
36445
|
+
response (e.g. Salesforce `instance_url`), as configured for
|
|
36446
|
+
the provider.
|
|
36447
|
+
example:
|
|
36448
|
+
instance_url: https://acme.my.salesforce.com
|
|
36449
|
+
required:
|
|
36450
|
+
- object
|
|
36451
|
+
- auth_method
|
|
36452
|
+
- value
|
|
36453
|
+
- expires_at
|
|
36454
|
+
- scopes
|
|
36455
|
+
- missing_scopes
|
|
36456
|
+
- metadata
|
|
36457
|
+
description: The credential object containing the vended secret.
|
|
36458
|
+
required:
|
|
36459
|
+
- active
|
|
36460
|
+
- credential
|
|
36370
36461
|
- type: object
|
|
36371
36462
|
properties:
|
|
36372
36463
|
active:
|
package/dist/types.d.ts
CHANGED
|
@@ -4260,16 +4260,16 @@ export interface components {
|
|
|
4260
4260
|
name: string;
|
|
4261
4261
|
/**
|
|
4262
4262
|
* Format: uri
|
|
4263
|
-
* @description The provider's OAuth authorization endpoint.
|
|
4263
|
+
* @description The provider's OAuth authorization endpoint. Required for OAuth providers; omit for `api_key` providers.
|
|
4264
4264
|
* @example https://provider.example.com/oauth/authorize
|
|
4265
4265
|
*/
|
|
4266
|
-
authorization_url
|
|
4266
|
+
authorization_url?: string;
|
|
4267
4267
|
/**
|
|
4268
4268
|
* Format: uri
|
|
4269
|
-
* @description The provider's OAuth token endpoint.
|
|
4269
|
+
* @description The provider's OAuth token endpoint. Required for OAuth providers; omit for `api_key` providers.
|
|
4270
4270
|
* @example https://provider.example.com/oauth/token
|
|
4271
4271
|
*/
|
|
4272
|
-
token_url
|
|
4272
|
+
token_url?: string;
|
|
4273
4273
|
/**
|
|
4274
4274
|
* Format: uri
|
|
4275
4275
|
* @description The endpoint used to refresh tokens, if different from the token endpoint.
|
|
@@ -15672,6 +15672,56 @@ export interface components {
|
|
|
15672
15672
|
*/
|
|
15673
15673
|
value: string;
|
|
15674
15674
|
};
|
|
15675
|
+
} | {
|
|
15676
|
+
/**
|
|
15677
|
+
* @description Indicates credentials are available.
|
|
15678
|
+
* @constant
|
|
15679
|
+
*/
|
|
15680
|
+
active: true;
|
|
15681
|
+
/** @description The credential object containing the vended secret. */
|
|
15682
|
+
credential: {
|
|
15683
|
+
/**
|
|
15684
|
+
* @description Distinguishes the credential object.
|
|
15685
|
+
* @constant
|
|
15686
|
+
*/
|
|
15687
|
+
object: "credential";
|
|
15688
|
+
/**
|
|
15689
|
+
* @description The authentication method for this credential. Additional values may be added in the future; handle unknown values gracefully.
|
|
15690
|
+
* @constant
|
|
15691
|
+
*/
|
|
15692
|
+
auth_method: "client_credentials";
|
|
15693
|
+
/**
|
|
15694
|
+
* @description The client-credentials access token.
|
|
15695
|
+
* @example 00D5g000000XXXX!AQEAQ...
|
|
15696
|
+
*/
|
|
15697
|
+
value: string;
|
|
15698
|
+
/**
|
|
15699
|
+
* @description The ISO-8601 formatted timestamp indicating when the credential expires.
|
|
15700
|
+
* @example 2025-12-31T23:59:59.000Z
|
|
15701
|
+
*/
|
|
15702
|
+
expires_at: string | null;
|
|
15703
|
+
/**
|
|
15704
|
+
* @description The scopes granted to the access token.
|
|
15705
|
+
* @example [
|
|
15706
|
+
* "api"
|
|
15707
|
+
* ]
|
|
15708
|
+
*/
|
|
15709
|
+
scopes: string[];
|
|
15710
|
+
/**
|
|
15711
|
+
* @description If the integration has requested scopes that aren't present on the access token, they're listed here.
|
|
15712
|
+
* @example []
|
|
15713
|
+
*/
|
|
15714
|
+
missing_scopes: string[];
|
|
15715
|
+
/**
|
|
15716
|
+
* @description Non-sensitive fields captured from the provider token response (e.g. Salesforce `instance_url`), as configured for the provider.
|
|
15717
|
+
* @example {
|
|
15718
|
+
* "instance_url": "https://acme.my.salesforce.com"
|
|
15719
|
+
* }
|
|
15720
|
+
*/
|
|
15721
|
+
metadata: {
|
|
15722
|
+
[key: string]: unknown;
|
|
15723
|
+
};
|
|
15724
|
+
};
|
|
15675
15725
|
} | {
|
|
15676
15726
|
/**
|
|
15677
15727
|
* @description Indicates credentials are not available.
|
|
@@ -24245,6 +24295,21 @@ export interface operations {
|
|
|
24245
24295
|
};
|
|
24246
24296
|
};
|
|
24247
24297
|
};
|
|
24298
|
+
/** @description The installation uses an auth method that is not yet supported by this endpoint. */
|
|
24299
|
+
422: {
|
|
24300
|
+
headers: {
|
|
24301
|
+
[name: string]: unknown;
|
|
24302
|
+
};
|
|
24303
|
+
content: {
|
|
24304
|
+
"application/json": {
|
|
24305
|
+
/**
|
|
24306
|
+
* @description A human-readable description of the error.
|
|
24307
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
24308
|
+
*/
|
|
24309
|
+
message: string;
|
|
24310
|
+
};
|
|
24311
|
+
};
|
|
24312
|
+
};
|
|
24248
24313
|
};
|
|
24249
24314
|
};
|
|
24250
24315
|
DataIntegrationsController_getUserlandUserToken: {
|