@agent-vm/agent-portal-sdk 0.0.113 → 0.0.115
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/artifacts/artifact-read-result-authority-field-rejected.fixture.json +21 -0
- package/contract-fixtures/portable-contracts/artifacts/artifact-read-result-default-truncated.fixture.json +35 -0
- package/contract-fixtures/portable-contracts/artifacts/artifact-reference-path-rejected.fixture.json +17 -0
- package/contract-fixtures/portable-contracts/artifacts/artifact-reference-valid.fixture.json +24 -0
- package/contract-fixtures/portable-contracts/bounds/artifact-read-maximum-bytes.fixture.json +29 -0
- package/contract-fixtures/portable-contracts/bounds/artifact-read-over-maximum-bytes.fixture.json +19 -0
- package/contract-fixtures/portable-contracts/bounds/json-object-over-maximum-entries.fixture.json +1013 -0
- package/contract-fixtures/portable-contracts/bounds/list-request-maximum-limit.fixture.json +30 -0
- package/contract-fixtures/portable-contracts/bounds/list-request-over-maximum-limit.fixture.json +22 -0
- package/contract-fixtures/portable-contracts/bounds/progress-maximum-percent.fixture.json +22 -0
- package/contract-fixtures/portable-contracts/bounds/progress-minimum-percent.fixture.json +22 -0
- package/contract-fixtures/portable-contracts/bounds/progress-over-maximum-percent.fixture.json +16 -0
- package/contract-fixtures/portable-contracts/bounds/unsafe-integer.fixture.json +11 -0
- package/contract-fixtures/portable-contracts/canonical-json/nested-key-order-and-negative-zero.fixture.json +24 -0
- package/contract-fixtures/portable-contracts/coverage/gateway-trusted-invocation-context.fixture.json +53 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-environment-close-request.fixture.json +29 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-environment-close-result.fixture.json +31 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-environment-open-request.fixture.json +17 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-environment-open-result.fixture.json +33 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-environment-status-request.fixture.json +29 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-environment-status-result.fixture.json +33 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-exec-cancel-request.fixture.json +25 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-exec-cancel-result.fixture.json +27 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-exec-start-request.fixture.json +51 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-exec-start-result.fixture.json +31 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-exec-wait-request.fixture.json +27 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-exec-wait-result.fixture.json +37 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-list-request.fixture.json +33 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-list-result.fixture.json +21 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-mkdir-request.fixture.json +31 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-mkdir-result.fixture.json +23 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-read-request.fixture.json +35 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-read-result.fixture.json +37 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-remove-request.fixture.json +31 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-remove-result.fixture.json +23 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-rename-request.fixture.json +33 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-rename-result.fixture.json +23 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-stat-request.fixture.json +29 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-stat-result.fixture.json +21 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-write-request.fixture.json +43 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-write-result.fixture.json +27 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-operation-identity.fixture.json +21 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-process-cancel-request.fixture.json +27 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-process-cancel-result.fixture.json +27 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-process-logs-request.fixture.json +37 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-process-logs-result.fixture.json +35 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-process-start-request.fixture.json +35 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-process-start-result.fixture.json +39 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-process-status-request.fixture.json +27 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-process-status-result.fixture.json +37 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-process-wait-request.fixture.json +29 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-process-wait-result.fixture.json +37 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-retained-result-lookup-request.fixture.json +25 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-stream-close-request.fixture.json +29 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-stream-close-result.fixture.json +31 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-stream-read-request.fixture.json +33 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-stream-read-result.fixture.json +47 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-stream-write-request.fixture.json +45 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-stream-write-result.fixture.json +37 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-terminal-attach-request.fixture.json +33 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-terminal-attach-result.fixture.json +53 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-terminal-resize-request.fixture.json +35 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-terminal-resize-result.fixture.json +37 -0
- package/contract-fixtures/portable-contracts/defaults/describe-request-defaults.fixture.json +44 -0
- package/contract-fixtures/portable-contracts/defaults/list-request-default-limit.fixture.json +29 -0
- package/contract-fixtures/portable-contracts/defaults/search-request-defaults.fixture.json +33 -0
- package/contract-fixtures/portable-contracts/discovery/describe-result.fixture.json +18 -0
- package/contract-fixtures/portable-contracts/discovery/list-result.fixture.json +18 -0
- package/contract-fixtures/portable-contracts/discovery/search-result.fixture.json +18 -0
- package/contract-fixtures/portable-contracts/gateway/attachment-duplicate-agent.fixture.json +21 -0
- package/contract-fixtures/portable-contracts/gateway/attachment-valid.fixture.json +32 -0
- package/contract-fixtures/portable-contracts/gateway/managed-agent-projection-hermes-valid.fixture.json +28 -0
- package/contract-fixtures/portable-contracts/gateway/managed-agent-projection-old-authority-rejected.fixture.json +20 -0
- package/contract-fixtures/portable-contracts/gateway/managed-agent-projection-openclaw-valid.fixture.json +28 -0
- package/contract-fixtures/portable-contracts/gateway/managed-agent-projection-self-root-rejected.fixture.json +20 -0
- package/contract-fixtures/portable-contracts/gateway/managed-agent-projection-work-root-rejected.fixture.json +20 -0
- package/contract-fixtures/portable-contracts/operations/cancellation-pending.fixture.json +18 -0
- package/contract-fixtures/portable-contracts/operations/retained-ambiguous.fixture.json +28 -0
- package/contract-fixtures/portable-contracts/outcomes/ambiguous.fixture.json +40 -0
- package/contract-fixtures/portable-contracts/outcomes/call-result-aggregate-status-invalid.fixture.json +35 -0
- package/contract-fixtures/portable-contracts/outcomes/call-result-aggregate-status-valid.fixture.json +54 -0
- package/contract-fixtures/portable-contracts/outcomes/cancelled-proven.fixture.json +40 -0
- package/contract-fixtures/portable-contracts/outcomes/completed-failed.fixture.json +42 -0
- package/contract-fixtures/portable-contracts/outcomes/completed-succeeded.fixture.json +40 -0
- package/contract-fixtures/portable-contracts/outcomes/invalid-ambiguous-retry-class.fixture.json +25 -0
- package/contract-fixtures/portable-contracts/outcomes/invalid-error-completed-succeeded.fixture.json +26 -0
- package/contract-fixtures/portable-contracts/outcomes/invalid-error-result-with-value.fixture.json +19 -0
- package/contract-fixtures/portable-contracts/outcomes/invalid-not-dispatched-certainty.fixture.json +25 -0
- package/contract-fixtures/portable-contracts/outcomes/invalid-ok-completed-failed.fixture.json +23 -0
- package/contract-fixtures/portable-contracts/outcomes/invalid-ok-result-with-error.fixture.json +19 -0
- package/contract-fixtures/portable-contracts/outcomes/invalid-replaced-missing-prior-side-effects.fixture.json +25 -0
- package/contract-fixtures/portable-contracts/outcomes/missing-operation-identity-outcome.fixture.json +26 -0
- package/contract-fixtures/portable-contracts/outcomes/not-dispatched.fixture.json +40 -0
- package/contract-fixtures/portable-contracts/outcomes/replaced-proven.fixture.json +42 -0
- package/contract-fixtures/portable-contracts/outcomes/timed-out-proven.fixture.json +40 -0
- package/contract-fixtures/portable-contracts/requests/call-request-canonical.fixture.json +42 -0
- package/contract-fixtures/portable-contracts/requests/call-request-duplicate-id.fixture.json +26 -0
- package/contract-fixtures/portable-contracts/requests/call-request-reserved-id.fixture.json +20 -0
- package/contract-fixtures/portable-contracts/requests/call-request-unknown-field.fixture.json +21 -0
- package/contract-fixtures/portable-contracts/sandbox/exec-start-duplicate-environment-name.fixture.json +32 -0
- package/contract-fixtures/portable-contracts/sandbox/fs-stat-parent-path.fixture.json +26 -0
- package/contract-fixtures/portable-contracts/sandbox/stream-write-byte-length.fixture.json +21 -0
- package/dist/adapter-boundary/index.d.ts +2 -41
- package/dist/adapter-boundary/index.js +1 -28
- package/dist/adapter-boundary-BIagsTUH.js +29 -0
- package/dist/adapter-boundary-BIagsTUH.js.map +1 -0
- package/dist/approval-surface/index.d.ts +2 -48
- package/dist/approval-surface/index.js +2 -22
- package/dist/approval-surface-en5VAY5h.js +20 -0
- package/dist/approval-surface-en5VAY5h.js.map +1 -0
- package/dist/{artifact-reference-schema-XiJ280uV.js → artifact-reference-schema-CiEjxYPd.js} +4 -3
- package/dist/artifact-reference-schema-CiEjxYPd.js.map +1 -0
- package/dist/artifact-surface/index.d.ts +2 -49
- package/dist/artifact-surface/index.js +3 -27
- package/dist/artifact-surface-BstQxq6b.js +65 -0
- package/dist/artifact-surface-BstQxq6b.js.map +1 -0
- package/dist/capability-description-surface/index.d.ts +2 -142
- package/dist/capability-description-surface/index.js +2 -1
- package/dist/capability-description-surface-BdzknTKT.js +2 -0
- package/dist/{capability-descriptor-schema-wgtHF0Ic.js → capability-descriptor-schema-zRnfGjBc.js} +2 -2
- package/dist/{capability-descriptor-schema-wgtHF0Ic.js.map → capability-descriptor-schema-zRnfGjBc.js.map} +1 -1
- package/dist/cli/tool-portal.d.ts +1 -0
- package/dist/cli/tool-portal.js +207 -0
- package/dist/cli/tool-portal.js.map +1 -0
- package/dist/contracts/index.d.ts +2 -0
- package/dist/contracts/index.js +2 -0
- package/dist/contracts-RgGW0RX2.js +611 -0
- package/dist/contracts-RgGW0RX2.js.map +1 -0
- package/dist/gateway-runtime-client/index.d.ts +385 -0
- package/dist/gateway-runtime-client/index.d.ts.map +1 -0
- package/dist/gateway-runtime-client/index.js +1439 -0
- package/dist/gateway-runtime-client/index.js.map +1 -0
- package/dist/gateway-runtime-local-exec/gateway-runtime-local-exec-helper.d.ts +1 -0
- package/dist/gateway-runtime-local-exec/gateway-runtime-local-exec-helper.js +125 -0
- package/dist/gateway-runtime-local-exec/gateway-runtime-local-exec-helper.js.map +1 -0
- package/dist/gateway-runtime-local-exec/index.d.ts +54 -0
- package/dist/gateway-runtime-local-exec/index.d.ts.map +1 -0
- package/dist/gateway-runtime-local-exec/index.js +2 -0
- package/dist/gateway-runtime-local-exec-transport-B1hy2A3Q.js +427 -0
- package/dist/gateway-runtime-local-exec-transport-B1hy2A3Q.js.map +1 -0
- package/dist/index-B5hgm1KH.d.ts +84 -0
- package/dist/index-B5hgm1KH.d.ts.map +1 -0
- package/dist/index-BWE2_BcN.d.ts +64 -0
- package/dist/index-BWE2_BcN.d.ts.map +1 -0
- package/dist/index-Bdnvj5j3.d.ts +142 -0
- package/dist/index-Bdnvj5j3.d.ts.map +1 -0
- package/dist/index-BmH68K78.d.ts +41 -0
- package/dist/index-BmH68K78.d.ts.map +1 -0
- package/dist/index-C-NPMMvc.d.ts +2396 -0
- package/dist/index-C-NPMMvc.d.ts.map +1 -0
- package/dist/index-DKBSYuxW.d.ts +239 -0
- package/dist/index-DKBSYuxW.d.ts.map +1 -0
- package/dist/{index-DJiaGYF_.d.ts → index-Dj4galCJ.d.ts} +1 -1
- package/dist/{index-DJiaGYF_.d.ts.map → index-Dj4galCJ.d.ts.map} +1 -1
- package/dist/index-Dxoz-ORl.d.ts +229 -0
- package/dist/index-Dxoz-ORl.d.ts.map +1 -0
- package/dist/index-v8suC0qe.d.ts +69 -0
- package/dist/index-v8suC0qe.d.ts.map +1 -0
- package/dist/index-yeFGRMdv.d.ts +152 -0
- package/dist/index-yeFGRMdv.d.ts.map +1 -0
- package/dist/index.d.ts +12 -10
- package/dist/index.js +16 -12
- package/dist/{json-value-schema-Bj42URkc.d.ts → json-value-schema-M87sjwWL.d.ts} +1 -1
- package/dist/{json-value-schema-Bj42URkc.d.ts.map → json-value-schema-M87sjwWL.d.ts.map} +1 -1
- package/dist/{json-value-schema-D-3hfAyL.js → json-value-schema-hdPkabRZ.js} +12 -2
- package/dist/json-value-schema-hdPkabRZ.js.map +1 -0
- package/dist/node-tool-portal-mcp-transport-Cl2VKbLY.js +156 -0
- package/dist/node-tool-portal-mcp-transport-Cl2VKbLY.js.map +1 -0
- package/dist/portable-contracts/index.d.ts +2 -0
- package/dist/portable-contracts/index.js +3 -0
- package/dist/portable-contracts-Bca33zVa.js +326 -0
- package/dist/portable-contracts-Bca33zVa.js.map +1 -0
- package/dist/portable-refinement-authoring-ZSmR-amG.js +196 -0
- package/dist/portable-refinement-authoring-ZSmR-amG.js.map +1 -0
- package/dist/portal-call-request-schema-Cp6CMGs9.js +41 -0
- package/dist/portal-call-request-schema-Cp6CMGs9.js.map +1 -0
- package/dist/portal-call-result-schema-ByxHRCEN.js +158 -0
- package/dist/portal-call-result-schema-ByxHRCEN.js.map +1 -0
- package/dist/{portal-call-result-schema-DjpKPcE_.d.ts → portal-call-result-schema-wSCaz3mC.d.ts} +235 -21
- package/dist/portal-call-result-schema-wSCaz3mC.d.ts.map +1 -0
- package/dist/portal-call-surface/index.d.ts +3 -153
- package/dist/portal-call-surface/index.js +5 -69
- package/dist/portal-call-surface-DjZVquFt.js +83 -0
- package/dist/portal-call-surface-DjZVquFt.js.map +1 -0
- package/dist/{portal-error-schema-D58onG2t.js → portal-error-schema-CQHgoFq4.js} +12 -2
- package/dist/portal-error-schema-CQHgoFq4.js.map +1 -0
- package/dist/portal-event-surface/index.d.ts +2 -229
- package/dist/portal-event-surface/index.js +2 -50
- package/dist/portal-event-surface-CdScrgoN.js +51 -0
- package/dist/portal-event-surface-CdScrgoN.js.map +1 -0
- package/dist/testing/index.d.ts +2 -3
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +10 -1
- package/dist/testing/index.js.map +1 -1
- package/dist/tool-portal-mcp-client/index.d.ts +2 -0
- package/dist/tool-portal-mcp-client/index.js +2 -0
- package/dist/tool-portal-mcp-client/node-tool-portal-mcp-transport.d.ts +17 -0
- package/dist/tool-portal-mcp-client/node-tool-portal-mcp-transport.d.ts.map +1 -0
- package/dist/tool-portal-mcp-client/node-tool-portal-mcp-transport.js +2 -0
- package/dist/tool-portal-mcp-client-DwJF-48Y.js +90 -0
- package/dist/tool-portal-mcp-client-DwJF-48Y.js.map +1 -0
- package/package.json +32 -2
- package/portable-contract-schema-manifest.json +7960 -0
- package/dist/adapter-boundary/index.d.ts.map +0 -1
- package/dist/adapter-boundary/index.js.map +0 -1
- package/dist/approval-surface/index.d.ts.map +0 -1
- package/dist/approval-surface/index.js.map +0 -1
- package/dist/artifact-reference-schema-XiJ280uV.js.map +0 -1
- package/dist/artifact-surface/index.d.ts.map +0 -1
- package/dist/artifact-surface/index.js.map +0 -1
- package/dist/capability-description-surface/index.d.ts.map +0 -1
- package/dist/json-value-schema-D-3hfAyL.js.map +0 -1
- package/dist/portal-call-result-schema-BIqFTFK8.js +0 -102
- package/dist/portal-call-result-schema-BIqFTFK8.js.map +0 -1
- package/dist/portal-call-result-schema-DjpKPcE_.d.ts.map +0 -1
- package/dist/portal-call-surface/index.d.ts.map +0 -1
- package/dist/portal-call-surface/index.js.map +0 -1
- package/dist/portal-error-schema-D58onG2t.js.map +0 -1
- package/dist/portal-event-surface/index.d.ts.map +0 -1
- package/dist/portal-event-surface/index.js.map +0 -1
|
@@ -1,153 +1,3 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
//#region src/portal-call-surface/models/portal-describe-request-schema.d.ts
|
|
5
|
-
declare const PortalDescribeItemRequestSchema: z.ZodObject<{
|
|
6
|
-
id: z.ZodString;
|
|
7
|
-
includeJsonSchema: z.ZodDefault<z.ZodBoolean>;
|
|
8
|
-
includeRelated: z.ZodDefault<z.ZodBoolean>;
|
|
9
|
-
includeTypescriptHelper: z.ZodDefault<z.ZodBoolean>;
|
|
10
|
-
includeZod: z.ZodDefault<z.ZodBoolean>;
|
|
11
|
-
refs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13
|
-
namespace: z.ZodString;
|
|
14
|
-
name: z.ZodString;
|
|
15
|
-
}, z.core.$strict>>>;
|
|
16
|
-
}, z.core.$strict>;
|
|
17
|
-
declare const PortalDescribeRequestSchema: z.ZodObject<{
|
|
18
|
-
requestId: z.ZodOptional<z.ZodString>;
|
|
19
|
-
requests: z.ZodArray<z.ZodObject<{
|
|
20
|
-
id: z.ZodString;
|
|
21
|
-
includeJsonSchema: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
-
includeRelated: z.ZodDefault<z.ZodBoolean>;
|
|
23
|
-
includeTypescriptHelper: z.ZodDefault<z.ZodBoolean>;
|
|
24
|
-
includeZod: z.ZodDefault<z.ZodBoolean>;
|
|
25
|
-
refs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
26
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
27
|
-
namespace: z.ZodString;
|
|
28
|
-
name: z.ZodString;
|
|
29
|
-
}, z.core.$strict>>>;
|
|
30
|
-
}, z.core.$strict>>;
|
|
31
|
-
}, z.core.$strict>;
|
|
32
|
-
type PortalDescribeRequest = z.infer<typeof PortalDescribeRequestSchema>;
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region src/portal-call-surface/models/portal-error-schema.d.ts
|
|
35
|
-
declare const PortalErrorCodeSchema: z.ZodEnum<{
|
|
36
|
-
invalid_request: "invalid_request";
|
|
37
|
-
not_found: "not_found";
|
|
38
|
-
not_authorized: "not_authorized";
|
|
39
|
-
approval_required: "approval_required";
|
|
40
|
-
capability_denied: "capability_denied";
|
|
41
|
-
validation_failed: "validation_failed";
|
|
42
|
-
provider_unavailable: "provider_unavailable";
|
|
43
|
-
execution_failed: "execution_failed";
|
|
44
|
-
cancelled: "cancelled";
|
|
45
|
-
timeout: "timeout";
|
|
46
|
-
}>;
|
|
47
|
-
type PortalErrorCode = z.infer<typeof PortalErrorCodeSchema>;
|
|
48
|
-
declare const PortalErrorSchema: z.ZodObject<{
|
|
49
|
-
code: z.ZodEnum<{
|
|
50
|
-
invalid_request: "invalid_request";
|
|
51
|
-
not_found: "not_found";
|
|
52
|
-
not_authorized: "not_authorized";
|
|
53
|
-
approval_required: "approval_required";
|
|
54
|
-
capability_denied: "capability_denied";
|
|
55
|
-
validation_failed: "validation_failed";
|
|
56
|
-
provider_unavailable: "provider_unavailable";
|
|
57
|
-
execution_failed: "execution_failed";
|
|
58
|
-
cancelled: "cancelled";
|
|
59
|
-
timeout: "timeout";
|
|
60
|
-
}>;
|
|
61
|
-
message: z.ZodString;
|
|
62
|
-
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
-
safeDiagnostic: z.ZodOptional<z.ZodObject<{
|
|
64
|
-
code: z.ZodEnum<{
|
|
65
|
-
approval_required: "approval_required";
|
|
66
|
-
capability_denied: "capability_denied";
|
|
67
|
-
validation_failed: "validation_failed";
|
|
68
|
-
provider_unavailable: "provider_unavailable";
|
|
69
|
-
execution_failed: "execution_failed";
|
|
70
|
-
cancelled: "cancelled";
|
|
71
|
-
timeout: "timeout";
|
|
72
|
-
output_truncated: "output_truncated";
|
|
73
|
-
artifact_unavailable: "artifact_unavailable";
|
|
74
|
-
}>;
|
|
75
|
-
level: z.ZodEnum<{
|
|
76
|
-
error: "error";
|
|
77
|
-
debug: "debug";
|
|
78
|
-
info: "info";
|
|
79
|
-
warn: "warn";
|
|
80
|
-
}>;
|
|
81
|
-
safeMessage: z.ZodString;
|
|
82
|
-
safeParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
83
|
-
}, z.core.$strict>>;
|
|
84
|
-
}, z.core.$strict>;
|
|
85
|
-
type PortalError = z.infer<typeof PortalErrorSchema>;
|
|
86
|
-
//#endregion
|
|
87
|
-
//#region src/portal-call-surface/models/portal-list-request-schema.d.ts
|
|
88
|
-
declare const PortalListItemRequestSchema: z.ZodObject<{
|
|
89
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
90
|
-
id: z.ZodString;
|
|
91
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
92
|
-
namespaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
93
|
-
refs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
94
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
95
|
-
namespace: z.ZodString;
|
|
96
|
-
name: z.ZodString;
|
|
97
|
-
}, z.core.$strict>>>;
|
|
98
|
-
}, z.core.$strict>;
|
|
99
|
-
declare const PortalListRequestSchema: z.ZodObject<{
|
|
100
|
-
requestId: z.ZodOptional<z.ZodString>;
|
|
101
|
-
requests: z.ZodArray<z.ZodObject<{
|
|
102
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
103
|
-
id: z.ZodString;
|
|
104
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
105
|
-
namespaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
106
|
-
refs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
107
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
108
|
-
namespace: z.ZodString;
|
|
109
|
-
name: z.ZodString;
|
|
110
|
-
}, z.core.$strict>>>;
|
|
111
|
-
}, z.core.$strict>>;
|
|
112
|
-
}, z.core.$strict>;
|
|
113
|
-
type PortalListRequest = z.infer<typeof PortalListRequestSchema>;
|
|
114
|
-
//#endregion
|
|
115
|
-
//#region src/portal-call-surface/models/portal-search-request-schema.d.ts
|
|
116
|
-
declare const PortalSearchItemRequestSchema: z.ZodObject<{
|
|
117
|
-
id: z.ZodString;
|
|
118
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
119
|
-
namespaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
120
|
-
query: z.ZodOptional<z.ZodString>;
|
|
121
|
-
schemaDetail: z.ZodDefault<z.ZodEnum<{
|
|
122
|
-
none: "none";
|
|
123
|
-
summary: "summary";
|
|
124
|
-
full: "full";
|
|
125
|
-
}>>;
|
|
126
|
-
}, z.core.$strict>;
|
|
127
|
-
declare const PortalSearchRequestSchema: z.ZodObject<{
|
|
128
|
-
requestId: z.ZodOptional<z.ZodString>;
|
|
129
|
-
requests: z.ZodArray<z.ZodObject<{
|
|
130
|
-
id: z.ZodString;
|
|
131
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
132
|
-
namespaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
133
|
-
query: z.ZodOptional<z.ZodString>;
|
|
134
|
-
schemaDetail: z.ZodDefault<z.ZodEnum<{
|
|
135
|
-
none: "none";
|
|
136
|
-
summary: "summary";
|
|
137
|
-
full: "full";
|
|
138
|
-
}>>;
|
|
139
|
-
}, z.core.$strict>>;
|
|
140
|
-
}, z.core.$strict>;
|
|
141
|
-
type PortalSearchRequest = z.infer<typeof PortalSearchRequestSchema>;
|
|
142
|
-
//#endregion
|
|
143
|
-
//#region src/portal-call-surface/portal-call-json-schema-exporter.d.ts
|
|
144
|
-
interface PortalCallSurfaceJsonSchemas {
|
|
145
|
-
readonly call: Record<string, unknown>;
|
|
146
|
-
readonly describe: Record<string, unknown>;
|
|
147
|
-
readonly list: Record<string, unknown>;
|
|
148
|
-
readonly search: Record<string, unknown>;
|
|
149
|
-
}
|
|
150
|
-
declare function createPortalCallSurfaceJsonSchemas(): PortalCallSurfaceJsonSchemas;
|
|
151
|
-
//#endregion
|
|
152
|
-
export { PortalBatchMaxItems, PortalCallItemRequestSchema, PortalCallItemResultSchema, PortalCallRequest, PortalCallRequestSchema, PortalCallResult, PortalCallResultSchema, PortalCallSurfaceJsonSchemas, PortalDescribeItemRequestSchema, PortalDescribeItemResultSchema, PortalDescribeItemValueSchema, PortalDescribeRequest, PortalDescribeRequestSchema, PortalDescribeResult, PortalDescribeResultSchema, PortalError, PortalErrorCode, PortalErrorCodeSchema, PortalErrorSchema, PortalGenericItemResultSchema, PortalListItemRequestSchema, PortalListItemResultSchema, PortalListItemValueSchema, PortalListRequest, PortalListRequestSchema, PortalListResult, PortalListResultSchema, PortalSearchItemRequestSchema, PortalSearchItemResultSchema, PortalSearchItemValueSchema, PortalSearchRequest, PortalSearchRequestSchema, PortalSearchResult, PortalSearchResultSchema, TruncationMetadataSchema, createPortalCallSurfaceJsonSchemas };
|
|
153
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
import { C as PortalCallRequestSchema, S as PortalCallRequest, _ as PortalSearchResult, a as PortalCallResultSchema, b as PortalBatchMaxItems, c as PortalDescribeResult, d as PortalListItemResultSchema, f as PortalListItemValueSchema, g as PortalSearchItemValueSchema, h as PortalSearchItemResultSchema, i as PortalCallResult, l as PortalDescribeResultSchema, m as PortalListResultSchema, n as PortalApprovalRequiredCallItemResultSchema, o as PortalDescribeItemResultSchema, p as PortalListResult, r as PortalCallItemResultSchema, s as PortalDescribeItemValueSchema, t as PortalApprovalChallengeSchema, u as PortalGenericItemResultSchema, v as PortalSearchResultSchema, x as PortalCallItemRequestSchema, y as TruncationMetadataSchema } from "../portal-call-result-schema-wSCaz3mC.js";
|
|
2
|
+
import { a as PortalSearchRequestSchema, c as PortalListRequestSchema, d as PortalErrorCodeSchema, f as PortalErrorSchema, h as PortalDescribeRequestSchema, i as PortalSearchRequest, l as PortalError, m as PortalDescribeRequest, n as createPortalCallSurfaceJsonSchemas, o as PortalListItemRequestSchema, p as PortalDescribeItemRequestSchema, r as PortalSearchItemRequestSchema, s as PortalListRequest, t as PortalCallSurfaceJsonSchemas, u as PortalErrorCode } from "../index-yeFGRMdv.js";
|
|
3
|
+
export { PortalApprovalChallengeSchema, PortalApprovalRequiredCallItemResultSchema, PortalBatchMaxItems, PortalCallItemRequestSchema, PortalCallItemResultSchema, PortalCallRequest, PortalCallRequestSchema, PortalCallResult, PortalCallResultSchema, PortalCallSurfaceJsonSchemas, PortalDescribeItemRequestSchema, PortalDescribeItemResultSchema, PortalDescribeItemValueSchema, PortalDescribeRequest, PortalDescribeRequestSchema, PortalDescribeResult, PortalDescribeResultSchema, PortalError, PortalErrorCode, PortalErrorCodeSchema, PortalErrorSchema, PortalGenericItemResultSchema, PortalListItemRequestSchema, PortalListItemResultSchema, PortalListItemValueSchema, PortalListRequest, PortalListRequestSchema, PortalListResult, PortalListResultSchema, PortalSearchItemRequestSchema, PortalSearchItemResultSchema, PortalSearchItemValueSchema, PortalSearchRequest, PortalSearchRequestSchema, PortalSearchResult, PortalSearchResultSchema, TruncationMetadataSchema, createPortalCallSurfaceJsonSchemas };
|
|
@@ -1,69 +1,5 @@
|
|
|
1
|
-
import { n as PortalErrorSchema,
|
|
2
|
-
import { d as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const PortalDescribeItemRequestSchema = z.object({
|
|
7
|
-
id: RequestIdSchema,
|
|
8
|
-
includeJsonSchema: z.boolean().default(true),
|
|
9
|
-
includeRelated: z.boolean().default(true),
|
|
10
|
-
includeTypescriptHelper: z.boolean().default(false),
|
|
11
|
-
includeZod: z.boolean().default(false),
|
|
12
|
-
refs: z.array(z.string().min(1)).optional(),
|
|
13
|
-
tools: z.array(CapabilityReferenceSchema).optional()
|
|
14
|
-
}).strict();
|
|
15
|
-
const PortalDescribeRequestSchema = z.object({
|
|
16
|
-
requestId: RequestIdSchema.optional(),
|
|
17
|
-
requests: z.array(PortalDescribeItemRequestSchema).min(1).max(50)
|
|
18
|
-
}).strict().superRefine((request, context) => {
|
|
19
|
-
addDuplicateItemIdIssues(request.requests, context);
|
|
20
|
-
});
|
|
21
|
-
//#endregion
|
|
22
|
-
//#region src/portal-call-surface/models/portal-list-request-schema.ts
|
|
23
|
-
const PortalListItemRequestSchema = z.object({
|
|
24
|
-
cursor: z.string().regex(/^\d+$/u).optional(),
|
|
25
|
-
id: RequestIdSchema,
|
|
26
|
-
limit: z.number().int().positive().max(100).default(20),
|
|
27
|
-
namespaces: z.array(z.string().min(1)).optional(),
|
|
28
|
-
refs: z.array(z.string().min(1)).optional(),
|
|
29
|
-
tools: z.array(CapabilityReferenceSchema).optional()
|
|
30
|
-
}).strict();
|
|
31
|
-
const PortalListRequestSchema = z.object({
|
|
32
|
-
requestId: RequestIdSchema.optional(),
|
|
33
|
-
requests: z.array(PortalListItemRequestSchema).min(1).max(50)
|
|
34
|
-
}).strict().superRefine((request, context) => {
|
|
35
|
-
addDuplicateItemIdIssues(request.requests, context);
|
|
36
|
-
});
|
|
37
|
-
//#endregion
|
|
38
|
-
//#region src/portal-call-surface/models/portal-search-request-schema.ts
|
|
39
|
-
const PortalSearchItemRequestSchema = z.object({
|
|
40
|
-
id: RequestIdSchema,
|
|
41
|
-
limit: z.number().int().positive().max(50).default(10),
|
|
42
|
-
namespaces: z.array(z.string().min(1)).optional(),
|
|
43
|
-
query: z.string().optional(),
|
|
44
|
-
schemaDetail: z.enum([
|
|
45
|
-
"none",
|
|
46
|
-
"summary",
|
|
47
|
-
"full"
|
|
48
|
-
]).default("summary")
|
|
49
|
-
}).strict();
|
|
50
|
-
const PortalSearchRequestSchema = z.object({
|
|
51
|
-
requestId: RequestIdSchema.optional(),
|
|
52
|
-
requests: z.array(PortalSearchItemRequestSchema).min(1).max(50)
|
|
53
|
-
}).strict().superRefine((request, context) => {
|
|
54
|
-
addDuplicateItemIdIssues(request.requests, context);
|
|
55
|
-
});
|
|
56
|
-
//#endregion
|
|
57
|
-
//#region src/portal-call-surface/portal-call-json-schema-exporter.ts
|
|
58
|
-
function createPortalCallSurfaceJsonSchemas() {
|
|
59
|
-
return {
|
|
60
|
-
call: z.toJSONSchema(PortalCallRequestSchema, { io: "input" }),
|
|
61
|
-
describe: z.toJSONSchema(PortalDescribeRequestSchema, { io: "input" }),
|
|
62
|
-
list: z.toJSONSchema(PortalListRequestSchema, { io: "input" }),
|
|
63
|
-
search: z.toJSONSchema(PortalSearchRequestSchema, { io: "input" })
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
//#endregion
|
|
67
|
-
export { PortalBatchMaxItems, PortalCallItemRequestSchema, PortalCallItemResultSchema, PortalCallRequestSchema, PortalCallResultSchema, PortalDescribeItemRequestSchema, PortalDescribeItemResultSchema, PortalDescribeItemValueSchema, PortalDescribeRequestSchema, PortalDescribeResultSchema, PortalErrorCodeSchema, PortalErrorSchema, PortalGenericItemResultSchema, PortalListItemRequestSchema, PortalListItemResultSchema, PortalListItemValueSchema, PortalListRequestSchema, PortalListResultSchema, PortalSearchItemRequestSchema, PortalSearchItemResultSchema, PortalSearchItemValueSchema, PortalSearchRequestSchema, PortalSearchResultSchema, TruncationMetadataSchema, createPortalCallSurfaceJsonSchemas };
|
|
68
|
-
|
|
69
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { n as PortalErrorSchema, t as PortalErrorCodeSchema } from "../portal-error-schema-CQHgoFq4.js";
|
|
2
|
+
import { a as PortalDescribeItemResultSchema, c as PortalGenericItemResultSchema, d as PortalListResultSchema, f as PortalSearchItemResultSchema, h as TruncationMetadataSchema, i as PortalCallResultSchema, l as PortalListItemResultSchema, m as PortalSearchResultSchema, n as PortalApprovalRequiredCallItemResultSchema, o as PortalDescribeItemValueSchema, p as PortalSearchItemValueSchema, r as PortalCallItemResultSchema, s as PortalDescribeResultSchema, t as PortalApprovalChallengeSchema, u as PortalListItemValueSchema } from "../portal-call-result-schema-ByxHRCEN.js";
|
|
3
|
+
import { n as PortalCallItemRequestSchema, r as PortalCallRequestSchema, t as PortalBatchMaxItems } from "../portal-call-request-schema-Cp6CMGs9.js";
|
|
4
|
+
import { a as PortalListRequestSchema, i as PortalListItemRequestSchema, n as PortalSearchItemRequestSchema, o as PortalDescribeItemRequestSchema, r as PortalSearchRequestSchema, s as PortalDescribeRequestSchema, t as createPortalCallSurfaceJsonSchemas } from "../portal-call-surface-DjZVquFt.js";
|
|
5
|
+
export { PortalApprovalChallengeSchema, PortalApprovalRequiredCallItemResultSchema, PortalBatchMaxItems, PortalCallItemRequestSchema, PortalCallItemResultSchema, PortalCallRequestSchema, PortalCallResultSchema, PortalDescribeItemRequestSchema, PortalDescribeItemResultSchema, PortalDescribeItemValueSchema, PortalDescribeRequestSchema, PortalDescribeResultSchema, PortalErrorCodeSchema, PortalErrorSchema, PortalGenericItemResultSchema, PortalListItemRequestSchema, PortalListItemResultSchema, PortalListItemValueSchema, PortalListRequestSchema, PortalListResultSchema, PortalSearchItemRequestSchema, PortalSearchItemResultSchema, PortalSearchItemValueSchema, PortalSearchRequestSchema, PortalSearchResultSchema, TruncationMetadataSchema, createPortalCallSurfaceJsonSchemas };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { n as withPortableSuperRefinement } from "./portable-refinement-authoring-ZSmR-amG.js";
|
|
2
|
+
import { o as RequestIdSchema } from "./portal-error-schema-CQHgoFq4.js";
|
|
3
|
+
import { d as CapabilityReferenceSchema } from "./capability-descriptor-schema-zRnfGjBc.js";
|
|
4
|
+
import "./portal-call-result-schema-ByxHRCEN.js";
|
|
5
|
+
import { i as addDuplicateItemIdIssues, r as PortalCallRequestSchema } from "./portal-call-request-schema-Cp6CMGs9.js";
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
//#region src/portal-call-surface/models/portal-describe-request-schema.ts
|
|
8
|
+
const PortalDescribeItemRequestSchema = z.object({
|
|
9
|
+
id: RequestIdSchema,
|
|
10
|
+
includeJsonSchema: z.boolean().default(true),
|
|
11
|
+
includeRelated: z.boolean().default(true),
|
|
12
|
+
includeTypescriptHelper: z.boolean().default(false),
|
|
13
|
+
includeZod: z.boolean().default(false),
|
|
14
|
+
refs: z.array(z.string().min(1)).optional(),
|
|
15
|
+
tools: z.array(CapabilityReferenceSchema).optional()
|
|
16
|
+
}).strict();
|
|
17
|
+
const PortalDescribeRequestSchema = withPortableSuperRefinement({
|
|
18
|
+
refinement: (request, context) => {
|
|
19
|
+
addDuplicateItemIdIssues(request.requests, context);
|
|
20
|
+
},
|
|
21
|
+
refinementIdentity: "portal.batch.unique-item-ids",
|
|
22
|
+
schema: z.object({
|
|
23
|
+
requestId: RequestIdSchema.optional(),
|
|
24
|
+
requests: z.array(PortalDescribeItemRequestSchema).min(1).max(50)
|
|
25
|
+
}).strict()
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/portal-call-surface/models/portal-list-request-schema.ts
|
|
29
|
+
const PortalListItemRequestSchema = z.object({
|
|
30
|
+
cursor: z.string().regex(/^\d+$/u).optional(),
|
|
31
|
+
id: RequestIdSchema,
|
|
32
|
+
limit: z.number().int().positive().max(100).default(20),
|
|
33
|
+
namespaces: z.array(z.string().min(1)).optional(),
|
|
34
|
+
refs: z.array(z.string().min(1)).optional(),
|
|
35
|
+
tools: z.array(CapabilityReferenceSchema).optional()
|
|
36
|
+
}).strict();
|
|
37
|
+
const PortalListRequestSchema = withPortableSuperRefinement({
|
|
38
|
+
refinement: (request, context) => {
|
|
39
|
+
addDuplicateItemIdIssues(request.requests, context);
|
|
40
|
+
},
|
|
41
|
+
refinementIdentity: "portal.batch.unique-item-ids",
|
|
42
|
+
schema: z.object({
|
|
43
|
+
requestId: RequestIdSchema.optional(),
|
|
44
|
+
requests: z.array(PortalListItemRequestSchema).min(1).max(50)
|
|
45
|
+
}).strict()
|
|
46
|
+
});
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/portal-call-surface/models/portal-search-request-schema.ts
|
|
49
|
+
const PortalSearchItemRequestSchema = z.object({
|
|
50
|
+
id: RequestIdSchema,
|
|
51
|
+
limit: z.number().int().positive().max(50).default(10),
|
|
52
|
+
namespaces: z.array(z.string().min(1)).optional(),
|
|
53
|
+
query: z.string().optional(),
|
|
54
|
+
schemaDetail: z.enum([
|
|
55
|
+
"none",
|
|
56
|
+
"summary",
|
|
57
|
+
"full"
|
|
58
|
+
]).default("summary")
|
|
59
|
+
}).strict();
|
|
60
|
+
const PortalSearchRequestSchema = withPortableSuperRefinement({
|
|
61
|
+
refinement: (request, context) => {
|
|
62
|
+
addDuplicateItemIdIssues(request.requests, context);
|
|
63
|
+
},
|
|
64
|
+
refinementIdentity: "portal.batch.unique-item-ids",
|
|
65
|
+
schema: z.object({
|
|
66
|
+
requestId: RequestIdSchema.optional(),
|
|
67
|
+
requests: z.array(PortalSearchItemRequestSchema).min(1).max(50)
|
|
68
|
+
}).strict()
|
|
69
|
+
});
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/portal-call-surface/portal-call-json-schema-exporter.ts
|
|
72
|
+
function createPortalCallSurfaceJsonSchemas() {
|
|
73
|
+
return {
|
|
74
|
+
call: z.toJSONSchema(PortalCallRequestSchema, { io: "input" }),
|
|
75
|
+
describe: z.toJSONSchema(PortalDescribeRequestSchema, { io: "input" }),
|
|
76
|
+
list: z.toJSONSchema(PortalListRequestSchema, { io: "input" }),
|
|
77
|
+
search: z.toJSONSchema(PortalSearchRequestSchema, { io: "input" })
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
//#endregion
|
|
81
|
+
export { PortalListRequestSchema as a, PortalListItemRequestSchema as i, PortalSearchItemRequestSchema as n, PortalDescribeItemRequestSchema as o, PortalSearchRequestSchema as r, PortalDescribeRequestSchema as s, createPortalCallSurfaceJsonSchemas as t };
|
|
82
|
+
|
|
83
|
+
//# sourceMappingURL=portal-call-surface-DjZVquFt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portal-call-surface-DjZVquFt.js","names":[],"sources":["../src/portal-call-surface/models/portal-describe-request-schema.ts","../src/portal-call-surface/models/portal-list-request-schema.ts","../src/portal-call-surface/models/portal-search-request-schema.ts","../src/portal-call-surface/portal-call-json-schema-exporter.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { CapabilityReferenceSchema } from '../../contract-primitives/models/capability-reference-schema.js';\nimport { RequestIdSchema } from '../../contract-primitives/models/request-id-schema.js';\nimport { withPortableSuperRefinement } from '../../portable-contracts/portable-refinement-authoring.js';\nimport { addDuplicateItemIdIssues } from './portal-batch-id-refinement.js';\nimport { PortalBatchMaxItems } from './portal-call-request-schema.js';\n\nexport const PortalDescribeItemRequestSchema = z\n\t.object({\n\t\tid: RequestIdSchema,\n\t\tincludeJsonSchema: z.boolean().default(true),\n\t\tincludeRelated: z.boolean().default(true),\n\t\tincludeTypescriptHelper: z.boolean().default(false),\n\t\tincludeZod: z.boolean().default(false),\n\t\trefs: z.array(z.string().min(1)).optional(),\n\t\ttools: z.array(CapabilityReferenceSchema).optional(),\n\t})\n\t.strict();\n\nexport const PortalDescribeRequestSchema = withPortableSuperRefinement({\n\trefinement: (request, context) => {\n\t\taddDuplicateItemIdIssues(request.requests, context);\n\t},\n\trefinementIdentity: 'portal.batch.unique-item-ids',\n\tschema: z\n\t\t.object({\n\t\t\trequestId: RequestIdSchema.optional(),\n\t\t\trequests: z.array(PortalDescribeItemRequestSchema).min(1).max(PortalBatchMaxItems),\n\t\t})\n\t\t.strict(),\n});\n\nexport type PortalDescribeRequest = z.infer<typeof PortalDescribeRequestSchema>;\n","import { z } from 'zod';\n\nimport { CapabilityReferenceSchema } from '../../contract-primitives/models/capability-reference-schema.js';\nimport { RequestIdSchema } from '../../contract-primitives/models/request-id-schema.js';\nimport { withPortableSuperRefinement } from '../../portable-contracts/portable-refinement-authoring.js';\nimport { addDuplicateItemIdIssues } from './portal-batch-id-refinement.js';\nimport { PortalBatchMaxItems } from './portal-call-request-schema.js';\n\nexport const PortalListItemRequestSchema = z\n\t.object({\n\t\tcursor: z.string().regex(/^\\d+$/u).optional(),\n\t\tid: RequestIdSchema,\n\t\tlimit: z.number().int().positive().max(100).default(20),\n\t\tnamespaces: z.array(z.string().min(1)).optional(),\n\t\trefs: z.array(z.string().min(1)).optional(),\n\t\ttools: z.array(CapabilityReferenceSchema).optional(),\n\t})\n\t.strict();\n\nexport const PortalListRequestSchema = withPortableSuperRefinement({\n\trefinement: (request, context) => {\n\t\taddDuplicateItemIdIssues(request.requests, context);\n\t},\n\trefinementIdentity: 'portal.batch.unique-item-ids',\n\tschema: z\n\t\t.object({\n\t\t\trequestId: RequestIdSchema.optional(),\n\t\t\trequests: z.array(PortalListItemRequestSchema).min(1).max(PortalBatchMaxItems),\n\t\t})\n\t\t.strict(),\n});\n\nexport type PortalListRequest = z.infer<typeof PortalListRequestSchema>;\n","import { z } from 'zod';\n\nimport { RequestIdSchema } from '../../contract-primitives/models/request-id-schema.js';\nimport { withPortableSuperRefinement } from '../../portable-contracts/portable-refinement-authoring.js';\nimport { addDuplicateItemIdIssues } from './portal-batch-id-refinement.js';\nimport { PortalBatchMaxItems } from './portal-call-request-schema.js';\n\nexport const PortalSearchItemRequestSchema = z\n\t.object({\n\t\tid: RequestIdSchema,\n\t\tlimit: z.number().int().positive().max(50).default(10),\n\t\tnamespaces: z.array(z.string().min(1)).optional(),\n\t\tquery: z.string().optional(),\n\t\tschemaDetail: z.enum(['none', 'summary', 'full']).default('summary'),\n\t})\n\t.strict();\n\nexport const PortalSearchRequestSchema = withPortableSuperRefinement({\n\trefinement: (request, context) => {\n\t\taddDuplicateItemIdIssues(request.requests, context);\n\t},\n\trefinementIdentity: 'portal.batch.unique-item-ids',\n\tschema: z\n\t\t.object({\n\t\t\trequestId: RequestIdSchema.optional(),\n\t\t\trequests: z.array(PortalSearchItemRequestSchema).min(1).max(PortalBatchMaxItems),\n\t\t})\n\t\t.strict(),\n});\n\nexport type PortalSearchRequest = z.infer<typeof PortalSearchRequestSchema>;\n","import { z } from 'zod';\n\nimport { PortalCallRequestSchema } from './models/portal-call-request-schema.js';\nimport { PortalDescribeRequestSchema } from './models/portal-describe-request-schema.js';\nimport { PortalListRequestSchema } from './models/portal-list-request-schema.js';\nimport { PortalSearchRequestSchema } from './models/portal-search-request-schema.js';\n\nexport interface PortalCallSurfaceJsonSchemas {\n\treadonly call: Record<string, unknown>;\n\treadonly describe: Record<string, unknown>;\n\treadonly list: Record<string, unknown>;\n\treadonly search: Record<string, unknown>;\n}\n\nexport function createPortalCallSurfaceJsonSchemas(): PortalCallSurfaceJsonSchemas {\n\treturn {\n\t\tcall: z.toJSONSchema(PortalCallRequestSchema, { io: 'input' }),\n\t\tdescribe: z.toJSONSchema(PortalDescribeRequestSchema, { io: 'input' }),\n\t\tlist: z.toJSONSchema(PortalListRequestSchema, { io: 'input' }),\n\t\tsearch: z.toJSONSchema(PortalSearchRequestSchema, { io: 'input' }),\n\t};\n}\n"],"mappings":";;;;;;;AAQA,MAAa,kCAAkC,EAC7C,OAAO;CACP,IAAI;CACJ,mBAAmB,EAAE,SAAS,CAAC,QAAQ,KAAK;CAC5C,gBAAgB,EAAE,SAAS,CAAC,QAAQ,KAAK;CACzC,yBAAyB,EAAE,SAAS,CAAC,QAAQ,MAAM;CACnD,YAAY,EAAE,SAAS,CAAC,QAAQ,MAAM;CACtC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,UAAU;CAC3C,OAAO,EAAE,MAAM,0BAA0B,CAAC,UAAU;CACpD,CAAC,CACD,QAAQ;AAEV,MAAa,8BAA8B,4BAA4B;CACtE,aAAa,SAAS,YAAY;EACjC,yBAAyB,QAAQ,UAAU,QAAQ;;CAEpD,oBAAoB;CACpB,QAAQ,EACN,OAAO;EACP,WAAW,gBAAgB,UAAU;EACrC,UAAU,EAAE,MAAM,gCAAgC,CAAC,IAAI,EAAE,CAAC,IAAA,GAAwB;EAClF,CAAC,CACD,QAAQ;CACV,CAAC;;;ACvBF,MAAa,8BAA8B,EACzC,OAAO;CACP,QAAQ,EAAE,QAAQ,CAAC,MAAM,SAAS,CAAC,UAAU;CAC7C,IAAI;CACJ,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,QAAQ,GAAG;CACvD,YAAY,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,UAAU;CACjD,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,UAAU;CAC3C,OAAO,EAAE,MAAM,0BAA0B,CAAC,UAAU;CACpD,CAAC,CACD,QAAQ;AAEV,MAAa,0BAA0B,4BAA4B;CAClE,aAAa,SAAS,YAAY;EACjC,yBAAyB,QAAQ,UAAU,QAAQ;;CAEpD,oBAAoB;CACpB,QAAQ,EACN,OAAO;EACP,WAAW,gBAAgB,UAAU;EACrC,UAAU,EAAE,MAAM,4BAA4B,CAAC,IAAI,EAAE,CAAC,IAAA,GAAwB;EAC9E,CAAC,CACD,QAAQ;CACV,CAAC;;;ACvBF,MAAa,gCAAgC,EAC3C,OAAO;CACP,IAAI;CACJ,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,GAAG,CAAC,QAAQ,GAAG;CACtD,YAAY,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,UAAU;CACjD,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,cAAc,EAAE,KAAK;EAAC;EAAQ;EAAW;EAAO,CAAC,CAAC,QAAQ,UAAU;CACpE,CAAC,CACD,QAAQ;AAEV,MAAa,4BAA4B,4BAA4B;CACpE,aAAa,SAAS,YAAY;EACjC,yBAAyB,QAAQ,UAAU,QAAQ;;CAEpD,oBAAoB;CACpB,QAAQ,EACN,OAAO;EACP,WAAW,gBAAgB,UAAU;EACrC,UAAU,EAAE,MAAM,8BAA8B,CAAC,IAAI,EAAE,CAAC,IAAA,GAAwB;EAChF,CAAC,CACD,QAAQ;CACV,CAAC;;;ACdF,SAAgB,qCAAmE;CAClF,OAAO;EACN,MAAM,EAAE,aAAa,yBAAyB,EAAE,IAAI,SAAS,CAAC;EAC9D,UAAU,EAAE,aAAa,6BAA6B,EAAE,IAAI,SAAS,CAAC;EACtE,MAAM,EAAE,aAAa,yBAAyB,EAAE,IAAI,SAAS,CAAC;EAC9D,QAAQ,EAAE,aAAa,2BAA2B,EAAE,IAAI,SAAS,CAAC;EAClE"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as withPortableSuperRefinement } from "./portable-refinement-authoring-ZSmR-amG.js";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
//#region src/contract-primitives/models/request-id-schema.ts
|
|
3
4
|
const reservedRequestIds = new Set([
|
|
@@ -5,7 +6,16 @@ const reservedRequestIds = new Set([
|
|
|
5
6
|
"constructor",
|
|
6
7
|
"prototype"
|
|
7
8
|
]);
|
|
8
|
-
const RequestIdSchema =
|
|
9
|
+
const RequestIdSchema = withPortableSuperRefinement({
|
|
10
|
+
refinement: (id, context) => {
|
|
11
|
+
if (reservedRequestIds.has(id)) context.addIssue({
|
|
12
|
+
code: "custom",
|
|
13
|
+
message: "Portal request id uses a reserved object property name."
|
|
14
|
+
});
|
|
15
|
+
},
|
|
16
|
+
refinementIdentity: "portal.request-id.not-reserved",
|
|
17
|
+
schema: z.string().min(1)
|
|
18
|
+
});
|
|
9
19
|
const ItemIdSchema = RequestIdSchema;
|
|
10
20
|
//#endregion
|
|
11
21
|
//#region src/portal-event-surface/models/safe-diagnostic-schema.ts
|
|
@@ -58,4 +68,4 @@ const PortalErrorSchema = z.object({
|
|
|
58
68
|
//#endregion
|
|
59
69
|
export { ItemIdSchema as a, SafeDiagnosticSchema as i, PortalErrorSchema as n, RequestIdSchema as o, SafeDiagnosticCodeSchema as r, PortalErrorCodeSchema as t };
|
|
60
70
|
|
|
61
|
-
//# sourceMappingURL=portal-error-schema-
|
|
71
|
+
//# sourceMappingURL=portal-error-schema-CQHgoFq4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portal-error-schema-CQHgoFq4.js","names":[],"sources":["../src/contract-primitives/models/request-id-schema.ts","../src/portal-event-surface/models/safe-diagnostic-schema.ts","../src/portal-call-surface/models/portal-error-schema.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { withPortableSuperRefinement } from '../../portable-contracts/portable-refinement-authoring.js';\n\nconst reservedRequestIds = new Set(['__proto__', 'constructor', 'prototype']);\n\nexport const RequestIdSchema = withPortableSuperRefinement({\n\trefinement: (id, context) => {\n\t\tif (reservedRequestIds.has(id)) {\n\t\t\tcontext.addIssue({\n\t\t\t\tcode: 'custom',\n\t\t\t\tmessage: 'Portal request id uses a reserved object property name.',\n\t\t\t});\n\t\t}\n\t},\n\trefinementIdentity: 'portal.request-id.not-reserved',\n\tschema: z.string().min(1),\n});\n\nexport const ItemIdSchema = RequestIdSchema;\n","import { z } from 'zod';\n\nexport const SafeDiagnosticCodeSchema = z.enum([\n\t'provider_unavailable',\n\t'capability_denied',\n\t'approval_required',\n\t'validation_failed',\n\t'execution_failed',\n\t'output_truncated',\n\t'timeout',\n\t'cancelled',\n\t'artifact_unavailable',\n]);\n\nexport const SafeDiagnosticSchema = z\n\t.object({\n\t\tcode: SafeDiagnosticCodeSchema,\n\t\tlevel: z.enum(['debug', 'info', 'warn', 'error']),\n\t\tsafeMessage: z.string().max(500),\n\t\tsafeParams: z.record(z.string(), z.union([z.string(), z.number(), z.boolean()])).optional(),\n\t})\n\t.strict();\n\nexport type SafeDiagnostic = z.infer<typeof SafeDiagnosticSchema>;\n","import { z } from 'zod';\n\nimport { SafeDiagnosticSchema } from '../../portal-event-surface/models/safe-diagnostic-schema.js';\n\nexport const PortalErrorCodeSchema = z.enum([\n\t'invalid_request',\n\t'not_found',\n\t'not_authorized',\n\t'approval_required',\n\t'capability_denied',\n\t'validation_failed',\n\t'provider_unavailable',\n\t'execution_failed',\n\t'cancelled',\n\t'timeout',\n]);\n\nexport type PortalErrorCode = z.infer<typeof PortalErrorCodeSchema>;\n\nexport const PortalErrorSchema = z\n\t.object({\n\t\tcode: PortalErrorCodeSchema,\n\t\tmessage: z.string().min(1).max(500),\n\t\tretryable: z.boolean().optional(),\n\t\tsafeDiagnostic: SafeDiagnosticSchema.optional(),\n\t})\n\t.strict();\n\nexport type PortalError = z.infer<typeof PortalErrorSchema>;\n"],"mappings":";;;AAIA,MAAM,qBAAqB,IAAI,IAAI;CAAC;CAAa;CAAe;CAAY,CAAC;AAE7E,MAAa,kBAAkB,4BAA4B;CAC1D,aAAa,IAAI,YAAY;EAC5B,IAAI,mBAAmB,IAAI,GAAG,EAC7B,QAAQ,SAAS;GAChB,MAAM;GACN,SAAS;GACT,CAAC;;CAGJ,oBAAoB;CACpB,QAAQ,EAAE,QAAQ,CAAC,IAAI,EAAE;CACzB,CAAC;AAEF,MAAa,eAAe;;;ACjB5B,MAAa,2BAA2B,EAAE,KAAK;CAC9C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,CAAC;AAEF,MAAa,uBAAuB,EAClC,OAAO;CACP,MAAM;CACN,OAAO,EAAE,KAAK;EAAC;EAAS;EAAQ;EAAQ;EAAQ,CAAC;CACjD,aAAa,EAAE,QAAQ,CAAC,IAAI,IAAI;CAChC,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,MAAM;EAAC,EAAE,QAAQ;EAAE,EAAE,QAAQ;EAAE,EAAE,SAAS;EAAC,CAAC,CAAC,CAAC,UAAU;CAC3F,CAAC,CACD,QAAQ;;;ACjBV,MAAa,wBAAwB,EAAE,KAAK;CAC3C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,CAAC;AAIF,MAAa,oBAAoB,EAC/B,OAAO;CACP,MAAM;CACN,SAAS,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,IAAI;CACnC,WAAW,EAAE,SAAS,CAAC,UAAU;CACjC,gBAAgB,qBAAqB,UAAU;CAC/C,CAAC,CACD,QAAQ"}
|
|
@@ -1,229 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/portal-event-surface/models/portal-event-schema.d.ts
|
|
4
|
-
declare const PortalProgressEventSchema: z.ZodObject<{
|
|
5
|
-
id: z.ZodString;
|
|
6
|
-
kind: z.ZodLiteral<"progress">;
|
|
7
|
-
message: z.ZodString;
|
|
8
|
-
percent: z.ZodOptional<z.ZodNumber>;
|
|
9
|
-
}, z.core.$strict>;
|
|
10
|
-
type PortalProgressEvent = z.infer<typeof PortalProgressEventSchema>;
|
|
11
|
-
declare const PortalPartialOutputEventSchema: z.ZodObject<{
|
|
12
|
-
id: z.ZodString;
|
|
13
|
-
kind: z.ZodLiteral<"partial_output">;
|
|
14
|
-
stream: z.ZodEnum<{
|
|
15
|
-
stdout: "stdout";
|
|
16
|
-
stderr: "stderr";
|
|
17
|
-
result: "result";
|
|
18
|
-
}>;
|
|
19
|
-
text: z.ZodString;
|
|
20
|
-
truncated: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
-
}, z.core.$strict>;
|
|
22
|
-
type PortalPartialOutputEvent = z.infer<typeof PortalPartialOutputEventSchema>;
|
|
23
|
-
declare const PortalDiagnosticEventSchema: z.ZodObject<{
|
|
24
|
-
diagnostic: z.ZodObject<{
|
|
25
|
-
code: z.ZodEnum<{
|
|
26
|
-
approval_required: "approval_required";
|
|
27
|
-
capability_denied: "capability_denied";
|
|
28
|
-
validation_failed: "validation_failed";
|
|
29
|
-
provider_unavailable: "provider_unavailable";
|
|
30
|
-
execution_failed: "execution_failed";
|
|
31
|
-
cancelled: "cancelled";
|
|
32
|
-
timeout: "timeout";
|
|
33
|
-
output_truncated: "output_truncated";
|
|
34
|
-
artifact_unavailable: "artifact_unavailable";
|
|
35
|
-
}>;
|
|
36
|
-
level: z.ZodEnum<{
|
|
37
|
-
error: "error";
|
|
38
|
-
debug: "debug";
|
|
39
|
-
info: "info";
|
|
40
|
-
warn: "warn";
|
|
41
|
-
}>;
|
|
42
|
-
safeMessage: z.ZodString;
|
|
43
|
-
safeParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
44
|
-
}, z.core.$strict>;
|
|
45
|
-
id: z.ZodString;
|
|
46
|
-
kind: z.ZodLiteral<"diagnostic">;
|
|
47
|
-
}, z.core.$strict>;
|
|
48
|
-
type PortalDiagnosticEvent = z.infer<typeof PortalDiagnosticEventSchema>;
|
|
49
|
-
declare const PortalCancellationRequestEventSchema: z.ZodObject<{
|
|
50
|
-
id: z.ZodString;
|
|
51
|
-
kind: z.ZodLiteral<"cancellation_requested">;
|
|
52
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
53
|
-
}, z.core.$strict>;
|
|
54
|
-
type PortalCancellationRequestEvent = z.infer<typeof PortalCancellationRequestEventSchema>;
|
|
55
|
-
declare const PortalCancellationResultEventSchema: z.ZodObject<{
|
|
56
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
57
|
-
code: z.ZodEnum<{
|
|
58
|
-
invalid_request: "invalid_request";
|
|
59
|
-
not_found: "not_found";
|
|
60
|
-
not_authorized: "not_authorized";
|
|
61
|
-
approval_required: "approval_required";
|
|
62
|
-
capability_denied: "capability_denied";
|
|
63
|
-
validation_failed: "validation_failed";
|
|
64
|
-
provider_unavailable: "provider_unavailable";
|
|
65
|
-
execution_failed: "execution_failed";
|
|
66
|
-
cancelled: "cancelled";
|
|
67
|
-
timeout: "timeout";
|
|
68
|
-
}>;
|
|
69
|
-
message: z.ZodString;
|
|
70
|
-
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
71
|
-
safeDiagnostic: z.ZodOptional<z.ZodObject<{
|
|
72
|
-
code: z.ZodEnum<{
|
|
73
|
-
approval_required: "approval_required";
|
|
74
|
-
capability_denied: "capability_denied";
|
|
75
|
-
validation_failed: "validation_failed";
|
|
76
|
-
provider_unavailable: "provider_unavailable";
|
|
77
|
-
execution_failed: "execution_failed";
|
|
78
|
-
cancelled: "cancelled";
|
|
79
|
-
timeout: "timeout";
|
|
80
|
-
output_truncated: "output_truncated";
|
|
81
|
-
artifact_unavailable: "artifact_unavailable";
|
|
82
|
-
}>;
|
|
83
|
-
level: z.ZodEnum<{
|
|
84
|
-
error: "error";
|
|
85
|
-
debug: "debug";
|
|
86
|
-
info: "info";
|
|
87
|
-
warn: "warn";
|
|
88
|
-
}>;
|
|
89
|
-
safeMessage: z.ZodString;
|
|
90
|
-
safeParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
91
|
-
}, z.core.$strict>>;
|
|
92
|
-
}, z.core.$strict>>;
|
|
93
|
-
id: z.ZodString;
|
|
94
|
-
kind: z.ZodLiteral<"cancellation_result">;
|
|
95
|
-
status: z.ZodEnum<{
|
|
96
|
-
not_found: "not_found";
|
|
97
|
-
cancelled: "cancelled";
|
|
98
|
-
already_finished: "already_finished";
|
|
99
|
-
}>;
|
|
100
|
-
}, z.core.$strict>;
|
|
101
|
-
type PortalCancellationResultEvent = z.infer<typeof PortalCancellationResultEventSchema>;
|
|
102
|
-
declare const PortalEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
103
|
-
id: z.ZodString;
|
|
104
|
-
kind: z.ZodLiteral<"progress">;
|
|
105
|
-
message: z.ZodString;
|
|
106
|
-
percent: z.ZodOptional<z.ZodNumber>;
|
|
107
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
108
|
-
id: z.ZodString;
|
|
109
|
-
kind: z.ZodLiteral<"partial_output">;
|
|
110
|
-
stream: z.ZodEnum<{
|
|
111
|
-
stdout: "stdout";
|
|
112
|
-
stderr: "stderr";
|
|
113
|
-
result: "result";
|
|
114
|
-
}>;
|
|
115
|
-
text: z.ZodString;
|
|
116
|
-
truncated: z.ZodDefault<z.ZodBoolean>;
|
|
117
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
118
|
-
diagnostic: z.ZodObject<{
|
|
119
|
-
code: z.ZodEnum<{
|
|
120
|
-
approval_required: "approval_required";
|
|
121
|
-
capability_denied: "capability_denied";
|
|
122
|
-
validation_failed: "validation_failed";
|
|
123
|
-
provider_unavailable: "provider_unavailable";
|
|
124
|
-
execution_failed: "execution_failed";
|
|
125
|
-
cancelled: "cancelled";
|
|
126
|
-
timeout: "timeout";
|
|
127
|
-
output_truncated: "output_truncated";
|
|
128
|
-
artifact_unavailable: "artifact_unavailable";
|
|
129
|
-
}>;
|
|
130
|
-
level: z.ZodEnum<{
|
|
131
|
-
error: "error";
|
|
132
|
-
debug: "debug";
|
|
133
|
-
info: "info";
|
|
134
|
-
warn: "warn";
|
|
135
|
-
}>;
|
|
136
|
-
safeMessage: z.ZodString;
|
|
137
|
-
safeParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
138
|
-
}, z.core.$strict>;
|
|
139
|
-
id: z.ZodString;
|
|
140
|
-
kind: z.ZodLiteral<"diagnostic">;
|
|
141
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
142
|
-
id: z.ZodString;
|
|
143
|
-
kind: z.ZodLiteral<"cancellation_requested">;
|
|
144
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
145
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
146
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
147
|
-
code: z.ZodEnum<{
|
|
148
|
-
invalid_request: "invalid_request";
|
|
149
|
-
not_found: "not_found";
|
|
150
|
-
not_authorized: "not_authorized";
|
|
151
|
-
approval_required: "approval_required";
|
|
152
|
-
capability_denied: "capability_denied";
|
|
153
|
-
validation_failed: "validation_failed";
|
|
154
|
-
provider_unavailable: "provider_unavailable";
|
|
155
|
-
execution_failed: "execution_failed";
|
|
156
|
-
cancelled: "cancelled";
|
|
157
|
-
timeout: "timeout";
|
|
158
|
-
}>;
|
|
159
|
-
message: z.ZodString;
|
|
160
|
-
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
161
|
-
safeDiagnostic: z.ZodOptional<z.ZodObject<{
|
|
162
|
-
code: z.ZodEnum<{
|
|
163
|
-
approval_required: "approval_required";
|
|
164
|
-
capability_denied: "capability_denied";
|
|
165
|
-
validation_failed: "validation_failed";
|
|
166
|
-
provider_unavailable: "provider_unavailable";
|
|
167
|
-
execution_failed: "execution_failed";
|
|
168
|
-
cancelled: "cancelled";
|
|
169
|
-
timeout: "timeout";
|
|
170
|
-
output_truncated: "output_truncated";
|
|
171
|
-
artifact_unavailable: "artifact_unavailable";
|
|
172
|
-
}>;
|
|
173
|
-
level: z.ZodEnum<{
|
|
174
|
-
error: "error";
|
|
175
|
-
debug: "debug";
|
|
176
|
-
info: "info";
|
|
177
|
-
warn: "warn";
|
|
178
|
-
}>;
|
|
179
|
-
safeMessage: z.ZodString;
|
|
180
|
-
safeParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
181
|
-
}, z.core.$strict>>;
|
|
182
|
-
}, z.core.$strict>>;
|
|
183
|
-
id: z.ZodString;
|
|
184
|
-
kind: z.ZodLiteral<"cancellation_result">;
|
|
185
|
-
status: z.ZodEnum<{
|
|
186
|
-
not_found: "not_found";
|
|
187
|
-
cancelled: "cancelled";
|
|
188
|
-
already_finished: "already_finished";
|
|
189
|
-
}>;
|
|
190
|
-
}, z.core.$strict>], "kind">;
|
|
191
|
-
type PortalEvent = z.infer<typeof PortalEventSchema>;
|
|
192
|
-
//#endregion
|
|
193
|
-
//#region src/portal-event-surface/models/safe-diagnostic-schema.d.ts
|
|
194
|
-
declare const SafeDiagnosticCodeSchema: z.ZodEnum<{
|
|
195
|
-
approval_required: "approval_required";
|
|
196
|
-
capability_denied: "capability_denied";
|
|
197
|
-
validation_failed: "validation_failed";
|
|
198
|
-
provider_unavailable: "provider_unavailable";
|
|
199
|
-
execution_failed: "execution_failed";
|
|
200
|
-
cancelled: "cancelled";
|
|
201
|
-
timeout: "timeout";
|
|
202
|
-
output_truncated: "output_truncated";
|
|
203
|
-
artifact_unavailable: "artifact_unavailable";
|
|
204
|
-
}>;
|
|
205
|
-
declare const SafeDiagnosticSchema: z.ZodObject<{
|
|
206
|
-
code: z.ZodEnum<{
|
|
207
|
-
approval_required: "approval_required";
|
|
208
|
-
capability_denied: "capability_denied";
|
|
209
|
-
validation_failed: "validation_failed";
|
|
210
|
-
provider_unavailable: "provider_unavailable";
|
|
211
|
-
execution_failed: "execution_failed";
|
|
212
|
-
cancelled: "cancelled";
|
|
213
|
-
timeout: "timeout";
|
|
214
|
-
output_truncated: "output_truncated";
|
|
215
|
-
artifact_unavailable: "artifact_unavailable";
|
|
216
|
-
}>;
|
|
217
|
-
level: z.ZodEnum<{
|
|
218
|
-
error: "error";
|
|
219
|
-
debug: "debug";
|
|
220
|
-
info: "info";
|
|
221
|
-
warn: "warn";
|
|
222
|
-
}>;
|
|
223
|
-
safeMessage: z.ZodString;
|
|
224
|
-
safeParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
225
|
-
}, z.core.$strict>;
|
|
226
|
-
type SafeDiagnostic = z.infer<typeof SafeDiagnosticSchema>;
|
|
227
|
-
//#endregion
|
|
228
|
-
export { PortalCancellationRequestEvent, PortalCancellationRequestEventSchema, PortalCancellationResultEvent, PortalCancellationResultEventSchema, PortalDiagnosticEvent, PortalDiagnosticEventSchema, PortalEvent, PortalEventSchema, PortalPartialOutputEvent, PortalPartialOutputEventSchema, PortalProgressEvent, PortalProgressEventSchema, SafeDiagnostic, SafeDiagnosticCodeSchema, SafeDiagnosticSchema };
|
|
229
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
import { a as PortalCancellationRequestEventSchema, c as PortalDiagnosticEvent, d as PortalEventSchema, f as PortalPartialOutputEvent, h as PortalProgressEventSchema, i as PortalCancellationRequestEvent, l as PortalDiagnosticEventSchema, m as PortalProgressEvent, n as SafeDiagnosticCodeSchema, o as PortalCancellationResultEvent, p as PortalPartialOutputEventSchema, r as SafeDiagnosticSchema, s as PortalCancellationResultEventSchema, t as SafeDiagnostic, u as PortalEvent } from "../index-Dxoz-ORl.js";
|
|
2
|
+
export { PortalCancellationRequestEvent, PortalCancellationRequestEventSchema, PortalCancellationResultEvent, PortalCancellationResultEventSchema, PortalDiagnosticEvent, PortalDiagnosticEventSchema, PortalEvent, PortalEventSchema, PortalPartialOutputEvent, PortalPartialOutputEventSchema, PortalProgressEvent, PortalProgressEventSchema, SafeDiagnostic, SafeDiagnosticCodeSchema, SafeDiagnosticSchema };
|