@workos/openapi-spec 0.108.0 → 0.109.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.
@@ -45501,109 +45501,161 @@ components:
45501
45501
  required:
45502
45502
  - code
45503
45503
  - message
45504
- DataIntegrationCredentialsResponse:
45504
+ DataIntegrationVendedCredential:
45505
+ discriminator:
45506
+ propertyName: auth_method
45505
45507
  oneOf:
45506
45508
  - type: object
45507
45509
  properties:
45508
- active:
45509
- type: boolean
45510
- description: Indicates credentials are available.
45511
- const: true
45512
- credential:
45513
- type: object
45514
- properties:
45515
- object:
45516
- type: string
45517
- description: Distinguishes the credential object.
45518
- const: credential
45519
- auth_method:
45520
- type: string
45521
- description: >-
45522
- The authentication method for this credential. Additional
45523
- values may be added in the future; handle unknown values
45524
- gracefully.
45525
- x-extensible-enum:
45526
- - oauth
45527
- - api_key
45528
- - client_credentials
45529
- const: oauth
45530
- value:
45531
- type: string
45532
- format: password
45533
- description: The OAuth access token.
45534
- example: gho_16C7e42F292c6912E7710c838347Ae178B4a
45535
- expires_at:
45536
- type:
45537
- - string
45538
- - 'null'
45539
- description: >-
45540
- The ISO-8601 formatted timestamp indicating when the
45541
- credential expires.
45542
- example: '2025-12-31T23:59:59.000Z'
45543
- scopes:
45544
- type: array
45545
- items:
45546
- type: string
45547
- description: The scopes granted to the access token.
45548
- example:
45549
- - repo
45550
- - user:email
45551
- missing_scopes:
45552
- type: array
45553
- items:
45554
- type: string
45555
- description: >-
45556
- If the integration has requested scopes that aren't present
45557
- on the access token, they're listed here.
45558
- example: []
45559
- required:
45560
- - object
45561
- - auth_method
45562
- - value
45563
- - expires_at
45564
- - scopes
45565
- - missing_scopes
45566
- description: The credential object containing the vended secret.
45510
+ object:
45511
+ type: string
45512
+ description: Distinguishes the credential object.
45513
+ const: credential
45514
+ auth_method:
45515
+ type: string
45516
+ description: >-
45517
+ The authentication method for this credential. Additional values
45518
+ may be added in the future; handle unknown values gracefully.
45519
+ x-extensible-enum:
45520
+ - oauth
45521
+ - api_key
45522
+ - client_credentials
45523
+ const: oauth
45524
+ value:
45525
+ type: string
45526
+ format: password
45527
+ description: >-
45528
+ The vended secret. An OAuth access token when `auth_method` is
45529
+ `oauth`, the API key when `api_key`, or the client-credentials
45530
+ access token when `client_credentials`.
45531
+ example: gho_16C7e42F292c6912E7710c838347Ae178B4a
45532
+ expires_at:
45533
+ type:
45534
+ - string
45535
+ - 'null'
45536
+ description: >-
45537
+ The ISO-8601 formatted timestamp indicating when the credential
45538
+ expires, or `null` if it does not expire. Present for `oauth`
45539
+ and `client_credentials` credentials; absent for `api_key`.
45540
+ example: '2025-12-31T23:59:59.000Z'
45541
+ scopes:
45542
+ type: array
45543
+ items:
45544
+ type: string
45545
+ description: >-
45546
+ The scopes granted to the access token. Present for `oauth` and
45547
+ `client_credentials` credentials; absent for `api_key`.
45548
+ example:
45549
+ - repo
45550
+ - user:email
45551
+ missing_scopes:
45552
+ type: array
45553
+ items:
45554
+ type: string
45555
+ description: >-
45556
+ If the integration has requested scopes that aren't present on
45557
+ the access token, they're listed here. Present for `oauth` and
45558
+ `client_credentials` credentials; absent for `api_key`.
45559
+ example: []
45567
45560
  required:
45568
- - active
45569
- - credential
45561
+ - object
45562
+ - auth_method
45563
+ - value
45564
+ - expires_at
45565
+ - scopes
45566
+ - missing_scopes
45570
45567
  - type: object
45571
45568
  properties:
45572
- active:
45573
- type: boolean
45574
- description: Indicates credentials are available.
45575
- const: true
45576
- credential:
45569
+ object:
45570
+ type: string
45571
+ description: Distinguishes the credential object.
45572
+ const: credential
45573
+ auth_method:
45574
+ type: string
45575
+ description: >-
45576
+ The authentication method for this credential. Additional values
45577
+ may be added in the future; handle unknown values gracefully.
45578
+ x-extensible-enum:
45579
+ - oauth
45580
+ - api_key
45581
+ - client_credentials
45582
+ const: api_key
45583
+ value:
45584
+ type: string
45585
+ format: password
45586
+ description: The API key secret.
45587
+ example: sk-1234567890abcdef
45588
+ required:
45589
+ - object
45590
+ - auth_method
45591
+ - value
45592
+ - type: object
45593
+ properties:
45594
+ object:
45595
+ type: string
45596
+ description: Distinguishes the credential object.
45597
+ const: credential
45598
+ auth_method:
45599
+ type: string
45600
+ description: >-
45601
+ The authentication method for this credential. Additional values
45602
+ may be added in the future; handle unknown values gracefully.
45603
+ x-extensible-enum:
45604
+ - oauth
45605
+ - api_key
45606
+ - client_credentials
45607
+ const: client_credentials
45608
+ value:
45609
+ type: string
45610
+ format: password
45611
+ description: The client-credentials access token.
45612
+ example: 00D5g000000XXXX!AQEAQ...
45613
+ expires_at:
45614
+ type:
45615
+ - string
45616
+ - 'null'
45617
+ description: >-
45618
+ The ISO-8601 formatted timestamp indicating when the credential
45619
+ expires.
45620
+ example: '2025-12-31T23:59:59.000Z'
45621
+ scopes:
45622
+ type: array
45623
+ items:
45624
+ type: string
45625
+ description: The scopes granted to the access token.
45626
+ example:
45627
+ - api
45628
+ missing_scopes:
45629
+ type: array
45630
+ items:
45631
+ type: string
45632
+ description: >-
45633
+ If the integration has requested scopes that aren't present on
45634
+ the access token, they're listed here. The scopes granted to a
45635
+ client-credentials token are governed by the connected
45636
+ organization's client application, so the integration's
45637
+ configured scopes are requests or defaults rather than
45638
+ guarantees.
45639
+ example: []
45640
+ metadata:
45577
45641
  type: object
45578
- properties:
45579
- object:
45580
- type: string
45581
- description: Distinguishes the credential object.
45582
- const: credential
45583
- auth_method:
45584
- type: string
45585
- description: >-
45586
- The authentication method for this credential. Additional
45587
- values may be added in the future; handle unknown values
45588
- gracefully.
45589
- x-extensible-enum:
45590
- - oauth
45591
- - api_key
45592
- - client_credentials
45593
- const: api_key
45594
- value:
45595
- type: string
45596
- format: password
45597
- description: The API key secret.
45598
- example: sk-1234567890abcdef
45599
- required:
45600
- - object
45601
- - auth_method
45602
- - value
45603
- description: The credential object containing the vended secret.
45642
+ additionalProperties: {}
45643
+ description: >-
45644
+ Non-sensitive fields captured from the provider token response
45645
+ (e.g. Salesforce `instance_url`), as configured for the
45646
+ provider. Only present for `client_credentials` credentials.
45647
+ example:
45648
+ instance_url: https://acme.my.salesforce.com
45604
45649
  required:
45605
- - active
45606
- - credential
45650
+ - object
45651
+ - auth_method
45652
+ - value
45653
+ - expires_at
45654
+ - scopes
45655
+ - missing_scopes
45656
+ - metadata
45657
+ DataIntegrationCredentialsResponse:
45658
+ oneOf:
45607
45659
  - type: object
45608
45660
  properties:
45609
45661
  active:
@@ -45611,72 +45663,7 @@ components:
45611
45663
  description: Indicates credentials are available.
45612
45664
  const: true
45613
45665
  credential:
45614
- type: object
45615
- properties:
45616
- object:
45617
- type: string
45618
- description: Distinguishes the credential object.
45619
- const: credential
45620
- auth_method:
45621
- type: string
45622
- description: >-
45623
- The authentication method for this credential. Additional
45624
- values may be added in the future; handle unknown values
45625
- gracefully.
45626
- x-extensible-enum:
45627
- - oauth
45628
- - api_key
45629
- - client_credentials
45630
- const: client_credentials
45631
- value:
45632
- type: string
45633
- format: password
45634
- description: The client-credentials access token.
45635
- example: 00D5g000000XXXX!AQEAQ...
45636
- expires_at:
45637
- type:
45638
- - string
45639
- - 'null'
45640
- description: >-
45641
- The ISO-8601 formatted timestamp indicating when the
45642
- credential expires.
45643
- example: '2025-12-31T23:59:59.000Z'
45644
- scopes:
45645
- type: array
45646
- items:
45647
- type: string
45648
- description: The scopes granted to the access token.
45649
- example:
45650
- - api
45651
- missing_scopes:
45652
- type: array
45653
- items:
45654
- type: string
45655
- description: >-
45656
- If the integration has requested scopes that aren't present
45657
- on the access token, they're listed here. The scopes granted
45658
- to a client-credentials token are governed by the connected
45659
- organization's client application, so the integration's
45660
- configured scopes are requests or defaults rather than
45661
- guarantees.
45662
- example: []
45663
- metadata:
45664
- type: object
45665
- additionalProperties: {}
45666
- description: >-
45667
- Non-sensitive fields captured from the provider token
45668
- response (e.g. Salesforce `instance_url`), as configured for
45669
- the provider.
45670
- example:
45671
- instance_url: https://acme.my.salesforce.com
45672
- required:
45673
- - object
45674
- - auth_method
45675
- - value
45676
- - expires_at
45677
- - scopes
45678
- - missing_scopes
45679
- - metadata
45666
+ $ref: '#/components/schemas/DataIntegrationVendedCredential'
45680
45667
  description: The credential object containing the vended secret.
45681
45668
  required:
45682
45669
  - active
package/dist/types.d.ts CHANGED
@@ -18232,125 +18232,110 @@ export interface components {
18232
18232
  */
18233
18233
  message: string;
18234
18234
  };
18235
- DataIntegrationCredentialsResponse: {
18235
+ DataIntegrationVendedCredential: {
18236
18236
  /**
18237
- * @description Indicates credentials are available.
18237
+ * @description Distinguishes the credential object.
18238
18238
  * @constant
18239
18239
  */
18240
- active: true;
18241
- /** @description The credential object containing the vended secret. */
18242
- credential: {
18243
- /**
18244
- * @description Distinguishes the credential object.
18245
- * @constant
18246
- */
18247
- object: "credential";
18248
- /**
18249
- * @description The authentication method for this credential. Additional values may be added in the future; handle unknown values gracefully.
18250
- * @constant
18251
- */
18252
- auth_method: "oauth";
18253
- /**
18254
- * Format: password
18255
- * @description The OAuth access token.
18256
- * @example gho_16C7e42F292c6912E7710c838347Ae178B4a
18257
- */
18258
- value: string;
18259
- /**
18260
- * @description The ISO-8601 formatted timestamp indicating when the credential expires.
18261
- * @example 2025-12-31T23:59:59.000Z
18262
- */
18263
- expires_at: string | null;
18264
- /**
18265
- * @description The scopes granted to the access token.
18266
- * @example [
18267
- * "repo",
18268
- * "user:email"
18269
- * ]
18270
- */
18271
- scopes: string[];
18272
- /**
18273
- * @description If the integration has requested scopes that aren't present on the access token, they're listed here.
18274
- * @example []
18275
- */
18276
- missing_scopes: string[];
18277
- };
18240
+ object: "credential";
18241
+ /**
18242
+ * @description The authentication method for this credential. Additional values may be added in the future; handle unknown values gracefully.
18243
+ * @constant
18244
+ */
18245
+ auth_method: "oauth";
18246
+ /**
18247
+ * Format: password
18248
+ * @description The vended secret. An OAuth access token when `auth_method` is `oauth`, the API key when `api_key`, or the client-credentials access token when `client_credentials`.
18249
+ * @example gho_16C7e42F292c6912E7710c838347Ae178B4a
18250
+ */
18251
+ value: string;
18252
+ /**
18253
+ * @description The ISO-8601 formatted timestamp indicating when the credential expires, or `null` if it does not expire. Present for `oauth` and `client_credentials` credentials; absent for `api_key`.
18254
+ * @example 2025-12-31T23:59:59.000Z
18255
+ */
18256
+ expires_at: string | null;
18257
+ /**
18258
+ * @description The scopes granted to the access token. Present for `oauth` and `client_credentials` credentials; absent for `api_key`.
18259
+ * @example [
18260
+ * "repo",
18261
+ * "user:email"
18262
+ * ]
18263
+ */
18264
+ scopes: string[];
18265
+ /**
18266
+ * @description If the integration has requested scopes that aren't present on the access token, they're listed here. Present for `oauth` and `client_credentials` credentials; absent for `api_key`.
18267
+ * @example []
18268
+ */
18269
+ missing_scopes: string[];
18278
18270
  } | {
18279
18271
  /**
18280
- * @description Indicates credentials are available.
18272
+ * @description Distinguishes the credential object.
18281
18273
  * @constant
18282
18274
  */
18283
- active: true;
18284
- /** @description The credential object containing the vended secret. */
18285
- credential: {
18286
- /**
18287
- * @description Distinguishes the credential object.
18288
- * @constant
18289
- */
18290
- object: "credential";
18291
- /**
18292
- * @description The authentication method for this credential. Additional values may be added in the future; handle unknown values gracefully.
18293
- * @constant
18294
- */
18295
- auth_method: "api_key";
18296
- /**
18297
- * Format: password
18298
- * @description The API key secret.
18299
- * @example sk-1234567890abcdef
18300
- */
18301
- value: string;
18302
- };
18275
+ object: "credential";
18276
+ /**
18277
+ * @description The authentication method for this credential. Additional values may be added in the future; handle unknown values gracefully.
18278
+ * @constant
18279
+ */
18280
+ auth_method: "api_key";
18281
+ /**
18282
+ * Format: password
18283
+ * @description The API key secret.
18284
+ * @example sk-1234567890abcdef
18285
+ */
18286
+ value: string;
18303
18287
  } | {
18288
+ /**
18289
+ * @description Distinguishes the credential object.
18290
+ * @constant
18291
+ */
18292
+ object: "credential";
18293
+ /**
18294
+ * @description The authentication method for this credential. Additional values may be added in the future; handle unknown values gracefully.
18295
+ * @constant
18296
+ */
18297
+ auth_method: "client_credentials";
18298
+ /**
18299
+ * Format: password
18300
+ * @description The client-credentials access token.
18301
+ * @example 00D5g000000XXXX!AQEAQ...
18302
+ */
18303
+ value: string;
18304
+ /**
18305
+ * @description The ISO-8601 formatted timestamp indicating when the credential expires.
18306
+ * @example 2025-12-31T23:59:59.000Z
18307
+ */
18308
+ expires_at: string | null;
18309
+ /**
18310
+ * @description The scopes granted to the access token.
18311
+ * @example [
18312
+ * "api"
18313
+ * ]
18314
+ */
18315
+ scopes: string[];
18316
+ /**
18317
+ * @description If the integration has requested scopes that aren't present on the access token, they're listed here. The scopes granted to a client-credentials token are governed by the connected organization's client application, so the integration's configured scopes are requests or defaults rather than guarantees.
18318
+ * @example []
18319
+ */
18320
+ missing_scopes: string[];
18321
+ /**
18322
+ * @description Non-sensitive fields captured from the provider token response (e.g. Salesforce `instance_url`), as configured for the provider. Only present for `client_credentials` credentials.
18323
+ * @example {
18324
+ * "instance_url": "https://acme.my.salesforce.com"
18325
+ * }
18326
+ */
18327
+ metadata: {
18328
+ [key: string]: unknown;
18329
+ };
18330
+ };
18331
+ DataIntegrationCredentialsResponse: {
18304
18332
  /**
18305
18333
  * @description Indicates credentials are available.
18306
18334
  * @constant
18307
18335
  */
18308
18336
  active: true;
18309
18337
  /** @description The credential object containing the vended secret. */
18310
- credential: {
18311
- /**
18312
- * @description Distinguishes the credential object.
18313
- * @constant
18314
- */
18315
- object: "credential";
18316
- /**
18317
- * @description The authentication method for this credential. Additional values may be added in the future; handle unknown values gracefully.
18318
- * @constant
18319
- */
18320
- auth_method: "client_credentials";
18321
- /**
18322
- * Format: password
18323
- * @description The client-credentials access token.
18324
- * @example 00D5g000000XXXX!AQEAQ...
18325
- */
18326
- value: string;
18327
- /**
18328
- * @description The ISO-8601 formatted timestamp indicating when the credential expires.
18329
- * @example 2025-12-31T23:59:59.000Z
18330
- */
18331
- expires_at: string | null;
18332
- /**
18333
- * @description The scopes granted to the access token.
18334
- * @example [
18335
- * "api"
18336
- * ]
18337
- */
18338
- scopes: string[];
18339
- /**
18340
- * @description If the integration has requested scopes that aren't present on the access token, they're listed here. The scopes granted to a client-credentials token are governed by the connected organization's client application, so the integration's configured scopes are requests or defaults rather than guarantees.
18341
- * @example []
18342
- */
18343
- missing_scopes: string[];
18344
- /**
18345
- * @description Non-sensitive fields captured from the provider token response (e.g. Salesforce `instance_url`), as configured for the provider.
18346
- * @example {
18347
- * "instance_url": "https://acme.my.salesforce.com"
18348
- * }
18349
- */
18350
- metadata: {
18351
- [key: string]: unknown;
18352
- };
18353
- };
18338
+ credential: components["schemas"]["DataIntegrationVendedCredential"];
18354
18339
  } | {
18355
18340
  /**
18356
18341
  * @description Indicates credentials are not available.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.108.0",
3
+ "version": "0.109.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",