@tangle-network/agent-interface 1.8.0 → 2.0.0
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/README.md +14 -0
- package/dist/agent-candidate-code-schema.d.ts +17 -17
- package/dist/agent-candidate-execution-plan-schema.d.ts +179 -179
- package/dist/agent-candidate-lineage-schema.d.ts +2 -2
- package/dist/agent-candidate-outcome-schema.d.ts +56 -56
- package/dist/agent-candidate-profile-schema.d.ts +17 -17
- package/dist/agent-candidate-promotion-schema.d.ts +1085 -1085
- package/dist/agent-candidate-receipt-schema.d.ts +195 -195
- package/dist/agent-candidate-schema-common.d.ts +6 -0
- package/dist/agent-candidate-schema-common.js +25 -10
- package/dist/agent-candidate-schema.d.ts +30 -30
- package/dist/agent-candidate-task-schema.d.ts +16 -16
- package/dist/agent-execution-limits.d.ts +1 -1
- package/dist/agent-execution-preparation-receipt.d.ts +71 -71
- package/dist/agent-improvement-measurement-schema.d.ts +26 -26
- package/dist/agent-instance.d.ts +2 -2
- package/dist/agent-profile-improvement-schema.d.ts +75 -75
- package/dist/agent-workspace-lease.d.ts +4 -4
- package/dist/certified-context.d.ts +2 -2
- package/dist/environment-command-turn.js +4 -1
- package/dist/environment-interactive-control.d.ts +422 -422
- package/dist/environment-interactive-start.d.ts +17 -17
- package/dist/environment-observation.d.ts +39 -39
- package/dist/environment-provider.d.ts +1 -0
- package/dist/environment-provider.js +1 -0
- package/dist/environment-requests.d.ts +22 -2
- package/dist/environment-requests.js +29 -1
- package/dist/environment-runtime.d.ts +53 -20
- package/dist/environment-runtime.js +23 -0
- package/dist/harness.d.ts +11 -11
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/interaction-envelope.d.ts +26 -26
- package/dist/interaction-fields.d.ts +22 -22
- package/dist/interaction-permissions.d.ts +2 -2
- package/dist/portable-context-base.d.ts +1 -1
- package/dist/portable-context-continuation.d.ts +4 -4
- package/dist/portable-context-plan-request.d.ts +1 -1
- package/dist/portable-context-plan.d.ts +5 -5
- package/dist/portable-context-shared.d.ts +1 -1
- package/dist/portable-context-transfer.d.ts +6 -6
- package/dist/profile-schema.d.ts +37 -37
- package/dist/runtime-control.d.ts +10 -10
- package/dist/workspace-cleanup.d.ts +3 -3
- package/dist/workspace-cwd.d.ts +28 -0
- package/dist/workspace-cwd.js +77 -0
- package/dist/workspace-fork.d.ts +4 -4
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export * from "./host-services.js";
|
|
|
8
8
|
export * from "./mcp.js";
|
|
9
9
|
export * from "./provider-adapter.js";
|
|
10
10
|
export type * from "./environment-provider.js";
|
|
11
|
-
export { AgentEnvironmentCapabilitiesSchema, AgentNativeContextContinuationAdmissionSchema, AgentNativeContextContinuationResultSchema, AgentTurnInputSchema, AgentTurnResultSchema, agentEnvironmentCreateInputDigest, agentNativeContextContinuationAdmissionMatchesRequest, agentNativeContextContinuationResultMatchesRequest, AccountUsageSchema, AgentEnvironmentObservationSchema, AgentEnvironmentStatusSchema, ComputeBillingSchema, EnvironmentLifecycleSchema, ModelUsageSchema, ObservationProvenanceSchema, ObservationStateSchema, PlacementDescriptorSchema, ProviderIdentitySchema, ResourceProfileSchema, ResourceUseSampleSchema, SafeEndpointSchema, agentEnvironmentObservationIdentityMatches, assertObservationCredentialFree, observationContainsCredential, observationOf, AgentInteractiveSessionAttachSchema, AgentInteractiveSessionControlClaimAcknowledgementSchema, AgentInteractiveSessionControlClaimRequestSchema, AgentInteractiveSessionControlClaimSchema, AgentInteractiveSessionPromptAcknowledgementSchema, AgentInteractiveSessionPromptCommandSchema, AgentInteractiveSessionRefSchema, AgentInteractiveSessionStartSchema, AgentInteractiveSessionStopAcknowledgementSchema, AgentInteractiveSessionStopCommandSchema, AgentInteractiveSessionStatusSchema, agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, agentInteractiveSessionControlClaimRequestDigest, agentInteractiveSessionControlClaimMatchesRef, agentInteractiveSessionControlClaimIsNewer, agentInteractiveSessionPromptAcknowledgementMatchesCommand, agentInteractiveSessionPromptRequestDigest, agentInteractiveSessionStopAcknowledgementMatchesCommand, agentInteractiveSessionStopRequestDigest, agentInteractiveSessionRequestDigest, agentInteractiveSessionRefMatchesStart, agentInteractiveSessionRunRef, agentInteractiveSessionStatusMatchesRef, exactAgentInteractiveSessionStart, AgentEnvironmentCreationSchema, createAgentEnvironmentWithIdempotency, replayedAgentEnvironmentView, TerminalAttachRequestSchema, TerminalAttachResultSchema, TerminalDetachAckSchema, TerminalInputSchema, TerminalOutputEventSchema, TerminalReplayWindowSchema, TerminalResizeSchema, TerminalSessionRefSchema, terminalAttachResultMatchesRequest, terminalSessionUsable, } from "./environment-provider.js";
|
|
11
|
+
export { AgentEnvironmentCapabilitiesSchema, AgentNativeContextContinuationAdmissionSchema, AgentNativeContextContinuationResultSchema, AgentTurnInputSchema, AgentTurnResultSchema, agentEnvironmentCreateInputDigest, agentNativeContextContinuationAdmissionMatchesRequest, agentNativeContextContinuationResultMatchesRequest, AccountUsageSchema, AgentEnvironmentObservationSchema, AgentEnvironmentStatusSchema, ComputeBillingSchema, EnvironmentLifecycleSchema, ModelUsageSchema, ObservationProvenanceSchema, ObservationStateSchema, PlacementDescriptorSchema, ProviderIdentitySchema, ResourceProfileSchema, ResourceUseSampleSchema, SafeEndpointSchema, agentEnvironmentObservationIdentityMatches, assertObservationCredentialFree, observationContainsCredential, observationOf, AgentInteractiveSessionAttachSchema, AgentInteractiveSessionControlClaimAcknowledgementSchema, AgentInteractiveSessionControlClaimRequestSchema, AgentInteractiveSessionControlClaimSchema, AgentInteractiveSessionPromptAcknowledgementSchema, AgentInteractiveSessionPromptCommandSchema, AgentInteractiveSessionRefSchema, AgentInteractiveSessionStartSchema, AgentInteractiveSessionStopAcknowledgementSchema, AgentInteractiveSessionStopCommandSchema, AgentInteractiveSessionStatusSchema, agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, agentInteractiveSessionControlClaimRequestDigest, agentInteractiveSessionControlClaimMatchesRef, agentInteractiveSessionControlClaimIsNewer, agentInteractiveSessionPromptAcknowledgementMatchesCommand, agentInteractiveSessionPromptRequestDigest, agentInteractiveSessionStopAcknowledgementMatchesCommand, agentInteractiveSessionStopRequestDigest, agentInteractiveSessionRequestDigest, agentInteractiveSessionRefMatchesStart, agentInteractiveSessionRunRef, agentInteractiveSessionStatusMatchesRef, exactAgentInteractiveSessionStart, AgentEnvironmentCreationSchema, createAgentEnvironmentWithIdempotency, replayedAgentEnvironmentView, canonicalWorkspaceCwd, MAX_WORKSPACE_CWD_LENGTH, workspaceCwdSchema, workspaceCwdPathForBase, WorkspaceRequestSchema, TerminalAttachRequestSchema, TerminalAttachResultSchema, TerminalDetachAckSchema, TerminalInputSchema, TerminalOutputEventSchema, TerminalReplayWindowSchema, TerminalResizeSchema, TerminalSessionRefSchema, terminalAttachResultMatchesRequest, terminalSessionUsable, } from "./environment-provider.js";
|
|
12
12
|
export * from "./plan.js";
|
|
13
13
|
export * from "./runtime-control.js";
|
|
14
14
|
export * from "./portable-context.js";
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ export * from "./provider-config.js";
|
|
|
7
7
|
export * from "./host-services.js";
|
|
8
8
|
export * from "./mcp.js";
|
|
9
9
|
export * from "./provider-adapter.js";
|
|
10
|
-
export { AgentEnvironmentCapabilitiesSchema, AgentNativeContextContinuationAdmissionSchema, AgentNativeContextContinuationResultSchema, AgentTurnInputSchema, AgentTurnResultSchema, agentEnvironmentCreateInputDigest, agentNativeContextContinuationAdmissionMatchesRequest, agentNativeContextContinuationResultMatchesRequest, AccountUsageSchema, AgentEnvironmentObservationSchema, AgentEnvironmentStatusSchema, ComputeBillingSchema, EnvironmentLifecycleSchema, ModelUsageSchema, ObservationProvenanceSchema, ObservationStateSchema, PlacementDescriptorSchema, ProviderIdentitySchema, ResourceProfileSchema, ResourceUseSampleSchema, SafeEndpointSchema, agentEnvironmentObservationIdentityMatches, assertObservationCredentialFree, observationContainsCredential, observationOf, AgentInteractiveSessionAttachSchema, AgentInteractiveSessionControlClaimAcknowledgementSchema, AgentInteractiveSessionControlClaimRequestSchema, AgentInteractiveSessionControlClaimSchema, AgentInteractiveSessionPromptAcknowledgementSchema, AgentInteractiveSessionPromptCommandSchema, AgentInteractiveSessionRefSchema, AgentInteractiveSessionStartSchema, AgentInteractiveSessionStopAcknowledgementSchema, AgentInteractiveSessionStopCommandSchema, AgentInteractiveSessionStatusSchema, agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, agentInteractiveSessionControlClaimRequestDigest, agentInteractiveSessionControlClaimMatchesRef, agentInteractiveSessionControlClaimIsNewer, agentInteractiveSessionPromptAcknowledgementMatchesCommand, agentInteractiveSessionPromptRequestDigest, agentInteractiveSessionStopAcknowledgementMatchesCommand, agentInteractiveSessionStopRequestDigest, agentInteractiveSessionRequestDigest, agentInteractiveSessionRefMatchesStart, agentInteractiveSessionRunRef, agentInteractiveSessionStatusMatchesRef, exactAgentInteractiveSessionStart, AgentEnvironmentCreationSchema, createAgentEnvironmentWithIdempotency, replayedAgentEnvironmentView, TerminalAttachRequestSchema, TerminalAttachResultSchema, TerminalDetachAckSchema, TerminalInputSchema, TerminalOutputEventSchema, TerminalReplayWindowSchema, TerminalResizeSchema, TerminalSessionRefSchema, terminalAttachResultMatchesRequest, terminalSessionUsable, } from "./environment-provider.js";
|
|
10
|
+
export { AgentEnvironmentCapabilitiesSchema, AgentNativeContextContinuationAdmissionSchema, AgentNativeContextContinuationResultSchema, AgentTurnInputSchema, AgentTurnResultSchema, agentEnvironmentCreateInputDigest, agentNativeContextContinuationAdmissionMatchesRequest, agentNativeContextContinuationResultMatchesRequest, AccountUsageSchema, AgentEnvironmentObservationSchema, AgentEnvironmentStatusSchema, ComputeBillingSchema, EnvironmentLifecycleSchema, ModelUsageSchema, ObservationProvenanceSchema, ObservationStateSchema, PlacementDescriptorSchema, ProviderIdentitySchema, ResourceProfileSchema, ResourceUseSampleSchema, SafeEndpointSchema, agentEnvironmentObservationIdentityMatches, assertObservationCredentialFree, observationContainsCredential, observationOf, AgentInteractiveSessionAttachSchema, AgentInteractiveSessionControlClaimAcknowledgementSchema, AgentInteractiveSessionControlClaimRequestSchema, AgentInteractiveSessionControlClaimSchema, AgentInteractiveSessionPromptAcknowledgementSchema, AgentInteractiveSessionPromptCommandSchema, AgentInteractiveSessionRefSchema, AgentInteractiveSessionStartSchema, AgentInteractiveSessionStopAcknowledgementSchema, AgentInteractiveSessionStopCommandSchema, AgentInteractiveSessionStatusSchema, agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, agentInteractiveSessionControlClaimRequestDigest, agentInteractiveSessionControlClaimMatchesRef, agentInteractiveSessionControlClaimIsNewer, agentInteractiveSessionPromptAcknowledgementMatchesCommand, agentInteractiveSessionPromptRequestDigest, agentInteractiveSessionStopAcknowledgementMatchesCommand, agentInteractiveSessionStopRequestDigest, agentInteractiveSessionRequestDigest, agentInteractiveSessionRefMatchesStart, agentInteractiveSessionRunRef, agentInteractiveSessionStatusMatchesRef, exactAgentInteractiveSessionStart, AgentEnvironmentCreationSchema, createAgentEnvironmentWithIdempotency, replayedAgentEnvironmentView, canonicalWorkspaceCwd, MAX_WORKSPACE_CWD_LENGTH, workspaceCwdSchema, workspaceCwdPathForBase, WorkspaceRequestSchema, TerminalAttachRequestSchema, TerminalAttachResultSchema, TerminalDetachAckSchema, TerminalInputSchema, TerminalOutputEventSchema, TerminalReplayWindowSchema, TerminalResizeSchema, TerminalSessionRefSchema, terminalAttachResultMatchesRequest, terminalSessionUsable, } from "./environment-provider.js";
|
|
11
11
|
export * from "./plan.js";
|
|
12
12
|
export * from "./runtime-control.js";
|
|
13
13
|
export * from "./portable-context.js";
|
|
@@ -21,8 +21,8 @@ export declare const InteractionSubjectSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
21
21
|
}, z.core.$strict>], "type">;
|
|
22
22
|
export type InteractionSubject = z.infer<typeof InteractionSubjectSchema>;
|
|
23
23
|
export declare const InteractionOutcomeSchema: z.ZodEnum<{
|
|
24
|
-
cancelled: "cancelled";
|
|
25
24
|
accepted: "accepted";
|
|
25
|
+
cancelled: "cancelled";
|
|
26
26
|
declined: "declined";
|
|
27
27
|
}>;
|
|
28
28
|
export type InteractionOutcome = z.infer<typeof InteractionOutcomeSchema>;
|
|
@@ -37,22 +37,22 @@ export declare const InteractionRequestBindingSchema: z.ZodObject<{
|
|
|
37
37
|
export type InteractionRequestBinding = z.infer<typeof InteractionRequestBindingSchema>;
|
|
38
38
|
/** Exact execution coordinates shared by every interaction from one provider turn. */
|
|
39
39
|
export declare const InteractionExecutionBindingSchema: z.ZodObject<{
|
|
40
|
-
provider: z.ZodString;
|
|
41
|
-
executionId: z.ZodString;
|
|
42
40
|
runId: z.ZodString;
|
|
41
|
+
provider: z.ZodString;
|
|
43
42
|
environmentId: z.ZodString;
|
|
44
43
|
sessionId: z.ZodString;
|
|
44
|
+
executionId: z.ZodString;
|
|
45
45
|
}, z.core.$strict>;
|
|
46
46
|
export type InteractionExecutionBinding = z.infer<typeof InteractionExecutionBindingSchema>;
|
|
47
47
|
/** Binding carried by a response command and acknowledgement. */
|
|
48
48
|
export declare const InteractionBindingSchema: z.ZodObject<{
|
|
49
|
-
requestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
50
49
|
runId: z.ZodString;
|
|
51
50
|
provider: z.ZodString;
|
|
52
51
|
environmentId: z.ZodString;
|
|
53
52
|
sessionId: z.ZodString;
|
|
54
53
|
executionId: z.ZodString;
|
|
55
54
|
interactionId: z.ZodString;
|
|
55
|
+
requestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
56
56
|
}, z.core.$strict>;
|
|
57
57
|
export type InteractionBinding = z.infer<typeof InteractionBindingSchema>;
|
|
58
58
|
export interface InteractionRequestMaterial {
|
|
@@ -74,7 +74,6 @@ export interface InteractionRequest extends InteractionRequestMaterial {
|
|
|
74
74
|
}
|
|
75
75
|
export declare function interactionRequestDigest(request: InteractionRequestMaterial): Sha256Digest;
|
|
76
76
|
export declare const InteractionRequestSchema: z.ZodObject<{
|
|
77
|
-
requestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
78
77
|
id: z.ZodString;
|
|
79
78
|
kind: z.ZodString;
|
|
80
79
|
title: z.ZodString;
|
|
@@ -96,29 +95,32 @@ export declare const InteractionRequestSchema: z.ZodObject<{
|
|
|
96
95
|
}, z.core.$strict>], "type">>;
|
|
97
96
|
answerSpec: z.ZodObject<{
|
|
98
97
|
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
98
|
+
name: z.ZodString;
|
|
99
|
+
label: z.ZodString;
|
|
100
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
99
101
|
type: z.ZodLiteral<"text">;
|
|
100
102
|
multiline: z.ZodOptional<z.ZodBoolean>;
|
|
101
103
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
102
104
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
103
105
|
default: z.ZodOptional<z.ZodString>;
|
|
106
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
104
107
|
name: z.ZodString;
|
|
105
108
|
label: z.ZodString;
|
|
106
109
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
107
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
108
110
|
type: z.ZodLiteral<"number">;
|
|
109
111
|
min: z.ZodOptional<z.ZodNumber>;
|
|
110
112
|
max: z.ZodOptional<z.ZodNumber>;
|
|
111
113
|
default: z.ZodOptional<z.ZodNumber>;
|
|
114
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
112
115
|
name: z.ZodString;
|
|
113
116
|
label: z.ZodString;
|
|
114
117
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
116
118
|
type: z.ZodLiteral<"boolean">;
|
|
117
119
|
default: z.ZodOptional<z.ZodBoolean>;
|
|
120
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
118
121
|
name: z.ZodString;
|
|
119
122
|
label: z.ZodString;
|
|
120
123
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
121
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
122
124
|
type: z.ZodLiteral<"select">;
|
|
123
125
|
options: z.ZodArray<z.ZodObject<{
|
|
124
126
|
value: z.ZodString;
|
|
@@ -128,26 +130,23 @@ export declare const InteractionRequestSchema: z.ZodObject<{
|
|
|
128
130
|
multi: z.ZodOptional<z.ZodBoolean>;
|
|
129
131
|
allowCustom: z.ZodOptional<z.ZodBoolean>;
|
|
130
132
|
default: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
133
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
131
134
|
name: z.ZodString;
|
|
132
135
|
label: z.ZodString;
|
|
133
136
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
135
137
|
type: z.ZodLiteral<"secret">;
|
|
136
138
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
137
139
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
138
|
-
name: z.ZodString;
|
|
139
|
-
label: z.ZodString;
|
|
140
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
141
140
|
}, z.core.$strict>], "type">>;
|
|
142
141
|
}, z.core.$strict>;
|
|
143
142
|
responseScopes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
144
143
|
interaction: "interaction";
|
|
145
|
-
session: "session";
|
|
146
144
|
persistent: "persistent";
|
|
145
|
+
session: "session";
|
|
147
146
|
}>>>;
|
|
148
147
|
allowedOutcomes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
149
|
-
cancelled: "cancelled";
|
|
150
148
|
accepted: "accepted";
|
|
149
|
+
cancelled: "cancelled";
|
|
151
150
|
declined: "declined";
|
|
152
151
|
}>>>;
|
|
153
152
|
default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -174,6 +173,7 @@ export declare const InteractionRequestSchema: z.ZodObject<{
|
|
|
174
173
|
executionId: z.ZodString;
|
|
175
174
|
interactionId: z.ZodString;
|
|
176
175
|
}, z.core.$strict>;
|
|
176
|
+
requestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
177
177
|
}, z.core.$strict>;
|
|
178
178
|
export declare const InteractionResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
179
179
|
id: z.ZodString;
|
|
@@ -199,13 +199,13 @@ export declare function interactionResponseCommandDigest(material: InteractionRe
|
|
|
199
199
|
export declare const InteractionResponseCommandSchema: z.ZodObject<{
|
|
200
200
|
operationId: z.ZodString;
|
|
201
201
|
binding: z.ZodObject<{
|
|
202
|
-
requestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
203
202
|
runId: z.ZodString;
|
|
204
203
|
provider: z.ZodString;
|
|
205
204
|
environmentId: z.ZodString;
|
|
206
205
|
sessionId: z.ZodString;
|
|
207
206
|
executionId: z.ZodString;
|
|
208
207
|
interactionId: z.ZodString;
|
|
208
|
+
requestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
209
209
|
}, z.core.$strict>;
|
|
210
210
|
commandDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
211
211
|
response: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -224,42 +224,42 @@ export declare const InteractionResponseCommandSchema: z.ZodObject<{
|
|
|
224
224
|
}, z.core.$strict>;
|
|
225
225
|
export type InteractionResponseCommand = z.infer<typeof InteractionResponseCommandSchema>;
|
|
226
226
|
export declare const InteractionAcknowledgementStatusSchema: z.ZodEnum<{
|
|
227
|
-
cancelled: "cancelled";
|
|
228
|
-
expired: "expired";
|
|
229
227
|
accepted: "accepted";
|
|
230
|
-
already_resolved_same: "already_resolved_same";
|
|
231
228
|
already_resolved_different: "already_resolved_different";
|
|
232
|
-
|
|
233
|
-
unknown_run: "unknown_run";
|
|
229
|
+
already_resolved_same: "already_resolved_same";
|
|
234
230
|
binding_mismatch: "binding_mismatch";
|
|
231
|
+
cancelled: "cancelled";
|
|
232
|
+
expired: "expired";
|
|
235
233
|
invalid_response: "invalid_response";
|
|
236
234
|
transport_failure: "transport_failure";
|
|
235
|
+
unknown_interaction: "unknown_interaction";
|
|
236
|
+
unknown_run: "unknown_run";
|
|
237
237
|
}>;
|
|
238
238
|
export type InteractionAcknowledgementStatus = z.infer<typeof InteractionAcknowledgementStatusSchema>;
|
|
239
239
|
/** Durable result of one interaction response operation. */
|
|
240
240
|
export declare const InteractionAcknowledgementSchema: z.ZodObject<{
|
|
241
241
|
operationId: z.ZodString;
|
|
242
242
|
binding: z.ZodObject<{
|
|
243
|
-
requestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
244
243
|
runId: z.ZodString;
|
|
245
244
|
provider: z.ZodString;
|
|
246
245
|
environmentId: z.ZodString;
|
|
247
246
|
sessionId: z.ZodString;
|
|
248
247
|
executionId: z.ZodString;
|
|
249
248
|
interactionId: z.ZodString;
|
|
249
|
+
requestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
250
250
|
}, z.core.$strict>;
|
|
251
251
|
commandDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
252
252
|
status: z.ZodEnum<{
|
|
253
|
-
cancelled: "cancelled";
|
|
254
|
-
expired: "expired";
|
|
255
253
|
accepted: "accepted";
|
|
256
|
-
already_resolved_same: "already_resolved_same";
|
|
257
254
|
already_resolved_different: "already_resolved_different";
|
|
258
|
-
|
|
259
|
-
unknown_run: "unknown_run";
|
|
255
|
+
already_resolved_same: "already_resolved_same";
|
|
260
256
|
binding_mismatch: "binding_mismatch";
|
|
257
|
+
cancelled: "cancelled";
|
|
258
|
+
expired: "expired";
|
|
261
259
|
invalid_response: "invalid_response";
|
|
262
260
|
transport_failure: "transport_failure";
|
|
261
|
+
unknown_interaction: "unknown_interaction";
|
|
262
|
+
unknown_run: "unknown_run";
|
|
263
263
|
}>;
|
|
264
264
|
message: z.ZodOptional<z.ZodString>;
|
|
265
265
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -8,29 +8,32 @@ import { z } from "zod";
|
|
|
8
8
|
export declare const RESERVED_INTERACTION_FIELD_NAMES: ReadonlySet<string>;
|
|
9
9
|
export declare const InteractionFieldNameSchema: z.ZodString;
|
|
10
10
|
export declare const InteractionFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
label: z.ZodString;
|
|
13
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
11
14
|
type: z.ZodLiteral<"text">;
|
|
12
15
|
multiline: z.ZodOptional<z.ZodBoolean>;
|
|
13
16
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
14
17
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
15
18
|
default: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16
20
|
name: z.ZodString;
|
|
17
21
|
label: z.ZodString;
|
|
18
22
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
20
23
|
type: z.ZodLiteral<"number">;
|
|
21
24
|
min: z.ZodOptional<z.ZodNumber>;
|
|
22
25
|
max: z.ZodOptional<z.ZodNumber>;
|
|
23
26
|
default: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
24
28
|
name: z.ZodString;
|
|
25
29
|
label: z.ZodString;
|
|
26
30
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
28
31
|
type: z.ZodLiteral<"boolean">;
|
|
29
32
|
default: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30
34
|
name: z.ZodString;
|
|
31
35
|
label: z.ZodString;
|
|
32
36
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
34
37
|
type: z.ZodLiteral<"select">;
|
|
35
38
|
options: z.ZodArray<z.ZodObject<{
|
|
36
39
|
value: z.ZodString;
|
|
@@ -40,43 +43,43 @@ export declare const InteractionFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
40
43
|
multi: z.ZodOptional<z.ZodBoolean>;
|
|
41
44
|
allowCustom: z.ZodOptional<z.ZodBoolean>;
|
|
42
45
|
default: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
46
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
43
47
|
name: z.ZodString;
|
|
44
48
|
label: z.ZodString;
|
|
45
49
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
47
50
|
type: z.ZodLiteral<"secret">;
|
|
48
51
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
49
52
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
50
|
-
name: z.ZodString;
|
|
51
|
-
label: z.ZodString;
|
|
52
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
53
53
|
}, z.core.$strict>], "type">;
|
|
54
54
|
export type InteractionField = z.infer<typeof InteractionFieldSchema>;
|
|
55
55
|
export declare const InteractionAnswerSpecSchema: z.ZodObject<{
|
|
56
56
|
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
57
|
+
name: z.ZodString;
|
|
58
|
+
label: z.ZodString;
|
|
59
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
57
60
|
type: z.ZodLiteral<"text">;
|
|
58
61
|
multiline: z.ZodOptional<z.ZodBoolean>;
|
|
59
62
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
60
63
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
61
64
|
default: z.ZodOptional<z.ZodString>;
|
|
65
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
62
66
|
name: z.ZodString;
|
|
63
67
|
label: z.ZodString;
|
|
64
68
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
66
69
|
type: z.ZodLiteral<"number">;
|
|
67
70
|
min: z.ZodOptional<z.ZodNumber>;
|
|
68
71
|
max: z.ZodOptional<z.ZodNumber>;
|
|
69
72
|
default: z.ZodOptional<z.ZodNumber>;
|
|
73
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
70
74
|
name: z.ZodString;
|
|
71
75
|
label: z.ZodString;
|
|
72
76
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
74
77
|
type: z.ZodLiteral<"boolean">;
|
|
75
78
|
default: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
76
80
|
name: z.ZodString;
|
|
77
81
|
label: z.ZodString;
|
|
78
82
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
80
83
|
type: z.ZodLiteral<"select">;
|
|
81
84
|
options: z.ZodArray<z.ZodObject<{
|
|
82
85
|
value: z.ZodString;
|
|
@@ -86,48 +89,45 @@ export declare const InteractionAnswerSpecSchema: z.ZodObject<{
|
|
|
86
89
|
multi: z.ZodOptional<z.ZodBoolean>;
|
|
87
90
|
allowCustom: z.ZodOptional<z.ZodBoolean>;
|
|
88
91
|
default: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
92
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
89
93
|
name: z.ZodString;
|
|
90
94
|
label: z.ZodString;
|
|
91
95
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
93
96
|
type: z.ZodLiteral<"secret">;
|
|
94
97
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
95
98
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
96
|
-
name: z.ZodString;
|
|
97
|
-
label: z.ZodString;
|
|
98
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
99
99
|
}, z.core.$strict>], "type">>;
|
|
100
100
|
}, z.core.$strict>;
|
|
101
101
|
export type InteractionAnswerSpec = z.infer<typeof InteractionAnswerSpecSchema>;
|
|
102
102
|
export declare const InteractionFieldTypeSchema: z.ZodEnum<{
|
|
103
|
-
number: "number";
|
|
104
103
|
boolean: "boolean";
|
|
105
|
-
|
|
106
|
-
select: "select";
|
|
104
|
+
number: "number";
|
|
107
105
|
secret: "secret";
|
|
106
|
+
select: "select";
|
|
107
|
+
text: "text";
|
|
108
108
|
}>;
|
|
109
109
|
export type InteractionFieldType = z.infer<typeof InteractionFieldTypeSchema>;
|
|
110
110
|
/** Scope at which an accepted answer may be reused by an explicit policy. */
|
|
111
111
|
export declare const InteractionResponseScopeSchema: z.ZodEnum<{
|
|
112
112
|
interaction: "interaction";
|
|
113
|
-
session: "session";
|
|
114
113
|
persistent: "persistent";
|
|
114
|
+
session: "session";
|
|
115
115
|
}>;
|
|
116
116
|
export type InteractionResponseScope = z.infer<typeof InteractionResponseScopeSchema>;
|
|
117
117
|
/** Negotiated interaction behavior. Absence means interactions are unsupported. */
|
|
118
118
|
export declare const InteractionCapabilitiesSchema: z.ZodObject<{
|
|
119
119
|
kinds: z.ZodArray<z.ZodString>;
|
|
120
120
|
answerFieldTypes: z.ZodArray<z.ZodEnum<{
|
|
121
|
-
number: "number";
|
|
122
121
|
boolean: "boolean";
|
|
123
|
-
|
|
124
|
-
select: "select";
|
|
122
|
+
number: "number";
|
|
125
123
|
secret: "secret";
|
|
124
|
+
select: "select";
|
|
125
|
+
text: "text";
|
|
126
126
|
}>>;
|
|
127
127
|
responseScopes: z.ZodArray<z.ZodEnum<{
|
|
128
128
|
interaction: "interaction";
|
|
129
|
-
session: "session";
|
|
130
129
|
persistent: "persistent";
|
|
130
|
+
session: "session";
|
|
131
131
|
}>>;
|
|
132
132
|
secretAnswers: z.ZodBoolean;
|
|
133
133
|
concurrentRequests: z.ZodBoolean;
|
|
@@ -24,10 +24,10 @@ export declare const PERMISSION_GRANT_FIELD = "grant";
|
|
|
24
24
|
export declare const PERMISSION_FEEDBACK_FIELD = "feedback";
|
|
25
25
|
/** Graduated permission decision — the value of the `grant` field. */
|
|
26
26
|
export declare const PermissionGrantSchema: z.ZodEnum<{
|
|
27
|
-
|
|
27
|
+
allow_always: "allow_always";
|
|
28
28
|
allow_once: "allow_once";
|
|
29
29
|
allow_session: "allow_session";
|
|
30
|
-
|
|
30
|
+
deny: "deny";
|
|
31
31
|
}>;
|
|
32
32
|
export type PermissionGrant = z.infer<typeof PermissionGrantSchema>;
|
|
33
33
|
/** Build a permission answer spec that cannot offer a broader reusable grant. */
|
|
@@ -62,9 +62,9 @@ export declare const PortableConversationContextSchema: z.ZodObject<{
|
|
|
62
62
|
messages: z.ZodArray<z.ZodObject<{
|
|
63
63
|
id: z.ZodString;
|
|
64
64
|
role: z.ZodEnum<{
|
|
65
|
-
user: "user";
|
|
66
65
|
assistant: "assistant";
|
|
67
66
|
system: "system";
|
|
67
|
+
user: "user";
|
|
68
68
|
}>;
|
|
69
69
|
parts: z.ZodArray<z.ZodCustom<unknown, unknown>>;
|
|
70
70
|
timestamp: z.ZodISODateTime;
|
|
@@ -127,13 +127,13 @@ export declare const NativeContextContinuationAcknowledgementSchema: z.ZodObject
|
|
|
127
127
|
operationId: z.ZodString;
|
|
128
128
|
requestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
129
129
|
status: z.ZodEnum<{
|
|
130
|
-
conflict: "conflict";
|
|
131
130
|
accepted: "accepted";
|
|
132
|
-
transport_failure: "transport_failure";
|
|
133
|
-
replayed: "replayed";
|
|
134
131
|
boundary_mismatch: "boundary_mismatch";
|
|
135
|
-
|
|
132
|
+
conflict: "conflict";
|
|
133
|
+
replayed: "replayed";
|
|
134
|
+
transport_failure: "transport_failure";
|
|
136
135
|
unknown_session: "unknown_session";
|
|
136
|
+
unverified: "unverified";
|
|
137
137
|
}>;
|
|
138
138
|
historyMessagesSent: z.ZodNumber;
|
|
139
139
|
existingRequestDigest: z.ZodOptional<z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>>;
|
|
@@ -34,9 +34,9 @@ export declare const PortableContextPlanRequestSchema: z.ZodObject<{
|
|
|
34
34
|
messages: z.ZodArray<z.ZodObject<{
|
|
35
35
|
id: z.ZodString;
|
|
36
36
|
role: z.ZodEnum<{
|
|
37
|
-
user: "user";
|
|
38
37
|
assistant: "assistant";
|
|
39
38
|
system: "system";
|
|
39
|
+
user: "user";
|
|
40
40
|
}>;
|
|
41
41
|
parts: z.ZodArray<z.ZodCustom<unknown, unknown>>;
|
|
42
42
|
timestamp: z.ZodISODateTime;
|
|
@@ -31,9 +31,9 @@ export interface PortableContextPartPlan {
|
|
|
31
31
|
export declare const PortableContextPartPlanSchema: z.ZodObject<{
|
|
32
32
|
partIndex: z.ZodNumber;
|
|
33
33
|
action: z.ZodEnum<{
|
|
34
|
-
transform: "transform";
|
|
35
34
|
include: "include";
|
|
36
35
|
omit: "omit";
|
|
36
|
+
transform: "transform";
|
|
37
37
|
}>;
|
|
38
38
|
output: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39
39
|
type: z.ZodLiteral<"text">;
|
|
@@ -69,9 +69,9 @@ export declare const PortableContextMessagePlanSchema: z.ZodObject<{
|
|
|
69
69
|
parts: z.ZodArray<z.ZodObject<{
|
|
70
70
|
partIndex: z.ZodNumber;
|
|
71
71
|
action: z.ZodEnum<{
|
|
72
|
-
transform: "transform";
|
|
73
72
|
include: "include";
|
|
74
73
|
omit: "omit";
|
|
74
|
+
transform: "transform";
|
|
75
75
|
}>;
|
|
76
76
|
output: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
77
77
|
type: z.ZodLiteral<"text">;
|
|
@@ -127,9 +127,9 @@ export declare const PortableContextPlanSchema: z.ZodObject<{
|
|
|
127
127
|
messages: z.ZodArray<z.ZodObject<{
|
|
128
128
|
id: z.ZodString;
|
|
129
129
|
role: z.ZodEnum<{
|
|
130
|
-
user: "user";
|
|
131
130
|
assistant: "assistant";
|
|
132
131
|
system: "system";
|
|
132
|
+
user: "user";
|
|
133
133
|
}>;
|
|
134
134
|
parts: z.ZodArray<z.ZodCustom<unknown, unknown>>;
|
|
135
135
|
timestamp: z.ZodISODateTime;
|
|
@@ -163,9 +163,9 @@ export declare const PortableContextPlanSchema: z.ZodObject<{
|
|
|
163
163
|
parts: z.ZodArray<z.ZodObject<{
|
|
164
164
|
partIndex: z.ZodNumber;
|
|
165
165
|
action: z.ZodEnum<{
|
|
166
|
-
transform: "transform";
|
|
167
166
|
include: "include";
|
|
168
167
|
omit: "omit";
|
|
168
|
+
transform: "transform";
|
|
169
169
|
}>;
|
|
170
170
|
output: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
171
171
|
type: z.ZodLiteral<"text">;
|
|
@@ -206,9 +206,9 @@ export declare const PortableContextPlanSchema: z.ZodObject<{
|
|
|
206
206
|
messages: z.ZodArray<z.ZodObject<{
|
|
207
207
|
id: z.ZodString;
|
|
208
208
|
role: z.ZodEnum<{
|
|
209
|
-
user: "user";
|
|
210
209
|
assistant: "assistant";
|
|
211
210
|
system: "system";
|
|
211
|
+
user: "user";
|
|
212
212
|
}>;
|
|
213
213
|
parts: z.ZodArray<z.ZodCustom<unknown, unknown>>;
|
|
214
214
|
timestamp: z.ZodISODateTime;
|
|
@@ -25,9 +25,9 @@ export declare const InputPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
25
25
|
export declare const BackendMessageSchema: z.ZodObject<{
|
|
26
26
|
id: z.ZodString;
|
|
27
27
|
role: z.ZodEnum<{
|
|
28
|
-
user: "user";
|
|
29
28
|
assistant: "assistant";
|
|
30
29
|
system: "system";
|
|
30
|
+
user: "user";
|
|
31
31
|
}>;
|
|
32
32
|
parts: z.ZodArray<z.ZodCustom<unknown, unknown>>;
|
|
33
33
|
timestamp: z.ZodISODateTime;
|
|
@@ -6,8 +6,8 @@ export declare const ContextPlanAcceptanceSchema: z.ZodObject<{
|
|
|
6
6
|
acceptedAt: z.ZodISODateTime;
|
|
7
7
|
acceptedBy: z.ZodEnum<{
|
|
8
8
|
policy: "policy";
|
|
9
|
-
user: "user";
|
|
10
9
|
system: "system";
|
|
10
|
+
user: "user";
|
|
11
11
|
}>;
|
|
12
12
|
}, z.core.$strict>;
|
|
13
13
|
export type ContextPlanAcceptance = z.infer<typeof ContextPlanAcceptanceSchema>;
|
|
@@ -40,9 +40,9 @@ export declare const ContextTransferRequestSchema: z.ZodObject<{
|
|
|
40
40
|
messages: z.ZodArray<z.ZodObject<{
|
|
41
41
|
id: z.ZodString;
|
|
42
42
|
role: z.ZodEnum<{
|
|
43
|
-
user: "user";
|
|
44
43
|
assistant: "assistant";
|
|
45
44
|
system: "system";
|
|
45
|
+
user: "user";
|
|
46
46
|
}>;
|
|
47
47
|
parts: z.ZodArray<z.ZodCustom<unknown, unknown>>;
|
|
48
48
|
timestamp: z.ZodISODateTime;
|
|
@@ -76,9 +76,9 @@ export declare const ContextTransferRequestSchema: z.ZodObject<{
|
|
|
76
76
|
parts: z.ZodArray<z.ZodObject<{
|
|
77
77
|
partIndex: z.ZodNumber;
|
|
78
78
|
action: z.ZodEnum<{
|
|
79
|
-
transform: "transform";
|
|
80
79
|
include: "include";
|
|
81
80
|
omit: "omit";
|
|
81
|
+
transform: "transform";
|
|
82
82
|
}>;
|
|
83
83
|
output: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
84
84
|
type: z.ZodLiteral<"text">;
|
|
@@ -119,9 +119,9 @@ export declare const ContextTransferRequestSchema: z.ZodObject<{
|
|
|
119
119
|
messages: z.ZodArray<z.ZodObject<{
|
|
120
120
|
id: z.ZodString;
|
|
121
121
|
role: z.ZodEnum<{
|
|
122
|
-
user: "user";
|
|
123
122
|
assistant: "assistant";
|
|
124
123
|
system: "system";
|
|
124
|
+
user: "user";
|
|
125
125
|
}>;
|
|
126
126
|
parts: z.ZodArray<z.ZodCustom<unknown, unknown>>;
|
|
127
127
|
timestamp: z.ZodISODateTime;
|
|
@@ -145,8 +145,8 @@ export declare const ContextTransferRequestSchema: z.ZodObject<{
|
|
|
145
145
|
acceptedAt: z.ZodISODateTime;
|
|
146
146
|
acceptedBy: z.ZodEnum<{
|
|
147
147
|
policy: "policy";
|
|
148
|
-
user: "user";
|
|
149
148
|
system: "system";
|
|
149
|
+
user: "user";
|
|
150
150
|
}>;
|
|
151
151
|
}, z.core.$strict>;
|
|
152
152
|
}, z.core.$strict>;
|
|
@@ -306,8 +306,8 @@ export declare const ContextTransferResultSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
306
306
|
existingRequestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
307
307
|
}, z.core.$strict>, z.ZodObject<{
|
|
308
308
|
status: z.ZodEnum<{
|
|
309
|
-
unknown: "unknown";
|
|
310
309
|
transport_failure: "transport_failure";
|
|
310
|
+
unknown: "unknown";
|
|
311
311
|
}>;
|
|
312
312
|
operationId: z.ZodString;
|
|
313
313
|
requestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|