@agent-vm/agent-portal-sdk 0.0.147 → 0.0.148

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 (50) hide show
  1. package/dist/approval-surface/index.d.ts +1 -1
  2. package/dist/approval-surface/index.js +1 -1
  3. package/dist/{approval-surface-Cqk_hAtN.js → approval-surface-phfnKUSF.js} +2 -2
  4. package/dist/{approval-surface-Cqk_hAtN.js.map → approval-surface-phfnKUSF.js.map} +1 -1
  5. package/dist/capability-description-surface/index.d.ts +2 -2
  6. package/dist/capability-description-surface/index.js +3 -3
  7. package/dist/capability-description-surface-YqGm-nS_.js +2 -0
  8. package/dist/{capability-descriptor-schema-v9tj7yKr.js → capability-descriptor-schema-B_0vLQ3E.js} +38 -2
  9. package/dist/capability-descriptor-schema-B_0vLQ3E.js.map +1 -0
  10. package/dist/cli/tool-portal.js +3 -3
  11. package/dist/gateway-runtime-client/index.d.ts +3 -3
  12. package/dist/gateway-runtime-client/index.js +3 -3
  13. package/dist/{index-DV6xiWeS.d.ts → index-C2axvEYg.d.ts} +3 -3
  14. package/dist/{index-DV6xiWeS.d.ts.map → index-C2axvEYg.d.ts.map} +1 -1
  15. package/dist/{index-3aVlpTwE.d.ts → index-DTTEu7ZT.d.ts} +17 -17
  16. package/dist/{index-3aVlpTwE.d.ts.map → index-DTTEu7ZT.d.ts.map} +1 -1
  17. package/dist/{index-ciLRJYVb.d.ts → index-DZJH4Rau.d.ts} +39 -39
  18. package/dist/{index-ciLRJYVb.d.ts.map → index-DZJH4Rau.d.ts.map} +1 -1
  19. package/dist/{index-D4UDHMft.d.ts → index-ex2lEawY.d.ts} +5 -5
  20. package/dist/{index-D4UDHMft.d.ts.map → index-ex2lEawY.d.ts.map} +1 -1
  21. package/dist/index-uDfElZ9U.d.ts +304 -0
  22. package/dist/index-uDfElZ9U.d.ts.map +1 -0
  23. package/dist/index.d.ts +6 -6
  24. package/dist/index.js +7 -7
  25. package/dist/portable-contracts/index.js +1 -1
  26. package/dist/{portable-contracts-BJEMMNwI.js → portable-contracts-CWLiYrVU.js} +4 -4
  27. package/dist/{portable-contracts-BJEMMNwI.js.map → portable-contracts-CWLiYrVU.js.map} +1 -1
  28. package/dist/{portal-call-result-schema-B25_rzZZ.js → portal-call-result-schema-DM77S9CA.js} +2 -2
  29. package/dist/{portal-call-result-schema-B25_rzZZ.js.map → portal-call-result-schema-DM77S9CA.js.map} +1 -1
  30. package/dist/{portal-call-result-schema-CFnKfcvZ.d.ts → portal-call-result-schema-Mv2Dv1HJ.d.ts} +983 -311
  31. package/dist/portal-call-result-schema-Mv2Dv1HJ.d.ts.map +1 -0
  32. package/dist/portal-call-surface/index.d.ts +2 -2
  33. package/dist/portal-call-surface/index.js +2 -2
  34. package/dist/{portal-call-surface-qykVz_8k.js → portal-call-surface-B952nh-H.js} +2 -2
  35. package/dist/{portal-call-surface-qykVz_8k.js.map → portal-call-surface-B952nh-H.js.map} +1 -1
  36. package/dist/portal-event-surface/index.d.ts +1 -1
  37. package/dist/testing/index.d.ts +1 -1
  38. package/dist/testing/index.js +1 -1
  39. package/dist/tool-portal-mcp-client/index.d.ts +1 -1
  40. package/dist/tool-portal-mcp-client/index.js +1 -1
  41. package/dist/tool-portal-mcp-client/node-tool-portal-mcp-transport.d.ts +1 -1
  42. package/dist/{tool-portal-mcp-client-DZoloMod.js → tool-portal-mcp-client-DsDi2iJc.js} +3 -3
  43. package/dist/{tool-portal-mcp-client-DZoloMod.js.map → tool-portal-mcp-client-DsDi2iJc.js.map} +1 -1
  44. package/package.json +3 -2
  45. package/portable-contract-schema-manifest.json +541 -0
  46. package/dist/capability-description-surface-CplIb93y.js +0 -2
  47. package/dist/capability-descriptor-schema-v9tj7yKr.js.map +0 -1
  48. package/dist/index-m4Mlc5zK.d.ts +0 -142
  49. package/dist/index-m4Mlc5zK.d.ts.map +0 -1
  50. package/dist/portal-call-result-schema-CFnKfcvZ.d.ts.map +0 -1
@@ -39,14 +39,14 @@ declare const PortalApprovalRequiredCallItemResultSchema: z.ZodObject<{
39
39
  retryable: z.ZodOptional<z.ZodBoolean>;
40
40
  safeDiagnostic: z.ZodOptional<z.ZodObject<{
41
41
  code: z.ZodEnum<{
42
- provider_unavailable: "provider_unavailable";
43
- capability_denied: "capability_denied";
44
42
  approval_required: "approval_required";
43
+ capability_denied: "capability_denied";
45
44
  validation_failed: "validation_failed";
45
+ provider_unavailable: "provider_unavailable";
46
46
  execution_failed: "execution_failed";
47
- output_truncated: "output_truncated";
48
- timeout: "timeout";
49
47
  cancelled: "cancelled";
48
+ timeout: "timeout";
49
+ output_truncated: "output_truncated";
50
50
  artifact_unavailable: "artifact_unavailable";
51
51
  }>;
52
52
  level: z.ZodEnum<{
@@ -80,14 +80,14 @@ declare const PortalCallItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
80
80
  }, z.core.$strict>>>;
81
81
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
82
82
  code: z.ZodEnum<{
83
- provider_unavailable: "provider_unavailable";
84
- capability_denied: "capability_denied";
85
83
  approval_required: "approval_required";
84
+ capability_denied: "capability_denied";
86
85
  validation_failed: "validation_failed";
86
+ provider_unavailable: "provider_unavailable";
87
87
  execution_failed: "execution_failed";
88
- output_truncated: "output_truncated";
89
- timeout: "timeout";
90
88
  cancelled: "cancelled";
89
+ timeout: "timeout";
90
+ output_truncated: "output_truncated";
91
91
  artifact_unavailable: "artifact_unavailable";
92
92
  }>;
93
93
  level: z.ZodEnum<{
@@ -117,14 +117,14 @@ declare const PortalCallItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
117
117
  }, z.core.$strict>, z.ZodObject<{
118
118
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
119
119
  code: z.ZodEnum<{
120
- provider_unavailable: "provider_unavailable";
121
- capability_denied: "capability_denied";
122
120
  approval_required: "approval_required";
121
+ capability_denied: "capability_denied";
123
122
  validation_failed: "validation_failed";
123
+ provider_unavailable: "provider_unavailable";
124
124
  execution_failed: "execution_failed";
125
- output_truncated: "output_truncated";
126
- timeout: "timeout";
127
125
  cancelled: "cancelled";
126
+ timeout: "timeout";
127
+ output_truncated: "output_truncated";
128
128
  artifact_unavailable: "artifact_unavailable";
129
129
  }>;
130
130
  level: z.ZodEnum<{
@@ -138,29 +138,29 @@ declare const PortalCallItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
138
138
  }, z.core.$strict>>>;
139
139
  error: z.ZodObject<{
140
140
  code: z.ZodEnum<{
141
- provider_unavailable: "provider_unavailable";
142
- capability_denied: "capability_denied";
141
+ invalid_request: "invalid_request";
142
+ not_found: "not_found";
143
+ not_authorized: "not_authorized";
143
144
  approval_required: "approval_required";
145
+ capability_denied: "capability_denied";
144
146
  validation_failed: "validation_failed";
147
+ provider_unavailable: "provider_unavailable";
145
148
  execution_failed: "execution_failed";
146
- timeout: "timeout";
147
149
  cancelled: "cancelled";
148
- invalid_request: "invalid_request";
149
- not_found: "not_found";
150
- not_authorized: "not_authorized";
150
+ timeout: "timeout";
151
151
  }>;
152
152
  message: z.ZodString;
153
153
  retryable: z.ZodOptional<z.ZodBoolean>;
154
154
  safeDiagnostic: z.ZodOptional<z.ZodObject<{
155
155
  code: z.ZodEnum<{
156
- provider_unavailable: "provider_unavailable";
157
- capability_denied: "capability_denied";
158
156
  approval_required: "approval_required";
157
+ capability_denied: "capability_denied";
159
158
  validation_failed: "validation_failed";
159
+ provider_unavailable: "provider_unavailable";
160
160
  execution_failed: "execution_failed";
161
- output_truncated: "output_truncated";
162
- timeout: "timeout";
163
161
  cancelled: "cancelled";
162
+ timeout: "timeout";
163
+ output_truncated: "output_truncated";
164
164
  artifact_unavailable: "artifact_unavailable";
165
165
  }>;
166
166
  level: z.ZodEnum<{
@@ -217,14 +217,14 @@ declare const PortalCallItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
217
217
  retryable: z.ZodOptional<z.ZodBoolean>;
218
218
  safeDiagnostic: z.ZodOptional<z.ZodObject<{
219
219
  code: z.ZodEnum<{
220
- provider_unavailable: "provider_unavailable";
221
- capability_denied: "capability_denied";
222
220
  approval_required: "approval_required";
221
+ capability_denied: "capability_denied";
223
222
  validation_failed: "validation_failed";
223
+ provider_unavailable: "provider_unavailable";
224
224
  execution_failed: "execution_failed";
225
- output_truncated: "output_truncated";
226
- timeout: "timeout";
227
225
  cancelled: "cancelled";
226
+ timeout: "timeout";
227
+ output_truncated: "output_truncated";
228
228
  artifact_unavailable: "artifact_unavailable";
229
229
  }>;
230
230
  level: z.ZodEnum<{
@@ -252,7 +252,16 @@ declare const PortalBackendListItemValueSchema: z.ZodObject<{
252
252
  namespaces: z.ZodArray<z.ZodString>;
253
253
  nextCursor: z.ZodOptional<z.ZodString>;
254
254
  tools: z.ZodArray<z.ZodObject<{
255
+ callDisposition: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
256
+ kind: z.ZodLiteral<"without-approval">;
257
+ }, z.core.$strict>, z.ZodObject<{
258
+ kind: z.ZodLiteral<"requires-approval">;
259
+ }, z.core.$strict>, z.ZodObject<{
260
+ describeBeforeCall: z.ZodLiteral<true>;
261
+ kind: z.ZodLiteral<"invocation-dependent">;
262
+ }, z.core.$strict>], "kind">>;
255
263
  description: z.ZodOptional<z.ZodString>;
264
+ descriptionTruncated: z.ZodOptional<z.ZodBoolean>;
256
265
  input: z.ZodObject<{
257
266
  optional: z.ZodArray<z.ZodString>;
258
267
  propertyCount: z.ZodNumber;
@@ -279,12 +288,49 @@ declare const PortalBackendListItemValueSchema: z.ZodObject<{
279
288
  }, z.core.$strict>>;
280
289
  title: z.ZodOptional<z.ZodString>;
281
290
  name: z.ZodString;
291
+ oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
292
+ accountProfiles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
293
+ accountLabel: z.ZodString;
294
+ accountProfileId: z.core.$ZodBranded<z.ZodString, "OAuthAccountProfileId", "out">;
295
+ }, z.core.$strict>>>;
296
+ kind: z.ZodLiteral<"ready">;
297
+ }, z.core.$strict>, z.ZodObject<{
298
+ kind: z.ZodLiteral<"authorization-required">;
299
+ }, z.core.$strict>, z.ZodObject<{
300
+ kind: z.ZodLiteral<"reauthorization-required">;
301
+ }, z.core.$strict>, z.ZodObject<{
302
+ kind: z.ZodLiteral<"scope-insufficient">;
303
+ }, z.core.$strict>, z.ZodObject<{
304
+ kind: z.ZodLiteral<"authorization-status-unavailable">;
305
+ }, z.core.$strict>], "kind">>;
306
+ oauthRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
307
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
308
+ kind: z.ZodLiteral<"oauth-account-profile">;
309
+ minimumPermission: z.ZodEnum<{
310
+ read: "read";
311
+ write: "write";
312
+ }>;
313
+ serviceId: z.core.$ZodBranded<z.ZodString, "OAuthServiceId", "out">;
314
+ }, z.core.$strict>, z.ZodObject<{
315
+ accountProfileArgument: z.ZodLiteral<"accountProfile">;
316
+ describeBeforeCall: z.ZodLiteral<true>;
317
+ kind: z.ZodLiteral<"invocation-dependent-oauth-account-profile">;
318
+ }, z.core.$strict>], "kind">>;
282
319
  toolRef: z.ZodString;
283
320
  }, z.core.$strict>>;
284
321
  }, z.core.$strict>;
285
322
  declare const PortalBackendSearchItemValueSchema: z.ZodObject<{
286
323
  tools: z.ZodArray<z.ZodObject<{
324
+ callDisposition: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
325
+ kind: z.ZodLiteral<"without-approval">;
326
+ }, z.core.$strict>, z.ZodObject<{
327
+ kind: z.ZodLiteral<"requires-approval">;
328
+ }, z.core.$strict>, z.ZodObject<{
329
+ describeBeforeCall: z.ZodLiteral<true>;
330
+ kind: z.ZodLiteral<"invocation-dependent">;
331
+ }, z.core.$strict>], "kind">>;
287
332
  description: z.ZodOptional<z.ZodString>;
333
+ descriptionTruncated: z.ZodOptional<z.ZodBoolean>;
288
334
  input: z.ZodObject<{
289
335
  optional: z.ZodArray<z.ZodString>;
290
336
  propertyCount: z.ZodNumber;
@@ -311,6 +357,34 @@ declare const PortalBackendSearchItemValueSchema: z.ZodObject<{
311
357
  }, z.core.$strict>>;
312
358
  title: z.ZodOptional<z.ZodString>;
313
359
  name: z.ZodString;
360
+ oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
361
+ accountProfiles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
362
+ accountLabel: z.ZodString;
363
+ accountProfileId: z.core.$ZodBranded<z.ZodString, "OAuthAccountProfileId", "out">;
364
+ }, z.core.$strict>>>;
365
+ kind: z.ZodLiteral<"ready">;
366
+ }, z.core.$strict>, z.ZodObject<{
367
+ kind: z.ZodLiteral<"authorization-required">;
368
+ }, z.core.$strict>, z.ZodObject<{
369
+ kind: z.ZodLiteral<"reauthorization-required">;
370
+ }, z.core.$strict>, z.ZodObject<{
371
+ kind: z.ZodLiteral<"scope-insufficient">;
372
+ }, z.core.$strict>, z.ZodObject<{
373
+ kind: z.ZodLiteral<"authorization-status-unavailable">;
374
+ }, z.core.$strict>], "kind">>;
375
+ oauthRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
376
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
377
+ kind: z.ZodLiteral<"oauth-account-profile">;
378
+ minimumPermission: z.ZodEnum<{
379
+ read: "read";
380
+ write: "write";
381
+ }>;
382
+ serviceId: z.core.$ZodBranded<z.ZodString, "OAuthServiceId", "out">;
383
+ }, z.core.$strict>, z.ZodObject<{
384
+ accountProfileArgument: z.ZodLiteral<"accountProfile">;
385
+ describeBeforeCall: z.ZodLiteral<true>;
386
+ kind: z.ZodLiteral<"invocation-dependent-oauth-account-profile">;
387
+ }, z.core.$strict>], "kind">>;
314
388
  toolRef: z.ZodString;
315
389
  inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
316
390
  outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -321,6 +395,15 @@ declare const PortalBackendSearchItemValueSchema: z.ZodObject<{
321
395
  declare const PortalBackendDescribeItemValueSchema: z.ZodObject<{
322
396
  tools: z.ZodArray<z.ZodObject<{
323
397
  annotations: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
398
+ callDisposition: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
399
+ kind: z.ZodLiteral<"without-approval">;
400
+ }, z.core.$strict>, z.ZodObject<{
401
+ kind: z.ZodLiteral<"requires-approval">;
402
+ }, z.core.$strict>, z.ZodObject<{
403
+ describeBeforeCall: z.ZodLiteral<true>;
404
+ kind: z.ZodLiteral<"invocation-dependent">;
405
+ }, z.core.$strict>], "kind">>;
406
+ description: z.ZodOptional<z.ZodString>;
324
407
  inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
325
408
  namespace: z.ZodString;
326
409
  outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -332,7 +415,36 @@ declare const PortalBackendDescribeItemValueSchema: z.ZodObject<{
332
415
  describe_before_call: "describe_before_call";
333
416
  }>;
334
417
  }, z.core.$strict>>;
418
+ title: z.ZodOptional<z.ZodString>;
335
419
  name: z.ZodString;
420
+ oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
421
+ accountProfiles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
422
+ accountLabel: z.ZodString;
423
+ accountProfileId: z.core.$ZodBranded<z.ZodString, "OAuthAccountProfileId", "out">;
424
+ }, z.core.$strict>>>;
425
+ kind: z.ZodLiteral<"ready">;
426
+ }, z.core.$strict>, z.ZodObject<{
427
+ kind: z.ZodLiteral<"authorization-required">;
428
+ }, z.core.$strict>, z.ZodObject<{
429
+ kind: z.ZodLiteral<"reauthorization-required">;
430
+ }, z.core.$strict>, z.ZodObject<{
431
+ kind: z.ZodLiteral<"scope-insufficient">;
432
+ }, z.core.$strict>, z.ZodObject<{
433
+ kind: z.ZodLiteral<"authorization-status-unavailable">;
434
+ }, z.core.$strict>], "kind">>;
435
+ oauthRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
436
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
437
+ kind: z.ZodLiteral<"oauth-account-profile">;
438
+ minimumPermission: z.ZodEnum<{
439
+ read: "read";
440
+ write: "write";
441
+ }>;
442
+ serviceId: z.core.$ZodBranded<z.ZodString, "OAuthServiceId", "out">;
443
+ }, z.core.$strict>, z.ZodObject<{
444
+ accountProfileArgument: z.ZodLiteral<"accountProfile">;
445
+ describeBeforeCall: z.ZodLiteral<true>;
446
+ kind: z.ZodLiteral<"invocation-dependent-oauth-account-profile">;
447
+ }, z.core.$strict>], "kind">>;
336
448
  toolRef: z.ZodString;
337
449
  typescriptHelper: z.ZodOptional<z.ZodString>;
338
450
  zod: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -342,7 +454,16 @@ declare const PortalListItemValueSchema: z.ZodObject<{
342
454
  namespaces: z.ZodArray<z.ZodString>;
343
455
  nextCursor: z.ZodOptional<z.ZodString>;
344
456
  tools: z.ZodArray<z.ZodObject<{
457
+ callDisposition: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
458
+ kind: z.ZodLiteral<"without-approval">;
459
+ }, z.core.$strict>, z.ZodObject<{
460
+ kind: z.ZodLiteral<"requires-approval">;
461
+ }, z.core.$strict>, z.ZodObject<{
462
+ describeBeforeCall: z.ZodLiteral<true>;
463
+ kind: z.ZodLiteral<"invocation-dependent">;
464
+ }, z.core.$strict>], "kind">>;
345
465
  description: z.ZodOptional<z.ZodString>;
466
+ descriptionTruncated: z.ZodOptional<z.ZodBoolean>;
346
467
  input: z.ZodObject<{
347
468
  optional: z.ZodArray<z.ZodString>;
348
469
  propertyCount: z.ZodNumber;
@@ -369,6 +490,34 @@ declare const PortalListItemValueSchema: z.ZodObject<{
369
490
  }, z.core.$strict>>;
370
491
  title: z.ZodOptional<z.ZodString>;
371
492
  name: z.ZodString;
493
+ oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
494
+ accountProfiles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
495
+ accountLabel: z.ZodString;
496
+ accountProfileId: z.core.$ZodBranded<z.ZodString, "OAuthAccountProfileId", "out">;
497
+ }, z.core.$strict>>>;
498
+ kind: z.ZodLiteral<"ready">;
499
+ }, z.core.$strict>, z.ZodObject<{
500
+ kind: z.ZodLiteral<"authorization-required">;
501
+ }, z.core.$strict>, z.ZodObject<{
502
+ kind: z.ZodLiteral<"reauthorization-required">;
503
+ }, z.core.$strict>, z.ZodObject<{
504
+ kind: z.ZodLiteral<"scope-insufficient">;
505
+ }, z.core.$strict>, z.ZodObject<{
506
+ kind: z.ZodLiteral<"authorization-status-unavailable">;
507
+ }, z.core.$strict>], "kind">>;
508
+ oauthRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
509
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
510
+ kind: z.ZodLiteral<"oauth-account-profile">;
511
+ minimumPermission: z.ZodEnum<{
512
+ read: "read";
513
+ write: "write";
514
+ }>;
515
+ serviceId: z.core.$ZodBranded<z.ZodString, "OAuthServiceId", "out">;
516
+ }, z.core.$strict>, z.ZodObject<{
517
+ accountProfileArgument: z.ZodLiteral<"accountProfile">;
518
+ describeBeforeCall: z.ZodLiteral<true>;
519
+ kind: z.ZodLiteral<"invocation-dependent-oauth-account-profile">;
520
+ }, z.core.$strict>], "kind">>;
372
521
  toolRef: z.ZodString;
373
522
  }, z.core.$strict>>;
374
523
  namespaceDiscovery: z.ZodArray<z.ZodObject<{
@@ -378,7 +527,16 @@ declare const PortalListItemValueSchema: z.ZodObject<{
378
527
  }, z.core.$strict>;
379
528
  declare const PortalSearchItemValueSchema: z.ZodObject<{
380
529
  tools: z.ZodArray<z.ZodObject<{
530
+ callDisposition: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
531
+ kind: z.ZodLiteral<"without-approval">;
532
+ }, z.core.$strict>, z.ZodObject<{
533
+ kind: z.ZodLiteral<"requires-approval">;
534
+ }, z.core.$strict>, z.ZodObject<{
535
+ describeBeforeCall: z.ZodLiteral<true>;
536
+ kind: z.ZodLiteral<"invocation-dependent">;
537
+ }, z.core.$strict>], "kind">>;
381
538
  description: z.ZodOptional<z.ZodString>;
539
+ descriptionTruncated: z.ZodOptional<z.ZodBoolean>;
382
540
  input: z.ZodObject<{
383
541
  optional: z.ZodArray<z.ZodString>;
384
542
  propertyCount: z.ZodNumber;
@@ -405,6 +563,34 @@ declare const PortalSearchItemValueSchema: z.ZodObject<{
405
563
  }, z.core.$strict>>;
406
564
  title: z.ZodOptional<z.ZodString>;
407
565
  name: z.ZodString;
566
+ oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
567
+ accountProfiles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
568
+ accountLabel: z.ZodString;
569
+ accountProfileId: z.core.$ZodBranded<z.ZodString, "OAuthAccountProfileId", "out">;
570
+ }, z.core.$strict>>>;
571
+ kind: z.ZodLiteral<"ready">;
572
+ }, z.core.$strict>, z.ZodObject<{
573
+ kind: z.ZodLiteral<"authorization-required">;
574
+ }, z.core.$strict>, z.ZodObject<{
575
+ kind: z.ZodLiteral<"reauthorization-required">;
576
+ }, z.core.$strict>, z.ZodObject<{
577
+ kind: z.ZodLiteral<"scope-insufficient">;
578
+ }, z.core.$strict>, z.ZodObject<{
579
+ kind: z.ZodLiteral<"authorization-status-unavailable">;
580
+ }, z.core.$strict>], "kind">>;
581
+ oauthRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
582
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
583
+ kind: z.ZodLiteral<"oauth-account-profile">;
584
+ minimumPermission: z.ZodEnum<{
585
+ read: "read";
586
+ write: "write";
587
+ }>;
588
+ serviceId: z.core.$ZodBranded<z.ZodString, "OAuthServiceId", "out">;
589
+ }, z.core.$strict>, z.ZodObject<{
590
+ accountProfileArgument: z.ZodLiteral<"accountProfile">;
591
+ describeBeforeCall: z.ZodLiteral<true>;
592
+ kind: z.ZodLiteral<"invocation-dependent-oauth-account-profile">;
593
+ }, z.core.$strict>], "kind">>;
408
594
  toolRef: z.ZodString;
409
595
  inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
410
596
  outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -419,6 +605,15 @@ declare const PortalSearchItemValueSchema: z.ZodObject<{
419
605
  declare const PortalDescribeItemValueSchema: z.ZodObject<{
420
606
  tools: z.ZodArray<z.ZodObject<{
421
607
  annotations: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
608
+ callDisposition: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
609
+ kind: z.ZodLiteral<"without-approval">;
610
+ }, z.core.$strict>, z.ZodObject<{
611
+ kind: z.ZodLiteral<"requires-approval">;
612
+ }, z.core.$strict>, z.ZodObject<{
613
+ describeBeforeCall: z.ZodLiteral<true>;
614
+ kind: z.ZodLiteral<"invocation-dependent">;
615
+ }, z.core.$strict>], "kind">>;
616
+ description: z.ZodOptional<z.ZodString>;
422
617
  inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
423
618
  namespace: z.ZodString;
424
619
  outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -430,7 +625,36 @@ declare const PortalDescribeItemValueSchema: z.ZodObject<{
430
625
  describe_before_call: "describe_before_call";
431
626
  }>;
432
627
  }, z.core.$strict>>;
628
+ title: z.ZodOptional<z.ZodString>;
433
629
  name: z.ZodString;
630
+ oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
631
+ accountProfiles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
632
+ accountLabel: z.ZodString;
633
+ accountProfileId: z.core.$ZodBranded<z.ZodString, "OAuthAccountProfileId", "out">;
634
+ }, z.core.$strict>>>;
635
+ kind: z.ZodLiteral<"ready">;
636
+ }, z.core.$strict>, z.ZodObject<{
637
+ kind: z.ZodLiteral<"authorization-required">;
638
+ }, z.core.$strict>, z.ZodObject<{
639
+ kind: z.ZodLiteral<"reauthorization-required">;
640
+ }, z.core.$strict>, z.ZodObject<{
641
+ kind: z.ZodLiteral<"scope-insufficient">;
642
+ }, z.core.$strict>, z.ZodObject<{
643
+ kind: z.ZodLiteral<"authorization-status-unavailable">;
644
+ }, z.core.$strict>], "kind">>;
645
+ oauthRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
646
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
647
+ kind: z.ZodLiteral<"oauth-account-profile">;
648
+ minimumPermission: z.ZodEnum<{
649
+ read: "read";
650
+ write: "write";
651
+ }>;
652
+ serviceId: z.core.$ZodBranded<z.ZodString, "OAuthServiceId", "out">;
653
+ }, z.core.$strict>, z.ZodObject<{
654
+ accountProfileArgument: z.ZodLiteral<"accountProfile">;
655
+ describeBeforeCall: z.ZodLiteral<true>;
656
+ kind: z.ZodLiteral<"invocation-dependent-oauth-account-profile">;
657
+ }, z.core.$strict>], "kind">>;
434
658
  toolRef: z.ZodString;
435
659
  typescriptHelper: z.ZodOptional<z.ZodString>;
436
660
  zod: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -450,14 +674,14 @@ declare const PortalBackendListItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodO
450
674
  }, z.core.$strict>>>;
451
675
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
452
676
  code: z.ZodEnum<{
453
- provider_unavailable: "provider_unavailable";
454
- capability_denied: "capability_denied";
455
677
  approval_required: "approval_required";
678
+ capability_denied: "capability_denied";
456
679
  validation_failed: "validation_failed";
680
+ provider_unavailable: "provider_unavailable";
457
681
  execution_failed: "execution_failed";
458
- output_truncated: "output_truncated";
459
- timeout: "timeout";
460
682
  cancelled: "cancelled";
683
+ timeout: "timeout";
684
+ output_truncated: "output_truncated";
461
685
  artifact_unavailable: "artifact_unavailable";
462
686
  }>;
463
687
  level: z.ZodEnum<{
@@ -479,7 +703,16 @@ declare const PortalBackendListItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodO
479
703
  namespaces: z.ZodArray<z.ZodString>;
480
704
  nextCursor: z.ZodOptional<z.ZodString>;
481
705
  tools: z.ZodArray<z.ZodObject<{
706
+ callDisposition: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
707
+ kind: z.ZodLiteral<"without-approval">;
708
+ }, z.core.$strict>, z.ZodObject<{
709
+ kind: z.ZodLiteral<"requires-approval">;
710
+ }, z.core.$strict>, z.ZodObject<{
711
+ describeBeforeCall: z.ZodLiteral<true>;
712
+ kind: z.ZodLiteral<"invocation-dependent">;
713
+ }, z.core.$strict>], "kind">>;
482
714
  description: z.ZodOptional<z.ZodString>;
715
+ descriptionTruncated: z.ZodOptional<z.ZodBoolean>;
483
716
  input: z.ZodObject<{
484
717
  optional: z.ZodArray<z.ZodString>;
485
718
  propertyCount: z.ZodNumber;
@@ -506,20 +739,48 @@ declare const PortalBackendListItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodO
506
739
  }, z.core.$strict>>;
507
740
  title: z.ZodOptional<z.ZodString>;
508
741
  name: z.ZodString;
742
+ oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
743
+ accountProfiles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
744
+ accountLabel: z.ZodString;
745
+ accountProfileId: z.core.$ZodBranded<z.ZodString, "OAuthAccountProfileId", "out">;
746
+ }, z.core.$strict>>>;
747
+ kind: z.ZodLiteral<"ready">;
748
+ }, z.core.$strict>, z.ZodObject<{
749
+ kind: z.ZodLiteral<"authorization-required">;
750
+ }, z.core.$strict>, z.ZodObject<{
751
+ kind: z.ZodLiteral<"reauthorization-required">;
752
+ }, z.core.$strict>, z.ZodObject<{
753
+ kind: z.ZodLiteral<"scope-insufficient">;
754
+ }, z.core.$strict>, z.ZodObject<{
755
+ kind: z.ZodLiteral<"authorization-status-unavailable">;
756
+ }, z.core.$strict>], "kind">>;
757
+ oauthRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
758
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
759
+ kind: z.ZodLiteral<"oauth-account-profile">;
760
+ minimumPermission: z.ZodEnum<{
761
+ read: "read";
762
+ write: "write";
763
+ }>;
764
+ serviceId: z.core.$ZodBranded<z.ZodString, "OAuthServiceId", "out">;
765
+ }, z.core.$strict>, z.ZodObject<{
766
+ accountProfileArgument: z.ZodLiteral<"accountProfile">;
767
+ describeBeforeCall: z.ZodLiteral<true>;
768
+ kind: z.ZodLiteral<"invocation-dependent-oauth-account-profile">;
769
+ }, z.core.$strict>], "kind">>;
509
770
  toolRef: z.ZodString;
510
771
  }, z.core.$strict>>;
511
772
  }, z.core.$strict>;
512
773
  }, z.core.$strict>, z.ZodObject<{
513
774
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
514
775
  code: z.ZodEnum<{
515
- provider_unavailable: "provider_unavailable";
516
- capability_denied: "capability_denied";
517
776
  approval_required: "approval_required";
777
+ capability_denied: "capability_denied";
518
778
  validation_failed: "validation_failed";
779
+ provider_unavailable: "provider_unavailable";
519
780
  execution_failed: "execution_failed";
520
- output_truncated: "output_truncated";
521
- timeout: "timeout";
522
781
  cancelled: "cancelled";
782
+ timeout: "timeout";
783
+ output_truncated: "output_truncated";
523
784
  artifact_unavailable: "artifact_unavailable";
524
785
  }>;
525
786
  level: z.ZodEnum<{
@@ -533,29 +794,29 @@ declare const PortalBackendListItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodO
533
794
  }, z.core.$strict>>>;
534
795
  error: z.ZodObject<{
535
796
  code: z.ZodEnum<{
536
- provider_unavailable: "provider_unavailable";
537
- capability_denied: "capability_denied";
797
+ invalid_request: "invalid_request";
798
+ not_found: "not_found";
799
+ not_authorized: "not_authorized";
538
800
  approval_required: "approval_required";
801
+ capability_denied: "capability_denied";
539
802
  validation_failed: "validation_failed";
803
+ provider_unavailable: "provider_unavailable";
540
804
  execution_failed: "execution_failed";
541
- timeout: "timeout";
542
805
  cancelled: "cancelled";
543
- invalid_request: "invalid_request";
544
- not_found: "not_found";
545
- not_authorized: "not_authorized";
806
+ timeout: "timeout";
546
807
  }>;
547
808
  message: z.ZodString;
548
809
  retryable: z.ZodOptional<z.ZodBoolean>;
549
810
  safeDiagnostic: z.ZodOptional<z.ZodObject<{
550
811
  code: z.ZodEnum<{
551
- provider_unavailable: "provider_unavailable";
552
- capability_denied: "capability_denied";
553
812
  approval_required: "approval_required";
813
+ capability_denied: "capability_denied";
554
814
  validation_failed: "validation_failed";
815
+ provider_unavailable: "provider_unavailable";
555
816
  execution_failed: "execution_failed";
556
- output_truncated: "output_truncated";
557
- timeout: "timeout";
558
817
  cancelled: "cancelled";
818
+ timeout: "timeout";
819
+ output_truncated: "output_truncated";
559
820
  artifact_unavailable: "artifact_unavailable";
560
821
  }>;
561
822
  level: z.ZodEnum<{
@@ -581,14 +842,14 @@ declare const PortalBackendSearchItemResultSchema: z.ZodDiscriminatedUnion<[z.Zo
581
842
  }, z.core.$strict>>>;
582
843
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
583
844
  code: z.ZodEnum<{
584
- provider_unavailable: "provider_unavailable";
585
- capability_denied: "capability_denied";
586
845
  approval_required: "approval_required";
846
+ capability_denied: "capability_denied";
587
847
  validation_failed: "validation_failed";
848
+ provider_unavailable: "provider_unavailable";
588
849
  execution_failed: "execution_failed";
589
- output_truncated: "output_truncated";
590
- timeout: "timeout";
591
850
  cancelled: "cancelled";
851
+ timeout: "timeout";
852
+ output_truncated: "output_truncated";
592
853
  artifact_unavailable: "artifact_unavailable";
593
854
  }>;
594
855
  level: z.ZodEnum<{
@@ -608,7 +869,16 @@ declare const PortalBackendSearchItemResultSchema: z.ZodDiscriminatedUnion<[z.Zo
608
869
  }, z.core.$strict>>;
609
870
  value: z.ZodObject<{
610
871
  tools: z.ZodArray<z.ZodObject<{
872
+ callDisposition: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
873
+ kind: z.ZodLiteral<"without-approval">;
874
+ }, z.core.$strict>, z.ZodObject<{
875
+ kind: z.ZodLiteral<"requires-approval">;
876
+ }, z.core.$strict>, z.ZodObject<{
877
+ describeBeforeCall: z.ZodLiteral<true>;
878
+ kind: z.ZodLiteral<"invocation-dependent">;
879
+ }, z.core.$strict>], "kind">>;
611
880
  description: z.ZodOptional<z.ZodString>;
881
+ descriptionTruncated: z.ZodOptional<z.ZodBoolean>;
612
882
  input: z.ZodObject<{
613
883
  optional: z.ZodArray<z.ZodString>;
614
884
  propertyCount: z.ZodNumber;
@@ -635,6 +905,34 @@ declare const PortalBackendSearchItemResultSchema: z.ZodDiscriminatedUnion<[z.Zo
635
905
  }, z.core.$strict>>;
636
906
  title: z.ZodOptional<z.ZodString>;
637
907
  name: z.ZodString;
908
+ oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
909
+ accountProfiles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
910
+ accountLabel: z.ZodString;
911
+ accountProfileId: z.core.$ZodBranded<z.ZodString, "OAuthAccountProfileId", "out">;
912
+ }, z.core.$strict>>>;
913
+ kind: z.ZodLiteral<"ready">;
914
+ }, z.core.$strict>, z.ZodObject<{
915
+ kind: z.ZodLiteral<"authorization-required">;
916
+ }, z.core.$strict>, z.ZodObject<{
917
+ kind: z.ZodLiteral<"reauthorization-required">;
918
+ }, z.core.$strict>, z.ZodObject<{
919
+ kind: z.ZodLiteral<"scope-insufficient">;
920
+ }, z.core.$strict>, z.ZodObject<{
921
+ kind: z.ZodLiteral<"authorization-status-unavailable">;
922
+ }, z.core.$strict>], "kind">>;
923
+ oauthRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
924
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
925
+ kind: z.ZodLiteral<"oauth-account-profile">;
926
+ minimumPermission: z.ZodEnum<{
927
+ read: "read";
928
+ write: "write";
929
+ }>;
930
+ serviceId: z.core.$ZodBranded<z.ZodString, "OAuthServiceId", "out">;
931
+ }, z.core.$strict>, z.ZodObject<{
932
+ accountProfileArgument: z.ZodLiteral<"accountProfile">;
933
+ describeBeforeCall: z.ZodLiteral<true>;
934
+ kind: z.ZodLiteral<"invocation-dependent-oauth-account-profile">;
935
+ }, z.core.$strict>], "kind">>;
638
936
  toolRef: z.ZodString;
639
937
  inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
640
938
  outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -645,14 +943,14 @@ declare const PortalBackendSearchItemResultSchema: z.ZodDiscriminatedUnion<[z.Zo
645
943
  }, z.core.$strict>, z.ZodObject<{
646
944
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
647
945
  code: z.ZodEnum<{
648
- provider_unavailable: "provider_unavailable";
649
- capability_denied: "capability_denied";
650
946
  approval_required: "approval_required";
947
+ capability_denied: "capability_denied";
651
948
  validation_failed: "validation_failed";
949
+ provider_unavailable: "provider_unavailable";
652
950
  execution_failed: "execution_failed";
653
- output_truncated: "output_truncated";
654
- timeout: "timeout";
655
951
  cancelled: "cancelled";
952
+ timeout: "timeout";
953
+ output_truncated: "output_truncated";
656
954
  artifact_unavailable: "artifact_unavailable";
657
955
  }>;
658
956
  level: z.ZodEnum<{
@@ -666,29 +964,29 @@ declare const PortalBackendSearchItemResultSchema: z.ZodDiscriminatedUnion<[z.Zo
666
964
  }, z.core.$strict>>>;
667
965
  error: z.ZodObject<{
668
966
  code: z.ZodEnum<{
669
- provider_unavailable: "provider_unavailable";
670
- capability_denied: "capability_denied";
967
+ invalid_request: "invalid_request";
968
+ not_found: "not_found";
969
+ not_authorized: "not_authorized";
671
970
  approval_required: "approval_required";
971
+ capability_denied: "capability_denied";
672
972
  validation_failed: "validation_failed";
973
+ provider_unavailable: "provider_unavailable";
673
974
  execution_failed: "execution_failed";
674
- timeout: "timeout";
675
975
  cancelled: "cancelled";
676
- invalid_request: "invalid_request";
677
- not_found: "not_found";
678
- not_authorized: "not_authorized";
976
+ timeout: "timeout";
679
977
  }>;
680
978
  message: z.ZodString;
681
979
  retryable: z.ZodOptional<z.ZodBoolean>;
682
980
  safeDiagnostic: z.ZodOptional<z.ZodObject<{
683
981
  code: z.ZodEnum<{
684
- provider_unavailable: "provider_unavailable";
685
- capability_denied: "capability_denied";
686
982
  approval_required: "approval_required";
983
+ capability_denied: "capability_denied";
687
984
  validation_failed: "validation_failed";
985
+ provider_unavailable: "provider_unavailable";
688
986
  execution_failed: "execution_failed";
689
- output_truncated: "output_truncated";
690
- timeout: "timeout";
691
987
  cancelled: "cancelled";
988
+ timeout: "timeout";
989
+ output_truncated: "output_truncated";
692
990
  artifact_unavailable: "artifact_unavailable";
693
991
  }>;
694
992
  level: z.ZodEnum<{
@@ -714,14 +1012,14 @@ declare const PortalBackendDescribeItemResultSchema: z.ZodDiscriminatedUnion<[z.
714
1012
  }, z.core.$strict>>>;
715
1013
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
716
1014
  code: z.ZodEnum<{
717
- provider_unavailable: "provider_unavailable";
718
- capability_denied: "capability_denied";
719
1015
  approval_required: "approval_required";
1016
+ capability_denied: "capability_denied";
720
1017
  validation_failed: "validation_failed";
1018
+ provider_unavailable: "provider_unavailable";
721
1019
  execution_failed: "execution_failed";
722
- output_truncated: "output_truncated";
723
- timeout: "timeout";
724
1020
  cancelled: "cancelled";
1021
+ timeout: "timeout";
1022
+ output_truncated: "output_truncated";
725
1023
  artifact_unavailable: "artifact_unavailable";
726
1024
  }>;
727
1025
  level: z.ZodEnum<{
@@ -742,6 +1040,15 @@ declare const PortalBackendDescribeItemResultSchema: z.ZodDiscriminatedUnion<[z.
742
1040
  value: z.ZodObject<{
743
1041
  tools: z.ZodArray<z.ZodObject<{
744
1042
  annotations: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
1043
+ callDisposition: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1044
+ kind: z.ZodLiteral<"without-approval">;
1045
+ }, z.core.$strict>, z.ZodObject<{
1046
+ kind: z.ZodLiteral<"requires-approval">;
1047
+ }, z.core.$strict>, z.ZodObject<{
1048
+ describeBeforeCall: z.ZodLiteral<true>;
1049
+ kind: z.ZodLiteral<"invocation-dependent">;
1050
+ }, z.core.$strict>], "kind">>;
1051
+ description: z.ZodOptional<z.ZodString>;
745
1052
  inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
746
1053
  namespace: z.ZodString;
747
1054
  outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -753,7 +1060,36 @@ declare const PortalBackendDescribeItemResultSchema: z.ZodDiscriminatedUnion<[z.
753
1060
  describe_before_call: "describe_before_call";
754
1061
  }>;
755
1062
  }, z.core.$strict>>;
1063
+ title: z.ZodOptional<z.ZodString>;
756
1064
  name: z.ZodString;
1065
+ oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1066
+ accountProfiles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1067
+ accountLabel: z.ZodString;
1068
+ accountProfileId: z.core.$ZodBranded<z.ZodString, "OAuthAccountProfileId", "out">;
1069
+ }, z.core.$strict>>>;
1070
+ kind: z.ZodLiteral<"ready">;
1071
+ }, z.core.$strict>, z.ZodObject<{
1072
+ kind: z.ZodLiteral<"authorization-required">;
1073
+ }, z.core.$strict>, z.ZodObject<{
1074
+ kind: z.ZodLiteral<"reauthorization-required">;
1075
+ }, z.core.$strict>, z.ZodObject<{
1076
+ kind: z.ZodLiteral<"scope-insufficient">;
1077
+ }, z.core.$strict>, z.ZodObject<{
1078
+ kind: z.ZodLiteral<"authorization-status-unavailable">;
1079
+ }, z.core.$strict>], "kind">>;
1080
+ oauthRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1081
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
1082
+ kind: z.ZodLiteral<"oauth-account-profile">;
1083
+ minimumPermission: z.ZodEnum<{
1084
+ read: "read";
1085
+ write: "write";
1086
+ }>;
1087
+ serviceId: z.core.$ZodBranded<z.ZodString, "OAuthServiceId", "out">;
1088
+ }, z.core.$strict>, z.ZodObject<{
1089
+ accountProfileArgument: z.ZodLiteral<"accountProfile">;
1090
+ describeBeforeCall: z.ZodLiteral<true>;
1091
+ kind: z.ZodLiteral<"invocation-dependent-oauth-account-profile">;
1092
+ }, z.core.$strict>], "kind">>;
757
1093
  toolRef: z.ZodString;
758
1094
  typescriptHelper: z.ZodOptional<z.ZodString>;
759
1095
  zod: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -762,14 +1098,14 @@ declare const PortalBackendDescribeItemResultSchema: z.ZodDiscriminatedUnion<[z.
762
1098
  }, z.core.$strict>, z.ZodObject<{
763
1099
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
764
1100
  code: z.ZodEnum<{
765
- provider_unavailable: "provider_unavailable";
766
- capability_denied: "capability_denied";
767
1101
  approval_required: "approval_required";
1102
+ capability_denied: "capability_denied";
768
1103
  validation_failed: "validation_failed";
1104
+ provider_unavailable: "provider_unavailable";
769
1105
  execution_failed: "execution_failed";
770
- output_truncated: "output_truncated";
771
- timeout: "timeout";
772
1106
  cancelled: "cancelled";
1107
+ timeout: "timeout";
1108
+ output_truncated: "output_truncated";
773
1109
  artifact_unavailable: "artifact_unavailable";
774
1110
  }>;
775
1111
  level: z.ZodEnum<{
@@ -783,29 +1119,29 @@ declare const PortalBackendDescribeItemResultSchema: z.ZodDiscriminatedUnion<[z.
783
1119
  }, z.core.$strict>>>;
784
1120
  error: z.ZodObject<{
785
1121
  code: z.ZodEnum<{
786
- provider_unavailable: "provider_unavailable";
787
- capability_denied: "capability_denied";
1122
+ invalid_request: "invalid_request";
1123
+ not_found: "not_found";
1124
+ not_authorized: "not_authorized";
788
1125
  approval_required: "approval_required";
1126
+ capability_denied: "capability_denied";
789
1127
  validation_failed: "validation_failed";
1128
+ provider_unavailable: "provider_unavailable";
790
1129
  execution_failed: "execution_failed";
791
- timeout: "timeout";
792
1130
  cancelled: "cancelled";
793
- invalid_request: "invalid_request";
794
- not_found: "not_found";
795
- not_authorized: "not_authorized";
1131
+ timeout: "timeout";
796
1132
  }>;
797
1133
  message: z.ZodString;
798
1134
  retryable: z.ZodOptional<z.ZodBoolean>;
799
1135
  safeDiagnostic: z.ZodOptional<z.ZodObject<{
800
1136
  code: z.ZodEnum<{
801
- provider_unavailable: "provider_unavailable";
802
- capability_denied: "capability_denied";
803
1137
  approval_required: "approval_required";
1138
+ capability_denied: "capability_denied";
804
1139
  validation_failed: "validation_failed";
1140
+ provider_unavailable: "provider_unavailable";
805
1141
  execution_failed: "execution_failed";
806
- output_truncated: "output_truncated";
807
- timeout: "timeout";
808
1142
  cancelled: "cancelled";
1143
+ timeout: "timeout";
1144
+ output_truncated: "output_truncated";
809
1145
  artifact_unavailable: "artifact_unavailable";
810
1146
  }>;
811
1147
  level: z.ZodEnum<{
@@ -825,14 +1161,14 @@ declare const PortalBackendListResultSchema: z.ZodObject<{
825
1161
  auditCorrelationId: z.ZodOptional<z.ZodString>;
826
1162
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
827
1163
  code: z.ZodEnum<{
828
- provider_unavailable: "provider_unavailable";
829
- capability_denied: "capability_denied";
830
1164
  approval_required: "approval_required";
1165
+ capability_denied: "capability_denied";
831
1166
  validation_failed: "validation_failed";
1167
+ provider_unavailable: "provider_unavailable";
832
1168
  execution_failed: "execution_failed";
833
- output_truncated: "output_truncated";
834
- timeout: "timeout";
835
1169
  cancelled: "cancelled";
1170
+ timeout: "timeout";
1171
+ output_truncated: "output_truncated";
836
1172
  artifact_unavailable: "artifact_unavailable";
837
1173
  }>;
838
1174
  level: z.ZodEnum<{
@@ -854,14 +1190,14 @@ declare const PortalBackendListResultSchema: z.ZodObject<{
854
1190
  }, z.core.$strict>>>;
855
1191
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
856
1192
  code: z.ZodEnum<{
857
- provider_unavailable: "provider_unavailable";
858
- capability_denied: "capability_denied";
859
1193
  approval_required: "approval_required";
1194
+ capability_denied: "capability_denied";
860
1195
  validation_failed: "validation_failed";
1196
+ provider_unavailable: "provider_unavailable";
861
1197
  execution_failed: "execution_failed";
862
- output_truncated: "output_truncated";
863
- timeout: "timeout";
864
1198
  cancelled: "cancelled";
1199
+ timeout: "timeout";
1200
+ output_truncated: "output_truncated";
865
1201
  artifact_unavailable: "artifact_unavailable";
866
1202
  }>;
867
1203
  level: z.ZodEnum<{
@@ -883,7 +1219,16 @@ declare const PortalBackendListResultSchema: z.ZodObject<{
883
1219
  namespaces: z.ZodArray<z.ZodString>;
884
1220
  nextCursor: z.ZodOptional<z.ZodString>;
885
1221
  tools: z.ZodArray<z.ZodObject<{
1222
+ callDisposition: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1223
+ kind: z.ZodLiteral<"without-approval">;
1224
+ }, z.core.$strict>, z.ZodObject<{
1225
+ kind: z.ZodLiteral<"requires-approval">;
1226
+ }, z.core.$strict>, z.ZodObject<{
1227
+ describeBeforeCall: z.ZodLiteral<true>;
1228
+ kind: z.ZodLiteral<"invocation-dependent">;
1229
+ }, z.core.$strict>], "kind">>;
886
1230
  description: z.ZodOptional<z.ZodString>;
1231
+ descriptionTruncated: z.ZodOptional<z.ZodBoolean>;
887
1232
  input: z.ZodObject<{
888
1233
  optional: z.ZodArray<z.ZodString>;
889
1234
  propertyCount: z.ZodNumber;
@@ -910,20 +1255,48 @@ declare const PortalBackendListResultSchema: z.ZodObject<{
910
1255
  }, z.core.$strict>>;
911
1256
  title: z.ZodOptional<z.ZodString>;
912
1257
  name: z.ZodString;
1258
+ oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1259
+ accountProfiles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1260
+ accountLabel: z.ZodString;
1261
+ accountProfileId: z.core.$ZodBranded<z.ZodString, "OAuthAccountProfileId", "out">;
1262
+ }, z.core.$strict>>>;
1263
+ kind: z.ZodLiteral<"ready">;
1264
+ }, z.core.$strict>, z.ZodObject<{
1265
+ kind: z.ZodLiteral<"authorization-required">;
1266
+ }, z.core.$strict>, z.ZodObject<{
1267
+ kind: z.ZodLiteral<"reauthorization-required">;
1268
+ }, z.core.$strict>, z.ZodObject<{
1269
+ kind: z.ZodLiteral<"scope-insufficient">;
1270
+ }, z.core.$strict>, z.ZodObject<{
1271
+ kind: z.ZodLiteral<"authorization-status-unavailable">;
1272
+ }, z.core.$strict>], "kind">>;
1273
+ oauthRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1274
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
1275
+ kind: z.ZodLiteral<"oauth-account-profile">;
1276
+ minimumPermission: z.ZodEnum<{
1277
+ read: "read";
1278
+ write: "write";
1279
+ }>;
1280
+ serviceId: z.core.$ZodBranded<z.ZodString, "OAuthServiceId", "out">;
1281
+ }, z.core.$strict>, z.ZodObject<{
1282
+ accountProfileArgument: z.ZodLiteral<"accountProfile">;
1283
+ describeBeforeCall: z.ZodLiteral<true>;
1284
+ kind: z.ZodLiteral<"invocation-dependent-oauth-account-profile">;
1285
+ }, z.core.$strict>], "kind">>;
913
1286
  toolRef: z.ZodString;
914
1287
  }, z.core.$strict>>;
915
1288
  }, z.core.$strict>;
916
1289
  }, z.core.$strict>, z.ZodObject<{
917
1290
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
918
1291
  code: z.ZodEnum<{
919
- provider_unavailable: "provider_unavailable";
920
- capability_denied: "capability_denied";
921
1292
  approval_required: "approval_required";
1293
+ capability_denied: "capability_denied";
922
1294
  validation_failed: "validation_failed";
1295
+ provider_unavailable: "provider_unavailable";
923
1296
  execution_failed: "execution_failed";
924
- output_truncated: "output_truncated";
925
- timeout: "timeout";
926
1297
  cancelled: "cancelled";
1298
+ timeout: "timeout";
1299
+ output_truncated: "output_truncated";
927
1300
  artifact_unavailable: "artifact_unavailable";
928
1301
  }>;
929
1302
  level: z.ZodEnum<{
@@ -937,29 +1310,29 @@ declare const PortalBackendListResultSchema: z.ZodObject<{
937
1310
  }, z.core.$strict>>>;
938
1311
  error: z.ZodObject<{
939
1312
  code: z.ZodEnum<{
940
- provider_unavailable: "provider_unavailable";
941
- capability_denied: "capability_denied";
1313
+ invalid_request: "invalid_request";
1314
+ not_found: "not_found";
1315
+ not_authorized: "not_authorized";
942
1316
  approval_required: "approval_required";
1317
+ capability_denied: "capability_denied";
943
1318
  validation_failed: "validation_failed";
1319
+ provider_unavailable: "provider_unavailable";
944
1320
  execution_failed: "execution_failed";
945
- timeout: "timeout";
946
1321
  cancelled: "cancelled";
947
- invalid_request: "invalid_request";
948
- not_found: "not_found";
949
- not_authorized: "not_authorized";
1322
+ timeout: "timeout";
950
1323
  }>;
951
1324
  message: z.ZodString;
952
1325
  retryable: z.ZodOptional<z.ZodBoolean>;
953
1326
  safeDiagnostic: z.ZodOptional<z.ZodObject<{
954
1327
  code: z.ZodEnum<{
955
- provider_unavailable: "provider_unavailable";
956
- capability_denied: "capability_denied";
957
1328
  approval_required: "approval_required";
1329
+ capability_denied: "capability_denied";
958
1330
  validation_failed: "validation_failed";
1331
+ provider_unavailable: "provider_unavailable";
959
1332
  execution_failed: "execution_failed";
960
- output_truncated: "output_truncated";
961
- timeout: "timeout";
962
1333
  cancelled: "cancelled";
1334
+ timeout: "timeout";
1335
+ output_truncated: "output_truncated";
963
1336
  artifact_unavailable: "artifact_unavailable";
964
1337
  }>;
965
1338
  level: z.ZodEnum<{
@@ -982,14 +1355,14 @@ declare const PortalBackendSearchResultSchema: z.ZodObject<{
982
1355
  auditCorrelationId: z.ZodOptional<z.ZodString>;
983
1356
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
984
1357
  code: z.ZodEnum<{
985
- provider_unavailable: "provider_unavailable";
986
- capability_denied: "capability_denied";
987
1358
  approval_required: "approval_required";
1359
+ capability_denied: "capability_denied";
988
1360
  validation_failed: "validation_failed";
1361
+ provider_unavailable: "provider_unavailable";
989
1362
  execution_failed: "execution_failed";
990
- output_truncated: "output_truncated";
991
- timeout: "timeout";
992
1363
  cancelled: "cancelled";
1364
+ timeout: "timeout";
1365
+ output_truncated: "output_truncated";
993
1366
  artifact_unavailable: "artifact_unavailable";
994
1367
  }>;
995
1368
  level: z.ZodEnum<{
@@ -1011,14 +1384,14 @@ declare const PortalBackendSearchResultSchema: z.ZodObject<{
1011
1384
  }, z.core.$strict>>>;
1012
1385
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
1013
1386
  code: z.ZodEnum<{
1014
- provider_unavailable: "provider_unavailable";
1015
- capability_denied: "capability_denied";
1016
1387
  approval_required: "approval_required";
1388
+ capability_denied: "capability_denied";
1017
1389
  validation_failed: "validation_failed";
1390
+ provider_unavailable: "provider_unavailable";
1018
1391
  execution_failed: "execution_failed";
1019
- output_truncated: "output_truncated";
1020
- timeout: "timeout";
1021
1392
  cancelled: "cancelled";
1393
+ timeout: "timeout";
1394
+ output_truncated: "output_truncated";
1022
1395
  artifact_unavailable: "artifact_unavailable";
1023
1396
  }>;
1024
1397
  level: z.ZodEnum<{
@@ -1038,7 +1411,16 @@ declare const PortalBackendSearchResultSchema: z.ZodObject<{
1038
1411
  }, z.core.$strict>>;
1039
1412
  value: z.ZodObject<{
1040
1413
  tools: z.ZodArray<z.ZodObject<{
1414
+ callDisposition: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1415
+ kind: z.ZodLiteral<"without-approval">;
1416
+ }, z.core.$strict>, z.ZodObject<{
1417
+ kind: z.ZodLiteral<"requires-approval">;
1418
+ }, z.core.$strict>, z.ZodObject<{
1419
+ describeBeforeCall: z.ZodLiteral<true>;
1420
+ kind: z.ZodLiteral<"invocation-dependent">;
1421
+ }, z.core.$strict>], "kind">>;
1041
1422
  description: z.ZodOptional<z.ZodString>;
1423
+ descriptionTruncated: z.ZodOptional<z.ZodBoolean>;
1042
1424
  input: z.ZodObject<{
1043
1425
  optional: z.ZodArray<z.ZodString>;
1044
1426
  propertyCount: z.ZodNumber;
@@ -1065,6 +1447,34 @@ declare const PortalBackendSearchResultSchema: z.ZodObject<{
1065
1447
  }, z.core.$strict>>;
1066
1448
  title: z.ZodOptional<z.ZodString>;
1067
1449
  name: z.ZodString;
1450
+ oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1451
+ accountProfiles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1452
+ accountLabel: z.ZodString;
1453
+ accountProfileId: z.core.$ZodBranded<z.ZodString, "OAuthAccountProfileId", "out">;
1454
+ }, z.core.$strict>>>;
1455
+ kind: z.ZodLiteral<"ready">;
1456
+ }, z.core.$strict>, z.ZodObject<{
1457
+ kind: z.ZodLiteral<"authorization-required">;
1458
+ }, z.core.$strict>, z.ZodObject<{
1459
+ kind: z.ZodLiteral<"reauthorization-required">;
1460
+ }, z.core.$strict>, z.ZodObject<{
1461
+ kind: z.ZodLiteral<"scope-insufficient">;
1462
+ }, z.core.$strict>, z.ZodObject<{
1463
+ kind: z.ZodLiteral<"authorization-status-unavailable">;
1464
+ }, z.core.$strict>], "kind">>;
1465
+ oauthRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1466
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
1467
+ kind: z.ZodLiteral<"oauth-account-profile">;
1468
+ minimumPermission: z.ZodEnum<{
1469
+ read: "read";
1470
+ write: "write";
1471
+ }>;
1472
+ serviceId: z.core.$ZodBranded<z.ZodString, "OAuthServiceId", "out">;
1473
+ }, z.core.$strict>, z.ZodObject<{
1474
+ accountProfileArgument: z.ZodLiteral<"accountProfile">;
1475
+ describeBeforeCall: z.ZodLiteral<true>;
1476
+ kind: z.ZodLiteral<"invocation-dependent-oauth-account-profile">;
1477
+ }, z.core.$strict>], "kind">>;
1068
1478
  toolRef: z.ZodString;
1069
1479
  inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
1070
1480
  outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -1075,14 +1485,14 @@ declare const PortalBackendSearchResultSchema: z.ZodObject<{
1075
1485
  }, z.core.$strict>, z.ZodObject<{
1076
1486
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
1077
1487
  code: z.ZodEnum<{
1078
- provider_unavailable: "provider_unavailable";
1079
- capability_denied: "capability_denied";
1080
1488
  approval_required: "approval_required";
1489
+ capability_denied: "capability_denied";
1081
1490
  validation_failed: "validation_failed";
1491
+ provider_unavailable: "provider_unavailable";
1082
1492
  execution_failed: "execution_failed";
1083
- output_truncated: "output_truncated";
1084
- timeout: "timeout";
1085
1493
  cancelled: "cancelled";
1494
+ timeout: "timeout";
1495
+ output_truncated: "output_truncated";
1086
1496
  artifact_unavailable: "artifact_unavailable";
1087
1497
  }>;
1088
1498
  level: z.ZodEnum<{
@@ -1096,29 +1506,29 @@ declare const PortalBackendSearchResultSchema: z.ZodObject<{
1096
1506
  }, z.core.$strict>>>;
1097
1507
  error: z.ZodObject<{
1098
1508
  code: z.ZodEnum<{
1099
- provider_unavailable: "provider_unavailable";
1100
- capability_denied: "capability_denied";
1509
+ invalid_request: "invalid_request";
1510
+ not_found: "not_found";
1511
+ not_authorized: "not_authorized";
1101
1512
  approval_required: "approval_required";
1513
+ capability_denied: "capability_denied";
1102
1514
  validation_failed: "validation_failed";
1515
+ provider_unavailable: "provider_unavailable";
1103
1516
  execution_failed: "execution_failed";
1104
- timeout: "timeout";
1105
1517
  cancelled: "cancelled";
1106
- invalid_request: "invalid_request";
1107
- not_found: "not_found";
1108
- not_authorized: "not_authorized";
1518
+ timeout: "timeout";
1109
1519
  }>;
1110
1520
  message: z.ZodString;
1111
1521
  retryable: z.ZodOptional<z.ZodBoolean>;
1112
1522
  safeDiagnostic: z.ZodOptional<z.ZodObject<{
1113
1523
  code: z.ZodEnum<{
1114
- provider_unavailable: "provider_unavailable";
1115
- capability_denied: "capability_denied";
1116
1524
  approval_required: "approval_required";
1525
+ capability_denied: "capability_denied";
1117
1526
  validation_failed: "validation_failed";
1527
+ provider_unavailable: "provider_unavailable";
1118
1528
  execution_failed: "execution_failed";
1119
- output_truncated: "output_truncated";
1120
- timeout: "timeout";
1121
1529
  cancelled: "cancelled";
1530
+ timeout: "timeout";
1531
+ output_truncated: "output_truncated";
1122
1532
  artifact_unavailable: "artifact_unavailable";
1123
1533
  }>;
1124
1534
  level: z.ZodEnum<{
@@ -1141,14 +1551,14 @@ declare const PortalBackendDescribeResultSchema: z.ZodObject<{
1141
1551
  auditCorrelationId: z.ZodOptional<z.ZodString>;
1142
1552
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
1143
1553
  code: z.ZodEnum<{
1144
- provider_unavailable: "provider_unavailable";
1145
- capability_denied: "capability_denied";
1146
1554
  approval_required: "approval_required";
1555
+ capability_denied: "capability_denied";
1147
1556
  validation_failed: "validation_failed";
1557
+ provider_unavailable: "provider_unavailable";
1148
1558
  execution_failed: "execution_failed";
1149
- output_truncated: "output_truncated";
1150
- timeout: "timeout";
1151
1559
  cancelled: "cancelled";
1560
+ timeout: "timeout";
1561
+ output_truncated: "output_truncated";
1152
1562
  artifact_unavailable: "artifact_unavailable";
1153
1563
  }>;
1154
1564
  level: z.ZodEnum<{
@@ -1170,14 +1580,14 @@ declare const PortalBackendDescribeResultSchema: z.ZodObject<{
1170
1580
  }, z.core.$strict>>>;
1171
1581
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
1172
1582
  code: z.ZodEnum<{
1173
- provider_unavailable: "provider_unavailable";
1174
- capability_denied: "capability_denied";
1175
1583
  approval_required: "approval_required";
1584
+ capability_denied: "capability_denied";
1176
1585
  validation_failed: "validation_failed";
1586
+ provider_unavailable: "provider_unavailable";
1177
1587
  execution_failed: "execution_failed";
1178
- output_truncated: "output_truncated";
1179
- timeout: "timeout";
1180
1588
  cancelled: "cancelled";
1589
+ timeout: "timeout";
1590
+ output_truncated: "output_truncated";
1181
1591
  artifact_unavailable: "artifact_unavailable";
1182
1592
  }>;
1183
1593
  level: z.ZodEnum<{
@@ -1198,6 +1608,15 @@ declare const PortalBackendDescribeResultSchema: z.ZodObject<{
1198
1608
  value: z.ZodObject<{
1199
1609
  tools: z.ZodArray<z.ZodObject<{
1200
1610
  annotations: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
1611
+ callDisposition: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1612
+ kind: z.ZodLiteral<"without-approval">;
1613
+ }, z.core.$strict>, z.ZodObject<{
1614
+ kind: z.ZodLiteral<"requires-approval">;
1615
+ }, z.core.$strict>, z.ZodObject<{
1616
+ describeBeforeCall: z.ZodLiteral<true>;
1617
+ kind: z.ZodLiteral<"invocation-dependent">;
1618
+ }, z.core.$strict>], "kind">>;
1619
+ description: z.ZodOptional<z.ZodString>;
1201
1620
  inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
1202
1621
  namespace: z.ZodString;
1203
1622
  outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -1209,7 +1628,36 @@ declare const PortalBackendDescribeResultSchema: z.ZodObject<{
1209
1628
  describe_before_call: "describe_before_call";
1210
1629
  }>;
1211
1630
  }, z.core.$strict>>;
1631
+ title: z.ZodOptional<z.ZodString>;
1212
1632
  name: z.ZodString;
1633
+ oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1634
+ accountProfiles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1635
+ accountLabel: z.ZodString;
1636
+ accountProfileId: z.core.$ZodBranded<z.ZodString, "OAuthAccountProfileId", "out">;
1637
+ }, z.core.$strict>>>;
1638
+ kind: z.ZodLiteral<"ready">;
1639
+ }, z.core.$strict>, z.ZodObject<{
1640
+ kind: z.ZodLiteral<"authorization-required">;
1641
+ }, z.core.$strict>, z.ZodObject<{
1642
+ kind: z.ZodLiteral<"reauthorization-required">;
1643
+ }, z.core.$strict>, z.ZodObject<{
1644
+ kind: z.ZodLiteral<"scope-insufficient">;
1645
+ }, z.core.$strict>, z.ZodObject<{
1646
+ kind: z.ZodLiteral<"authorization-status-unavailable">;
1647
+ }, z.core.$strict>], "kind">>;
1648
+ oauthRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1649
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
1650
+ kind: z.ZodLiteral<"oauth-account-profile">;
1651
+ minimumPermission: z.ZodEnum<{
1652
+ read: "read";
1653
+ write: "write";
1654
+ }>;
1655
+ serviceId: z.core.$ZodBranded<z.ZodString, "OAuthServiceId", "out">;
1656
+ }, z.core.$strict>, z.ZodObject<{
1657
+ accountProfileArgument: z.ZodLiteral<"accountProfile">;
1658
+ describeBeforeCall: z.ZodLiteral<true>;
1659
+ kind: z.ZodLiteral<"invocation-dependent-oauth-account-profile">;
1660
+ }, z.core.$strict>], "kind">>;
1213
1661
  toolRef: z.ZodString;
1214
1662
  typescriptHelper: z.ZodOptional<z.ZodString>;
1215
1663
  zod: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -1218,14 +1666,14 @@ declare const PortalBackendDescribeResultSchema: z.ZodObject<{
1218
1666
  }, z.core.$strict>, z.ZodObject<{
1219
1667
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
1220
1668
  code: z.ZodEnum<{
1221
- provider_unavailable: "provider_unavailable";
1222
- capability_denied: "capability_denied";
1223
1669
  approval_required: "approval_required";
1670
+ capability_denied: "capability_denied";
1224
1671
  validation_failed: "validation_failed";
1672
+ provider_unavailable: "provider_unavailable";
1225
1673
  execution_failed: "execution_failed";
1226
- output_truncated: "output_truncated";
1227
- timeout: "timeout";
1228
1674
  cancelled: "cancelled";
1675
+ timeout: "timeout";
1676
+ output_truncated: "output_truncated";
1229
1677
  artifact_unavailable: "artifact_unavailable";
1230
1678
  }>;
1231
1679
  level: z.ZodEnum<{
@@ -1239,29 +1687,29 @@ declare const PortalBackendDescribeResultSchema: z.ZodObject<{
1239
1687
  }, z.core.$strict>>>;
1240
1688
  error: z.ZodObject<{
1241
1689
  code: z.ZodEnum<{
1242
- provider_unavailable: "provider_unavailable";
1243
- capability_denied: "capability_denied";
1690
+ invalid_request: "invalid_request";
1691
+ not_found: "not_found";
1692
+ not_authorized: "not_authorized";
1244
1693
  approval_required: "approval_required";
1694
+ capability_denied: "capability_denied";
1245
1695
  validation_failed: "validation_failed";
1696
+ provider_unavailable: "provider_unavailable";
1246
1697
  execution_failed: "execution_failed";
1247
- timeout: "timeout";
1248
1698
  cancelled: "cancelled";
1249
- invalid_request: "invalid_request";
1250
- not_found: "not_found";
1251
- not_authorized: "not_authorized";
1699
+ timeout: "timeout";
1252
1700
  }>;
1253
1701
  message: z.ZodString;
1254
1702
  retryable: z.ZodOptional<z.ZodBoolean>;
1255
1703
  safeDiagnostic: z.ZodOptional<z.ZodObject<{
1256
1704
  code: z.ZodEnum<{
1257
- provider_unavailable: "provider_unavailable";
1258
- capability_denied: "capability_denied";
1259
1705
  approval_required: "approval_required";
1706
+ capability_denied: "capability_denied";
1260
1707
  validation_failed: "validation_failed";
1708
+ provider_unavailable: "provider_unavailable";
1261
1709
  execution_failed: "execution_failed";
1262
- output_truncated: "output_truncated";
1263
- timeout: "timeout";
1264
1710
  cancelled: "cancelled";
1711
+ timeout: "timeout";
1712
+ output_truncated: "output_truncated";
1265
1713
  artifact_unavailable: "artifact_unavailable";
1266
1714
  }>;
1267
1715
  level: z.ZodEnum<{
@@ -1290,14 +1738,14 @@ declare const PortalListItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1290
1738
  }, z.core.$strict>>>;
1291
1739
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
1292
1740
  code: z.ZodEnum<{
1293
- provider_unavailable: "provider_unavailable";
1294
- capability_denied: "capability_denied";
1295
1741
  approval_required: "approval_required";
1742
+ capability_denied: "capability_denied";
1296
1743
  validation_failed: "validation_failed";
1744
+ provider_unavailable: "provider_unavailable";
1297
1745
  execution_failed: "execution_failed";
1298
- output_truncated: "output_truncated";
1299
- timeout: "timeout";
1300
1746
  cancelled: "cancelled";
1747
+ timeout: "timeout";
1748
+ output_truncated: "output_truncated";
1301
1749
  artifact_unavailable: "artifact_unavailable";
1302
1750
  }>;
1303
1751
  level: z.ZodEnum<{
@@ -1319,7 +1767,16 @@ declare const PortalListItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1319
1767
  namespaces: z.ZodArray<z.ZodString>;
1320
1768
  nextCursor: z.ZodOptional<z.ZodString>;
1321
1769
  tools: z.ZodArray<z.ZodObject<{
1770
+ callDisposition: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1771
+ kind: z.ZodLiteral<"without-approval">;
1772
+ }, z.core.$strict>, z.ZodObject<{
1773
+ kind: z.ZodLiteral<"requires-approval">;
1774
+ }, z.core.$strict>, z.ZodObject<{
1775
+ describeBeforeCall: z.ZodLiteral<true>;
1776
+ kind: z.ZodLiteral<"invocation-dependent">;
1777
+ }, z.core.$strict>], "kind">>;
1322
1778
  description: z.ZodOptional<z.ZodString>;
1779
+ descriptionTruncated: z.ZodOptional<z.ZodBoolean>;
1323
1780
  input: z.ZodObject<{
1324
1781
  optional: z.ZodArray<z.ZodString>;
1325
1782
  propertyCount: z.ZodNumber;
@@ -1346,6 +1803,34 @@ declare const PortalListItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1346
1803
  }, z.core.$strict>>;
1347
1804
  title: z.ZodOptional<z.ZodString>;
1348
1805
  name: z.ZodString;
1806
+ oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1807
+ accountProfiles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1808
+ accountLabel: z.ZodString;
1809
+ accountProfileId: z.core.$ZodBranded<z.ZodString, "OAuthAccountProfileId", "out">;
1810
+ }, z.core.$strict>>>;
1811
+ kind: z.ZodLiteral<"ready">;
1812
+ }, z.core.$strict>, z.ZodObject<{
1813
+ kind: z.ZodLiteral<"authorization-required">;
1814
+ }, z.core.$strict>, z.ZodObject<{
1815
+ kind: z.ZodLiteral<"reauthorization-required">;
1816
+ }, z.core.$strict>, z.ZodObject<{
1817
+ kind: z.ZodLiteral<"scope-insufficient">;
1818
+ }, z.core.$strict>, z.ZodObject<{
1819
+ kind: z.ZodLiteral<"authorization-status-unavailable">;
1820
+ }, z.core.$strict>], "kind">>;
1821
+ oauthRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1822
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
1823
+ kind: z.ZodLiteral<"oauth-account-profile">;
1824
+ minimumPermission: z.ZodEnum<{
1825
+ read: "read";
1826
+ write: "write";
1827
+ }>;
1828
+ serviceId: z.core.$ZodBranded<z.ZodString, "OAuthServiceId", "out">;
1829
+ }, z.core.$strict>, z.ZodObject<{
1830
+ accountProfileArgument: z.ZodLiteral<"accountProfile">;
1831
+ describeBeforeCall: z.ZodLiteral<true>;
1832
+ kind: z.ZodLiteral<"invocation-dependent-oauth-account-profile">;
1833
+ }, z.core.$strict>], "kind">>;
1349
1834
  toolRef: z.ZodString;
1350
1835
  }, z.core.$strict>>;
1351
1836
  namespaceDiscovery: z.ZodArray<z.ZodObject<{
@@ -1356,14 +1841,14 @@ declare const PortalListItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1356
1841
  }, z.core.$strict>, z.ZodObject<{
1357
1842
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
1358
1843
  code: z.ZodEnum<{
1359
- provider_unavailable: "provider_unavailable";
1360
- capability_denied: "capability_denied";
1361
1844
  approval_required: "approval_required";
1845
+ capability_denied: "capability_denied";
1362
1846
  validation_failed: "validation_failed";
1847
+ provider_unavailable: "provider_unavailable";
1363
1848
  execution_failed: "execution_failed";
1364
- output_truncated: "output_truncated";
1365
- timeout: "timeout";
1366
1849
  cancelled: "cancelled";
1850
+ timeout: "timeout";
1851
+ output_truncated: "output_truncated";
1367
1852
  artifact_unavailable: "artifact_unavailable";
1368
1853
  }>;
1369
1854
  level: z.ZodEnum<{
@@ -1377,29 +1862,29 @@ declare const PortalListItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1377
1862
  }, z.core.$strict>>>;
1378
1863
  error: z.ZodObject<{
1379
1864
  code: z.ZodEnum<{
1380
- provider_unavailable: "provider_unavailable";
1381
- capability_denied: "capability_denied";
1865
+ invalid_request: "invalid_request";
1866
+ not_found: "not_found";
1867
+ not_authorized: "not_authorized";
1382
1868
  approval_required: "approval_required";
1869
+ capability_denied: "capability_denied";
1383
1870
  validation_failed: "validation_failed";
1871
+ provider_unavailable: "provider_unavailable";
1384
1872
  execution_failed: "execution_failed";
1385
- timeout: "timeout";
1386
1873
  cancelled: "cancelled";
1387
- invalid_request: "invalid_request";
1388
- not_found: "not_found";
1389
- not_authorized: "not_authorized";
1874
+ timeout: "timeout";
1390
1875
  }>;
1391
1876
  message: z.ZodString;
1392
1877
  retryable: z.ZodOptional<z.ZodBoolean>;
1393
1878
  safeDiagnostic: z.ZodOptional<z.ZodObject<{
1394
1879
  code: z.ZodEnum<{
1395
- provider_unavailable: "provider_unavailable";
1396
- capability_denied: "capability_denied";
1397
1880
  approval_required: "approval_required";
1881
+ capability_denied: "capability_denied";
1398
1882
  validation_failed: "validation_failed";
1883
+ provider_unavailable: "provider_unavailable";
1399
1884
  execution_failed: "execution_failed";
1400
- output_truncated: "output_truncated";
1401
- timeout: "timeout";
1402
1885
  cancelled: "cancelled";
1886
+ timeout: "timeout";
1887
+ output_truncated: "output_truncated";
1403
1888
  artifact_unavailable: "artifact_unavailable";
1404
1889
  }>;
1405
1890
  level: z.ZodEnum<{
@@ -1425,14 +1910,14 @@ declare const PortalSearchItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject
1425
1910
  }, z.core.$strict>>>;
1426
1911
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
1427
1912
  code: z.ZodEnum<{
1428
- provider_unavailable: "provider_unavailable";
1429
- capability_denied: "capability_denied";
1430
1913
  approval_required: "approval_required";
1914
+ capability_denied: "capability_denied";
1431
1915
  validation_failed: "validation_failed";
1916
+ provider_unavailable: "provider_unavailable";
1432
1917
  execution_failed: "execution_failed";
1433
- output_truncated: "output_truncated";
1434
- timeout: "timeout";
1435
1918
  cancelled: "cancelled";
1919
+ timeout: "timeout";
1920
+ output_truncated: "output_truncated";
1436
1921
  artifact_unavailable: "artifact_unavailable";
1437
1922
  }>;
1438
1923
  level: z.ZodEnum<{
@@ -1452,7 +1937,16 @@ declare const PortalSearchItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject
1452
1937
  }, z.core.$strict>>;
1453
1938
  value: z.ZodObject<{
1454
1939
  tools: z.ZodArray<z.ZodObject<{
1940
+ callDisposition: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1941
+ kind: z.ZodLiteral<"without-approval">;
1942
+ }, z.core.$strict>, z.ZodObject<{
1943
+ kind: z.ZodLiteral<"requires-approval">;
1944
+ }, z.core.$strict>, z.ZodObject<{
1945
+ describeBeforeCall: z.ZodLiteral<true>;
1946
+ kind: z.ZodLiteral<"invocation-dependent">;
1947
+ }, z.core.$strict>], "kind">>;
1455
1948
  description: z.ZodOptional<z.ZodString>;
1949
+ descriptionTruncated: z.ZodOptional<z.ZodBoolean>;
1456
1950
  input: z.ZodObject<{
1457
1951
  optional: z.ZodArray<z.ZodString>;
1458
1952
  propertyCount: z.ZodNumber;
@@ -1479,6 +1973,34 @@ declare const PortalSearchItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject
1479
1973
  }, z.core.$strict>>;
1480
1974
  title: z.ZodOptional<z.ZodString>;
1481
1975
  name: z.ZodString;
1976
+ oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1977
+ accountProfiles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1978
+ accountLabel: z.ZodString;
1979
+ accountProfileId: z.core.$ZodBranded<z.ZodString, "OAuthAccountProfileId", "out">;
1980
+ }, z.core.$strict>>>;
1981
+ kind: z.ZodLiteral<"ready">;
1982
+ }, z.core.$strict>, z.ZodObject<{
1983
+ kind: z.ZodLiteral<"authorization-required">;
1984
+ }, z.core.$strict>, z.ZodObject<{
1985
+ kind: z.ZodLiteral<"reauthorization-required">;
1986
+ }, z.core.$strict>, z.ZodObject<{
1987
+ kind: z.ZodLiteral<"scope-insufficient">;
1988
+ }, z.core.$strict>, z.ZodObject<{
1989
+ kind: z.ZodLiteral<"authorization-status-unavailable">;
1990
+ }, z.core.$strict>], "kind">>;
1991
+ oauthRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1992
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
1993
+ kind: z.ZodLiteral<"oauth-account-profile">;
1994
+ minimumPermission: z.ZodEnum<{
1995
+ read: "read";
1996
+ write: "write";
1997
+ }>;
1998
+ serviceId: z.core.$ZodBranded<z.ZodString, "OAuthServiceId", "out">;
1999
+ }, z.core.$strict>, z.ZodObject<{
2000
+ accountProfileArgument: z.ZodLiteral<"accountProfile">;
2001
+ describeBeforeCall: z.ZodLiteral<true>;
2002
+ kind: z.ZodLiteral<"invocation-dependent-oauth-account-profile">;
2003
+ }, z.core.$strict>], "kind">>;
1482
2004
  toolRef: z.ZodString;
1483
2005
  inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
1484
2006
  outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -1493,14 +2015,14 @@ declare const PortalSearchItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject
1493
2015
  }, z.core.$strict>, z.ZodObject<{
1494
2016
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
1495
2017
  code: z.ZodEnum<{
1496
- provider_unavailable: "provider_unavailable";
1497
- capability_denied: "capability_denied";
1498
2018
  approval_required: "approval_required";
2019
+ capability_denied: "capability_denied";
1499
2020
  validation_failed: "validation_failed";
2021
+ provider_unavailable: "provider_unavailable";
1500
2022
  execution_failed: "execution_failed";
1501
- output_truncated: "output_truncated";
1502
- timeout: "timeout";
1503
2023
  cancelled: "cancelled";
2024
+ timeout: "timeout";
2025
+ output_truncated: "output_truncated";
1504
2026
  artifact_unavailable: "artifact_unavailable";
1505
2027
  }>;
1506
2028
  level: z.ZodEnum<{
@@ -1514,29 +2036,29 @@ declare const PortalSearchItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject
1514
2036
  }, z.core.$strict>>>;
1515
2037
  error: z.ZodObject<{
1516
2038
  code: z.ZodEnum<{
1517
- provider_unavailable: "provider_unavailable";
1518
- capability_denied: "capability_denied";
2039
+ invalid_request: "invalid_request";
2040
+ not_found: "not_found";
2041
+ not_authorized: "not_authorized";
1519
2042
  approval_required: "approval_required";
2043
+ capability_denied: "capability_denied";
1520
2044
  validation_failed: "validation_failed";
2045
+ provider_unavailable: "provider_unavailable";
1521
2046
  execution_failed: "execution_failed";
1522
- timeout: "timeout";
1523
2047
  cancelled: "cancelled";
1524
- invalid_request: "invalid_request";
1525
- not_found: "not_found";
1526
- not_authorized: "not_authorized";
2048
+ timeout: "timeout";
1527
2049
  }>;
1528
2050
  message: z.ZodString;
1529
2051
  retryable: z.ZodOptional<z.ZodBoolean>;
1530
2052
  safeDiagnostic: z.ZodOptional<z.ZodObject<{
1531
2053
  code: z.ZodEnum<{
1532
- provider_unavailable: "provider_unavailable";
1533
- capability_denied: "capability_denied";
1534
2054
  approval_required: "approval_required";
2055
+ capability_denied: "capability_denied";
1535
2056
  validation_failed: "validation_failed";
2057
+ provider_unavailable: "provider_unavailable";
1536
2058
  execution_failed: "execution_failed";
1537
- output_truncated: "output_truncated";
1538
- timeout: "timeout";
1539
2059
  cancelled: "cancelled";
2060
+ timeout: "timeout";
2061
+ output_truncated: "output_truncated";
1540
2062
  artifact_unavailable: "artifact_unavailable";
1541
2063
  }>;
1542
2064
  level: z.ZodEnum<{
@@ -1562,14 +2084,14 @@ declare const PortalDescribeItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1562
2084
  }, z.core.$strict>>>;
1563
2085
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
1564
2086
  code: z.ZodEnum<{
1565
- provider_unavailable: "provider_unavailable";
1566
- capability_denied: "capability_denied";
1567
2087
  approval_required: "approval_required";
2088
+ capability_denied: "capability_denied";
1568
2089
  validation_failed: "validation_failed";
2090
+ provider_unavailable: "provider_unavailable";
1569
2091
  execution_failed: "execution_failed";
1570
- output_truncated: "output_truncated";
1571
- timeout: "timeout";
1572
2092
  cancelled: "cancelled";
2093
+ timeout: "timeout";
2094
+ output_truncated: "output_truncated";
1573
2095
  artifact_unavailable: "artifact_unavailable";
1574
2096
  }>;
1575
2097
  level: z.ZodEnum<{
@@ -1590,6 +2112,15 @@ declare const PortalDescribeItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1590
2112
  value: z.ZodObject<{
1591
2113
  tools: z.ZodArray<z.ZodObject<{
1592
2114
  annotations: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
2115
+ callDisposition: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2116
+ kind: z.ZodLiteral<"without-approval">;
2117
+ }, z.core.$strict>, z.ZodObject<{
2118
+ kind: z.ZodLiteral<"requires-approval">;
2119
+ }, z.core.$strict>, z.ZodObject<{
2120
+ describeBeforeCall: z.ZodLiteral<true>;
2121
+ kind: z.ZodLiteral<"invocation-dependent">;
2122
+ }, z.core.$strict>], "kind">>;
2123
+ description: z.ZodOptional<z.ZodString>;
1593
2124
  inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
1594
2125
  namespace: z.ZodString;
1595
2126
  outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -1601,7 +2132,36 @@ declare const PortalDescribeItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1601
2132
  describe_before_call: "describe_before_call";
1602
2133
  }>;
1603
2134
  }, z.core.$strict>>;
2135
+ title: z.ZodOptional<z.ZodString>;
1604
2136
  name: z.ZodString;
2137
+ oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2138
+ accountProfiles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
2139
+ accountLabel: z.ZodString;
2140
+ accountProfileId: z.core.$ZodBranded<z.ZodString, "OAuthAccountProfileId", "out">;
2141
+ }, z.core.$strict>>>;
2142
+ kind: z.ZodLiteral<"ready">;
2143
+ }, z.core.$strict>, z.ZodObject<{
2144
+ kind: z.ZodLiteral<"authorization-required">;
2145
+ }, z.core.$strict>, z.ZodObject<{
2146
+ kind: z.ZodLiteral<"reauthorization-required">;
2147
+ }, z.core.$strict>, z.ZodObject<{
2148
+ kind: z.ZodLiteral<"scope-insufficient">;
2149
+ }, z.core.$strict>, z.ZodObject<{
2150
+ kind: z.ZodLiteral<"authorization-status-unavailable">;
2151
+ }, z.core.$strict>], "kind">>;
2152
+ oauthRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2153
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
2154
+ kind: z.ZodLiteral<"oauth-account-profile">;
2155
+ minimumPermission: z.ZodEnum<{
2156
+ read: "read";
2157
+ write: "write";
2158
+ }>;
2159
+ serviceId: z.core.$ZodBranded<z.ZodString, "OAuthServiceId", "out">;
2160
+ }, z.core.$strict>, z.ZodObject<{
2161
+ accountProfileArgument: z.ZodLiteral<"accountProfile">;
2162
+ describeBeforeCall: z.ZodLiteral<true>;
2163
+ kind: z.ZodLiteral<"invocation-dependent-oauth-account-profile">;
2164
+ }, z.core.$strict>], "kind">>;
1605
2165
  toolRef: z.ZodString;
1606
2166
  typescriptHelper: z.ZodOptional<z.ZodString>;
1607
2167
  zod: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -1614,14 +2174,14 @@ declare const PortalDescribeItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1614
2174
  }, z.core.$strict>, z.ZodObject<{
1615
2175
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
1616
2176
  code: z.ZodEnum<{
1617
- provider_unavailable: "provider_unavailable";
1618
- capability_denied: "capability_denied";
1619
2177
  approval_required: "approval_required";
2178
+ capability_denied: "capability_denied";
1620
2179
  validation_failed: "validation_failed";
2180
+ provider_unavailable: "provider_unavailable";
1621
2181
  execution_failed: "execution_failed";
1622
- output_truncated: "output_truncated";
1623
- timeout: "timeout";
1624
2182
  cancelled: "cancelled";
2183
+ timeout: "timeout";
2184
+ output_truncated: "output_truncated";
1625
2185
  artifact_unavailable: "artifact_unavailable";
1626
2186
  }>;
1627
2187
  level: z.ZodEnum<{
@@ -1635,29 +2195,29 @@ declare const PortalDescribeItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1635
2195
  }, z.core.$strict>>>;
1636
2196
  error: z.ZodObject<{
1637
2197
  code: z.ZodEnum<{
1638
- provider_unavailable: "provider_unavailable";
1639
- capability_denied: "capability_denied";
2198
+ invalid_request: "invalid_request";
2199
+ not_found: "not_found";
2200
+ not_authorized: "not_authorized";
1640
2201
  approval_required: "approval_required";
2202
+ capability_denied: "capability_denied";
1641
2203
  validation_failed: "validation_failed";
2204
+ provider_unavailable: "provider_unavailable";
1642
2205
  execution_failed: "execution_failed";
1643
- timeout: "timeout";
1644
2206
  cancelled: "cancelled";
1645
- invalid_request: "invalid_request";
1646
- not_found: "not_found";
1647
- not_authorized: "not_authorized";
2207
+ timeout: "timeout";
1648
2208
  }>;
1649
2209
  message: z.ZodString;
1650
2210
  retryable: z.ZodOptional<z.ZodBoolean>;
1651
2211
  safeDiagnostic: z.ZodOptional<z.ZodObject<{
1652
2212
  code: z.ZodEnum<{
1653
- provider_unavailable: "provider_unavailable";
1654
- capability_denied: "capability_denied";
1655
2213
  approval_required: "approval_required";
2214
+ capability_denied: "capability_denied";
1656
2215
  validation_failed: "validation_failed";
2216
+ provider_unavailable: "provider_unavailable";
1657
2217
  execution_failed: "execution_failed";
1658
- output_truncated: "output_truncated";
1659
- timeout: "timeout";
1660
2218
  cancelled: "cancelled";
2219
+ timeout: "timeout";
2220
+ output_truncated: "output_truncated";
1661
2221
  artifact_unavailable: "artifact_unavailable";
1662
2222
  }>;
1663
2223
  level: z.ZodEnum<{
@@ -1677,14 +2237,14 @@ declare const PortalCallResultSchema: z.ZodObject<{
1677
2237
  auditCorrelationId: z.ZodOptional<z.ZodString>;
1678
2238
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
1679
2239
  code: z.ZodEnum<{
1680
- provider_unavailable: "provider_unavailable";
1681
- capability_denied: "capability_denied";
1682
2240
  approval_required: "approval_required";
2241
+ capability_denied: "capability_denied";
1683
2242
  validation_failed: "validation_failed";
2243
+ provider_unavailable: "provider_unavailable";
1684
2244
  execution_failed: "execution_failed";
1685
- output_truncated: "output_truncated";
1686
- timeout: "timeout";
1687
2245
  cancelled: "cancelled";
2246
+ timeout: "timeout";
2247
+ output_truncated: "output_truncated";
1688
2248
  artifact_unavailable: "artifact_unavailable";
1689
2249
  }>;
1690
2250
  level: z.ZodEnum<{
@@ -1706,14 +2266,14 @@ declare const PortalCallResultSchema: z.ZodObject<{
1706
2266
  }, z.core.$strict>>>;
1707
2267
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
1708
2268
  code: z.ZodEnum<{
1709
- provider_unavailable: "provider_unavailable";
1710
- capability_denied: "capability_denied";
1711
2269
  approval_required: "approval_required";
2270
+ capability_denied: "capability_denied";
1712
2271
  validation_failed: "validation_failed";
2272
+ provider_unavailable: "provider_unavailable";
1713
2273
  execution_failed: "execution_failed";
1714
- output_truncated: "output_truncated";
1715
- timeout: "timeout";
1716
2274
  cancelled: "cancelled";
2275
+ timeout: "timeout";
2276
+ output_truncated: "output_truncated";
1717
2277
  artifact_unavailable: "artifact_unavailable";
1718
2278
  }>;
1719
2279
  level: z.ZodEnum<{
@@ -1743,14 +2303,14 @@ declare const PortalCallResultSchema: z.ZodObject<{
1743
2303
  }, z.core.$strict>, z.ZodObject<{
1744
2304
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
1745
2305
  code: z.ZodEnum<{
1746
- provider_unavailable: "provider_unavailable";
1747
- capability_denied: "capability_denied";
1748
2306
  approval_required: "approval_required";
2307
+ capability_denied: "capability_denied";
1749
2308
  validation_failed: "validation_failed";
2309
+ provider_unavailable: "provider_unavailable";
1750
2310
  execution_failed: "execution_failed";
1751
- output_truncated: "output_truncated";
1752
- timeout: "timeout";
1753
2311
  cancelled: "cancelled";
2312
+ timeout: "timeout";
2313
+ output_truncated: "output_truncated";
1754
2314
  artifact_unavailable: "artifact_unavailable";
1755
2315
  }>;
1756
2316
  level: z.ZodEnum<{
@@ -1764,29 +2324,29 @@ declare const PortalCallResultSchema: z.ZodObject<{
1764
2324
  }, z.core.$strict>>>;
1765
2325
  error: z.ZodObject<{
1766
2326
  code: z.ZodEnum<{
1767
- provider_unavailable: "provider_unavailable";
1768
- capability_denied: "capability_denied";
2327
+ invalid_request: "invalid_request";
2328
+ not_found: "not_found";
2329
+ not_authorized: "not_authorized";
1769
2330
  approval_required: "approval_required";
2331
+ capability_denied: "capability_denied";
1770
2332
  validation_failed: "validation_failed";
2333
+ provider_unavailable: "provider_unavailable";
1771
2334
  execution_failed: "execution_failed";
1772
- timeout: "timeout";
1773
2335
  cancelled: "cancelled";
1774
- invalid_request: "invalid_request";
1775
- not_found: "not_found";
1776
- not_authorized: "not_authorized";
2336
+ timeout: "timeout";
1777
2337
  }>;
1778
2338
  message: z.ZodString;
1779
2339
  retryable: z.ZodOptional<z.ZodBoolean>;
1780
2340
  safeDiagnostic: z.ZodOptional<z.ZodObject<{
1781
2341
  code: z.ZodEnum<{
1782
- provider_unavailable: "provider_unavailable";
1783
- capability_denied: "capability_denied";
1784
2342
  approval_required: "approval_required";
2343
+ capability_denied: "capability_denied";
1785
2344
  validation_failed: "validation_failed";
2345
+ provider_unavailable: "provider_unavailable";
1786
2346
  execution_failed: "execution_failed";
1787
- output_truncated: "output_truncated";
1788
- timeout: "timeout";
1789
2347
  cancelled: "cancelled";
2348
+ timeout: "timeout";
2349
+ output_truncated: "output_truncated";
1790
2350
  artifact_unavailable: "artifact_unavailable";
1791
2351
  }>;
1792
2352
  level: z.ZodEnum<{
@@ -1843,14 +2403,14 @@ declare const PortalCallResultSchema: z.ZodObject<{
1843
2403
  retryable: z.ZodOptional<z.ZodBoolean>;
1844
2404
  safeDiagnostic: z.ZodOptional<z.ZodObject<{
1845
2405
  code: z.ZodEnum<{
1846
- provider_unavailable: "provider_unavailable";
1847
- capability_denied: "capability_denied";
1848
2406
  approval_required: "approval_required";
2407
+ capability_denied: "capability_denied";
1849
2408
  validation_failed: "validation_failed";
2409
+ provider_unavailable: "provider_unavailable";
1850
2410
  execution_failed: "execution_failed";
1851
- output_truncated: "output_truncated";
1852
- timeout: "timeout";
1853
2411
  cancelled: "cancelled";
2412
+ timeout: "timeout";
2413
+ output_truncated: "output_truncated";
1854
2414
  artifact_unavailable: "artifact_unavailable";
1855
2415
  }>;
1856
2416
  level: z.ZodEnum<{
@@ -1881,14 +2441,14 @@ declare const PortalListResultSchema: z.ZodObject<{
1881
2441
  auditCorrelationId: z.ZodOptional<z.ZodString>;
1882
2442
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
1883
2443
  code: z.ZodEnum<{
1884
- provider_unavailable: "provider_unavailable";
1885
- capability_denied: "capability_denied";
1886
2444
  approval_required: "approval_required";
2445
+ capability_denied: "capability_denied";
1887
2446
  validation_failed: "validation_failed";
2447
+ provider_unavailable: "provider_unavailable";
1888
2448
  execution_failed: "execution_failed";
1889
- output_truncated: "output_truncated";
1890
- timeout: "timeout";
1891
2449
  cancelled: "cancelled";
2450
+ timeout: "timeout";
2451
+ output_truncated: "output_truncated";
1892
2452
  artifact_unavailable: "artifact_unavailable";
1893
2453
  }>;
1894
2454
  level: z.ZodEnum<{
@@ -1910,14 +2470,14 @@ declare const PortalListResultSchema: z.ZodObject<{
1910
2470
  }, z.core.$strict>>>;
1911
2471
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
1912
2472
  code: z.ZodEnum<{
1913
- provider_unavailable: "provider_unavailable";
1914
- capability_denied: "capability_denied";
1915
2473
  approval_required: "approval_required";
2474
+ capability_denied: "capability_denied";
1916
2475
  validation_failed: "validation_failed";
2476
+ provider_unavailable: "provider_unavailable";
1917
2477
  execution_failed: "execution_failed";
1918
- output_truncated: "output_truncated";
1919
- timeout: "timeout";
1920
2478
  cancelled: "cancelled";
2479
+ timeout: "timeout";
2480
+ output_truncated: "output_truncated";
1921
2481
  artifact_unavailable: "artifact_unavailable";
1922
2482
  }>;
1923
2483
  level: z.ZodEnum<{
@@ -1939,7 +2499,16 @@ declare const PortalListResultSchema: z.ZodObject<{
1939
2499
  namespaces: z.ZodArray<z.ZodString>;
1940
2500
  nextCursor: z.ZodOptional<z.ZodString>;
1941
2501
  tools: z.ZodArray<z.ZodObject<{
2502
+ callDisposition: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2503
+ kind: z.ZodLiteral<"without-approval">;
2504
+ }, z.core.$strict>, z.ZodObject<{
2505
+ kind: z.ZodLiteral<"requires-approval">;
2506
+ }, z.core.$strict>, z.ZodObject<{
2507
+ describeBeforeCall: z.ZodLiteral<true>;
2508
+ kind: z.ZodLiteral<"invocation-dependent">;
2509
+ }, z.core.$strict>], "kind">>;
1942
2510
  description: z.ZodOptional<z.ZodString>;
2511
+ descriptionTruncated: z.ZodOptional<z.ZodBoolean>;
1943
2512
  input: z.ZodObject<{
1944
2513
  optional: z.ZodArray<z.ZodString>;
1945
2514
  propertyCount: z.ZodNumber;
@@ -1966,6 +2535,34 @@ declare const PortalListResultSchema: z.ZodObject<{
1966
2535
  }, z.core.$strict>>;
1967
2536
  title: z.ZodOptional<z.ZodString>;
1968
2537
  name: z.ZodString;
2538
+ oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2539
+ accountProfiles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
2540
+ accountLabel: z.ZodString;
2541
+ accountProfileId: z.core.$ZodBranded<z.ZodString, "OAuthAccountProfileId", "out">;
2542
+ }, z.core.$strict>>>;
2543
+ kind: z.ZodLiteral<"ready">;
2544
+ }, z.core.$strict>, z.ZodObject<{
2545
+ kind: z.ZodLiteral<"authorization-required">;
2546
+ }, z.core.$strict>, z.ZodObject<{
2547
+ kind: z.ZodLiteral<"reauthorization-required">;
2548
+ }, z.core.$strict>, z.ZodObject<{
2549
+ kind: z.ZodLiteral<"scope-insufficient">;
2550
+ }, z.core.$strict>, z.ZodObject<{
2551
+ kind: z.ZodLiteral<"authorization-status-unavailable">;
2552
+ }, z.core.$strict>], "kind">>;
2553
+ oauthRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2554
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
2555
+ kind: z.ZodLiteral<"oauth-account-profile">;
2556
+ minimumPermission: z.ZodEnum<{
2557
+ read: "read";
2558
+ write: "write";
2559
+ }>;
2560
+ serviceId: z.core.$ZodBranded<z.ZodString, "OAuthServiceId", "out">;
2561
+ }, z.core.$strict>, z.ZodObject<{
2562
+ accountProfileArgument: z.ZodLiteral<"accountProfile">;
2563
+ describeBeforeCall: z.ZodLiteral<true>;
2564
+ kind: z.ZodLiteral<"invocation-dependent-oauth-account-profile">;
2565
+ }, z.core.$strict>], "kind">>;
1969
2566
  toolRef: z.ZodString;
1970
2567
  }, z.core.$strict>>;
1971
2568
  namespaceDiscovery: z.ZodArray<z.ZodObject<{
@@ -1976,14 +2573,14 @@ declare const PortalListResultSchema: z.ZodObject<{
1976
2573
  }, z.core.$strict>, z.ZodObject<{
1977
2574
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
1978
2575
  code: z.ZodEnum<{
1979
- provider_unavailable: "provider_unavailable";
1980
- capability_denied: "capability_denied";
1981
2576
  approval_required: "approval_required";
2577
+ capability_denied: "capability_denied";
1982
2578
  validation_failed: "validation_failed";
2579
+ provider_unavailable: "provider_unavailable";
1983
2580
  execution_failed: "execution_failed";
1984
- output_truncated: "output_truncated";
1985
- timeout: "timeout";
1986
2581
  cancelled: "cancelled";
2582
+ timeout: "timeout";
2583
+ output_truncated: "output_truncated";
1987
2584
  artifact_unavailable: "artifact_unavailable";
1988
2585
  }>;
1989
2586
  level: z.ZodEnum<{
@@ -1997,29 +2594,29 @@ declare const PortalListResultSchema: z.ZodObject<{
1997
2594
  }, z.core.$strict>>>;
1998
2595
  error: z.ZodObject<{
1999
2596
  code: z.ZodEnum<{
2000
- provider_unavailable: "provider_unavailable";
2001
- capability_denied: "capability_denied";
2597
+ invalid_request: "invalid_request";
2598
+ not_found: "not_found";
2599
+ not_authorized: "not_authorized";
2002
2600
  approval_required: "approval_required";
2601
+ capability_denied: "capability_denied";
2003
2602
  validation_failed: "validation_failed";
2603
+ provider_unavailable: "provider_unavailable";
2004
2604
  execution_failed: "execution_failed";
2005
- timeout: "timeout";
2006
2605
  cancelled: "cancelled";
2007
- invalid_request: "invalid_request";
2008
- not_found: "not_found";
2009
- not_authorized: "not_authorized";
2606
+ timeout: "timeout";
2010
2607
  }>;
2011
2608
  message: z.ZodString;
2012
2609
  retryable: z.ZodOptional<z.ZodBoolean>;
2013
2610
  safeDiagnostic: z.ZodOptional<z.ZodObject<{
2014
2611
  code: z.ZodEnum<{
2015
- provider_unavailable: "provider_unavailable";
2016
- capability_denied: "capability_denied";
2017
2612
  approval_required: "approval_required";
2613
+ capability_denied: "capability_denied";
2018
2614
  validation_failed: "validation_failed";
2615
+ provider_unavailable: "provider_unavailable";
2019
2616
  execution_failed: "execution_failed";
2020
- output_truncated: "output_truncated";
2021
- timeout: "timeout";
2022
2617
  cancelled: "cancelled";
2618
+ timeout: "timeout";
2619
+ output_truncated: "output_truncated";
2023
2620
  artifact_unavailable: "artifact_unavailable";
2024
2621
  }>;
2025
2622
  level: z.ZodEnum<{
@@ -2042,14 +2639,14 @@ declare const PortalSearchResultSchema: z.ZodObject<{
2042
2639
  auditCorrelationId: z.ZodOptional<z.ZodString>;
2043
2640
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
2044
2641
  code: z.ZodEnum<{
2045
- provider_unavailable: "provider_unavailable";
2046
- capability_denied: "capability_denied";
2047
2642
  approval_required: "approval_required";
2643
+ capability_denied: "capability_denied";
2048
2644
  validation_failed: "validation_failed";
2645
+ provider_unavailable: "provider_unavailable";
2049
2646
  execution_failed: "execution_failed";
2050
- output_truncated: "output_truncated";
2051
- timeout: "timeout";
2052
2647
  cancelled: "cancelled";
2648
+ timeout: "timeout";
2649
+ output_truncated: "output_truncated";
2053
2650
  artifact_unavailable: "artifact_unavailable";
2054
2651
  }>;
2055
2652
  level: z.ZodEnum<{
@@ -2071,14 +2668,14 @@ declare const PortalSearchResultSchema: z.ZodObject<{
2071
2668
  }, z.core.$strict>>>;
2072
2669
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
2073
2670
  code: z.ZodEnum<{
2074
- provider_unavailable: "provider_unavailable";
2075
- capability_denied: "capability_denied";
2076
2671
  approval_required: "approval_required";
2672
+ capability_denied: "capability_denied";
2077
2673
  validation_failed: "validation_failed";
2674
+ provider_unavailable: "provider_unavailable";
2078
2675
  execution_failed: "execution_failed";
2079
- output_truncated: "output_truncated";
2080
- timeout: "timeout";
2081
2676
  cancelled: "cancelled";
2677
+ timeout: "timeout";
2678
+ output_truncated: "output_truncated";
2082
2679
  artifact_unavailable: "artifact_unavailable";
2083
2680
  }>;
2084
2681
  level: z.ZodEnum<{
@@ -2098,7 +2695,16 @@ declare const PortalSearchResultSchema: z.ZodObject<{
2098
2695
  }, z.core.$strict>>;
2099
2696
  value: z.ZodObject<{
2100
2697
  tools: z.ZodArray<z.ZodObject<{
2698
+ callDisposition: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2699
+ kind: z.ZodLiteral<"without-approval">;
2700
+ }, z.core.$strict>, z.ZodObject<{
2701
+ kind: z.ZodLiteral<"requires-approval">;
2702
+ }, z.core.$strict>, z.ZodObject<{
2703
+ describeBeforeCall: z.ZodLiteral<true>;
2704
+ kind: z.ZodLiteral<"invocation-dependent">;
2705
+ }, z.core.$strict>], "kind">>;
2101
2706
  description: z.ZodOptional<z.ZodString>;
2707
+ descriptionTruncated: z.ZodOptional<z.ZodBoolean>;
2102
2708
  input: z.ZodObject<{
2103
2709
  optional: z.ZodArray<z.ZodString>;
2104
2710
  propertyCount: z.ZodNumber;
@@ -2125,6 +2731,34 @@ declare const PortalSearchResultSchema: z.ZodObject<{
2125
2731
  }, z.core.$strict>>;
2126
2732
  title: z.ZodOptional<z.ZodString>;
2127
2733
  name: z.ZodString;
2734
+ oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2735
+ accountProfiles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
2736
+ accountLabel: z.ZodString;
2737
+ accountProfileId: z.core.$ZodBranded<z.ZodString, "OAuthAccountProfileId", "out">;
2738
+ }, z.core.$strict>>>;
2739
+ kind: z.ZodLiteral<"ready">;
2740
+ }, z.core.$strict>, z.ZodObject<{
2741
+ kind: z.ZodLiteral<"authorization-required">;
2742
+ }, z.core.$strict>, z.ZodObject<{
2743
+ kind: z.ZodLiteral<"reauthorization-required">;
2744
+ }, z.core.$strict>, z.ZodObject<{
2745
+ kind: z.ZodLiteral<"scope-insufficient">;
2746
+ }, z.core.$strict>, z.ZodObject<{
2747
+ kind: z.ZodLiteral<"authorization-status-unavailable">;
2748
+ }, z.core.$strict>], "kind">>;
2749
+ oauthRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2750
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
2751
+ kind: z.ZodLiteral<"oauth-account-profile">;
2752
+ minimumPermission: z.ZodEnum<{
2753
+ read: "read";
2754
+ write: "write";
2755
+ }>;
2756
+ serviceId: z.core.$ZodBranded<z.ZodString, "OAuthServiceId", "out">;
2757
+ }, z.core.$strict>, z.ZodObject<{
2758
+ accountProfileArgument: z.ZodLiteral<"accountProfile">;
2759
+ describeBeforeCall: z.ZodLiteral<true>;
2760
+ kind: z.ZodLiteral<"invocation-dependent-oauth-account-profile">;
2761
+ }, z.core.$strict>], "kind">>;
2128
2762
  toolRef: z.ZodString;
2129
2763
  inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
2130
2764
  outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -2139,14 +2773,14 @@ declare const PortalSearchResultSchema: z.ZodObject<{
2139
2773
  }, z.core.$strict>, z.ZodObject<{
2140
2774
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
2141
2775
  code: z.ZodEnum<{
2142
- provider_unavailable: "provider_unavailable";
2143
- capability_denied: "capability_denied";
2144
2776
  approval_required: "approval_required";
2777
+ capability_denied: "capability_denied";
2145
2778
  validation_failed: "validation_failed";
2779
+ provider_unavailable: "provider_unavailable";
2146
2780
  execution_failed: "execution_failed";
2147
- output_truncated: "output_truncated";
2148
- timeout: "timeout";
2149
2781
  cancelled: "cancelled";
2782
+ timeout: "timeout";
2783
+ output_truncated: "output_truncated";
2150
2784
  artifact_unavailable: "artifact_unavailable";
2151
2785
  }>;
2152
2786
  level: z.ZodEnum<{
@@ -2160,29 +2794,29 @@ declare const PortalSearchResultSchema: z.ZodObject<{
2160
2794
  }, z.core.$strict>>>;
2161
2795
  error: z.ZodObject<{
2162
2796
  code: z.ZodEnum<{
2163
- provider_unavailable: "provider_unavailable";
2164
- capability_denied: "capability_denied";
2797
+ invalid_request: "invalid_request";
2798
+ not_found: "not_found";
2799
+ not_authorized: "not_authorized";
2165
2800
  approval_required: "approval_required";
2801
+ capability_denied: "capability_denied";
2166
2802
  validation_failed: "validation_failed";
2803
+ provider_unavailable: "provider_unavailable";
2167
2804
  execution_failed: "execution_failed";
2168
- timeout: "timeout";
2169
2805
  cancelled: "cancelled";
2170
- invalid_request: "invalid_request";
2171
- not_found: "not_found";
2172
- not_authorized: "not_authorized";
2806
+ timeout: "timeout";
2173
2807
  }>;
2174
2808
  message: z.ZodString;
2175
2809
  retryable: z.ZodOptional<z.ZodBoolean>;
2176
2810
  safeDiagnostic: z.ZodOptional<z.ZodObject<{
2177
2811
  code: z.ZodEnum<{
2178
- provider_unavailable: "provider_unavailable";
2179
- capability_denied: "capability_denied";
2180
2812
  approval_required: "approval_required";
2813
+ capability_denied: "capability_denied";
2181
2814
  validation_failed: "validation_failed";
2815
+ provider_unavailable: "provider_unavailable";
2182
2816
  execution_failed: "execution_failed";
2183
- output_truncated: "output_truncated";
2184
- timeout: "timeout";
2185
2817
  cancelled: "cancelled";
2818
+ timeout: "timeout";
2819
+ output_truncated: "output_truncated";
2186
2820
  artifact_unavailable: "artifact_unavailable";
2187
2821
  }>;
2188
2822
  level: z.ZodEnum<{
@@ -2205,14 +2839,14 @@ declare const PortalDescribeResultSchema: z.ZodObject<{
2205
2839
  auditCorrelationId: z.ZodOptional<z.ZodString>;
2206
2840
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
2207
2841
  code: z.ZodEnum<{
2208
- provider_unavailable: "provider_unavailable";
2209
- capability_denied: "capability_denied";
2210
2842
  approval_required: "approval_required";
2843
+ capability_denied: "capability_denied";
2211
2844
  validation_failed: "validation_failed";
2845
+ provider_unavailable: "provider_unavailable";
2212
2846
  execution_failed: "execution_failed";
2213
- output_truncated: "output_truncated";
2214
- timeout: "timeout";
2215
2847
  cancelled: "cancelled";
2848
+ timeout: "timeout";
2849
+ output_truncated: "output_truncated";
2216
2850
  artifact_unavailable: "artifact_unavailable";
2217
2851
  }>;
2218
2852
  level: z.ZodEnum<{
@@ -2234,14 +2868,14 @@ declare const PortalDescribeResultSchema: z.ZodObject<{
2234
2868
  }, z.core.$strict>>>;
2235
2869
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
2236
2870
  code: z.ZodEnum<{
2237
- provider_unavailable: "provider_unavailable";
2238
- capability_denied: "capability_denied";
2239
2871
  approval_required: "approval_required";
2872
+ capability_denied: "capability_denied";
2240
2873
  validation_failed: "validation_failed";
2874
+ provider_unavailable: "provider_unavailable";
2241
2875
  execution_failed: "execution_failed";
2242
- output_truncated: "output_truncated";
2243
- timeout: "timeout";
2244
2876
  cancelled: "cancelled";
2877
+ timeout: "timeout";
2878
+ output_truncated: "output_truncated";
2245
2879
  artifact_unavailable: "artifact_unavailable";
2246
2880
  }>;
2247
2881
  level: z.ZodEnum<{
@@ -2262,6 +2896,15 @@ declare const PortalDescribeResultSchema: z.ZodObject<{
2262
2896
  value: z.ZodObject<{
2263
2897
  tools: z.ZodArray<z.ZodObject<{
2264
2898
  annotations: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
2899
+ callDisposition: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2900
+ kind: z.ZodLiteral<"without-approval">;
2901
+ }, z.core.$strict>, z.ZodObject<{
2902
+ kind: z.ZodLiteral<"requires-approval">;
2903
+ }, z.core.$strict>, z.ZodObject<{
2904
+ describeBeforeCall: z.ZodLiteral<true>;
2905
+ kind: z.ZodLiteral<"invocation-dependent">;
2906
+ }, z.core.$strict>], "kind">>;
2907
+ description: z.ZodOptional<z.ZodString>;
2265
2908
  inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
2266
2909
  namespace: z.ZodString;
2267
2910
  outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -2273,7 +2916,36 @@ declare const PortalDescribeResultSchema: z.ZodObject<{
2273
2916
  describe_before_call: "describe_before_call";
2274
2917
  }>;
2275
2918
  }, z.core.$strict>>;
2919
+ title: z.ZodOptional<z.ZodString>;
2276
2920
  name: z.ZodString;
2921
+ oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2922
+ accountProfiles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
2923
+ accountLabel: z.ZodString;
2924
+ accountProfileId: z.core.$ZodBranded<z.ZodString, "OAuthAccountProfileId", "out">;
2925
+ }, z.core.$strict>>>;
2926
+ kind: z.ZodLiteral<"ready">;
2927
+ }, z.core.$strict>, z.ZodObject<{
2928
+ kind: z.ZodLiteral<"authorization-required">;
2929
+ }, z.core.$strict>, z.ZodObject<{
2930
+ kind: z.ZodLiteral<"reauthorization-required">;
2931
+ }, z.core.$strict>, z.ZodObject<{
2932
+ kind: z.ZodLiteral<"scope-insufficient">;
2933
+ }, z.core.$strict>, z.ZodObject<{
2934
+ kind: z.ZodLiteral<"authorization-status-unavailable">;
2935
+ }, z.core.$strict>], "kind">>;
2936
+ oauthRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2937
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
2938
+ kind: z.ZodLiteral<"oauth-account-profile">;
2939
+ minimumPermission: z.ZodEnum<{
2940
+ read: "read";
2941
+ write: "write";
2942
+ }>;
2943
+ serviceId: z.core.$ZodBranded<z.ZodString, "OAuthServiceId", "out">;
2944
+ }, z.core.$strict>, z.ZodObject<{
2945
+ accountProfileArgument: z.ZodLiteral<"accountProfile">;
2946
+ describeBeforeCall: z.ZodLiteral<true>;
2947
+ kind: z.ZodLiteral<"invocation-dependent-oauth-account-profile">;
2948
+ }, z.core.$strict>], "kind">>;
2277
2949
  toolRef: z.ZodString;
2278
2950
  typescriptHelper: z.ZodOptional<z.ZodString>;
2279
2951
  zod: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -2286,14 +2958,14 @@ declare const PortalDescribeResultSchema: z.ZodObject<{
2286
2958
  }, z.core.$strict>, z.ZodObject<{
2287
2959
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
2288
2960
  code: z.ZodEnum<{
2289
- provider_unavailable: "provider_unavailable";
2290
- capability_denied: "capability_denied";
2291
2961
  approval_required: "approval_required";
2962
+ capability_denied: "capability_denied";
2292
2963
  validation_failed: "validation_failed";
2964
+ provider_unavailable: "provider_unavailable";
2293
2965
  execution_failed: "execution_failed";
2294
- output_truncated: "output_truncated";
2295
- timeout: "timeout";
2296
2966
  cancelled: "cancelled";
2967
+ timeout: "timeout";
2968
+ output_truncated: "output_truncated";
2297
2969
  artifact_unavailable: "artifact_unavailable";
2298
2970
  }>;
2299
2971
  level: z.ZodEnum<{
@@ -2307,29 +2979,29 @@ declare const PortalDescribeResultSchema: z.ZodObject<{
2307
2979
  }, z.core.$strict>>>;
2308
2980
  error: z.ZodObject<{
2309
2981
  code: z.ZodEnum<{
2310
- provider_unavailable: "provider_unavailable";
2311
- capability_denied: "capability_denied";
2982
+ invalid_request: "invalid_request";
2983
+ not_found: "not_found";
2984
+ not_authorized: "not_authorized";
2312
2985
  approval_required: "approval_required";
2986
+ capability_denied: "capability_denied";
2313
2987
  validation_failed: "validation_failed";
2988
+ provider_unavailable: "provider_unavailable";
2314
2989
  execution_failed: "execution_failed";
2315
- timeout: "timeout";
2316
2990
  cancelled: "cancelled";
2317
- invalid_request: "invalid_request";
2318
- not_found: "not_found";
2319
- not_authorized: "not_authorized";
2991
+ timeout: "timeout";
2320
2992
  }>;
2321
2993
  message: z.ZodString;
2322
2994
  retryable: z.ZodOptional<z.ZodBoolean>;
2323
2995
  safeDiagnostic: z.ZodOptional<z.ZodObject<{
2324
2996
  code: z.ZodEnum<{
2325
- provider_unavailable: "provider_unavailable";
2326
- capability_denied: "capability_denied";
2327
2997
  approval_required: "approval_required";
2998
+ capability_denied: "capability_denied";
2328
2999
  validation_failed: "validation_failed";
3000
+ provider_unavailable: "provider_unavailable";
2329
3001
  execution_failed: "execution_failed";
2330
- output_truncated: "output_truncated";
2331
- timeout: "timeout";
2332
3002
  cancelled: "cancelled";
3003
+ timeout: "timeout";
3004
+ output_truncated: "output_truncated";
2333
3005
  artifact_unavailable: "artifact_unavailable";
2334
3006
  }>;
2335
3007
  level: z.ZodEnum<{
@@ -2358,14 +3030,14 @@ declare const PortalGenericItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
2358
3030
  }, z.core.$strict>>>;
2359
3031
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
2360
3032
  code: z.ZodEnum<{
2361
- provider_unavailable: "provider_unavailable";
2362
- capability_denied: "capability_denied";
2363
3033
  approval_required: "approval_required";
3034
+ capability_denied: "capability_denied";
2364
3035
  validation_failed: "validation_failed";
3036
+ provider_unavailable: "provider_unavailable";
2365
3037
  execution_failed: "execution_failed";
2366
- output_truncated: "output_truncated";
2367
- timeout: "timeout";
2368
3038
  cancelled: "cancelled";
3039
+ timeout: "timeout";
3040
+ output_truncated: "output_truncated";
2369
3041
  artifact_unavailable: "artifact_unavailable";
2370
3042
  }>;
2371
3043
  level: z.ZodEnum<{
@@ -2387,14 +3059,14 @@ declare const PortalGenericItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
2387
3059
  }, z.core.$strict>, z.ZodObject<{
2388
3060
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
2389
3061
  code: z.ZodEnum<{
2390
- provider_unavailable: "provider_unavailable";
2391
- capability_denied: "capability_denied";
2392
3062
  approval_required: "approval_required";
3063
+ capability_denied: "capability_denied";
2393
3064
  validation_failed: "validation_failed";
3065
+ provider_unavailable: "provider_unavailable";
2394
3066
  execution_failed: "execution_failed";
2395
- output_truncated: "output_truncated";
2396
- timeout: "timeout";
2397
3067
  cancelled: "cancelled";
3068
+ timeout: "timeout";
3069
+ output_truncated: "output_truncated";
2398
3070
  artifact_unavailable: "artifact_unavailable";
2399
3071
  }>;
2400
3072
  level: z.ZodEnum<{
@@ -2408,29 +3080,29 @@ declare const PortalGenericItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
2408
3080
  }, z.core.$strict>>>;
2409
3081
  error: z.ZodObject<{
2410
3082
  code: z.ZodEnum<{
2411
- provider_unavailable: "provider_unavailable";
2412
- capability_denied: "capability_denied";
3083
+ invalid_request: "invalid_request";
3084
+ not_found: "not_found";
3085
+ not_authorized: "not_authorized";
2413
3086
  approval_required: "approval_required";
3087
+ capability_denied: "capability_denied";
2414
3088
  validation_failed: "validation_failed";
3089
+ provider_unavailable: "provider_unavailable";
2415
3090
  execution_failed: "execution_failed";
2416
- timeout: "timeout";
2417
3091
  cancelled: "cancelled";
2418
- invalid_request: "invalid_request";
2419
- not_found: "not_found";
2420
- not_authorized: "not_authorized";
3092
+ timeout: "timeout";
2421
3093
  }>;
2422
3094
  message: z.ZodString;
2423
3095
  retryable: z.ZodOptional<z.ZodBoolean>;
2424
3096
  safeDiagnostic: z.ZodOptional<z.ZodObject<{
2425
3097
  code: z.ZodEnum<{
2426
- provider_unavailable: "provider_unavailable";
2427
- capability_denied: "capability_denied";
2428
3098
  approval_required: "approval_required";
3099
+ capability_denied: "capability_denied";
2429
3100
  validation_failed: "validation_failed";
3101
+ provider_unavailable: "provider_unavailable";
2430
3102
  execution_failed: "execution_failed";
2431
- output_truncated: "output_truncated";
2432
- timeout: "timeout";
2433
3103
  cancelled: "cancelled";
3104
+ timeout: "timeout";
3105
+ output_truncated: "output_truncated";
2434
3106
  artifact_unavailable: "artifact_unavailable";
2435
3107
  }>;
2436
3108
  level: z.ZodEnum<{
@@ -2448,4 +3120,4 @@ declare const PortalGenericItemResultSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
2448
3120
  }, z.core.$strict>], "status">;
2449
3121
  //#endregion
2450
3122
  export { PortalSearchResultSchema as A, PortalListItemResultSchema as C, PortalSearchItemResultSchema as D, PortalListResultSchema as E, PortalCallRequestSchema as F, PortalBatchMaxItems as M, PortalCallItemRequestSchema as N, PortalSearchItemValueSchema as O, PortalCallRequest as P, PortalGenericItemResultSchema as S, PortalListResult as T, PortalCallResultSchema as _, PortalBackendDescribeResult as a, PortalDescribeResult as b, PortalBackendListItemValueSchema as c, PortalBackendSearchItemResultSchema as d, PortalBackendSearchItemValueSchema as f, PortalCallResult as g, PortalCallItemResultSchema as h, PortalBackendDescribeItemValueSchema as i, TruncationMetadataSchema as j, PortalSearchResult as k, PortalBackendListResult as l, PortalBackendSearchResultSchema as m, PortalApprovalRequiredCallItemResultSchema as n, PortalBackendDescribeResultSchema as o, PortalBackendSearchResult as p, PortalBackendDescribeItemResultSchema as r, PortalBackendListItemResultSchema as s, PortalApprovalChallengeSchema as t, PortalBackendListResultSchema as u, PortalDescribeItemResultSchema as v, PortalListItemValueSchema as w, PortalDescribeResultSchema as x, PortalDescribeItemValueSchema as y };
2451
- //# sourceMappingURL=portal-call-result-schema-CFnKfcvZ.d.ts.map
3123
+ //# sourceMappingURL=portal-call-result-schema-Mv2Dv1HJ.d.ts.map