@workos/openapi-spec 0.144.0 → 0.146.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/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;
@@ -2224,7 +2244,11 @@ export interface paths {
2224
2244
  delete?: never;
2225
2245
  options?: never;
2226
2246
  head?: never;
2227
- patch?: never;
2247
+ /**
2248
+ * Update Group members
2249
+ * @description Adds and removes organization memberships for a group in a single atomic operation. Organization memberships not listed in `add` or `remove` are left unchanged. Adding a member that is already in the group or removing a member that isn't in the group has no effect. A membership listed in both `add` and `remove` is rejected. `add` and `remove` must contain between 1 and 100 entries combined.
2250
+ */
2251
+ patch: operations["GroupMembershipsController_updateMembers"];
2228
2252
  trace?: never;
2229
2253
  };
2230
2254
  "/organizations/{organizationId}/groups/{groupId}/organization-memberships/{omId}": {
@@ -5225,6 +5249,24 @@ export interface components {
5225
5249
  */
5226
5250
  organization_membership_id: string;
5227
5251
  };
5252
+ PatchGroupMembershipsDto: {
5253
+ /**
5254
+ * @description The IDs of the organization memberships to add to the group. Adding a membership that's already in the group has no effect.
5255
+ * @default []
5256
+ * @example [
5257
+ * "om_01HXYZ123456789ABCDEFGHIJ"
5258
+ * ]
5259
+ */
5260
+ add: string[];
5261
+ /**
5262
+ * @description The IDs of the organization memberships to remove from the group. Removing a membership that isn't in the group has no effect.
5263
+ * @default []
5264
+ * @example [
5265
+ * "om_01HXYZ987654321ABCDEFGHIJ"
5266
+ * ]
5267
+ */
5268
+ remove: string[];
5269
+ };
5228
5270
  CreateGroupDto: {
5229
5271
  /**
5230
5272
  * @description The name of the Group.
@@ -18432,12 +18474,163 @@ export interface components {
18432
18474
  after: string | null;
18433
18475
  };
18434
18476
  };
18477
+ /**
18478
+ * @example {
18479
+ * "object": "connected_account",
18480
+ * "id": "data_installation_01EHZNVPK3SFK441A1RGBFSHRT",
18481
+ * "connection_role": "compatibility",
18482
+ * "account_identifier": "workspace_123",
18483
+ * "account_display_name": "Acme production",
18484
+ * "user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
18485
+ * "organization_id": null,
18486
+ * "scopes": [
18487
+ * "repo",
18488
+ * "user:email"
18489
+ * ],
18490
+ * "auth_method": "oauth",
18491
+ * "api_key_last_4": null,
18492
+ * "config": {},
18493
+ * "state": "connected",
18494
+ * "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
18495
+ * "state_reason": null,
18496
+ * "created_at": "2024-01-16T14:20:00.000Z",
18497
+ * "updated_at": "2024-01-16T14:20:00.000Z"
18498
+ * }
18499
+ */
18500
+ ConnectedAccount: {
18501
+ /**
18502
+ * @description Distinguishes the connected account object.
18503
+ * @constant
18504
+ */
18505
+ object: "connected_account";
18506
+ /**
18507
+ * @description The unique identifier of the connected account.
18508
+ * @example data_installation_01EHZNVPK3SFK441A1RGBFSHRT
18509
+ */
18510
+ id: string;
18511
+ /**
18512
+ * @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.
18513
+ * @example compatibility
18514
+ * @enum {string}
18515
+ */
18516
+ connection_role: "compatibility" | "standard";
18517
+ /**
18518
+ * @description A best-effort identifier for the provider account this connection points at. It is correlation metadata, not the connection identifier or a selector.
18519
+ * @example workspace_123
18520
+ */
18521
+ account_identifier: string | null;
18522
+ /**
18523
+ * @description A mutable, non-unique display name for the provider account connection.
18524
+ * @example Acme production
18525
+ */
18526
+ account_display_name: string | null;
18527
+ /**
18528
+ * @description The [User](/reference/authkit/user) identifier associated with this connection.
18529
+ * @example user_01EHZNVPK3SFK441A1RGBFSHRT
18530
+ */
18531
+ user_id: string | null;
18532
+ /**
18533
+ * @description The [Organization](/reference/organization) identifier associated with this connection, or `null` if not scoped to an organization.
18534
+ * @example null
18535
+ */
18536
+ organization_id: string | null;
18537
+ /**
18538
+ * @description The OAuth scopes granted for this connection.
18539
+ * @example [
18540
+ * "repo",
18541
+ * "user:email"
18542
+ * ]
18543
+ */
18544
+ scopes: string[];
18545
+ /**
18546
+ * @description The authentication method used for this connection (`oauth`, `api_key`, or `client_credentials`). Defaults to `oauth` if absent.
18547
+ * @example oauth
18548
+ * @enum {string}
18549
+ */
18550
+ auth_method?: "oauth" | "api_key" | "client_credentials";
18551
+ /**
18552
+ * @description The last four characters of the API key, or `null` for OAuth connections.
18553
+ * @example null
18554
+ */
18555
+ api_key_last_4?: string | null;
18556
+ /**
18557
+ * @description The client ID supplied for this connection. Only present when `auth_method` is `client_credentials`.
18558
+ * @example 3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc
18559
+ */
18560
+ client_id?: string | null;
18561
+ /**
18562
+ * @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`.
18563
+ * @example cdef
18564
+ */
18565
+ client_secret_last_4?: string | null;
18566
+ /**
18567
+ * @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.
18568
+ * @example {
18569
+ * "instance_url": "https://example.my.salesforce.com"
18570
+ * }
18571
+ */
18572
+ config?: {
18573
+ [key: string]: string;
18574
+ };
18575
+ /**
18576
+ * @description The state of the connected account:
18577
+ * - `connected`: The connection is active and tokens are valid.
18578
+ * - `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.
18579
+ * - `disconnected`: The connection has been disconnected.
18580
+ * @example connected
18581
+ * @enum {string}
18582
+ */
18583
+ state: "connected" | "needs_reauthorization" | "disconnected";
18584
+ /**
18585
+ * @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`.
18586
+ * @example user_01EHZNVPK3SFK441A1RGBFSHRT
18587
+ */
18588
+ established_by_user_id?: string | null;
18589
+ /**
18590
+ * @description Why WorkOS put the connection in its current `state`, or `null` when there is no WorkOS-recorded reason:
18591
+ * - `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.
18592
+ *
18593
+ * Additional values may be added; treat an unrecognized value as an unknown reason.
18594
+ * @example null
18595
+ */
18596
+ state_reason?: "establishing_member_membership_ended" | null;
18597
+ /**
18598
+ * @description The timestamp when the connection was created.
18599
+ * @example 2024-01-16T14:20:00.000Z
18600
+ */
18601
+ created_at: string;
18602
+ /**
18603
+ * @description The timestamp when the connection was last updated.
18604
+ * @example 2024-01-16T14:20:00.000Z
18605
+ */
18606
+ updated_at: string;
18607
+ /** @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. */
18608
+ warnings?: {
18609
+ /** @constant */
18610
+ code: "duplicate_account_display_name";
18611
+ /**
18612
+ * @description A human-readable explanation of the non-blocking warning.
18613
+ * @example Another connection for this provider and owner has the same label.
18614
+ */
18615
+ message: string;
18616
+ }[];
18617
+ };
18618
+ DataIntegrationFinishConnectionResponse: {
18619
+ /** @description The connected account that was saved. */
18620
+ connected_account: components["schemas"]["ConnectedAccount"];
18621
+ };
18435
18622
  DataIntegrationAuthorizeUrlResponse: {
18436
18623
  /**
18437
18624
  * @description The OAuth authorization URL to redirect the user to.
18438
18625
  * @example https://api.workos.com/data-integrations/q2czJKmVAraSBg8xFpT7M9uR/authorize-redirect
18439
18626
  */
18440
18627
  url: string;
18628
+ /**
18629
+ * @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.
18630
+ * @example finish_required
18631
+ * @constant
18632
+ */
18633
+ completion?: "finish_required";
18441
18634
  };
18442
18635
  AuthMethodMismatchError: {
18443
18636
  /**
@@ -18671,124 +18864,6 @@ export interface components {
18671
18864
  */
18672
18865
  error: "not_installed" | "needs_reauthorization";
18673
18866
  };
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
18867
  DataIntegrationsListResponse: {
18793
18868
  /**
18794
18869
  * @description Indicates this is a list response.
@@ -18889,7 +18964,34 @@ export interface components {
18889
18964
  * @description Use updated_at instead.
18890
18965
  */
18891
18966
  updatedAt: string;
18892
- /** @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. */
18967
+ /**
18968
+ * @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.
18969
+ * @example {
18970
+ * "object": "connected_account",
18971
+ * "id": "data_installation_01EHZNVPK3SFK441A1RGBFSHRT",
18972
+ * "connection_role": "compatibility",
18973
+ * "account_identifier": "workspace_123",
18974
+ * "account_display_name": "Acme production",
18975
+ * "user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
18976
+ * "organization_id": null,
18977
+ * "scopes": [
18978
+ * "repo",
18979
+ * "user:email"
18980
+ * ],
18981
+ * "auth_method": "oauth",
18982
+ * "api_key_last_4": null,
18983
+ * "config": {},
18984
+ * "state": "connected",
18985
+ * "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
18986
+ * "state_reason": null,
18987
+ * "created_at": "2024-01-16T14:20:00.000Z",
18988
+ * "updated_at": "2024-01-16T14:20:00.000Z",
18989
+ * "userlandUserId": "user_01EHZNVPK3SFK441A1RGBFSHRT",
18990
+ * "organizationId": null,
18991
+ * "createdAt": "2024-01-16T14:20:00.000Z",
18992
+ * "updatedAt": "2024-01-16T14:20:00.000Z"
18993
+ * }
18994
+ */
18893
18995
  connected_account: {
18894
18996
  /**
18895
18997
  * @description Distinguishes the connected account object.
@@ -30553,6 +30655,91 @@ export interface operations {
30553
30655
  };
30554
30656
  };
30555
30657
  };
30658
+ DataIntegrationsController_finishConnection: {
30659
+ parameters: {
30660
+ query?: never;
30661
+ header?: never;
30662
+ path?: never;
30663
+ cookie?: never;
30664
+ };
30665
+ requestBody: {
30666
+ content: {
30667
+ "application/json": {
30668
+ /**
30669
+ * @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.
30670
+ * @example Q3n0bWh2b0tqZ1VtV2ZsYkJ3cE9aV0J6T1hGb1lYaGo
30671
+ */
30672
+ connect_code: string;
30673
+ /**
30674
+ * @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.
30675
+ * @example dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk
30676
+ */
30677
+ code_verifier: string;
30678
+ /**
30679
+ * @description The `state` WorkOS added to `return_to` alongside `connect_code`. Optional; it is only used to correlate the request in logs.
30680
+ * @example q2czJKmVAraSBg8xFpT7M9uR
30681
+ */
30682
+ state?: string;
30683
+ };
30684
+ };
30685
+ };
30686
+ responses: {
30687
+ /** @description OK */
30688
+ 200: {
30689
+ headers: {
30690
+ [name: string]: unknown;
30691
+ };
30692
+ content: {
30693
+ "application/json": components["schemas"]["DataIntegrationFinishConnectionResponse"];
30694
+ };
30695
+ };
30696
+ /** @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. */
30697
+ 400: {
30698
+ headers: {
30699
+ [name: string]: unknown;
30700
+ };
30701
+ content: {
30702
+ "application/json": {
30703
+ /**
30704
+ * @description The error code identifying the type of error.
30705
+ * @example invalid_connect_code
30706
+ * @enum {string}
30707
+ */
30708
+ 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";
30709
+ /**
30710
+ * @description A human-readable description of the error.
30711
+ * @example Request could not be processed.
30712
+ */
30713
+ message: string;
30714
+ } | {
30715
+ message: string | string[];
30716
+ };
30717
+ };
30718
+ };
30719
+ /** @description Unauthorized */
30720
+ 401: {
30721
+ headers: {
30722
+ [name: string]: unknown;
30723
+ };
30724
+ content?: never;
30725
+ };
30726
+ /** @description Forbidden */
30727
+ 403: {
30728
+ headers: {
30729
+ [name: string]: unknown;
30730
+ };
30731
+ content: {
30732
+ "application/json": {
30733
+ /**
30734
+ * @description A human-readable description of the error.
30735
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
30736
+ */
30737
+ message: string;
30738
+ };
30739
+ };
30740
+ };
30741
+ };
30742
+ };
30556
30743
  DataIntegrationsManagementController_getDataIntegration: {
30557
30744
  parameters: {
30558
30745
  query?: never;
@@ -31144,10 +31331,21 @@ export interface operations {
31144
31331
  connection_owner?: "user" | "organization";
31145
31332
  /**
31146
31333
  * Format: uri
31147
- * @description The URL to redirect the user to after authorization.
31334
+ * @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
31335
  * @example https://example.com/callback
31149
31336
  */
31150
31337
  return_to?: string;
31338
+ /**
31339
+ * @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.
31340
+ * @example E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM
31341
+ */
31342
+ code_challenge?: string;
31343
+ /**
31344
+ * @description The method used to derive `code_challenge`. Only `S256` is supported, and it is the default. Requires `code_challenge`.
31345
+ * @example S256
31346
+ * @constant
31347
+ */
31348
+ code_challenge_method?: "S256";
31151
31349
  /**
31152
31350
  * @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
31351
  * @example {
@@ -31181,13 +31379,25 @@ export interface operations {
31181
31379
  "application/json": components["schemas"]["DataIntegrationAuthorizeUrlResponse"];
31182
31380
  };
31183
31381
  };
31184
- /** @description Bad Request */
31382
+ /** @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
31383
  400: {
31186
31384
  headers: {
31187
31385
  [name: string]: unknown;
31188
31386
  };
31189
31387
  content: {
31190
31388
  "application/json": {
31389
+ /**
31390
+ * @description The error code identifying the type of error.
31391
+ * @example invalid_return_to
31392
+ * @enum {string}
31393
+ */
31394
+ code: "invalid_return_to" | "return_to_requires_exact_match" | "connect_finish_unavailable";
31395
+ /**
31396
+ * @description A human-readable description of the error.
31397
+ * @example Request could not be processed.
31398
+ */
31399
+ message: string;
31400
+ } | {
31191
31401
  message: string | string[];
31192
31402
  };
31193
31403
  };
@@ -35042,6 +35252,99 @@ export interface operations {
35042
35252
  };
35043
35253
  };
35044
35254
  };
35255
+ GroupMembershipsController_updateMembers: {
35256
+ parameters: {
35257
+ query?: never;
35258
+ header?: never;
35259
+ path: {
35260
+ /** @description Unique identifier of the Organization. */
35261
+ organizationId: string;
35262
+ /** @description Unique identifier of the Group. */
35263
+ groupId: string;
35264
+ };
35265
+ cookie?: never;
35266
+ };
35267
+ requestBody: {
35268
+ content: {
35269
+ "application/json": components["schemas"]["PatchGroupMembershipsDto"];
35270
+ };
35271
+ };
35272
+ responses: {
35273
+ /** @description No Content */
35274
+ 204: {
35275
+ headers: {
35276
+ [name: string]: unknown;
35277
+ };
35278
+ content?: never;
35279
+ };
35280
+ /** @description Bad Request */
35281
+ 400: {
35282
+ headers: {
35283
+ [name: string]: unknown;
35284
+ };
35285
+ content: {
35286
+ "application/json": {
35287
+ /**
35288
+ * @description The error code identifying the type of error.
35289
+ * @example group_membership_update_overlap
35290
+ * @constant
35291
+ */
35292
+ code: "group_membership_update_overlap";
35293
+ /**
35294
+ * @description A human-readable description of the error.
35295
+ * @example Request could not be processed.
35296
+ */
35297
+ message: string;
35298
+ };
35299
+ };
35300
+ };
35301
+ /** @description Forbidden */
35302
+ 403: {
35303
+ headers: {
35304
+ [name: string]: unknown;
35305
+ };
35306
+ content: {
35307
+ "application/json": {
35308
+ /**
35309
+ * @description A human-readable description of the error.
35310
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
35311
+ */
35312
+ message: string;
35313
+ };
35314
+ };
35315
+ };
35316
+ /** @description Not Found */
35317
+ 404: {
35318
+ headers: {
35319
+ [name: string]: unknown;
35320
+ };
35321
+ content: {
35322
+ "application/json": {
35323
+ /**
35324
+ * @description A human-readable description of the error.
35325
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
35326
+ */
35327
+ message: string;
35328
+ };
35329
+ };
35330
+ };
35331
+ /** @description Unprocessable Entity */
35332
+ 422: {
35333
+ headers: {
35334
+ [name: string]: unknown;
35335
+ };
35336
+ content: {
35337
+ "application/json": {
35338
+ /**
35339
+ * @description A human-readable description of the error.
35340
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
35341
+ */
35342
+ message: string;
35343
+ };
35344
+ };
35345
+ };
35346
+ };
35347
+ };
35045
35348
  GroupMembershipsController_removeMember: {
35046
35349
  parameters: {
35047
35350
  query?: never;
@@ -35199,11 +35502,7 @@ export interface operations {
35199
35502
  * ],
35200
35503
  * "auth_method": "oauth",
35201
35504
  * "api_key_last_4": null,
35202
- * "client_id": "3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc",
35203
- * "client_secret_last_4": "cdef",
35204
- * "config": {
35205
- * "instance_url": "https://example.my.salesforce.com"
35206
- * },
35505
+ * "config": {},
35207
35506
  * "state": "connected",
35208
35507
  * "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
35209
35508
  * "state_reason": null,
@@ -35308,11 +35607,7 @@ export interface operations {
35308
35607
  * ],
35309
35608
  * "auth_method": "oauth",
35310
35609
  * "api_key_last_4": null,
35311
- * "client_id": "3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc",
35312
- * "client_secret_last_4": "cdef",
35313
- * "config": {
35314
- * "instance_url": "https://example.my.salesforce.com"
35315
- * },
35610
+ * "config": {},
35316
35611
  * "state": "connected",
35317
35612
  * "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
35318
35613
  * "state_reason": null,
@@ -35462,11 +35757,7 @@ export interface operations {
35462
35757
  * ],
35463
35758
  * "auth_method": "oauth",
35464
35759
  * "api_key_last_4": null,
35465
- * "client_id": "3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc",
35466
- * "client_secret_last_4": "cdef",
35467
- * "config": {
35468
- * "instance_url": "https://example.my.salesforce.com"
35469
- * },
35760
+ * "config": {},
35470
35761
  * "state": "connected",
35471
35762
  * "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
35472
35763
  * "state_reason": null,
@@ -35779,11 +36070,7 @@ export interface operations {
35779
36070
  * ],
35780
36071
  * "auth_method": "oauth",
35781
36072
  * "api_key_last_4": null,
35782
- * "client_id": "3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc",
35783
- * "client_secret_last_4": "cdef",
35784
- * "config": {
35785
- * "instance_url": "https://example.my.salesforce.com"
35786
- * },
36073
+ * "config": {},
35787
36074
  * "state": "connected",
35788
36075
  * "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
35789
36076
  * "state_reason": null,
@@ -35809,11 +36096,7 @@ export interface operations {
35809
36096
  * ],
35810
36097
  * "auth_method": "oauth",
35811
36098
  * "api_key_last_4": null,
35812
- * "client_id": "3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc",
35813
- * "client_secret_last_4": "cdef",
35814
- * "config": {
35815
- * "instance_url": "https://example.my.salesforce.com"
35816
- * },
36099
+ * "config": {},
35817
36100
  * "state": "connected",
35818
36101
  * "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
35819
36102
  * "state_reason": null,