@workos/openapi-spec 0.108.0 → 0.110.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.
@@ -9866,6 +9866,20 @@ paths:
9866
9866
  required:
9867
9867
  - code
9868
9868
  - message
9869
+ - type: object
9870
+ properties:
9871
+ code:
9872
+ type: string
9873
+ description: The error code identifying the type of error.
9874
+ example: saml_request_binding_unsupported_for_signing
9875
+ const: saml_request_binding_unsupported_for_signing
9876
+ message:
9877
+ type: string
9878
+ description: A human-readable description of the error.
9879
+ example: Request could not be processed.
9880
+ required:
9881
+ - code
9882
+ - message
9869
9883
  '403':
9870
9884
  description: Forbidden
9871
9885
  content:
@@ -45501,109 +45515,161 @@ components:
45501
45515
  required:
45502
45516
  - code
45503
45517
  - message
45504
- DataIntegrationCredentialsResponse:
45518
+ DataIntegrationVendedCredential:
45519
+ discriminator:
45520
+ propertyName: auth_method
45505
45521
  oneOf:
45506
45522
  - type: object
45507
45523
  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.
45524
+ object:
45525
+ type: string
45526
+ description: Distinguishes the credential object.
45527
+ const: credential
45528
+ auth_method:
45529
+ type: string
45530
+ description: >-
45531
+ The authentication method for this credential. Additional values
45532
+ may be added in the future; handle unknown values gracefully.
45533
+ x-extensible-enum:
45534
+ - oauth
45535
+ - api_key
45536
+ - client_credentials
45537
+ const: oauth
45538
+ value:
45539
+ type: string
45540
+ format: password
45541
+ description: >-
45542
+ The vended secret. An OAuth access token when `auth_method` is
45543
+ `oauth`, the API key when `api_key`, or the client-credentials
45544
+ access token when `client_credentials`.
45545
+ example: gho_16C7e42F292c6912E7710c838347Ae178B4a
45546
+ expires_at:
45547
+ type:
45548
+ - string
45549
+ - 'null'
45550
+ description: >-
45551
+ The ISO-8601 formatted timestamp indicating when the credential
45552
+ expires, or `null` if it does not expire. Present for `oauth`
45553
+ and `client_credentials` credentials; absent for `api_key`.
45554
+ example: '2025-12-31T23:59:59.000Z'
45555
+ scopes:
45556
+ type: array
45557
+ items:
45558
+ type: string
45559
+ description: >-
45560
+ The scopes granted to the access token. Present for `oauth` and
45561
+ `client_credentials` credentials; absent for `api_key`.
45562
+ example:
45563
+ - repo
45564
+ - user:email
45565
+ missing_scopes:
45566
+ type: array
45567
+ items:
45568
+ type: string
45569
+ description: >-
45570
+ If the integration has requested scopes that aren't present on
45571
+ the access token, they're listed here. Present for `oauth` and
45572
+ `client_credentials` credentials; absent for `api_key`.
45573
+ example: []
45567
45574
  required:
45568
- - active
45569
- - credential
45575
+ - object
45576
+ - auth_method
45577
+ - value
45578
+ - expires_at
45579
+ - scopes
45580
+ - missing_scopes
45570
45581
  - type: object
45571
45582
  properties:
45572
- active:
45573
- type: boolean
45574
- description: Indicates credentials are available.
45575
- const: true
45576
- credential:
45583
+ object:
45584
+ type: string
45585
+ description: Distinguishes the credential object.
45586
+ const: credential
45587
+ auth_method:
45588
+ type: string
45589
+ description: >-
45590
+ The authentication method for this credential. Additional values
45591
+ may be added in the future; handle unknown values gracefully.
45592
+ x-extensible-enum:
45593
+ - oauth
45594
+ - api_key
45595
+ - client_credentials
45596
+ const: api_key
45597
+ value:
45598
+ type: string
45599
+ format: password
45600
+ description: The API key secret.
45601
+ example: sk-1234567890abcdef
45602
+ required:
45603
+ - object
45604
+ - auth_method
45605
+ - value
45606
+ - type: object
45607
+ properties:
45608
+ object:
45609
+ type: string
45610
+ description: Distinguishes the credential object.
45611
+ const: credential
45612
+ auth_method:
45613
+ type: string
45614
+ description: >-
45615
+ The authentication method for this credential. Additional values
45616
+ may be added in the future; handle unknown values gracefully.
45617
+ x-extensible-enum:
45618
+ - oauth
45619
+ - api_key
45620
+ - client_credentials
45621
+ const: client_credentials
45622
+ value:
45623
+ type: string
45624
+ format: password
45625
+ description: The client-credentials access token.
45626
+ example: 00D5g000000XXXX!AQEAQ...
45627
+ expires_at:
45628
+ type:
45629
+ - string
45630
+ - 'null'
45631
+ description: >-
45632
+ The ISO-8601 formatted timestamp indicating when the credential
45633
+ expires.
45634
+ example: '2025-12-31T23:59:59.000Z'
45635
+ scopes:
45636
+ type: array
45637
+ items:
45638
+ type: string
45639
+ description: The scopes granted to the access token.
45640
+ example:
45641
+ - api
45642
+ missing_scopes:
45643
+ type: array
45644
+ items:
45645
+ type: string
45646
+ description: >-
45647
+ If the integration has requested scopes that aren't present on
45648
+ the access token, they're listed here. The scopes granted to a
45649
+ client-credentials token are governed by the connected
45650
+ organization's client application, so the integration's
45651
+ configured scopes are requests or defaults rather than
45652
+ guarantees.
45653
+ example: []
45654
+ metadata:
45577
45655
  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.
45656
+ additionalProperties: {}
45657
+ description: >-
45658
+ Non-sensitive fields captured from the provider token response
45659
+ (e.g. Salesforce `instance_url`), as configured for the
45660
+ provider. Only present for `client_credentials` credentials.
45661
+ example:
45662
+ instance_url: https://acme.my.salesforce.com
45604
45663
  required:
45605
- - active
45606
- - credential
45664
+ - object
45665
+ - auth_method
45666
+ - value
45667
+ - expires_at
45668
+ - scopes
45669
+ - missing_scopes
45670
+ - metadata
45671
+ DataIntegrationCredentialsResponse:
45672
+ oneOf:
45607
45673
  - type: object
45608
45674
  properties:
45609
45675
  active:
@@ -45611,72 +45677,7 @@ components:
45611
45677
  description: Indicates credentials are available.
45612
45678
  const: true
45613
45679
  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
45680
+ $ref: '#/components/schemas/DataIntegrationVendedCredential'
45680
45681
  description: The credential object containing the vended secret.
45681
45682
  required:
45682
45683
  - 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.
@@ -28803,6 +28788,18 @@ export interface operations {
28803
28788
  * @example Request could not be processed.
28804
28789
  */
28805
28790
  message: string;
28791
+ } | {
28792
+ /**
28793
+ * @description The error code identifying the type of error.
28794
+ * @example saml_request_binding_unsupported_for_signing
28795
+ * @constant
28796
+ */
28797
+ code: "saml_request_binding_unsupported_for_signing";
28798
+ /**
28799
+ * @description A human-readable description of the error.
28800
+ * @example Request could not be processed.
28801
+ */
28802
+ message: string;
28806
28803
  };
28807
28804
  };
28808
28805
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.108.0",
3
+ "version": "0.110.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",