@composio/client 0.1.0-alpha.61 → 0.1.0-alpha.63

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.
Files changed (99) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/internal/utils/env.js +2 -2
  9. package/internal/utils/env.js.map +1 -1
  10. package/internal/utils/env.mjs +2 -2
  11. package/internal/utils/env.mjs.map +1 -1
  12. package/package.json +12 -1
  13. package/resources/auth-configs.d.mts +17 -0
  14. package/resources/auth-configs.d.mts.map +1 -1
  15. package/resources/auth-configs.d.ts +17 -0
  16. package/resources/auth-configs.d.ts.map +1 -1
  17. package/resources/connected-accounts.d.mts +981 -137
  18. package/resources/connected-accounts.d.mts.map +1 -1
  19. package/resources/connected-accounts.d.ts +981 -137
  20. package/resources/connected-accounts.d.ts.map +1 -1
  21. package/resources/connected-accounts.js +27 -4
  22. package/resources/connected-accounts.js.map +1 -1
  23. package/resources/connected-accounts.mjs +27 -4
  24. package/resources/connected-accounts.mjs.map +1 -1
  25. package/resources/index.d.mts +1 -1
  26. package/resources/index.d.mts.map +1 -1
  27. package/resources/index.d.ts +1 -1
  28. package/resources/index.d.ts.map +1 -1
  29. package/resources/index.js.map +1 -1
  30. package/resources/index.mjs.map +1 -1
  31. package/resources/link.d.mts +168 -1
  32. package/resources/link.d.mts.map +1 -1
  33. package/resources/link.d.ts +168 -1
  34. package/resources/link.d.ts.map +1 -1
  35. package/resources/mcp/mcp.d.mts +1 -1
  36. package/resources/mcp/mcp.d.ts +1 -1
  37. package/resources/mcp/mcp.js +1 -1
  38. package/resources/mcp/mcp.mjs +1 -1
  39. package/resources/tool-router/index.d.mts +1 -1
  40. package/resources/tool-router/index.d.mts.map +1 -1
  41. package/resources/tool-router/index.d.ts +1 -1
  42. package/resources/tool-router/index.d.ts.map +1 -1
  43. package/resources/tool-router/index.js.map +1 -1
  44. package/resources/tool-router/index.mjs.map +1 -1
  45. package/resources/tool-router/session/index.d.mts +1 -1
  46. package/resources/tool-router/session/index.d.mts.map +1 -1
  47. package/resources/tool-router/session/index.d.ts +1 -1
  48. package/resources/tool-router/session/index.d.ts.map +1 -1
  49. package/resources/tool-router/session/index.js.map +1 -1
  50. package/resources/tool-router/session/index.mjs.map +1 -1
  51. package/resources/tool-router/session/session.d.mts +879 -12
  52. package/resources/tool-router/session/session.d.mts.map +1 -1
  53. package/resources/tool-router/session/session.d.ts +879 -12
  54. package/resources/tool-router/session/session.d.ts.map +1 -1
  55. package/resources/tool-router/session/session.js +29 -1
  56. package/resources/tool-router/session/session.js.map +1 -1
  57. package/resources/tool-router/session/session.mjs +29 -1
  58. package/resources/tool-router/session/session.mjs.map +1 -1
  59. package/resources/tool-router/tool-router.d.mts +4 -4
  60. package/resources/tool-router/tool-router.d.mts.map +1 -1
  61. package/resources/tool-router/tool-router.d.ts +4 -4
  62. package/resources/tool-router/tool-router.d.ts.map +1 -1
  63. package/resources/tool-router/tool-router.js +2 -2
  64. package/resources/tool-router/tool-router.js.map +1 -1
  65. package/resources/tool-router/tool-router.mjs +2 -2
  66. package/resources/tool-router/tool-router.mjs.map +1 -1
  67. package/resources/toolkits.d.mts +13 -0
  68. package/resources/toolkits.d.mts.map +1 -1
  69. package/resources/toolkits.d.ts +13 -0
  70. package/resources/toolkits.d.ts.map +1 -1
  71. package/resources/tools.d.mts +114 -2
  72. package/resources/tools.d.mts.map +1 -1
  73. package/resources/tools.d.ts +114 -2
  74. package/resources/tools.d.ts.map +1 -1
  75. package/resources/trigger-instances/trigger-instances.d.mts +6 -1
  76. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  77. package/resources/trigger-instances/trigger-instances.d.ts +6 -1
  78. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  79. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  80. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  81. package/src/client.ts +4 -0
  82. package/src/internal/utils/env.ts +2 -2
  83. package/src/resources/auth-configs.ts +22 -0
  84. package/src/resources/connected-accounts.ts +3698 -2112
  85. package/src/resources/index.ts +2 -0
  86. package/src/resources/link.ts +329 -1
  87. package/src/resources/mcp/mcp.ts +1 -1
  88. package/src/resources/tool-router/index.ts +2 -0
  89. package/src/resources/tool-router/session/index.ts +2 -0
  90. package/src/resources/tool-router/session/session.ts +1343 -48
  91. package/src/resources/tool-router/tool-router.ts +6 -2
  92. package/src/resources/toolkits.ts +16 -0
  93. package/src/resources/tools.ts +188 -2
  94. package/src/resources/trigger-instances/trigger-instances.ts +7 -1
  95. package/src/version.ts +1 -1
  96. package/version.d.mts +1 -1
  97. package/version.d.ts +1 -1
  98. package/version.js +1 -1
  99. package/version.mjs +1 -1
@@ -30,7 +30,7 @@ export declare class ConnectedAccounts extends APIResource {
30
30
  * ```ts
31
31
  * const connectedAccount =
32
32
  * await client.connectedAccounts.retrieve(
33
- * 'con_1a2b3c4d5e6f',
33
+ * 'ca_1a2b3c4d5e6f',
34
34
  * );
35
35
  * ```
36
36
  */
@@ -56,10 +56,31 @@ export declare class ConnectedAccounts extends APIResource {
56
56
  * @example
57
57
  * ```ts
58
58
  * const connectedAccount =
59
- * await client.connectedAccounts.delete('con_1a2b3c4d5e6f');
59
+ * await client.connectedAccounts.delete('ca_1a2b3c4d5e6f');
60
60
  * ```
61
61
  */
62
62
  delete(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountDeleteResponse>;
63
+ /**
64
+ * Update a connected account. Supports updating the alias and/or credentials. Only
65
+ * specified fields will be updated. Set a credential field to null to remove it.
66
+ * Alias must be unique within the same project, entity, and toolkit scope.
67
+ *
68
+ * @example
69
+ * ```ts
70
+ * const response = await client.connectedAccounts.patch(
71
+ * 'ca_1a2b3c4d5e6f',
72
+ * {
73
+ * connection: {
74
+ * state: {
75
+ * authScheme: 'BEARER_TOKEN',
76
+ * val: { token: 'new_access_token' },
77
+ * },
78
+ * },
79
+ * },
80
+ * );
81
+ * ```
82
+ */
83
+ patch(nanoid: string, body?: ConnectedAccountPatchParams | null | undefined, options?: RequestOptions): APIPromise<ConnectedAccountPatchResponse>;
63
84
  /**
64
85
  * Initiates a new authentication flow for a connected account when credentials
65
86
  * have expired or become invalid. This may generate a new authentication URL for
@@ -68,7 +89,7 @@ export declare class ConnectedAccounts extends APIResource {
68
89
  * @example
69
90
  * ```ts
70
91
  * const response = await client.connectedAccounts.refresh(
71
- * 'con_1a2b3c4d5e6f',
92
+ * 'ca_1a2b3c4d5e6f',
72
93
  * );
73
94
  * ```
74
95
  */
@@ -82,7 +103,7 @@ export declare class ConnectedAccounts extends APIResource {
82
103
  * ```ts
83
104
  * const response =
84
105
  * await client.connectedAccounts.updateStatus(
85
- * 'con_1a2b3c4d5e6f',
106
+ * 'ca_1a2b3c4d5e6f',
86
107
  * { enabled: true },
87
108
  * );
88
109
  * ```
@@ -97,7 +118,7 @@ export interface ConnectedAccountCreateResponse {
97
118
  /**
98
119
  * The connection data of the connected account
99
120
  */
100
- connectionData: ConnectedAccountCreateResponse.UnionMember0 | ConnectedAccountCreateResponse.UnionMember1 | ConnectedAccountCreateResponse.UnionMember2 | ConnectedAccountCreateResponse.UnionMember3 | ConnectedAccountCreateResponse.UnionMember4 | ConnectedAccountCreateResponse.UnionMember5 | ConnectedAccountCreateResponse.UnionMember6 | ConnectedAccountCreateResponse.UnionMember7 | ConnectedAccountCreateResponse.UnionMember8 | ConnectedAccountCreateResponse.UnionMember9 | ConnectedAccountCreateResponse.UnionMember10 | ConnectedAccountCreateResponse.UnionMember11 | ConnectedAccountCreateResponse.UnionMember12;
121
+ connectionData: ConnectedAccountCreateResponse.UnionMember0 | ConnectedAccountCreateResponse.UnionMember1 | ConnectedAccountCreateResponse.UnionMember2 | ConnectedAccountCreateResponse.UnionMember3 | ConnectedAccountCreateResponse.UnionMember4 | ConnectedAccountCreateResponse.UnionMember5 | ConnectedAccountCreateResponse.UnionMember6 | ConnectedAccountCreateResponse.UnionMember7 | ConnectedAccountCreateResponse.UnionMember8 | ConnectedAccountCreateResponse.UnionMember9 | ConnectedAccountCreateResponse.UnionMember10 | ConnectedAccountCreateResponse.UnionMember11 | ConnectedAccountCreateResponse.UnionMember12 | ConnectedAccountCreateResponse.UnionMember13;
101
122
  /**
102
123
  * @deprecated DEPRECATED: This field will be removed in a future version. Please
103
124
  * use id and auth_config.id instead.
@@ -2228,6 +2249,185 @@ export declare namespace ConnectedAccountCreateResponse {
2228
2249
  [k: string]: unknown;
2229
2250
  }
2230
2251
  }
2252
+ interface UnionMember13 {
2253
+ authScheme: 'S2S_OAUTH2';
2254
+ val: UnionMember13.UnionMember0 | UnionMember13.UnionMember1 | UnionMember13.UnionMember2 | UnionMember13.UnionMember3 | UnionMember13.UnionMember4 | UnionMember13.UnionMember5;
2255
+ }
2256
+ namespace UnionMember13 {
2257
+ interface UnionMember0 {
2258
+ status: 'INITIALIZING';
2259
+ account_id?: string;
2260
+ account_url?: string;
2261
+ api_url?: string;
2262
+ base_url?: string;
2263
+ borneo_dashboard_url?: string;
2264
+ COMPANYDOMAIN?: string;
2265
+ dc?: string;
2266
+ domain?: string;
2267
+ extension?: string;
2268
+ form_api_base_url?: string;
2269
+ instanceEndpoint?: string;
2270
+ instanceName?: string;
2271
+ proxy_password?: string;
2272
+ proxy_username?: string;
2273
+ region?: string;
2274
+ server_location?: string;
2275
+ shop?: string;
2276
+ site_name?: string;
2277
+ subdomain?: string;
2278
+ version?: string;
2279
+ your_server?: string;
2280
+ 'your-domain'?: string;
2281
+ [k: string]: unknown;
2282
+ }
2283
+ interface UnionMember1 {
2284
+ status: 'INITIATED';
2285
+ account_id?: string;
2286
+ account_url?: string;
2287
+ api_url?: string;
2288
+ base_url?: string;
2289
+ borneo_dashboard_url?: string;
2290
+ COMPANYDOMAIN?: string;
2291
+ dc?: string;
2292
+ domain?: string;
2293
+ extension?: string;
2294
+ form_api_base_url?: string;
2295
+ instanceEndpoint?: string;
2296
+ instanceName?: string;
2297
+ proxy_password?: string;
2298
+ proxy_username?: string;
2299
+ region?: string;
2300
+ server_location?: string;
2301
+ shop?: string;
2302
+ site_name?: string;
2303
+ subdomain?: string;
2304
+ version?: string;
2305
+ your_server?: string;
2306
+ 'your-domain'?: string;
2307
+ [k: string]: unknown;
2308
+ }
2309
+ interface UnionMember2 {
2310
+ access_token: string;
2311
+ client_id: string;
2312
+ client_secret: string;
2313
+ status: 'ACTIVE';
2314
+ account_id?: string;
2315
+ account_url?: string;
2316
+ api_url?: string;
2317
+ base_url?: string;
2318
+ borneo_dashboard_url?: string;
2319
+ COMPANYDOMAIN?: string;
2320
+ dc?: string;
2321
+ domain?: string;
2322
+ expires_at?: string;
2323
+ expires_in?: number | string | null;
2324
+ extension?: string;
2325
+ form_api_base_url?: string;
2326
+ instanceEndpoint?: string;
2327
+ instanceName?: string;
2328
+ proxy_password?: string;
2329
+ proxy_username?: string;
2330
+ region?: string;
2331
+ scope?: string | Array<string> | null;
2332
+ server_location?: string;
2333
+ shop?: string;
2334
+ site_name?: string;
2335
+ subdomain?: string;
2336
+ token_type?: string;
2337
+ version?: string;
2338
+ your_server?: string;
2339
+ 'your-domain'?: string;
2340
+ [k: string]: unknown;
2341
+ }
2342
+ interface UnionMember3 {
2343
+ access_token: string;
2344
+ client_id: string;
2345
+ client_secret: string;
2346
+ status: 'INACTIVE';
2347
+ account_id?: string;
2348
+ account_url?: string;
2349
+ api_url?: string;
2350
+ base_url?: string;
2351
+ borneo_dashboard_url?: string;
2352
+ COMPANYDOMAIN?: string;
2353
+ dc?: string;
2354
+ domain?: string;
2355
+ expires_at?: string;
2356
+ expires_in?: number | string | null;
2357
+ extension?: string;
2358
+ form_api_base_url?: string;
2359
+ instanceEndpoint?: string;
2360
+ instanceName?: string;
2361
+ proxy_password?: string;
2362
+ proxy_username?: string;
2363
+ region?: string;
2364
+ scope?: string | Array<string> | null;
2365
+ server_location?: string;
2366
+ shop?: string;
2367
+ site_name?: string;
2368
+ subdomain?: string;
2369
+ token_type?: string;
2370
+ version?: string;
2371
+ your_server?: string;
2372
+ 'your-domain'?: string;
2373
+ [k: string]: unknown;
2374
+ }
2375
+ interface UnionMember4 {
2376
+ status: 'FAILED';
2377
+ account_id?: string;
2378
+ account_url?: string;
2379
+ api_url?: string;
2380
+ base_url?: string;
2381
+ borneo_dashboard_url?: string;
2382
+ COMPANYDOMAIN?: string;
2383
+ dc?: string;
2384
+ domain?: string;
2385
+ error?: string;
2386
+ error_description?: string;
2387
+ extension?: string;
2388
+ form_api_base_url?: string;
2389
+ instanceEndpoint?: string;
2390
+ instanceName?: string;
2391
+ proxy_password?: string;
2392
+ proxy_username?: string;
2393
+ region?: string;
2394
+ server_location?: string;
2395
+ shop?: string;
2396
+ site_name?: string;
2397
+ subdomain?: string;
2398
+ version?: string;
2399
+ your_server?: string;
2400
+ 'your-domain'?: string;
2401
+ [k: string]: unknown;
2402
+ }
2403
+ interface UnionMember5 {
2404
+ status: 'EXPIRED';
2405
+ account_id?: string;
2406
+ account_url?: string;
2407
+ api_url?: string;
2408
+ base_url?: string;
2409
+ borneo_dashboard_url?: string;
2410
+ COMPANYDOMAIN?: string;
2411
+ dc?: string;
2412
+ domain?: string;
2413
+ expired_at?: string;
2414
+ extension?: string;
2415
+ form_api_base_url?: string;
2416
+ instanceEndpoint?: string;
2417
+ instanceName?: string;
2418
+ proxy_password?: string;
2419
+ proxy_username?: string;
2420
+ region?: string;
2421
+ server_location?: string;
2422
+ shop?: string;
2423
+ site_name?: string;
2424
+ subdomain?: string;
2425
+ version?: string;
2426
+ your_server?: string;
2427
+ 'your-domain'?: string;
2428
+ [k: string]: unknown;
2429
+ }
2430
+ }
2231
2431
  /**
2232
2432
  * @deprecated DEPRECATED: This field will be removed in a future version. Please
2233
2433
  * use id and auth_config.id instead.
@@ -2248,6 +2448,10 @@ export interface ConnectedAccountRetrieveResponse {
2248
2448
  * The id of the connection
2249
2449
  */
2250
2450
  id: string;
2451
+ /**
2452
+ * A user-defined alias for the connected account
2453
+ */
2454
+ alias: string | null;
2251
2455
  auth_config: ConnectedAccountRetrieveResponse.AuthConfig;
2252
2456
  /**
2253
2457
  * The created at of the connection
@@ -2273,7 +2477,7 @@ export interface ConnectedAccountRetrieveResponse {
2273
2477
  /**
2274
2478
  * The state of the connection
2275
2479
  */
2276
- state: ConnectedAccountRetrieveResponse.UnionMember0 | ConnectedAccountRetrieveResponse.UnionMember1 | ConnectedAccountRetrieveResponse.UnionMember2 | ConnectedAccountRetrieveResponse.UnionMember3 | ConnectedAccountRetrieveResponse.UnionMember4 | ConnectedAccountRetrieveResponse.UnionMember5 | ConnectedAccountRetrieveResponse.UnionMember6 | ConnectedAccountRetrieveResponse.UnionMember7 | ConnectedAccountRetrieveResponse.UnionMember8 | ConnectedAccountRetrieveResponse.UnionMember9 | ConnectedAccountRetrieveResponse.UnionMember10 | ConnectedAccountRetrieveResponse.UnionMember11 | ConnectedAccountRetrieveResponse.UnionMember12;
2480
+ state: ConnectedAccountRetrieveResponse.UnionMember0 | ConnectedAccountRetrieveResponse.UnionMember1 | ConnectedAccountRetrieveResponse.UnionMember2 | ConnectedAccountRetrieveResponse.UnionMember3 | ConnectedAccountRetrieveResponse.UnionMember4 | ConnectedAccountRetrieveResponse.UnionMember5 | ConnectedAccountRetrieveResponse.UnionMember6 | ConnectedAccountRetrieveResponse.UnionMember7 | ConnectedAccountRetrieveResponse.UnionMember8 | ConnectedAccountRetrieveResponse.UnionMember9 | ConnectedAccountRetrieveResponse.UnionMember10 | ConnectedAccountRetrieveResponse.UnionMember11 | ConnectedAccountRetrieveResponse.UnionMember12 | ConnectedAccountRetrieveResponse.UnionMember13;
2277
2481
  /**
2278
2482
  * The status of the connection
2279
2483
  */
@@ -2295,6 +2499,11 @@ export interface ConnectedAccountRetrieveResponse {
2295
2499
  * anymore, you will only be able to read via userId not get it back
2296
2500
  */
2297
2501
  user_id: string;
2502
+ /**
2503
+ * A short, token-friendly identifier for multi-account disambiguation, typically
2504
+ * toolkit-prefixed with 1-2 words (e.g., "gmail_red-castle")
2505
+ */
2506
+ word_id: string | null;
2298
2507
  /**
2299
2508
  * @deprecated
2300
2509
  */
@@ -4449,82 +4658,270 @@ export declare namespace ConnectedAccountRetrieveResponse {
4449
4658
  [k: string]: unknown;
4450
4659
  }
4451
4660
  }
4452
- interface Toolkit {
4453
- /**
4454
- * The slug of the toolkit
4455
- */
4456
- slug: string;
4457
- }
4458
- /**
4459
- * @deprecated
4460
- */
4461
- interface Deprecated {
4462
- /**
4463
- * The labels of the connection
4464
- */
4465
- labels: Array<string>;
4466
- /**
4467
- * The uuid of the connection
4468
- */
4469
- uuid: string;
4661
+ interface UnionMember13 {
4662
+ authScheme: 'S2S_OAUTH2';
4663
+ val: UnionMember13.UnionMember0 | UnionMember13.UnionMember1 | UnionMember13.UnionMember2 | UnionMember13.UnionMember3 | UnionMember13.UnionMember4 | UnionMember13.UnionMember5;
4470
4664
  }
4471
- }
4472
- export interface ConnectedAccountListResponse {
4473
- current_page: number;
4474
- items: Array<ConnectedAccountListResponse.Item>;
4475
- total_items: number;
4476
- total_pages: number;
4477
- next_cursor?: string | null;
4478
- }
4479
- export declare namespace ConnectedAccountListResponse {
4480
- interface Item {
4481
- /**
4482
- * The id of the connection
4483
- */
4484
- id: string;
4485
- auth_config: Item.AuthConfig;
4486
- /**
4487
- * The created at of the connection
4488
- */
4489
- created_at: string;
4490
- /**
4491
- * @deprecated This is deprecated, use `state` instead
4492
- */
4493
- data: {
4494
- [key: string]: unknown;
4495
- };
4496
- /**
4497
- * Whether the connection is disabled
4498
- */
4499
- is_disabled: boolean;
4500
- /**
4501
- * The state of the connection
4502
- */
4503
- state: Item.UnionMember0 | Item.UnionMember1 | Item.UnionMember2 | Item.UnionMember3 | Item.UnionMember4 | Item.UnionMember5 | Item.UnionMember6 | Item.UnionMember7 | Item.UnionMember8 | Item.UnionMember9 | Item.UnionMember10 | Item.UnionMember11 | Item.UnionMember12;
4504
- /**
4505
- * The status of the connection
4506
- */
4507
- status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE';
4508
- /**
4509
- * The reason the connection status changed. Possible reasons: Connection
4510
- * initiation did not complete within 10 minutes, Permanent auth error during token
4511
- * refresh, Max auth failures reached, OAuth callback failed during token exchange,
4512
- * Connection status updated by user, Auth config is disabled
4513
- */
4514
- status_reason: string | null;
4515
- toolkit: Item.Toolkit;
4516
- /**
4517
- * The updated at of the connection
4518
- */
4519
- updated_at: string;
4520
- /**
4521
- * @deprecated This is deprecated, we will not be providing userId from this api
4522
- * anymore, you will only be able to read via userId not get it back
4523
- */
4524
- user_id: string;
4525
- /**
4526
- * @deprecated
4527
- */
4665
+ namespace UnionMember13 {
4666
+ interface UnionMember0 {
4667
+ status: 'INITIALIZING';
4668
+ account_id?: string;
4669
+ account_url?: string;
4670
+ api_url?: string;
4671
+ base_url?: string;
4672
+ borneo_dashboard_url?: string;
4673
+ COMPANYDOMAIN?: string;
4674
+ dc?: string;
4675
+ domain?: string;
4676
+ extension?: string;
4677
+ form_api_base_url?: string;
4678
+ instanceEndpoint?: string;
4679
+ instanceName?: string;
4680
+ proxy_password?: string;
4681
+ proxy_username?: string;
4682
+ region?: string;
4683
+ server_location?: string;
4684
+ shop?: string;
4685
+ site_name?: string;
4686
+ subdomain?: string;
4687
+ version?: string;
4688
+ your_server?: string;
4689
+ 'your-domain'?: string;
4690
+ [k: string]: unknown;
4691
+ }
4692
+ interface UnionMember1 {
4693
+ status: 'INITIATED';
4694
+ account_id?: string;
4695
+ account_url?: string;
4696
+ api_url?: string;
4697
+ base_url?: string;
4698
+ borneo_dashboard_url?: string;
4699
+ COMPANYDOMAIN?: string;
4700
+ dc?: string;
4701
+ domain?: string;
4702
+ extension?: string;
4703
+ form_api_base_url?: string;
4704
+ instanceEndpoint?: string;
4705
+ instanceName?: string;
4706
+ proxy_password?: string;
4707
+ proxy_username?: string;
4708
+ region?: string;
4709
+ server_location?: string;
4710
+ shop?: string;
4711
+ site_name?: string;
4712
+ subdomain?: string;
4713
+ version?: string;
4714
+ your_server?: string;
4715
+ 'your-domain'?: string;
4716
+ [k: string]: unknown;
4717
+ }
4718
+ interface UnionMember2 {
4719
+ access_token: string;
4720
+ client_id: string;
4721
+ client_secret: string;
4722
+ status: 'ACTIVE';
4723
+ account_id?: string;
4724
+ account_url?: string;
4725
+ api_url?: string;
4726
+ base_url?: string;
4727
+ borneo_dashboard_url?: string;
4728
+ COMPANYDOMAIN?: string;
4729
+ dc?: string;
4730
+ domain?: string;
4731
+ expires_at?: string;
4732
+ expires_in?: number | string | null;
4733
+ extension?: string;
4734
+ form_api_base_url?: string;
4735
+ instanceEndpoint?: string;
4736
+ instanceName?: string;
4737
+ proxy_password?: string;
4738
+ proxy_username?: string;
4739
+ region?: string;
4740
+ scope?: string | Array<string> | null;
4741
+ server_location?: string;
4742
+ shop?: string;
4743
+ site_name?: string;
4744
+ subdomain?: string;
4745
+ token_type?: string;
4746
+ version?: string;
4747
+ your_server?: string;
4748
+ 'your-domain'?: string;
4749
+ [k: string]: unknown;
4750
+ }
4751
+ interface UnionMember3 {
4752
+ access_token: string;
4753
+ client_id: string;
4754
+ client_secret: string;
4755
+ status: 'INACTIVE';
4756
+ account_id?: string;
4757
+ account_url?: string;
4758
+ api_url?: string;
4759
+ base_url?: string;
4760
+ borneo_dashboard_url?: string;
4761
+ COMPANYDOMAIN?: string;
4762
+ dc?: string;
4763
+ domain?: string;
4764
+ expires_at?: string;
4765
+ expires_in?: number | string | null;
4766
+ extension?: string;
4767
+ form_api_base_url?: string;
4768
+ instanceEndpoint?: string;
4769
+ instanceName?: string;
4770
+ proxy_password?: string;
4771
+ proxy_username?: string;
4772
+ region?: string;
4773
+ scope?: string | Array<string> | null;
4774
+ server_location?: string;
4775
+ shop?: string;
4776
+ site_name?: string;
4777
+ subdomain?: string;
4778
+ token_type?: string;
4779
+ version?: string;
4780
+ your_server?: string;
4781
+ 'your-domain'?: string;
4782
+ [k: string]: unknown;
4783
+ }
4784
+ interface UnionMember4 {
4785
+ status: 'FAILED';
4786
+ account_id?: string;
4787
+ account_url?: string;
4788
+ api_url?: string;
4789
+ base_url?: string;
4790
+ borneo_dashboard_url?: string;
4791
+ COMPANYDOMAIN?: string;
4792
+ dc?: string;
4793
+ domain?: string;
4794
+ error?: string;
4795
+ error_description?: string;
4796
+ extension?: string;
4797
+ form_api_base_url?: string;
4798
+ instanceEndpoint?: string;
4799
+ instanceName?: string;
4800
+ proxy_password?: string;
4801
+ proxy_username?: string;
4802
+ region?: string;
4803
+ server_location?: string;
4804
+ shop?: string;
4805
+ site_name?: string;
4806
+ subdomain?: string;
4807
+ version?: string;
4808
+ your_server?: string;
4809
+ 'your-domain'?: string;
4810
+ [k: string]: unknown;
4811
+ }
4812
+ interface UnionMember5 {
4813
+ status: 'EXPIRED';
4814
+ account_id?: string;
4815
+ account_url?: string;
4816
+ api_url?: string;
4817
+ base_url?: string;
4818
+ borneo_dashboard_url?: string;
4819
+ COMPANYDOMAIN?: string;
4820
+ dc?: string;
4821
+ domain?: string;
4822
+ expired_at?: string;
4823
+ extension?: string;
4824
+ form_api_base_url?: string;
4825
+ instanceEndpoint?: string;
4826
+ instanceName?: string;
4827
+ proxy_password?: string;
4828
+ proxy_username?: string;
4829
+ region?: string;
4830
+ server_location?: string;
4831
+ shop?: string;
4832
+ site_name?: string;
4833
+ subdomain?: string;
4834
+ version?: string;
4835
+ your_server?: string;
4836
+ 'your-domain'?: string;
4837
+ [k: string]: unknown;
4838
+ }
4839
+ }
4840
+ interface Toolkit {
4841
+ /**
4842
+ * The slug of the toolkit
4843
+ */
4844
+ slug: string;
4845
+ }
4846
+ /**
4847
+ * @deprecated
4848
+ */
4849
+ interface Deprecated {
4850
+ /**
4851
+ * The labels of the connection
4852
+ */
4853
+ labels: Array<string>;
4854
+ /**
4855
+ * The uuid of the connection
4856
+ */
4857
+ uuid: string;
4858
+ }
4859
+ }
4860
+ export interface ConnectedAccountListResponse {
4861
+ current_page: number;
4862
+ items: Array<ConnectedAccountListResponse.Item>;
4863
+ total_items: number;
4864
+ total_pages: number;
4865
+ next_cursor?: string | null;
4866
+ }
4867
+ export declare namespace ConnectedAccountListResponse {
4868
+ interface Item {
4869
+ /**
4870
+ * The id of the connection
4871
+ */
4872
+ id: string;
4873
+ /**
4874
+ * A user-defined alias for the connected account
4875
+ */
4876
+ alias: string | null;
4877
+ auth_config: Item.AuthConfig;
4878
+ /**
4879
+ * The created at of the connection
4880
+ */
4881
+ created_at: string;
4882
+ /**
4883
+ * @deprecated This is deprecated, use `state` instead
4884
+ */
4885
+ data: {
4886
+ [key: string]: unknown;
4887
+ };
4888
+ /**
4889
+ * Whether the connection is disabled
4890
+ */
4891
+ is_disabled: boolean;
4892
+ /**
4893
+ * The state of the connection
4894
+ */
4895
+ state: Item.UnionMember0 | Item.UnionMember1 | Item.UnionMember2 | Item.UnionMember3 | Item.UnionMember4 | Item.UnionMember5 | Item.UnionMember6 | Item.UnionMember7 | Item.UnionMember8 | Item.UnionMember9 | Item.UnionMember10 | Item.UnionMember11 | Item.UnionMember12 | Item.UnionMember13;
4896
+ /**
4897
+ * The status of the connection
4898
+ */
4899
+ status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE';
4900
+ /**
4901
+ * The reason the connection status changed. Possible reasons: Connection
4902
+ * initiation did not complete within 10 minutes, Permanent auth error during token
4903
+ * refresh, Max auth failures reached, OAuth callback failed during token exchange,
4904
+ * Connection status updated by user, Auth config is disabled
4905
+ */
4906
+ status_reason: string | null;
4907
+ toolkit: Item.Toolkit;
4908
+ /**
4909
+ * The updated at of the connection
4910
+ */
4911
+ updated_at: string;
4912
+ /**
4913
+ * @deprecated This is deprecated, we will not be providing userId from this api
4914
+ * anymore, you will only be able to read via userId not get it back
4915
+ */
4916
+ user_id: string;
4917
+ /**
4918
+ * A short, token-friendly identifier for multi-account disambiguation, typically
4919
+ * toolkit-prefixed with 1-2 words (e.g., "gmail_red-castle")
4920
+ */
4921
+ word_id: string | null;
4922
+ /**
4923
+ * @deprecated
4924
+ */
4528
4925
  deprecated?: Item.Deprecated;
4529
4926
  /**
4530
4927
  * The endpoint to make test request for verification
@@ -6506,47 +6903,259 @@ export declare namespace ConnectedAccountListResponse {
6506
6903
  }
6507
6904
  interface UnionMember2 {
6508
6905
  access_token: string;
6509
- /**
6510
- * Dynamically registered client ID
6511
- */
6906
+ /**
6907
+ * Dynamically registered client ID
6908
+ */
6909
+ client_id: string;
6910
+ status: 'ACTIVE';
6911
+ account_id?: string;
6912
+ account_url?: string;
6913
+ api_url?: string;
6914
+ base_url?: string;
6915
+ borneo_dashboard_url?: string;
6916
+ client_id_issued_at?: number;
6917
+ /**
6918
+ * Dynamically registered client secret
6919
+ */
6920
+ client_secret?: string;
6921
+ client_secret_expires_at?: number;
6922
+ COMPANYDOMAIN?: string;
6923
+ dc?: string;
6924
+ domain?: string;
6925
+ expires_in?: number | string | null;
6926
+ extension?: string;
6927
+ form_api_base_url?: string;
6928
+ id_token?: string;
6929
+ instanceEndpoint?: string;
6930
+ instanceName?: string;
6931
+ /**
6932
+ * Whether to return the redirect url without shortening
6933
+ */
6934
+ long_redirect_url?: boolean;
6935
+ proxy_password?: string;
6936
+ proxy_username?: string;
6937
+ refresh_token?: string | null;
6938
+ region?: string;
6939
+ scope?: string | Array<string> | null;
6940
+ server_location?: string;
6941
+ shop?: string;
6942
+ site_name?: string;
6943
+ /**
6944
+ * The oauth2 state prefix for the connection
6945
+ */
6946
+ state_prefix?: string;
6947
+ subdomain?: string;
6948
+ token_type?: string;
6949
+ version?: string;
6950
+ your_server?: string;
6951
+ 'your-domain'?: string;
6952
+ [k: string]: unknown;
6953
+ }
6954
+ interface UnionMember3 {
6955
+ access_token: string;
6956
+ /**
6957
+ * Dynamically registered client ID
6958
+ */
6959
+ client_id: string;
6960
+ status: 'INACTIVE';
6961
+ account_id?: string;
6962
+ account_url?: string;
6963
+ api_url?: string;
6964
+ base_url?: string;
6965
+ borneo_dashboard_url?: string;
6966
+ client_id_issued_at?: number;
6967
+ /**
6968
+ * Dynamically registered client secret
6969
+ */
6970
+ client_secret?: string;
6971
+ client_secret_expires_at?: number;
6972
+ COMPANYDOMAIN?: string;
6973
+ dc?: string;
6974
+ domain?: string;
6975
+ expires_in?: number | string | null;
6976
+ extension?: string;
6977
+ form_api_base_url?: string;
6978
+ id_token?: string;
6979
+ instanceEndpoint?: string;
6980
+ instanceName?: string;
6981
+ /**
6982
+ * Whether to return the redirect url without shortening
6983
+ */
6984
+ long_redirect_url?: boolean;
6985
+ proxy_password?: string;
6986
+ proxy_username?: string;
6987
+ refresh_token?: string | null;
6988
+ region?: string;
6989
+ scope?: string | Array<string> | null;
6990
+ server_location?: string;
6991
+ shop?: string;
6992
+ site_name?: string;
6993
+ /**
6994
+ * The oauth2 state prefix for the connection
6995
+ */
6996
+ state_prefix?: string;
6997
+ subdomain?: string;
6998
+ token_type?: string;
6999
+ version?: string;
7000
+ your_server?: string;
7001
+ 'your-domain'?: string;
7002
+ [k: string]: unknown;
7003
+ }
7004
+ interface UnionMember4 {
7005
+ status: 'FAILED';
7006
+ account_id?: string;
7007
+ account_url?: string;
7008
+ api_url?: string;
7009
+ base_url?: string;
7010
+ borneo_dashboard_url?: string;
7011
+ COMPANYDOMAIN?: string;
7012
+ dc?: string;
7013
+ domain?: string;
7014
+ error?: string;
7015
+ error_description?: string;
7016
+ extension?: string;
7017
+ form_api_base_url?: string;
7018
+ instanceEndpoint?: string;
7019
+ instanceName?: string;
7020
+ /**
7021
+ * Whether to return the redirect url without shortening
7022
+ */
7023
+ long_redirect_url?: boolean;
7024
+ proxy_password?: string;
7025
+ proxy_username?: string;
7026
+ region?: string;
7027
+ server_location?: string;
7028
+ shop?: string;
7029
+ site_name?: string;
7030
+ /**
7031
+ * The oauth2 state prefix for the connection
7032
+ */
7033
+ state_prefix?: string;
7034
+ subdomain?: string;
7035
+ version?: string;
7036
+ your_server?: string;
7037
+ 'your-domain'?: string;
7038
+ [k: string]: unknown;
7039
+ }
7040
+ interface UnionMember5 {
7041
+ status: 'EXPIRED';
7042
+ account_id?: string;
7043
+ account_url?: string;
7044
+ api_url?: string;
7045
+ base_url?: string;
7046
+ borneo_dashboard_url?: string;
7047
+ COMPANYDOMAIN?: string;
7048
+ dc?: string;
7049
+ domain?: string;
7050
+ expired_at?: string;
7051
+ extension?: string;
7052
+ form_api_base_url?: string;
7053
+ instanceEndpoint?: string;
7054
+ instanceName?: string;
7055
+ /**
7056
+ * Whether to return the redirect url without shortening
7057
+ */
7058
+ long_redirect_url?: boolean;
7059
+ proxy_password?: string;
7060
+ proxy_username?: string;
7061
+ region?: string;
7062
+ server_location?: string;
7063
+ shop?: string;
7064
+ site_name?: string;
7065
+ /**
7066
+ * The oauth2 state prefix for the connection
7067
+ */
7068
+ state_prefix?: string;
7069
+ subdomain?: string;
7070
+ version?: string;
7071
+ your_server?: string;
7072
+ 'your-domain'?: string;
7073
+ [k: string]: unknown;
7074
+ }
7075
+ }
7076
+ interface UnionMember13 {
7077
+ authScheme: 'S2S_OAUTH2';
7078
+ val: UnionMember13.UnionMember0 | UnionMember13.UnionMember1 | UnionMember13.UnionMember2 | UnionMember13.UnionMember3 | UnionMember13.UnionMember4 | UnionMember13.UnionMember5;
7079
+ }
7080
+ namespace UnionMember13 {
7081
+ interface UnionMember0 {
7082
+ status: 'INITIALIZING';
7083
+ account_id?: string;
7084
+ account_url?: string;
7085
+ api_url?: string;
7086
+ base_url?: string;
7087
+ borneo_dashboard_url?: string;
7088
+ COMPANYDOMAIN?: string;
7089
+ dc?: string;
7090
+ domain?: string;
7091
+ extension?: string;
7092
+ form_api_base_url?: string;
7093
+ instanceEndpoint?: string;
7094
+ instanceName?: string;
7095
+ proxy_password?: string;
7096
+ proxy_username?: string;
7097
+ region?: string;
7098
+ server_location?: string;
7099
+ shop?: string;
7100
+ site_name?: string;
7101
+ subdomain?: string;
7102
+ version?: string;
7103
+ your_server?: string;
7104
+ 'your-domain'?: string;
7105
+ [k: string]: unknown;
7106
+ }
7107
+ interface UnionMember1 {
7108
+ status: 'INITIATED';
7109
+ account_id?: string;
7110
+ account_url?: string;
7111
+ api_url?: string;
7112
+ base_url?: string;
7113
+ borneo_dashboard_url?: string;
7114
+ COMPANYDOMAIN?: string;
7115
+ dc?: string;
7116
+ domain?: string;
7117
+ extension?: string;
7118
+ form_api_base_url?: string;
7119
+ instanceEndpoint?: string;
7120
+ instanceName?: string;
7121
+ proxy_password?: string;
7122
+ proxy_username?: string;
7123
+ region?: string;
7124
+ server_location?: string;
7125
+ shop?: string;
7126
+ site_name?: string;
7127
+ subdomain?: string;
7128
+ version?: string;
7129
+ your_server?: string;
7130
+ 'your-domain'?: string;
7131
+ [k: string]: unknown;
7132
+ }
7133
+ interface UnionMember2 {
7134
+ access_token: string;
6512
7135
  client_id: string;
7136
+ client_secret: string;
6513
7137
  status: 'ACTIVE';
6514
7138
  account_id?: string;
6515
7139
  account_url?: string;
6516
7140
  api_url?: string;
6517
7141
  base_url?: string;
6518
7142
  borneo_dashboard_url?: string;
6519
- client_id_issued_at?: number;
6520
- /**
6521
- * Dynamically registered client secret
6522
- */
6523
- client_secret?: string;
6524
- client_secret_expires_at?: number;
6525
7143
  COMPANYDOMAIN?: string;
6526
7144
  dc?: string;
6527
7145
  domain?: string;
7146
+ expires_at?: string;
6528
7147
  expires_in?: number | string | null;
6529
7148
  extension?: string;
6530
7149
  form_api_base_url?: string;
6531
- id_token?: string;
6532
7150
  instanceEndpoint?: string;
6533
7151
  instanceName?: string;
6534
- /**
6535
- * Whether to return the redirect url without shortening
6536
- */
6537
- long_redirect_url?: boolean;
6538
7152
  proxy_password?: string;
6539
7153
  proxy_username?: string;
6540
- refresh_token?: string | null;
6541
7154
  region?: string;
6542
7155
  scope?: string | Array<string> | null;
6543
7156
  server_location?: string;
6544
7157
  shop?: string;
6545
7158
  site_name?: string;
6546
- /**
6547
- * The oauth2 state prefix for the connection
6548
- */
6549
- state_prefix?: string;
6550
7159
  subdomain?: string;
6551
7160
  token_type?: string;
6552
7161
  version?: string;
@@ -6556,47 +7165,30 @@ export declare namespace ConnectedAccountListResponse {
6556
7165
  }
6557
7166
  interface UnionMember3 {
6558
7167
  access_token: string;
6559
- /**
6560
- * Dynamically registered client ID
6561
- */
6562
7168
  client_id: string;
7169
+ client_secret: string;
6563
7170
  status: 'INACTIVE';
6564
7171
  account_id?: string;
6565
7172
  account_url?: string;
6566
7173
  api_url?: string;
6567
7174
  base_url?: string;
6568
7175
  borneo_dashboard_url?: string;
6569
- client_id_issued_at?: number;
6570
- /**
6571
- * Dynamically registered client secret
6572
- */
6573
- client_secret?: string;
6574
- client_secret_expires_at?: number;
6575
7176
  COMPANYDOMAIN?: string;
6576
7177
  dc?: string;
6577
7178
  domain?: string;
7179
+ expires_at?: string;
6578
7180
  expires_in?: number | string | null;
6579
7181
  extension?: string;
6580
7182
  form_api_base_url?: string;
6581
- id_token?: string;
6582
7183
  instanceEndpoint?: string;
6583
7184
  instanceName?: string;
6584
- /**
6585
- * Whether to return the redirect url without shortening
6586
- */
6587
- long_redirect_url?: boolean;
6588
7185
  proxy_password?: string;
6589
7186
  proxy_username?: string;
6590
- refresh_token?: string | null;
6591
7187
  region?: string;
6592
7188
  scope?: string | Array<string> | null;
6593
7189
  server_location?: string;
6594
7190
  shop?: string;
6595
7191
  site_name?: string;
6596
- /**
6597
- * The oauth2 state prefix for the connection
6598
- */
6599
- state_prefix?: string;
6600
7192
  subdomain?: string;
6601
7193
  token_type?: string;
6602
7194
  version?: string;
@@ -6620,20 +7212,12 @@ export declare namespace ConnectedAccountListResponse {
6620
7212
  form_api_base_url?: string;
6621
7213
  instanceEndpoint?: string;
6622
7214
  instanceName?: string;
6623
- /**
6624
- * Whether to return the redirect url without shortening
6625
- */
6626
- long_redirect_url?: boolean;
6627
7215
  proxy_password?: string;
6628
7216
  proxy_username?: string;
6629
7217
  region?: string;
6630
7218
  server_location?: string;
6631
7219
  shop?: string;
6632
7220
  site_name?: string;
6633
- /**
6634
- * The oauth2 state prefix for the connection
6635
- */
6636
- state_prefix?: string;
6637
7221
  subdomain?: string;
6638
7222
  version?: string;
6639
7223
  your_server?: string;
@@ -6655,20 +7239,12 @@ export declare namespace ConnectedAccountListResponse {
6655
7239
  form_api_base_url?: string;
6656
7240
  instanceEndpoint?: string;
6657
7241
  instanceName?: string;
6658
- /**
6659
- * Whether to return the redirect url without shortening
6660
- */
6661
- long_redirect_url?: boolean;
6662
7242
  proxy_password?: string;
6663
7243
  proxy_username?: string;
6664
7244
  region?: string;
6665
7245
  server_location?: string;
6666
7246
  shop?: string;
6667
7247
  site_name?: string;
6668
- /**
6669
- * The oauth2 state prefix for the connection
6670
- */
6671
- state_prefix?: string;
6672
7248
  subdomain?: string;
6673
7249
  version?: string;
6674
7250
  your_server?: string;
@@ -6706,6 +7282,21 @@ export interface ConnectedAccountDeleteResponse {
6706
7282
  */
6707
7283
  success: boolean;
6708
7284
  }
7285
+ export interface ConnectedAccountPatchResponse {
7286
+ /**
7287
+ * The unique identifier of the updated connected account
7288
+ */
7289
+ id: string;
7290
+ /**
7291
+ * The current status of the connected account after the update (ACTIVE, EXPIRED,
7292
+ * INACTIVE, etc.)
7293
+ */
7294
+ status: string;
7295
+ /**
7296
+ * Whether the update was successful
7297
+ */
7298
+ success: boolean;
7299
+ }
6709
7300
  /**
6710
7301
  * Response schema for a refreshed connected account authentication
6711
7302
  */
@@ -6750,6 +7341,11 @@ export declare namespace ConnectedAccountCreateParams {
6750
7341
  id: string;
6751
7342
  }
6752
7343
  interface Connection {
7344
+ /**
7345
+ * A human-readable alias for this connected account. Must be unique per entity and
7346
+ * toolkit within the project.
7347
+ */
7348
+ alias?: string;
6753
7349
  /**
6754
7350
  * The URL to redirect to after connection completion
6755
7351
  */
@@ -6773,7 +7369,7 @@ export declare namespace ConnectedAccountCreateParams {
6773
7369
  /**
6774
7370
  * The state of the connected account
6775
7371
  */
6776
- state?: Connection.UnionMember0 | Connection.UnionMember1 | Connection.UnionMember2 | Connection.UnionMember3 | Connection.UnionMember4 | Connection.UnionMember5 | Connection.UnionMember6 | Connection.UnionMember7 | Connection.UnionMember8 | Connection.UnionMember9 | Connection.UnionMember10 | Connection.UnionMember11 | Connection.UnionMember12;
7372
+ state?: Connection.UnionMember0 | Connection.UnionMember1 | Connection.UnionMember2 | Connection.UnionMember3 | Connection.UnionMember4 | Connection.UnionMember5 | Connection.UnionMember6 | Connection.UnionMember7 | Connection.UnionMember8 | Connection.UnionMember9 | Connection.UnionMember10 | Connection.UnionMember11 | Connection.UnionMember12 | Connection.UnionMember13;
6777
7373
  /**
6778
7374
  * The user id of the connected account
6779
7375
  */
@@ -8891,6 +9487,185 @@ export declare namespace ConnectedAccountCreateParams {
8891
9487
  [k: string]: unknown;
8892
9488
  }
8893
9489
  }
9490
+ interface UnionMember13 {
9491
+ authScheme: 'S2S_OAUTH2';
9492
+ val: UnionMember13.UnionMember0 | UnionMember13.UnionMember1 | UnionMember13.UnionMember2 | UnionMember13.UnionMember3 | UnionMember13.UnionMember4 | UnionMember13.UnionMember5;
9493
+ }
9494
+ namespace UnionMember13 {
9495
+ interface UnionMember0 {
9496
+ status: 'INITIALIZING';
9497
+ account_id?: string;
9498
+ account_url?: string;
9499
+ api_url?: string;
9500
+ base_url?: string;
9501
+ borneo_dashboard_url?: string;
9502
+ COMPANYDOMAIN?: string;
9503
+ dc?: string;
9504
+ domain?: string;
9505
+ extension?: string;
9506
+ form_api_base_url?: string;
9507
+ instanceEndpoint?: string;
9508
+ instanceName?: string;
9509
+ proxy_password?: string;
9510
+ proxy_username?: string;
9511
+ region?: string;
9512
+ server_location?: string;
9513
+ shop?: string;
9514
+ site_name?: string;
9515
+ subdomain?: string;
9516
+ version?: string;
9517
+ your_server?: string;
9518
+ 'your-domain'?: string;
9519
+ [k: string]: unknown;
9520
+ }
9521
+ interface UnionMember1 {
9522
+ status: 'INITIATED';
9523
+ account_id?: string;
9524
+ account_url?: string;
9525
+ api_url?: string;
9526
+ base_url?: string;
9527
+ borneo_dashboard_url?: string;
9528
+ COMPANYDOMAIN?: string;
9529
+ dc?: string;
9530
+ domain?: string;
9531
+ extension?: string;
9532
+ form_api_base_url?: string;
9533
+ instanceEndpoint?: string;
9534
+ instanceName?: string;
9535
+ proxy_password?: string;
9536
+ proxy_username?: string;
9537
+ region?: string;
9538
+ server_location?: string;
9539
+ shop?: string;
9540
+ site_name?: string;
9541
+ subdomain?: string;
9542
+ version?: string;
9543
+ your_server?: string;
9544
+ 'your-domain'?: string;
9545
+ [k: string]: unknown;
9546
+ }
9547
+ interface UnionMember2 {
9548
+ access_token: string;
9549
+ client_id: string;
9550
+ client_secret: string;
9551
+ status: 'ACTIVE';
9552
+ account_id?: string;
9553
+ account_url?: string;
9554
+ api_url?: string;
9555
+ base_url?: string;
9556
+ borneo_dashboard_url?: string;
9557
+ COMPANYDOMAIN?: string;
9558
+ dc?: string;
9559
+ domain?: string;
9560
+ expires_at?: string;
9561
+ expires_in?: number | string | null;
9562
+ extension?: string;
9563
+ form_api_base_url?: string;
9564
+ instanceEndpoint?: string;
9565
+ instanceName?: string;
9566
+ proxy_password?: string;
9567
+ proxy_username?: string;
9568
+ region?: string;
9569
+ scope?: string | Array<string> | null;
9570
+ server_location?: string;
9571
+ shop?: string;
9572
+ site_name?: string;
9573
+ subdomain?: string;
9574
+ token_type?: string;
9575
+ version?: string;
9576
+ your_server?: string;
9577
+ 'your-domain'?: string;
9578
+ [k: string]: unknown;
9579
+ }
9580
+ interface UnionMember3 {
9581
+ access_token: string;
9582
+ client_id: string;
9583
+ client_secret: string;
9584
+ status: 'INACTIVE';
9585
+ account_id?: string;
9586
+ account_url?: string;
9587
+ api_url?: string;
9588
+ base_url?: string;
9589
+ borneo_dashboard_url?: string;
9590
+ COMPANYDOMAIN?: string;
9591
+ dc?: string;
9592
+ domain?: string;
9593
+ expires_at?: string;
9594
+ expires_in?: number | string | null;
9595
+ extension?: string;
9596
+ form_api_base_url?: string;
9597
+ instanceEndpoint?: string;
9598
+ instanceName?: string;
9599
+ proxy_password?: string;
9600
+ proxy_username?: string;
9601
+ region?: string;
9602
+ scope?: string | Array<string> | null;
9603
+ server_location?: string;
9604
+ shop?: string;
9605
+ site_name?: string;
9606
+ subdomain?: string;
9607
+ token_type?: string;
9608
+ version?: string;
9609
+ your_server?: string;
9610
+ 'your-domain'?: string;
9611
+ [k: string]: unknown;
9612
+ }
9613
+ interface UnionMember4 {
9614
+ status: 'FAILED';
9615
+ account_id?: string;
9616
+ account_url?: string;
9617
+ api_url?: string;
9618
+ base_url?: string;
9619
+ borneo_dashboard_url?: string;
9620
+ COMPANYDOMAIN?: string;
9621
+ dc?: string;
9622
+ domain?: string;
9623
+ error?: string;
9624
+ error_description?: string;
9625
+ extension?: string;
9626
+ form_api_base_url?: string;
9627
+ instanceEndpoint?: string;
9628
+ instanceName?: string;
9629
+ proxy_password?: string;
9630
+ proxy_username?: string;
9631
+ region?: string;
9632
+ server_location?: string;
9633
+ shop?: string;
9634
+ site_name?: string;
9635
+ subdomain?: string;
9636
+ version?: string;
9637
+ your_server?: string;
9638
+ 'your-domain'?: string;
9639
+ [k: string]: unknown;
9640
+ }
9641
+ interface UnionMember5 {
9642
+ status: 'EXPIRED';
9643
+ account_id?: string;
9644
+ account_url?: string;
9645
+ api_url?: string;
9646
+ base_url?: string;
9647
+ borneo_dashboard_url?: string;
9648
+ COMPANYDOMAIN?: string;
9649
+ dc?: string;
9650
+ domain?: string;
9651
+ expired_at?: string;
9652
+ extension?: string;
9653
+ form_api_base_url?: string;
9654
+ instanceEndpoint?: string;
9655
+ instanceName?: string;
9656
+ proxy_password?: string;
9657
+ proxy_username?: string;
9658
+ region?: string;
9659
+ server_location?: string;
9660
+ shop?: string;
9661
+ site_name?: string;
9662
+ subdomain?: string;
9663
+ version?: string;
9664
+ your_server?: string;
9665
+ 'your-domain'?: string;
9666
+ [k: string]: unknown;
9667
+ }
9668
+ }
8894
9669
  }
8895
9670
  }
8896
9671
  export interface ConnectedAccountListParams {
@@ -8931,6 +9706,75 @@ export interface ConnectedAccountListParams {
8931
9706
  */
8932
9707
  user_ids?: Array<string> | null;
8933
9708
  }
9709
+ export interface ConnectedAccountPatchParams {
9710
+ /**
9711
+ * A human-readable alias for this connected account. Pass an empty string to clear
9712
+ * the alias. Must be unique per entity and toolkit within the project.
9713
+ */
9714
+ alias?: string;
9715
+ connection?: ConnectedAccountPatchParams.Connection;
9716
+ }
9717
+ export declare namespace ConnectedAccountPatchParams {
9718
+ interface Connection {
9719
+ state: Connection.State;
9720
+ }
9721
+ namespace Connection {
9722
+ interface State {
9723
+ /**
9724
+ * The auth scheme of the connected account. Must match the connection's actual
9725
+ * auth scheme.
9726
+ */
9727
+ authScheme: 'BEARER_TOKEN' | 'API_KEY' | 'BASIC' | 'BASIC_WITH_JWT' | 'GOOGLE_SERVICE_ACCOUNT' | 'SERVICE_ACCOUNT';
9728
+ /**
9729
+ * Credential fields to update. Only provided fields are changed — omitted fields
9730
+ * are preserved. Set a field to null to remove it.
9731
+ */
9732
+ val: State.Val;
9733
+ }
9734
+ namespace State {
9735
+ /**
9736
+ * Credential fields to update. Only provided fields are changed — omitted fields
9737
+ * are preserved. Set a field to null to remove it.
9738
+ */
9739
+ interface Val {
9740
+ token?: string | null;
9741
+ account_id?: string | null;
9742
+ account_url?: string | null;
9743
+ api_key?: string | null;
9744
+ api_url?: string | null;
9745
+ application_id?: string | null;
9746
+ base_url?: string | null;
9747
+ basic_encoded?: string | null;
9748
+ bearer_token?: string | null;
9749
+ borneo_dashboard_url?: string | null;
9750
+ COMPANYDOMAIN?: string | null;
9751
+ credentials_json?: string | null;
9752
+ dc?: string | null;
9753
+ domain?: string | null;
9754
+ extension?: string | null;
9755
+ form_api_base_url?: string | null;
9756
+ generic_api_key?: string | null;
9757
+ installation_id?: string | null;
9758
+ instanceEndpoint?: string | null;
9759
+ instanceName?: string | null;
9760
+ password?: string | null;
9761
+ private_key?: string | null;
9762
+ proxy_password?: string | null;
9763
+ proxy_username?: string | null;
9764
+ region?: string | null;
9765
+ server_location?: string | null;
9766
+ shop?: string | null;
9767
+ site_name?: string | null;
9768
+ subdomain?: string | null;
9769
+ username?: string | null;
9770
+ version?: string | null;
9771
+ your_server?: string | null;
9772
+ 'your-domain'?: string | null;
9773
+ [k: string]: unknown;
9774
+ }
9775
+ }
9776
+ }
9777
+ }
8934
9778
  export interface ConnectedAccountRefreshParams {
8935
9779
  /**
8936
9780
  * Query param
@@ -8953,6 +9797,6 @@ export interface ConnectedAccountUpdateStatusParams {
8953
9797
  enabled: boolean;
8954
9798
  }
8955
9799
  export declare namespace ConnectedAccounts {
8956
- export { type ConnectedAccountCreateResponse as ConnectedAccountCreateResponse, type ConnectedAccountRetrieveResponse as ConnectedAccountRetrieveResponse, type ConnectedAccountListResponse as ConnectedAccountListResponse, type ConnectedAccountDeleteResponse as ConnectedAccountDeleteResponse, type ConnectedAccountRefreshResponse as ConnectedAccountRefreshResponse, type ConnectedAccountUpdateStatusResponse as ConnectedAccountUpdateStatusResponse, type ConnectedAccountCreateParams as ConnectedAccountCreateParams, type ConnectedAccountListParams as ConnectedAccountListParams, type ConnectedAccountRefreshParams as ConnectedAccountRefreshParams, type ConnectedAccountUpdateStatusParams as ConnectedAccountUpdateStatusParams, };
9800
+ export { type ConnectedAccountCreateResponse as ConnectedAccountCreateResponse, type ConnectedAccountRetrieveResponse as ConnectedAccountRetrieveResponse, type ConnectedAccountListResponse as ConnectedAccountListResponse, type ConnectedAccountDeleteResponse as ConnectedAccountDeleteResponse, type ConnectedAccountPatchResponse as ConnectedAccountPatchResponse, type ConnectedAccountRefreshResponse as ConnectedAccountRefreshResponse, type ConnectedAccountUpdateStatusResponse as ConnectedAccountUpdateStatusResponse, type ConnectedAccountCreateParams as ConnectedAccountCreateParams, type ConnectedAccountListParams as ConnectedAccountListParams, type ConnectedAccountPatchParams as ConnectedAccountPatchParams, type ConnectedAccountRefreshParams as ConnectedAccountRefreshParams, type ConnectedAccountUpdateStatusParams as ConnectedAccountUpdateStatusParams, };
8957
9801
  }
8958
9802
  //# sourceMappingURL=connected-accounts.d.mts.map