@workos/openapi-spec 0.111.0 → 0.113.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 +81 -4
- package/dist/types.d.ts +51 -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:
|
|
@@ -22516,6 +22525,25 @@ paths:
|
|
|
22516
22525
|
required:
|
|
22517
22526
|
- code
|
|
22518
22527
|
- message
|
|
22528
|
+
'503':
|
|
22529
|
+
description: Another request is updating the same user. Retry the request.
|
|
22530
|
+
content:
|
|
22531
|
+
application/json:
|
|
22532
|
+
schema:
|
|
22533
|
+
type: object
|
|
22534
|
+
properties:
|
|
22535
|
+
code:
|
|
22536
|
+
type: string
|
|
22537
|
+
description: The error code identifying the type of error.
|
|
22538
|
+
example: concurrent_request
|
|
22539
|
+
const: concurrent_request
|
|
22540
|
+
message:
|
|
22541
|
+
type: string
|
|
22542
|
+
description: A human-readable description of the error.
|
|
22543
|
+
example: Request could not be processed.
|
|
22544
|
+
required:
|
|
22545
|
+
- code
|
|
22546
|
+
- message
|
|
22519
22547
|
summary: Update a user
|
|
22520
22548
|
tags:
|
|
22521
22549
|
- user-management.users
|
|
@@ -45591,6 +45619,22 @@ components:
|
|
|
45591
45619
|
the access token, they're listed here. Present for `oauth` and
|
|
45592
45620
|
`client_credentials` credentials; absent for `api_key`.
|
|
45593
45621
|
example: []
|
|
45622
|
+
config:
|
|
45623
|
+
type: object
|
|
45624
|
+
additionalProperties:
|
|
45625
|
+
type: string
|
|
45626
|
+
description: >-
|
|
45627
|
+
Provider-declared, non-secret config from the installation
|
|
45628
|
+
snapshot, with current defaults for unset fields. Includes both
|
|
45629
|
+
integration- and installation-scope fields; omits undeclared
|
|
45630
|
+
fields and fields marked secret. Use these values to address a
|
|
45631
|
+
per-tenant host, such as Snowflake's `account` or Zendesk's
|
|
45632
|
+
`subdomain`. Empty when no values are disclosable. Changes to
|
|
45633
|
+
integration or organization pins require reconnecting or
|
|
45634
|
+
explicitly rebinding the connection. Defaults are live and can
|
|
45635
|
+
differ from a cached token's audience until refresh or re-mint.
|
|
45636
|
+
example: &ref_39
|
|
45637
|
+
account: myorg-myaccount
|
|
45594
45638
|
required:
|
|
45595
45639
|
- object
|
|
45596
45640
|
- auth_method
|
|
@@ -45598,6 +45642,7 @@ components:
|
|
|
45598
45642
|
- expires_at
|
|
45599
45643
|
- scopes
|
|
45600
45644
|
- missing_scopes
|
|
45645
|
+
- config
|
|
45601
45646
|
- type: object
|
|
45602
45647
|
properties:
|
|
45603
45648
|
object:
|
|
@@ -45619,10 +45664,26 @@ components:
|
|
|
45619
45664
|
format: password
|
|
45620
45665
|
description: The API key secret.
|
|
45621
45666
|
example: sk-1234567890abcdef
|
|
45667
|
+
config:
|
|
45668
|
+
type: object
|
|
45669
|
+
additionalProperties:
|
|
45670
|
+
type: string
|
|
45671
|
+
description: >-
|
|
45672
|
+
Provider-declared, non-secret config from the installation
|
|
45673
|
+
snapshot, with current defaults for unset fields. Includes both
|
|
45674
|
+
integration- and installation-scope fields; omits undeclared
|
|
45675
|
+
fields and fields marked secret. Use these values to address a
|
|
45676
|
+
per-tenant host, such as Snowflake's `account` or Zendesk's
|
|
45677
|
+
`subdomain`. Empty when no values are disclosable. Changes to
|
|
45678
|
+
integration or organization pins require reconnecting or
|
|
45679
|
+
explicitly rebinding the connection. Defaults are live and can
|
|
45680
|
+
differ from a cached token's audience until refresh or re-mint.
|
|
45681
|
+
example: *ref_39
|
|
45622
45682
|
required:
|
|
45623
45683
|
- object
|
|
45624
45684
|
- auth_method
|
|
45625
45685
|
- value
|
|
45686
|
+
- config
|
|
45626
45687
|
- type: object
|
|
45627
45688
|
properties:
|
|
45628
45689
|
object:
|
|
@@ -45680,6 +45741,21 @@ components:
|
|
|
45680
45741
|
provider. Only present for `client_credentials` credentials.
|
|
45681
45742
|
example:
|
|
45682
45743
|
instance_url: https://acme.my.salesforce.com
|
|
45744
|
+
config:
|
|
45745
|
+
type: object
|
|
45746
|
+
additionalProperties:
|
|
45747
|
+
type: string
|
|
45748
|
+
description: >-
|
|
45749
|
+
Provider-declared, non-secret config from the installation
|
|
45750
|
+
snapshot, with current defaults for unset fields. Includes both
|
|
45751
|
+
integration- and installation-scope fields; omits undeclared
|
|
45752
|
+
fields and fields marked secret. Use these values to address a
|
|
45753
|
+
per-tenant host, such as Snowflake's `account` or Zendesk's
|
|
45754
|
+
`subdomain`. Empty when no values are disclosable. Changes to
|
|
45755
|
+
integration or organization pins require reconnecting or
|
|
45756
|
+
explicitly rebinding the connection. Defaults are live and can
|
|
45757
|
+
differ from a cached token's audience until refresh or re-mint.
|
|
45758
|
+
example: *ref_39
|
|
45683
45759
|
required:
|
|
45684
45760
|
- object
|
|
45685
45761
|
- auth_method
|
|
@@ -45688,6 +45764,7 @@ components:
|
|
|
45688
45764
|
- scopes
|
|
45689
45765
|
- missing_scopes
|
|
45690
45766
|
- metadata
|
|
45767
|
+
- config
|
|
45691
45768
|
DataIntegrationCredentialsResponse:
|
|
45692
45769
|
oneOf:
|
|
45693
45770
|
- type: object
|
|
@@ -46058,7 +46135,7 @@ components:
|
|
|
46058
46135
|
items:
|
|
46059
46136
|
type: string
|
|
46060
46137
|
description: The OAuth scopes granted for this connection.
|
|
46061
|
-
example: &
|
|
46138
|
+
example: &ref_40
|
|
46062
46139
|
- repo
|
|
46063
46140
|
- user:email
|
|
46064
46141
|
auth_method:
|
|
@@ -46108,7 +46185,7 @@ components:
|
|
|
46108
46185
|
`installation` scope, excluding any it declares as
|
|
46109
46186
|
secret. Only present when `auth_method` is
|
|
46110
46187
|
`client_credentials`.
|
|
46111
|
-
example: &
|
|
46188
|
+
example: &ref_41
|
|
46112
46189
|
instance_url: https://example.my.salesforce.com
|
|
46113
46190
|
state:
|
|
46114
46191
|
type: string
|
|
@@ -46237,7 +46314,7 @@ components:
|
|
|
46237
46314
|
items:
|
|
46238
46315
|
type: string
|
|
46239
46316
|
description: The OAuth scopes granted for this connection.
|
|
46240
|
-
example: *
|
|
46317
|
+
example: *ref_40
|
|
46241
46318
|
auth_method:
|
|
46242
46319
|
type: string
|
|
46243
46320
|
enum:
|
|
@@ -46284,7 +46361,7 @@ components:
|
|
|
46284
46361
|
`installation` scope, excluding any it declares as
|
|
46285
46362
|
secret. Only present when `auth_method` is
|
|
46286
46363
|
`client_credentials`.
|
|
46287
|
-
example: *
|
|
46364
|
+
example: *ref_41
|
|
46288
46365
|
state:
|
|
46289
46366
|
type: string
|
|
46290
46367
|
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
|
*/
|
|
@@ -40025,6 +40053,27 @@ export interface operations {
|
|
|
40025
40053
|
};
|
|
40026
40054
|
};
|
|
40027
40055
|
};
|
|
40056
|
+
/** @description Another request is updating the same user. Retry the request. */
|
|
40057
|
+
503: {
|
|
40058
|
+
headers: {
|
|
40059
|
+
[name: string]: unknown;
|
|
40060
|
+
};
|
|
40061
|
+
content: {
|
|
40062
|
+
"application/json": {
|
|
40063
|
+
/**
|
|
40064
|
+
* @description The error code identifying the type of error.
|
|
40065
|
+
* @example concurrent_request
|
|
40066
|
+
* @constant
|
|
40067
|
+
*/
|
|
40068
|
+
code: "concurrent_request";
|
|
40069
|
+
/**
|
|
40070
|
+
* @description A human-readable description of the error.
|
|
40071
|
+
* @example Request could not be processed.
|
|
40072
|
+
*/
|
|
40073
|
+
message: string;
|
|
40074
|
+
};
|
|
40075
|
+
};
|
|
40076
|
+
};
|
|
40028
40077
|
};
|
|
40029
40078
|
};
|
|
40030
40079
|
"UserlandUsersController_delete[0]": {
|