@byok-sdk/protocol 0.31.0 → 0.33.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/dist/agent-memory-projection.d.ts +229 -3
- package/dist/agent-memory.d.ts +79 -0
- package/dist/agent-memory.js +5 -0
- package/dist/agent-memory.js.map +1 -0
- package/dist/capability-constants.d.ts +20 -0
- package/dist/constants.d.ts +12 -0
- package/dist/constants.js +2 -2
- package/dist/constants.js.map +1 -1
- package/dist/failure-reason.d.ts +23 -0
- package/dist/http-api.d.ts +156 -12
- package/dist/index.d.ts +8 -8
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/messages.d.ts +481 -18
- package/dist/open-vocabulary.d.ts +5 -0
- package/dist/sealed-payload.d.ts +91 -19
- package/dist/sealed-split-table.d.ts +49 -3
- package/dist/version.d.ts +1 -1
- package/dist/wire-additions.d.ts +5 -4
- package/package.json +6 -2
- package/dist/task-assertion.d.ts +0 -28
package/dist/http-api.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { EnvelopeSchema } from './envelope';
|
|
3
2
|
/**
|
|
4
3
|
* HTTP-side request/response shapes for the reference server's auth and blob
|
|
5
4
|
* endpoints (M1 Part B). These are plain HTTP bodies, not wire envelopes —
|
|
@@ -33,6 +32,7 @@ export declare const PairResponseSchema: z.ZodObject<{
|
|
|
33
32
|
deviceId: z.ZodString;
|
|
34
33
|
accessToken: z.ZodString;
|
|
35
34
|
refreshHint: z.ZodOptional<z.ZodString>;
|
|
35
|
+
expiresIn: z.ZodOptional<z.ZodNumber>;
|
|
36
36
|
tenantId: z.ZodString;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
38
|
export type PairResponse = z.infer<typeof PairResponseSchema>;
|
|
@@ -53,8 +53,23 @@ export type TokenRequest = z.infer<typeof TokenRequestSchema>;
|
|
|
53
53
|
export declare const TokenResponseSchema: z.ZodObject<{
|
|
54
54
|
accessToken: z.ZodString;
|
|
55
55
|
expiresAt: z.ZodISODateTime;
|
|
56
|
+
expiresIn: z.ZodOptional<z.ZodNumber>;
|
|
56
57
|
}, z.core.$strip>;
|
|
57
58
|
export type TokenResponse = z.infer<typeof TokenResponseSchema>;
|
|
59
|
+
/**
|
|
60
|
+
* The one typed `401` body of `/byok/challenge` and `/byok/token`: the device
|
|
61
|
+
* id resolves to no registration (§6.3). Revocation deletes the registration,
|
|
62
|
+
* so an unknown device and a revoked one answer with this same body and stay
|
|
63
|
+
* indistinguishable. Every other `401` on these routes (bad signature, used
|
|
64
|
+
* or expired nonce) stays untyped, and a client must not read it as
|
|
65
|
+
* revocation.
|
|
66
|
+
*/
|
|
67
|
+
export declare const DEVICE_NOT_REGISTERED_CODE = "device_not_registered";
|
|
68
|
+
export declare const DeviceNotRegisteredResponseSchema: z.ZodObject<{
|
|
69
|
+
error: z.ZodString;
|
|
70
|
+
code: z.ZodLiteral<"device_not_registered">;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
export type DeviceNotRegisteredResponse = z.infer<typeof DeviceNotRegisteredResponseSchema>;
|
|
58
73
|
/** The hosted default is byte-bounded independently; this caps protocol input before it reaches a handler. */
|
|
59
74
|
export declare const PRESENCE_DETAIL_MAX_LENGTH = 512;
|
|
60
75
|
export declare const PRESENCE_RUNTIME_VERSION_MAX_LENGTH = 128;
|
|
@@ -78,6 +93,51 @@ export declare const PresencePublishRequestSchema: z.ZodObject<{
|
|
|
78
93
|
}>;
|
|
79
94
|
version: z.ZodOptional<z.ZodString>;
|
|
80
95
|
authPresent: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
steer: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
+
resume: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
+
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
messageDraft: z.ZodOptional<z.ZodBoolean>;
|
|
102
|
+
toolAuthorizationAuto: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
durablePi: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
preparedLane: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
+
isolation: z.ZodOptional<z.ZodObject<{
|
|
106
|
+
userContext: z.ZodOptional<z.ZodBoolean>;
|
|
107
|
+
userMcpServers: z.ZodOptional<z.ZodBoolean>;
|
|
108
|
+
sessionPersistence: z.ZodOptional<z.ZodBoolean>;
|
|
109
|
+
}, z.core.$strip>>;
|
|
110
|
+
}, z.core.$strip>>;
|
|
111
|
+
versionPolicy: z.ZodOptional<z.ZodObject<{
|
|
112
|
+
state: z.ZodEnum<{
|
|
113
|
+
allow: "allow";
|
|
114
|
+
block: "block";
|
|
115
|
+
warn: "warn";
|
|
116
|
+
}>;
|
|
117
|
+
qualifiedVersion: z.ZodOptional<z.ZodString>;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
}, z.core.$strip>>>;
|
|
120
|
+
runtimeUnavailable: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
121
|
+
cause: z.ZodUnion<readonly [z.ZodEnum<{
|
|
122
|
+
acp_unavailable: "acp_unavailable";
|
|
123
|
+
app_server_unavailable: "app_server_unavailable";
|
|
124
|
+
environment_unavailable: "environment_unavailable";
|
|
125
|
+
none_available: "none_available";
|
|
126
|
+
not_executable: "not_executable";
|
|
127
|
+
not_installed: "not_installed";
|
|
128
|
+
platform_unsupported: "platform_unsupported";
|
|
129
|
+
probe_failed: "probe_failed";
|
|
130
|
+
probe_timeout: "probe_timeout";
|
|
131
|
+
runtime_not_allowed: "runtime_not_allowed";
|
|
132
|
+
runtime_not_configured: "runtime_not_configured";
|
|
133
|
+
version_blocked: "version_blocked";
|
|
134
|
+
}>, z.ZodString]>;
|
|
135
|
+
retryable: z.ZodBoolean;
|
|
136
|
+
id: z.ZodEnum<{
|
|
137
|
+
claude: "claude";
|
|
138
|
+
codex: "codex";
|
|
139
|
+
pi: "pi";
|
|
140
|
+
}>;
|
|
81
141
|
}, z.core.$strip>>>;
|
|
82
142
|
}, z.core.$strip>;
|
|
83
143
|
export type PresencePublishRequest = z.infer<typeof PresencePublishRequestSchema>;
|
|
@@ -154,9 +214,20 @@ export type EventsPollResponse = z.infer<typeof EventsPollResponseSchema>;
|
|
|
154
214
|
export declare const MAX_MESSAGES_PER_BATCH = 256;
|
|
155
215
|
/** Request body ceiling for `POST /byok/messages`; the cloud answers 413 above it, so the client chunks its drain by it. */
|
|
156
216
|
export declare const MESSAGES_SEND_MAX_BODY_BYTES: number;
|
|
157
|
-
/**
|
|
217
|
+
/**
|
|
218
|
+
* The batch frame only (#1121). Each entry must speak this wire major and
|
|
219
|
+
* carry the UUID its outcome is correlated by; everything else is decoded per
|
|
220
|
+
* entry with `parseMessage`, so one invalid envelope is answered
|
|
221
|
+
* `rejected: payload_invalid` on its own instead of failing every envelope in
|
|
222
|
+
* the batch — the same split as `EventsPollResponseSchema.events` (#386) on
|
|
223
|
+
* the receive side. A different `v` still fails the whole request: the wire
|
|
224
|
+
* major belongs to the sender, which could not read this version's outcomes.
|
|
225
|
+
*/
|
|
158
226
|
export declare const MessagesSendRequestSchema: z.ZodObject<{
|
|
159
|
-
messages: z.ZodArray<
|
|
227
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
228
|
+
v: z.ZodLiteral<4>;
|
|
229
|
+
id: z.ZodUUID;
|
|
230
|
+
}, z.core.$loose>>;
|
|
160
231
|
}, z.core.$strip>;
|
|
161
232
|
export type MessagesSendRequest = z.infer<typeof MessagesSendRequestSchema>;
|
|
162
233
|
/**
|
|
@@ -620,7 +691,7 @@ export declare const InputPreparationStatusQuerySchema: z.ZodObject<{
|
|
|
620
691
|
profileRevision: z.ZodString;
|
|
621
692
|
}, z.core.$strict>;
|
|
622
693
|
export type InputPreparationStatusQuery = z.infer<typeof InputPreparationStatusQuerySchema>;
|
|
623
|
-
export declare const AgentMemoryProjectionCommitRequestSchema: z.ZodObject<{
|
|
694
|
+
export declare const AgentMemoryProjectionCommitRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
624
695
|
taskId: z.ZodString;
|
|
625
696
|
agentRef: z.ZodObject<{
|
|
626
697
|
agentId: z.ZodString;
|
|
@@ -642,15 +713,84 @@ export declare const AgentMemoryProjectionCommitRequestSchema: z.ZodObject<{
|
|
|
642
713
|
redactedByteCount: z.ZodNumber;
|
|
643
714
|
redactedBytes: z.ZodString;
|
|
644
715
|
}, z.core.$strict>;
|
|
645
|
-
|
|
716
|
+
sealed: z.ZodOptional<z.ZodNever>;
|
|
717
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
718
|
+
taskId: z.ZodString;
|
|
719
|
+
agentRef: z.ZodObject<{
|
|
720
|
+
agentId: z.ZodString;
|
|
721
|
+
profileRevision: z.ZodString;
|
|
722
|
+
}, z.core.$strict>;
|
|
723
|
+
sessionRef: z.ZodString;
|
|
724
|
+
runtimeId: z.ZodEnum<{
|
|
725
|
+
claude: "claude";
|
|
726
|
+
codex: "codex";
|
|
727
|
+
pi: "pi";
|
|
728
|
+
}>;
|
|
729
|
+
grantRef: z.ZodString;
|
|
730
|
+
writerEpoch: z.ZodNumber;
|
|
731
|
+
sourceSeq: z.ZodNumber;
|
|
732
|
+
mutationId: z.ZodUUID;
|
|
733
|
+
policyRevision: z.ZodString;
|
|
734
|
+
sealed: z.ZodObject<{
|
|
735
|
+
v: z.ZodLiteral<1>;
|
|
736
|
+
suite: z.ZodLiteral<"byok-sealed-v1.hkdf-sha256.aes-256-gcm">;
|
|
737
|
+
category: z.ZodLiteral<"memory-projection">;
|
|
738
|
+
scope: z.ZodObject<{
|
|
739
|
+
id: z.ZodString;
|
|
740
|
+
epoch: z.ZodNumber;
|
|
741
|
+
keyId: z.ZodString;
|
|
742
|
+
}, z.core.$strict>;
|
|
743
|
+
chainHead: z.ZodObject<{
|
|
744
|
+
seq: z.ZodNumber;
|
|
745
|
+
hash: z.ZodString;
|
|
746
|
+
}, z.core.$strict>;
|
|
747
|
+
sender: z.ZodString;
|
|
748
|
+
salt: z.ZodString;
|
|
749
|
+
nonce: z.ZodString;
|
|
750
|
+
paddedLength: z.ZodNumber;
|
|
751
|
+
contentMac: z.ZodString;
|
|
752
|
+
ciphertext: z.ZodOptional<z.ZodString>;
|
|
753
|
+
ciphertextRef: z.ZodOptional<z.ZodObject<{
|
|
754
|
+
blobId: z.ZodString;
|
|
755
|
+
contentHash: z.ZodString;
|
|
756
|
+
size: z.ZodNumber;
|
|
757
|
+
contentType: z.ZodString;
|
|
758
|
+
}, z.core.$strict>>;
|
|
759
|
+
}, z.core.$strict>;
|
|
760
|
+
snapshot: z.ZodOptional<z.ZodNever>;
|
|
761
|
+
}, z.core.$strict>]>;
|
|
646
762
|
export type AgentMemoryProjectionCommitRequest = z.infer<typeof AgentMemoryProjectionCommitRequestSchema>;
|
|
647
|
-
export declare const AgentMemoryProjectionCommitResponseSchema: z.ZodObject<{
|
|
763
|
+
export declare const AgentMemoryProjectionCommitResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
764
|
+
taskId: z.ZodString;
|
|
765
|
+
agentRef: z.ZodObject<{
|
|
766
|
+
agentId: z.ZodString;
|
|
767
|
+
profileRevision: z.ZodString;
|
|
768
|
+
}, z.core.$strict>;
|
|
769
|
+
sessionRef: z.ZodString;
|
|
770
|
+
runtimeId: z.ZodEnum<{
|
|
771
|
+
claude: "claude";
|
|
772
|
+
codex: "codex";
|
|
773
|
+
pi: "pi";
|
|
774
|
+
}>;
|
|
775
|
+
grantRef: z.ZodString;
|
|
776
|
+
writerEpoch: z.ZodNumber;
|
|
777
|
+
sourceSeq: z.ZodNumber;
|
|
778
|
+
mutationId: z.ZodUUID;
|
|
779
|
+
policyRevision: z.ZodString;
|
|
648
780
|
outcome: z.ZodEnum<{
|
|
649
781
|
accepted: "accepted";
|
|
650
782
|
idempotent: "idempotent";
|
|
651
783
|
}>;
|
|
652
784
|
tenantId: z.ZodString;
|
|
653
785
|
deviceId: z.ZodString;
|
|
786
|
+
redactedHash: z.ZodString;
|
|
787
|
+
redactedByteCount: z.ZodNumber;
|
|
788
|
+
metering: z.ZodObject<{
|
|
789
|
+
meteringReceiptId: z.ZodUUID;
|
|
790
|
+
acceptedRedactedBytes: z.ZodNumber;
|
|
791
|
+
recordedAt: z.ZodISODateTime;
|
|
792
|
+
}, z.core.$strict>;
|
|
793
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
654
794
|
taskId: z.ZodString;
|
|
655
795
|
agentRef: z.ZodObject<{
|
|
656
796
|
agentId: z.ZodString;
|
|
@@ -667,14 +807,20 @@ export declare const AgentMemoryProjectionCommitResponseSchema: z.ZodObject<{
|
|
|
667
807
|
sourceSeq: z.ZodNumber;
|
|
668
808
|
mutationId: z.ZodUUID;
|
|
669
809
|
policyRevision: z.ZodString;
|
|
670
|
-
|
|
671
|
-
|
|
810
|
+
outcome: z.ZodEnum<{
|
|
811
|
+
accepted: "accepted";
|
|
812
|
+
idempotent: "idempotent";
|
|
813
|
+
}>;
|
|
814
|
+
tenantId: z.ZodString;
|
|
815
|
+
deviceId: z.ZodString;
|
|
816
|
+
contentMac: z.ZodString;
|
|
817
|
+
paddedLength: z.ZodNumber;
|
|
672
818
|
metering: z.ZodObject<{
|
|
673
819
|
meteringReceiptId: z.ZodUUID;
|
|
674
|
-
|
|
820
|
+
acceptedPaddedBytes: z.ZodNumber;
|
|
675
821
|
recordedAt: z.ZodISODateTime;
|
|
676
822
|
}, z.core.$strict>;
|
|
677
|
-
}, z.core.$strict>;
|
|
823
|
+
}, z.core.$strict>]>;
|
|
678
824
|
export type AgentMemoryProjectionCommitResponse = z.infer<typeof AgentMemoryProjectionCommitResponseSchema>;
|
|
679
825
|
/** `POST /byok/pair` — one-time device pairing (§6). */
|
|
680
826
|
export declare const BYOK_PAIR_PATH = "/byok/pair";
|
|
@@ -702,8 +848,6 @@ export declare function byokInputPreparationStatusPath(requestId: string): strin
|
|
|
702
848
|
export declare const BYOK_AGENT_MEMORY_PROJECTIONS_PATH = "/byok/agent-memory-projections";
|
|
703
849
|
/** `PUT /byok/presence` — presence heartbeat. */
|
|
704
850
|
export declare const BYOK_PRESENCE_PATH = "/byok/presence";
|
|
705
|
-
/** `POST /byok/activity` — activity-tail append. */
|
|
706
|
-
export declare const BYOK_ACTIVITY_PATH = "/byok/activity";
|
|
707
851
|
/** `GET /byok/board` — coordination board list/poll. */
|
|
708
852
|
export declare const BYOK_BOARD_PATH = "/byok/board";
|
|
709
853
|
/** `GET /byok/board/stream` — coordination board SSE. */
|
package/dist/index.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ export { WIRE_ADDITIONS, requiredReceiverCapabilities } from './wire-additions';
|
|
|
6
6
|
export type { WireAddition } from './wire-additions';
|
|
7
7
|
export { BlobRefSchema, CONTENT_HASH_RE } from './blob';
|
|
8
8
|
export type { BlobRef } from './blob';
|
|
9
|
-
export { SEALED_DECLINE_CODES, SEALED_INLINE_MAX_PADDED_LENGTH, SEALED_PAYLOAD_CATEGORIES, SEALED_PAYLOAD_MAX_CONTENT_LENGTH, SEALED_PAYLOAD_MAX_PADDED_LENGTH, SEALED_PAYLOAD_SUITE,
|
|
10
|
-
export type { SealedDeclineCode, SealedDigestRule, SealableMessageType, SealedPayload, SealedPayloadCategory,
|
|
9
|
+
export { SEALED_DECLINE_CODES, SEALED_INLINE_MAX_PADDED_LENGTH, SEALED_PAYLOAD_CATEGORIES, SEALED_PAYLOAD_MAX_CONTENT_LENGTH, SEALED_PAYLOAD_MAX_PADDED_LENGTH, SEALED_PAYLOAD_SUITE, SEALED_PAYLOAD_VERSION, SEALED_SPLIT_TABLE, SEALED_TASK_PLAIN_CODES, SealedPayloadSchema, SealedTaskInputSchema, SealedTaskOutputSchema, TaskSealingSchema, isSealableMessageType, isSealedPayload, isSealedTaskPlainOutput, sealedAgentMessageMaxContentLength, sealedBase64UrlByteLength, sealedMovedFields, sealedPayloadPaddedLength, } from './sealed-payload';
|
|
10
|
+
export type { SealedDeclineCode, SealedDigestRule, SealableMessageType, SealedPayload, SealedPayloadCategory, SealedSplitEntry, TaskSealing, } from './sealed-payload';
|
|
11
11
|
export { PROVIDER_MODEL_CAPABILITIES, ProviderProfileRefSchema, ProviderProfileRevisionSchema, ProviderProfileHashSchema, ProviderModelCapabilitySchema, ProviderProfileBindingSchema, } from './provider-profile-binding';
|
|
12
12
|
export type { ProviderProfileRef, ProviderProfileRevision, ProviderProfileHash, ProviderModelCapability, ProviderProfileBinding, } from './provider-profile-binding';
|
|
13
13
|
export { PROVIDER_SECRET_SEALING_KEY_REGISTER_OPERATION, PROVIDER_PROVISIONING_OPERATIONS, PROVIDER_PROVISIONING_OPERATION_GENERATION_MAXIMUM, PROVIDER_PROVISIONING_REJECTION_CODES, PROVIDER_PROVISIONING_HOST_TERMINAL_CODES, PROVIDER_PROVISIONING_DISPOSITIONS, PROVIDER_PROVISIONING_KEY_CHECK_RESULTS, ProviderProvisioningAvailablePayloadSchema, ProviderProvisioningKeyCheckResultSchema, ProviderProvisioningKeyCheckSchema, ProviderProvisioningOperationSchema, ProviderProvisioningOperationGenerationSchema, ProviderProvisioningOperationDigestSchema, ProviderProvisioningRejectionCodeSchema, ProviderProvisioningProviderStatusSchema, ProviderProvisioningCompletionSchema, ProviderProvisioningDispositionSchema, ProviderProvisioningReadbackSchema, } from './provider-provisioning';
|
|
@@ -22,23 +22,23 @@ export { AGENT_HOME_PROJECTION_MAX_BYTES, AGENT_HOME_PROJECTION_PROFILE_REVISION
|
|
|
22
22
|
export type { AgentHomeProjectionProfileRevision, AgentHomeProjectionHash, AgentHomeProjectionOutcome, AgentHomeProjectionValue, } from './agent-home-projection';
|
|
23
23
|
export { InputPreparationContentHashSchema, InputPreparationPolicyRevisionSchema, InputPreparationProfileIdSchema, InputPreparationSourceSchema, InputPreparationModelCostSchema, InputPreparationModelSchema, InputPreparationOptionsSchema, InputPreparationSelectionSchema, InputPreparationPromptSnapshotSchema, InputPreparationUserMessageSchema, InputPreparationHostCanonicalAssistantMessageSchema, InputPreparationMessageSchema, InputPreparationContextDocumentSchema, InputPreparationStateSchema, InputPreparationReadinessReasonSchema, InputPreparationRuntimeIdentitySchema, InputPreparationCounterTargetSchema, InputPreparationAccountingPolicyRefSchema, InputPreparationCounterProviderEvidenceSchema, InputPreparationCounterEvidenceSchema, InputPreparationResidualValueClassSchema, InputPreparationResidualKeySchema, InputPreparationProjectionSchema, InputPreparationArtifactSummarySchema, InputPreparationBindingSchema, InputPreparationReceiptSummarySchema, InputPreparationReferenceSchema, InputPreparationOfferBindingSchema, InputPreparationRejectionReasonSchema, } from './input-preparation';
|
|
24
24
|
export type { InputPreparationSource, InputPreparationModel, InputPreparationOptions, InputPreparationSelection, InputPreparationMessage, InputPreparationContextDocument, InputPreparationState, InputPreparationReadinessReason, InputPreparationAccountingPolicyRef, InputPreparationResidualValueClass, InputPreparationRuntimeIdentity, InputPreparationReceiptSummary, InputPreparationOfferBinding, InputPreparationRejectionReason, } from './input-preparation';
|
|
25
|
-
export { AGENT_MEMORY_PROJECTION_MAX_REDACTED_BYTES, AGENT_MEMORY_PROJECTION_MAX_ORDERING_VALUE, AgentMemoryProjectionGrantRefSchema, AgentMemoryProjectionSessionRefSchema, AgentMemoryProjectionWriterEpochSchema, AgentMemoryProjectionSourceSeqSchema, AgentMemoryProjectionSnapshotSchema, AgentMemoryProjectionMeteringReceiptSchema, AgentMemoryProjectionMutationSchema, AgentMemoryProjectionReceiptSchema, AgentMemoryProjectionEraseResultSchema, agentMemoryProjectionBase64UrlByteLength, } from './agent-memory-projection';
|
|
26
|
-
export type { AgentMemoryProjectionGrantRef, AgentMemoryProjectionSessionRef, AgentMemoryProjectionWriterEpoch, AgentMemoryProjectionSourceSeq, AgentMemoryProjectionSnapshot, AgentMemoryProjectionMeteringReceipt, AgentMemoryProjectionMutation, AgentMemoryProjectionReceipt, AgentMemoryProjectionEraseResult, } from './agent-memory-projection';
|
|
25
|
+
export { AGENT_MEMORY_PROJECTION_MAX_REDACTED_BYTES, AGENT_MEMORY_PROJECTION_MAX_ORDERING_VALUE, AgentMemoryProjectionGrantRefSchema, AgentMemoryProjectionSessionRefSchema, AgentMemoryProjectionWriterEpochSchema, AgentMemoryProjectionSourceSeqSchema, AgentMemoryProjectionSnapshotSchema, AgentMemoryProjectionMeteringReceiptSchema, AgentMemoryProjectionMutationSchema, AgentMemoryProjectionPlainMutationSchema, AgentMemoryProjectionReceiptSchema, AgentMemoryProjectionPlainReceiptSchema, AgentMemoryProjectionEraseResultSchema, agentMemoryProjectionBase64UrlByteLength, } from './agent-memory-projection';
|
|
26
|
+
export type { AgentMemoryProjectionGrantRef, AgentMemoryProjectionSessionRef, AgentMemoryProjectionWriterEpoch, AgentMemoryProjectionSourceSeq, AgentMemoryProjectionSnapshot, AgentMemoryProjectionMeteringReceipt, AgentMemoryProjectionMutation, AgentMemoryProjectionPlainMutation, AgentMemoryProjectionSealedMutation, AgentMemoryProjectionReceipt, AgentMemoryProjectionPlainReceipt, AgentMemoryProjectionSealedReceipt, AgentMemoryProjectionSealedMeteringReceipt, AgentMemoryProjectionEraseResult, } from './agent-memory-projection';
|
|
27
27
|
export { TerminalProjectionContractSchema, TerminalProjectionSelectionSchema, ResultDocumentSchemaSchema, } from './terminal-projection';
|
|
28
28
|
export type { TerminalProjectionSelection } from './terminal-projection';
|
|
29
29
|
export { RESULT_SCHEMA_MAX_BYTES, RESULT_OUTCOME_MAX_BYTES, RESULT_SCHEMA_MAX_DEPTH, RESULT_JSON_MAX_DEPTH, RESULT_ISSUES_MAX_COUNT, RESULT_ISSUES_MAX_BYTES, RESULT_SCHEMA_KEYWORDS, RESULT_SCHEMA_INSTANCE_TYPES, checkResultSchema, validateResultOutcome, } from './result-schema';
|
|
30
30
|
export type { ResultSchema, ResultSchemaKeyword, ResultSchemaInstanceType, ResultIssue, ResultDocumentFailureReason, ResultSchemaCheck, ResultOutcomeCheck, } from './result-schema';
|
|
31
31
|
export { TASK_STATES, TASK_TRANSITIONS, canTransition } from './task-state';
|
|
32
32
|
export type { TaskState } from './task-state';
|
|
33
|
-
export { MESSAGE_TYPES, MESSAGE_PAYLOAD_SCHEMAS, SERVER_TO_DAEMON_TYPES, DAEMON_TO_SERVER_TYPES, RuntimeIdSchema, ProtocolVersionNumberSchema, RuntimeInfoSchema, HarnessIdSchema, HarnessInfoSchema, HarnessInventorySchema, RuntimeCapabilitiesSchema, AgentRefSchema, AgentHomeProjectionAgentRefSchema, AGENT_REF_MAX_BYTES, DispatchSelectionSchema, ToolsetIdSchema, ConfiguredToolsetsSchema, RequiredToolsetsSchema, CONFIGURED_TOOLSETS_MAX_ITEMS, ConnHelloPayloadSchema, AgentHomeAccessSchema, AgentMemorySelectionSchema, SessionSelectionSchema, TaskOfferPayloadSchema, TaskOfferPlainPayloadSchema, TaskOfferSealedPayloadSchema, AgentEgressReliablePayloadSchema, AgentEgressAckPayloadSchema, AgentMessagePublishPayloadSchema, AgentMessageDraftPayloadSchema, AgentMessageDispositionPayloadSchema, AgentContentReadPayloadSchema, AgentContentReceiptPayloadSchema, AgentHomeProjectionPayloadSchema, AgentMemoryIntentAvailablePayloadSchema, AgentInputPreparationPayloadSchema, TaskApprovePayloadSchema, TaskRejectPayloadSchema, TaskCancelPayloadSchema, TaskSteerPayloadSchema, TaskSteerSealedPayloadSchema, TaskClaimPayloadSchema, OfferAdmissionTimingsSchema, OFFER_ADMISSION_MAX_DURATION_MS, TaskStartedPayloadSchema, TaskDeclinePayloadSchema, TaskProgressPayloadSchema, TaskArtifactPayloadSchema, TaskAwaitApprovalPayloadSchema, TaskCompletePayloadSchema, TaskFailPayloadSchema, RuntimeFailureClassSchema, TaskFailureSchema, TaskCancelledPayloadSchema, TaskApprovalResolvedPayloadSchema, RESULT_DOCUMENT_MAX_BYTES, checkResultDocument, TerminalInferenceUsageSchema, TerminalPreparedObservationSchema, TerminalAgentHomeProjectionSchema, TerminalAgentHomeMemoryChangeSchema, AGENT_HOME_MEMORY_DIGEST_MAX_FILES, AGENT_HOME_MEMORY_DIGEST_MAX_BYTES, AGENT_HOME_MEMORY_PATH_MAX_LENGTH, TERMINAL_INFERENCE_USAGE_MAX_TOKENS, TERMINAL_INFERENCE_USAGE_MAX_DURATION_MS, TERMINAL_INFERENCE_USAGE_PROVIDER_MAX_LENGTH, TERMINAL_INFERENCE_USAGE_CLIENT_VERSION_MAX_LENGTH, } from './messages';
|
|
34
|
-
export type { ResultDocumentCheck, MessageType, RuntimeId, RuntimeInfo, RuntimeCapabilities, AgentRef, AgentHomeProjectionAgentRef, DispatchSelection, ToolsetId, ConnHelloPayload, SessionSelection, TaskOfferPayload, TaskOfferPlainPayload, TaskOfferSealedPayload, TaskSteerSealedPayload, TaskCompleteSealedPayload, TaskFailSealedPayload, TaskDeclineSealedPayload, TaskCancelledSealedPayload, TaskProgressSealedPayload, TaskArtifactSealedPayload, TaskAwaitApprovalSealedPayload, AgentEgressReliablePayload, AgentEgressAckPayload, AgentMessagePublishPayload, AgentMessageDraftPayload, AgentMessageDispositionPayload, AgentContentReadPayload, AgentContentReceiptPayload, AgentHomeProjectionPayload, AgentMemoryIntentAvailablePayload, AgentInputPreparationPayload, TaskApprovePayload, TaskRejectPayload, TaskCancelPayload, TaskSteerPayload, TaskClaimPayload, OfferAdmissionTimings, TaskStartedPayload, TaskDeclinePayload, TaskProgressPayload, TaskArtifactPayload, TaskAwaitApprovalPayload, TaskCompletePayload, TaskFailPayload, RuntimeFailureClass, TaskFailure, TaskCancelledPayload, TaskApprovalResolvedPayload, TerminalInferenceUsage, TerminalPreparedObservation, TerminalAgentHomeProjection, TerminalAgentHomeMemoryChange, AgentHomeAccess, AgentMemorySelection, } from './messages';
|
|
33
|
+
export { MESSAGE_TYPES, MESSAGE_PAYLOAD_SCHEMAS, SERVER_TO_DAEMON_TYPES, DAEMON_TO_SERVER_TYPES, RuntimeIdSchema, ProtocolVersionNumberSchema, RuntimeInfoSchema, HarnessIdSchema, HarnessInfoSchema, HarnessInventorySchema, RuntimeCapabilitiesSchema, RuntimeVersionPolicyProjectionSchema, RuntimeUnavailableEntrySchema, AgentRefSchema, AgentHomeProjectionAgentRefSchema, AGENT_REF_MAX_BYTES, DispatchSelectionSchema, ToolsetIdSchema, ConfiguredToolsetsSchema, RequiredToolsetsSchema, CONFIGURED_TOOLSETS_MAX_ITEMS, ConnHelloPayloadSchema, AgentHomeAccessSchema, AgentMemorySelectionSchema, SessionSelectionSchema, TaskOfferPayloadSchema, TaskOfferPlainPayloadSchema, TaskOfferSealedPayloadSchema, AgentEgressReliablePayloadSchema, AgentEgressAckPayloadSchema, AgentMessagePublishPayloadSchema, AgentMessagePublishPlainPayloadSchema, AgentMessageDraftPayloadSchema, AgentMessageDispositionPayloadSchema, AgentMessageDispositionPlainPayloadSchema, AgentContentReadPayloadSchema, AgentContentReceiptPayloadSchema, AgentHomeProjectionPayloadSchema, AgentMemoryIntentAvailablePayloadSchema, AgentInputPreparationPayloadSchema, TaskApprovePayloadSchema, TaskRejectPayloadSchema, TaskCancelPayloadSchema, TaskSteerPayloadSchema, TaskSteerSealedPayloadSchema, TaskClaimPayloadSchema, OfferAdmissionTimingsSchema, OFFER_ADMISSION_MAX_DURATION_MS, TaskStartedPayloadSchema, TaskDeclinePayloadSchema, TaskProgressPayloadSchema, TaskArtifactPayloadSchema, TaskAwaitApprovalPayloadSchema, TaskCompletePayloadSchema, TaskFailPayloadSchema, RuntimeFailureClassSchema, TaskFailureSchema, readTaskFailure, readDeclineCode, readRuntimeUnavailableCause, TaskCancelledPayloadSchema, TaskApprovalResolvedPayloadSchema, RESULT_DOCUMENT_MAX_BYTES, checkResultDocument, TerminalInferenceUsageSchema, TerminalPreparedObservationSchema, TerminalAgentHomeProjectionSchema, TerminalAgentHomeMemoryChangeSchema, AGENT_HOME_MEMORY_DIGEST_MAX_FILES, AGENT_HOME_MEMORY_DIGEST_MAX_BYTES, AGENT_HOME_MEMORY_PATH_MAX_LENGTH, TERMINAL_INFERENCE_USAGE_MAX_TOKENS, TERMINAL_INFERENCE_USAGE_MAX_DURATION_MS, TERMINAL_INFERENCE_USAGE_PROVIDER_MAX_LENGTH, TERMINAL_INFERENCE_USAGE_CLIENT_VERSION_MAX_LENGTH, } from './messages';
|
|
34
|
+
export type { ResultDocumentCheck, MessageType, RuntimeId, RuntimeInfo, RuntimeCapabilities, RuntimeVersionPolicyProjection, RuntimeUnavailableEntry, AgentRef, AgentHomeProjectionAgentRef, DispatchSelection, ToolsetId, ConnHelloPayload, SessionSelection, TaskOfferPayload, TaskOfferPlainPayload, TaskOfferSealedPayload, TaskSteerSealedPayload, TaskCompleteSealedPayload, TaskFailSealedPayload, TaskDeclineSealedPayload, TaskCancelledSealedPayload, TaskProgressSealedPayload, TaskArtifactSealedPayload, TaskAwaitApprovalSealedPayload, AgentEgressReliablePayload, AgentEgressAckPayload, AgentMessagePublishPayload, AgentMessagePublishPlainPayload, AgentMessagePublishSealedPayload, AgentMessageDraftPayload, AgentMessageDispositionPayload, AgentMessageDispositionPlainPayload, AgentMessageDispositionSealedPayload, AgentContentReadPayload, AgentContentReceiptPayload, AgentHomeProjectionPayload, AgentMemoryIntentAvailablePayload, AgentInputPreparationPayload, TaskApprovePayload, TaskRejectPayload, TaskCancelPayload, TaskSteerPayload, TaskClaimPayload, OfferAdmissionTimings, TaskStartedPayload, TaskDeclinePayload, TaskDeclineCode, TaskDeclineCodeReading, RuntimeUnavailableCauseReading, TaskProgressPayload, TaskArtifactPayload, TaskAwaitApprovalPayload, TaskCompletePayload, TaskFailPayload, RuntimeFailureClass, RuntimeQuotaScope, TaskFailure, TaskFailureReading, TaskCancelledPayload, TaskApprovalResolvedPayload, TerminalInferenceUsage, TerminalPreparedObservation, TerminalAgentHomeProjection, TerminalAgentHomeMemoryChange, AgentHomeAccess, AgentMemorySelection, } from './messages';
|
|
35
35
|
export { EnvelopeSchema, isServerToDaemonType } from './envelope';
|
|
36
36
|
export type { Envelope } from './envelope';
|
|
37
37
|
export { ProtocolError, EnvelopeParseError, UnknownMessageTypeError, EnvelopeValidationError, } from './errors';
|
|
38
38
|
export { encodeEnvelope, decodeEnvelope, createEnvelope, parseMessage } from './codec';
|
|
39
39
|
export type { CreateEnvelopeOptions } from './codec';
|
|
40
|
-
export { PairRequestSchema, PairResponseTenantIdSchema, PAIR_RESPONSE_TENANT_ID_MAX_LENGTH, PairResponseSchema, ChallengeRequestSchema, ChallengeResponseSchema, TokenRequestSchema, TokenResponseSchema, PresencePublishRequestSchema, CreateBlobRequestSchema, CreateBlobResponseSchema, BlobDownloadUrlResponseSchema, EventsPollQuerySchema, ActivityIngressSchema, MessageSendOutcomeSchema, OUTBOUND_REFUSAL_REASONS, EventsPollResponseSchema, MessagesSendRequestSchema, MessagesSendResponseSchema, AgentHomeProjectionCompletionRequestSchema, AgentHomeProjectionStatusSchema, AgentHomeProjectionReadbackSchema, AgentMemoryProjectionCommitRequestSchema, AgentMemoryProjectionCommitResponseSchema, MAX_MESSAGES_PER_BATCH, MESSAGES_SEND_MAX_BODY_BYTES, BYOK_PAIR_PATH, BYOK_CHALLENGE_PATH, BYOK_TOKEN_PATH, BYOK_CAPABILITIES_PATH, BYOK_EVENTS_PATH, BYOK_MESSAGES_PATH, BYOK_AGENT_HOME_PROJECTIONS_PATH, BYOK_AGENT_HOME_PROJECTION_COMPLETION_ROUTE, byokAgentHomeProjectionCompletionPath, BYOK_AGENT_MEMORY_PROJECTIONS_PATH, BYOK_PRESENCE_PATH,
|
|
41
|
-
export type { PairRequest, PairResponse, ChallengeRequest, ChallengeResponse, TokenRequest, TokenResponse, PresencePublishRequest, CreateBlobRequest, CreateBlobResponse, BlobDownloadUrlResponse, EventsPollQuery, ActivityIngress, MessageSendOutcome, OutboundRefusalReason, EventsPollResponse, MessagesSendRequest, MessagesSendResponse, AgentHomeProjectionCompletionRequest, AgentHomeProjectionStatus, AgentHomeProjectionReadback, AgentMemoryProjectionCommitRequest, AgentMemoryProjectionCommitResponse, InputPreparationCompletionRequest, InputPreparationStatus, InputPreparationReadback, InputPreparationStatusQuery, } from './http-api';
|
|
40
|
+
export { PairRequestSchema, PairResponseTenantIdSchema, PAIR_RESPONSE_TENANT_ID_MAX_LENGTH, PairResponseSchema, ChallengeRequestSchema, ChallengeResponseSchema, TokenRequestSchema, TokenResponseSchema, DEVICE_NOT_REGISTERED_CODE, DeviceNotRegisteredResponseSchema, PresencePublishRequestSchema, CreateBlobRequestSchema, CreateBlobResponseSchema, BlobDownloadUrlResponseSchema, EventsPollQuerySchema, ActivityIngressSchema, MessageSendOutcomeSchema, OUTBOUND_REFUSAL_REASONS, EventsPollResponseSchema, MessagesSendRequestSchema, MessagesSendResponseSchema, AgentHomeProjectionCompletionRequestSchema, AgentHomeProjectionStatusSchema, AgentHomeProjectionReadbackSchema, AgentMemoryProjectionCommitRequestSchema, AgentMemoryProjectionCommitResponseSchema, MAX_MESSAGES_PER_BATCH, MESSAGES_SEND_MAX_BODY_BYTES, BYOK_PAIR_PATH, BYOK_CHALLENGE_PATH, BYOK_TOKEN_PATH, BYOK_CAPABILITIES_PATH, BYOK_EVENTS_PATH, BYOK_MESSAGES_PATH, BYOK_AGENT_HOME_PROJECTIONS_PATH, BYOK_AGENT_HOME_PROJECTION_COMPLETION_ROUTE, byokAgentHomeProjectionCompletionPath, BYOK_AGENT_MEMORY_PROJECTIONS_PATH, BYOK_PRESENCE_PATH, BYOK_BOARD_PATH, BYOK_BOARD_STREAM_PATH, BYOK_BOARD_CLAIM_ROUTE, BYOK_BOARD_UNCLAIM_ROUTE, BYOK_BOARD_STATUS_ROUTE, BYOK_RECORDS_PATH, BYOK_RECORD_ROUTE, byokRecordPath, BYOK_E2EE_MEMBER_KEY_PATH, BYOK_E2EE_CHAIN_PATH, BYOK_E2EE_KEY_PACKAGES_PATH, BYOK_E2EE_PAIRING_MAC_PATH, BYOK_SKILL_PACKS_PATH, BYOK_SKILL_PACK_FILE_ROUTE, byokSkillPackFilePath, BYOK_BLOBS_PATH, BYOK_BLOB_FINALIZE_ROUTE, BYOK_BLOB_URL_ROUTE, BYOK_BLOB_CONTENT_ROUTE, byokBlobFinalizePath, byokBlobUrlPath, byokBlobContentPath, BYOK_INPUT_PREPARATIONS_PATH, BYOK_INPUT_PREPARATION_COMPLETION_ROUTE, BYOK_INPUT_PREPARATION_STATUS_ROUTE, byokInputPreparationCompletionPath, byokInputPreparationStatusPath, InputPreparationCompletionRequestSchema, InputPreparationStatusSchema, InputPreparationReadbackSchema, InputPreparationStatusQuerySchema, } from './http-api';
|
|
41
|
+
export type { PairRequest, PairResponse, ChallengeRequest, ChallengeResponse, TokenRequest, TokenResponse, DeviceNotRegisteredResponse, PresencePublishRequest, CreateBlobRequest, CreateBlobResponse, BlobDownloadUrlResponse, EventsPollQuery, ActivityIngress, MessageSendOutcome, OutboundRefusalReason, EventsPollResponse, MessagesSendRequest, MessagesSendResponse, AgentHomeProjectionCompletionRequest, AgentHomeProjectionStatus, AgentHomeProjectionReadback, AgentMemoryProjectionCommitRequest, AgentMemoryProjectionCommitResponse, InputPreparationCompletionRequest, InputPreparationStatus, InputPreparationReadback, InputPreparationStatusQuery, } from './http-api';
|
|
42
42
|
export type { HarnessId, HarnessInfo } from './messages';
|
|
43
43
|
export { CUSTOM_HARNESS_CAPABILITY } from './version';
|
|
44
44
|
export { PreparedAgentMemoryModeSchema, type PreparedAgentMemoryMode } from './input-preparation';
|