@workos/openapi-spec 0.50.0 → 0.51.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.
@@ -7737,6 +7737,18 @@ paths:
7737
7737
  format: uri
7738
7738
  description: The URL to redirect the user to after authorization.
7739
7739
  example: https://example.com/callback
7740
+ config:
7741
+ type: object
7742
+ additionalProperties:
7743
+ type: string
7744
+ description: >-
7745
+ Connect-time config values for the provider-declared
7746
+ `installation`-scope fields (e.g. a Zendesk `subdomain`),
7747
+ keyed by the config field. Only fields the provider declares
7748
+ may be supplied, and required fields must be provided unless
7749
+ already pinned on the integration.
7750
+ example:
7751
+ subdomain: acme
7740
7752
  required:
7741
7753
  - user_id
7742
7754
  responses:
@@ -10193,10 +10205,13 @@ paths:
10193
10205
  '400':
10194
10206
  description: >-
10195
10207
  The request body is invalid. Possible reasons: the body is empty (at
10196
- least one of `enabled`, `scopes`, or `client_id` must be provided);
10197
- `client_id` and `client_secret` are not provided together; or
10198
- `client_id`/`client_secret` were supplied for a provider that does
10199
- not support organization-managed credentials.
10208
+ least one of `enabled`, `scopes`, `client_id`, or `config` must be
10209
+ provided); `client_id` and `client_secret` are not provided
10210
+ together; `client_id`/`client_secret` were supplied for a provider
10211
+ that does not support organization-managed credentials; or `config`
10212
+ contains a field the provider does not declare, a value that does
10213
+ not match that field's pattern, or was supplied for a provider whose
10214
+ credentials are not organization-managed.
10200
10215
  content:
10201
10216
  application/json:
10202
10217
  schema:
@@ -35555,6 +35570,17 @@ components:
35555
35570
  items:
35556
35571
  type: string
35557
35572
  - type: 'null'
35573
+ config:
35574
+ type: object
35575
+ additionalProperties:
35576
+ type: string
35577
+ description: >-
35578
+ The provider-specific config values in effect for this organization,
35579
+ keyed by config field. Reflects the organization override for
35580
+ organization-credential providers, otherwise the provider root.
35581
+ Empty when none are configured.
35582
+ example:
35583
+ account_identifier: acme-prod
35558
35584
  created_at:
35559
35585
  type: string
35560
35586
  description: The timestamp when the configuration was created.
@@ -35573,6 +35599,7 @@ components:
35573
35599
  - name
35574
35600
  - enabled
35575
35601
  - scopes
35602
+ - config
35576
35603
  - created_at
35577
35604
  - updated_at
35578
35605
  DataIntegrationConfigurationListResponse:
@@ -35624,6 +35651,20 @@ components:
35624
35651
  The OAuth client secret of the organization's own application. Must
35625
35652
  be provided together with `client_id`.
35626
35653
  example: ••••••••
35654
+ config:
35655
+ type: object
35656
+ additionalProperties:
35657
+ type: string
35658
+ description: >-
35659
+ Provider-specific config values to set for the organization, keyed
35660
+ by config field. Only fields the provider declares are accepted, and
35661
+ each value must match that field's pattern. Accepted only for
35662
+ providers whose credentials are organization-managed; for shared or
35663
+ custom credential providers, config belongs on the integration
35664
+ itself (via the data-integrations API) and supplying it here is
35665
+ rejected.
35666
+ example:
35667
+ account_identifier: acme-prod
35627
35668
  DataIntegration:
35628
35669
  type: object
35629
35670
  properties:
package/dist/types.d.ts CHANGED
@@ -15208,6 +15208,15 @@ export interface components {
15208
15208
  * ]
15209
15209
  */
15210
15210
  scopes: string[] | null;
15211
+ /**
15212
+ * @description The provider-specific config values in effect for this organization, keyed by config field. Reflects the organization override for organization-credential providers, otherwise the provider root. Empty when none are configured.
15213
+ * @example {
15214
+ * "account_identifier": "acme-prod"
15215
+ * }
15216
+ */
15217
+ config: {
15218
+ [key: string]: string;
15219
+ };
15211
15220
  /**
15212
15221
  * @description The timestamp when the configuration was created.
15213
15222
  * @example 2024-01-15T10:30:00.000Z
@@ -15253,6 +15262,15 @@ export interface components {
15253
15262
  * @example ••••••••
15254
15263
  */
15255
15264
  client_secret?: string;
15265
+ /**
15266
+ * @description Provider-specific config values to set for the organization, keyed by config field. Only fields the provider declares are accepted, and each value must match that field's pattern. Accepted only for providers whose credentials are organization-managed; for shared or custom credential providers, config belongs on the integration itself (via the data-integrations API) and supplying it here is rejected.
15267
+ * @example {
15268
+ * "account_identifier": "acme-prod"
15269
+ * }
15270
+ */
15271
+ config?: {
15272
+ [key: string]: string;
15273
+ };
15256
15274
  };
15257
15275
  DataIntegration: {
15258
15276
  /**
@@ -23878,6 +23896,15 @@ export interface operations {
23878
23896
  * @example https://example.com/callback
23879
23897
  */
23880
23898
  return_to?: string;
23899
+ /**
23900
+ * @description Connect-time config values for the provider-declared `installation`-scope fields (e.g. a Zendesk `subdomain`), keyed by the config field. Only fields the provider declares may be supplied, and required fields must be provided unless already pinned on the integration.
23901
+ * @example {
23902
+ * "subdomain": "acme"
23903
+ * }
23904
+ */
23905
+ config?: {
23906
+ [key: string]: string;
23907
+ };
23881
23908
  };
23882
23909
  };
23883
23910
  };
@@ -26113,7 +26140,7 @@ export interface operations {
26113
26140
  "application/json": components["schemas"]["DataIntegrationConfigurationResponse"];
26114
26141
  };
26115
26142
  };
26116
- /** @description The request body is invalid. Possible reasons: the body is empty (at least one of `enabled`, `scopes`, or `client_id` must be provided); `client_id` and `client_secret` are not provided together; or `client_id`/`client_secret` were supplied for a provider that does not support organization-managed credentials. */
26143
+ /** @description The request body is invalid. Possible reasons: the body is empty (at least one of `enabled`, `scopes`, `client_id`, or `config` must be provided); `client_id` and `client_secret` are not provided together; `client_id`/`client_secret` were supplied for a provider that does not support organization-managed credentials; or `config` contains a field the provider does not declare, a value that does not match that field's pattern, or was supplied for a provider whose credentials are not organization-managed. */
26117
26144
  400: {
26118
26145
  headers: {
26119
26146
  [name: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.50.0",
3
+ "version": "0.51.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",