@composio/core 0.9.0 → 0.10.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/{CustomTool-Dj4fNvsu.cjs → CustomTool-CQ_YjABZ.cjs} +74 -1
- package/dist/{CustomTool-DOE7hgw6.mjs → CustomTool-D7-1S2at.mjs} +57 -2
- package/dist/{CustomTool-BNxqr6BI.d.mts → CustomTool-DJUGNOer.d.mts} +1 -1
- package/dist/{CustomTool-87USJ2u0.d.cts → CustomTool-aber890o.d.cts} +1 -1
- package/dist/{composio-DTntXzL-.d.cts → composio-CSMCZZgj.d.cts} +87 -8
- package/dist/{composio-BJW2NaoA.d.mts → composio-DRl6WCI9.d.mts} +87 -8
- package/dist/{customTool.types-Bd8ylotX.d.cts → customTool.types-BzEWHa0w.d.cts} +256 -26
- package/dist/{customTool.types-B3HG185y.d.mts → customTool.types-CMOMgxoM.d.mts} +256 -26
- package/dist/experimental/index.cjs +1 -1
- package/dist/experimental/index.d.cts +2 -2
- package/dist/experimental/index.d.mts +2 -2
- package/dist/experimental/index.mjs +1 -1
- package/dist/index.cjs +319 -27
- package/dist/index.d.cts +50 -4
- package/dist/index.d.mts +50 -4
- package/dist/index.mjs +309 -28
- package/dist/{types-BClz5lKM.d.mts → types-BTOPdg4d.d.mts} +1 -1
- package/dist/{types-jsOgjrWN.d.cts → types-DE7O6Z6S.d.cts} +1 -1
- package/dist/utils/config-defaults/ConfigDefaults.node.d.cts +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +3 -3
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.cts +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +3 -3
- package/package.json +2 -2
|
@@ -21,6 +21,128 @@ declare const ConnectedAccountStatuses: {
|
|
|
21
21
|
declare const ConnectedAccountStatusSchema: z.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>;
|
|
22
22
|
type ConnectedAccountStatus = (typeof ConnectedAccountStatuses)[keyof typeof ConnectedAccountStatuses];
|
|
23
23
|
type ConnectedAccountStatusEnum = z.infer<typeof ConnectedAccountStatusSchema>;
|
|
24
|
+
/**
|
|
25
|
+
* Sharing model for a connected account.
|
|
26
|
+
*
|
|
27
|
+
* - `PRIVATE` (default): only the owning `userId` can use the connection.
|
|
28
|
+
* - `SHARED`: can be used by other `userId`s, but only when the connection
|
|
29
|
+
* is explicitly pinned in a tool-router session's config and only when
|
|
30
|
+
* the requesting `userId` passes the connection's ACL (see
|
|
31
|
+
* `allowAllUsers` / `allowedUserIds` / `notAllowedUserIds`).
|
|
32
|
+
*/
|
|
33
|
+
declare const ConnectedAccountTypes: {
|
|
34
|
+
readonly PRIVATE: "PRIVATE";
|
|
35
|
+
readonly SHARED: "SHARED";
|
|
36
|
+
};
|
|
37
|
+
declare const ConnectedAccountTypeSchema: z.ZodEnum<["PRIVATE", "SHARED"]>;
|
|
38
|
+
type ConnectedAccountType = (typeof ConnectedAccountTypes)[keyof typeof ConnectedAccountTypes];
|
|
39
|
+
declare const ConnectedAccountAclConfigSchema: z.ZodObject<{
|
|
40
|
+
allowAllUsers: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
allowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
42
|
+
notAllowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
allowAllUsers?: boolean | undefined;
|
|
45
|
+
allowedUserIds?: string[] | undefined;
|
|
46
|
+
notAllowedUserIds?: string[] | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
allowAllUsers?: boolean | undefined;
|
|
49
|
+
allowedUserIds?: string[] | undefined;
|
|
50
|
+
notAllowedUserIds?: string[] | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
type ConnectedAccountAclConfig = z.infer<typeof ConnectedAccountAclConfigSchema>;
|
|
53
|
+
/**
|
|
54
|
+
* Resolved ACL as it appears on responses. All three fields are populated
|
|
55
|
+
* when the field is visible; the field itself is `undefined` for callers
|
|
56
|
+
* not authorised to see it.
|
|
57
|
+
*/
|
|
58
|
+
declare const ConnectedAccountAclConfigResponseSchema: z.ZodObject<{
|
|
59
|
+
allowAllUsers: z.ZodBoolean;
|
|
60
|
+
allowedUserIds: z.ZodArray<z.ZodString, "many">;
|
|
61
|
+
notAllowedUserIds: z.ZodArray<z.ZodString, "many">;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
allowAllUsers: boolean;
|
|
64
|
+
allowedUserIds: string[];
|
|
65
|
+
notAllowedUserIds: string[];
|
|
66
|
+
}, {
|
|
67
|
+
allowAllUsers: boolean;
|
|
68
|
+
allowedUserIds: string[];
|
|
69
|
+
notAllowedUserIds: string[];
|
|
70
|
+
}>;
|
|
71
|
+
type ConnectedAccountAclConfigResponse = z.infer<typeof ConnectedAccountAclConfigResponseSchema>;
|
|
72
|
+
/**
|
|
73
|
+
* Experimental options for SHARED connections, passed at create / link time.
|
|
74
|
+
*
|
|
75
|
+
* **Experimental — shape may change in future releases.** Wrapped under a
|
|
76
|
+
* dedicated `experimental` block on every input and response so the
|
|
77
|
+
* experimental status is visible at every call site.
|
|
78
|
+
*/
|
|
79
|
+
declare const ConnectedAccountExperimentalSchema: z.ZodObject<{
|
|
80
|
+
accountType: z.ZodOptional<z.ZodEnum<["PRIVATE", "SHARED"]>>;
|
|
81
|
+
aclConfigForShared: z.ZodOptional<z.ZodObject<{
|
|
82
|
+
allowAllUsers: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
+
allowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
84
|
+
notAllowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
allowAllUsers?: boolean | undefined;
|
|
87
|
+
allowedUserIds?: string[] | undefined;
|
|
88
|
+
notAllowedUserIds?: string[] | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
allowAllUsers?: boolean | undefined;
|
|
91
|
+
allowedUserIds?: string[] | undefined;
|
|
92
|
+
notAllowedUserIds?: string[] | undefined;
|
|
93
|
+
}>>;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
accountType?: "PRIVATE" | "SHARED" | undefined;
|
|
96
|
+
aclConfigForShared?: {
|
|
97
|
+
allowAllUsers?: boolean | undefined;
|
|
98
|
+
allowedUserIds?: string[] | undefined;
|
|
99
|
+
notAllowedUserIds?: string[] | undefined;
|
|
100
|
+
} | undefined;
|
|
101
|
+
}, {
|
|
102
|
+
accountType?: "PRIVATE" | "SHARED" | undefined;
|
|
103
|
+
aclConfigForShared?: {
|
|
104
|
+
allowAllUsers?: boolean | undefined;
|
|
105
|
+
allowedUserIds?: string[] | undefined;
|
|
106
|
+
notAllowedUserIds?: string[] | undefined;
|
|
107
|
+
} | undefined;
|
|
108
|
+
}>;
|
|
109
|
+
type ConnectedAccountExperimental = z.infer<typeof ConnectedAccountExperimentalSchema>;
|
|
110
|
+
/**
|
|
111
|
+
* Resolved experimental block on retrieve / list responses. `accountType`
|
|
112
|
+
* is always present when the block is; `aclConfigForShared` is only
|
|
113
|
+
* present when the caller is authorised to see the ACL.
|
|
114
|
+
*/
|
|
115
|
+
declare const ConnectedAccountExperimentalResponseSchema: z.ZodObject<{
|
|
116
|
+
accountType: z.ZodOptional<z.ZodEnum<["PRIVATE", "SHARED"]>>;
|
|
117
|
+
aclConfigForShared: z.ZodOptional<z.ZodObject<{
|
|
118
|
+
allowAllUsers: z.ZodBoolean;
|
|
119
|
+
allowedUserIds: z.ZodArray<z.ZodString, "many">;
|
|
120
|
+
notAllowedUserIds: z.ZodArray<z.ZodString, "many">;
|
|
121
|
+
}, "strip", z.ZodTypeAny, {
|
|
122
|
+
allowAllUsers: boolean;
|
|
123
|
+
allowedUserIds: string[];
|
|
124
|
+
notAllowedUserIds: string[];
|
|
125
|
+
}, {
|
|
126
|
+
allowAllUsers: boolean;
|
|
127
|
+
allowedUserIds: string[];
|
|
128
|
+
notAllowedUserIds: string[];
|
|
129
|
+
}>>;
|
|
130
|
+
}, "strip", z.ZodTypeAny, {
|
|
131
|
+
accountType?: "PRIVATE" | "SHARED" | undefined;
|
|
132
|
+
aclConfigForShared?: {
|
|
133
|
+
allowAllUsers: boolean;
|
|
134
|
+
allowedUserIds: string[];
|
|
135
|
+
notAllowedUserIds: string[];
|
|
136
|
+
} | undefined;
|
|
137
|
+
}, {
|
|
138
|
+
accountType?: "PRIVATE" | "SHARED" | undefined;
|
|
139
|
+
aclConfigForShared?: {
|
|
140
|
+
allowAllUsers: boolean;
|
|
141
|
+
allowedUserIds: string[];
|
|
142
|
+
notAllowedUserIds: string[];
|
|
143
|
+
} | undefined;
|
|
144
|
+
}>;
|
|
145
|
+
type ConnectedAccountExperimentalResponse = z.infer<typeof ConnectedAccountExperimentalResponseSchema>;
|
|
24
146
|
declare const CreateConnectedAccountParamsSchema: z.ZodObject<{
|
|
25
147
|
authConfig: z.ZodObject<{
|
|
26
148
|
id: z.ZodString;
|
|
@@ -135,6 +257,7 @@ declare const ConnectedAccountRetrieveResponseSchema: z.ZodType<{
|
|
|
135
257
|
isDisabled: boolean;
|
|
136
258
|
createdAt: string;
|
|
137
259
|
updatedAt: string;
|
|
260
|
+
experimental?: ConnectedAccountExperimentalResponse;
|
|
138
261
|
}>;
|
|
139
262
|
type ConnectedAccountRetrieveResponse = z.infer<typeof ConnectedAccountRetrieveResponseSchema>;
|
|
140
263
|
/**
|
|
@@ -149,10 +272,18 @@ declare const ConnectedAccountListParamsSchema: z.ZodObject<{
|
|
|
149
272
|
statuses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>, "many">>>;
|
|
150
273
|
toolkitSlugs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
151
274
|
userIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
275
|
+
/**
|
|
276
|
+
* Experimental — shape may change in future releases. Filter by sharing
|
|
277
|
+
* model. Default (omitted) returns PRIVATE only. Pass `'SHARED'` for only
|
|
278
|
+
* shared accounts, or `'ALL'` for `PRIVATE` + `SHARED`. Kept flat because
|
|
279
|
+
* the wire is a query string and can't carry nested objects.
|
|
280
|
+
*/
|
|
281
|
+
accountType: z.ZodOptional<z.ZodEnum<["PRIVATE", "SHARED", "ALL"]>>;
|
|
152
282
|
}, "strip", z.ZodTypeAny, {
|
|
153
283
|
limit?: number | null | undefined;
|
|
154
284
|
authConfigIds?: string[] | null | undefined;
|
|
155
285
|
cursor?: string | null | undefined;
|
|
286
|
+
accountType?: "PRIVATE" | "SHARED" | "ALL" | undefined;
|
|
156
287
|
orderBy?: "created_at" | "updated_at" | undefined;
|
|
157
288
|
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED")[] | null | undefined;
|
|
158
289
|
toolkitSlugs?: string[] | null | undefined;
|
|
@@ -161,6 +292,7 @@ declare const ConnectedAccountListParamsSchema: z.ZodObject<{
|
|
|
161
292
|
limit?: number | null | undefined;
|
|
162
293
|
authConfigIds?: string[] | null | undefined;
|
|
163
294
|
cursor?: string | null | undefined;
|
|
295
|
+
accountType?: "PRIVATE" | "SHARED" | "ALL" | undefined;
|
|
164
296
|
orderBy?: "created_at" | "updated_at" | undefined;
|
|
165
297
|
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED")[] | null | undefined;
|
|
166
298
|
toolkitSlugs?: string[] | null | undefined;
|
|
@@ -187,6 +319,7 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
|
187
319
|
isDisabled: boolean;
|
|
188
320
|
createdAt: string;
|
|
189
321
|
updatedAt: string;
|
|
322
|
+
experimental?: ConnectedAccountExperimentalResponse;
|
|
190
323
|
}, z.ZodTypeDef, {
|
|
191
324
|
id: string;
|
|
192
325
|
authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
@@ -206,6 +339,7 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
|
206
339
|
isDisabled: boolean;
|
|
207
340
|
createdAt: string;
|
|
208
341
|
updatedAt: string;
|
|
342
|
+
experimental?: ConnectedAccountExperimentalResponse;
|
|
209
343
|
}>, "many">;
|
|
210
344
|
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
211
345
|
totalPages: z.ZodNumber;
|
|
@@ -229,6 +363,7 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
|
229
363
|
isDisabled: boolean;
|
|
230
364
|
createdAt: string;
|
|
231
365
|
updatedAt: string;
|
|
366
|
+
experimental?: ConnectedAccountExperimentalResponse;
|
|
232
367
|
}[];
|
|
233
368
|
totalPages: number;
|
|
234
369
|
nextCursor?: string | null | undefined;
|
|
@@ -252,6 +387,7 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
|
252
387
|
isDisabled: boolean;
|
|
253
388
|
createdAt: string;
|
|
254
389
|
updatedAt: string;
|
|
390
|
+
experimental?: ConnectedAccountExperimentalResponse;
|
|
255
391
|
}[];
|
|
256
392
|
totalPages: number;
|
|
257
393
|
nextCursor?: string | null | undefined;
|
|
@@ -280,14 +416,74 @@ declare const CreateConnectedAccountLinkOptionsSchema: z.ZodObject<{
|
|
|
280
416
|
* `multiAccount` config to disambiguate at execution time.
|
|
281
417
|
*/
|
|
282
418
|
allowMultiple: z.ZodOptional<z.ZodBoolean>;
|
|
419
|
+
/**
|
|
420
|
+
* Experimental options for SHARED connections. Pass `accountType: 'SHARED'`
|
|
421
|
+
* (and optionally `aclConfigForShared`) to create a connection that can
|
|
422
|
+
* be reached by other `userId`s when pinned in a session.
|
|
423
|
+
*
|
|
424
|
+
* Experimental — shape may change in future releases.
|
|
425
|
+
*
|
|
426
|
+
* `aclConfigForShared` is only valid when `accountType === 'SHARED'`;
|
|
427
|
+
* raises `ComposioAclOnlyForSharedError` on a PRIVATE connection. Omit
|
|
428
|
+
* the inner block (or pass `{}`) to keep the deny-by-default state: only
|
|
429
|
+
* the creator can use the connection. Grant access by setting
|
|
430
|
+
* `allowAllUsers: true` or listing user IDs in `allowedUserIds`.
|
|
431
|
+
* `notAllowedUserIds` always wins over allow.
|
|
432
|
+
*/
|
|
433
|
+
experimental: z.ZodOptional<z.ZodObject<{
|
|
434
|
+
accountType: z.ZodOptional<z.ZodEnum<["PRIVATE", "SHARED"]>>;
|
|
435
|
+
aclConfigForShared: z.ZodOptional<z.ZodObject<{
|
|
436
|
+
allowAllUsers: z.ZodOptional<z.ZodBoolean>;
|
|
437
|
+
allowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
438
|
+
notAllowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
439
|
+
}, "strip", z.ZodTypeAny, {
|
|
440
|
+
allowAllUsers?: boolean | undefined;
|
|
441
|
+
allowedUserIds?: string[] | undefined;
|
|
442
|
+
notAllowedUserIds?: string[] | undefined;
|
|
443
|
+
}, {
|
|
444
|
+
allowAllUsers?: boolean | undefined;
|
|
445
|
+
allowedUserIds?: string[] | undefined;
|
|
446
|
+
notAllowedUserIds?: string[] | undefined;
|
|
447
|
+
}>>;
|
|
448
|
+
}, "strip", z.ZodTypeAny, {
|
|
449
|
+
accountType?: "PRIVATE" | "SHARED" | undefined;
|
|
450
|
+
aclConfigForShared?: {
|
|
451
|
+
allowAllUsers?: boolean | undefined;
|
|
452
|
+
allowedUserIds?: string[] | undefined;
|
|
453
|
+
notAllowedUserIds?: string[] | undefined;
|
|
454
|
+
} | undefined;
|
|
455
|
+
}, {
|
|
456
|
+
accountType?: "PRIVATE" | "SHARED" | undefined;
|
|
457
|
+
aclConfigForShared?: {
|
|
458
|
+
allowAllUsers?: boolean | undefined;
|
|
459
|
+
allowedUserIds?: string[] | undefined;
|
|
460
|
+
notAllowedUserIds?: string[] | undefined;
|
|
461
|
+
} | undefined;
|
|
462
|
+
}>>;
|
|
283
463
|
}, "strip", z.ZodTypeAny, {
|
|
284
464
|
callbackUrl?: string | undefined;
|
|
285
465
|
alias?: string | undefined;
|
|
286
466
|
allowMultiple?: boolean | undefined;
|
|
467
|
+
experimental?: {
|
|
468
|
+
accountType?: "PRIVATE" | "SHARED" | undefined;
|
|
469
|
+
aclConfigForShared?: {
|
|
470
|
+
allowAllUsers?: boolean | undefined;
|
|
471
|
+
allowedUserIds?: string[] | undefined;
|
|
472
|
+
notAllowedUserIds?: string[] | undefined;
|
|
473
|
+
} | undefined;
|
|
474
|
+
} | undefined;
|
|
287
475
|
}, {
|
|
288
476
|
callbackUrl?: string | undefined;
|
|
289
477
|
alias?: string | undefined;
|
|
290
478
|
allowMultiple?: boolean | undefined;
|
|
479
|
+
experimental?: {
|
|
480
|
+
accountType?: "PRIVATE" | "SHARED" | undefined;
|
|
481
|
+
aclConfigForShared?: {
|
|
482
|
+
allowAllUsers?: boolean | undefined;
|
|
483
|
+
allowedUserIds?: string[] | undefined;
|
|
484
|
+
notAllowedUserIds?: string[] | undefined;
|
|
485
|
+
} | undefined;
|
|
486
|
+
} | undefined;
|
|
291
487
|
}>;
|
|
292
488
|
type CreateConnectedAccountLinkOptions = z.infer<typeof CreateConnectedAccountLinkOptionsSchema>;
|
|
293
489
|
declare const CreateConnectedAccountLinkResponseSchema: z.ZodObject<{
|
|
@@ -316,6 +512,40 @@ declare const UpdateConnectedAccountParamsSchema: z.ZodObject<{
|
|
|
316
512
|
}, {
|
|
317
513
|
enabled: boolean;
|
|
318
514
|
}>;
|
|
515
|
+
/**
|
|
516
|
+
* Params for `composio.connectedAccounts.updateAcl()`. Mirrors the inner
|
|
517
|
+
* shape of the wire's `acl_config_for_shared` block — the SDK adds the
|
|
518
|
+
* outer nesting at the boundary, so callers pass the three fields flat.
|
|
519
|
+
*
|
|
520
|
+
* PATCH-style semantics — omit a field to leave it unchanged; pass an
|
|
521
|
+
* empty array to clear an allow/deny list. Raises
|
|
522
|
+
* `ComposioAclOnlyForSharedError` on a PRIVATE connection.
|
|
523
|
+
*
|
|
524
|
+
* Each field is optional, but at least one must be provided — passing an
|
|
525
|
+
* empty object is rejected as a no-op.
|
|
526
|
+
*/
|
|
527
|
+
declare const UpdateConnectedAccountAclParamsSchema: z.ZodEffects<z.ZodObject<{
|
|
528
|
+
allowAllUsers: z.ZodOptional<z.ZodBoolean>;
|
|
529
|
+
allowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
530
|
+
notAllowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
531
|
+
}, "strip", z.ZodTypeAny, {
|
|
532
|
+
allowAllUsers?: boolean | undefined;
|
|
533
|
+
allowedUserIds?: string[] | undefined;
|
|
534
|
+
notAllowedUserIds?: string[] | undefined;
|
|
535
|
+
}, {
|
|
536
|
+
allowAllUsers?: boolean | undefined;
|
|
537
|
+
allowedUserIds?: string[] | undefined;
|
|
538
|
+
notAllowedUserIds?: string[] | undefined;
|
|
539
|
+
}>, {
|
|
540
|
+
allowAllUsers?: boolean | undefined;
|
|
541
|
+
allowedUserIds?: string[] | undefined;
|
|
542
|
+
notAllowedUserIds?: string[] | undefined;
|
|
543
|
+
}, {
|
|
544
|
+
allowAllUsers?: boolean | undefined;
|
|
545
|
+
allowedUserIds?: string[] | undefined;
|
|
546
|
+
notAllowedUserIds?: string[] | undefined;
|
|
547
|
+
}>;
|
|
548
|
+
type UpdateConnectedAccountAclParams = z.infer<typeof UpdateConnectedAccountAclParamsSchema>;
|
|
319
549
|
//#endregion
|
|
320
550
|
//#region src/types/connectionRequest.types.d.ts
|
|
321
551
|
interface ConnectionRequestState {
|
|
@@ -1008,6 +1238,13 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1008
1238
|
preload?: {
|
|
1009
1239
|
tools?: string[] | "all" | undefined;
|
|
1010
1240
|
} | undefined;
|
|
1241
|
+
experimental?: {
|
|
1242
|
+
assistivePrompt?: {
|
|
1243
|
+
userTimezone?: string | undefined;
|
|
1244
|
+
} | undefined;
|
|
1245
|
+
customTools?: CustomTool[] | undefined;
|
|
1246
|
+
customToolkits?: CustomToolkit[] | undefined;
|
|
1247
|
+
} | undefined;
|
|
1011
1248
|
sessionPreset?: "direct_tools" | undefined;
|
|
1012
1249
|
authConfigs?: Record<string, string> | undefined;
|
|
1013
1250
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
@@ -1027,13 +1264,6 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1027
1264
|
maxAccountsPerToolkit?: number | undefined;
|
|
1028
1265
|
requireExplicitSelection?: boolean | undefined;
|
|
1029
1266
|
} | undefined;
|
|
1030
|
-
experimental?: {
|
|
1031
|
-
assistivePrompt?: {
|
|
1032
|
-
userTimezone?: string | undefined;
|
|
1033
|
-
} | undefined;
|
|
1034
|
-
customTools?: CustomTool[] | undefined;
|
|
1035
|
-
customToolkits?: CustomToolkit[] | undefined;
|
|
1036
|
-
} | undefined;
|
|
1037
1267
|
}, {
|
|
1038
1268
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1039
1269
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
@@ -1057,6 +1287,13 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1057
1287
|
preload?: {
|
|
1058
1288
|
tools?: string[] | "all" | undefined;
|
|
1059
1289
|
} | undefined;
|
|
1290
|
+
experimental?: {
|
|
1291
|
+
assistivePrompt?: {
|
|
1292
|
+
userTimezone?: string | undefined;
|
|
1293
|
+
} | undefined;
|
|
1294
|
+
customTools?: CustomTool[] | undefined;
|
|
1295
|
+
customToolkits?: CustomToolkit[] | undefined;
|
|
1296
|
+
} | undefined;
|
|
1060
1297
|
sessionPreset?: "direct_tools" | undefined;
|
|
1061
1298
|
authConfigs?: Record<string, string> | undefined;
|
|
1062
1299
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
@@ -1076,13 +1313,6 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1076
1313
|
maxAccountsPerToolkit?: number | undefined;
|
|
1077
1314
|
requireExplicitSelection?: boolean | undefined;
|
|
1078
1315
|
} | undefined;
|
|
1079
|
-
experimental?: {
|
|
1080
|
-
assistivePrompt?: {
|
|
1081
|
-
userTimezone?: string | undefined;
|
|
1082
|
-
} | undefined;
|
|
1083
|
-
customTools?: CustomTool[] | undefined;
|
|
1084
|
-
customToolkits?: CustomToolkit[] | undefined;
|
|
1085
|
-
} | undefined;
|
|
1086
1316
|
}>, {
|
|
1087
1317
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1088
1318
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
@@ -1106,6 +1336,13 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1106
1336
|
preload?: {
|
|
1107
1337
|
tools?: string[] | "all" | undefined;
|
|
1108
1338
|
} | undefined;
|
|
1339
|
+
experimental?: {
|
|
1340
|
+
assistivePrompt?: {
|
|
1341
|
+
userTimezone?: string | undefined;
|
|
1342
|
+
} | undefined;
|
|
1343
|
+
customTools?: CustomTool[] | undefined;
|
|
1344
|
+
customToolkits?: CustomToolkit[] | undefined;
|
|
1345
|
+
} | undefined;
|
|
1109
1346
|
sessionPreset?: "direct_tools" | undefined;
|
|
1110
1347
|
authConfigs?: Record<string, string> | undefined;
|
|
1111
1348
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
@@ -1125,13 +1362,6 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1125
1362
|
maxAccountsPerToolkit?: number | undefined;
|
|
1126
1363
|
requireExplicitSelection?: boolean | undefined;
|
|
1127
1364
|
} | undefined;
|
|
1128
|
-
experimental?: {
|
|
1129
|
-
assistivePrompt?: {
|
|
1130
|
-
userTimezone?: string | undefined;
|
|
1131
|
-
} | undefined;
|
|
1132
|
-
customTools?: CustomTool[] | undefined;
|
|
1133
|
-
customToolkits?: CustomToolkit[] | undefined;
|
|
1134
|
-
} | undefined;
|
|
1135
1365
|
}, unknown>;
|
|
1136
1366
|
/**
|
|
1137
1367
|
* The config for the tool router session.
|
|
@@ -1571,12 +1801,12 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1571
1801
|
instructions: z$1.ZodString;
|
|
1572
1802
|
}, "strip", z$1.ZodTypeAny, {
|
|
1573
1803
|
id: string;
|
|
1574
|
-
instructions: string;
|
|
1575
1804
|
generateId: boolean;
|
|
1805
|
+
instructions: string;
|
|
1576
1806
|
}, {
|
|
1577
1807
|
id: string;
|
|
1578
|
-
instructions: string;
|
|
1579
1808
|
generateId: boolean;
|
|
1809
|
+
instructions: string;
|
|
1580
1810
|
}>;
|
|
1581
1811
|
timeInfo: z$1.ZodObject<{
|
|
1582
1812
|
currentTimeUtc: z$1.ZodString;
|
|
@@ -1638,8 +1868,8 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1638
1868
|
nextStepsGuidance: string[];
|
|
1639
1869
|
session: {
|
|
1640
1870
|
id: string;
|
|
1641
|
-
instructions: string;
|
|
1642
1871
|
generateId: boolean;
|
|
1872
|
+
instructions: string;
|
|
1643
1873
|
};
|
|
1644
1874
|
timeInfo: {
|
|
1645
1875
|
message: string;
|
|
@@ -1693,8 +1923,8 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1693
1923
|
nextStepsGuidance: string[];
|
|
1694
1924
|
session: {
|
|
1695
1925
|
id: string;
|
|
1696
|
-
instructions: string;
|
|
1697
1926
|
generateId: boolean;
|
|
1927
|
+
instructions: string;
|
|
1698
1928
|
};
|
|
1699
1929
|
timeInfo: {
|
|
1700
1930
|
message: string;
|
|
@@ -2280,4 +2510,4 @@ type CustomToolResponse = SessionCreateResponse.Experimental.CustomTool;
|
|
|
2280
2510
|
/** Custom toolkit as returned in the session create response (has prefixed slugs + original_slugs). */
|
|
2281
2511
|
type CustomToolkitResponse = SessionCreateResponse.Experimental.CustomToolkit;
|
|
2282
2512
|
//#endregion
|
|
2283
|
-
export { ToolRouterSessionProxyExecuteFn as $,
|
|
2513
|
+
export { ToolRouterSessionProxyExecuteFn as $, ConnectedAccountListResponseItem as $t, SandboxSizeSchema as A, ToolRouterSessionFilesMountDeleteOptions as At, ToolRouterConfigTools as B, ConnectedAccountAclConfig as Bt, InputParamsSchema as C, UpdateConnectedAccountAclParams as Cn, RemoteFile as Ct, MCPServerType as D, FileListResponseSchema as Dt, SessionContext as E, UpdateConnectedAccountParamsSchema as En, FileListResponse as Et, SessionProxyExecuteParamsSchema as F, ToolRouterSessionFilesMountListOptionsSchema as Ft, ToolRouterMCPServerConfigSchema as G, ConnectedAccountAuthConfigSchema as Gt, ToolRouterCreateSessionConfig as H, ConnectedAccountAclConfigResponseSchema as Ht, ToolRouterAuthorizeFn as I, ToolRouterSessionFilesMountUploadOptions as It, ToolRouterSessionExecuteOptions as J, ConnectedAccountExperimentalResponseSchema as Jt, ToolRouterManageConnectionsConfigSchema as K, ConnectedAccountExperimental as Kt, ToolRouterConfigManageConnectionsSchema as L, ToolRouterSessionFilesMountUploadOptionsSchema as Lt, SessionExperimental as M, ToolRouterSessionFilesMountDownloadOptions as Mt, SessionPreset as N, ToolRouterSessionFilesMountDownloadOptionsSchema as Nt, MCPServerTypeSchema as O, RemoteFileData as Ot, SessionProxyExecuteParams as P, ToolRouterSessionFilesMountListOptions as Pt, ToolRouterSessionPreloadConfig as Q, ConnectedAccountListResponse as Qt, ToolRouterConfigTags as R, ConnectionRequest as Rt, InlineCustomToolsWirePayload as S, DefaultCreateConnectedAccountParamsSchema as Sn, ToolkitConnectionsDetailsSchema as St, RegisteredCustomToolkit as T, UpdateConnectedAccountParams as Tn, FileDeleteResponseSchema as Tt, ToolRouterCreateSessionConfigSchema as U, ConnectedAccountAclConfigSchema as Ut, ToolRouterConfigToolsSchema as V, ConnectedAccountAclConfigResponse as Vt, ToolRouterMCPServerConfig as W, ConnectedAccountAuthConfig as Wt, ToolRouterSessionExecuteResponseSchema as X, ConnectedAccountListParams as Xt, ToolRouterSessionExecuteResponse as Y, ConnectedAccountExperimentalSchema as Yt, ToolRouterSessionMetadata as Z, ConnectedAccountListParamsSchema as Zt, CustomToolkitResponse as _, CreateConnectedAccountOptionsSchema as _n, ToolRouterUpdateSessionConfig as _t, CustomTool as a, ConnectedAccountStatus as an, ToolRouterSessionWarning as at, CustomToolsMapEntry as b, CreateConnectedAccountResponse as bn, ToolkitConnectionStateSchema as bt, CustomToolInputParameter as c, ConnectedAccountStatuses as cn, ToolRouterToolkitsDisabledConfigSchema as ct, CustomToolRegistryItem as d, ConnectedAccountTypes as dn, ToolRouterToolkitsOptions as dt, ConnectedAccountListResponseSchema as en, ToolRouterSessionProxyExecuteResponse as et, CustomToolResponse as f, CreateConnectedAccountLinkOptions as fn, ToolRouterToolkitsOptionsSchema as ft, CustomToolkitDefinition as g, CreateConnectedAccountOptions as gn, ToolRouterToolsParamSchema as gt, CustomToolkit as h, CreateConnectedAccountLinkResponseSchema as hn, ToolRouterToolsParam as ht, CreateCustomToolkitParams as i, ConnectedAccountRetrieveResponseSchema as in, ToolRouterSessionUpdateFn as it, Session as j, ToolRouterSessionFilesMountDeleteOptionsSchema as jt, SandboxSize as k, RemoteFileDataSchema as kt, CustomToolOptions as l, ConnectedAccountType as ln, ToolRouterToolkitsEnabledConfigSchema as lt, CustomToolWireDefinition as m, CreateConnectedAccountLinkResponse as mn, ToolRouterToolsFn as mt, CreateCustomToolParams as n, ConnectedAccountRefreshOptionsSchema as nn, ToolRouterSessionSearchResponse as nt, CustomToolDefinition as o, ConnectedAccountStatusEnum as on, ToolRouterTagsEnableDisableSchema as ot, CustomToolSlugSchema as p, CreateConnectedAccountLinkOptionsSchema as pn, ToolRouterToolkitsParamSchema as pt, ToolRouterSessionExecuteFn as q, ConnectedAccountExperimentalResponse as qt, CreateCustomToolkitBaseSchema as r, ConnectedAccountRetrieveResponse as rn, ToolRouterSessionSearchResponseSchema as rt, CustomToolExecuteFn as s, ConnectedAccountStatusSchema as sn, ToolRouterTagsParamSchema as st, CreateCustomToolBaseSchema as t, ConnectedAccountRefreshOptions as tn, ToolRouterSessionSearchFn as tt, CustomToolRegistry as u, ConnectedAccountTypeSchema as un, ToolRouterToolkitsFn as ut, CustomToolkitWireDefinition as v, CreateConnectedAccountParams as vn, ToolRouterUpdateSessionConfigSchema as vt, RegisteredCustomTool as w, UpdateConnectedAccountAclParamsSchema as wn, FileDeleteResponse as wt, ExecuteMetadata as x, CreateConnectedAccountResponseSchema as xn, ToolkitConnectionsDetails as xt, CustomToolsMap as y, CreateConnectedAccountParamsSchema as yn, ToolkitConnectionState as yt, ToolRouterConfigTagsSchema as z, ConnectionRequestState as zt };
|