@workos/openapi-spec 0.58.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.
@@ -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
@@ -36294,6 +36309,7 @@ components:
36294
36309
  x-extensible-enum:
36295
36310
  - oauth
36296
36311
  - api_key
36312
+ - client_credentials
36297
36313
  const: oauth
36298
36314
  value:
36299
36315
  type: string
@@ -36356,6 +36372,7 @@ components:
36356
36372
  x-extensible-enum:
36357
36373
  - oauth
36358
36374
  - api_key
36375
+ - client_credentials
36359
36376
  const: api_key
36360
36377
  value:
36361
36378
  type: string
@@ -36369,6 +36386,78 @@ components:
36369
36386
  required:
36370
36387
  - active
36371
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
36372
36461
  - type: object
36373
36462
  properties:
36374
36463
  active:
package/dist/types.d.ts CHANGED
@@ -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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.58.0",
3
+ "version": "0.59.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",