@workos/openapi-spec 0.111.0 → 0.112.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 +62 -4
- package/dist/types.d.ts +30 -2
- package/package.json +1 -1
package/dist/open-api-spec.yaml
CHANGED
|
@@ -11513,6 +11513,14 @@ paths:
|
|
|
11513
11513
|
Returns credentials for a user's connected account. Branches on the
|
|
11514
11514
|
installation's `auth_method`: OAuth installations return an access token
|
|
11515
11515
|
(refreshed if needed); API-key installations return the stored secret.
|
|
11516
|
+
Every active credential includes `config`: provider-declared, non-secret
|
|
11517
|
+
values from the installation snapshot, with current provider defaults
|
|
11518
|
+
for unset fields. Editing integration or organization configuration does
|
|
11519
|
+
not change the snapshot; reconnect or explicitly rebind the connection
|
|
11520
|
+
to adopt those edits. Defaults remain live, so a changed default can
|
|
11521
|
+
appear in `config` before a cached token is refreshed or re-minted.
|
|
11522
|
+
Credentials that never refresh require a reconnect or rebind when a
|
|
11523
|
+
default changes their routing.
|
|
11516
11524
|
operationId: DataIntegrationsController_vendCredentials
|
|
11517
11525
|
parameters:
|
|
11518
11526
|
- name: slug
|
|
@@ -11593,6 +11601,7 @@ paths:
|
|
|
11593
11601
|
- repo
|
|
11594
11602
|
- user:email
|
|
11595
11603
|
missing_scopes: []
|
|
11604
|
+
config: {}
|
|
11596
11605
|
'400':
|
|
11597
11606
|
description: Bad Request
|
|
11598
11607
|
content:
|
|
@@ -45591,6 +45600,22 @@ components:
|
|
|
45591
45600
|
the access token, they're listed here. Present for `oauth` and
|
|
45592
45601
|
`client_credentials` credentials; absent for `api_key`.
|
|
45593
45602
|
example: []
|
|
45603
|
+
config:
|
|
45604
|
+
type: object
|
|
45605
|
+
additionalProperties:
|
|
45606
|
+
type: string
|
|
45607
|
+
description: >-
|
|
45608
|
+
Provider-declared, non-secret config from the installation
|
|
45609
|
+
snapshot, with current defaults for unset fields. Includes both
|
|
45610
|
+
integration- and installation-scope fields; omits undeclared
|
|
45611
|
+
fields and fields marked secret. Use these values to address a
|
|
45612
|
+
per-tenant host, such as Snowflake's `account` or Zendesk's
|
|
45613
|
+
`subdomain`. Empty when no values are disclosable. Changes to
|
|
45614
|
+
integration or organization pins require reconnecting or
|
|
45615
|
+
explicitly rebinding the connection. Defaults are live and can
|
|
45616
|
+
differ from a cached token's audience until refresh or re-mint.
|
|
45617
|
+
example: &ref_39
|
|
45618
|
+
account: myorg-myaccount
|
|
45594
45619
|
required:
|
|
45595
45620
|
- object
|
|
45596
45621
|
- auth_method
|
|
@@ -45598,6 +45623,7 @@ components:
|
|
|
45598
45623
|
- expires_at
|
|
45599
45624
|
- scopes
|
|
45600
45625
|
- missing_scopes
|
|
45626
|
+
- config
|
|
45601
45627
|
- type: object
|
|
45602
45628
|
properties:
|
|
45603
45629
|
object:
|
|
@@ -45619,10 +45645,26 @@ components:
|
|
|
45619
45645
|
format: password
|
|
45620
45646
|
description: The API key secret.
|
|
45621
45647
|
example: sk-1234567890abcdef
|
|
45648
|
+
config:
|
|
45649
|
+
type: object
|
|
45650
|
+
additionalProperties:
|
|
45651
|
+
type: string
|
|
45652
|
+
description: >-
|
|
45653
|
+
Provider-declared, non-secret config from the installation
|
|
45654
|
+
snapshot, with current defaults for unset fields. Includes both
|
|
45655
|
+
integration- and installation-scope fields; omits undeclared
|
|
45656
|
+
fields and fields marked secret. Use these values to address a
|
|
45657
|
+
per-tenant host, such as Snowflake's `account` or Zendesk's
|
|
45658
|
+
`subdomain`. Empty when no values are disclosable. Changes to
|
|
45659
|
+
integration or organization pins require reconnecting or
|
|
45660
|
+
explicitly rebinding the connection. Defaults are live and can
|
|
45661
|
+
differ from a cached token's audience until refresh or re-mint.
|
|
45662
|
+
example: *ref_39
|
|
45622
45663
|
required:
|
|
45623
45664
|
- object
|
|
45624
45665
|
- auth_method
|
|
45625
45666
|
- value
|
|
45667
|
+
- config
|
|
45626
45668
|
- type: object
|
|
45627
45669
|
properties:
|
|
45628
45670
|
object:
|
|
@@ -45680,6 +45722,21 @@ components:
|
|
|
45680
45722
|
provider. Only present for `client_credentials` credentials.
|
|
45681
45723
|
example:
|
|
45682
45724
|
instance_url: https://acme.my.salesforce.com
|
|
45725
|
+
config:
|
|
45726
|
+
type: object
|
|
45727
|
+
additionalProperties:
|
|
45728
|
+
type: string
|
|
45729
|
+
description: >-
|
|
45730
|
+
Provider-declared, non-secret config from the installation
|
|
45731
|
+
snapshot, with current defaults for unset fields. Includes both
|
|
45732
|
+
integration- and installation-scope fields; omits undeclared
|
|
45733
|
+
fields and fields marked secret. Use these values to address a
|
|
45734
|
+
per-tenant host, such as Snowflake's `account` or Zendesk's
|
|
45735
|
+
`subdomain`. Empty when no values are disclosable. Changes to
|
|
45736
|
+
integration or organization pins require reconnecting or
|
|
45737
|
+
explicitly rebinding the connection. Defaults are live and can
|
|
45738
|
+
differ from a cached token's audience until refresh or re-mint.
|
|
45739
|
+
example: *ref_39
|
|
45683
45740
|
required:
|
|
45684
45741
|
- object
|
|
45685
45742
|
- auth_method
|
|
@@ -45688,6 +45745,7 @@ components:
|
|
|
45688
45745
|
- scopes
|
|
45689
45746
|
- missing_scopes
|
|
45690
45747
|
- metadata
|
|
45748
|
+
- config
|
|
45691
45749
|
DataIntegrationCredentialsResponse:
|
|
45692
45750
|
oneOf:
|
|
45693
45751
|
- type: object
|
|
@@ -46058,7 +46116,7 @@ components:
|
|
|
46058
46116
|
items:
|
|
46059
46117
|
type: string
|
|
46060
46118
|
description: The OAuth scopes granted for this connection.
|
|
46061
|
-
example: &
|
|
46119
|
+
example: &ref_40
|
|
46062
46120
|
- repo
|
|
46063
46121
|
- user:email
|
|
46064
46122
|
auth_method:
|
|
@@ -46108,7 +46166,7 @@ components:
|
|
|
46108
46166
|
`installation` scope, excluding any it declares as
|
|
46109
46167
|
secret. Only present when `auth_method` is
|
|
46110
46168
|
`client_credentials`.
|
|
46111
|
-
example: &
|
|
46169
|
+
example: &ref_41
|
|
46112
46170
|
instance_url: https://example.my.salesforce.com
|
|
46113
46171
|
state:
|
|
46114
46172
|
type: string
|
|
@@ -46237,7 +46295,7 @@ components:
|
|
|
46237
46295
|
items:
|
|
46238
46296
|
type: string
|
|
46239
46297
|
description: The OAuth scopes granted for this connection.
|
|
46240
|
-
example: *
|
|
46298
|
+
example: *ref_40
|
|
46241
46299
|
auth_method:
|
|
46242
46300
|
type: string
|
|
46243
46301
|
enum:
|
|
@@ -46284,7 +46342,7 @@ components:
|
|
|
46284
46342
|
`installation` scope, excluding any it declares as
|
|
46285
46343
|
secret. Only present when `auth_method` is
|
|
46286
46344
|
`client_credentials`.
|
|
46287
|
-
example: *
|
|
46345
|
+
example: *ref_41
|
|
46288
46346
|
state:
|
|
46289
46347
|
type: string
|
|
46290
46348
|
enum:
|
package/dist/types.d.ts
CHANGED
|
@@ -1532,7 +1532,7 @@ export interface paths {
|
|
|
1532
1532
|
put?: never;
|
|
1533
1533
|
/**
|
|
1534
1534
|
* Vend credentials for a connected account
|
|
1535
|
-
* @description Returns credentials for a user's connected account. Branches on the installation's `auth_method`: OAuth installations return an access token (refreshed if needed); API-key installations return the stored secret.
|
|
1535
|
+
* @description Returns credentials for a user's connected account. Branches on the installation's `auth_method`: OAuth installations return an access token (refreshed if needed); API-key installations return the stored secret. Every active credential includes `config`: provider-declared, non-secret values from the installation snapshot, with current provider defaults for unset fields. Editing integration or organization configuration does not change the snapshot; reconnect or explicitly rebind the connection to adopt those edits. Defaults remain live, so a changed default can appear in `config` before a cached token is refreshed or re-minted. Credentials that never refresh require a reconnect or rebind when a default changes their routing.
|
|
1536
1536
|
*/
|
|
1537
1537
|
post: operations["DataIntegrationsController_vendCredentials"];
|
|
1538
1538
|
delete?: never;
|
|
@@ -18283,6 +18283,15 @@ export interface components {
|
|
|
18283
18283
|
* @example []
|
|
18284
18284
|
*/
|
|
18285
18285
|
missing_scopes: string[];
|
|
18286
|
+
/**
|
|
18287
|
+
* @description Provider-declared, non-secret config from the installation snapshot, with current defaults for unset fields. Includes both integration- and installation-scope fields; omits undeclared fields and fields marked secret. Use these values to address a per-tenant host, such as Snowflake's `account` or Zendesk's `subdomain`. Empty when no values are disclosable. Changes to integration or organization pins require reconnecting or explicitly rebinding the connection. Defaults are live and can differ from a cached token's audience until refresh or re-mint.
|
|
18288
|
+
* @example {
|
|
18289
|
+
* "account": "myorg-myaccount"
|
|
18290
|
+
* }
|
|
18291
|
+
*/
|
|
18292
|
+
config: {
|
|
18293
|
+
[key: string]: string;
|
|
18294
|
+
};
|
|
18286
18295
|
} | {
|
|
18287
18296
|
/**
|
|
18288
18297
|
* @description Distinguishes the credential object.
|
|
@@ -18300,6 +18309,15 @@ export interface components {
|
|
|
18300
18309
|
* @example sk-1234567890abcdef
|
|
18301
18310
|
*/
|
|
18302
18311
|
value: string;
|
|
18312
|
+
/**
|
|
18313
|
+
* @description Provider-declared, non-secret config from the installation snapshot, with current defaults for unset fields. Includes both integration- and installation-scope fields; omits undeclared fields and fields marked secret. Use these values to address a per-tenant host, such as Snowflake's `account` or Zendesk's `subdomain`. Empty when no values are disclosable. Changes to integration or organization pins require reconnecting or explicitly rebinding the connection. Defaults are live and can differ from a cached token's audience until refresh or re-mint.
|
|
18314
|
+
* @example {
|
|
18315
|
+
* "account": "myorg-myaccount"
|
|
18316
|
+
* }
|
|
18317
|
+
*/
|
|
18318
|
+
config: {
|
|
18319
|
+
[key: string]: string;
|
|
18320
|
+
};
|
|
18303
18321
|
} | {
|
|
18304
18322
|
/**
|
|
18305
18323
|
* @description Distinguishes the credential object.
|
|
@@ -18343,6 +18361,15 @@ export interface components {
|
|
|
18343
18361
|
metadata: {
|
|
18344
18362
|
[key: string]: unknown;
|
|
18345
18363
|
};
|
|
18364
|
+
/**
|
|
18365
|
+
* @description Provider-declared, non-secret config from the installation snapshot, with current defaults for unset fields. Includes both integration- and installation-scope fields; omits undeclared fields and fields marked secret. Use these values to address a per-tenant host, such as Snowflake's `account` or Zendesk's `subdomain`. Empty when no values are disclosable. Changes to integration or organization pins require reconnecting or explicitly rebinding the connection. Defaults are live and can differ from a cached token's audience until refresh or re-mint.
|
|
18366
|
+
* @example {
|
|
18367
|
+
* "account": "myorg-myaccount"
|
|
18368
|
+
* }
|
|
18369
|
+
*/
|
|
18370
|
+
config: {
|
|
18371
|
+
[key: string]: string;
|
|
18372
|
+
};
|
|
18346
18373
|
};
|
|
18347
18374
|
DataIntegrationCredentialsResponse: {
|
|
18348
18375
|
/**
|
|
@@ -30359,7 +30386,8 @@ export interface operations {
|
|
|
30359
30386
|
* "repo",
|
|
30360
30387
|
* "user:email"
|
|
30361
30388
|
* ],
|
|
30362
|
-
* "missing_scopes": []
|
|
30389
|
+
* "missing_scopes": [],
|
|
30390
|
+
* "config": {}
|
|
30363
30391
|
* }
|
|
30364
30392
|
* }
|
|
30365
30393
|
*/
|