@agent-vm/agent-portal-sdk 0.0.147 → 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.
- package/contract-fixtures/portable-contracts/approval/managed-google-challenge.fixture.json +66 -0
- package/contract-fixtures/portable-contracts/discovery/describe-result.fixture.json +5 -1
- package/contract-fixtures/portable-contracts/discovery/google-describe-duplicate-availability.fixture.json +103 -0
- package/contract-fixtures/portable-contracts/discovery/google-describe-duplicate-requirements.fixture.json +83 -0
- package/contract-fixtures/portable-contracts/discovery/google-describe-unverified-ready.fixture.json +78 -0
- package/contract-fixtures/portable-contracts/discovery/google-describe-valid.fixture.json +144 -0
- package/contract-fixtures/portable-contracts/discovery/google-list-duplicate-availability.fixture.json +109 -0
- package/contract-fixtures/portable-contracts/discovery/google-list-duplicate-requirements.fixture.json +89 -0
- package/contract-fixtures/portable-contracts/discovery/google-list-unverified-ready.fixture.json +84 -0
- package/contract-fixtures/portable-contracts/discovery/google-list-valid.fixture.json +156 -0
- package/contract-fixtures/portable-contracts/discovery/google-search-duplicate-availability.fixture.json +108 -0
- package/contract-fixtures/portable-contracts/discovery/google-search-duplicate-requirements.fixture.json +88 -0
- package/contract-fixtures/portable-contracts/discovery/google-search-unverified-ready.fixture.json +83 -0
- package/contract-fixtures/portable-contracts/discovery/google-search-valid.fixture.json +154 -0
- package/contract-fixtures/portable-contracts/discovery/list-result.fixture.json +5 -1
- package/contract-fixtures/portable-contracts/discovery/search-result.fixture.json +5 -1
- package/contract-fixtures/portable-contracts/files/attachment-cleaned-result.fixture.json +16 -0
- package/contract-fixtures/portable-contracts/files/attachment-parent-path-rejected.fixture.json +17 -0
- package/contract-fixtures/portable-contracts/files/attachment-public-request.fixture.json +26 -0
- package/contract-fixtures/portable-contracts/files/attachment-public-result.fixture.json +26 -0
- package/contract-fixtures/portable-contracts/files/attachment-recipient-rejected.fixture.json +19 -0
- package/contract-fixtures/portable-contracts/files/attachment-settle-request.fixture.json +20 -0
- package/contract-fixtures/portable-contracts/files/attachment-stage-request.fixture.json +26 -0
- package/contract-fixtures/portable-contracts/files/attachment-staged-result.fixture.json +24 -0
- package/contract-fixtures/portable-contracts/files/file-list-request.fixture.json +14 -0
- package/contract-fixtures/portable-contracts/files/file-listed-result.fixture.json +21 -0
- package/contract-fixtures/portable-contracts/files/file-materialized-result.fixture.json +17 -0
- package/contract-fixtures/portable-contracts/files/file-request-root-rejected.fixture.json +15 -0
- package/contract-fixtures/portable-contracts/files/file-result-payload-rejected.fixture.json +18 -0
- package/contract-fixtures/portable-contracts/outcomes/completed-file-delivery-partial.fixture.json +84 -0
- package/contract-fixtures/portable-contracts/outcomes/invalid-retryable-file-delivery.fixture.json +40 -0
- package/dist/approval-surface/index.d.ts +1 -1
- package/dist/approval-surface/index.js +1 -1
- package/dist/{approval-surface-Cqk_hAtN.js → approval-surface-CfbAG-81.js} +4 -4
- package/dist/{approval-surface-Cqk_hAtN.js.map → approval-surface-CfbAG-81.js.map} +1 -1
- package/dist/artifact-surface/index.js +1 -1
- package/dist/{artifact-surface-CHEu4tDd.js → artifact-surface-Db5KQOA0.js} +2 -2
- package/dist/{artifact-surface-CHEu4tDd.js.map → artifact-surface-Db5KQOA0.js.map} +1 -1
- package/dist/capability-description-surface/index.d.ts +2 -2
- package/dist/capability-description-surface/index.js +3 -3
- package/dist/capability-description-surface-DKZLjpG4.js +2 -0
- package/dist/{capability-descriptor-schema-v9tj7yKr.js → capability-descriptor-schema-5evBt6Hl.js} +39 -3
- package/dist/capability-descriptor-schema-5evBt6Hl.js.map +1 -0
- package/dist/cli/tool-portal.js +5 -5
- package/dist/contracts/index.js +1 -1
- package/dist/{contracts-X9wWs2lP.js → contracts-K6l783Yb.js} +5 -5
- package/dist/{contracts-X9wWs2lP.js.map → contracts-K6l783Yb.js.map} +1 -1
- package/dist/gateway-runtime-client/index.d.ts +5 -3
- package/dist/gateway-runtime-client/index.d.ts.map +1 -1
- package/dist/gateway-runtime-client/index.js +13 -6
- package/dist/gateway-runtime-client/index.js.map +1 -1
- package/dist/{index-DV6xiWeS.d.ts → index-BSG2bf1j.d.ts} +3 -3
- package/dist/{index-DV6xiWeS.d.ts.map → index-BSG2bf1j.d.ts.map} +1 -1
- package/dist/{index-ciLRJYVb.d.ts → index-Ba_G25p_.d.ts} +37 -37
- package/dist/{index-ciLRJYVb.d.ts.map → index-Ba_G25p_.d.ts.map} +1 -1
- package/dist/index-ByBEiqZp.d.ts +388 -0
- package/dist/index-ByBEiqZp.d.ts.map +1 -0
- package/dist/{index-D4UDHMft.d.ts → index-C5NsqQls.d.ts} +31 -9
- package/dist/index-C5NsqQls.d.ts.map +1 -0
- package/dist/{index-3aVlpTwE.d.ts → index-C8gs_YWX.d.ts} +134 -18
- package/dist/{index-3aVlpTwE.d.ts.map → index-C8gs_YWX.d.ts.map} +1 -1
- package/dist/{index-C-QFWaH5.d.ts → index-E3B9TETl.d.ts} +11 -1
- package/dist/index-E3B9TETl.d.ts.map +1 -0
- package/dist/index.d.ts +7 -7
- package/dist/index.js +15 -15
- package/dist/{json-value-schema-Br5M7d7X.js → json-value-schema-rxMrw9uZ.js} +2 -2
- package/dist/{json-value-schema-Br5M7d7X.js.map → json-value-schema-rxMrw9uZ.js.map} +1 -1
- package/dist/{namespace-discovery-schema-DwbJHVLu.js → namespace-discovery-schema-BBWRZZnD.js} +2 -2
- package/dist/{namespace-discovery-schema-DwbJHVLu.js.map → namespace-discovery-schema-BBWRZZnD.js.map} +1 -1
- package/dist/portable-contracts/index.d.ts +1 -1
- package/dist/portable-contracts/index.js +2 -2
- package/dist/{portable-contracts-BJEMMNwI.js → portable-contracts-D7axGgu1.js} +75 -15
- package/dist/portable-contracts-D7axGgu1.js.map +1 -0
- package/dist/{portable-refinement-authoring-C1Q92x2G.js → portable-refinement-authoring-oFICWLOo.js} +16 -2
- package/dist/portable-refinement-authoring-oFICWLOo.js.map +1 -0
- package/dist/{portal-call-request-schema-Cl0kTLaX.js → portal-call-request-schema-B1dbBjmW.js} +4 -4
- package/dist/{portal-call-request-schema-Cl0kTLaX.js.map → portal-call-request-schema-B1dbBjmW.js.map} +1 -1
- package/dist/{portal-call-result-schema-CFnKfcvZ.d.ts → portal-call-result-schema-CjfCOa84.d.ts} +1561 -313
- package/dist/portal-call-result-schema-CjfCOa84.d.ts.map +1 -0
- package/dist/{portal-call-result-schema-B25_rzZZ.js → portal-call-result-schema-DVJ6FyTz.js} +24 -8
- package/dist/portal-call-result-schema-DVJ6FyTz.js.map +1 -0
- package/dist/portal-call-surface/index.d.ts +3 -3
- package/dist/portal-call-surface/index.js +4 -4
- package/dist/portal-call-surface-BPVX-rjw.js +175 -0
- package/dist/portal-call-surface-BPVX-rjw.js.map +1 -0
- package/dist/portal-event-surface/index.d.ts +1 -1
- package/dist/portal-event-surface/index.js +1 -1
- package/dist/{portal-event-surface-Bp3rXsBz.js → portal-event-surface-Z76kra2a.js} +2 -2
- package/dist/{portal-event-surface-Bp3rXsBz.js.map → portal-event-surface-Z76kra2a.js.map} +1 -1
- package/dist/{request-id-schema-Hq_6lSFV.js → request-id-schema-DQ84TX-D.js} +2 -2
- package/dist/{request-id-schema-Hq_6lSFV.js.map → request-id-schema-DQ84TX-D.js.map} +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +2 -2
- package/dist/tool-portal-mcp-client/index.d.ts +1 -1
- package/dist/tool-portal-mcp-client/index.js +1 -1
- package/dist/tool-portal-mcp-client/node-tool-portal-mcp-transport.d.ts +1 -1
- package/dist/{tool-portal-mcp-client-DZoloMod.js → tool-portal-mcp-client-DSDLoZ5e.js} +5 -5
- package/dist/{tool-portal-mcp-client-DZoloMod.js.map → tool-portal-mcp-client-DSDLoZ5e.js.map} +1 -1
- package/package.json +3 -2
- package/portable-contract-schema-manifest.json +1868 -79
- package/dist/capability-description-surface-CplIb93y.js +0 -2
- package/dist/capability-descriptor-schema-v9tj7yKr.js.map +0 -1
- package/dist/index-C-QFWaH5.d.ts.map +0 -1
- package/dist/index-D4UDHMft.d.ts.map +0 -1
- package/dist/index-m4Mlc5zK.d.ts +0 -142
- package/dist/index-m4Mlc5zK.d.ts.map +0 -1
- package/dist/portable-contracts-BJEMMNwI.js.map +0 -1
- package/dist/portable-refinement-authoring-C1Q92x2G.js.map +0 -1
- package/dist/portal-call-result-schema-B25_rzZZ.js.map +0 -1
- package/dist/portal-call-result-schema-CFnKfcvZ.d.ts.map +0 -1
- package/dist/portal-call-surface-qykVz_8k.js +0 -84
- package/dist/portal-call-surface-qykVz_8k.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-
|
|
3
|
-
import {
|
|
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-
|
|
69
|
+
//# sourceMappingURL=index-BSG2bf1j.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
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,14 +23,14 @@ type PortalPartialOutputEvent = z.infer<typeof PortalPartialOutputEventSchema>;
|
|
|
23
23
|
declare const PortalDiagnosticEventSchema: z.ZodObject<{
|
|
24
24
|
diagnostic: z.ZodObject<{
|
|
25
25
|
code: z.ZodEnum<{
|
|
26
|
-
|
|
27
|
-
capability_denied: "capability_denied";
|
|
26
|
+
cancelled: "cancelled";
|
|
28
27
|
approval_required: "approval_required";
|
|
28
|
+
capability_denied: "capability_denied";
|
|
29
29
|
validation_failed: "validation_failed";
|
|
30
|
+
provider_unavailable: "provider_unavailable";
|
|
30
31
|
execution_failed: "execution_failed";
|
|
31
|
-
output_truncated: "output_truncated";
|
|
32
32
|
timeout: "timeout";
|
|
33
|
-
|
|
33
|
+
output_truncated: "output_truncated";
|
|
34
34
|
artifact_unavailable: "artifact_unavailable";
|
|
35
35
|
}>;
|
|
36
36
|
level: z.ZodEnum<{
|
|
@@ -55,29 +55,29 @@ 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
|
-
provider_unavailable: "provider_unavailable";
|
|
59
|
-
capability_denied: "capability_denied";
|
|
60
|
-
approval_required: "approval_required";
|
|
61
|
-
validation_failed: "validation_failed";
|
|
62
|
-
execution_failed: "execution_failed";
|
|
63
|
-
timeout: "timeout";
|
|
64
58
|
cancelled: "cancelled";
|
|
65
59
|
invalid_request: "invalid_request";
|
|
66
60
|
not_found: "not_found";
|
|
67
61
|
not_authorized: "not_authorized";
|
|
62
|
+
approval_required: "approval_required";
|
|
63
|
+
capability_denied: "capability_denied";
|
|
64
|
+
validation_failed: "validation_failed";
|
|
65
|
+
provider_unavailable: "provider_unavailable";
|
|
66
|
+
execution_failed: "execution_failed";
|
|
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
|
-
|
|
74
|
-
capability_denied: "capability_denied";
|
|
73
|
+
cancelled: "cancelled";
|
|
75
74
|
approval_required: "approval_required";
|
|
75
|
+
capability_denied: "capability_denied";
|
|
76
76
|
validation_failed: "validation_failed";
|
|
77
|
+
provider_unavailable: "provider_unavailable";
|
|
77
78
|
execution_failed: "execution_failed";
|
|
78
|
-
output_truncated: "output_truncated";
|
|
79
79
|
timeout: "timeout";
|
|
80
|
-
|
|
80
|
+
output_truncated: "output_truncated";
|
|
81
81
|
artifact_unavailable: "artifact_unavailable";
|
|
82
82
|
}>;
|
|
83
83
|
level: z.ZodEnum<{
|
|
@@ -117,14 +117,14 @@ 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
|
-
|
|
121
|
-
capability_denied: "capability_denied";
|
|
120
|
+
cancelled: "cancelled";
|
|
122
121
|
approval_required: "approval_required";
|
|
122
|
+
capability_denied: "capability_denied";
|
|
123
123
|
validation_failed: "validation_failed";
|
|
124
|
+
provider_unavailable: "provider_unavailable";
|
|
124
125
|
execution_failed: "execution_failed";
|
|
125
|
-
output_truncated: "output_truncated";
|
|
126
126
|
timeout: "timeout";
|
|
127
|
-
|
|
127
|
+
output_truncated: "output_truncated";
|
|
128
128
|
artifact_unavailable: "artifact_unavailable";
|
|
129
129
|
}>;
|
|
130
130
|
level: z.ZodEnum<{
|
|
@@ -145,29 +145,29 @@ 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
|
-
provider_unavailable: "provider_unavailable";
|
|
149
|
-
capability_denied: "capability_denied";
|
|
150
|
-
approval_required: "approval_required";
|
|
151
|
-
validation_failed: "validation_failed";
|
|
152
|
-
execution_failed: "execution_failed";
|
|
153
|
-
timeout: "timeout";
|
|
154
148
|
cancelled: "cancelled";
|
|
155
149
|
invalid_request: "invalid_request";
|
|
156
150
|
not_found: "not_found";
|
|
157
151
|
not_authorized: "not_authorized";
|
|
152
|
+
approval_required: "approval_required";
|
|
153
|
+
capability_denied: "capability_denied";
|
|
154
|
+
validation_failed: "validation_failed";
|
|
155
|
+
provider_unavailable: "provider_unavailable";
|
|
156
|
+
execution_failed: "execution_failed";
|
|
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
|
-
|
|
164
|
-
capability_denied: "capability_denied";
|
|
163
|
+
cancelled: "cancelled";
|
|
165
164
|
approval_required: "approval_required";
|
|
165
|
+
capability_denied: "capability_denied";
|
|
166
166
|
validation_failed: "validation_failed";
|
|
167
|
+
provider_unavailable: "provider_unavailable";
|
|
167
168
|
execution_failed: "execution_failed";
|
|
168
|
-
output_truncated: "output_truncated";
|
|
169
169
|
timeout: "timeout";
|
|
170
|
-
|
|
170
|
+
output_truncated: "output_truncated";
|
|
171
171
|
artifact_unavailable: "artifact_unavailable";
|
|
172
172
|
}>;
|
|
173
173
|
level: z.ZodEnum<{
|
|
@@ -192,26 +192,26 @@ 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
|
-
|
|
196
|
-
capability_denied: "capability_denied";
|
|
195
|
+
cancelled: "cancelled";
|
|
197
196
|
approval_required: "approval_required";
|
|
197
|
+
capability_denied: "capability_denied";
|
|
198
198
|
validation_failed: "validation_failed";
|
|
199
|
+
provider_unavailable: "provider_unavailable";
|
|
199
200
|
execution_failed: "execution_failed";
|
|
200
|
-
output_truncated: "output_truncated";
|
|
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
|
-
|
|
208
|
-
capability_denied: "capability_denied";
|
|
207
|
+
cancelled: "cancelled";
|
|
209
208
|
approval_required: "approval_required";
|
|
209
|
+
capability_denied: "capability_denied";
|
|
210
210
|
validation_failed: "validation_failed";
|
|
211
|
+
provider_unavailable: "provider_unavailable";
|
|
211
212
|
execution_failed: "execution_failed";
|
|
212
|
-
output_truncated: "output_truncated";
|
|
213
213
|
timeout: "timeout";
|
|
214
|
-
|
|
214
|
+
output_truncated: "output_truncated";
|
|
215
215
|
artifact_unavailable: "artifact_unavailable";
|
|
216
216
|
}>;
|
|
217
217
|
level: z.ZodEnum<{
|
|
@@ -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-
|
|
229
|
+
//# sourceMappingURL=index-Ba_G25p_.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
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"}
|
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
import { l as JsonValue } from "./json-value-schema-CwDmttWU.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/capability-description-surface/models/capability-descriptor-schema.d.ts
|
|
5
|
+
declare const JsonSchemaDocumentSchema: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
6
|
+
declare const ToolSchemaSummarySchema: z.ZodObject<{
|
|
7
|
+
optional: z.ZodArray<z.ZodString>;
|
|
8
|
+
propertyCount: z.ZodNumber;
|
|
9
|
+
required: z.ZodArray<z.ZodString>;
|
|
10
|
+
type: z.ZodString;
|
|
11
|
+
}, z.core.$strict>;
|
|
12
|
+
type ToolSchemaSummary = z.infer<typeof ToolSchemaSummarySchema>;
|
|
13
|
+
declare const ToolSafetySummarySchema: z.ZodObject<{
|
|
14
|
+
destructiveHint: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
}, z.core.$strict>;
|
|
17
|
+
type ToolSafetySummary = z.infer<typeof ToolSafetySummarySchema>;
|
|
18
|
+
declare const ToolSchemaHintSchema: z.ZodObject<{
|
|
19
|
+
message: z.ZodString;
|
|
20
|
+
next: z.ZodEnum<{
|
|
21
|
+
call_ready: "call_ready";
|
|
22
|
+
describe_before_call: "describe_before_call";
|
|
23
|
+
}>;
|
|
24
|
+
}, z.core.$strict>;
|
|
25
|
+
type ToolSchemaHint = z.infer<typeof ToolSchemaHintSchema>;
|
|
26
|
+
declare const ToolCallDispositionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
27
|
+
kind: z.ZodLiteral<"without-approval">;
|
|
28
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
29
|
+
kind: z.ZodLiteral<"requires-approval">;
|
|
30
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31
|
+
describeBeforeCall: z.ZodLiteral<true>;
|
|
32
|
+
kind: z.ZodLiteral<"invocation-dependent">;
|
|
33
|
+
}, z.core.$strict>], "kind">;
|
|
34
|
+
type ToolCallDisposition = z.infer<typeof ToolCallDispositionSchema>;
|
|
35
|
+
declare const CapabilityDiscoveryMetadataSchema: z.ZodObject<{
|
|
36
|
+
callDisposition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
37
|
+
kind: z.ZodLiteral<"without-approval">;
|
|
38
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39
|
+
kind: z.ZodLiteral<"requires-approval">;
|
|
40
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
41
|
+
describeBeforeCall: z.ZodLiteral<true>;
|
|
42
|
+
kind: z.ZodLiteral<"invocation-dependent">;
|
|
43
|
+
}, z.core.$strict>], "kind">;
|
|
44
|
+
oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
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">;
|
|
80
|
+
}, z.core.$strict>>>;
|
|
81
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
82
|
+
kind: z.ZodLiteral<"unavailable">;
|
|
83
|
+
}, z.core.$strict>], "kind">>;
|
|
84
|
+
oauthRequirement: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
kind: z.ZodLiteral<"google-account">;
|
|
86
|
+
accountArgument: z.ZodLiteral<"accountId">;
|
|
87
|
+
describeBeforeCall: z.ZodLiteral<true>;
|
|
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>>;
|
|
93
|
+
}, z.core.$strict>;
|
|
94
|
+
type CapabilityDiscoveryMetadata = z.infer<typeof CapabilityDiscoveryMetadataSchema>;
|
|
95
|
+
declare const CapabilitySummarySchema: z.ZodObject<{
|
|
96
|
+
callDisposition: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
97
|
+
kind: z.ZodLiteral<"without-approval">;
|
|
98
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
99
|
+
kind: z.ZodLiteral<"requires-approval">;
|
|
100
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
101
|
+
describeBeforeCall: z.ZodLiteral<true>;
|
|
102
|
+
kind: z.ZodLiteral<"invocation-dependent">;
|
|
103
|
+
}, z.core.$strict>], "kind">>;
|
|
104
|
+
description: z.ZodOptional<z.ZodString>;
|
|
105
|
+
descriptionTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
+
input: z.ZodObject<{
|
|
107
|
+
optional: z.ZodArray<z.ZodString>;
|
|
108
|
+
propertyCount: z.ZodNumber;
|
|
109
|
+
required: z.ZodArray<z.ZodString>;
|
|
110
|
+
type: z.ZodString;
|
|
111
|
+
}, z.core.$strict>;
|
|
112
|
+
namespace: z.ZodString;
|
|
113
|
+
output: z.ZodOptional<z.ZodObject<{
|
|
114
|
+
optional: z.ZodArray<z.ZodString>;
|
|
115
|
+
propertyCount: z.ZodNumber;
|
|
116
|
+
required: z.ZodArray<z.ZodString>;
|
|
117
|
+
type: z.ZodString;
|
|
118
|
+
}, z.core.$strict>>;
|
|
119
|
+
safety: z.ZodObject<{
|
|
120
|
+
destructiveHint: z.ZodOptional<z.ZodBoolean>;
|
|
121
|
+
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
122
|
+
}, z.core.$strict>;
|
|
123
|
+
schemaHint: z.ZodOptional<z.ZodObject<{
|
|
124
|
+
message: z.ZodString;
|
|
125
|
+
next: z.ZodEnum<{
|
|
126
|
+
call_ready: "call_ready";
|
|
127
|
+
describe_before_call: "describe_before_call";
|
|
128
|
+
}>;
|
|
129
|
+
}, z.core.$strict>>;
|
|
130
|
+
title: z.ZodOptional<z.ZodString>;
|
|
131
|
+
name: z.ZodString;
|
|
132
|
+
oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
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">;
|
|
168
|
+
}, z.core.$strict>>>;
|
|
169
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
170
|
+
kind: z.ZodLiteral<"unavailable">;
|
|
171
|
+
}, z.core.$strict>], "kind">>;
|
|
172
|
+
oauthRequirement: z.ZodOptional<z.ZodObject<{
|
|
173
|
+
kind: z.ZodLiteral<"google-account">;
|
|
174
|
+
accountArgument: z.ZodLiteral<"accountId">;
|
|
175
|
+
describeBeforeCall: z.ZodLiteral<true>;
|
|
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>>;
|
|
181
|
+
toolRef: z.ZodString;
|
|
182
|
+
}, z.core.$strict>;
|
|
183
|
+
type CapabilitySummary = z.infer<typeof CapabilitySummarySchema>;
|
|
184
|
+
declare const CompactCapabilityDescriptionCodePointLimit = 240;
|
|
185
|
+
declare function compactCapabilitySummaryDescription(summary: CapabilitySummary): CapabilitySummary;
|
|
186
|
+
declare const ResultExpectationSchema: z.ZodObject<{
|
|
187
|
+
canReturnArtifacts: z.ZodDefault<z.ZodBoolean>;
|
|
188
|
+
canStream: z.ZodDefault<z.ZodBoolean>;
|
|
189
|
+
kind: z.ZodEnum<{
|
|
190
|
+
json: "json";
|
|
191
|
+
text: "text";
|
|
192
|
+
binary_artifact: "binary_artifact";
|
|
193
|
+
mixed: "mixed";
|
|
194
|
+
}>;
|
|
195
|
+
outputJsonSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
196
|
+
truncation: z.ZodDefault<z.ZodEnum<{
|
|
197
|
+
possible: "possible";
|
|
198
|
+
expected: "expected";
|
|
199
|
+
none: "none";
|
|
200
|
+
}>>;
|
|
201
|
+
}, z.core.$strict>;
|
|
202
|
+
type ResultExpectation = z.infer<typeof ResultExpectationSchema>;
|
|
203
|
+
declare const SafeCallingHintSchema: z.ZodObject<{
|
|
204
|
+
code: z.ZodEnum<{
|
|
205
|
+
describe_before_call: "describe_before_call";
|
|
206
|
+
approval_may_be_required: "approval_may_be_required";
|
|
207
|
+
read_only: "read_only";
|
|
208
|
+
write_or_external_effect: "write_or_external_effect";
|
|
209
|
+
large_output_possible: "large_output_possible";
|
|
210
|
+
artifact_output_possible: "artifact_output_possible";
|
|
211
|
+
}>;
|
|
212
|
+
message: z.ZodString;
|
|
213
|
+
}, z.core.$strict>;
|
|
214
|
+
type SafeCallingHint = z.infer<typeof SafeCallingHintSchema>;
|
|
215
|
+
declare const CapabilitySearchMatchSchema: z.ZodObject<{
|
|
216
|
+
callDisposition: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
217
|
+
kind: z.ZodLiteral<"without-approval">;
|
|
218
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
219
|
+
kind: z.ZodLiteral<"requires-approval">;
|
|
220
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
221
|
+
describeBeforeCall: z.ZodLiteral<true>;
|
|
222
|
+
kind: z.ZodLiteral<"invocation-dependent">;
|
|
223
|
+
}, z.core.$strict>], "kind">>;
|
|
224
|
+
description: z.ZodOptional<z.ZodString>;
|
|
225
|
+
descriptionTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
226
|
+
input: z.ZodObject<{
|
|
227
|
+
optional: z.ZodArray<z.ZodString>;
|
|
228
|
+
propertyCount: z.ZodNumber;
|
|
229
|
+
required: z.ZodArray<z.ZodString>;
|
|
230
|
+
type: z.ZodString;
|
|
231
|
+
}, z.core.$strict>;
|
|
232
|
+
namespace: z.ZodString;
|
|
233
|
+
output: z.ZodOptional<z.ZodObject<{
|
|
234
|
+
optional: z.ZodArray<z.ZodString>;
|
|
235
|
+
propertyCount: z.ZodNumber;
|
|
236
|
+
required: z.ZodArray<z.ZodString>;
|
|
237
|
+
type: z.ZodString;
|
|
238
|
+
}, z.core.$strict>>;
|
|
239
|
+
safety: z.ZodObject<{
|
|
240
|
+
destructiveHint: z.ZodOptional<z.ZodBoolean>;
|
|
241
|
+
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
242
|
+
}, z.core.$strict>;
|
|
243
|
+
schemaHint: z.ZodOptional<z.ZodObject<{
|
|
244
|
+
message: z.ZodString;
|
|
245
|
+
next: z.ZodEnum<{
|
|
246
|
+
call_ready: "call_ready";
|
|
247
|
+
describe_before_call: "describe_before_call";
|
|
248
|
+
}>;
|
|
249
|
+
}, z.core.$strict>>;
|
|
250
|
+
title: z.ZodOptional<z.ZodString>;
|
|
251
|
+
name: z.ZodString;
|
|
252
|
+
oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
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">;
|
|
288
|
+
}, z.core.$strict>>>;
|
|
289
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
290
|
+
kind: z.ZodLiteral<"unavailable">;
|
|
291
|
+
}, z.core.$strict>], "kind">>;
|
|
292
|
+
oauthRequirement: z.ZodOptional<z.ZodObject<{
|
|
293
|
+
kind: z.ZodLiteral<"google-account">;
|
|
294
|
+
accountArgument: z.ZodLiteral<"accountId">;
|
|
295
|
+
describeBeforeCall: z.ZodLiteral<true>;
|
|
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>>;
|
|
301
|
+
toolRef: z.ZodString;
|
|
302
|
+
inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
303
|
+
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
304
|
+
relationshipHints: z.ZodOptional<z.ZodArray<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
305
|
+
schemaFieldMatches: z.ZodOptional<z.ZodArray<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
306
|
+
}, z.core.$strict>;
|
|
307
|
+
type CapabilitySearchMatch = z.infer<typeof CapabilitySearchMatchSchema>;
|
|
308
|
+
declare const CapabilityDescriptorSchema: z.ZodObject<{
|
|
309
|
+
annotations: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
310
|
+
callDisposition: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
311
|
+
kind: z.ZodLiteral<"without-approval">;
|
|
312
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
313
|
+
kind: z.ZodLiteral<"requires-approval">;
|
|
314
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
315
|
+
describeBeforeCall: z.ZodLiteral<true>;
|
|
316
|
+
kind: z.ZodLiteral<"invocation-dependent">;
|
|
317
|
+
}, z.core.$strict>], "kind">>;
|
|
318
|
+
description: z.ZodOptional<z.ZodString>;
|
|
319
|
+
inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
320
|
+
namespace: z.ZodString;
|
|
321
|
+
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
322
|
+
related: z.ZodDefault<z.ZodArray<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
323
|
+
schemaHint: z.ZodOptional<z.ZodObject<{
|
|
324
|
+
message: z.ZodString;
|
|
325
|
+
next: z.ZodEnum<{
|
|
326
|
+
call_ready: "call_ready";
|
|
327
|
+
describe_before_call: "describe_before_call";
|
|
328
|
+
}>;
|
|
329
|
+
}, z.core.$strict>>;
|
|
330
|
+
title: z.ZodOptional<z.ZodString>;
|
|
331
|
+
name: z.ZodString;
|
|
332
|
+
oauthAvailability: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
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">;
|
|
368
|
+
}, z.core.$strict>>>;
|
|
369
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
370
|
+
kind: z.ZodLiteral<"unavailable">;
|
|
371
|
+
}, z.core.$strict>], "kind">>;
|
|
372
|
+
oauthRequirement: z.ZodOptional<z.ZodObject<{
|
|
373
|
+
kind: z.ZodLiteral<"google-account">;
|
|
374
|
+
accountArgument: z.ZodLiteral<"accountId">;
|
|
375
|
+
describeBeforeCall: z.ZodLiteral<true>;
|
|
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>>;
|
|
381
|
+
toolRef: z.ZodString;
|
|
382
|
+
typescriptHelper: z.ZodOptional<z.ZodString>;
|
|
383
|
+
zod: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
384
|
+
}, z.core.$strict>;
|
|
385
|
+
type CapabilityDescriptor = z.infer<typeof CapabilityDescriptorSchema>;
|
|
386
|
+
//#endregion
|
|
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 };
|
|
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,23 +13,34 @@ 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<{
|
|
25
|
-
|
|
26
|
-
capability_denied: "capability_denied";
|
|
36
|
+
cancelled: "cancelled";
|
|
27
37
|
approval_required: "approval_required";
|
|
38
|
+
capability_denied: "capability_denied";
|
|
28
39
|
validation_failed: "validation_failed";
|
|
40
|
+
provider_unavailable: "provider_unavailable";
|
|
29
41
|
execution_failed: "execution_failed";
|
|
30
|
-
output_truncated: "output_truncated";
|
|
31
42
|
timeout: "timeout";
|
|
32
|
-
|
|
43
|
+
output_truncated: "output_truncated";
|
|
33
44
|
artifact_unavailable: "artifact_unavailable";
|
|
34
45
|
}>;
|
|
35
46
|
level: z.ZodEnum<{
|
|
@@ -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-
|
|
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"}
|