@workos/openapi-spec 0.144.0 → 0.145.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/README.md +5 -1
- package/dist/open-api-spec.yaml +446 -224
- package/dist/policy.d.mts +0 -10
- package/dist/policy.mjs +5 -10
- package/dist/services.d.mts +1 -3
- package/dist/services.mjs +6 -2
- package/dist/types.d.ts +314 -146
- package/package.json +6 -6
package/dist/types.d.ts
CHANGED
|
@@ -1455,6 +1455,26 @@ export interface paths {
|
|
|
1455
1455
|
patch?: never;
|
|
1456
1456
|
trace?: never;
|
|
1457
1457
|
};
|
|
1458
|
+
"/data-integrations/finish": {
|
|
1459
|
+
parameters: {
|
|
1460
|
+
query?: never;
|
|
1461
|
+
header?: never;
|
|
1462
|
+
path?: never;
|
|
1463
|
+
cookie?: never;
|
|
1464
|
+
};
|
|
1465
|
+
get?: never;
|
|
1466
|
+
put?: never;
|
|
1467
|
+
/**
|
|
1468
|
+
* Finish connection
|
|
1469
|
+
* @description Saves a connection that was started with `code_challenge`. After the user authorizes, WorkOS redirects them to `return_to` with a `connect_code` and `state`. Call this endpoint from your server with that `connect_code` and the `code_verifier` behind the challenge to save the connected account.
|
|
1470
|
+
*/
|
|
1471
|
+
post: operations["DataIntegrationsController_finishConnection"];
|
|
1472
|
+
delete?: never;
|
|
1473
|
+
options?: never;
|
|
1474
|
+
head?: never;
|
|
1475
|
+
patch?: never;
|
|
1476
|
+
trace?: never;
|
|
1477
|
+
};
|
|
1458
1478
|
"/data-integrations/{slug}": {
|
|
1459
1479
|
parameters: {
|
|
1460
1480
|
query?: never;
|
|
@@ -18432,12 +18452,163 @@ export interface components {
|
|
|
18432
18452
|
after: string | null;
|
|
18433
18453
|
};
|
|
18434
18454
|
};
|
|
18455
|
+
/**
|
|
18456
|
+
* @example {
|
|
18457
|
+
* "object": "connected_account",
|
|
18458
|
+
* "id": "data_installation_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
18459
|
+
* "connection_role": "compatibility",
|
|
18460
|
+
* "account_identifier": "workspace_123",
|
|
18461
|
+
* "account_display_name": "Acme production",
|
|
18462
|
+
* "user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
18463
|
+
* "organization_id": null,
|
|
18464
|
+
* "scopes": [
|
|
18465
|
+
* "repo",
|
|
18466
|
+
* "user:email"
|
|
18467
|
+
* ],
|
|
18468
|
+
* "auth_method": "oauth",
|
|
18469
|
+
* "api_key_last_4": null,
|
|
18470
|
+
* "config": {},
|
|
18471
|
+
* "state": "connected",
|
|
18472
|
+
* "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
18473
|
+
* "state_reason": null,
|
|
18474
|
+
* "created_at": "2024-01-16T14:20:00.000Z",
|
|
18475
|
+
* "updated_at": "2024-01-16T14:20:00.000Z"
|
|
18476
|
+
* }
|
|
18477
|
+
*/
|
|
18478
|
+
ConnectedAccount: {
|
|
18479
|
+
/**
|
|
18480
|
+
* @description Distinguishes the connected account object.
|
|
18481
|
+
* @constant
|
|
18482
|
+
*/
|
|
18483
|
+
object: "connected_account";
|
|
18484
|
+
/**
|
|
18485
|
+
* @description The unique identifier of the connected account.
|
|
18486
|
+
* @example data_installation_01EHZNVPK3SFK441A1RGBFSHRT
|
|
18487
|
+
*/
|
|
18488
|
+
id: string;
|
|
18489
|
+
/**
|
|
18490
|
+
* @description Whether this row is the compatibility connection visible to undeclared clients or a standard peer for plural-aware clients. The role does not indicate preference or creation order.
|
|
18491
|
+
* @example compatibility
|
|
18492
|
+
* @enum {string}
|
|
18493
|
+
*/
|
|
18494
|
+
connection_role: "compatibility" | "standard";
|
|
18495
|
+
/**
|
|
18496
|
+
* @description A best-effort identifier for the provider account this connection points at. It is correlation metadata, not the connection identifier or a selector.
|
|
18497
|
+
* @example workspace_123
|
|
18498
|
+
*/
|
|
18499
|
+
account_identifier: string | null;
|
|
18500
|
+
/**
|
|
18501
|
+
* @description A mutable, non-unique display name for the provider account connection.
|
|
18502
|
+
* @example Acme production
|
|
18503
|
+
*/
|
|
18504
|
+
account_display_name: string | null;
|
|
18505
|
+
/**
|
|
18506
|
+
* @description The [User](/reference/authkit/user) identifier associated with this connection.
|
|
18507
|
+
* @example user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
18508
|
+
*/
|
|
18509
|
+
user_id: string | null;
|
|
18510
|
+
/**
|
|
18511
|
+
* @description The [Organization](/reference/organization) identifier associated with this connection, or `null` if not scoped to an organization.
|
|
18512
|
+
* @example null
|
|
18513
|
+
*/
|
|
18514
|
+
organization_id: string | null;
|
|
18515
|
+
/**
|
|
18516
|
+
* @description The OAuth scopes granted for this connection.
|
|
18517
|
+
* @example [
|
|
18518
|
+
* "repo",
|
|
18519
|
+
* "user:email"
|
|
18520
|
+
* ]
|
|
18521
|
+
*/
|
|
18522
|
+
scopes: string[];
|
|
18523
|
+
/**
|
|
18524
|
+
* @description The authentication method used for this connection (`oauth`, `api_key`, or `client_credentials`). Defaults to `oauth` if absent.
|
|
18525
|
+
* @example oauth
|
|
18526
|
+
* @enum {string}
|
|
18527
|
+
*/
|
|
18528
|
+
auth_method?: "oauth" | "api_key" | "client_credentials";
|
|
18529
|
+
/**
|
|
18530
|
+
* @description The last four characters of the API key, or `null` for OAuth connections.
|
|
18531
|
+
* @example null
|
|
18532
|
+
*/
|
|
18533
|
+
api_key_last_4?: string | null;
|
|
18534
|
+
/**
|
|
18535
|
+
* @description The client ID supplied for this connection. Only present when `auth_method` is `client_credentials`.
|
|
18536
|
+
* @example 3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc
|
|
18537
|
+
*/
|
|
18538
|
+
client_id?: string | null;
|
|
18539
|
+
/**
|
|
18540
|
+
* @description The last four characters of the client secret supplied for this connection, or `null` when it can't be read. Only present when `auth_method` is `client_credentials`.
|
|
18541
|
+
* @example cdef
|
|
18542
|
+
*/
|
|
18543
|
+
client_secret_last_4?: string | null;
|
|
18544
|
+
/**
|
|
18545
|
+
* @description The connection-level configuration values stored for this connection — the fields the provider declares at `installation` scope, excluding secret and undeclared fields. Returned for every authentication method; empty when no stored values can be disclosed.
|
|
18546
|
+
* @example {
|
|
18547
|
+
* "instance_url": "https://example.my.salesforce.com"
|
|
18548
|
+
* }
|
|
18549
|
+
*/
|
|
18550
|
+
config?: {
|
|
18551
|
+
[key: string]: string;
|
|
18552
|
+
};
|
|
18553
|
+
/**
|
|
18554
|
+
* @description The state of the connected account:
|
|
18555
|
+
* - `connected`: The connection is active and tokens are valid.
|
|
18556
|
+
* - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed. `state_reason` explains why when WorkOS invalidated the connection itself.
|
|
18557
|
+
* - `disconnected`: The connection has been disconnected.
|
|
18558
|
+
* @example connected
|
|
18559
|
+
* @enum {string}
|
|
18560
|
+
*/
|
|
18561
|
+
state: "connected" | "needs_reauthorization" | "disconnected";
|
|
18562
|
+
/**
|
|
18563
|
+
* @description The [User](/reference/authkit/user) whose authorization established this connection. `null` when the connection is developer-managed or its establisher is unknown, and when the establishing member lost access to the organization — in which case `state_reason` is `establishing_member_membership_ended`.
|
|
18564
|
+
* @example user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
18565
|
+
*/
|
|
18566
|
+
established_by_user_id?: string | null;
|
|
18567
|
+
/**
|
|
18568
|
+
* @description Why WorkOS put the connection in its current `state`, or `null` when there is no WorkOS-recorded reason:
|
|
18569
|
+
* - `establishing_member_membership_ended`: The member who established this organization-owned connection is no longer an active member of the organization, so its credentials were cleared. An organization admin must provide new credentials.
|
|
18570
|
+
*
|
|
18571
|
+
* Additional values may be added; treat an unrecognized value as an unknown reason.
|
|
18572
|
+
* @example null
|
|
18573
|
+
*/
|
|
18574
|
+
state_reason?: "establishing_member_membership_ended" | null;
|
|
18575
|
+
/**
|
|
18576
|
+
* @description The timestamp when the connection was created.
|
|
18577
|
+
* @example 2024-01-16T14:20:00.000Z
|
|
18578
|
+
*/
|
|
18579
|
+
created_at: string;
|
|
18580
|
+
/**
|
|
18581
|
+
* @description The timestamp when the connection was last updated.
|
|
18582
|
+
* @example 2024-01-16T14:20:00.000Z
|
|
18583
|
+
*/
|
|
18584
|
+
updated_at: string;
|
|
18585
|
+
/** @description Non-blocking warnings about an explicitly supplied label. Only writes return it, and only when another connection already uses the label; reads omit it. */
|
|
18586
|
+
warnings?: {
|
|
18587
|
+
/** @constant */
|
|
18588
|
+
code: "duplicate_account_display_name";
|
|
18589
|
+
/**
|
|
18590
|
+
* @description A human-readable explanation of the non-blocking warning.
|
|
18591
|
+
* @example Another connection for this provider and owner has the same label.
|
|
18592
|
+
*/
|
|
18593
|
+
message: string;
|
|
18594
|
+
}[];
|
|
18595
|
+
};
|
|
18596
|
+
DataIntegrationFinishConnectionResponse: {
|
|
18597
|
+
/** @description The connected account that was saved. */
|
|
18598
|
+
connected_account: components["schemas"]["ConnectedAccount"];
|
|
18599
|
+
};
|
|
18435
18600
|
DataIntegrationAuthorizeUrlResponse: {
|
|
18436
18601
|
/**
|
|
18437
18602
|
* @description The OAuth authorization URL to redirect the user to.
|
|
18438
18603
|
* @example https://api.workos.com/data-integrations/q2czJKmVAraSBg8xFpT7M9uR/authorize-redirect
|
|
18439
18604
|
*/
|
|
18440
18605
|
url: string;
|
|
18606
|
+
/**
|
|
18607
|
+
* @description `finish_required` when the request included `code_challenge`: the connection will be held until your app finishes it. Omitted otherwise. If you sent `code_challenge` and this is missing, don't redirect the user.
|
|
18608
|
+
* @example finish_required
|
|
18609
|
+
* @constant
|
|
18610
|
+
*/
|
|
18611
|
+
completion?: "finish_required";
|
|
18441
18612
|
};
|
|
18442
18613
|
AuthMethodMismatchError: {
|
|
18443
18614
|
/**
|
|
@@ -18671,124 +18842,6 @@ export interface components {
|
|
|
18671
18842
|
*/
|
|
18672
18843
|
error: "not_installed" | "needs_reauthorization";
|
|
18673
18844
|
};
|
|
18674
|
-
ConnectedAccount: {
|
|
18675
|
-
/**
|
|
18676
|
-
* @description Distinguishes the connected account object.
|
|
18677
|
-
* @constant
|
|
18678
|
-
*/
|
|
18679
|
-
object: "connected_account";
|
|
18680
|
-
/**
|
|
18681
|
-
* @description The unique identifier of the connected account.
|
|
18682
|
-
* @example data_installation_01EHZNVPK3SFK441A1RGBFSHRT
|
|
18683
|
-
*/
|
|
18684
|
-
id: string;
|
|
18685
|
-
/**
|
|
18686
|
-
* @description Whether this row is the compatibility connection visible to undeclared clients or a standard peer for plural-aware clients. The role does not indicate preference or creation order.
|
|
18687
|
-
* @example compatibility
|
|
18688
|
-
* @enum {string}
|
|
18689
|
-
*/
|
|
18690
|
-
connection_role: "compatibility" | "standard";
|
|
18691
|
-
/**
|
|
18692
|
-
* @description A best-effort identifier for the provider account this connection points at. It is correlation metadata, not the connection identifier or a selector.
|
|
18693
|
-
* @example workspace_123
|
|
18694
|
-
*/
|
|
18695
|
-
account_identifier: string | null;
|
|
18696
|
-
/**
|
|
18697
|
-
* @description A mutable, non-unique display name for the provider account connection.
|
|
18698
|
-
* @example Acme production
|
|
18699
|
-
*/
|
|
18700
|
-
account_display_name: string | null;
|
|
18701
|
-
/**
|
|
18702
|
-
* @description The [User](/reference/authkit/user) identifier associated with this connection.
|
|
18703
|
-
* @example user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
18704
|
-
*/
|
|
18705
|
-
user_id: string | null;
|
|
18706
|
-
/**
|
|
18707
|
-
* @description The [Organization](/reference/organization) identifier associated with this connection, or `null` if not scoped to an organization.
|
|
18708
|
-
* @example null
|
|
18709
|
-
*/
|
|
18710
|
-
organization_id: string | null;
|
|
18711
|
-
/**
|
|
18712
|
-
* @description The OAuth scopes granted for this connection.
|
|
18713
|
-
* @example [
|
|
18714
|
-
* "repo",
|
|
18715
|
-
* "user:email"
|
|
18716
|
-
* ]
|
|
18717
|
-
*/
|
|
18718
|
-
scopes: string[];
|
|
18719
|
-
/**
|
|
18720
|
-
* @description The authentication method used for this connection (`oauth`, `api_key`, or `client_credentials`). Defaults to `oauth` if absent.
|
|
18721
|
-
* @example oauth
|
|
18722
|
-
* @enum {string}
|
|
18723
|
-
*/
|
|
18724
|
-
auth_method?: "oauth" | "api_key" | "client_credentials";
|
|
18725
|
-
/**
|
|
18726
|
-
* @description The last four characters of the API key, or `null` for OAuth connections.
|
|
18727
|
-
* @example null
|
|
18728
|
-
*/
|
|
18729
|
-
api_key_last_4?: string | null;
|
|
18730
|
-
/**
|
|
18731
|
-
* @description The client ID supplied for this connection. Only present when `auth_method` is `client_credentials`.
|
|
18732
|
-
* @example 3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc
|
|
18733
|
-
*/
|
|
18734
|
-
client_id?: string | null;
|
|
18735
|
-
/**
|
|
18736
|
-
* @description The last four characters of the client secret supplied for this connection, or `null` when it can't be read. Only present when `auth_method` is `client_credentials`.
|
|
18737
|
-
* @example cdef
|
|
18738
|
-
*/
|
|
18739
|
-
client_secret_last_4?: string | null;
|
|
18740
|
-
/**
|
|
18741
|
-
* @description The connection-level configuration values stored for this connection — the fields the provider declares at `installation` scope, excluding secret and undeclared fields. Returned for every authentication method; empty when no stored values can be disclosed.
|
|
18742
|
-
* @example {
|
|
18743
|
-
* "instance_url": "https://example.my.salesforce.com"
|
|
18744
|
-
* }
|
|
18745
|
-
*/
|
|
18746
|
-
config?: {
|
|
18747
|
-
[key: string]: string;
|
|
18748
|
-
};
|
|
18749
|
-
/**
|
|
18750
|
-
* @description The state of the connected account:
|
|
18751
|
-
* - `connected`: The connection is active and tokens are valid.
|
|
18752
|
-
* - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed. `state_reason` explains why when WorkOS invalidated the connection itself.
|
|
18753
|
-
* - `disconnected`: The connection has been disconnected.
|
|
18754
|
-
* @example connected
|
|
18755
|
-
* @enum {string}
|
|
18756
|
-
*/
|
|
18757
|
-
state: "connected" | "needs_reauthorization" | "disconnected";
|
|
18758
|
-
/**
|
|
18759
|
-
* @description The [User](/reference/authkit/user) whose authorization established this connection. `null` when the connection is developer-managed or its establisher is unknown, and when the establishing member lost access to the organization — in which case `state_reason` is `establishing_member_membership_ended`.
|
|
18760
|
-
* @example user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
18761
|
-
*/
|
|
18762
|
-
established_by_user_id?: string | null;
|
|
18763
|
-
/**
|
|
18764
|
-
* @description Why WorkOS put the connection in its current `state`, or `null` when there is no WorkOS-recorded reason:
|
|
18765
|
-
* - `establishing_member_membership_ended`: The member who established this organization-owned connection is no longer an active member of the organization, so its credentials were cleared. An organization admin must provide new credentials.
|
|
18766
|
-
*
|
|
18767
|
-
* Additional values may be added; treat an unrecognized value as an unknown reason.
|
|
18768
|
-
* @example null
|
|
18769
|
-
*/
|
|
18770
|
-
state_reason?: "establishing_member_membership_ended" | null;
|
|
18771
|
-
/**
|
|
18772
|
-
* @description The timestamp when the connection was created.
|
|
18773
|
-
* @example 2024-01-16T14:20:00.000Z
|
|
18774
|
-
*/
|
|
18775
|
-
created_at: string;
|
|
18776
|
-
/**
|
|
18777
|
-
* @description The timestamp when the connection was last updated.
|
|
18778
|
-
* @example 2024-01-16T14:20:00.000Z
|
|
18779
|
-
*/
|
|
18780
|
-
updated_at: string;
|
|
18781
|
-
/** @description Non-blocking warnings about an explicitly supplied label. Only writes return it, and only when another connection already uses the label; reads omit it. */
|
|
18782
|
-
warnings?: {
|
|
18783
|
-
/** @constant */
|
|
18784
|
-
code: "duplicate_account_display_name";
|
|
18785
|
-
/**
|
|
18786
|
-
* @description A human-readable explanation of the non-blocking warning.
|
|
18787
|
-
* @example Another connection for this provider and owner has the same label.
|
|
18788
|
-
*/
|
|
18789
|
-
message: string;
|
|
18790
|
-
}[];
|
|
18791
|
-
};
|
|
18792
18845
|
DataIntegrationsListResponse: {
|
|
18793
18846
|
/**
|
|
18794
18847
|
* @description Indicates this is a list response.
|
|
@@ -18889,7 +18942,34 @@ export interface components {
|
|
|
18889
18942
|
* @description Use updated_at instead.
|
|
18890
18943
|
*/
|
|
18891
18944
|
updatedAt: string;
|
|
18892
|
-
/**
|
|
18945
|
+
/**
|
|
18946
|
+
* @description The user's compatibility [connected account](/reference/pipes/connected-account) for this provider, or `null` when the compatibility slot is empty. This legacy field never selects a standard connection.
|
|
18947
|
+
* @example {
|
|
18948
|
+
* "object": "connected_account",
|
|
18949
|
+
* "id": "data_installation_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
18950
|
+
* "connection_role": "compatibility",
|
|
18951
|
+
* "account_identifier": "workspace_123",
|
|
18952
|
+
* "account_display_name": "Acme production",
|
|
18953
|
+
* "user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
18954
|
+
* "organization_id": null,
|
|
18955
|
+
* "scopes": [
|
|
18956
|
+
* "repo",
|
|
18957
|
+
* "user:email"
|
|
18958
|
+
* ],
|
|
18959
|
+
* "auth_method": "oauth",
|
|
18960
|
+
* "api_key_last_4": null,
|
|
18961
|
+
* "config": {},
|
|
18962
|
+
* "state": "connected",
|
|
18963
|
+
* "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
18964
|
+
* "state_reason": null,
|
|
18965
|
+
* "created_at": "2024-01-16T14:20:00.000Z",
|
|
18966
|
+
* "updated_at": "2024-01-16T14:20:00.000Z",
|
|
18967
|
+
* "userlandUserId": "user_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
18968
|
+
* "organizationId": null,
|
|
18969
|
+
* "createdAt": "2024-01-16T14:20:00.000Z",
|
|
18970
|
+
* "updatedAt": "2024-01-16T14:20:00.000Z"
|
|
18971
|
+
* }
|
|
18972
|
+
*/
|
|
18893
18973
|
connected_account: {
|
|
18894
18974
|
/**
|
|
18895
18975
|
* @description Distinguishes the connected account object.
|
|
@@ -30553,6 +30633,91 @@ export interface operations {
|
|
|
30553
30633
|
};
|
|
30554
30634
|
};
|
|
30555
30635
|
};
|
|
30636
|
+
DataIntegrationsController_finishConnection: {
|
|
30637
|
+
parameters: {
|
|
30638
|
+
query?: never;
|
|
30639
|
+
header?: never;
|
|
30640
|
+
path?: never;
|
|
30641
|
+
cookie?: never;
|
|
30642
|
+
};
|
|
30643
|
+
requestBody: {
|
|
30644
|
+
content: {
|
|
30645
|
+
"application/json": {
|
|
30646
|
+
/**
|
|
30647
|
+
* @description The `connect_code` WorkOS added to `return_to` when the user finished authorizing. It can be used once and expires 90 seconds after the redirect.
|
|
30648
|
+
* @example Q3n0bWh2b0tqZ1VtV2ZsYkJ3cE9aV0J6T1hGb1lYaGo
|
|
30649
|
+
*/
|
|
30650
|
+
connect_code: string;
|
|
30651
|
+
/**
|
|
30652
|
+
* @description The code verifier `code_challenge` was derived from: 43 to 128 characters from `A-Z`, `a-z`, `0-9`, `-`, `.`, `_` and `~`. A wrong verifier uses up the `connect_code`, and the user has to connect again.
|
|
30653
|
+
* @example dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk
|
|
30654
|
+
*/
|
|
30655
|
+
code_verifier: string;
|
|
30656
|
+
/**
|
|
30657
|
+
* @description The `state` WorkOS added to `return_to` alongside `connect_code`. Optional; it is only used to correlate the request in logs.
|
|
30658
|
+
* @example q2czJKmVAraSBg8xFpT7M9uR
|
|
30659
|
+
*/
|
|
30660
|
+
state?: string;
|
|
30661
|
+
};
|
|
30662
|
+
};
|
|
30663
|
+
};
|
|
30664
|
+
responses: {
|
|
30665
|
+
/** @description OK */
|
|
30666
|
+
200: {
|
|
30667
|
+
headers: {
|
|
30668
|
+
[name: string]: unknown;
|
|
30669
|
+
};
|
|
30670
|
+
content: {
|
|
30671
|
+
"application/json": components["schemas"]["DataIntegrationFinishConnectionResponse"];
|
|
30672
|
+
};
|
|
30673
|
+
};
|
|
30674
|
+
/** @description The connection could not be completed, and the user must connect again. `invalid_connect_code` when the `connect_code` is unknown, expired, already used, or from another environment, or the `code_verifier` does not match the `code_challenge`. Other codes report why saving the connection failed, such as `target_deleted` when the connected account being reauthorized was deleted in the meantime. A malformed request body returns validation messages instead. */
|
|
30675
|
+
400: {
|
|
30676
|
+
headers: {
|
|
30677
|
+
[name: string]: unknown;
|
|
30678
|
+
};
|
|
30679
|
+
content: {
|
|
30680
|
+
"application/json": {
|
|
30681
|
+
/**
|
|
30682
|
+
* @description The error code identifying the type of error.
|
|
30683
|
+
* @example invalid_connect_code
|
|
30684
|
+
* @enum {string}
|
|
30685
|
+
*/
|
|
30686
|
+
code: "invalid_connect_code" | "authorization_code_exchange_error" | "authorization_state_expired" | "auth_method_mismatch" | "concurrent_request" | "connected_account_limit_reached" | "connected_account_not_found" | "installation_failed" | "invalid_authorization_url" | "invalid_client_id" | "invalid_data_integration" | "missing_access_token" | "missing_code" | "multiple_connections_unavailable" | "provider_error" | "reauthorization_needed" | "target_deleted" | "unexpected_response_format";
|
|
30687
|
+
/**
|
|
30688
|
+
* @description A human-readable description of the error.
|
|
30689
|
+
* @example Request could not be processed.
|
|
30690
|
+
*/
|
|
30691
|
+
message: string;
|
|
30692
|
+
} | {
|
|
30693
|
+
message: string | string[];
|
|
30694
|
+
};
|
|
30695
|
+
};
|
|
30696
|
+
};
|
|
30697
|
+
/** @description Unauthorized */
|
|
30698
|
+
401: {
|
|
30699
|
+
headers: {
|
|
30700
|
+
[name: string]: unknown;
|
|
30701
|
+
};
|
|
30702
|
+
content?: never;
|
|
30703
|
+
};
|
|
30704
|
+
/** @description Forbidden */
|
|
30705
|
+
403: {
|
|
30706
|
+
headers: {
|
|
30707
|
+
[name: string]: unknown;
|
|
30708
|
+
};
|
|
30709
|
+
content: {
|
|
30710
|
+
"application/json": {
|
|
30711
|
+
/**
|
|
30712
|
+
* @description A human-readable description of the error.
|
|
30713
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
30714
|
+
*/
|
|
30715
|
+
message: string;
|
|
30716
|
+
};
|
|
30717
|
+
};
|
|
30718
|
+
};
|
|
30719
|
+
};
|
|
30720
|
+
};
|
|
30556
30721
|
DataIntegrationsManagementController_getDataIntegration: {
|
|
30557
30722
|
parameters: {
|
|
30558
30723
|
query?: never;
|
|
@@ -31144,10 +31309,21 @@ export interface operations {
|
|
|
31144
31309
|
connection_owner?: "user" | "organization";
|
|
31145
31310
|
/**
|
|
31146
31311
|
* Format: uri
|
|
31147
|
-
* @description The URL to redirect the user to after authorization.
|
|
31312
|
+
* @description The URL to redirect the user to after authorization. Required with `code_challenge`, and must then exactly match a redirect URI registered on one of the environment's applications. Loopback URLs match on any port; wildcard redirect URIs are not honored, and a `return_to` with a query string or fragment never matches.
|
|
31148
31313
|
* @example https://example.com/callback
|
|
31149
31314
|
*/
|
|
31150
31315
|
return_to?: string;
|
|
31316
|
+
/**
|
|
31317
|
+
* @description A PKCE-style code challenge: the base64url-encoded SHA-256 of a `code_verifier` your app keeps. When set, the connection isn't saved when the user finishes authorizing. Instead, the user is redirected to `return_to` with a `connect_code` and `state`, and your app must call [Finish connection](/reference/pipes/connected-account/finish-connection) with the `connect_code` and `code_verifier` within 90 seconds to save it.
|
|
31318
|
+
* @example E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM
|
|
31319
|
+
*/
|
|
31320
|
+
code_challenge?: string;
|
|
31321
|
+
/**
|
|
31322
|
+
* @description The method used to derive `code_challenge`. Only `S256` is supported, and it is the default. Requires `code_challenge`.
|
|
31323
|
+
* @example S256
|
|
31324
|
+
* @constant
|
|
31325
|
+
*/
|
|
31326
|
+
code_challenge_method?: "S256";
|
|
31151
31327
|
/**
|
|
31152
31328
|
* @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.
|
|
31153
31329
|
* @example {
|
|
@@ -31181,13 +31357,25 @@ export interface operations {
|
|
|
31181
31357
|
"application/json": components["schemas"]["DataIntegrationAuthorizeUrlResponse"];
|
|
31182
31358
|
};
|
|
31183
31359
|
};
|
|
31184
|
-
/** @description
|
|
31360
|
+
/** @description The request was invalid. With `code_challenge`: `invalid_return_to` when `return_to` is missing or does not exactly match a registered redirect URI, `return_to_requires_exact_match` when only a wildcard redirect URI matches it, and `connect_finish_unavailable` when `code_challenge` is not available for the environment. */
|
|
31185
31361
|
400: {
|
|
31186
31362
|
headers: {
|
|
31187
31363
|
[name: string]: unknown;
|
|
31188
31364
|
};
|
|
31189
31365
|
content: {
|
|
31190
31366
|
"application/json": {
|
|
31367
|
+
/**
|
|
31368
|
+
* @description The error code identifying the type of error.
|
|
31369
|
+
* @example invalid_return_to
|
|
31370
|
+
* @enum {string}
|
|
31371
|
+
*/
|
|
31372
|
+
code: "invalid_return_to" | "return_to_requires_exact_match" | "connect_finish_unavailable";
|
|
31373
|
+
/**
|
|
31374
|
+
* @description A human-readable description of the error.
|
|
31375
|
+
* @example Request could not be processed.
|
|
31376
|
+
*/
|
|
31377
|
+
message: string;
|
|
31378
|
+
} | {
|
|
31191
31379
|
message: string | string[];
|
|
31192
31380
|
};
|
|
31193
31381
|
};
|
|
@@ -35199,11 +35387,7 @@ export interface operations {
|
|
|
35199
35387
|
* ],
|
|
35200
35388
|
* "auth_method": "oauth",
|
|
35201
35389
|
* "api_key_last_4": null,
|
|
35202
|
-
* "
|
|
35203
|
-
* "client_secret_last_4": "cdef",
|
|
35204
|
-
* "config": {
|
|
35205
|
-
* "instance_url": "https://example.my.salesforce.com"
|
|
35206
|
-
* },
|
|
35390
|
+
* "config": {},
|
|
35207
35391
|
* "state": "connected",
|
|
35208
35392
|
* "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
35209
35393
|
* "state_reason": null,
|
|
@@ -35308,11 +35492,7 @@ export interface operations {
|
|
|
35308
35492
|
* ],
|
|
35309
35493
|
* "auth_method": "oauth",
|
|
35310
35494
|
* "api_key_last_4": null,
|
|
35311
|
-
* "
|
|
35312
|
-
* "client_secret_last_4": "cdef",
|
|
35313
|
-
* "config": {
|
|
35314
|
-
* "instance_url": "https://example.my.salesforce.com"
|
|
35315
|
-
* },
|
|
35495
|
+
* "config": {},
|
|
35316
35496
|
* "state": "connected",
|
|
35317
35497
|
* "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
35318
35498
|
* "state_reason": null,
|
|
@@ -35462,11 +35642,7 @@ export interface operations {
|
|
|
35462
35642
|
* ],
|
|
35463
35643
|
* "auth_method": "oauth",
|
|
35464
35644
|
* "api_key_last_4": null,
|
|
35465
|
-
* "
|
|
35466
|
-
* "client_secret_last_4": "cdef",
|
|
35467
|
-
* "config": {
|
|
35468
|
-
* "instance_url": "https://example.my.salesforce.com"
|
|
35469
|
-
* },
|
|
35645
|
+
* "config": {},
|
|
35470
35646
|
* "state": "connected",
|
|
35471
35647
|
* "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
35472
35648
|
* "state_reason": null,
|
|
@@ -35779,11 +35955,7 @@ export interface operations {
|
|
|
35779
35955
|
* ],
|
|
35780
35956
|
* "auth_method": "oauth",
|
|
35781
35957
|
* "api_key_last_4": null,
|
|
35782
|
-
* "
|
|
35783
|
-
* "client_secret_last_4": "cdef",
|
|
35784
|
-
* "config": {
|
|
35785
|
-
* "instance_url": "https://example.my.salesforce.com"
|
|
35786
|
-
* },
|
|
35958
|
+
* "config": {},
|
|
35787
35959
|
* "state": "connected",
|
|
35788
35960
|
* "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
35789
35961
|
* "state_reason": null,
|
|
@@ -35809,11 +35981,7 @@ export interface operations {
|
|
|
35809
35981
|
* ],
|
|
35810
35982
|
* "auth_method": "oauth",
|
|
35811
35983
|
* "api_key_last_4": null,
|
|
35812
|
-
* "
|
|
35813
|
-
* "client_secret_last_4": "cdef",
|
|
35814
|
-
* "config": {
|
|
35815
|
-
* "instance_url": "https://example.my.salesforce.com"
|
|
35816
|
-
* },
|
|
35984
|
+
* "config": {},
|
|
35817
35985
|
* "state": "connected",
|
|
35818
35986
|
* "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
35819
35987
|
* "state_reason": null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workos/openapi-spec",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.145.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
"lodash": "^4.17.23"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@types/node": "^26.6.
|
|
60
|
-
"@workos/oagen": "^0.
|
|
61
|
-
"@workos/oagen-emitters": "^0.
|
|
59
|
+
"@types/node": "^26.6.6",
|
|
60
|
+
"@workos/oagen": "^0.33.0",
|
|
61
|
+
"@workos/oagen-emitters": "^0.25.2",
|
|
62
62
|
"diff2html": "^3.4.56",
|
|
63
63
|
"husky": "^9.1.7",
|
|
64
64
|
"js-yaml": "^5.5.0",
|
|
65
|
-
"openapi-to-postmanv2": "^6.4.
|
|
66
|
-
"tsdown": "^0.23.
|
|
65
|
+
"openapi-to-postmanv2": "^6.4.2",
|
|
66
|
+
"tsdown": "^0.23.4",
|
|
67
67
|
"tsx": "^4.23.15",
|
|
68
68
|
"typescript": "^7.0.2"
|
|
69
69
|
}
|