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

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 (110) hide show
  1. package/contract-fixtures/portable-contracts/approval/managed-google-challenge.fixture.json +66 -0
  2. package/contract-fixtures/portable-contracts/discovery/describe-result.fixture.json +5 -1
  3. package/contract-fixtures/portable-contracts/discovery/google-describe-duplicate-availability.fixture.json +103 -0
  4. package/contract-fixtures/portable-contracts/discovery/google-describe-duplicate-requirements.fixture.json +83 -0
  5. package/contract-fixtures/portable-contracts/discovery/google-describe-unverified-ready.fixture.json +78 -0
  6. package/contract-fixtures/portable-contracts/discovery/google-describe-valid.fixture.json +144 -0
  7. package/contract-fixtures/portable-contracts/discovery/google-list-duplicate-availability.fixture.json +109 -0
  8. package/contract-fixtures/portable-contracts/discovery/google-list-duplicate-requirements.fixture.json +89 -0
  9. package/contract-fixtures/portable-contracts/discovery/google-list-unverified-ready.fixture.json +84 -0
  10. package/contract-fixtures/portable-contracts/discovery/google-list-valid.fixture.json +156 -0
  11. package/contract-fixtures/portable-contracts/discovery/google-search-duplicate-availability.fixture.json +108 -0
  12. package/contract-fixtures/portable-contracts/discovery/google-search-duplicate-requirements.fixture.json +88 -0
  13. package/contract-fixtures/portable-contracts/discovery/google-search-unverified-ready.fixture.json +83 -0
  14. package/contract-fixtures/portable-contracts/discovery/google-search-valid.fixture.json +154 -0
  15. package/contract-fixtures/portable-contracts/discovery/list-result.fixture.json +5 -1
  16. package/contract-fixtures/portable-contracts/discovery/search-result.fixture.json +5 -1
  17. package/contract-fixtures/portable-contracts/files/attachment-cleaned-result.fixture.json +16 -0
  18. package/contract-fixtures/portable-contracts/files/attachment-parent-path-rejected.fixture.json +17 -0
  19. package/contract-fixtures/portable-contracts/files/attachment-public-request.fixture.json +26 -0
  20. package/contract-fixtures/portable-contracts/files/attachment-public-result.fixture.json +26 -0
  21. package/contract-fixtures/portable-contracts/files/attachment-recipient-rejected.fixture.json +19 -0
  22. package/contract-fixtures/portable-contracts/files/attachment-settle-request.fixture.json +20 -0
  23. package/contract-fixtures/portable-contracts/files/attachment-stage-request.fixture.json +26 -0
  24. package/contract-fixtures/portable-contracts/files/attachment-staged-result.fixture.json +24 -0
  25. package/contract-fixtures/portable-contracts/files/file-list-request.fixture.json +14 -0
  26. package/contract-fixtures/portable-contracts/files/file-listed-result.fixture.json +21 -0
  27. package/contract-fixtures/portable-contracts/files/file-materialized-result.fixture.json +17 -0
  28. package/contract-fixtures/portable-contracts/files/file-request-root-rejected.fixture.json +15 -0
  29. package/contract-fixtures/portable-contracts/files/file-result-payload-rejected.fixture.json +18 -0
  30. package/contract-fixtures/portable-contracts/outcomes/completed-file-delivery-partial.fixture.json +84 -0
  31. package/contract-fixtures/portable-contracts/outcomes/invalid-retryable-file-delivery.fixture.json +40 -0
  32. package/dist/approval-surface/index.d.ts +1 -1
  33. package/dist/approval-surface/index.js +1 -1
  34. package/dist/{approval-surface-phfnKUSF.js → approval-surface-CfbAG-81.js} +4 -4
  35. package/dist/{approval-surface-phfnKUSF.js.map → approval-surface-CfbAG-81.js.map} +1 -1
  36. package/dist/artifact-surface/index.js +1 -1
  37. package/dist/{artifact-surface-CHEu4tDd.js → artifact-surface-Db5KQOA0.js} +2 -2
  38. package/dist/{artifact-surface-CHEu4tDd.js.map → artifact-surface-Db5KQOA0.js.map} +1 -1
  39. package/dist/capability-description-surface/index.d.ts +1 -1
  40. package/dist/capability-description-surface/index.js +2 -2
  41. package/dist/capability-description-surface-DKZLjpG4.js +2 -0
  42. package/dist/{capability-descriptor-schema-B_0vLQ3E.js → capability-descriptor-schema-5evBt6Hl.js} +2 -2
  43. package/dist/{capability-descriptor-schema-B_0vLQ3E.js.map → capability-descriptor-schema-5evBt6Hl.js.map} +1 -1
  44. package/dist/cli/tool-portal.js +5 -5
  45. package/dist/contracts/index.js +1 -1
  46. package/dist/{contracts-X9wWs2lP.js → contracts-K6l783Yb.js} +5 -5
  47. package/dist/{contracts-X9wWs2lP.js.map → contracts-K6l783Yb.js.map} +1 -1
  48. package/dist/gateway-runtime-client/index.d.ts +5 -3
  49. package/dist/gateway-runtime-client/index.d.ts.map +1 -1
  50. package/dist/gateway-runtime-client/index.js +13 -6
  51. package/dist/gateway-runtime-client/index.js.map +1 -1
  52. package/dist/{index-C2axvEYg.d.ts → index-BSG2bf1j.d.ts} +3 -3
  53. package/dist/{index-C2axvEYg.d.ts.map → index-BSG2bf1j.d.ts.map} +1 -1
  54. package/dist/{index-DZJH4Rau.d.ts → index-Ba_G25p_.d.ts} +11 -11
  55. package/dist/{index-DZJH4Rau.d.ts.map → index-Ba_G25p_.d.ts.map} +1 -1
  56. package/dist/{index-uDfElZ9U.d.ts → index-ByBEiqZp.d.ts} +177 -93
  57. package/dist/index-ByBEiqZp.d.ts.map +1 -0
  58. package/dist/{index-ex2lEawY.d.ts → index-C5NsqQls.d.ts} +28 -6
  59. package/dist/index-C5NsqQls.d.ts.map +1 -0
  60. package/dist/{index-DTTEu7ZT.d.ts → index-C8gs_YWX.d.ts} +121 -5
  61. package/dist/{index-DTTEu7ZT.d.ts.map → index-C8gs_YWX.d.ts.map} +1 -1
  62. package/dist/{index-C-QFWaH5.d.ts → index-E3B9TETl.d.ts} +11 -1
  63. package/dist/index-E3B9TETl.d.ts.map +1 -0
  64. package/dist/index.d.ts +7 -7
  65. package/dist/index.js +15 -15
  66. package/dist/{json-value-schema-Br5M7d7X.js → json-value-schema-rxMrw9uZ.js} +2 -2
  67. package/dist/{json-value-schema-Br5M7d7X.js.map → json-value-schema-rxMrw9uZ.js.map} +1 -1
  68. package/dist/{namespace-discovery-schema-DwbJHVLu.js → namespace-discovery-schema-BBWRZZnD.js} +2 -2
  69. package/dist/{namespace-discovery-schema-DwbJHVLu.js.map → namespace-discovery-schema-BBWRZZnD.js.map} +1 -1
  70. package/dist/portable-contracts/index.d.ts +1 -1
  71. package/dist/portable-contracts/index.js +2 -2
  72. package/dist/{portable-contracts-CWLiYrVU.js → portable-contracts-D7axGgu1.js} +75 -15
  73. package/dist/portable-contracts-D7axGgu1.js.map +1 -0
  74. package/dist/{portable-refinement-authoring-C1Q92x2G.js → portable-refinement-authoring-oFICWLOo.js} +16 -2
  75. package/dist/portable-refinement-authoring-oFICWLOo.js.map +1 -0
  76. package/dist/{portal-call-request-schema-Cl0kTLaX.js → portal-call-request-schema-B1dbBjmW.js} +4 -4
  77. package/dist/{portal-call-request-schema-Cl0kTLaX.js.map → portal-call-request-schema-B1dbBjmW.js.map} +1 -1
  78. package/dist/{portal-call-result-schema-Mv2Dv1HJ.d.ts → portal-call-result-schema-CjfCOa84.d.ts} +1071 -495
  79. package/dist/portal-call-result-schema-CjfCOa84.d.ts.map +1 -0
  80. package/dist/{portal-call-result-schema-DM77S9CA.js → portal-call-result-schema-DVJ6FyTz.js} +24 -8
  81. package/dist/portal-call-result-schema-DVJ6FyTz.js.map +1 -0
  82. package/dist/portal-call-surface/index.d.ts +3 -3
  83. package/dist/portal-call-surface/index.js +4 -4
  84. package/dist/portal-call-surface-BPVX-rjw.js +175 -0
  85. package/dist/portal-call-surface-BPVX-rjw.js.map +1 -0
  86. package/dist/portal-event-surface/index.d.ts +1 -1
  87. package/dist/portal-event-surface/index.js +1 -1
  88. package/dist/{portal-event-surface-Bp3rXsBz.js → portal-event-surface-Z76kra2a.js} +2 -2
  89. package/dist/{portal-event-surface-Bp3rXsBz.js.map → portal-event-surface-Z76kra2a.js.map} +1 -1
  90. package/dist/{request-id-schema-Hq_6lSFV.js → request-id-schema-DQ84TX-D.js} +2 -2
  91. package/dist/{request-id-schema-Hq_6lSFV.js.map → request-id-schema-DQ84TX-D.js.map} +1 -1
  92. package/dist/testing/index.d.ts +1 -1
  93. package/dist/testing/index.js +2 -2
  94. package/dist/tool-portal-mcp-client/index.d.ts +1 -1
  95. package/dist/tool-portal-mcp-client/index.js +1 -1
  96. package/dist/tool-portal-mcp-client/node-tool-portal-mcp-transport.d.ts +1 -1
  97. package/dist/{tool-portal-mcp-client-DsDi2iJc.js → tool-portal-mcp-client-DSDLoZ5e.js} +5 -5
  98. package/dist/{tool-portal-mcp-client-DsDi2iJc.js.map → tool-portal-mcp-client-DSDLoZ5e.js.map} +1 -1
  99. package/package.json +2 -2
  100. package/portable-contract-schema-manifest.json +1614 -366
  101. package/dist/capability-description-surface-YqGm-nS_.js +0 -2
  102. package/dist/index-C-QFWaH5.d.ts.map +0 -1
  103. package/dist/index-ex2lEawY.d.ts.map +0 -1
  104. package/dist/index-uDfElZ9U.d.ts.map +0 -1
  105. package/dist/portable-contracts-CWLiYrVU.js.map +0 -1
  106. package/dist/portable-refinement-authoring-C1Q92x2G.js.map +0 -1
  107. package/dist/portal-call-result-schema-DM77S9CA.js.map +0 -1
  108. package/dist/portal-call-result-schema-Mv2Dv1HJ.d.ts.map +0 -1
  109. package/dist/portal-call-surface-B952nh-H.js +0 -84
  110. package/dist/portal-call-surface-B952nh-H.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { c as PortalArtifactReadRequest, i as PortalArtifactReadResourceRequest, u as PortalArtifactReadResult } from "./index-DDLN0DE_.js";
2
- import { P as PortalCallRequest, T as PortalListResult, b as PortalDescribeResult, g as PortalCallResult, k as PortalSearchResult } from "./portal-call-result-schema-Mv2Dv1HJ.js";
3
- import { i as PortalSearchRequest, m as PortalDescribeRequest, s as PortalListRequest } from "./index-DTTEu7ZT.js";
2
+ import { P as PortalCallRequest, T as PortalListResult, b as PortalDescribeResult, g as PortalCallResult, k as PortalSearchResult } from "./portal-call-result-schema-CjfCOa84.js";
3
+ import { C as PortalDescribeRequest, g as PortalListRequest, p as PortalSearchRequest } from "./index-C8gs_YWX.js";
4
4
 
5
5
  //#region src/tool-portal-mcp-client/index.d.ts
6
6
  type ToolPortalMcpResourceContent = {
@@ -66,4 +66,4 @@ declare class ToolPortalMcpClient {
66
66
  }
67
67
  //#endregion
68
68
  export { ToolPortalMcpTransport as a, ToolPortalMcpResourceContent as i, ToolPortalMcpClient as n, ToolPortalMcpClientOptions as r, ToolPortalClientRequestOptions as t };
69
- //# sourceMappingURL=index-C2axvEYg.d.ts.map
69
+ //# sourceMappingURL=index-BSG2bf1j.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-C2axvEYg.d.ts","names":[],"sources":["../src/tool-portal-mcp-client/index.ts"],"mappings":";;;;;KA2BY,4BAAA;EAAA,SAEA,IAAA;EAAA,SACA,IAAA;EAAA,SACA,SAAA;EAAA,SACA,GAAA;AAAA;EAAA,SAGA,IAAA;EAAA,SACA,SAAA;EAAA,SACA,IAAA;EAAA,SACA,GAAA;AAAA;AAAA,UAGK,sBAAA;EAAA,SACP,QAAA,GACR,IAAA;IAAA,SACU,aAAA;IAAA,SACA,SAAA;IAAA,SACA,IAAA;EAAA,GAEV,OAAA;IAAA,SACU,uBAAA;IAAA,SACA,MAAA,GAAS,WAAA;EAAA,MAEf,OAAA;IAAA,SAAmB,iBAAA;EAAA;EAAA,SACf,KAAA,QAAa,OAAA;EAAA,SACb,OAAA,QAAe,OAAA;EAAA,SACf,YAAA,GACR,OAAA,EAAS,iCAAA,EACT,OAAA;IAAA,SACU,uBAAA;IAAA,SACA,MAAA,GAAS,WAAA;EAAA,MAEf,OAAA;IAAA,SAAmB,QAAA,WAAmB,4BAAA;EAAA;AAAA;AAAA,UAG3B,0BAAA;EAAA,SACP,SAAA,EAAW,sBAAA;AAAA;AAAA,UAGJ,8BAAA;EAAA,SACP,aAAA;EAAA,SACA,uBAAA;EAAA,SACA,MAAA,GAAS,WAAA;AAAA;AAAA,cAab,+BAAA;EAAA;cAGO,SAAA,EAAW,sBAAA;EAIjB,IAAA,CACL,OAAA,EAAS,yBAAA,EACT,OAAA,GAAS,8BAAA,GACP,OAAA,CAAQ,wBAAA;AAAA;;;;;;;cAkCC,mBAAA;EAAA;WAEH,SAAA,EAAW,+BAAA;cAER,OAAA,EAAS,0BAAA;EAKf,OAAA,CAAA,GAAW,OAAA;EAIX,KAAA,CAAA,GAAS,OAAA;EAIT,IAAA,CACL,OAAA,EAAS,iBAAA,EACT,OAAA,GAAS,8BAAA,GACP,OAAA,CAAQ,gBAAA;EAYL,MAAA,CACL,OAAA,EAAS,mBAAA,EACT,OAAA,GAAS,8BAAA,GACP,OAAA,CAAQ,kBAAA;EAYL,QAAA,CACL,OAAA,EAAS,qBAAA,EACT,OAAA,GAAS,8BAAA,GACP,OAAA,CAAQ,oBAAA;EAYL,IAAA,CACL,OAAA,EAAS,iBAAA,EACT,OAAA,GAAS,8BAAA,GACP,OAAA,CAAQ,gBAAA;AAAA"}
1
+ {"version":3,"file":"index-BSG2bf1j.d.ts","names":[],"sources":["../src/tool-portal-mcp-client/index.ts"],"mappings":";;;;;KA2BY,4BAAA;EAAA,SAEA,IAAA;EAAA,SACA,IAAA;EAAA,SACA,SAAA;EAAA,SACA,GAAA;AAAA;EAAA,SAGA,IAAA;EAAA,SACA,SAAA;EAAA,SACA,IAAA;EAAA,SACA,GAAA;AAAA;AAAA,UAGK,sBAAA;EAAA,SACP,QAAA,GACR,IAAA;IAAA,SACU,aAAA;IAAA,SACA,SAAA;IAAA,SACA,IAAA;EAAA,GAEV,OAAA;IAAA,SACU,uBAAA;IAAA,SACA,MAAA,GAAS,WAAA;EAAA,MAEf,OAAA;IAAA,SAAmB,iBAAA;EAAA;EAAA,SACf,KAAA,QAAa,OAAA;EAAA,SACb,OAAA,QAAe,OAAA;EAAA,SACf,YAAA,GACR,OAAA,EAAS,iCAAA,EACT,OAAA;IAAA,SACU,uBAAA;IAAA,SACA,MAAA,GAAS,WAAA;EAAA,MAEf,OAAA;IAAA,SAAmB,QAAA,WAAmB,4BAAA;EAAA;AAAA;AAAA,UAG3B,0BAAA;EAAA,SACP,SAAA,EAAW,sBAAA;AAAA;AAAA,UAGJ,8BAAA;EAAA,SACP,aAAA;EAAA,SACA,uBAAA;EAAA,SACA,MAAA,GAAS,WAAA;AAAA;AAAA,cAab,+BAAA;EAAA;cAGO,SAAA,EAAW,sBAAA;EAIjB,IAAA,CACL,OAAA,EAAS,yBAAA,EACT,OAAA,GAAS,8BAAA,GACP,OAAA,CAAQ,wBAAA;AAAA;;;;;;;cAkCC,mBAAA;EAAA;WAEH,SAAA,EAAW,+BAAA;cAER,OAAA,EAAS,0BAAA;EAKf,OAAA,CAAA,GAAW,OAAA;EAIX,KAAA,CAAA,GAAS,OAAA;EAIT,IAAA,CACL,OAAA,EAAS,iBAAA,EACT,OAAA,GAAS,8BAAA,GACP,OAAA,CAAQ,gBAAA;EAYL,MAAA,CACL,OAAA,EAAS,mBAAA,EACT,OAAA,GAAS,8BAAA,GACP,OAAA,CAAQ,kBAAA;EAYL,QAAA,CACL,OAAA,EAAS,qBAAA,EACT,OAAA,GAAS,8BAAA,GACP,OAAA,CAAQ,oBAAA;EAYL,IAAA,CACL,OAAA,EAAS,iBAAA,EACT,OAAA,GAAS,8BAAA,GACP,OAAA,CAAQ,gBAAA;AAAA"}
@@ -23,12 +23,12 @@ type PortalPartialOutputEvent = z.infer<typeof PortalPartialOutputEventSchema>;
23
23
  declare const PortalDiagnosticEventSchema: z.ZodObject<{
24
24
  diagnostic: z.ZodObject<{
25
25
  code: z.ZodEnum<{
26
+ cancelled: "cancelled";
26
27
  approval_required: "approval_required";
27
28
  capability_denied: "capability_denied";
28
29
  validation_failed: "validation_failed";
29
30
  provider_unavailable: "provider_unavailable";
30
31
  execution_failed: "execution_failed";
31
- cancelled: "cancelled";
32
32
  timeout: "timeout";
33
33
  output_truncated: "output_truncated";
34
34
  artifact_unavailable: "artifact_unavailable";
@@ -55,6 +55,7 @@ type PortalCancellationRequestEvent = z.infer<typeof PortalCancellationRequestEv
55
55
  declare const PortalCancellationResultEventSchema: z.ZodObject<{
56
56
  error: z.ZodOptional<z.ZodObject<{
57
57
  code: z.ZodEnum<{
58
+ cancelled: "cancelled";
58
59
  invalid_request: "invalid_request";
59
60
  not_found: "not_found";
60
61
  not_authorized: "not_authorized";
@@ -63,19 +64,18 @@ declare const PortalCancellationResultEventSchema: z.ZodObject<{
63
64
  validation_failed: "validation_failed";
64
65
  provider_unavailable: "provider_unavailable";
65
66
  execution_failed: "execution_failed";
66
- cancelled: "cancelled";
67
67
  timeout: "timeout";
68
68
  }>;
69
69
  message: z.ZodString;
70
70
  retryable: z.ZodOptional<z.ZodBoolean>;
71
71
  safeDiagnostic: z.ZodOptional<z.ZodObject<{
72
72
  code: z.ZodEnum<{
73
+ cancelled: "cancelled";
73
74
  approval_required: "approval_required";
74
75
  capability_denied: "capability_denied";
75
76
  validation_failed: "validation_failed";
76
77
  provider_unavailable: "provider_unavailable";
77
78
  execution_failed: "execution_failed";
78
- cancelled: "cancelled";
79
79
  timeout: "timeout";
80
80
  output_truncated: "output_truncated";
81
81
  artifact_unavailable: "artifact_unavailable";
@@ -93,8 +93,8 @@ declare const PortalCancellationResultEventSchema: z.ZodObject<{
93
93
  id: z.ZodString;
94
94
  kind: z.ZodLiteral<"cancellation_result">;
95
95
  status: z.ZodEnum<{
96
- not_found: "not_found";
97
96
  cancelled: "cancelled";
97
+ not_found: "not_found";
98
98
  already_finished: "already_finished";
99
99
  }>;
100
100
  }, z.core.$strict>;
@@ -117,12 +117,12 @@ declare const PortalEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
117
117
  }, z.core.$strict>, z.ZodObject<{
118
118
  diagnostic: z.ZodObject<{
119
119
  code: z.ZodEnum<{
120
+ cancelled: "cancelled";
120
121
  approval_required: "approval_required";
121
122
  capability_denied: "capability_denied";
122
123
  validation_failed: "validation_failed";
123
124
  provider_unavailable: "provider_unavailable";
124
125
  execution_failed: "execution_failed";
125
- cancelled: "cancelled";
126
126
  timeout: "timeout";
127
127
  output_truncated: "output_truncated";
128
128
  artifact_unavailable: "artifact_unavailable";
@@ -145,6 +145,7 @@ declare const PortalEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
145
145
  }, z.core.$strict>, z.ZodObject<{
146
146
  error: z.ZodOptional<z.ZodObject<{
147
147
  code: z.ZodEnum<{
148
+ cancelled: "cancelled";
148
149
  invalid_request: "invalid_request";
149
150
  not_found: "not_found";
150
151
  not_authorized: "not_authorized";
@@ -153,19 +154,18 @@ declare const PortalEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
153
154
  validation_failed: "validation_failed";
154
155
  provider_unavailable: "provider_unavailable";
155
156
  execution_failed: "execution_failed";
156
- cancelled: "cancelled";
157
157
  timeout: "timeout";
158
158
  }>;
159
159
  message: z.ZodString;
160
160
  retryable: z.ZodOptional<z.ZodBoolean>;
161
161
  safeDiagnostic: z.ZodOptional<z.ZodObject<{
162
162
  code: z.ZodEnum<{
163
+ cancelled: "cancelled";
163
164
  approval_required: "approval_required";
164
165
  capability_denied: "capability_denied";
165
166
  validation_failed: "validation_failed";
166
167
  provider_unavailable: "provider_unavailable";
167
168
  execution_failed: "execution_failed";
168
- cancelled: "cancelled";
169
169
  timeout: "timeout";
170
170
  output_truncated: "output_truncated";
171
171
  artifact_unavailable: "artifact_unavailable";
@@ -183,8 +183,8 @@ declare const PortalEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
183
183
  id: z.ZodString;
184
184
  kind: z.ZodLiteral<"cancellation_result">;
185
185
  status: z.ZodEnum<{
186
- not_found: "not_found";
187
186
  cancelled: "cancelled";
187
+ not_found: "not_found";
188
188
  already_finished: "already_finished";
189
189
  }>;
190
190
  }, z.core.$strict>], "kind">;
@@ -192,24 +192,24 @@ type PortalEvent = z.infer<typeof PortalEventSchema>;
192
192
  //#endregion
193
193
  //#region src/portal-event-surface/models/safe-diagnostic-schema.d.ts
194
194
  declare const SafeDiagnosticCodeSchema: z.ZodEnum<{
195
+ cancelled: "cancelled";
195
196
  approval_required: "approval_required";
196
197
  capability_denied: "capability_denied";
197
198
  validation_failed: "validation_failed";
198
199
  provider_unavailable: "provider_unavailable";
199
200
  execution_failed: "execution_failed";
200
- cancelled: "cancelled";
201
201
  timeout: "timeout";
202
202
  output_truncated: "output_truncated";
203
203
  artifact_unavailable: "artifact_unavailable";
204
204
  }>;
205
205
  declare const SafeDiagnosticSchema: z.ZodObject<{
206
206
  code: z.ZodEnum<{
207
+ cancelled: "cancelled";
207
208
  approval_required: "approval_required";
208
209
  capability_denied: "capability_denied";
209
210
  validation_failed: "validation_failed";
210
211
  provider_unavailable: "provider_unavailable";
211
212
  execution_failed: "execution_failed";
212
- cancelled: "cancelled";
213
213
  timeout: "timeout";
214
214
  output_truncated: "output_truncated";
215
215
  artifact_unavailable: "artifact_unavailable";
@@ -226,4 +226,4 @@ declare const SafeDiagnosticSchema: z.ZodObject<{
226
226
  type SafeDiagnostic = z.infer<typeof SafeDiagnosticSchema>;
227
227
  //#endregion
228
228
  export { PortalCancellationRequestEventSchema as a, PortalDiagnosticEvent as c, PortalEventSchema as d, PortalPartialOutputEvent as f, PortalProgressEventSchema as h, PortalCancellationRequestEvent as i, PortalDiagnosticEventSchema as l, PortalProgressEvent as m, SafeDiagnosticCodeSchema as n, PortalCancellationResultEvent as o, PortalPartialOutputEventSchema as p, SafeDiagnosticSchema as r, PortalCancellationResultEventSchema as s, SafeDiagnostic as t, PortalEvent as u };
229
- //# sourceMappingURL=index-DZJH4Rau.d.ts.map
229
+ //# sourceMappingURL=index-Ba_G25p_.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-DZJH4Rau.d.ts","names":[],"sources":["../src/portal-event-surface/models/portal-event-schema.ts","../src/portal-event-surface/models/safe-diagnostic-schema.ts"],"mappings":";;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;KAS1B,mBAAA,GAAsB,CAAA,CAAE,KAAA,QAAa,yBAAA;AAAA,cAEpC,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;KAU/B,wBAAA,GAA2B,CAAA,CAAE,KAAA,QAAa,8BAAA;AAAA,cAEzC,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;KAQ5B,qBAAA,GAAwB,CAAA,CAAE,KAAA,QAAa,2BAAA;AAAA,cAEtC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;KAQrC,8BAAA,GAAiC,CAAA,CAAE,KAAA,QAAa,oCAAA;AAAA,cAE/C,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KASpC,6BAAA,GAAgC,CAAA,CAAE,KAAA,QAAa,mCAAA;AAAA,cAE9C,iBAAA,EAAiB,CAAA,CAAA,qBAAA,EAAA,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAQlB,WAAA,GAAc,CAAA,CAAE,KAAA,QAAa,iBAAA;;;cClE5B,wBAAA,EAAwB,CAAA,CAAA,OAAA;;;;;;;;;;;cAYxB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;KASrB,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA"}
1
+ {"version":3,"file":"index-Ba_G25p_.d.ts","names":[],"sources":["../src/portal-event-surface/models/portal-event-schema.ts","../src/portal-event-surface/models/safe-diagnostic-schema.ts"],"mappings":";;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;KAS1B,mBAAA,GAAsB,CAAA,CAAE,KAAA,QAAa,yBAAA;AAAA,cAEpC,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;KAU/B,wBAAA,GAA2B,CAAA,CAAE,KAAA,QAAa,8BAAA;AAAA,cAEzC,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;KAQ5B,qBAAA,GAAwB,CAAA,CAAE,KAAA,QAAa,2BAAA;AAAA,cAEtC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;KAQrC,8BAAA,GAAiC,CAAA,CAAE,KAAA,QAAa,oCAAA;AAAA,cAE/C,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KASpC,6BAAA,GAAgC,CAAA,CAAE,KAAA,QAAa,mCAAA;AAAA,cAE9C,iBAAA,EAAiB,CAAA,CAAA,qBAAA,EAAA,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAQlB,WAAA,GAAc,CAAA,CAAE,KAAA,QAAa,iBAAA;;;cClE5B,wBAAA,EAAwB,CAAA,CAAA,OAAA;;;;;;;;;;;cAYxB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;KASrB,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA"}
@@ -42,33 +42,54 @@ declare const CapabilityDiscoveryMetadataSchema: z.ZodObject<{
42
42
  kind: z.ZodLiteral<"invocation-dependent">;
43
43
  }, z.core.$strict>], "kind">;
44
44
  oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
45
- accountProfiles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
46
- accountLabel: z.ZodString;
47
- accountProfileId: z.core.$ZodBranded<z.ZodString, "OAuthAccountProfileId", "out">;
45
+ kind: z.ZodLiteral<"operation-options">;
46
+ items: z.ZodReadonly<z.ZodArray<z.ZodObject<{
47
+ requirement: z.ZodObject<{
48
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
49
+ operationId: z.ZodString;
50
+ }, z.core.$strict>;
51
+ availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
52
+ kind: z.ZodLiteral<"accounts">;
53
+ accounts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
54
+ accountId: z.core.$ZodBranded<z.ZodUUID, "OAuthAccountId", "out">;
55
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
56
+ kind: z.ZodLiteral<"verified">;
57
+ accountAlias: z.ZodString;
58
+ }, z.core.$strict>, z.ZodObject<{
59
+ kind: z.ZodLiteral<"unavailable">;
60
+ }, z.core.$strict>], "kind">;
61
+ availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
62
+ kind: z.ZodLiteral<"ready">;
63
+ disposition: z.ZodEnum<{
64
+ ask: "ask";
65
+ allow: "allow";
66
+ }>;
67
+ overrideRevision: z.ZodNumber;
68
+ defaultsRevision: z.ZodString;
69
+ }, z.core.$strict>, z.ZodObject<{
70
+ kind: z.ZodLiteral<"consent-required">;
71
+ }, z.core.$strict>, z.ZodObject<{
72
+ kind: z.ZodLiteral<"denied">;
73
+ }, z.core.$strict>, z.ZodObject<{
74
+ kind: z.ZodLiteral<"unavailable">;
75
+ }, z.core.$strict>], "kind">;
76
+ }, z.core.$strict>>>;
77
+ }, z.core.$strict>, z.ZodObject<{
78
+ kind: z.ZodLiteral<"unavailable">;
79
+ }, z.core.$strict>], "kind">;
48
80
  }, z.core.$strict>>>;
49
- kind: z.ZodLiteral<"ready">;
50
81
  }, z.core.$strict>, z.ZodObject<{
51
- kind: z.ZodLiteral<"authorization-required">;
52
- }, z.core.$strict>, z.ZodObject<{
53
- kind: z.ZodLiteral<"reauthorization-required">;
54
- }, z.core.$strict>, z.ZodObject<{
55
- kind: z.ZodLiteral<"scope-insufficient">;
56
- }, z.core.$strict>, z.ZodObject<{
57
- kind: z.ZodLiteral<"authorization-status-unavailable">;
82
+ kind: z.ZodLiteral<"unavailable">;
58
83
  }, z.core.$strict>], "kind">>;
59
- oauthRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
60
- applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
61
- kind: z.ZodLiteral<"oauth-account-profile">;
62
- minimumPermission: z.ZodEnum<{
63
- read: "read";
64
- write: "write";
65
- }>;
66
- serviceId: z.core.$ZodBranded<z.ZodString, "OAuthServiceId", "out">;
67
- }, z.core.$strict>, z.ZodObject<{
68
- accountProfileArgument: z.ZodLiteral<"accountProfile">;
84
+ oauthRequirement: z.ZodOptional<z.ZodObject<{
85
+ kind: z.ZodLiteral<"google-account">;
86
+ accountArgument: z.ZodLiteral<"accountId">;
69
87
  describeBeforeCall: z.ZodLiteral<true>;
70
- kind: z.ZodLiteral<"invocation-dependent-oauth-account-profile">;
71
- }, z.core.$strict>], "kind">>;
88
+ operations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
89
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
90
+ operationId: z.ZodString;
91
+ }, z.core.$strict>>>;
92
+ }, z.core.$strict>>;
72
93
  }, z.core.$strict>;
73
94
  type CapabilityDiscoveryMetadata = z.infer<typeof CapabilityDiscoveryMetadataSchema>;
74
95
  declare const CapabilitySummarySchema: z.ZodObject<{
@@ -109,33 +130,54 @@ declare const CapabilitySummarySchema: z.ZodObject<{
109
130
  title: z.ZodOptional<z.ZodString>;
110
131
  name: z.ZodString;
111
132
  oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
112
- accountProfiles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
113
- accountLabel: z.ZodString;
114
- accountProfileId: z.core.$ZodBranded<z.ZodString, "OAuthAccountProfileId", "out">;
133
+ kind: z.ZodLiteral<"operation-options">;
134
+ items: z.ZodReadonly<z.ZodArray<z.ZodObject<{
135
+ requirement: z.ZodObject<{
136
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
137
+ operationId: z.ZodString;
138
+ }, z.core.$strict>;
139
+ availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
140
+ kind: z.ZodLiteral<"accounts">;
141
+ accounts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
142
+ accountId: z.core.$ZodBranded<z.ZodUUID, "OAuthAccountId", "out">;
143
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
144
+ kind: z.ZodLiteral<"verified">;
145
+ accountAlias: z.ZodString;
146
+ }, z.core.$strict>, z.ZodObject<{
147
+ kind: z.ZodLiteral<"unavailable">;
148
+ }, z.core.$strict>], "kind">;
149
+ availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
150
+ kind: z.ZodLiteral<"ready">;
151
+ disposition: z.ZodEnum<{
152
+ ask: "ask";
153
+ allow: "allow";
154
+ }>;
155
+ overrideRevision: z.ZodNumber;
156
+ defaultsRevision: z.ZodString;
157
+ }, z.core.$strict>, z.ZodObject<{
158
+ kind: z.ZodLiteral<"consent-required">;
159
+ }, z.core.$strict>, z.ZodObject<{
160
+ kind: z.ZodLiteral<"denied">;
161
+ }, z.core.$strict>, z.ZodObject<{
162
+ kind: z.ZodLiteral<"unavailable">;
163
+ }, z.core.$strict>], "kind">;
164
+ }, z.core.$strict>>>;
165
+ }, z.core.$strict>, z.ZodObject<{
166
+ kind: z.ZodLiteral<"unavailable">;
167
+ }, z.core.$strict>], "kind">;
115
168
  }, z.core.$strict>>>;
116
- kind: z.ZodLiteral<"ready">;
117
169
  }, z.core.$strict>, z.ZodObject<{
118
- kind: z.ZodLiteral<"authorization-required">;
119
- }, z.core.$strict>, z.ZodObject<{
120
- kind: z.ZodLiteral<"reauthorization-required">;
121
- }, z.core.$strict>, z.ZodObject<{
122
- kind: z.ZodLiteral<"scope-insufficient">;
123
- }, z.core.$strict>, z.ZodObject<{
124
- kind: z.ZodLiteral<"authorization-status-unavailable">;
170
+ kind: z.ZodLiteral<"unavailable">;
125
171
  }, z.core.$strict>], "kind">>;
126
- oauthRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
127
- applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
128
- kind: z.ZodLiteral<"oauth-account-profile">;
129
- minimumPermission: z.ZodEnum<{
130
- read: "read";
131
- write: "write";
132
- }>;
133
- serviceId: z.core.$ZodBranded<z.ZodString, "OAuthServiceId", "out">;
134
- }, z.core.$strict>, z.ZodObject<{
135
- accountProfileArgument: z.ZodLiteral<"accountProfile">;
172
+ oauthRequirement: z.ZodOptional<z.ZodObject<{
173
+ kind: z.ZodLiteral<"google-account">;
174
+ accountArgument: z.ZodLiteral<"accountId">;
136
175
  describeBeforeCall: z.ZodLiteral<true>;
137
- kind: z.ZodLiteral<"invocation-dependent-oauth-account-profile">;
138
- }, z.core.$strict>], "kind">>;
176
+ operations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
177
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
178
+ operationId: z.ZodString;
179
+ }, z.core.$strict>>>;
180
+ }, z.core.$strict>>;
139
181
  toolRef: z.ZodString;
140
182
  }, z.core.$strict>;
141
183
  type CapabilitySummary = z.infer<typeof CapabilitySummarySchema>;
@@ -208,33 +250,54 @@ declare const CapabilitySearchMatchSchema: z.ZodObject<{
208
250
  title: z.ZodOptional<z.ZodString>;
209
251
  name: z.ZodString;
210
252
  oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
211
- accountProfiles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
212
- accountLabel: z.ZodString;
213
- accountProfileId: z.core.$ZodBranded<z.ZodString, "OAuthAccountProfileId", "out">;
253
+ kind: z.ZodLiteral<"operation-options">;
254
+ items: z.ZodReadonly<z.ZodArray<z.ZodObject<{
255
+ requirement: z.ZodObject<{
256
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
257
+ operationId: z.ZodString;
258
+ }, z.core.$strict>;
259
+ availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
260
+ kind: z.ZodLiteral<"accounts">;
261
+ accounts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
262
+ accountId: z.core.$ZodBranded<z.ZodUUID, "OAuthAccountId", "out">;
263
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
264
+ kind: z.ZodLiteral<"verified">;
265
+ accountAlias: z.ZodString;
266
+ }, z.core.$strict>, z.ZodObject<{
267
+ kind: z.ZodLiteral<"unavailable">;
268
+ }, z.core.$strict>], "kind">;
269
+ availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
270
+ kind: z.ZodLiteral<"ready">;
271
+ disposition: z.ZodEnum<{
272
+ ask: "ask";
273
+ allow: "allow";
274
+ }>;
275
+ overrideRevision: z.ZodNumber;
276
+ defaultsRevision: z.ZodString;
277
+ }, z.core.$strict>, z.ZodObject<{
278
+ kind: z.ZodLiteral<"consent-required">;
279
+ }, z.core.$strict>, z.ZodObject<{
280
+ kind: z.ZodLiteral<"denied">;
281
+ }, z.core.$strict>, z.ZodObject<{
282
+ kind: z.ZodLiteral<"unavailable">;
283
+ }, z.core.$strict>], "kind">;
284
+ }, z.core.$strict>>>;
285
+ }, z.core.$strict>, z.ZodObject<{
286
+ kind: z.ZodLiteral<"unavailable">;
287
+ }, z.core.$strict>], "kind">;
214
288
  }, z.core.$strict>>>;
215
- kind: z.ZodLiteral<"ready">;
216
289
  }, z.core.$strict>, z.ZodObject<{
217
- kind: z.ZodLiteral<"authorization-required">;
218
- }, z.core.$strict>, z.ZodObject<{
219
- kind: z.ZodLiteral<"reauthorization-required">;
220
- }, z.core.$strict>, z.ZodObject<{
221
- kind: z.ZodLiteral<"scope-insufficient">;
222
- }, z.core.$strict>, z.ZodObject<{
223
- kind: z.ZodLiteral<"authorization-status-unavailable">;
290
+ kind: z.ZodLiteral<"unavailable">;
224
291
  }, z.core.$strict>], "kind">>;
225
- oauthRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
226
- applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
227
- kind: z.ZodLiteral<"oauth-account-profile">;
228
- minimumPermission: z.ZodEnum<{
229
- read: "read";
230
- write: "write";
231
- }>;
232
- serviceId: z.core.$ZodBranded<z.ZodString, "OAuthServiceId", "out">;
233
- }, z.core.$strict>, z.ZodObject<{
234
- accountProfileArgument: z.ZodLiteral<"accountProfile">;
292
+ oauthRequirement: z.ZodOptional<z.ZodObject<{
293
+ kind: z.ZodLiteral<"google-account">;
294
+ accountArgument: z.ZodLiteral<"accountId">;
235
295
  describeBeforeCall: z.ZodLiteral<true>;
236
- kind: z.ZodLiteral<"invocation-dependent-oauth-account-profile">;
237
- }, z.core.$strict>], "kind">>;
296
+ operations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
297
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
298
+ operationId: z.ZodString;
299
+ }, z.core.$strict>>>;
300
+ }, z.core.$strict>>;
238
301
  toolRef: z.ZodString;
239
302
  inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
240
303
  outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -267,33 +330,54 @@ declare const CapabilityDescriptorSchema: z.ZodObject<{
267
330
  title: z.ZodOptional<z.ZodString>;
268
331
  name: z.ZodString;
269
332
  oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
270
- accountProfiles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
271
- accountLabel: z.ZodString;
272
- accountProfileId: z.core.$ZodBranded<z.ZodString, "OAuthAccountProfileId", "out">;
333
+ kind: z.ZodLiteral<"operation-options">;
334
+ items: z.ZodReadonly<z.ZodArray<z.ZodObject<{
335
+ requirement: z.ZodObject<{
336
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
337
+ operationId: z.ZodString;
338
+ }, z.core.$strict>;
339
+ availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
340
+ kind: z.ZodLiteral<"accounts">;
341
+ accounts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
342
+ accountId: z.core.$ZodBranded<z.ZodUUID, "OAuthAccountId", "out">;
343
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
344
+ kind: z.ZodLiteral<"verified">;
345
+ accountAlias: z.ZodString;
346
+ }, z.core.$strict>, z.ZodObject<{
347
+ kind: z.ZodLiteral<"unavailable">;
348
+ }, z.core.$strict>], "kind">;
349
+ availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
350
+ kind: z.ZodLiteral<"ready">;
351
+ disposition: z.ZodEnum<{
352
+ ask: "ask";
353
+ allow: "allow";
354
+ }>;
355
+ overrideRevision: z.ZodNumber;
356
+ defaultsRevision: z.ZodString;
357
+ }, z.core.$strict>, z.ZodObject<{
358
+ kind: z.ZodLiteral<"consent-required">;
359
+ }, z.core.$strict>, z.ZodObject<{
360
+ kind: z.ZodLiteral<"denied">;
361
+ }, z.core.$strict>, z.ZodObject<{
362
+ kind: z.ZodLiteral<"unavailable">;
363
+ }, z.core.$strict>], "kind">;
364
+ }, z.core.$strict>>>;
365
+ }, z.core.$strict>, z.ZodObject<{
366
+ kind: z.ZodLiteral<"unavailable">;
367
+ }, z.core.$strict>], "kind">;
273
368
  }, z.core.$strict>>>;
274
- kind: z.ZodLiteral<"ready">;
275
369
  }, z.core.$strict>, z.ZodObject<{
276
- kind: z.ZodLiteral<"authorization-required">;
277
- }, z.core.$strict>, z.ZodObject<{
278
- kind: z.ZodLiteral<"reauthorization-required">;
279
- }, z.core.$strict>, z.ZodObject<{
280
- kind: z.ZodLiteral<"scope-insufficient">;
281
- }, z.core.$strict>, z.ZodObject<{
282
- kind: z.ZodLiteral<"authorization-status-unavailable">;
370
+ kind: z.ZodLiteral<"unavailable">;
283
371
  }, z.core.$strict>], "kind">>;
284
- oauthRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
285
- applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
286
- kind: z.ZodLiteral<"oauth-account-profile">;
287
- minimumPermission: z.ZodEnum<{
288
- read: "read";
289
- write: "write";
290
- }>;
291
- serviceId: z.core.$ZodBranded<z.ZodString, "OAuthServiceId", "out">;
292
- }, z.core.$strict>, z.ZodObject<{
293
- accountProfileArgument: z.ZodLiteral<"accountProfile">;
372
+ oauthRequirement: z.ZodOptional<z.ZodObject<{
373
+ kind: z.ZodLiteral<"google-account">;
374
+ accountArgument: z.ZodLiteral<"accountId">;
294
375
  describeBeforeCall: z.ZodLiteral<true>;
295
- kind: z.ZodLiteral<"invocation-dependent-oauth-account-profile">;
296
- }, z.core.$strict>], "kind">>;
376
+ operations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
377
+ applicationId: z.core.$ZodBranded<z.ZodString, "OAuthApplicationId", "out">;
378
+ operationId: z.ZodString;
379
+ }, z.core.$strict>>>;
380
+ }, z.core.$strict>>;
297
381
  toolRef: z.ZodString;
298
382
  typescriptHelper: z.ZodOptional<z.ZodString>;
299
383
  zod: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -301,4 +385,4 @@ declare const CapabilityDescriptorSchema: z.ZodObject<{
301
385
  type CapabilityDescriptor = z.infer<typeof CapabilityDescriptorSchema>;
302
386
  //#endregion
303
387
  export { compactCapabilitySummaryDescription as C, ToolSchemaSummarySchema as S, ToolSafetySummary as _, CapabilitySearchMatch as a, ToolSchemaHintSchema as b, CapabilitySummarySchema as c, ResultExpectation as d, ResultExpectationSchema as f, ToolCallDispositionSchema as g, ToolCallDisposition as h, CapabilityDiscoveryMetadataSchema as i, CompactCapabilityDescriptionCodePointLimit as l, SafeCallingHintSchema as m, CapabilityDescriptorSchema as n, CapabilitySearchMatchSchema as o, SafeCallingHint as p, CapabilityDiscoveryMetadata as r, CapabilitySummary as s, CapabilityDescriptor as t, JsonSchemaDocumentSchema as u, ToolSafetySummarySchema as v, ToolSchemaSummary as x, ToolSchemaHint as y };
304
- //# sourceMappingURL=index-uDfElZ9U.d.ts.map
388
+ //# sourceMappingURL=index-ByBEiqZp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-ByBEiqZp.d.ts","names":[],"sources":["../src/capability-description-surface/models/capability-descriptor-schema.ts"],"mappings":";;;;cAYa,wBAAA,EAAwB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,OAAA,CAAA,SAAA,WAAA,CAAA,CAAA,IAAA,CAAA,iBAAA,CAAA,SAAA;AAAA,cAExB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;KASxB,iBAAA,GAAoB,CAAA,CAAE,KAAA,QAAa,uBAAA;AAAA,cAElC,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;KAOxB,iBAAA,GAAoB,CAAA,CAAE,KAAA,QAAa,uBAAA;AAAA,cAElC,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;KAOrB,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,cAE/B,yBAAA,EAAyB,CAAA,CAAA,qBAAA,EAAA,CAAA,CAAA,SAAA;;;;;;;;KAW1B,mBAAA,GAAsB,CAAA,CAAE,KAAA,QAAa,yBAAA;AAAA,cAEpC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAQlC,2BAAA,GAA8B,CAAA,CAAE,KAAA,QAAa,iCAAA;AAAA,cAE5C,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkBxB,iBAAA,GAAoB,CAAA,CAAE,KAAA,QAAa,uBAAA;AAAA,cAElC,0CAAA;AAAA,iBAEG,mCAAA,CAAoC,OAAA,EAAS,iBAAA,GAAoB,iBAAA;AAAA,cAepE,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;KAUxB,iBAAA,GAAoB,CAAA,CAAE,KAAA,QAAa,uBAAA;AAAA,cAElC,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;KActB,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,qBAAA;AAAA,cAEhC,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAO5B,qBAAA,GAAwB,CAAA,CAAE,KAAA,QAAa,2BAAA;AAAA,cAEtC,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAoB3B,oBAAA,GAAuB,CAAA,CAAE,KAAA,QAAa,0BAAA"}
@@ -13,21 +13,32 @@ declare const ApprovalDecisionReferenceSchema: z.ZodObject<{
13
13
  }, z.core.$strict>;
14
14
  type ApprovalDecisionReference = z.infer<typeof ApprovalDecisionReferenceSchema>;
15
15
  declare const ApprovalRequiredResultSchema: z.ZodObject<{
16
- approvalChallenge: z.ZodObject<{
16
+ approvalChallenge: z.ZodUnion<readonly [z.ZodObject<{
17
17
  challengeId: z.ZodString;
18
18
  expiresAt: z.ZodString;
19
- }, z.core.$strict>;
19
+ }, z.core.$strict>, z.ZodObject<{
20
+ challengeId: z.ZodString;
21
+ expiresAt: z.ZodString;
22
+ kind: z.ZodLiteral<"managed_google">;
23
+ managedGoogleDisplay: z.ZodObject<{
24
+ accountId: z.core.$ZodBranded<z.ZodUUID, "OAuthAccountId", "out">;
25
+ authorizationId: z.core.$ZodBranded<z.ZodUUID, "OAuthAuthorizationId", "out">;
26
+ accountAlias: z.ZodString;
27
+ applicationLabel: z.ZodString;
28
+ authorizationMetadataRevision: z.ZodNumber;
29
+ }, z.core.$strict>;
30
+ }, z.core.$strict>]>;
20
31
  error: z.ZodObject<{
21
32
  message: z.ZodString;
22
33
  retryable: z.ZodOptional<z.ZodBoolean>;
23
34
  safeDiagnostic: z.ZodOptional<z.ZodObject<{
24
35
  code: z.ZodEnum<{
36
+ cancelled: "cancelled";
25
37
  approval_required: "approval_required";
26
38
  capability_denied: "capability_denied";
27
39
  validation_failed: "validation_failed";
28
40
  provider_unavailable: "provider_unavailable";
29
41
  execution_failed: "execution_failed";
30
- cancelled: "cancelled";
31
42
  timeout: "timeout";
32
43
  output_truncated: "output_truncated";
33
44
  artifact_unavailable: "artifact_unavailable";
@@ -53,10 +64,21 @@ declare const ApprovalRequiredResultSchema: z.ZodObject<{
53
64
  owningGeneration: z.ZodString;
54
65
  status: z.ZodLiteral<"approval_required">;
55
66
  }, z.core.$strict>;
56
- declare const ApprovalChallengeReferenceSchema: z.ZodObject<{
67
+ declare const ApprovalChallengeReferenceSchema: z.ZodUnion<readonly [z.ZodObject<{
57
68
  challengeId: z.ZodString;
58
69
  expiresAt: z.ZodString;
59
- }, z.core.$strict>;
70
+ }, z.core.$strict>, z.ZodObject<{
71
+ challengeId: z.ZodString;
72
+ expiresAt: z.ZodString;
73
+ kind: z.ZodLiteral<"managed_google">;
74
+ managedGoogleDisplay: z.ZodObject<{
75
+ accountId: z.core.$ZodBranded<z.ZodUUID, "OAuthAccountId", "out">;
76
+ authorizationId: z.core.$ZodBranded<z.ZodUUID, "OAuthAuthorizationId", "out">;
77
+ accountAlias: z.ZodString;
78
+ applicationLabel: z.ZodString;
79
+ authorizationMetadataRevision: z.ZodNumber;
80
+ }, z.core.$strict>;
81
+ }, z.core.$strict>]>;
60
82
  type ApprovalRequiredResult = z.infer<typeof ApprovalRequiredResultSchema>;
61
83
  type ApprovalChallengeReference = z.infer<typeof ApprovalChallengeReferenceSchema>;
62
84
  //#endregion
@@ -121,4 +143,4 @@ type GatewayApprovalDecisionResult = z.infer<typeof GatewayApprovalDecisionResul
121
143
  declare function sanitizeGatewayApprovalArguments(argumentsValue: unknown): string;
122
144
  //#endregion
123
145
  export { GatewayApprovalDecisionResult as a, GatewayApprovalPresentationRequestSchema as c, ApprovalChallengeReferenceSchema as d, ApprovalDecisionReference as f, ApprovalRequiredResultSchema as h, GatewayApprovalDecisionRequestSchema as i, sanitizeGatewayApprovalArguments as l, ApprovalRequiredResult as m, ApprovalPresentationOutcomeSchema as n, GatewayApprovalDecisionResultSchema as o, ApprovalDecisionReferenceSchema as p, GatewayApprovalDecisionRequest as r, GatewayApprovalPresentationRequest as s, ApprovalPresentationOutcome as t, ApprovalChallengeReference as u };
124
- //# sourceMappingURL=index-ex2lEawY.d.ts.map
146
+ //# sourceMappingURL=index-C5NsqQls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-C5NsqQls.d.ts","names":[],"sources":["../src/approval-surface/models/approval-decision-reference-schema.ts","../src/approval-surface/models/gateway-approval-presentation-schema.ts"],"mappings":";;;cAQa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;KAShC,yBAAA,GAA4B,CAAA,CAAE,KAAA,QAAa,+BAAA;AAAA,cAE1C,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAE5B,gCAAA,EAAgC,CAAA,CAAA,QAAA,WAAA,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;KAEjC,sBAAA,GAAyB,CAAA,CAAE,KAAA,QAAa,4BAAA;AAAA,KACxC,0BAAA,GAA6B,CAAA,CAAE,KAAA,QAAa,gCAAA;;;cCN3C,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;cA+BxC,iCAAA,EAAiC,CAAA,CAAA,qBAAA,EAAA,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAiBjC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;cAOpC,mCAAA,EAAmC,CAAA,CAAA,qBAAA,EAAA,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;KAsBpC,kCAAA,GAAqC,CAAA,CAAE,KAAA,QAC3C,wCAAA;AAAA,KAEI,2BAAA,GAA8B,CAAA,CAAE,KAAA,QAAa,iCAAA;AAAA,KAC7C,8BAAA,GAAiC,CAAA,CAAE,KAAA,QAAa,oCAAA;AAAA,KAChD,6BAAA,GAAgC,CAAA,CAAE,KAAA,QAAa,mCAAA;AAAA,iBA+E3C,gCAAA,CAAiC,cAAA"}