@agent-vm/agent-portal-sdk 0.0.147 → 0.0.148
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-phfnKUSF.js} +2 -2
- package/dist/{approval-surface-Cqk_hAtN.js.map → approval-surface-phfnKUSF.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-YqGm-nS_.js +2 -0
- package/dist/{capability-descriptor-schema-v9tj7yKr.js → capability-descriptor-schema-B_0vLQ3E.js} +38 -2
- package/dist/capability-descriptor-schema-B_0vLQ3E.js.map +1 -0
- package/dist/cli/tool-portal.js +3 -3
- package/dist/gateway-runtime-client/index.d.ts +3 -3
- package/dist/gateway-runtime-client/index.js +3 -3
- package/dist/{index-DV6xiWeS.d.ts → index-C2axvEYg.d.ts} +3 -3
- package/dist/{index-DV6xiWeS.d.ts.map → index-C2axvEYg.d.ts.map} +1 -1
- package/dist/{index-3aVlpTwE.d.ts → index-DTTEu7ZT.d.ts} +17 -17
- package/dist/{index-3aVlpTwE.d.ts.map → index-DTTEu7ZT.d.ts.map} +1 -1
- package/dist/{index-ciLRJYVb.d.ts → index-DZJH4Rau.d.ts} +39 -39
- package/dist/{index-ciLRJYVb.d.ts.map → index-DZJH4Rau.d.ts.map} +1 -1
- package/dist/{index-D4UDHMft.d.ts → index-ex2lEawY.d.ts} +5 -5
- package/dist/{index-D4UDHMft.d.ts.map → index-ex2lEawY.d.ts.map} +1 -1
- package/dist/index-uDfElZ9U.d.ts +304 -0
- package/dist/index-uDfElZ9U.d.ts.map +1 -0
- package/dist/index.d.ts +6 -6
- package/dist/index.js +7 -7
- package/dist/portable-contracts/index.js +1 -1
- package/dist/{portable-contracts-BJEMMNwI.js → portable-contracts-CWLiYrVU.js} +4 -4
- package/dist/{portable-contracts-BJEMMNwI.js.map → portable-contracts-CWLiYrVU.js.map} +1 -1
- package/dist/{portal-call-result-schema-B25_rzZZ.js → portal-call-result-schema-DM77S9CA.js} +2 -2
- package/dist/{portal-call-result-schema-B25_rzZZ.js.map → portal-call-result-schema-DM77S9CA.js.map} +1 -1
- package/dist/{portal-call-result-schema-CFnKfcvZ.d.ts → portal-call-result-schema-Mv2Dv1HJ.d.ts} +983 -311
- package/dist/portal-call-result-schema-Mv2Dv1HJ.d.ts.map +1 -0
- package/dist/portal-call-surface/index.d.ts +2 -2
- package/dist/portal-call-surface/index.js +2 -2
- package/dist/{portal-call-surface-qykVz_8k.js → portal-call-surface-B952nh-H.js} +2 -2
- package/dist/{portal-call-surface-qykVz_8k.js.map → portal-call-surface-B952nh-H.js.map} +1 -1
- package/dist/portal-event-surface/index.d.ts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +1 -1
- 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-DsDi2iJc.js} +3 -3
- package/dist/{tool-portal-mcp-client-DZoloMod.js.map → tool-portal-mcp-client-DsDi2iJc.js.map} +1 -1
- package/package.json +3 -2
- package/portable-contract-schema-manifest.json +541 -0
- package/dist/capability-description-surface-CplIb93y.js +0 -2
- package/dist/capability-descriptor-schema-v9tj7yKr.js.map +0 -1
- package/dist/index-m4Mlc5zK.d.ts +0 -142
- package/dist/index-m4Mlc5zK.d.ts.map +0 -1
- package/dist/portal-call-result-schema-CFnKfcvZ.d.ts.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as GatewayApprovalDecisionResult, c as GatewayApprovalPresentationRequestSchema, d as ApprovalChallengeReferenceSchema, f as ApprovalDecisionReference, h as ApprovalRequiredResultSchema, i as GatewayApprovalDecisionRequestSchema, l as sanitizeGatewayApprovalArguments, m as ApprovalRequiredResult, n as ApprovalPresentationOutcomeSchema, o as GatewayApprovalDecisionResultSchema, p as ApprovalDecisionReferenceSchema, r as GatewayApprovalDecisionRequest, s as GatewayApprovalPresentationRequest, t as ApprovalPresentationOutcome, u as ApprovalChallengeReference } from "../index-
|
|
1
|
+
import { a as GatewayApprovalDecisionResult, c as GatewayApprovalPresentationRequestSchema, d as ApprovalChallengeReferenceSchema, f as ApprovalDecisionReference, h as ApprovalRequiredResultSchema, i as GatewayApprovalDecisionRequestSchema, l as sanitizeGatewayApprovalArguments, m as ApprovalRequiredResult, n as ApprovalPresentationOutcomeSchema, o as GatewayApprovalDecisionResultSchema, p as ApprovalDecisionReferenceSchema, r as GatewayApprovalDecisionRequest, s as GatewayApprovalPresentationRequest, t as ApprovalPresentationOutcome, u as ApprovalChallengeReference } from "../index-ex2lEawY.js";
|
|
2
2
|
export { ApprovalChallengeReference, ApprovalChallengeReferenceSchema, ApprovalDecisionReference, ApprovalDecisionReferenceSchema, ApprovalPresentationOutcome, ApprovalPresentationOutcomeSchema, ApprovalRequiredResult, ApprovalRequiredResultSchema, GatewayApprovalDecisionRequest, GatewayApprovalDecisionRequestSchema, GatewayApprovalDecisionResult, GatewayApprovalDecisionResultSchema, GatewayApprovalPresentationRequest, GatewayApprovalPresentationRequestSchema, sanitizeGatewayApprovalArguments };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as sanitizeGatewayApprovalArguments, c as ApprovalRequiredResultSchema, i as GatewayApprovalPresentationRequestSchema, n as GatewayApprovalDecisionRequestSchema, o as ApprovalChallengeReferenceSchema, r as GatewayApprovalDecisionResultSchema, s as ApprovalDecisionReferenceSchema, t as ApprovalPresentationOutcomeSchema } from "../approval-surface-
|
|
1
|
+
import { a as sanitizeGatewayApprovalArguments, c as ApprovalRequiredResultSchema, i as GatewayApprovalPresentationRequestSchema, n as GatewayApprovalDecisionRequestSchema, o as ApprovalChallengeReferenceSchema, r as GatewayApprovalDecisionResultSchema, s as ApprovalDecisionReferenceSchema, t as ApprovalPresentationOutcomeSchema } from "../approval-surface-phfnKUSF.js";
|
|
2
2
|
export { ApprovalChallengeReferenceSchema, ApprovalDecisionReferenceSchema, ApprovalPresentationOutcomeSchema, ApprovalRequiredResultSchema, GatewayApprovalDecisionRequestSchema, GatewayApprovalDecisionResultSchema, GatewayApprovalPresentationRequestSchema, sanitizeGatewayApprovalArguments };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as withPortableSuperRefinement } from "./portable-refinement-authoring-C1Q92x2G.js";
|
|
2
2
|
import { t as ItemIdSchema } from "./request-id-schema-Hq_6lSFV.js";
|
|
3
|
-
import { n as PortalApprovalRequiredCallItemResultSchema, t as PortalApprovalChallengeSchema } from "./portal-call-result-schema-
|
|
3
|
+
import { n as PortalApprovalRequiredCallItemResultSchema, t as PortalApprovalChallengeSchema } from "./portal-call-result-schema-DM77S9CA.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/approval-surface/models/approval-decision-reference-schema.ts
|
|
6
6
|
const ApprovalDecisionReferenceSchema = z.object({
|
|
@@ -129,4 +129,4 @@ function sanitizeGatewayApprovalArguments(argumentsValue) {
|
|
|
129
129
|
//#endregion
|
|
130
130
|
export { sanitizeGatewayApprovalArguments as a, ApprovalRequiredResultSchema as c, GatewayApprovalPresentationRequestSchema as i, GatewayApprovalDecisionRequestSchema as n, ApprovalChallengeReferenceSchema as o, GatewayApprovalDecisionResultSchema as r, ApprovalDecisionReferenceSchema as s, ApprovalPresentationOutcomeSchema as t };
|
|
131
131
|
|
|
132
|
-
//# sourceMappingURL=approval-surface-
|
|
132
|
+
//# sourceMappingURL=approval-surface-phfnKUSF.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approval-surface-Cqk_hAtN.js","names":[],"sources":["../src/approval-surface/models/approval-decision-reference-schema.ts","../src/approval-surface/models/gateway-approval-presentation-schema.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { ItemIdSchema } from '../../contract-primitives/models/request-id-schema.js';\nimport {\n\tPortalApprovalChallengeSchema,\n\tPortalApprovalRequiredCallItemResultSchema,\n} from '../../portal-call-surface/models/portal-call-result-schema.js';\n\nexport const ApprovalDecisionReferenceSchema = z\n\t.object({\n\t\tapprovalId: z.string().min(1),\n\t\tcallId: ItemIdSchema,\n\t\texpiresAt: z.string().datetime(),\n\t\tstatus: z.enum(['approved', 'denied', 'expired']),\n\t})\n\t.strict();\n\nexport type ApprovalDecisionReference = z.infer<typeof ApprovalDecisionReferenceSchema>;\n\nexport const ApprovalRequiredResultSchema = PortalApprovalRequiredCallItemResultSchema;\n\nexport const ApprovalChallengeReferenceSchema = PortalApprovalChallengeSchema;\n\nexport type ApprovalRequiredResult = z.infer<typeof ApprovalRequiredResultSchema>;\nexport type ApprovalChallengeReference = z.infer<typeof ApprovalChallengeReferenceSchema>;\n","import { z } from 'zod';\n\nimport { ItemIdSchema } from '../../contract-primitives/models/request-id-schema.js';\nimport { withPortableSuperRefinement } from '../../portable-contracts/portable-refinement-authoring.js';\n\nconst MAXIMUM_APPROVAL_DISPLAY_DEPTH = 6;\nconst MAXIMUM_APPROVAL_DISPLAY_ENTRIES = 32;\nconst MAXIMUM_APPROVAL_DISPLAY_STRING_SCALARS = 256;\nconst MAXIMUM_APPROVAL_DISPLAY_BYTES = 4_096;\nconst APPROVAL_REDACTED_VALUE = '[REDACTED]';\nconst APPROVAL_TRUNCATED_VALUE = '[TRUNCATED]';\nconst APPROVAL_TRUNCATION_FIELD = '$truncated';\n\nconst credentialKeyPattern =\n\t/(?:token|password|secret|authorization|cookie|api[ _-]?key|private[ _-]?key)/iu;\nconst credentialValuePattern =\n\t/(?:-----BEGIN [A-Z ]*PRIVATE KEY-----|\\b(?:bearer|basic)\\s+\\S+|\\b(?:api[ _-]?key|token|password|secret|authorization|cookie)\\s*[:=]\\s*\\S+)/iu;\n\nexport const GatewayApprovalPresentationRequestSchema = withPortableSuperRefinement({\n\trefinement: (request, context) => {\n\t\tif (\n\t\t\tnew TextEncoder().encode(request.display.argumentsPreview).byteLength >\n\t\t\tMAXIMUM_APPROVAL_DISPLAY_BYTES\n\t\t) {\n\t\t\tcontext.addIssue({\n\t\t\t\tcode: 'custom',\n\t\t\t\tmessage: 'Approval argument preview exceeds the portable UTF-8 byte bound.',\n\t\t\t\tpath: ['display', 'argumentsPreview'],\n\t\t\t});\n\t\t}\n\t},\n\trefinementIdentity: 'gateway.approval.arguments-preview.utf8-bytes',\n\tschema: z\n\t\t.object({\n\t\t\tallowedDecisions: z.tuple([z.literal('approve'), z.literal('deny')]),\n\t\t\tchallengeId: z.string().uuid(),\n\t\t\tdisplay: z\n\t\t\t\t.object({\n\t\t\t\t\targumentsPreview: z.string().max(MAXIMUM_APPROVAL_DISPLAY_BYTES),\n\t\t\t\t})\n\t\t\t\t.strict(),\n\t\t\texpiresAt: z.string().datetime(),\n\t\t\titemId: ItemIdSchema,\n\t\t\tname: z.string().min(1).max(256),\n\t\t\tnamespace: z.string().min(1).max(256),\n\t\t})\n\t\t.strict(),\n});\n\nexport const ApprovalPresentationOutcomeSchema = z.discriminatedUnion('kind', [\n\tz.object({ kind: z.literal('approved') }).strict(),\n\tz.object({ kind: z.literal('denied') }).strict(),\n\tz\n\t\t.object({\n\t\t\tkind: z.literal('cancelled'),\n\t\t\treason: z.enum(['challenge-expired', 'session-ended', 'user-cancelled']),\n\t\t})\n\t\t.strict(),\n\tz\n\t\t.object({\n\t\t\tkind: z.literal('unavailable'),\n\t\t\treason: z.enum(['presenter-missing', 'presentation-failed']),\n\t\t})\n\t\t.strict(),\n]);\n\nexport const GatewayApprovalDecisionRequestSchema = z\n\t.object({\n\t\tchallengeId: z.string().uuid(),\n\t\tdecision: z.enum(['approve', 'deny']),\n\t})\n\t.strict();\n\nexport const GatewayApprovalDecisionResultSchema = z.discriminatedUnion('kind', [\n\tz\n\t\t.object({\n\t\t\tkind: z.literal('recorded'),\n\t\t\tstate: z.enum(['approved', 'denied']),\n\t\t})\n\t\t.strict(),\n\tz\n\t\t.object({\n\t\t\tkind: z.literal('rejected'),\n\t\t\treason: z.enum([\n\t\t\t\t'not-found',\n\t\t\t\t'expired',\n\t\t\t\t'stale-authority',\n\t\t\t\t'principal-mismatch',\n\t\t\t\t'already-decided',\n\t\t\t\t'presenter-not-authorized',\n\t\t\t]),\n\t\t})\n\t\t.strict(),\n]);\n\nexport type GatewayApprovalPresentationRequest = z.infer<\n\ttypeof GatewayApprovalPresentationRequestSchema\n>;\nexport type ApprovalPresentationOutcome = z.infer<typeof ApprovalPresentationOutcomeSchema>;\nexport type GatewayApprovalDecisionRequest = z.infer<typeof GatewayApprovalDecisionRequestSchema>;\nexport type GatewayApprovalDecisionResult = z.infer<typeof GatewayApprovalDecisionResultSchema>;\n\ninterface ApprovalTruncationMarker {\n\treadonly omittedCount: number;\n\treadonly value: typeof APPROVAL_TRUNCATED_VALUE;\n}\n\ntype SanitizedApprovalValue =\n\t| ApprovalTruncationMarker\n\t| boolean\n\t| null\n\t| number\n\t| string\n\t| readonly SanitizedApprovalValue[]\n\t| { readonly [key: string]: SanitizedApprovalValue };\n\nfunction truncateUnicodeScalars(value: string): string | ApprovalTruncationMarker {\n\tconst scalars = Array.from(value);\n\tif (scalars.length <= MAXIMUM_APPROVAL_DISPLAY_STRING_SCALARS) return value;\n\treturn {\n\t\tomittedCount: scalars.length - MAXIMUM_APPROVAL_DISPLAY_STRING_SCALARS,\n\t\tvalue: APPROVAL_TRUNCATED_VALUE,\n\t};\n}\n\nfunction sanitizeApprovalValue(value: unknown, depth: number): SanitizedApprovalValue {\n\tif (depth >= MAXIMUM_APPROVAL_DISPLAY_DEPTH) {\n\t\treturn { omittedCount: 1, value: APPROVAL_TRUNCATED_VALUE };\n\t}\n\tif (value === null || typeof value === 'boolean') return value;\n\tif (typeof value === 'number') return Number.isFinite(value) ? value : String(value);\n\tif (typeof value === 'string') {\n\t\tif (credentialValuePattern.test(value)) return APPROVAL_REDACTED_VALUE;\n\t\treturn truncateUnicodeScalars(value);\n\t}\n\tif (Array.isArray(value)) {\n\t\tconst included = value\n\t\t\t.slice(0, MAXIMUM_APPROVAL_DISPLAY_ENTRIES)\n\t\t\t.map((item) => sanitizeApprovalValue(item, depth + 1));\n\t\tif (value.length > MAXIMUM_APPROVAL_DISPLAY_ENTRIES) {\n\t\t\tincluded[MAXIMUM_APPROVAL_DISPLAY_ENTRIES - 1] = {\n\t\t\t\tomittedCount: value.length - (MAXIMUM_APPROVAL_DISPLAY_ENTRIES - 1),\n\t\t\t\tvalue: APPROVAL_TRUNCATED_VALUE,\n\t\t\t};\n\t\t}\n\t\treturn included;\n\t}\n\tif (typeof value !== 'object') return '[UNSUPPORTED]';\n\n\tconst sortedEntries = Object.entries(value).toSorted(([leftKey], [rightKey]) =>\n\t\tleftKey.localeCompare(rightKey),\n\t);\n\tconst requiresTruncation = sortedEntries.length > MAXIMUM_APPROVAL_DISPLAY_ENTRIES;\n\tconst includedEntryCount = requiresTruncation\n\t\t? MAXIMUM_APPROVAL_DISPLAY_ENTRIES - 1\n\t\t: MAXIMUM_APPROVAL_DISPLAY_ENTRIES;\n\tconst sanitizedEntries = sortedEntries\n\t\t.slice(0, includedEntryCount)\n\t\t.map(\n\t\t\t([key, childValue]) =>\n\t\t\t\t[\n\t\t\t\t\tkey,\n\t\t\t\t\tcredentialKeyPattern.test(key)\n\t\t\t\t\t\t? APPROVAL_REDACTED_VALUE\n\t\t\t\t\t\t: sanitizeApprovalValue(childValue, depth + 1),\n\t\t\t\t] as const,\n\t\t);\n\tif (requiresTruncation) {\n\t\tsanitizedEntries.push([\n\t\t\tAPPROVAL_TRUNCATION_FIELD,\n\t\t\t{\n\t\t\t\tomittedCount: sortedEntries.length - includedEntryCount,\n\t\t\t\tvalue: APPROVAL_TRUNCATED_VALUE,\n\t\t\t},\n\t\t]);\n\t}\n\treturn Object.fromEntries(sanitizedEntries);\n}\n\nexport function sanitizeGatewayApprovalArguments(argumentsValue: unknown): string {\n\tconst preview = JSON.stringify(sanitizeApprovalValue(argumentsValue, 0));\n\tconst byteLength = new TextEncoder().encode(preview).byteLength;\n\tif (byteLength <= MAXIMUM_APPROVAL_DISPLAY_BYTES) return preview;\n\treturn JSON.stringify({\n\t\tomittedCount: byteLength - MAXIMUM_APPROVAL_DISPLAY_BYTES,\n\t\tvalue: APPROVAL_TRUNCATED_VALUE,\n\t});\n}\n"],"mappings":";;;;;AAQA,MAAa,kCAAkC,EAC7C,OAAO;CACP,YAAY,EAAE,QAAQ,CAAC,IAAI,EAAE;CAC7B,QAAQ;CACR,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,QAAQ,EAAE,KAAK;EAAC;EAAY;EAAU;EAAU,CAAC;CACjD,CAAC,CACD,QAAQ;AAIV,MAAa,+BAA+B;AAE5C,MAAa,mCAAmC;;;AChBhD,MAAM,iCAAiC;AACvC,MAAM,mCAAmC;AACzC,MAAM,0CAA0C;AAChD,MAAM,iCAAiC;AACvC,MAAM,0BAA0B;AAChC,MAAM,2BAA2B;AACjC,MAAM,4BAA4B;AAElC,MAAM,uBACL;AACD,MAAM,yBACL;AAED,MAAa,2CAA2C,4BAA4B;CACnF,aAAa,SAAS,YAAY;EACjC,IACC,IAAI,aAAa,CAAC,OAAO,QAAQ,QAAQ,iBAAiB,CAAC,aAC3D,gCAEA,QAAQ,SAAS;GAChB,MAAM;GACN,SAAS;GACT,MAAM,CAAC,WAAW,mBAAmB;GACrC,CAAC;;CAGJ,oBAAoB;CACpB,QAAQ,EACN,OAAO;EACP,kBAAkB,EAAE,MAAM,CAAC,EAAE,QAAQ,UAAU,EAAE,EAAE,QAAQ,OAAO,CAAC,CAAC;EACpE,aAAa,EAAE,QAAQ,CAAC,MAAM;EAC9B,SAAS,EACP,OAAO,EACP,kBAAkB,EAAE,QAAQ,CAAC,IAAI,+BAA+B,EAChE,CAAC,CACD,QAAQ;EACV,WAAW,EAAE,QAAQ,CAAC,UAAU;EAChC,QAAQ;E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AAc,gCAAgC,OAAO;CACzD,OAAO,KAAK,UAAU;EACrB,cAAc,aAAa;EAC3B,OAAO;EACP,CAAC"}
|
|
1
|
+
{"version":3,"file":"approval-surface-phfnKUSF.js","names":[],"sources":["../src/approval-surface/models/approval-decision-reference-schema.ts","../src/approval-surface/models/gateway-approval-presentation-schema.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { ItemIdSchema } from '../../contract-primitives/models/request-id-schema.js';\nimport {\n\tPortalApprovalChallengeSchema,\n\tPortalApprovalRequiredCallItemResultSchema,\n} from '../../portal-call-surface/models/portal-call-result-schema.js';\n\nexport const ApprovalDecisionReferenceSchema = z\n\t.object({\n\t\tapprovalId: z.string().min(1),\n\t\tcallId: ItemIdSchema,\n\t\texpiresAt: z.string().datetime(),\n\t\tstatus: z.enum(['approved', 'denied', 'expired']),\n\t})\n\t.strict();\n\nexport type ApprovalDecisionReference = z.infer<typeof ApprovalDecisionReferenceSchema>;\n\nexport const ApprovalRequiredResultSchema = PortalApprovalRequiredCallItemResultSchema;\n\nexport const ApprovalChallengeReferenceSchema = PortalApprovalChallengeSchema;\n\nexport type ApprovalRequiredResult = z.infer<typeof ApprovalRequiredResultSchema>;\nexport type ApprovalChallengeReference = z.infer<typeof ApprovalChallengeReferenceSchema>;\n","import { z } from 'zod';\n\nimport { ItemIdSchema } from '../../contract-primitives/models/request-id-schema.js';\nimport { withPortableSuperRefinement } from '../../portable-contracts/portable-refinement-authoring.js';\n\nconst MAXIMUM_APPROVAL_DISPLAY_DEPTH = 6;\nconst MAXIMUM_APPROVAL_DISPLAY_ENTRIES = 32;\nconst MAXIMUM_APPROVAL_DISPLAY_STRING_SCALARS = 256;\nconst MAXIMUM_APPROVAL_DISPLAY_BYTES = 4_096;\nconst APPROVAL_REDACTED_VALUE = '[REDACTED]';\nconst APPROVAL_TRUNCATED_VALUE = '[TRUNCATED]';\nconst APPROVAL_TRUNCATION_FIELD = '$truncated';\n\nconst credentialKeyPattern =\n\t/(?:token|password|secret|authorization|cookie|api[ _-]?key|private[ _-]?key)/iu;\nconst credentialValuePattern =\n\t/(?:-----BEGIN [A-Z ]*PRIVATE KEY-----|\\b(?:bearer|basic)\\s+\\S+|\\b(?:api[ _-]?key|token|password|secret|authorization|cookie)\\s*[:=]\\s*\\S+)/iu;\n\nexport const GatewayApprovalPresentationRequestSchema = withPortableSuperRefinement({\n\trefinement: (request, context) => {\n\t\tif (\n\t\t\tnew TextEncoder().encode(request.display.argumentsPreview).byteLength >\n\t\t\tMAXIMUM_APPROVAL_DISPLAY_BYTES\n\t\t) {\n\t\t\tcontext.addIssue({\n\t\t\t\tcode: 'custom',\n\t\t\t\tmessage: 'Approval argument preview exceeds the portable UTF-8 byte bound.',\n\t\t\t\tpath: ['display', 'argumentsPreview'],\n\t\t\t});\n\t\t}\n\t},\n\trefinementIdentity: 'gateway.approval.arguments-preview.utf8-bytes',\n\tschema: z\n\t\t.object({\n\t\t\tallowedDecisions: z.tuple([z.literal('approve'), z.literal('deny')]),\n\t\t\tchallengeId: z.string().uuid(),\n\t\t\tdisplay: z\n\t\t\t\t.object({\n\t\t\t\t\targumentsPreview: z.string().max(MAXIMUM_APPROVAL_DISPLAY_BYTES),\n\t\t\t\t})\n\t\t\t\t.strict(),\n\t\t\texpiresAt: z.string().datetime(),\n\t\t\titemId: ItemIdSchema,\n\t\t\tname: z.string().min(1).max(256),\n\t\t\tnamespace: z.string().min(1).max(256),\n\t\t})\n\t\t.strict(),\n});\n\nexport const ApprovalPresentationOutcomeSchema = z.discriminatedUnion('kind', [\n\tz.object({ kind: z.literal('approved') }).strict(),\n\tz.object({ kind: z.literal('denied') }).strict(),\n\tz\n\t\t.object({\n\t\t\tkind: z.literal('cancelled'),\n\t\t\treason: z.enum(['challenge-expired', 'session-ended', 'user-cancelled']),\n\t\t})\n\t\t.strict(),\n\tz\n\t\t.object({\n\t\t\tkind: z.literal('unavailable'),\n\t\t\treason: z.enum(['presenter-missing', 'presentation-failed']),\n\t\t})\n\t\t.strict(),\n]);\n\nexport const GatewayApprovalDecisionRequestSchema = z\n\t.object({\n\t\tchallengeId: z.string().uuid(),\n\t\tdecision: z.enum(['approve', 'deny']),\n\t})\n\t.strict();\n\nexport const GatewayApprovalDecisionResultSchema = z.discriminatedUnion('kind', [\n\tz\n\t\t.object({\n\t\t\tkind: z.literal('recorded'),\n\t\t\tstate: z.enum(['approved', 'denied']),\n\t\t})\n\t\t.strict(),\n\tz\n\t\t.object({\n\t\t\tkind: z.literal('rejected'),\n\t\t\treason: z.enum([\n\t\t\t\t'not-found',\n\t\t\t\t'expired',\n\t\t\t\t'stale-authority',\n\t\t\t\t'principal-mismatch',\n\t\t\t\t'already-decided',\n\t\t\t\t'presenter-not-authorized',\n\t\t\t]),\n\t\t})\n\t\t.strict(),\n]);\n\nexport type GatewayApprovalPresentationRequest = z.infer<\n\ttypeof GatewayApprovalPresentationRequestSchema\n>;\nexport type ApprovalPresentationOutcome = z.infer<typeof ApprovalPresentationOutcomeSchema>;\nexport type GatewayApprovalDecisionRequest = z.infer<typeof GatewayApprovalDecisionRequestSchema>;\nexport type GatewayApprovalDecisionResult = z.infer<typeof GatewayApprovalDecisionResultSchema>;\n\ninterface ApprovalTruncationMarker {\n\treadonly omittedCount: number;\n\treadonly value: typeof APPROVAL_TRUNCATED_VALUE;\n}\n\ntype SanitizedApprovalValue =\n\t| ApprovalTruncationMarker\n\t| boolean\n\t| null\n\t| number\n\t| string\n\t| readonly SanitizedApprovalValue[]\n\t| { readonly [key: string]: SanitizedApprovalValue };\n\nfunction truncateUnicodeScalars(value: string): string | ApprovalTruncationMarker {\n\tconst scalars = Array.from(value);\n\tif (scalars.length <= MAXIMUM_APPROVAL_DISPLAY_STRING_SCALARS) return value;\n\treturn {\n\t\tomittedCount: scalars.length - MAXIMUM_APPROVAL_DISPLAY_STRING_SCALARS,\n\t\tvalue: APPROVAL_TRUNCATED_VALUE,\n\t};\n}\n\nfunction sanitizeApprovalValue(value: unknown, depth: number): SanitizedApprovalValue {\n\tif (depth >= MAXIMUM_APPROVAL_DISPLAY_DEPTH) {\n\t\treturn { omittedCount: 1, value: APPROVAL_TRUNCATED_VALUE };\n\t}\n\tif (value === null || typeof value === 'boolean') return value;\n\tif (typeof value === 'number') return Number.isFinite(value) ? value : String(value);\n\tif (typeof value === 'string') {\n\t\tif (credentialValuePattern.test(value)) return APPROVAL_REDACTED_VALUE;\n\t\treturn truncateUnicodeScalars(value);\n\t}\n\tif (Array.isArray(value)) {\n\t\tconst included = value\n\t\t\t.slice(0, MAXIMUM_APPROVAL_DISPLAY_ENTRIES)\n\t\t\t.map((item) => sanitizeApprovalValue(item, depth + 1));\n\t\tif (value.length > MAXIMUM_APPROVAL_DISPLAY_ENTRIES) {\n\t\t\tincluded[MAXIMUM_APPROVAL_DISPLAY_ENTRIES - 1] = {\n\t\t\t\tomittedCount: value.length - (MAXIMUM_APPROVAL_DISPLAY_ENTRIES - 1),\n\t\t\t\tvalue: APPROVAL_TRUNCATED_VALUE,\n\t\t\t};\n\t\t}\n\t\treturn included;\n\t}\n\tif (typeof value !== 'object') return '[UNSUPPORTED]';\n\n\tconst sortedEntries = Object.entries(value).toSorted(([leftKey], [rightKey]) =>\n\t\tleftKey.localeCompare(rightKey),\n\t);\n\tconst requiresTruncation = sortedEntries.length > MAXIMUM_APPROVAL_DISPLAY_ENTRIES;\n\tconst includedEntryCount = requiresTruncation\n\t\t? MAXIMUM_APPROVAL_DISPLAY_ENTRIES - 1\n\t\t: MAXIMUM_APPROVAL_DISPLAY_ENTRIES;\n\tconst sanitizedEntries = sortedEntries\n\t\t.slice(0, includedEntryCount)\n\t\t.map(\n\t\t\t([key, childValue]) =>\n\t\t\t\t[\n\t\t\t\t\tkey,\n\t\t\t\t\tcredentialKeyPattern.test(key)\n\t\t\t\t\t\t? APPROVAL_REDACTED_VALUE\n\t\t\t\t\t\t: sanitizeApprovalValue(childValue, depth + 1),\n\t\t\t\t] as const,\n\t\t);\n\tif (requiresTruncation) {\n\t\tsanitizedEntries.push([\n\t\t\tAPPROVAL_TRUNCATION_FIELD,\n\t\t\t{\n\t\t\t\tomittedCount: sortedEntries.length - includedEntryCount,\n\t\t\t\tvalue: APPROVAL_TRUNCATED_VALUE,\n\t\t\t},\n\t\t]);\n\t}\n\treturn Object.fromEntries(sanitizedEntries);\n}\n\nexport function sanitizeGatewayApprovalArguments(argumentsValue: unknown): string {\n\tconst preview = JSON.stringify(sanitizeApprovalValue(argumentsValue, 0));\n\tconst byteLength = new TextEncoder().encode(preview).byteLength;\n\tif (byteLength <= MAXIMUM_APPROVAL_DISPLAY_BYTES) return preview;\n\treturn JSON.stringify({\n\t\tomittedCount: byteLength - MAXIMUM_APPROVAL_DISPLAY_BYTES,\n\t\tvalue: APPROVAL_TRUNCATED_VALUE,\n\t});\n}\n"],"mappings":";;;;;AAQA,MAAa,kCAAkC,EAC7C,OAAO;CACP,YAAY,EAAE,QAAQ,CAAC,IAAI,EAAE;CAC7B,QAAQ;CACR,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,QAAQ,EAAE,KAAK;EAAC;EAAY;EAAU;EAAU,CAAC;CACjD,CAAC,CACD,QAAQ;AAIV,MAAa,+BAA+B;AAE5C,MAAa,mCAAmC;;;AChBhD,MAAM,iCAAiC;AACvC,MAAM,mCAAmC;AACzC,MAAM,0CAA0C;AAChD,MAAM,iCAAiC;AACvC,MAAM,0BAA0B;AAChC,MAAM,2BAA2B;AACjC,MAAM,4BAA4B;AAElC,MAAM,uBACL;AACD,MAAM,yBACL;AAED,MAAa,2CAA2C,4BAA4B;CACnF,aAAa,SAAS,YAAY;EACjC,IACC,IAAI,aAAa,CAAC,OAAO,QAAQ,QAAQ,iBAAiB,CAAC,aAC3D,gCAEA,QAAQ,SAAS;GAChB,MAAM;GACN,SAAS;GACT,MAAM,CAAC,WAAW,mBAAmB;GACrC,CAAC;;CAGJ,oBAAoB;CACpB,QAAQ,EACN,OAAO;EACP,kBAAkB,EAAE,MAAM,CAAC,EAAE,QAAQ,UAAU,EAAE,EAA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O;EACP,CACD,CAAC;CAEH,OAAO,OAAO,YAAY,iBAAiB;;AAG5C,SAAgB,iCAAiC,gBAAiC;CACjF,MAAM,UAAU,KAAK,UAAU,sBAAsB,gBAAgB,EAAE,CAAC;CACxE,MAAM,aAAa,IAAI,aAAa,CAAC,OAAO,QAAQ,CAAC;CACrD,IAAI,cAAc,gCAAgC,OAAO;CACzD,OAAO,KAAK,UAAU;EACrB,cAAc,aAAa;EAC3B,OAAO;EACP,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { CapabilityDescriptor, CapabilityDescriptorSchema, CapabilitySearchMatch, CapabilitySearchMatchSchema, CapabilitySummary, CapabilitySummarySchema, JsonSchemaDocumentSchema, ResultExpectation, ResultExpectationSchema, SafeCallingHint, SafeCallingHintSchema, ToolSafetySummary, ToolSafetySummarySchema, ToolSchemaHint, ToolSchemaHintSchema, ToolSchemaSummary, ToolSchemaSummarySchema };
|
|
1
|
+
import { C as compactCapabilitySummaryDescription, S as ToolSchemaSummarySchema, _ as ToolSafetySummary, a as CapabilitySearchMatch, b as ToolSchemaHintSchema, c as CapabilitySummarySchema, d as ResultExpectation, f as ResultExpectationSchema, g as ToolCallDispositionSchema, h as ToolCallDisposition, i as CapabilityDiscoveryMetadataSchema, l as CompactCapabilityDescriptionCodePointLimit, m as SafeCallingHintSchema, n as CapabilityDescriptorSchema, o as CapabilitySearchMatchSchema, p as SafeCallingHint, r as CapabilityDiscoveryMetadata, s as CapabilitySummary, t as CapabilityDescriptor, u as JsonSchemaDocumentSchema, v as ToolSafetySummarySchema, x as ToolSchemaSummary, y as ToolSchemaHint } from "../index-uDfElZ9U.js";
|
|
2
|
+
export { CapabilityDescriptor, CapabilityDescriptorSchema, CapabilityDiscoveryMetadata, CapabilityDiscoveryMetadataSchema, CapabilitySearchMatch, CapabilitySearchMatchSchema, CapabilitySummary, CapabilitySummarySchema, CompactCapabilityDescriptionCodePointLimit, JsonSchemaDocumentSchema, ResultExpectation, ResultExpectationSchema, SafeCallingHint, SafeCallingHintSchema, ToolCallDisposition, ToolCallDispositionSchema, ToolSafetySummary, ToolSafetySummarySchema, ToolSchemaHint, ToolSchemaHintSchema, ToolSchemaSummary, ToolSchemaSummarySchema, compactCapabilitySummaryDescription };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import "../capability-description-surface-
|
|
3
|
-
export { CapabilityDescriptorSchema, CapabilitySearchMatchSchema, CapabilitySummarySchema, JsonSchemaDocumentSchema, ResultExpectationSchema, SafeCallingHintSchema, ToolSafetySummarySchema, ToolSchemaHintSchema, ToolSchemaSummarySchema };
|
|
1
|
+
import { a as CompactCapabilityDescriptionCodePointLimit, c as SafeCallingHintSchema, d as ToolSchemaHintSchema, f as ToolSchemaSummarySchema, i as CapabilitySummarySchema, l as ToolCallDispositionSchema, n as CapabilityDiscoveryMetadataSchema, o as JsonSchemaDocumentSchema, p as compactCapabilitySummaryDescription, r as CapabilitySearchMatchSchema, s as ResultExpectationSchema, t as CapabilityDescriptorSchema, u as ToolSafetySummarySchema } from "../capability-descriptor-schema-B_0vLQ3E.js";
|
|
2
|
+
import "../capability-description-surface-YqGm-nS_.js";
|
|
3
|
+
export { CapabilityDescriptorSchema, CapabilityDiscoveryMetadataSchema, CapabilitySearchMatchSchema, CapabilitySummarySchema, CompactCapabilityDescriptionCodePointLimit, JsonSchemaDocumentSchema, ResultExpectationSchema, SafeCallingHintSchema, ToolCallDispositionSchema, ToolSafetySummarySchema, ToolSchemaHintSchema, ToolSchemaSummarySchema, compactCapabilitySummaryDescription };
|
package/dist/{capability-descriptor-schema-v9tj7yKr.js → capability-descriptor-schema-B_0vLQ3E.js}
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { r as NamespaceNameSchema, t as CapabilityNameSchema } from "./capability-reference-schema-K7qXJgEa.js";
|
|
2
2
|
import { o as JsonValueSchema } from "./json-value-schema-Br5M7d7X.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
+
import { oauthToolAvailabilitySchema, oauthToolRequirementSchema } from "@agent-vm/oauth-broker-contracts";
|
|
4
5
|
//#region src/capability-description-surface/models/capability-descriptor-schema.ts
|
|
5
6
|
const JsonSchemaDocumentSchema = z.record(z.string(), JsonValueSchema);
|
|
6
7
|
const ToolSchemaSummarySchema = z.object({
|
|
@@ -17,8 +18,23 @@ const ToolSchemaHintSchema = z.object({
|
|
|
17
18
|
message: z.string().max(500),
|
|
18
19
|
next: z.enum(["call_ready", "describe_before_call"])
|
|
19
20
|
}).strict();
|
|
21
|
+
const ToolCallDispositionSchema = z.discriminatedUnion("kind", [
|
|
22
|
+
z.object({ kind: z.literal("without-approval") }).strict(),
|
|
23
|
+
z.object({ kind: z.literal("requires-approval") }).strict(),
|
|
24
|
+
z.object({
|
|
25
|
+
describeBeforeCall: z.literal(true),
|
|
26
|
+
kind: z.literal("invocation-dependent")
|
|
27
|
+
}).strict()
|
|
28
|
+
]);
|
|
29
|
+
const CapabilityDiscoveryMetadataSchema = z.object({
|
|
30
|
+
callDisposition: ToolCallDispositionSchema,
|
|
31
|
+
oauthAvailability: oauthToolAvailabilitySchema.optional(),
|
|
32
|
+
oauthRequirement: oauthToolRequirementSchema.optional()
|
|
33
|
+
}).strict();
|
|
20
34
|
const CapabilitySummarySchema = z.object({
|
|
35
|
+
callDisposition: ToolCallDispositionSchema.optional(),
|
|
21
36
|
description: z.string().optional(),
|
|
37
|
+
descriptionTruncated: z.boolean().optional(),
|
|
22
38
|
input: ToolSchemaSummarySchema,
|
|
23
39
|
namespace: NamespaceNameSchema,
|
|
24
40
|
output: ToolSchemaSummarySchema.optional(),
|
|
@@ -26,8 +42,23 @@ const CapabilitySummarySchema = z.object({
|
|
|
26
42
|
schemaHint: ToolSchemaHintSchema.optional(),
|
|
27
43
|
title: z.string().min(1).optional(),
|
|
28
44
|
name: CapabilityNameSchema,
|
|
45
|
+
oauthAvailability: oauthToolAvailabilitySchema.optional(),
|
|
46
|
+
oauthRequirement: oauthToolRequirementSchema.optional(),
|
|
29
47
|
toolRef: z.string().min(1)
|
|
30
48
|
}).strict();
|
|
49
|
+
const CompactCapabilityDescriptionCodePointLimit = 240;
|
|
50
|
+
function compactCapabilitySummaryDescription(summary) {
|
|
51
|
+
if (summary.description === void 0 || Array.from(summary.description).length <= 240) return {
|
|
52
|
+
...summary,
|
|
53
|
+
descriptionTruncated: false
|
|
54
|
+
};
|
|
55
|
+
const codePoints = Array.from(summary.description);
|
|
56
|
+
return {
|
|
57
|
+
...summary,
|
|
58
|
+
description: `${codePoints.slice(0, 239).join("")}…`,
|
|
59
|
+
descriptionTruncated: true
|
|
60
|
+
};
|
|
61
|
+
}
|
|
31
62
|
const ResultExpectationSchema = z.object({
|
|
32
63
|
canReturnArtifacts: z.boolean().default(false),
|
|
33
64
|
canStream: z.boolean().default(false),
|
|
@@ -63,17 +94,22 @@ const CapabilitySearchMatchSchema = CapabilitySummarySchema.extend({
|
|
|
63
94
|
}).strict();
|
|
64
95
|
const CapabilityDescriptorSchema = z.object({
|
|
65
96
|
annotations: JsonSchemaDocumentSchema.default({}),
|
|
97
|
+
callDisposition: ToolCallDispositionSchema.optional(),
|
|
98
|
+
description: z.string().optional(),
|
|
66
99
|
inputSchema: JsonSchemaDocumentSchema.optional(),
|
|
67
100
|
namespace: NamespaceNameSchema,
|
|
68
101
|
outputSchema: JsonSchemaDocumentSchema.optional(),
|
|
69
102
|
related: z.array(JsonValueSchema).default([]),
|
|
70
103
|
schemaHint: ToolSchemaHintSchema.optional(),
|
|
104
|
+
title: z.string().min(1).optional(),
|
|
71
105
|
name: CapabilityNameSchema,
|
|
106
|
+
oauthAvailability: oauthToolAvailabilitySchema.optional(),
|
|
107
|
+
oauthRequirement: oauthToolRequirementSchema.optional(),
|
|
72
108
|
toolRef: z.string().min(1),
|
|
73
109
|
typescriptHelper: z.string().optional(),
|
|
74
110
|
zod: JsonSchemaDocumentSchema.optional()
|
|
75
111
|
}).strict();
|
|
76
112
|
//#endregion
|
|
77
|
-
export {
|
|
113
|
+
export { CompactCapabilityDescriptionCodePointLimit as a, SafeCallingHintSchema as c, ToolSchemaHintSchema as d, ToolSchemaSummarySchema as f, CapabilitySummarySchema as i, ToolCallDispositionSchema as l, CapabilityDiscoveryMetadataSchema as n, JsonSchemaDocumentSchema as o, compactCapabilitySummaryDescription as p, CapabilitySearchMatchSchema as r, ResultExpectationSchema as s, CapabilityDescriptorSchema as t, ToolSafetySummarySchema as u };
|
|
78
114
|
|
|
79
|
-
//# sourceMappingURL=capability-descriptor-schema-
|
|
115
|
+
//# sourceMappingURL=capability-descriptor-schema-B_0vLQ3E.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capability-descriptor-schema-B_0vLQ3E.js","names":[],"sources":["../src/capability-description-surface/models/capability-descriptor-schema.ts"],"sourcesContent":["import {\n\toauthToolAvailabilitySchema,\n\toauthToolRequirementSchema,\n} from '@agent-vm/oauth-broker-contracts';\nimport { z } from 'zod';\n\nimport {\n\tCapabilityNameSchema,\n\tNamespaceNameSchema,\n} from '../../contract-primitives/models/capability-reference-schema.js';\nimport { JsonValueSchema } from '../../contract-primitives/models/json-value-schema.js';\n\nexport const JsonSchemaDocumentSchema = z.record(z.string(), JsonValueSchema);\n\nexport const ToolSchemaSummarySchema = z\n\t.object({\n\t\toptional: z.array(z.string()),\n\t\tpropertyCount: z.number().int().nonnegative(),\n\t\trequired: z.array(z.string()),\n\t\ttype: z.string().min(1),\n\t})\n\t.strict();\n\nexport type ToolSchemaSummary = z.infer<typeof ToolSchemaSummarySchema>;\n\nexport const ToolSafetySummarySchema = z\n\t.object({\n\t\tdestructiveHint: z.boolean().optional(),\n\t\treadOnlyHint: z.boolean().optional(),\n\t})\n\t.strict();\n\nexport type ToolSafetySummary = z.infer<typeof ToolSafetySummarySchema>;\n\nexport const ToolSchemaHintSchema = z\n\t.object({\n\t\tmessage: z.string().max(500),\n\t\tnext: z.enum(['call_ready', 'describe_before_call']),\n\t})\n\t.strict();\n\nexport type ToolSchemaHint = z.infer<typeof ToolSchemaHintSchema>;\n\nexport const ToolCallDispositionSchema = z.discriminatedUnion('kind', [\n\tz.object({ kind: z.literal('without-approval') }).strict(),\n\tz.object({ kind: z.literal('requires-approval') }).strict(),\n\tz\n\t\t.object({\n\t\t\tdescribeBeforeCall: z.literal(true),\n\t\t\tkind: z.literal('invocation-dependent'),\n\t\t})\n\t\t.strict(),\n]);\n\nexport type ToolCallDisposition = z.infer<typeof ToolCallDispositionSchema>;\n\nexport const CapabilityDiscoveryMetadataSchema = z\n\t.object({\n\t\tcallDisposition: ToolCallDispositionSchema,\n\t\toauthAvailability: oauthToolAvailabilitySchema.optional(),\n\t\toauthRequirement: oauthToolRequirementSchema.optional(),\n\t})\n\t.strict();\n\nexport type CapabilityDiscoveryMetadata = z.infer<typeof CapabilityDiscoveryMetadataSchema>;\n\nexport const CapabilitySummarySchema = z\n\t.object({\n\t\tcallDisposition: ToolCallDispositionSchema.optional(),\n\t\tdescription: z.string().optional(),\n\t\tdescriptionTruncated: z.boolean().optional(),\n\t\tinput: ToolSchemaSummarySchema,\n\t\tnamespace: NamespaceNameSchema,\n\t\toutput: ToolSchemaSummarySchema.optional(),\n\t\tsafety: ToolSafetySummarySchema,\n\t\tschemaHint: ToolSchemaHintSchema.optional(),\n\t\ttitle: z.string().min(1).optional(),\n\t\tname: CapabilityNameSchema,\n\t\toauthAvailability: oauthToolAvailabilitySchema.optional(),\n\t\toauthRequirement: oauthToolRequirementSchema.optional(),\n\t\ttoolRef: z.string().min(1),\n\t})\n\t.strict();\n\nexport type CapabilitySummary = z.infer<typeof CapabilitySummarySchema>;\n\nexport const CompactCapabilityDescriptionCodePointLimit = 240;\n\nexport function compactCapabilitySummaryDescription(summary: CapabilitySummary): CapabilitySummary {\n\tif (\n\t\tsummary.description === undefined ||\n\t\tArray.from(summary.description).length <= CompactCapabilityDescriptionCodePointLimit\n\t) {\n\t\treturn { ...summary, descriptionTruncated: false };\n\t}\n\tconst codePoints = Array.from(summary.description);\n\treturn {\n\t\t...summary,\n\t\tdescription: `${codePoints.slice(0, CompactCapabilityDescriptionCodePointLimit - 1).join('')}…`,\n\t\tdescriptionTruncated: true,\n\t};\n}\n\nexport const ResultExpectationSchema = z\n\t.object({\n\t\tcanReturnArtifacts: z.boolean().default(false),\n\t\tcanStream: z.boolean().default(false),\n\t\tkind: z.enum(['json', 'text', 'binary_artifact', 'mixed']),\n\t\toutputJsonSchema: JsonSchemaDocumentSchema.optional(),\n\t\ttruncation: z.enum(['none', 'possible', 'expected']).default('possible'),\n\t})\n\t.strict();\n\nexport type ResultExpectation = z.infer<typeof ResultExpectationSchema>;\n\nexport const SafeCallingHintSchema = z\n\t.object({\n\t\tcode: z.enum([\n\t\t\t'describe_before_call',\n\t\t\t'approval_may_be_required',\n\t\t\t'read_only',\n\t\t\t'write_or_external_effect',\n\t\t\t'large_output_possible',\n\t\t\t'artifact_output_possible',\n\t\t]),\n\t\tmessage: z.string().max(500),\n\t})\n\t.strict();\n\nexport type SafeCallingHint = z.infer<typeof SafeCallingHintSchema>;\n\nexport const CapabilitySearchMatchSchema = CapabilitySummarySchema.extend({\n\tinputSchema: JsonSchemaDocumentSchema.optional(),\n\toutputSchema: JsonSchemaDocumentSchema.optional(),\n\trelationshipHints: z.array(JsonValueSchema).optional(),\n\tschemaFieldMatches: z.array(JsonValueSchema).optional(),\n}).strict();\n\nexport type CapabilitySearchMatch = z.infer<typeof CapabilitySearchMatchSchema>;\n\nexport const CapabilityDescriptorSchema = z\n\t.object({\n\t\tannotations: JsonSchemaDocumentSchema.default({}),\n\t\tcallDisposition: ToolCallDispositionSchema.optional(),\n\t\tdescription: z.string().optional(),\n\t\tinputSchema: JsonSchemaDocumentSchema.optional(),\n\t\tnamespace: NamespaceNameSchema,\n\t\toutputSchema: JsonSchemaDocumentSchema.optional(),\n\t\trelated: z.array(JsonValueSchema).default([]),\n\t\tschemaHint: ToolSchemaHintSchema.optional(),\n\t\ttitle: z.string().min(1).optional(),\n\t\tname: CapabilityNameSchema,\n\t\toauthAvailability: oauthToolAvailabilitySchema.optional(),\n\t\toauthRequirement: oauthToolRequirementSchema.optional(),\n\t\ttoolRef: z.string().min(1),\n\t\ttypescriptHelper: z.string().optional(),\n\t\tzod: JsonSchemaDocumentSchema.optional(),\n\t})\n\t.strict();\n\nexport type CapabilityDescriptor = z.infer<typeof CapabilityDescriptorSchema>;\n"],"mappings":";;;;;AAYA,MAAa,2BAA2B,EAAE,OAAO,EAAE,QAAQ,EAAE,gBAAgB;AAE7E,MAAa,0BAA0B,EACrC,OAAO;CACP,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC;CAC7B,eAAe,EAAE,QAAQ,CAAC,KAAK,CAAC,aAAa;CAC7C,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC;CAC7B,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE;CACvB,CAAC,CACD,QAAQ;AAIV,MAAa,0BAA0B,EACrC,OAAO;CACP,iBAAiB,EAAE,SAAS,CAAC,UAAU;CACvC,cAAc,EAAE,SAAS,CAAC,UAAU;CACpC,CAAC,CACD,QAAQ;AAIV,MAAa,uBAAuB,EAClC,OAAO;CACP,SAAS,EAAE,QAAQ,CAAC,IAAI,IAAI;CAC5B,MAAM,EAAE,KAAK,CAAC,cAAc,uBAAuB,CAAC;CACpD,CAAC,CACD,QAAQ;AAIV,MAAa,4BAA4B,EAAE,mBAAmB,QAAQ;CACrE,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,mBAAmB,EAAE,CAAC,CAAC,QAAQ;CAC1D,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,oBAAoB,EAAE,CAAC,CAAC,QAAQ;CAC3D,EACE,OAAO;EACP,oBAAoB,EAAE,QAAQ,KAAK;EACnC,MAAM,EAAE,QAAQ,uBAAuB;EACvC,CAAC,CACD,QAAQ;CACV,CAAC;AAIF,MAAa,oCAAoC,EAC/C,OAAO;CACP,iBAAiB;CACjB,mBAAmB,4BA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S,EAAE,QAAQ,CAAC,IAAI,IAAI;CAC5B,CAAC,CACD,QAAQ;AAIV,MAAa,8BAA8B,wBAAwB,OAAO;CACzE,aAAa,yBAAyB,UAAU;CAChD,cAAc,yBAAyB,UAAU;CACjD,mBAAmB,EAAE,MAAM,gBAAgB,CAAC,UAAU;CACtD,oBAAoB,EAAE,MAAM,gBAAgB,CAAC,UAAU;CACvD,CAAC,CAAC,QAAQ;AAIX,MAAa,6BAA6B,EACxC,OAAO;CACP,aAAa,yBAAyB,QAAQ,EAAE,CAAC;CACjD,iBAAiB,0BAA0B,UAAU;CACrD,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,aAAa,yBAAyB,UAAU;CAChD,WAAW;CACX,cAAc,yBAAyB,UAAU;CACjD,SAAS,EAAE,MAAM,gBAAgB,CAAC,QAAQ,EAAE,CAAC;CAC7C,YAAY,qBAAqB,UAAU;CAC3C,OAAO,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,UAAU;CACnC,MAAM;CACN,mBAAmB,4BAA4B,UAAU;CACzD,kBAAkB,2BAA2B,UAAU;CACvD,SAAS,EAAE,QAAQ,CAAC,IAAI,EAAE;CAC1B,kBAAkB,EAAE,QAAQ,CAAC,UAAU;CACvC,KAAK,yBAAyB,UAAU;CACxC,CAAC,CACD,QAAQ"}
|
package/dist/cli/tool-portal.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { a as PortalArtifactReadRequestSchema } from "../artifact-surface-CHEu4tDd.js";
|
|
3
3
|
import { r as PortalCallRequestSchema } from "../portal-call-request-schema-Cl0kTLaX.js";
|
|
4
|
-
import { a as PortalListRequestSchema, r as PortalSearchRequestSchema, s as PortalDescribeRequestSchema } from "../portal-call-surface-
|
|
5
|
-
import { a as encodeCanonicalJson } from "../portable-contracts-
|
|
6
|
-
import { t as ToolPortalMcpClient } from "../tool-portal-mcp-client-
|
|
4
|
+
import { a as PortalListRequestSchema, r as PortalSearchRequestSchema, s as PortalDescribeRequestSchema } from "../portal-call-surface-B952nh-H.js";
|
|
5
|
+
import { a as encodeCanonicalJson } from "../portable-contracts-CWLiYrVU.js";
|
|
6
|
+
import { t as ToolPortalMcpClient } from "../tool-portal-mcp-client-DsDi2iJc.js";
|
|
7
7
|
import { t as createNodeToolPortalMcpTransport } from "../node-tool-portal-mcp-transport-xFo0i37Q.js";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { run } from "@optique/run";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as GatewayApprovalDecisionResult, r as GatewayApprovalDecisionRequest } from "../index-
|
|
1
|
+
import { a as GatewayApprovalDecisionResult, r as GatewayApprovalDecisionRequest } from "../index-ex2lEawY.js";
|
|
2
2
|
import { c as PortalArtifactReadRequest, u as PortalArtifactReadResult } from "../index-DDLN0DE_.js";
|
|
3
3
|
import { A as SandboxTerminalResizeResult, At as SandboxFsRenameResult, B as SandboxStreamWriteRequest, Bt as SandboxExecCancelRequest, E as SandboxTerminalAttachResult, Et as SandboxFsRemoveResult, Gt as SandboxExecStartRequest, H as SandboxStreamWriteResult, Ht as SandboxExecCancelResult, I as SandboxStreamReadRequest, It as SandboxFsWriteRequest, K as SandboxProcessCancelResult, M as SandboxStreamCloseRequest, Mt as SandboxFsStatRequest, O as SandboxTerminalResizeRequest, Ot as SandboxFsRenameRequest, P as SandboxStreamCloseResult, Pt as SandboxFsStatResult, Q as SandboxProcessLogsResult, R as SandboxStreamReadResult, Rt as SandboxFsWriteResult, St as SandboxFsReadResult, W as SandboxProcessCancelRequest, X as SandboxProcessLogsRequest, Yt as SandboxExecWaitRequest, Zt as SandboxExecWaitResult, _ as GatewayRuntimeTrustedInvocationRequester, _n as SandboxRetainedResultLookupRequest, at as SandboxProcessStatusResult, bt as SandboxFsReadRequest, c as GatewayRuntimeManagedPluginClientKind, cn as SandboxEnvironmentStatusRequest, d as GatewayRuntimeTrustedInvocationContext, en as SandboxEnvironmentCloseRequest, et as SandboxProcessStartRequest, f as GatewayRuntimeTrustedInvocationContextSchema, ft as SandboxFsListRequest, g as GatewayRuntimeTrustedInvocationPrincipalSchema, gt as SandboxFsMkdirRequest, h as GatewayRuntimeTrustedInvocationPrincipal, in as SandboxEnvironmentOpenRequest, it as SandboxProcessStatusRequest, ln as SandboxEnvironmentStatusResult, lt as SandboxProcessWaitResult, m as GatewayRuntimeTrustedInvocationCorrelationSchema, mt as SandboxFsListResult, n as GatewayRuntimeAttachmentMetadata$1, nt as SandboxProcessStartResult, on as SandboxEnvironmentOpenResult, p as GatewayRuntimeTrustedInvocationCorrelation, qt as SandboxExecStartResult, st as SandboxProcessWaitRequest, tn as SandboxEnvironmentCloseResult, v as GatewayRuntimeTrustedInvocationRequesterSchema, vt as SandboxFsMkdirResult, w as SandboxTerminalAttachRequest, wt as SandboxFsRemoveRequest, yn as SandboxRetainedResultLookupResult } from "../index-ksJ4wmQG.js";
|
|
4
|
-
import { P as PortalCallRequest, T as PortalListResult, b as PortalDescribeResult, g as PortalCallResult, k as PortalSearchResult } from "../portal-call-result-schema-
|
|
5
|
-
import { i as PortalSearchRequest, m as PortalDescribeRequest, s as PortalListRequest } from "../index-
|
|
4
|
+
import { P as PortalCallRequest, T as PortalListResult, b as PortalDescribeResult, g as PortalCallResult, k as PortalSearchResult } from "../portal-call-result-schema-Mv2Dv1HJ.js";
|
|
5
|
+
import { i as PortalSearchRequest, m as PortalDescribeRequest, s as PortalListRequest } from "../index-DTTEu7ZT.js";
|
|
6
6
|
import { z } from "zod/v4";
|
|
7
7
|
|
|
8
8
|
//#region src/gateway-runtime-client/gateway-runtime-trace-context.d.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { C as PortalSearchResultSchema, b as PortalListResultSchema, g as PortalDescribeResultSchema, p as PortalCallResultSchema } from "../portal-call-result-schema-
|
|
2
|
-
import { n as GatewayApprovalDecisionRequestSchema, r as GatewayApprovalDecisionResultSchema } from "../approval-surface-
|
|
1
|
+
import { C as PortalSearchResultSchema, b as PortalListResultSchema, g as PortalDescribeResultSchema, p as PortalCallResultSchema } from "../portal-call-result-schema-DM77S9CA.js";
|
|
2
|
+
import { n as GatewayApprovalDecisionRequestSchema, r as GatewayApprovalDecisionResultSchema } from "../approval-surface-phfnKUSF.js";
|
|
3
3
|
import { a as PortalArtifactReadRequestSchema, o as PortalArtifactReadResultSchema } from "../artifact-surface-CHEu4tDd.js";
|
|
4
4
|
import { $ as SandboxExecStartRequestSchema, A as SandboxProcessStartRequestSchema, B as SandboxFsReadRequestSchema, C as SandboxStreamWriteResultSchema, E as SandboxProcessHandleRequestSchema, G as SandboxFsRenameResultSchema, H as SandboxFsRemoveRequestSchema, I as SandboxFsListRequestSchema, J as SandboxFsWriteRequestSchema, K as SandboxFsStatRequestSchema, L as SandboxFsListResultSchema, M as SandboxProcessStatusResultSchema, N as SandboxProcessWaitRequestSchema, O as SandboxProcessLogsRequestSchema, P as SandboxProcessWaitResultSchema, R as SandboxFsMkdirRequestSchema, S as SandboxStreamWriteRequestSchema, T as SandboxProcessCancelResultSchema, U as SandboxFsRemoveResultSchema, V as SandboxFsReadResultSchema, W as SandboxFsRenameRequestSchema, X as SandboxExecCancelRequestSchema, Y as SandboxFsWriteResultSchema, Z as SandboxExecCancelResultSchema, _ as SandboxTerminalResizeResultSchema, at as SandboxEnvironmentHandleRequestSchema, b as SandboxStreamReadRequestSchema, c as GatewayRuntimeTrustedInvocationCorrelationSchema, ct as SandboxEnvironmentStatusResultSchema, et as SandboxExecStartResultSchema, g as SandboxTerminalResizeRequestSchema, h as SandboxTerminalAttachResultSchema, it as SandboxEnvironmentCloseResultSchema, j as SandboxProcessStartResultSchema, k as SandboxProcessLogsResultSchema, l as GatewayRuntimeTrustedInvocationPrincipalSchema, m as SandboxTerminalAttachRequestSchema, mt as SandboxRetainedResultLookupResultSchema, n as GatewayRuntimeAttachmentMetadataSchema, nt as SandboxExecWaitResultSchema, ot as SandboxEnvironmentOpenRequestSchema, pt as SandboxRetainedResultLookupRequestSchema, q as SandboxFsStatResultSchema, s as GatewayRuntimeTrustedInvocationContextSchema, st as SandboxEnvironmentOpenResultSchema, tt as SandboxExecWaitRequestSchema, u as GatewayRuntimeTrustedInvocationRequesterSchema, v as SandboxStreamCloseRequestSchema, w as SandboxProcessCancelRequestSchema, x as SandboxStreamReadResultSchema, y as SandboxStreamCloseResultSchema, z as SandboxFsMkdirResultSchema } from "../contracts-X9wWs2lP.js";
|
|
5
5
|
import { r as PortalCallRequestSchema } from "../portal-call-request-schema-Cl0kTLaX.js";
|
|
6
|
-
import { a as PortalListRequestSchema, r as PortalSearchRequestSchema, s as PortalDescribeRequestSchema } from "../portal-call-surface-
|
|
6
|
+
import { a as PortalListRequestSchema, r as PortalSearchRequestSchema, s as PortalDescribeRequestSchema } from "../portal-call-surface-B952nh-H.js";
|
|
7
7
|
import { z } from "zod/v4";
|
|
8
8
|
import net from "node:net";
|
|
9
9
|
//#region src/gateway-runtime-client/gateway-runtime-sandbox-operations.ts
|
|
@@ -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 { i as PortalSearchRequest, m as PortalDescribeRequest, s as PortalListRequest } from "./index-
|
|
2
|
+
import { P as PortalCallRequest, T as PortalListResult, b as PortalDescribeResult, g as PortalCallResult, k as PortalSearchResult } from "./portal-call-result-schema-Mv2Dv1HJ.js";
|
|
3
|
+
import { i as PortalSearchRequest, m as PortalDescribeRequest, s as PortalListRequest } from "./index-DTTEu7ZT.js";
|
|
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-C2axvEYg.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-C2axvEYg.d.ts","names":[],"sources":["../src/tool-portal-mcp-client/index.ts"],"mappings":";;;;;KA2BY,4BAAA;EAAA,SAEA,IAAA;EAAA,SACA,IAAA;EAAA,SACA,SAAA;EAAA,SACA,GAAA;AAAA;EAAA,SAGA,IAAA;EAAA,SACA,SAAA;EAAA,SACA,IAAA;EAAA,SACA,GAAA;AAAA;AAAA,UAGK,sBAAA;EAAA,SACP,QAAA,GACR,IAAA;IAAA,SACU,aAAA;IAAA,SACA,SAAA;IAAA,SACA,IAAA;EAAA,GAEV,OAAA;IAAA,SACU,uBAAA;IAAA,SACA,MAAA,GAAS,WAAA;EAAA,MAEf,OAAA;IAAA,SAAmB,iBAAA;EAAA;EAAA,SACf,KAAA,QAAa,OAAA;EAAA,SACb,OAAA,QAAe,OAAA;EAAA,SACf,YAAA,GACR,OAAA,EAAS,iCAAA,EACT,OAAA;IAAA,SACU,uBAAA;IAAA,SACA,MAAA,GAAS,WAAA;EAAA,MAEf,OAAA;IAAA,SAAmB,QAAA,WAAmB,4BAAA;EAAA;AAAA;AAAA,UAG3B,0BAAA;EAAA,SACP,SAAA,EAAW,sBAAA;AAAA;AAAA,UAGJ,8BAAA;EAAA,SACP,aAAA;EAAA,SACA,uBAAA;EAAA,SACA,MAAA,GAAS,WAAA;AAAA;AAAA,cAab,+BAAA;EAAA;cAGO,SAAA,EAAW,sBAAA;EAIjB,IAAA,CACL,OAAA,EAAS,yBAAA,EACT,OAAA,GAAS,8BAAA,GACP,OAAA,CAAQ,wBAAA;AAAA;;;;;;;cAkCC,mBAAA;EAAA;WAEH,SAAA,EAAW,+BAAA;cAER,OAAA,EAAS,0BAAA;EAKf,OAAA,CAAA,GAAW,OAAA;EAIX,KAAA,CAAA,GAAS,OAAA;EAIT,IAAA,CACL,OAAA,EAAS,iBAAA,EACT,OAAA,GAAS,8BAAA,GACP,OAAA,CAAQ,gBAAA;EAYL,MAAA,CACL,OAAA,EAAS,mBAAA,EACT,OAAA,GAAS,8BAAA,GACP,OAAA,CAAQ,kBAAA;EAYL,QAAA,CACL,OAAA,EAAS,qBAAA,EACT,OAAA,GAAS,8BAAA,GACP,OAAA,CAAQ,oBAAA;EAYL,IAAA,CACL,OAAA,EAAS,iBAAA,EACT,OAAA,GAAS,8BAAA,GACP,OAAA,CAAQ,gBAAA;AAAA"}
|
|
@@ -32,43 +32,43 @@ type PortalDescribeRequest = z.infer<typeof PortalDescribeRequestSchema>;
|
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region src/portal-call-surface/models/portal-error-schema.d.ts
|
|
34
34
|
declare const PortalErrorCodeSchema: z.ZodEnum<{
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
invalid_request: "invalid_request";
|
|
36
|
+
not_found: "not_found";
|
|
37
|
+
not_authorized: "not_authorized";
|
|
37
38
|
approval_required: "approval_required";
|
|
39
|
+
capability_denied: "capability_denied";
|
|
38
40
|
validation_failed: "validation_failed";
|
|
41
|
+
provider_unavailable: "provider_unavailable";
|
|
39
42
|
execution_failed: "execution_failed";
|
|
40
|
-
timeout: "timeout";
|
|
41
43
|
cancelled: "cancelled";
|
|
42
|
-
|
|
43
|
-
not_found: "not_found";
|
|
44
|
-
not_authorized: "not_authorized";
|
|
44
|
+
timeout: "timeout";
|
|
45
45
|
}>;
|
|
46
46
|
type PortalErrorCode = z.infer<typeof PortalErrorCodeSchema>;
|
|
47
47
|
declare const PortalErrorSchema: z.ZodObject<{
|
|
48
48
|
code: z.ZodEnum<{
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
invalid_request: "invalid_request";
|
|
50
|
+
not_found: "not_found";
|
|
51
|
+
not_authorized: "not_authorized";
|
|
51
52
|
approval_required: "approval_required";
|
|
53
|
+
capability_denied: "capability_denied";
|
|
52
54
|
validation_failed: "validation_failed";
|
|
55
|
+
provider_unavailable: "provider_unavailable";
|
|
53
56
|
execution_failed: "execution_failed";
|
|
54
|
-
timeout: "timeout";
|
|
55
57
|
cancelled: "cancelled";
|
|
56
|
-
|
|
57
|
-
not_found: "not_found";
|
|
58
|
-
not_authorized: "not_authorized";
|
|
58
|
+
timeout: "timeout";
|
|
59
59
|
}>;
|
|
60
60
|
message: z.ZodString;
|
|
61
61
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
62
62
|
safeDiagnostic: z.ZodOptional<z.ZodObject<{
|
|
63
63
|
code: z.ZodEnum<{
|
|
64
|
-
provider_unavailable: "provider_unavailable";
|
|
65
|
-
capability_denied: "capability_denied";
|
|
66
64
|
approval_required: "approval_required";
|
|
65
|
+
capability_denied: "capability_denied";
|
|
67
66
|
validation_failed: "validation_failed";
|
|
67
|
+
provider_unavailable: "provider_unavailable";
|
|
68
68
|
execution_failed: "execution_failed";
|
|
69
|
-
output_truncated: "output_truncated";
|
|
70
|
-
timeout: "timeout";
|
|
71
69
|
cancelled: "cancelled";
|
|
70
|
+
timeout: "timeout";
|
|
71
|
+
output_truncated: "output_truncated";
|
|
72
72
|
artifact_unavailable: "artifact_unavailable";
|
|
73
73
|
}>;
|
|
74
74
|
level: z.ZodEnum<{
|
|
@@ -149,4 +149,4 @@ interface PortalCallSurfaceJsonSchemas {
|
|
|
149
149
|
declare function createPortalCallSurfaceJsonSchemas(): PortalCallSurfaceJsonSchemas;
|
|
150
150
|
//#endregion
|
|
151
151
|
export { PortalSearchRequestSchema as a, PortalListRequestSchema as c, PortalErrorCodeSchema as d, PortalErrorSchema as f, PortalDescribeRequestSchema as h, PortalSearchRequest as i, PortalError as l, PortalDescribeRequest as m, createPortalCallSurfaceJsonSchemas as n, PortalListItemRequestSchema as o, PortalDescribeItemRequestSchema as p, PortalSearchItemRequestSchema as r, PortalListRequest as s, PortalCallSurfaceJsonSchemas as t, PortalErrorCode as u };
|
|
152
|
-
//# sourceMappingURL=index-
|
|
152
|
+
//# sourceMappingURL=index-DTTEu7ZT.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-DTTEu7ZT.d.ts","names":[],"sources":["../src/portal-call-surface/models/portal-describe-request-schema.ts","../src/portal-call-surface/models/portal-error-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"],"mappings":";;;cAQa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAY/B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;KAa5B,qBAAA,GAAwB,CAAA,CAAE,KAAA,QAAa,2BAAA;;;cC7BtC,qBAAA,EAAqB,CAAA,CAAA,OAAA;;;;;;;;;;;;KAatB,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,qBAAA;AAAA,cAEhC,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KASlB,WAAA,GAAc,CAAA,CAAE,KAAA,QAAa,iBAAA;;;cCpB5B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;cAW3B,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;KAaxB,iBAAA,GAAoB,CAAA,CAAE,KAAA,QAAa,uBAAA;;;cCzBlC,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;cAU7B,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;KAa1B,mBAAA,GAAsB,CAAA,CAAE,KAAA,QAAa,yBAAA;;;UCvBhC,4BAAA;EAAA,SACP,IAAA,EAAM,MAAA;EAAA,SACN,QAAA,EAAU,MAAA;EAAA,SACV,IAAA,EAAM,MAAA;EAAA,SACN,MAAA,EAAQ,MAAA;AAAA;AAAA,iBAGF,kCAAA,CAAA,GAAsC,4BAAA"}
|
|
@@ -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
|
-
provider_unavailable: "provider_unavailable";
|
|
27
|
-
capability_denied: "capability_denied";
|
|
28
26
|
approval_required: "approval_required";
|
|
27
|
+
capability_denied: "capability_denied";
|
|
29
28
|
validation_failed: "validation_failed";
|
|
29
|
+
provider_unavailable: "provider_unavailable";
|
|
30
30
|
execution_failed: "execution_failed";
|
|
31
|
-
output_truncated: "output_truncated";
|
|
32
|
-
timeout: "timeout";
|
|
33
31
|
cancelled: "cancelled";
|
|
32
|
+
timeout: "timeout";
|
|
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
|
-
|
|
59
|
-
|
|
58
|
+
invalid_request: "invalid_request";
|
|
59
|
+
not_found: "not_found";
|
|
60
|
+
not_authorized: "not_authorized";
|
|
60
61
|
approval_required: "approval_required";
|
|
62
|
+
capability_denied: "capability_denied";
|
|
61
63
|
validation_failed: "validation_failed";
|
|
64
|
+
provider_unavailable: "provider_unavailable";
|
|
62
65
|
execution_failed: "execution_failed";
|
|
63
|
-
timeout: "timeout";
|
|
64
66
|
cancelled: "cancelled";
|
|
65
|
-
|
|
66
|
-
not_found: "not_found";
|
|
67
|
-
not_authorized: "not_authorized";
|
|
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
|
-
provider_unavailable: "provider_unavailable";
|
|
74
|
-
capability_denied: "capability_denied";
|
|
75
73
|
approval_required: "approval_required";
|
|
74
|
+
capability_denied: "capability_denied";
|
|
76
75
|
validation_failed: "validation_failed";
|
|
76
|
+
provider_unavailable: "provider_unavailable";
|
|
77
77
|
execution_failed: "execution_failed";
|
|
78
|
-
output_truncated: "output_truncated";
|
|
79
|
-
timeout: "timeout";
|
|
80
78
|
cancelled: "cancelled";
|
|
79
|
+
timeout: "timeout";
|
|
80
|
+
output_truncated: "output_truncated";
|
|
81
81
|
artifact_unavailable: "artifact_unavailable";
|
|
82
82
|
}>;
|
|
83
83
|
level: z.ZodEnum<{
|
|
@@ -93,8 +93,8 @@ declare const PortalCancellationResultEventSchema: z.ZodObject<{
|
|
|
93
93
|
id: z.ZodString;
|
|
94
94
|
kind: z.ZodLiteral<"cancellation_result">;
|
|
95
95
|
status: z.ZodEnum<{
|
|
96
|
-
cancelled: "cancelled";
|
|
97
96
|
not_found: "not_found";
|
|
97
|
+
cancelled: "cancelled";
|
|
98
98
|
already_finished: "already_finished";
|
|
99
99
|
}>;
|
|
100
100
|
}, z.core.$strict>;
|
|
@@ -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
|
-
provider_unavailable: "provider_unavailable";
|
|
121
|
-
capability_denied: "capability_denied";
|
|
122
120
|
approval_required: "approval_required";
|
|
121
|
+
capability_denied: "capability_denied";
|
|
123
122
|
validation_failed: "validation_failed";
|
|
123
|
+
provider_unavailable: "provider_unavailable";
|
|
124
124
|
execution_failed: "execution_failed";
|
|
125
|
-
output_truncated: "output_truncated";
|
|
126
|
-
timeout: "timeout";
|
|
127
125
|
cancelled: "cancelled";
|
|
126
|
+
timeout: "timeout";
|
|
127
|
+
output_truncated: "output_truncated";
|
|
128
128
|
artifact_unavailable: "artifact_unavailable";
|
|
129
129
|
}>;
|
|
130
130
|
level: z.ZodEnum<{
|
|
@@ -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
|
-
|
|
149
|
-
|
|
148
|
+
invalid_request: "invalid_request";
|
|
149
|
+
not_found: "not_found";
|
|
150
|
+
not_authorized: "not_authorized";
|
|
150
151
|
approval_required: "approval_required";
|
|
152
|
+
capability_denied: "capability_denied";
|
|
151
153
|
validation_failed: "validation_failed";
|
|
154
|
+
provider_unavailable: "provider_unavailable";
|
|
152
155
|
execution_failed: "execution_failed";
|
|
153
|
-
timeout: "timeout";
|
|
154
156
|
cancelled: "cancelled";
|
|
155
|
-
|
|
156
|
-
not_found: "not_found";
|
|
157
|
-
not_authorized: "not_authorized";
|
|
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
|
-
provider_unavailable: "provider_unavailable";
|
|
164
|
-
capability_denied: "capability_denied";
|
|
165
163
|
approval_required: "approval_required";
|
|
164
|
+
capability_denied: "capability_denied";
|
|
166
165
|
validation_failed: "validation_failed";
|
|
166
|
+
provider_unavailable: "provider_unavailable";
|
|
167
167
|
execution_failed: "execution_failed";
|
|
168
|
-
output_truncated: "output_truncated";
|
|
169
|
-
timeout: "timeout";
|
|
170
168
|
cancelled: "cancelled";
|
|
169
|
+
timeout: "timeout";
|
|
170
|
+
output_truncated: "output_truncated";
|
|
171
171
|
artifact_unavailable: "artifact_unavailable";
|
|
172
172
|
}>;
|
|
173
173
|
level: z.ZodEnum<{
|
|
@@ -183,8 +183,8 @@ declare const PortalEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
183
183
|
id: z.ZodString;
|
|
184
184
|
kind: z.ZodLiteral<"cancellation_result">;
|
|
185
185
|
status: z.ZodEnum<{
|
|
186
|
-
cancelled: "cancelled";
|
|
187
186
|
not_found: "not_found";
|
|
187
|
+
cancelled: "cancelled";
|
|
188
188
|
already_finished: "already_finished";
|
|
189
189
|
}>;
|
|
190
190
|
}, z.core.$strict>], "kind">;
|
|
@@ -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
|
-
provider_unavailable: "provider_unavailable";
|
|
196
|
-
capability_denied: "capability_denied";
|
|
197
195
|
approval_required: "approval_required";
|
|
196
|
+
capability_denied: "capability_denied";
|
|
198
197
|
validation_failed: "validation_failed";
|
|
198
|
+
provider_unavailable: "provider_unavailable";
|
|
199
199
|
execution_failed: "execution_failed";
|
|
200
|
-
output_truncated: "output_truncated";
|
|
201
|
-
timeout: "timeout";
|
|
202
200
|
cancelled: "cancelled";
|
|
201
|
+
timeout: "timeout";
|
|
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
|
-
provider_unavailable: "provider_unavailable";
|
|
208
|
-
capability_denied: "capability_denied";
|
|
209
207
|
approval_required: "approval_required";
|
|
208
|
+
capability_denied: "capability_denied";
|
|
210
209
|
validation_failed: "validation_failed";
|
|
210
|
+
provider_unavailable: "provider_unavailable";
|
|
211
211
|
execution_failed: "execution_failed";
|
|
212
|
-
output_truncated: "output_truncated";
|
|
213
|
-
timeout: "timeout";
|
|
214
212
|
cancelled: "cancelled";
|
|
213
|
+
timeout: "timeout";
|
|
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-DZJH4Rau.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-DZJH4Rau.d.ts","names":[],"sources":["../src/portal-event-surface/models/portal-event-schema.ts","../src/portal-event-surface/models/safe-diagnostic-schema.ts"],"mappings":";;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;KAS1B,mBAAA,GAAsB,CAAA,CAAE,KAAA,QAAa,yBAAA;AAAA,cAEpC,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;KAU/B,wBAAA,GAA2B,CAAA,CAAE,KAAA,QAAa,8BAAA;AAAA,cAEzC,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;KAQ5B,qBAAA,GAAwB,CAAA,CAAE,KAAA,QAAa,2BAAA;AAAA,cAEtC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;KAQrC,8BAAA,GAAiC,CAAA,CAAE,KAAA,QAAa,oCAAA;AAAA,cAE/C,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KASpC,6BAAA,GAAgC,CAAA,CAAE,KAAA,QAAa,mCAAA;AAAA,cAE9C,iBAAA,EAAiB,CAAA,CAAA,qBAAA,EAAA,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAQlB,WAAA,GAAc,CAAA,CAAE,KAAA,QAAa,iBAAA;;;cClE5B,wBAAA,EAAwB,CAAA,CAAA,OAAA;;;;;;;;;;;cAYxB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;KASrB,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA"}
|
|
@@ -22,14 +22,14 @@ declare const ApprovalRequiredResultSchema: z.ZodObject<{
|
|
|
22
22
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
23
23
|
safeDiagnostic: z.ZodOptional<z.ZodObject<{
|
|
24
24
|
code: z.ZodEnum<{
|
|
25
|
-
provider_unavailable: "provider_unavailable";
|
|
26
|
-
capability_denied: "capability_denied";
|
|
27
25
|
approval_required: "approval_required";
|
|
26
|
+
capability_denied: "capability_denied";
|
|
28
27
|
validation_failed: "validation_failed";
|
|
28
|
+
provider_unavailable: "provider_unavailable";
|
|
29
29
|
execution_failed: "execution_failed";
|
|
30
|
-
output_truncated: "output_truncated";
|
|
31
|
-
timeout: "timeout";
|
|
32
30
|
cancelled: "cancelled";
|
|
31
|
+
timeout: "timeout";
|
|
32
|
+
output_truncated: "output_truncated";
|
|
33
33
|
artifact_unavailable: "artifact_unavailable";
|
|
34
34
|
}>;
|
|
35
35
|
level: z.ZodEnum<{
|
|
@@ -121,4 +121,4 @@ type GatewayApprovalDecisionResult = z.infer<typeof GatewayApprovalDecisionResul
|
|
|
121
121
|
declare function sanitizeGatewayApprovalArguments(argumentsValue: unknown): string;
|
|
122
122
|
//#endregion
|
|
123
123
|
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-
|
|
124
|
+
//# sourceMappingURL=index-ex2lEawY.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-ex2lEawY.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,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"}
|