@composio/client 0.1.0-alpha.71 → 0.1.0-alpha.73
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/CHANGELOG.md +29 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth-configs.mjs.map +1 -1
- package/resources/cli/cli.d.mts.map +1 -1
- package/resources/cli/cli.d.ts.map +1 -1
- package/resources/cli/cli.mjs.map +1 -1
- package/resources/cli/index.d.mts.map +1 -1
- package/resources/cli/index.d.ts.map +1 -1
- package/resources/cli/index.mjs.map +1 -1
- package/resources/cli/realtime.d.mts.map +1 -1
- package/resources/cli/realtime.d.ts.map +1 -1
- package/resources/cli/realtime.mjs.map +1 -1
- package/resources/cli.d.mts.map +1 -1
- package/resources/cli.d.ts.map +1 -1
- package/resources/cli.mjs.map +1 -1
- package/resources/connected-accounts.d.mts +203 -112
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +203 -112
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +9 -3
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +9 -3
- package/resources/connected-accounts.mjs.map +1 -1
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/link.d.mts +85 -41
- package/resources/link.d.mts.map +1 -1
- package/resources/link.d.ts +85 -41
- package/resources/link.d.ts.map +1 -1
- package/resources/link.mjs.map +1 -1
- package/resources/logs/index.d.mts.map +1 -1
- package/resources/logs/index.d.ts.map +1 -1
- package/resources/logs/index.mjs.map +1 -1
- package/resources/logs/logs.d.mts.map +1 -1
- package/resources/logs/logs.d.ts.map +1 -1
- package/resources/logs/logs.mjs.map +1 -1
- package/resources/logs/tools.d.mts.map +1 -1
- package/resources/logs/tools.d.ts.map +1 -1
- package/resources/logs/tools.mjs.map +1 -1
- package/resources/logs/triggers.d.mts.map +1 -1
- package/resources/logs/triggers.d.ts.map +1 -1
- package/resources/logs/triggers.mjs.map +1 -1
- package/resources/logs.d.mts.map +1 -1
- package/resources/logs.d.ts.map +1 -1
- package/resources/logs.mjs.map +1 -1
- package/resources/mcp/custom.d.mts.map +1 -1
- package/resources/mcp/custom.d.ts.map +1 -1
- package/resources/mcp/custom.mjs.map +1 -1
- package/resources/mcp/generate.d.mts.map +1 -1
- package/resources/mcp/generate.d.ts.map +1 -1
- package/resources/mcp/generate.mjs.map +1 -1
- package/resources/mcp/index.d.mts.map +1 -1
- package/resources/mcp/index.d.ts.map +1 -1
- package/resources/mcp/index.mjs.map +1 -1
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.mjs.map +1 -1
- package/resources/mcp.d.mts.map +1 -1
- package/resources/mcp.d.ts.map +1 -1
- package/resources/mcp.mjs.map +1 -1
- package/resources/migration.d.mts.map +1 -1
- package/resources/migration.d.ts.map +1 -1
- package/resources/migration.mjs.map +1 -1
- package/resources/project/config.d.mts.map +1 -1
- package/resources/project/config.d.ts.map +1 -1
- package/resources/project/config.mjs.map +1 -1
- package/resources/project/index.d.mts.map +1 -1
- package/resources/project/index.d.ts.map +1 -1
- package/resources/project/index.mjs.map +1 -1
- package/resources/project/project.d.mts.map +1 -1
- package/resources/project/project.d.ts.map +1 -1
- package/resources/project/project.mjs.map +1 -1
- package/resources/project.d.mts.map +1 -1
- package/resources/project.d.ts.map +1 -1
- package/resources/project.mjs.map +1 -1
- package/resources/tool-router/index.d.mts.map +1 -1
- package/resources/tool-router/index.d.ts.map +1 -1
- package/resources/tool-router/index.mjs.map +1 -1
- package/resources/tool-router/session/files.d.mts.map +1 -1
- package/resources/tool-router/session/files.d.ts.map +1 -1
- package/resources/tool-router/session/files.mjs.map +1 -1
- package/resources/tool-router/session/index.d.mts.map +1 -1
- package/resources/tool-router/session/index.d.ts.map +1 -1
- package/resources/tool-router/session/index.mjs.map +1 -1
- package/resources/tool-router/session/session.d.mts +90 -35
- package/resources/tool-router/session/session.d.mts.map +1 -1
- package/resources/tool-router/session/session.d.ts +90 -35
- package/resources/tool-router/session/session.d.ts.map +1 -1
- package/resources/tool-router/session/session.js.map +1 -1
- package/resources/tool-router/session/session.mjs.map +1 -1
- package/resources/tool-router/session.d.mts.map +1 -1
- package/resources/tool-router/session.d.ts.map +1 -1
- package/resources/tool-router/session.mjs.map +1 -1
- package/resources/tool-router/tool-router.d.mts.map +1 -1
- package/resources/tool-router/tool-router.d.ts.map +1 -1
- package/resources/tool-router/tool-router.mjs.map +1 -1
- package/resources/tool-router.d.mts.map +1 -1
- package/resources/tool-router.d.ts.map +1 -1
- package/resources/tool-router.mjs.map +1 -1
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/toolkits.mjs.map +1 -1
- package/resources/tools.d.mts +3 -3
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +3 -3
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.mjs.map +1 -1
- package/resources/trigger-instances/index.d.mts.map +1 -1
- package/resources/trigger-instances/index.d.ts.map +1 -1
- package/resources/trigger-instances/index.mjs.map +1 -1
- package/resources/trigger-instances/manage.d.mts.map +1 -1
- package/resources/trigger-instances/manage.d.ts.map +1 -1
- package/resources/trigger-instances/manage.mjs.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
- package/resources/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances.mjs.map +1 -1
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts.map +1 -1
- package/resources/triggers-types.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/resources/connected-accounts.ts +227 -126
- package/src/resources/link.ts +96 -46
- package/src/resources/tool-router/session/session.ts +103 -38
- package/src/resources/tools.ts +3 -3
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -92,9 +92,15 @@ export class ConnectedAccounts extends APIResource {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
|
-
* Update a connected account. Supports updating
|
|
96
|
-
*
|
|
97
|
-
*
|
|
95
|
+
* Update a connected account. Supports updating alias, credentials, sharing model
|
|
96
|
+
* (`experimental.account_type`), and per-user ACL
|
|
97
|
+
* (`experimental.acl_config_for_shared`). Only specified fields are updated. Set a
|
|
98
|
+
* credential field to null to remove it. Alias must be unique within the same
|
|
99
|
+
* project, entity, and toolkit scope. Toggling `experimental.account_type` between
|
|
100
|
+
* PRIVATE and SHARED reuses the stored credentials — no re-auth is required.
|
|
101
|
+
* Demoting SHARED → PRIVATE atomically clears the stored ACL; supplying
|
|
102
|
+
* `acl_config_for_shared` in the same call is rejected as
|
|
103
|
+
* `acl_config_for_shared is only valid on SHARED connections`.
|
|
98
104
|
*
|
|
99
105
|
* @example
|
|
100
106
|
* ```ts
|
|
@@ -173,13 +179,6 @@ export interface ConnectedAccountCreateResponse {
|
|
|
173
179
|
*/
|
|
174
180
|
id: string;
|
|
175
181
|
|
|
176
|
-
/**
|
|
177
|
-
* The persisted sharing model for this connected account (PRIVATE | SHARED).
|
|
178
|
-
* Echoes back the value supplied at creation time so callers can confirm what
|
|
179
|
-
* landed without a follow-up GET.
|
|
180
|
-
*/
|
|
181
|
-
account_type: 'PRIVATE' | 'SHARED';
|
|
182
|
-
|
|
183
182
|
/**
|
|
184
183
|
* The connection data of the connected account
|
|
185
184
|
*/
|
|
@@ -219,6 +218,12 @@ export interface ConnectedAccountCreateResponse {
|
|
|
219
218
|
* @deprecated DEPRECATED: This field will be removed in a future version
|
|
220
219
|
*/
|
|
221
220
|
status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE' | 'REVOKED';
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
224
|
+
* versions.
|
|
225
|
+
*/
|
|
226
|
+
experimental?: ConnectedAccountCreateResponse.Experimental;
|
|
222
227
|
}
|
|
223
228
|
|
|
224
229
|
export namespace ConnectedAccountCreateResponse {
|
|
@@ -4644,6 +4649,41 @@ export namespace ConnectedAccountCreateResponse {
|
|
|
4644
4649
|
*/
|
|
4645
4650
|
uuid: string;
|
|
4646
4651
|
}
|
|
4652
|
+
|
|
4653
|
+
/**
|
|
4654
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
4655
|
+
* versions.
|
|
4656
|
+
*/
|
|
4657
|
+
export interface Experimental {
|
|
4658
|
+
/**
|
|
4659
|
+
* Sharing model for this connected account. PRIVATE is usable only by the owning
|
|
4660
|
+
* user_id. SHARED is reachable from a tool-router session only when explicitly
|
|
4661
|
+
* pinned in the session config.
|
|
4662
|
+
*/
|
|
4663
|
+
account_type: 'PRIVATE' | 'SHARED';
|
|
4664
|
+
|
|
4665
|
+
/**
|
|
4666
|
+
* Access control for SHARED connections. Visible only to the connection creator
|
|
4667
|
+
* and project/org API key callers; non-creator cookie callers receive the response
|
|
4668
|
+
* without this block.
|
|
4669
|
+
*/
|
|
4670
|
+
acl_config_for_shared?: Experimental.ACLConfigForShared;
|
|
4671
|
+
}
|
|
4672
|
+
|
|
4673
|
+
export namespace Experimental {
|
|
4674
|
+
/**
|
|
4675
|
+
* Access control for SHARED connections. Visible only to the connection creator
|
|
4676
|
+
* and project/org API key callers; non-creator cookie callers receive the response
|
|
4677
|
+
* without this block.
|
|
4678
|
+
*/
|
|
4679
|
+
export interface ACLConfigForShared {
|
|
4680
|
+
allow_all_users: boolean;
|
|
4681
|
+
|
|
4682
|
+
allowed_user_ids: Array<string>;
|
|
4683
|
+
|
|
4684
|
+
not_allowed_user_ids: Array<string>;
|
|
4685
|
+
}
|
|
4686
|
+
}
|
|
4647
4687
|
}
|
|
4648
4688
|
|
|
4649
4689
|
export interface ConnectedAccountRetrieveResponse {
|
|
@@ -4652,14 +4692,6 @@ export interface ConnectedAccountRetrieveResponse {
|
|
|
4652
4692
|
*/
|
|
4653
4693
|
id: string;
|
|
4654
4694
|
|
|
4655
|
-
/**
|
|
4656
|
-
* Sharing model. PRIVATE accounts are usable only by their owning user_id. SHARED
|
|
4657
|
-
* accounts are reachable from a tool-router session only when explicitly pinned in
|
|
4658
|
-
* the session config (at most one SHARED per toolkit per session); they are never
|
|
4659
|
-
* used implicitly.
|
|
4660
|
-
*/
|
|
4661
|
-
account_type: 'PRIVATE' | 'SHARED';
|
|
4662
|
-
|
|
4663
4695
|
/**
|
|
4664
4696
|
* A user-defined alias for the connected account
|
|
4665
4697
|
*/
|
|
@@ -4742,16 +4774,15 @@ export interface ConnectedAccountRetrieveResponse {
|
|
|
4742
4774
|
word_id: string | null;
|
|
4743
4775
|
|
|
4744
4776
|
/**
|
|
4745
|
-
*
|
|
4746
|
-
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
4747
|
-
* user in allowed_user_ids → ALLOW; else DENY.
|
|
4777
|
+
* @deprecated
|
|
4748
4778
|
*/
|
|
4749
|
-
|
|
4779
|
+
deprecated?: ConnectedAccountRetrieveResponse.Deprecated;
|
|
4750
4780
|
|
|
4751
4781
|
/**
|
|
4752
|
-
*
|
|
4782
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
4783
|
+
* versions.
|
|
4753
4784
|
*/
|
|
4754
|
-
|
|
4785
|
+
experimental?: ConnectedAccountRetrieveResponse.Experimental;
|
|
4755
4786
|
|
|
4756
4787
|
/**
|
|
4757
4788
|
* The endpoint to make test request for verification
|
|
@@ -9227,19 +9258,6 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
9227
9258
|
slug: string;
|
|
9228
9259
|
}
|
|
9229
9260
|
|
|
9230
|
-
/**
|
|
9231
|
-
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
9232
|
-
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
9233
|
-
* user in allowed_user_ids → ALLOW; else DENY.
|
|
9234
|
-
*/
|
|
9235
|
-
export interface ACLConfigForShared {
|
|
9236
|
-
allow_all_users: boolean;
|
|
9237
|
-
|
|
9238
|
-
allowed_user_ids: Array<string>;
|
|
9239
|
-
|
|
9240
|
-
not_allowed_user_ids: Array<string>;
|
|
9241
|
-
}
|
|
9242
|
-
|
|
9243
9261
|
/**
|
|
9244
9262
|
* @deprecated
|
|
9245
9263
|
*/
|
|
@@ -9254,6 +9272,41 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
9254
9272
|
*/
|
|
9255
9273
|
uuid: string;
|
|
9256
9274
|
}
|
|
9275
|
+
|
|
9276
|
+
/**
|
|
9277
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
9278
|
+
* versions.
|
|
9279
|
+
*/
|
|
9280
|
+
export interface Experimental {
|
|
9281
|
+
/**
|
|
9282
|
+
* Sharing model for this connected account. PRIVATE is usable only by the owning
|
|
9283
|
+
* user_id. SHARED is reachable from a tool-router session only when explicitly
|
|
9284
|
+
* pinned in the session config.
|
|
9285
|
+
*/
|
|
9286
|
+
account_type: 'PRIVATE' | 'SHARED';
|
|
9287
|
+
|
|
9288
|
+
/**
|
|
9289
|
+
* Access control for SHARED connections. Visible only to the connection creator
|
|
9290
|
+
* and project/org API key callers; non-creator cookie callers receive the response
|
|
9291
|
+
* without this block.
|
|
9292
|
+
*/
|
|
9293
|
+
acl_config_for_shared?: Experimental.ACLConfigForShared;
|
|
9294
|
+
}
|
|
9295
|
+
|
|
9296
|
+
export namespace Experimental {
|
|
9297
|
+
/**
|
|
9298
|
+
* Access control for SHARED connections. Visible only to the connection creator
|
|
9299
|
+
* and project/org API key callers; non-creator cookie callers receive the response
|
|
9300
|
+
* without this block.
|
|
9301
|
+
*/
|
|
9302
|
+
export interface ACLConfigForShared {
|
|
9303
|
+
allow_all_users: boolean;
|
|
9304
|
+
|
|
9305
|
+
allowed_user_ids: Array<string>;
|
|
9306
|
+
|
|
9307
|
+
not_allowed_user_ids: Array<string>;
|
|
9308
|
+
}
|
|
9309
|
+
}
|
|
9257
9310
|
}
|
|
9258
9311
|
|
|
9259
9312
|
export interface ConnectedAccountListResponse {
|
|
@@ -9275,14 +9328,6 @@ export namespace ConnectedAccountListResponse {
|
|
|
9275
9328
|
*/
|
|
9276
9329
|
id: string;
|
|
9277
9330
|
|
|
9278
|
-
/**
|
|
9279
|
-
* Sharing model. PRIVATE accounts are usable only by their owning user_id. SHARED
|
|
9280
|
-
* accounts are reachable from a tool-router session only when explicitly pinned in
|
|
9281
|
-
* the session config (at most one SHARED per toolkit per session); they are never
|
|
9282
|
-
* used implicitly.
|
|
9283
|
-
*/
|
|
9284
|
-
account_type: 'PRIVATE' | 'SHARED';
|
|
9285
|
-
|
|
9286
9331
|
/**
|
|
9287
9332
|
* A user-defined alias for the connected account
|
|
9288
9333
|
*/
|
|
@@ -9359,16 +9404,15 @@ export namespace ConnectedAccountListResponse {
|
|
|
9359
9404
|
word_id: string | null;
|
|
9360
9405
|
|
|
9361
9406
|
/**
|
|
9362
|
-
*
|
|
9363
|
-
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
9364
|
-
* user in allowed_user_ids → ALLOW; else DENY.
|
|
9407
|
+
* @deprecated
|
|
9365
9408
|
*/
|
|
9366
|
-
|
|
9409
|
+
deprecated?: Item.Deprecated;
|
|
9367
9410
|
|
|
9368
9411
|
/**
|
|
9369
|
-
*
|
|
9412
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
9413
|
+
* versions.
|
|
9370
9414
|
*/
|
|
9371
|
-
|
|
9415
|
+
experimental?: Item.Experimental;
|
|
9372
9416
|
|
|
9373
9417
|
/**
|
|
9374
9418
|
* The endpoint to make test request for verification
|
|
@@ -13844,19 +13888,6 @@ export namespace ConnectedAccountListResponse {
|
|
|
13844
13888
|
slug: string;
|
|
13845
13889
|
}
|
|
13846
13890
|
|
|
13847
|
-
/**
|
|
13848
|
-
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
13849
|
-
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
13850
|
-
* user in allowed_user_ids → ALLOW; else DENY.
|
|
13851
|
-
*/
|
|
13852
|
-
export interface ACLConfigForShared {
|
|
13853
|
-
allow_all_users: boolean;
|
|
13854
|
-
|
|
13855
|
-
allowed_user_ids: Array<string>;
|
|
13856
|
-
|
|
13857
|
-
not_allowed_user_ids: Array<string>;
|
|
13858
|
-
}
|
|
13859
|
-
|
|
13860
13891
|
/**
|
|
13861
13892
|
* @deprecated
|
|
13862
13893
|
*/
|
|
@@ -13871,6 +13902,41 @@ export namespace ConnectedAccountListResponse {
|
|
|
13871
13902
|
*/
|
|
13872
13903
|
uuid: string;
|
|
13873
13904
|
}
|
|
13905
|
+
|
|
13906
|
+
/**
|
|
13907
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
13908
|
+
* versions.
|
|
13909
|
+
*/
|
|
13910
|
+
export interface Experimental {
|
|
13911
|
+
/**
|
|
13912
|
+
* Sharing model for this connected account. PRIVATE is usable only by the owning
|
|
13913
|
+
* user_id. SHARED is reachable from a tool-router session only when explicitly
|
|
13914
|
+
* pinned in the session config.
|
|
13915
|
+
*/
|
|
13916
|
+
account_type: 'PRIVATE' | 'SHARED';
|
|
13917
|
+
|
|
13918
|
+
/**
|
|
13919
|
+
* Access control for SHARED connections. Visible only to the connection creator
|
|
13920
|
+
* and project/org API key callers; non-creator cookie callers receive the response
|
|
13921
|
+
* without this block.
|
|
13922
|
+
*/
|
|
13923
|
+
acl_config_for_shared?: Experimental.ACLConfigForShared;
|
|
13924
|
+
}
|
|
13925
|
+
|
|
13926
|
+
export namespace Experimental {
|
|
13927
|
+
/**
|
|
13928
|
+
* Access control for SHARED connections. Visible only to the connection creator
|
|
13929
|
+
* and project/org API key callers; non-creator cookie callers receive the response
|
|
13930
|
+
* without this block.
|
|
13931
|
+
*/
|
|
13932
|
+
export interface ACLConfigForShared {
|
|
13933
|
+
allow_all_users: boolean;
|
|
13934
|
+
|
|
13935
|
+
allowed_user_ids: Array<string>;
|
|
13936
|
+
|
|
13937
|
+
not_allowed_user_ids: Array<string>;
|
|
13938
|
+
}
|
|
13939
|
+
}
|
|
13874
13940
|
}
|
|
13875
13941
|
}
|
|
13876
13942
|
|
|
@@ -13954,22 +14020,6 @@ export namespace ConnectedAccountCreateParams {
|
|
|
13954
14020
|
}
|
|
13955
14021
|
|
|
13956
14022
|
export interface Connection {
|
|
13957
|
-
/**
|
|
13958
|
-
* Sharing model for this connected account. PRIVATE (default) is usable only by
|
|
13959
|
-
* the owning user_id. SHARED is reachable from a tool-router session ONLY when
|
|
13960
|
-
* explicitly pinned in the session config — at most one SHARED connection per
|
|
13961
|
-
* toolkit per session. Sessions never use a SHARED connection implicitly.
|
|
13962
|
-
*/
|
|
13963
|
-
account_type?: 'PRIVATE' | 'SHARED';
|
|
13964
|
-
|
|
13965
|
-
/**
|
|
13966
|
-
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
13967
|
-
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
13968
|
-
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
13969
|
-
* deny-by-default — only the creator can use.
|
|
13970
|
-
*/
|
|
13971
|
-
acl_config_for_shared?: Connection.ACLConfigForShared;
|
|
13972
|
-
|
|
13973
14023
|
/**
|
|
13974
14024
|
* A human-readable alias for this connected account. Must be unique per entity and
|
|
13975
14025
|
* toolkit within the project.
|
|
@@ -13992,6 +14042,12 @@ export namespace ConnectedAccountCreateParams {
|
|
|
13992
14042
|
*/
|
|
13993
14043
|
deprecated_is_v1_rerouted?: boolean;
|
|
13994
14044
|
|
|
14045
|
+
/**
|
|
14046
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
14047
|
+
* versions.
|
|
14048
|
+
*/
|
|
14049
|
+
experimental?: Connection.Experimental;
|
|
14050
|
+
|
|
13995
14051
|
/**
|
|
13996
14052
|
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
13997
14053
|
* Please use callback_url instead.
|
|
@@ -14025,27 +14081,51 @@ export namespace ConnectedAccountCreateParams {
|
|
|
14025
14081
|
|
|
14026
14082
|
export namespace Connection {
|
|
14027
14083
|
/**
|
|
14028
|
-
*
|
|
14029
|
-
*
|
|
14030
|
-
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
14031
|
-
* deny-by-default — only the creator can use.
|
|
14084
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
14085
|
+
* versions.
|
|
14032
14086
|
*/
|
|
14033
|
-
export interface
|
|
14087
|
+
export interface Experimental {
|
|
14034
14088
|
/**
|
|
14035
|
-
*
|
|
14036
|
-
*
|
|
14089
|
+
* Sharing model for this connected account. PRIVATE (default) is usable only by
|
|
14090
|
+
* the owning user_id. SHARED is reachable from a tool-router session ONLY when
|
|
14091
|
+
* explicitly pinned in the session config — at most one SHARED connection per
|
|
14092
|
+
* toolkit per session. Sessions never use a SHARED connection implicitly.
|
|
14037
14093
|
*/
|
|
14038
|
-
|
|
14094
|
+
account_type?: 'PRIVATE' | 'SHARED';
|
|
14039
14095
|
|
|
14040
14096
|
/**
|
|
14041
|
-
*
|
|
14097
|
+
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
14098
|
+
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
14099
|
+
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
14100
|
+
* deny-by-default — only the creator can use.
|
|
14042
14101
|
*/
|
|
14043
|
-
|
|
14102
|
+
acl_config_for_shared?: Experimental.ACLConfigForShared;
|
|
14103
|
+
}
|
|
14044
14104
|
|
|
14105
|
+
export namespace Experimental {
|
|
14045
14106
|
/**
|
|
14046
|
-
*
|
|
14107
|
+
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
14108
|
+
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
14109
|
+
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
14110
|
+
* deny-by-default — only the creator can use.
|
|
14047
14111
|
*/
|
|
14048
|
-
|
|
14112
|
+
export interface ACLConfigForShared {
|
|
14113
|
+
/**
|
|
14114
|
+
* Wildcard "any user_id in the project" allow toggle. Only valid on SHARED
|
|
14115
|
+
* connections.
|
|
14116
|
+
*/
|
|
14117
|
+
allow_all_users?: boolean;
|
|
14118
|
+
|
|
14119
|
+
/**
|
|
14120
|
+
* Explicit allow list of user_ids who can use this SHARED connection.
|
|
14121
|
+
*/
|
|
14122
|
+
allowed_user_ids?: Array<string>;
|
|
14123
|
+
|
|
14124
|
+
/**
|
|
14125
|
+
* Explicit deny list. Wins on conflict with allow_all_users and allowed_user_ids.
|
|
14126
|
+
*/
|
|
14127
|
+
not_allowed_user_ids?: Array<string>;
|
|
14128
|
+
}
|
|
14049
14129
|
}
|
|
14050
14130
|
|
|
14051
14131
|
export interface UnionMember0 {
|
|
@@ -18459,9 +18539,9 @@ export namespace ConnectedAccountCreateParams {
|
|
|
18459
18539
|
|
|
18460
18540
|
export interface ConnectedAccountListParams {
|
|
18461
18541
|
/**
|
|
18462
|
-
* Filter by sharing model. Default (omitted) returns PRIVATE only —
|
|
18463
|
-
* accounts must be requested explicitly. Pass SHARED for only shared
|
|
18464
|
-
* ALL for PRIVATE + SHARED.
|
|
18542
|
+
* [Experimental] Filter by sharing model. Default (omitted) returns PRIVATE only —
|
|
18543
|
+
* shared accounts must be requested explicitly. Pass SHARED for only shared
|
|
18544
|
+
* accounts, or ALL for PRIVATE + SHARED.
|
|
18465
18545
|
*/
|
|
18466
18546
|
account_type?: 'PRIVATE' | 'SHARED' | 'ALL';
|
|
18467
18547
|
|
|
@@ -18514,14 +18594,6 @@ export interface ConnectedAccountListParams {
|
|
|
18514
18594
|
}
|
|
18515
18595
|
|
|
18516
18596
|
export interface ConnectedAccountPatchParams {
|
|
18517
|
-
/**
|
|
18518
|
-
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
18519
|
-
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
18520
|
-
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
18521
|
-
* deny-by-default — only the creator can use.
|
|
18522
|
-
*/
|
|
18523
|
-
acl_config_for_shared?: ConnectedAccountPatchParams.ACLConfigForShared;
|
|
18524
|
-
|
|
18525
18597
|
/**
|
|
18526
18598
|
* A human-readable alias for this connected account. Pass an empty string to clear
|
|
18527
18599
|
* the alias. Must be unique per entity and toolkit within the project.
|
|
@@ -18529,33 +18601,15 @@ export interface ConnectedAccountPatchParams {
|
|
|
18529
18601
|
alias?: string;
|
|
18530
18602
|
|
|
18531
18603
|
connection?: ConnectedAccountPatchParams.Connection;
|
|
18532
|
-
}
|
|
18533
18604
|
|
|
18534
|
-
export namespace ConnectedAccountPatchParams {
|
|
18535
18605
|
/**
|
|
18536
|
-
*
|
|
18537
|
-
*
|
|
18538
|
-
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
18539
|
-
* deny-by-default — only the creator can use.
|
|
18606
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
18607
|
+
* versions.
|
|
18540
18608
|
*/
|
|
18541
|
-
|
|
18542
|
-
|
|
18543
|
-
* Wildcard "any user_id in the project" allow toggle. Only valid on SHARED
|
|
18544
|
-
* connections.
|
|
18545
|
-
*/
|
|
18546
|
-
allow_all_users?: boolean;
|
|
18547
|
-
|
|
18548
|
-
/**
|
|
18549
|
-
* Explicit allow list of user_ids who can use this SHARED connection.
|
|
18550
|
-
*/
|
|
18551
|
-
allowed_user_ids?: Array<string>;
|
|
18552
|
-
|
|
18553
|
-
/**
|
|
18554
|
-
* Explicit deny list. Wins on conflict with allow_all_users and allowed_user_ids.
|
|
18555
|
-
*/
|
|
18556
|
-
not_allowed_user_ids?: Array<string>;
|
|
18557
|
-
}
|
|
18609
|
+
experimental?: ConnectedAccountPatchParams.Experimental;
|
|
18610
|
+
}
|
|
18558
18611
|
|
|
18612
|
+
export namespace ConnectedAccountPatchParams {
|
|
18559
18613
|
export interface Connection {
|
|
18560
18614
|
state: Connection.State;
|
|
18561
18615
|
}
|
|
@@ -18657,6 +18711,53 @@ export namespace ConnectedAccountPatchParams {
|
|
|
18657
18711
|
}
|
|
18658
18712
|
}
|
|
18659
18713
|
}
|
|
18714
|
+
|
|
18715
|
+
/**
|
|
18716
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
18717
|
+
* versions.
|
|
18718
|
+
*/
|
|
18719
|
+
export interface Experimental {
|
|
18720
|
+
/**
|
|
18721
|
+
* Mutate the sharing model. PRIVATE → SHARED promotes the existing connection
|
|
18722
|
+
* without re-auth; SHARED → PRIVATE revokes all non-creator access and clears the
|
|
18723
|
+
* stored ACL atomically. Omit to leave unchanged.
|
|
18724
|
+
*/
|
|
18725
|
+
account_type?: 'PRIVATE' | 'SHARED';
|
|
18726
|
+
|
|
18727
|
+
/**
|
|
18728
|
+
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
18729
|
+
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
18730
|
+
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
18731
|
+
* deny-by-default — only the creator can use.
|
|
18732
|
+
*/
|
|
18733
|
+
acl_config_for_shared?: Experimental.ACLConfigForShared;
|
|
18734
|
+
}
|
|
18735
|
+
|
|
18736
|
+
export namespace Experimental {
|
|
18737
|
+
/**
|
|
18738
|
+
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
18739
|
+
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
18740
|
+
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
18741
|
+
* deny-by-default — only the creator can use.
|
|
18742
|
+
*/
|
|
18743
|
+
export interface ACLConfigForShared {
|
|
18744
|
+
/**
|
|
18745
|
+
* Wildcard "any user_id in the project" allow toggle. Only valid on SHARED
|
|
18746
|
+
* connections.
|
|
18747
|
+
*/
|
|
18748
|
+
allow_all_users?: boolean;
|
|
18749
|
+
|
|
18750
|
+
/**
|
|
18751
|
+
* Explicit allow list of user_ids who can use this SHARED connection.
|
|
18752
|
+
*/
|
|
18753
|
+
allowed_user_ids?: Array<string>;
|
|
18754
|
+
|
|
18755
|
+
/**
|
|
18756
|
+
* Explicit deny list. Wins on conflict with allow_all_users and allowed_user_ids.
|
|
18757
|
+
*/
|
|
18758
|
+
not_allowed_user_ids?: Array<string>;
|
|
18759
|
+
}
|
|
18760
|
+
}
|
|
18660
18761
|
}
|
|
18661
18762
|
|
|
18662
18763
|
export interface ConnectedAccountRefreshParams {
|
package/src/resources/link.ts
CHANGED
|
@@ -18,13 +18,6 @@ export class Link extends APIResource {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export interface LinkCreateResponse {
|
|
21
|
-
/**
|
|
22
|
-
* The persisted sharing model for this connected account (PRIVATE | SHARED).
|
|
23
|
-
* Echoes back the value supplied at creation time so callers can confirm what
|
|
24
|
-
* landed without a follow-up GET.
|
|
25
|
-
*/
|
|
26
|
-
account_type: 'PRIVATE' | 'SHARED';
|
|
27
|
-
|
|
28
21
|
/**
|
|
29
22
|
* The connected account ID that was created
|
|
30
23
|
*/
|
|
@@ -44,34 +37,61 @@ export interface LinkCreateResponse {
|
|
|
44
37
|
* The redirect URI to send users to for authentication
|
|
45
38
|
*/
|
|
46
39
|
redirect_url: string;
|
|
47
|
-
}
|
|
48
40
|
|
|
49
|
-
export interface LinkCreateParams {
|
|
50
41
|
/**
|
|
51
|
-
*
|
|
42
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
43
|
+
* versions.
|
|
52
44
|
*/
|
|
53
|
-
|
|
45
|
+
experimental?: LinkCreateResponse.Experimental;
|
|
46
|
+
}
|
|
54
47
|
|
|
48
|
+
export namespace LinkCreateResponse {
|
|
55
49
|
/**
|
|
56
|
-
*
|
|
50
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
51
|
+
* versions.
|
|
57
52
|
*/
|
|
58
|
-
|
|
53
|
+
export interface Experimental {
|
|
54
|
+
/**
|
|
55
|
+
* Sharing model for this connected account. PRIVATE is usable only by the owning
|
|
56
|
+
* user_id. SHARED is reachable from a tool-router session only when explicitly
|
|
57
|
+
* pinned in the session config.
|
|
58
|
+
*/
|
|
59
|
+
account_type: 'PRIVATE' | 'SHARED';
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Access control for SHARED connections. Visible only to the connection creator
|
|
63
|
+
* and project/org API key callers; non-creator cookie callers receive the response
|
|
64
|
+
* without this block.
|
|
65
|
+
*/
|
|
66
|
+
acl_config_for_shared?: Experimental.ACLConfigForShared;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export namespace Experimental {
|
|
70
|
+
/**
|
|
71
|
+
* Access control for SHARED connections. Visible only to the connection creator
|
|
72
|
+
* and project/org API key callers; non-creator cookie callers receive the response
|
|
73
|
+
* without this block.
|
|
74
|
+
*/
|
|
75
|
+
export interface ACLConfigForShared {
|
|
76
|
+
allow_all_users: boolean;
|
|
77
|
+
|
|
78
|
+
allowed_user_ids: Array<string>;
|
|
79
|
+
|
|
80
|
+
not_allowed_user_ids: Array<string>;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
59
84
|
|
|
85
|
+
export interface LinkCreateParams {
|
|
60
86
|
/**
|
|
61
|
-
*
|
|
62
|
-
* the owning user_id. SHARED is reachable from a tool-router session ONLY when
|
|
63
|
-
* explicitly pinned in the session config — at most one SHARED connection per
|
|
64
|
-
* toolkit per session. Sessions never use a SHARED connection implicitly.
|
|
87
|
+
* The auth config id to create a link for
|
|
65
88
|
*/
|
|
66
|
-
|
|
89
|
+
auth_config_id: string;
|
|
67
90
|
|
|
68
91
|
/**
|
|
69
|
-
*
|
|
70
|
-
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
71
|
-
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
72
|
-
* deny-by-default — only the creator can use.
|
|
92
|
+
* The user id to create a link for
|
|
73
93
|
*/
|
|
74
|
-
|
|
94
|
+
user_id: string;
|
|
75
95
|
|
|
76
96
|
/**
|
|
77
97
|
* A human-readable alias for this connected account. Must be unique per entity and
|
|
@@ -163,33 +183,15 @@ export interface LinkCreateParams {
|
|
|
163
183
|
| LinkCreateParams.UnionMember72
|
|
164
184
|
| LinkCreateParams.UnionMember73
|
|
165
185
|
| LinkCreateParams.UnionMember74;
|
|
166
|
-
}
|
|
167
186
|
|
|
168
|
-
export namespace LinkCreateParams {
|
|
169
187
|
/**
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
173
|
-
* deny-by-default — only the creator can use.
|
|
188
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
189
|
+
* versions.
|
|
174
190
|
*/
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
* Wildcard "any user_id in the project" allow toggle. Only valid on SHARED
|
|
178
|
-
* connections.
|
|
179
|
-
*/
|
|
180
|
-
allow_all_users?: boolean;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Explicit allow list of user_ids who can use this SHARED connection.
|
|
184
|
-
*/
|
|
185
|
-
allowed_user_ids?: Array<string>;
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* Explicit deny list. Wins on conflict with allow_all_users and allowed_user_ids.
|
|
189
|
-
*/
|
|
190
|
-
not_allowed_user_ids?: Array<string>;
|
|
191
|
-
}
|
|
191
|
+
experimental?: LinkCreateParams.Experimental;
|
|
192
|
+
}
|
|
192
193
|
|
|
194
|
+
export namespace LinkCreateParams {
|
|
193
195
|
export interface UnionMember0 {
|
|
194
196
|
account_id?: string;
|
|
195
197
|
|
|
@@ -4259,6 +4261,54 @@ export namespace LinkCreateParams {
|
|
|
4259
4261
|
|
|
4260
4262
|
[k: string]: unknown;
|
|
4261
4263
|
}
|
|
4264
|
+
|
|
4265
|
+
/**
|
|
4266
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
4267
|
+
* versions.
|
|
4268
|
+
*/
|
|
4269
|
+
export interface Experimental {
|
|
4270
|
+
/**
|
|
4271
|
+
* Sharing model for this connected account. PRIVATE (default) is usable only by
|
|
4272
|
+
* the owning user_id. SHARED is reachable from a tool-router session ONLY when
|
|
4273
|
+
* explicitly pinned in the session config — at most one SHARED connection per
|
|
4274
|
+
* toolkit per session. Sessions never use a SHARED connection implicitly.
|
|
4275
|
+
*/
|
|
4276
|
+
account_type?: 'PRIVATE' | 'SHARED';
|
|
4277
|
+
|
|
4278
|
+
/**
|
|
4279
|
+
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
4280
|
+
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
4281
|
+
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
4282
|
+
* deny-by-default — only the creator can use.
|
|
4283
|
+
*/
|
|
4284
|
+
acl_config_for_shared?: Experimental.ACLConfigForShared;
|
|
4285
|
+
}
|
|
4286
|
+
|
|
4287
|
+
export namespace Experimental {
|
|
4288
|
+
/**
|
|
4289
|
+
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
4290
|
+
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
4291
|
+
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
4292
|
+
* deny-by-default — only the creator can use.
|
|
4293
|
+
*/
|
|
4294
|
+
export interface ACLConfigForShared {
|
|
4295
|
+
/**
|
|
4296
|
+
* Wildcard "any user_id in the project" allow toggle. Only valid on SHARED
|
|
4297
|
+
* connections.
|
|
4298
|
+
*/
|
|
4299
|
+
allow_all_users?: boolean;
|
|
4300
|
+
|
|
4301
|
+
/**
|
|
4302
|
+
* Explicit allow list of user_ids who can use this SHARED connection.
|
|
4303
|
+
*/
|
|
4304
|
+
allowed_user_ids?: Array<string>;
|
|
4305
|
+
|
|
4306
|
+
/**
|
|
4307
|
+
* Explicit deny list. Wins on conflict with allow_all_users and allowed_user_ids.
|
|
4308
|
+
*/
|
|
4309
|
+
not_allowed_user_ids?: Array<string>;
|
|
4310
|
+
}
|
|
4311
|
+
}
|
|
4262
4312
|
}
|
|
4263
4313
|
|
|
4264
4314
|
export declare namespace Link {
|