@nextera.one/axis-server-sdk 1.9.0 → 2.1.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 +52 -7
- package/dist/index.d.mts +337 -7
- package/dist/index.d.ts +337 -7
- package/dist/index.js +1718 -274
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1821 -373
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ Root exports are split into two groups:
|
|
|
44
44
|
You can also import the grouped namespaces directly from the package root:
|
|
45
45
|
|
|
46
46
|
```ts
|
|
47
|
-
import { core, crypto, engine, sensors } from
|
|
47
|
+
import { core, crypto, engine, sensors } from "@nextera.one/axis-server-sdk";
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
## Shared Core API
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
getSignTarget,
|
|
63
63
|
signFrame,
|
|
64
64
|
verifyFrameSignature,
|
|
65
|
-
} from
|
|
65
|
+
} from "@nextera.one/axis-server-sdk/core";
|
|
66
66
|
```
|
|
67
67
|
|
|
68
68
|
Notes:
|
|
@@ -81,10 +81,10 @@ import {
|
|
|
81
81
|
Intent,
|
|
82
82
|
IntentRouter,
|
|
83
83
|
AxisEffect,
|
|
84
|
-
} from
|
|
85
|
-
import type { AxisBinaryFrame } from
|
|
84
|
+
} from "@nextera.one/axis-server-sdk";
|
|
85
|
+
import type { AxisBinaryFrame } from "@nextera.one/axis-server-sdk/core";
|
|
86
86
|
|
|
87
|
-
@Handler(
|
|
87
|
+
@Handler("system")
|
|
88
88
|
export class SystemHandler {
|
|
89
89
|
constructor(private readonly router: IntentRouter) {}
|
|
90
90
|
|
|
@@ -92,17 +92,62 @@ export class SystemHandler {
|
|
|
92
92
|
this.router.registerHandler(this);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
@Intent(
|
|
95
|
+
@Intent("ping", { frame: true })
|
|
96
96
|
async ping(frame: AxisBinaryFrame): Promise<AxisEffect> {
|
|
97
97
|
return {
|
|
98
98
|
ok: true,
|
|
99
|
-
effect:
|
|
99
|
+
effect: "PONG",
|
|
100
100
|
body: frame.body,
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
+
## Intent Chains And Observers
|
|
107
|
+
|
|
108
|
+
The server SDK now supports first-class chain metadata and decorator-driven observer discovery.
|
|
109
|
+
|
|
110
|
+
```ts
|
|
111
|
+
import {
|
|
112
|
+
AxisChainExecutor,
|
|
113
|
+
Chain,
|
|
114
|
+
Handler,
|
|
115
|
+
Intent,
|
|
116
|
+
Observer,
|
|
117
|
+
type AxisIntentObserver,
|
|
118
|
+
type AxisObserverContext,
|
|
119
|
+
} from "@nextera.one/axis-server-sdk";
|
|
120
|
+
|
|
121
|
+
@Observer({
|
|
122
|
+
name: "openlogs",
|
|
123
|
+
events: ["chain.completed", "step.failed"],
|
|
124
|
+
})
|
|
125
|
+
export class OpenLogsObserver implements AxisIntentObserver {
|
|
126
|
+
readonly name = "openlogs";
|
|
127
|
+
|
|
128
|
+
observe(context: AxisObserverContext) {
|
|
129
|
+
console.log(context.event, context.chainId, context.stepId);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@Handler("invoice")
|
|
134
|
+
@Observer(OpenLogsObserver)
|
|
135
|
+
export class InvoiceHandler {
|
|
136
|
+
@Intent("create")
|
|
137
|
+
@Chain({ mode: "strict", proofRequired: true })
|
|
138
|
+
async create(body: Uint8Array) {
|
|
139
|
+
return Buffer.from(body);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
Runtime helpers:
|
|
145
|
+
|
|
146
|
+
- `ObserverDiscoveryService` registers all `@Observer({...})` providers at bootstrap.
|
|
147
|
+
- `IntentRouter.getObservers(intent)` returns the observer bindings discovered for an intent.
|
|
148
|
+
- `IntentRouter.getChainConfig(intent)` returns the normalized chain metadata for an intent.
|
|
149
|
+
- `AxisChainExecutor.execute(chainEnvelope)` runs dependency-aware chains in `strict`, `best_effort`, `parallel`, or `atomic` mode.
|
|
150
|
+
|
|
106
151
|
## Versioning
|
|
107
152
|
|
|
108
153
|
The server SDK may include additional server-only exports beyond the shared `./core` surface. For code intended to work across both client and server SDKs, prefer importing protocol primitives from `./core`.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,144 @@
|
|
|
1
|
-
import { ModuleRef, DiscoveryService, MetadataScanner, Reflector } from '@nestjs/core';
|
|
2
1
|
import { A as AxisFrame$2 } from './index-1uEwnW-w.mjs';
|
|
3
2
|
export { a as AxisBinaryFrame, b as AxisError, c as AxisFrameZ, d as computeReceiptHash, e as computeSignaturePayload, i as core, f as decodeFrame, g as encodeFrame, h as generateEd25519KeyPair, j as getSignTarget, s as sha256, k as signFrame, v as verifyFrameSignature } from './index-1uEwnW-w.mjs';
|
|
3
|
+
import { ModuleRef, DiscoveryService, Reflector, MetadataScanner } from '@nestjs/core';
|
|
4
4
|
import { PROOF_LOOM, TLV_LOOM_PRESENCE_ID, TLV_LOOM_THREAD_HASH, TLV_LOOM_WRIT } from '@nextera.one/axis-protocol';
|
|
5
5
|
export { AXIS_MAGIC, AXIS_VERSION, TLV as AxisTlvType, BodyProfile, ERR_BAD_SIGNATURE, ERR_CONTRACT_VIOLATION, ERR_INVALID_PACKET, ERR_REPLAY_DETECTED, FLAG_BODY_TLV, FLAG_CHAIN_REQ, FLAG_HAS_WITNESS, MAX_BODY_LEN, MAX_FRAME_LEN, MAX_HDR_LEN, MAX_SIG_LEN, NCERT_ALG, NCERT_EXP, NCERT_ISSUER_KID, NCERT_KID, NCERT_NBF, NCERT_NODE_ID, NCERT_PAYLOAD, NCERT_PUB, NCERT_SCOPE, NCERT_SIG, PROOF_CAPSULE, PROOF_JWT, PROOF_LOOM, PROOF_MTLS, PROOF_NONE, PROOF_WITNESS, ProofType, TLV, TLV_ACTOR_ID, TLV_AUD, TLV_BODY_ARR, TLV_BODY_OBJ, TLV_CAPSULE, TLV_EFFECT, TLV_ERROR_CODE, TLV_ERROR_MSG, TLV_INDEX, TLV_INTENT, TLV_KID, TLV_LOOM_PRESENCE_ID, TLV_LOOM_THREAD_HASH, TLV_LOOM_WRIT, TLV_NODE, TLV_NODE_CERT_HASH, TLV_NODE_KID, TLV_NONCE, TLV_OFFSET, TLV_OK, TLV_PID, TLV_LOOM_PRESENCE_ID as TLV_PRESENCE_ID, TLV_PREV_HASH, TLV_PROOF_REF, TLV_PROOF_TYPE, TLV_REALM, TLV_RECEIPT_HASH, TLV_RID, TLV_SHA256_CHUNK, TLV_LOOM_THREAD_HASH as TLV_THREAD_HASH, TLV_TRACE_ID, TLV_TS, TLV_UPLOAD_ID, TLV_LOOM_WRIT as TLV_WRIT, decodeArray, decodeObject, decodeTLVs, decodeTLVsList, decodeVarint, encodeTLVs, encodeVarint, varintLength } from '@nextera.one/axis-protocol';
|
|
6
|
-
import {
|
|
6
|
+
import { OnApplicationBootstrap, OnModuleInit } from '@nestjs/common';
|
|
7
7
|
import { ConfigService } from '@nestjs/config';
|
|
8
8
|
import * as z from 'zod';
|
|
9
9
|
|
|
10
|
+
type AxisExecutionMode = 'strict' | 'parallel' | 'best_effort' | 'atomic';
|
|
11
|
+
type AxisObserverEvent = 'intent.received' | 'intent.completed' | 'intent.failed' | 'chain.received' | 'chain.admitted' | 'chain.completed' | 'chain.failed' | 'chain.partial' | 'step.started' | 'step.completed' | 'step.failed' | 'step.blocked' | 'step.skipped' | 'signature.verified' | 'decryption.succeeded' | 'sensor.passed' | 'sensor.failed' | 'handler.completed' | 'proof.recorded';
|
|
12
|
+
interface AxisCapsuleRef {
|
|
13
|
+
capsuleId?: string;
|
|
14
|
+
scope?: string | string[];
|
|
15
|
+
scopeMode?: 'chain' | 'step' | 'chain+step';
|
|
16
|
+
proofRequired?: boolean;
|
|
17
|
+
metadata?: Record<string, unknown>;
|
|
18
|
+
}
|
|
19
|
+
interface AxisKeyExchangeRef {
|
|
20
|
+
profile?: string;
|
|
21
|
+
sessionId?: string;
|
|
22
|
+
clientKid?: string;
|
|
23
|
+
serverKid?: string;
|
|
24
|
+
algorithm?: string;
|
|
25
|
+
derivedKeyRef?: string;
|
|
26
|
+
required?: boolean;
|
|
27
|
+
metadata?: Record<string, unknown>;
|
|
28
|
+
}
|
|
29
|
+
interface AxisIntentEnvelope<TPayload = unknown> {
|
|
30
|
+
intent: string;
|
|
31
|
+
handler?: string;
|
|
32
|
+
payload: TPayload;
|
|
33
|
+
capsule?: AxisCapsuleRef;
|
|
34
|
+
keyExchange?: AxisKeyExchangeRef;
|
|
35
|
+
observerTags?: string[];
|
|
36
|
+
proofRequired?: boolean;
|
|
37
|
+
metadata?: Record<string, unknown>;
|
|
38
|
+
}
|
|
39
|
+
interface AxisChainStep<TInput = unknown> {
|
|
40
|
+
stepId: string;
|
|
41
|
+
intent: string;
|
|
42
|
+
handler?: string;
|
|
43
|
+
input?: TInput;
|
|
44
|
+
dependsOn?: string[];
|
|
45
|
+
onSuccess?: string[];
|
|
46
|
+
onFailure?: string[];
|
|
47
|
+
capsuleScope?: string | string[];
|
|
48
|
+
observerTags?: string[];
|
|
49
|
+
proofRequired?: boolean;
|
|
50
|
+
keyExchange?: AxisKeyExchangeRef;
|
|
51
|
+
metadata?: Record<string, unknown>;
|
|
52
|
+
}
|
|
53
|
+
interface AxisChainEncryption {
|
|
54
|
+
enabled?: boolean;
|
|
55
|
+
profile?: string;
|
|
56
|
+
keyExchange?: AxisKeyExchangeRef;
|
|
57
|
+
}
|
|
58
|
+
interface AxisChainEnvelope<TInput = unknown> {
|
|
59
|
+
chainId: string;
|
|
60
|
+
subject?: string;
|
|
61
|
+
issuer?: string;
|
|
62
|
+
issuedAtTps?: string | number;
|
|
63
|
+
expiresAtTps?: string | number;
|
|
64
|
+
mode: AxisExecutionMode;
|
|
65
|
+
signature?: string;
|
|
66
|
+
encryption?: AxisChainEncryption;
|
|
67
|
+
capsule?: AxisCapsuleRef;
|
|
68
|
+
keyExchange?: AxisKeyExchangeRef;
|
|
69
|
+
observerTags?: string[];
|
|
70
|
+
dynamic?: boolean;
|
|
71
|
+
metadata?: Record<string, unknown>;
|
|
72
|
+
steps: Array<AxisChainStep<TInput>>;
|
|
73
|
+
}
|
|
74
|
+
interface AxisChainRequest<TInput = unknown, TCapsule = Record<string, unknown>> {
|
|
75
|
+
envelope: AxisChainEnvelope<TInput>;
|
|
76
|
+
capsule?: TCapsule;
|
|
77
|
+
actorId?: string;
|
|
78
|
+
}
|
|
79
|
+
type AxisChainStepStatus = 'SUCCEEDED' | 'FAILED' | 'BLOCKED' | 'SKIPPED';
|
|
80
|
+
interface AxisChainStepResult<TOutput = unknown> {
|
|
81
|
+
stepId: string;
|
|
82
|
+
intent: string;
|
|
83
|
+
status: AxisChainStepStatus;
|
|
84
|
+
effect?: string;
|
|
85
|
+
output?: TOutput;
|
|
86
|
+
error?: string;
|
|
87
|
+
dependsOn?: string[];
|
|
88
|
+
startedAt: number;
|
|
89
|
+
finishedAt: number;
|
|
90
|
+
proofHash?: string;
|
|
91
|
+
observerTags?: string[];
|
|
92
|
+
metadata?: Record<string, unknown>;
|
|
93
|
+
}
|
|
94
|
+
type AxisChainStatus = 'SUCCEEDED' | 'FAILED' | 'PARTIAL';
|
|
95
|
+
interface AxisChainResult<TOutput = unknown> {
|
|
96
|
+
chainId: string;
|
|
97
|
+
mode: AxisExecutionMode;
|
|
98
|
+
status: AxisChainStatus;
|
|
99
|
+
completedSteps: number;
|
|
100
|
+
failedSteps: number;
|
|
101
|
+
blockedSteps: number;
|
|
102
|
+
skippedSteps: number;
|
|
103
|
+
startedAt: number;
|
|
104
|
+
finishedAt: number;
|
|
105
|
+
results: Array<AxisChainStepResult<TOutput>>;
|
|
106
|
+
rollback?: {
|
|
107
|
+
supported: boolean;
|
|
108
|
+
attempted: boolean;
|
|
109
|
+
reason?: string;
|
|
110
|
+
};
|
|
111
|
+
metadata?: Record<string, unknown>;
|
|
112
|
+
}
|
|
113
|
+
interface ChainOptions {
|
|
114
|
+
mode?: AxisExecutionMode;
|
|
115
|
+
allowPartial?: boolean;
|
|
116
|
+
dynamic?: boolean;
|
|
117
|
+
proofRequired?: boolean;
|
|
118
|
+
capsuleScope?: string | string[];
|
|
119
|
+
observerTags?: string[];
|
|
120
|
+
keyExchangeRequired?: boolean;
|
|
121
|
+
}
|
|
122
|
+
interface RegisteredChainConfig extends ChainOptions {
|
|
123
|
+
enabled: boolean;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
declare const CHAIN_METADATA_KEY = "axis:chain";
|
|
127
|
+
declare function Chain(options?: ChainOptions): MethodDecorator;
|
|
128
|
+
|
|
129
|
+
declare const CAPSULE_POLICY_METADATA_KEY = "axis:capsule:policy";
|
|
130
|
+
type CapsuleScopeMode = "all" | "any";
|
|
131
|
+
interface CapsulePolicyOptions {
|
|
132
|
+
required?: boolean;
|
|
133
|
+
scopes?: string | string[];
|
|
134
|
+
scopeMode?: CapsuleScopeMode;
|
|
135
|
+
intentBound?: boolean;
|
|
136
|
+
allowCapsuleRef?: boolean;
|
|
137
|
+
}
|
|
138
|
+
declare function CapsulePolicy(options?: CapsulePolicyOptions): ClassDecorator & MethodDecorator;
|
|
139
|
+
declare function normalizeCapsulePolicyOptions(options?: CapsulePolicyOptions): CapsulePolicyOptions;
|
|
140
|
+
declare function mergeCapsulePolicyOptions(base?: CapsulePolicyOptions, override?: CapsulePolicyOptions): CapsulePolicyOptions | undefined;
|
|
141
|
+
|
|
10
142
|
declare const HANDLER_METADATA_KEY = "axis:handler";
|
|
11
143
|
declare function Handler(intent?: string): ClassDecorator;
|
|
12
144
|
|
|
@@ -28,6 +160,7 @@ interface IntentRoute {
|
|
|
28
160
|
absolute?: boolean;
|
|
29
161
|
frame?: boolean;
|
|
30
162
|
kind?: IntentKind;
|
|
163
|
+
chain?: boolean | ChainOptions;
|
|
31
164
|
bodyProfile?: 'TLV_MAP' | 'RAW' | 'TLV_OBJ' | 'TLV_ARR';
|
|
32
165
|
tlv?: IntentTlvField[];
|
|
33
166
|
dto?: Function;
|
|
@@ -36,6 +169,7 @@ interface IntentOptions {
|
|
|
36
169
|
kind?: IntentKind;
|
|
37
170
|
absolute?: boolean;
|
|
38
171
|
frame?: boolean;
|
|
172
|
+
chain?: boolean | ChainOptions;
|
|
39
173
|
bodyProfile?: 'TLV_MAP' | 'RAW' | 'TLV_OBJ' | 'TLV_ARR';
|
|
40
174
|
tlv?: IntentTlvField[];
|
|
41
175
|
dto?: Function;
|
|
@@ -48,6 +182,28 @@ declare function IntentBody(decoder: (buf: Buffer) => any): MethodDecorator;
|
|
|
48
182
|
declare const INTENT_SENSORS_KEY = "axis:intent:sensors";
|
|
49
183
|
declare function IntentSensors(sensors: Function[]): MethodDecorator;
|
|
50
184
|
|
|
185
|
+
declare const OBSERVER_METADATA_KEY = "axis:observer";
|
|
186
|
+
declare const OBSERVER_BINDINGS_KEY = "axis:observer:bindings";
|
|
187
|
+
type AxisObserverRef = string | Function;
|
|
188
|
+
interface AxisObserverDefinition {
|
|
189
|
+
name?: string;
|
|
190
|
+
tags?: string[];
|
|
191
|
+
events?: AxisObserverEvent[];
|
|
192
|
+
intents?: string[];
|
|
193
|
+
handlers?: string[];
|
|
194
|
+
}
|
|
195
|
+
interface AxisObserverBinding {
|
|
196
|
+
refs: AxisObserverRef[];
|
|
197
|
+
tags?: string[];
|
|
198
|
+
events?: AxisObserverEvent[];
|
|
199
|
+
}
|
|
200
|
+
interface AxisObserverBindingOptions {
|
|
201
|
+
use: AxisObserverRef | AxisObserverRef[];
|
|
202
|
+
tags?: string[];
|
|
203
|
+
events?: AxisObserverEvent[];
|
|
204
|
+
}
|
|
205
|
+
declare function Observer(input?: AxisObserverDefinition | AxisObserverBindingOptions | AxisObserverRef | AxisObserverRef[]): ClassDecorator & MethodDecorator;
|
|
206
|
+
|
|
51
207
|
declare const HANDLER_SENSORS_KEY = "axis:handler:sensors";
|
|
52
208
|
declare function HandlerSensors(sensors: Function[]): ClassDecorator;
|
|
53
209
|
|
|
@@ -733,7 +889,10 @@ interface AxisEffect {
|
|
|
733
889
|
}
|
|
734
890
|
declare class IntentRouter {
|
|
735
891
|
private readonly moduleRef?;
|
|
892
|
+
private readonly observerDispatcher?;
|
|
736
893
|
private readonly logger;
|
|
894
|
+
private readonly decoder;
|
|
895
|
+
private readonly encoder;
|
|
737
896
|
private static readonly BUILTIN_INTENTS;
|
|
738
897
|
private handlers;
|
|
739
898
|
private intentSensors;
|
|
@@ -741,9 +900,12 @@ declare class IntentRouter {
|
|
|
741
900
|
private intentSchemas;
|
|
742
901
|
private intentValidators;
|
|
743
902
|
private intentKinds;
|
|
903
|
+
private intentChains;
|
|
904
|
+
private intentObservers;
|
|
905
|
+
private intentCapsulePolicies;
|
|
744
906
|
private cceHandlers;
|
|
745
907
|
private ccePipelineConfig;
|
|
746
|
-
constructor(moduleRef?: ModuleRef | undefined);
|
|
908
|
+
constructor(moduleRef?: ModuleRef | undefined, observerDispatcher?: ObserverDispatcherService | undefined);
|
|
747
909
|
getSchema(intent: string): IntentSchema$1 | undefined;
|
|
748
910
|
getValidators(intent: string): Map<number, TlvValidatorFn[]> | undefined;
|
|
749
911
|
has(intent: string): boolean;
|
|
@@ -754,13 +916,35 @@ declare class IntentRouter {
|
|
|
754
916
|
hasSensors: boolean;
|
|
755
917
|
builtin: boolean;
|
|
756
918
|
kind?: IntentKind;
|
|
919
|
+
chain?: RegisteredChainConfig;
|
|
920
|
+
capsulePolicy?: CapsulePolicyOptions;
|
|
921
|
+
observerCount: number;
|
|
757
922
|
} | null;
|
|
923
|
+
getChainConfig(intent: string): RegisteredChainConfig | undefined;
|
|
924
|
+
getObservers(intent: string): AxisObserverBinding[];
|
|
758
925
|
register(intent: string, handler: any): void;
|
|
759
926
|
registerHandler(instance: any): void;
|
|
760
927
|
route(frame: AxisFrame$2): Promise<AxisEffect>;
|
|
761
928
|
private logIntent;
|
|
762
|
-
registerIntentMeta(intent: string, proto: object, methodName: string, handlerSensors?: Function[]): void;
|
|
929
|
+
registerIntentMeta(intent: string, proto: object, methodName: string, handlerSensors?: Function[], handlerObservers?: AxisObserverBinding[]): void;
|
|
930
|
+
private emitIntentObservers;
|
|
763
931
|
private runIntentSensors;
|
|
932
|
+
private getEffectiveCapsulePolicy;
|
|
933
|
+
private enforceCapsulePolicy;
|
|
934
|
+
private executeChainRequest;
|
|
935
|
+
private parseIntentExecBody;
|
|
936
|
+
private parseChainRequestBody;
|
|
937
|
+
private isChainRequestLike;
|
|
938
|
+
private isChainEnvelopeLike;
|
|
939
|
+
private encodeJson;
|
|
940
|
+
private getActorIdFromFrame;
|
|
941
|
+
private getProofRefFromFrame;
|
|
942
|
+
private hasCapsuleReference;
|
|
943
|
+
private getHeaderValue;
|
|
944
|
+
private identifiersMatch;
|
|
945
|
+
private extractInlineCapsuleId;
|
|
946
|
+
private toInlineCapsuleRecord;
|
|
947
|
+
private toScopeList;
|
|
764
948
|
configureCce(config: Omit<CcePipelineConfig, "handlers">): void;
|
|
765
949
|
registerCceHandler(intent: string, handler: CceHandler): void;
|
|
766
950
|
hasCceHandler(intent: string): boolean;
|
|
@@ -768,6 +952,96 @@ declare class IntentRouter {
|
|
|
768
952
|
private storeSchema;
|
|
769
953
|
}
|
|
770
954
|
|
|
955
|
+
interface AxisObserverContext {
|
|
956
|
+
event: AxisObserverEvent;
|
|
957
|
+
timestamp: number;
|
|
958
|
+
intent?: string;
|
|
959
|
+
chainId?: string;
|
|
960
|
+
stepId?: string;
|
|
961
|
+
handler?: string;
|
|
962
|
+
frame?: AxisFrame$2;
|
|
963
|
+
envelope?: AxisChainEnvelope;
|
|
964
|
+
step?: AxisChainStep;
|
|
965
|
+
effect?: AxisEffect;
|
|
966
|
+
result?: AxisChainStepResult | AxisChainResult;
|
|
967
|
+
error?: string;
|
|
968
|
+
observerTags?: string[];
|
|
969
|
+
capsule?: AxisCapsuleRef;
|
|
970
|
+
keyExchange?: AxisKeyExchangeRef;
|
|
971
|
+
metadata?: Record<string, unknown>;
|
|
972
|
+
}
|
|
973
|
+
interface AxisIntentObserver {
|
|
974
|
+
readonly name: string;
|
|
975
|
+
supports?(context: AxisObserverContext): boolean;
|
|
976
|
+
observe(context: AxisObserverContext): Promise<void> | void;
|
|
977
|
+
}
|
|
978
|
+
interface AxisObserverRegistration {
|
|
979
|
+
name: string;
|
|
980
|
+
instance: AxisIntentObserver;
|
|
981
|
+
tags: string[];
|
|
982
|
+
events?: AxisObserverEvent[];
|
|
983
|
+
intents?: string[];
|
|
984
|
+
handlers?: string[];
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
declare class ObserverRegistry {
|
|
988
|
+
private readonly logger;
|
|
989
|
+
private readonly byName;
|
|
990
|
+
private readonly byType;
|
|
991
|
+
register(instance: AxisIntentObserver, meta?: AxisObserverDefinition): void;
|
|
992
|
+
resolve(ref: AxisObserverRef): AxisObserverRegistration | undefined;
|
|
993
|
+
list(): AxisObserverRegistration[];
|
|
994
|
+
clear(): void;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
declare class ObserverDispatcherService {
|
|
998
|
+
private readonly registry;
|
|
999
|
+
private readonly logger;
|
|
1000
|
+
constructor(registry: ObserverRegistry);
|
|
1001
|
+
dispatch(bindings: AxisObserverBinding[] | undefined, context: AxisObserverContext): Promise<void>;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
interface AxisChainExecutionOptions {
|
|
1005
|
+
actorId?: string;
|
|
1006
|
+
baseFrame?: Partial<AxisFrame$2>;
|
|
1007
|
+
}
|
|
1008
|
+
declare class AxisChainExecutor {
|
|
1009
|
+
private readonly router;
|
|
1010
|
+
private readonly observerDispatcher?;
|
|
1011
|
+
private readonly logger;
|
|
1012
|
+
private readonly encoder;
|
|
1013
|
+
private readonly decoder;
|
|
1014
|
+
constructor(router: IntentRouter, observerDispatcher?: ObserverDispatcherService | undefined);
|
|
1015
|
+
execute(envelope: AxisChainEnvelope, options?: AxisChainExecutionOptions): Promise<AxisChainResult>;
|
|
1016
|
+
private executeStep;
|
|
1017
|
+
private buildFrame;
|
|
1018
|
+
private validateEnvelope;
|
|
1019
|
+
private canRun;
|
|
1020
|
+
private blockStepsWithFailedDependencies;
|
|
1021
|
+
private markUnresolvedSteps;
|
|
1022
|
+
private buildSummary;
|
|
1023
|
+
private resolveStepInput;
|
|
1024
|
+
private lookupReference;
|
|
1025
|
+
private serializeInput;
|
|
1026
|
+
private decodeOutput;
|
|
1027
|
+
private computeProofHash;
|
|
1028
|
+
private collectChainBindings;
|
|
1029
|
+
private dispatch;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
declare const AXIS_EXECUTION_CONTEXT_KEY: unique symbol;
|
|
1033
|
+
interface AxisExecutionContext {
|
|
1034
|
+
metaIntent?: "INTENT.EXEC" | "CHAIN.EXEC";
|
|
1035
|
+
actorId?: string;
|
|
1036
|
+
inlineCapsule?: Record<string, unknown>;
|
|
1037
|
+
capsuleRef?: AxisCapsuleRef;
|
|
1038
|
+
chainEnvelope?: AxisChainEnvelope;
|
|
1039
|
+
chainStep?: AxisChainStep;
|
|
1040
|
+
}
|
|
1041
|
+
declare function getAxisExecutionContext(frame?: Partial<AxisFrame$2>): AxisExecutionContext | undefined;
|
|
1042
|
+
declare function withAxisExecutionContext<T extends object>(target: T, context: AxisExecutionContext): T;
|
|
1043
|
+
declare function mergeAxisExecutionContext(base?: AxisExecutionContext, override?: AxisExecutionContext): AxisExecutionContext | undefined;
|
|
1044
|
+
|
|
771
1045
|
declare const BAND: {
|
|
772
1046
|
readonly WIRE: 0;
|
|
773
1047
|
readonly IDENTITY: 40;
|
|
@@ -1432,6 +1706,15 @@ declare const AxisContext$1: (...dataOrPipes: unknown[]) => ParameterDecorator;
|
|
|
1432
1706
|
declare const AxisDemoPubkey: (...dataOrPipes: unknown[]) => ParameterDecorator;
|
|
1433
1707
|
declare const AxisFrame: (...dataOrPipes: unknown[]) => ParameterDecorator;
|
|
1434
1708
|
|
|
1709
|
+
declare class ObserverDiscoveryService implements OnApplicationBootstrap {
|
|
1710
|
+
private readonly discovery;
|
|
1711
|
+
private readonly reflector;
|
|
1712
|
+
private readonly registry;
|
|
1713
|
+
private readonly logger;
|
|
1714
|
+
constructor(discovery: DiscoveryService, reflector: Reflector, registry: ObserverRegistry);
|
|
1715
|
+
onApplicationBootstrap(): void;
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1435
1718
|
declare class HandlerDiscoveryService implements OnModuleInit {
|
|
1436
1719
|
private readonly discovery;
|
|
1437
1720
|
private readonly scanner;
|
|
@@ -2460,8 +2743,18 @@ declare namespace index$8 {
|
|
|
2460
2743
|
declare const index$7_AxisDemoPubkey: typeof AxisDemoPubkey;
|
|
2461
2744
|
declare const index$7_AxisFrame: typeof AxisFrame;
|
|
2462
2745
|
declare const index$7_AxisIp: typeof AxisIp;
|
|
2746
|
+
type index$7_AxisObserverBinding = AxisObserverBinding;
|
|
2747
|
+
type index$7_AxisObserverBindingOptions = AxisObserverBindingOptions;
|
|
2748
|
+
type index$7_AxisObserverDefinition = AxisObserverDefinition;
|
|
2749
|
+
type index$7_AxisObserverRef = AxisObserverRef;
|
|
2463
2750
|
declare const index$7_AxisRaw: typeof AxisRaw;
|
|
2464
2751
|
type index$7_AxisRequestData = AxisRequestData;
|
|
2752
|
+
declare const index$7_CAPSULE_POLICY_METADATA_KEY: typeof CAPSULE_POLICY_METADATA_KEY;
|
|
2753
|
+
declare const index$7_CHAIN_METADATA_KEY: typeof CHAIN_METADATA_KEY;
|
|
2754
|
+
declare const index$7_CapsulePolicy: typeof CapsulePolicy;
|
|
2755
|
+
type index$7_CapsulePolicyOptions = CapsulePolicyOptions;
|
|
2756
|
+
type index$7_CapsuleScopeMode = CapsuleScopeMode;
|
|
2757
|
+
declare const index$7_Chain: typeof Chain;
|
|
2465
2758
|
type index$7_DtoSchema = DtoSchema;
|
|
2466
2759
|
declare const index$7_HANDLER_METADATA_KEY: typeof HANDLER_METADATA_KEY;
|
|
2467
2760
|
declare const index$7_Handler: typeof Handler;
|
|
@@ -2476,6 +2769,9 @@ type index$7_IntentOptions = IntentOptions;
|
|
|
2476
2769
|
type index$7_IntentRoute = IntentRoute;
|
|
2477
2770
|
declare const index$7_IntentSensors: typeof IntentSensors;
|
|
2478
2771
|
type index$7_IntentTlvField = IntentTlvField;
|
|
2772
|
+
declare const index$7_OBSERVER_BINDINGS_KEY: typeof OBSERVER_BINDINGS_KEY;
|
|
2773
|
+
declare const index$7_OBSERVER_METADATA_KEY: typeof OBSERVER_METADATA_KEY;
|
|
2774
|
+
declare const index$7_Observer: typeof Observer;
|
|
2479
2775
|
declare const index$7_SENSOR_METADATA_KEY: typeof SENSOR_METADATA_KEY;
|
|
2480
2776
|
declare const index$7_Sensor: typeof Sensor;
|
|
2481
2777
|
type index$7_SensorOptions = SensorOptions;
|
|
@@ -2495,8 +2791,10 @@ type index$7_TlvValidatorFn = TlvValidatorFn;
|
|
|
2495
2791
|
type index$7_TlvValidatorMeta = TlvValidatorMeta;
|
|
2496
2792
|
declare const index$7_buildDtoDecoder: typeof buildDtoDecoder;
|
|
2497
2793
|
declare const index$7_extractDtoSchema: typeof extractDtoSchema;
|
|
2794
|
+
declare const index$7_mergeCapsulePolicyOptions: typeof mergeCapsulePolicyOptions;
|
|
2795
|
+
declare const index$7_normalizeCapsulePolicyOptions: typeof normalizeCapsulePolicyOptions;
|
|
2498
2796
|
declare namespace index$7 {
|
|
2499
|
-
export { AxisContext$1 as AxisContext, index$7_AxisDemoPubkey as AxisDemoPubkey, index$7_AxisFrame as AxisFrame, index$7_AxisIp as AxisIp, index$7_AxisRaw as AxisRaw, type index$7_AxisRequestData as AxisRequestData, type index$7_DtoSchema as DtoSchema, index$7_HANDLER_METADATA_KEY as HANDLER_METADATA_KEY, index$7_Handler as Handler, index$7_INTENT_BODY_KEY as INTENT_BODY_KEY, index$7_INTENT_METADATA_KEY as INTENT_METADATA_KEY, index$7_INTENT_ROUTES_KEY as INTENT_ROUTES_KEY, index$7_INTENT_SENSORS_KEY as INTENT_SENSORS_KEY, index$7_Intent as Intent, index$7_IntentBody as IntentBody, type index$7_IntentKind as IntentKind, type index$7_IntentOptions as IntentOptions, type index$7_IntentRoute as IntentRoute, index$7_IntentSensors as IntentSensors, type index$7_IntentTlvField as IntentTlvField, index$7_SENSOR_METADATA_KEY as SENSOR_METADATA_KEY, index$7_Sensor as Sensor, type index$7_SensorOptions as SensorOptions, type index$7_SensorPhase as SensorPhase, index$7_TLV_FIELDS_KEY as TLV_FIELDS_KEY, index$7_TLV_VALIDATORS_KEY as TLV_VALIDATORS_KEY, index$7_TlvEnum as TlvEnum, index$7_TlvField as TlvField, type index$7_TlvFieldKind as TlvFieldKind, type index$7_TlvFieldMeta as TlvFieldMeta, type index$7_TlvFieldOptions as TlvFieldOptions, index$7_TlvMinLen as TlvMinLen, index$7_TlvRange as TlvRange, index$7_TlvUtf8Pattern as TlvUtf8Pattern, index$7_TlvValidate as TlvValidate, type index$7_TlvValidatorFn as TlvValidatorFn, type index$7_TlvValidatorMeta as TlvValidatorMeta, index$7_buildDtoDecoder as buildDtoDecoder, index$7_extractDtoSchema as extractDtoSchema };
|
|
2797
|
+
export { AxisContext$1 as AxisContext, index$7_AxisDemoPubkey as AxisDemoPubkey, index$7_AxisFrame as AxisFrame, index$7_AxisIp as AxisIp, type index$7_AxisObserverBinding as AxisObserverBinding, type index$7_AxisObserverBindingOptions as AxisObserverBindingOptions, type index$7_AxisObserverDefinition as AxisObserverDefinition, type index$7_AxisObserverRef as AxisObserverRef, index$7_AxisRaw as AxisRaw, type index$7_AxisRequestData as AxisRequestData, index$7_CAPSULE_POLICY_METADATA_KEY as CAPSULE_POLICY_METADATA_KEY, index$7_CHAIN_METADATA_KEY as CHAIN_METADATA_KEY, index$7_CapsulePolicy as CapsulePolicy, type index$7_CapsulePolicyOptions as CapsulePolicyOptions, type index$7_CapsuleScopeMode as CapsuleScopeMode, index$7_Chain as Chain, type index$7_DtoSchema as DtoSchema, index$7_HANDLER_METADATA_KEY as HANDLER_METADATA_KEY, index$7_Handler as Handler, index$7_INTENT_BODY_KEY as INTENT_BODY_KEY, index$7_INTENT_METADATA_KEY as INTENT_METADATA_KEY, index$7_INTENT_ROUTES_KEY as INTENT_ROUTES_KEY, index$7_INTENT_SENSORS_KEY as INTENT_SENSORS_KEY, index$7_Intent as Intent, index$7_IntentBody as IntentBody, type index$7_IntentKind as IntentKind, type index$7_IntentOptions as IntentOptions, type index$7_IntentRoute as IntentRoute, index$7_IntentSensors as IntentSensors, type index$7_IntentTlvField as IntentTlvField, index$7_OBSERVER_BINDINGS_KEY as OBSERVER_BINDINGS_KEY, index$7_OBSERVER_METADATA_KEY as OBSERVER_METADATA_KEY, index$7_Observer as Observer, index$7_SENSOR_METADATA_KEY as SENSOR_METADATA_KEY, index$7_Sensor as Sensor, type index$7_SensorOptions as SensorOptions, type index$7_SensorPhase as SensorPhase, index$7_TLV_FIELDS_KEY as TLV_FIELDS_KEY, index$7_TLV_VALIDATORS_KEY as TLV_VALIDATORS_KEY, index$7_TlvEnum as TlvEnum, index$7_TlvField as TlvField, type index$7_TlvFieldKind as TlvFieldKind, type index$7_TlvFieldMeta as TlvFieldMeta, type index$7_TlvFieldOptions as TlvFieldOptions, index$7_TlvMinLen as TlvMinLen, index$7_TlvRange as TlvRange, index$7_TlvUtf8Pattern as TlvUtf8Pattern, index$7_TlvValidate as TlvValidate, type index$7_TlvValidatorFn as TlvValidatorFn, type index$7_TlvValidatorMeta as TlvValidatorMeta, index$7_buildDtoDecoder as buildDtoDecoder, index$7_extractDtoSchema as extractDtoSchema, index$7_mergeCapsulePolicyOptions as mergeCapsulePolicyOptions, index$7_normalizeCapsulePolicyOptions as normalizeCapsulePolicyOptions };
|
|
2500
2798
|
}
|
|
2501
2799
|
|
|
2502
2800
|
type index$6_ObservationQueueConfig = ObservationQueueConfig;
|
|
@@ -2522,10 +2820,32 @@ declare namespace index$6 {
|
|
|
2522
2820
|
export { type index$6_ObservationQueueConfig as ObservationQueueConfig, type index$6_ObservationQueueMessage as ObservationQueueMessage, type index$6_ObservationStreamEntry as ObservationStreamEntry, type index$6_ObservationWitnessSummary as ObservationWitnessSummary, type index$6_ObserverVerdict as ObserverVerdict, type index$6_ResponseContract as ResponseContract, index$6_ResponseObserver as ResponseObserver, type index$6_ResponseObserverContext as ResponseObserverContext, type index$6_UnsignedObservationWitness as UnsignedObservationWitness, index$6_buildQueueMessage as buildQueueMessage, index$6_buildUnsignedWitness as buildUnsignedWitness, index$6_canonicalizeObservation as canonicalizeObservation, index$6_decodeQueueMessage as decodeQueueMessage, index$6_encodeQueueMessage as encodeQueueMessage, index$6_hashObservation as hashObservation, index$6_parseAutoClaimEntries as parseAutoClaimEntries, index$6_parseStreamEntries as parseStreamEntries, index$6_stableJsonStringify as stableJsonStringify, index$6_verifyResponse as verifyResponse };
|
|
2523
2821
|
}
|
|
2524
2822
|
|
|
2823
|
+
declare const index$5_AXIS_EXECUTION_CONTEXT_KEY: typeof AXIS_EXECUTION_CONTEXT_KEY;
|
|
2824
|
+
type index$5_AxisCapsuleRef = AxisCapsuleRef;
|
|
2825
|
+
type index$5_AxisChainEncryption = AxisChainEncryption;
|
|
2826
|
+
type index$5_AxisChainEnvelope<TInput = unknown> = AxisChainEnvelope<TInput>;
|
|
2827
|
+
type index$5_AxisChainExecutionOptions = AxisChainExecutionOptions;
|
|
2828
|
+
type index$5_AxisChainExecutor = AxisChainExecutor;
|
|
2829
|
+
declare const index$5_AxisChainExecutor: typeof AxisChainExecutor;
|
|
2830
|
+
type index$5_AxisChainRequest<TInput = unknown, TCapsule = Record<string, unknown>> = AxisChainRequest<TInput, TCapsule>;
|
|
2831
|
+
type index$5_AxisChainResult<TOutput = unknown> = AxisChainResult<TOutput>;
|
|
2832
|
+
type index$5_AxisChainStatus = AxisChainStatus;
|
|
2833
|
+
type index$5_AxisChainStep<TInput = unknown> = AxisChainStep<TInput>;
|
|
2834
|
+
type index$5_AxisChainStepResult<TOutput = unknown> = AxisChainStepResult<TOutput>;
|
|
2835
|
+
type index$5_AxisChainStepStatus = AxisChainStepStatus;
|
|
2525
2836
|
type index$5_AxisDecoded = AxisDecoded;
|
|
2526
2837
|
type index$5_AxisEffect = AxisEffect;
|
|
2838
|
+
type index$5_AxisExecutionContext = AxisExecutionContext;
|
|
2839
|
+
type index$5_AxisExecutionMode = AxisExecutionMode;
|
|
2840
|
+
type index$5_AxisIntentEnvelope<TPayload = unknown> = AxisIntentEnvelope<TPayload>;
|
|
2841
|
+
type index$5_AxisIntentObserver = AxisIntentObserver;
|
|
2842
|
+
type index$5_AxisKeyExchangeRef = AxisKeyExchangeRef;
|
|
2527
2843
|
type index$5_AxisObservation = AxisObservation;
|
|
2844
|
+
type index$5_AxisObserverContext = AxisObserverContext;
|
|
2845
|
+
type index$5_AxisObserverEvent = AxisObserverEvent;
|
|
2846
|
+
type index$5_AxisObserverRegistration = AxisObserverRegistration;
|
|
2528
2847
|
declare const index$5_BAND: typeof BAND;
|
|
2848
|
+
type index$5_ChainOptions = ChainOptions;
|
|
2529
2849
|
type index$5_HandlerDiscoveryService = HandlerDiscoveryService;
|
|
2530
2850
|
declare const index$5_HandlerDiscoveryService: typeof HandlerDiscoveryService;
|
|
2531
2851
|
type index$5_IntentRouter = IntentRouter;
|
|
@@ -2536,8 +2856,15 @@ type index$5_ObservationSensor = ObservationSensor;
|
|
|
2536
2856
|
type index$5_ObservationStage = ObservationStage;
|
|
2537
2857
|
type index$5_ObservationStreamEntry = ObservationStreamEntry;
|
|
2538
2858
|
type index$5_ObservationWitnessSummary = ObservationWitnessSummary;
|
|
2859
|
+
type index$5_ObserverDiscoveryService = ObserverDiscoveryService;
|
|
2860
|
+
declare const index$5_ObserverDiscoveryService: typeof ObserverDiscoveryService;
|
|
2861
|
+
type index$5_ObserverDispatcherService = ObserverDispatcherService;
|
|
2862
|
+
declare const index$5_ObserverDispatcherService: typeof ObserverDispatcherService;
|
|
2863
|
+
type index$5_ObserverRegistry = ObserverRegistry;
|
|
2864
|
+
declare const index$5_ObserverRegistry: typeof ObserverRegistry;
|
|
2539
2865
|
type index$5_ObserverVerdict = ObserverVerdict;
|
|
2540
2866
|
declare const index$5_PRE_DECODE_BOUNDARY: typeof PRE_DECODE_BOUNDARY;
|
|
2867
|
+
type index$5_RegisteredChainConfig = RegisteredChainConfig;
|
|
2541
2868
|
type index$5_ResponseContract = ResponseContract;
|
|
2542
2869
|
declare const index$5_ResponseObserver: typeof ResponseObserver;
|
|
2543
2870
|
type index$5_ResponseObserverContext = ResponseObserverContext;
|
|
@@ -2555,15 +2882,18 @@ declare const index$5_decodeQueueMessage: typeof decodeQueueMessage;
|
|
|
2555
2882
|
declare const index$5_encodeQueueMessage: typeof encodeQueueMessage;
|
|
2556
2883
|
declare const index$5_endStage: typeof endStage;
|
|
2557
2884
|
declare const index$5_finalizeObservation: typeof finalizeObservation;
|
|
2885
|
+
declare const index$5_getAxisExecutionContext: typeof getAxisExecutionContext;
|
|
2558
2886
|
declare const index$5_hashObservation: typeof hashObservation;
|
|
2887
|
+
declare const index$5_mergeAxisExecutionContext: typeof mergeAxisExecutionContext;
|
|
2559
2888
|
declare const index$5_parseAutoClaimEntries: typeof parseAutoClaimEntries;
|
|
2560
2889
|
declare const index$5_parseStreamEntries: typeof parseStreamEntries;
|
|
2561
2890
|
declare const index$5_recordSensor: typeof recordSensor;
|
|
2562
2891
|
declare const index$5_stableJsonStringify: typeof stableJsonStringify;
|
|
2563
2892
|
declare const index$5_startStage: typeof startStage;
|
|
2564
2893
|
declare const index$5_verifyResponse: typeof verifyResponse;
|
|
2894
|
+
declare const index$5_withAxisExecutionContext: typeof withAxisExecutionContext;
|
|
2565
2895
|
declare namespace index$5 {
|
|
2566
|
-
export { type index$5_AxisDecoded as AxisDecoded, type index$5_AxisEffect as AxisEffect, type index$5_AxisObservation as AxisObservation, index$5_BAND as BAND, index$5_HandlerDiscoveryService as HandlerDiscoveryService, index$5_IntentRouter as IntentRouter, type IntentSchema$1 as IntentSchema, type index$5_ObservationQueueConfig as ObservationQueueConfig, type index$5_ObservationQueueMessage as ObservationQueueMessage, type index$5_ObservationSensor as ObservationSensor, type index$5_ObservationStage as ObservationStage, type index$5_ObservationStreamEntry as ObservationStreamEntry, type index$5_ObservationWitnessSummary as ObservationWitnessSummary, type index$5_ObserverVerdict as ObserverVerdict, index$5_PRE_DECODE_BOUNDARY as PRE_DECODE_BOUNDARY, type index$5_ResponseContract as ResponseContract, index$5_ResponseObserver as ResponseObserver, type index$5_ResponseObserverContext as ResponseObserverContext, type index$5_SensorBand as SensorBand, index$5_SensorDiscoveryService as SensorDiscoveryService, index$5_SensorRegistry as SensorRegistry, type index$5_UnsignedObservationWitness as UnsignedObservationWitness, index$5_buildQueueMessage as buildQueueMessage, index$5_buildUnsignedWitness as buildUnsignedWitness, index$5_canonicalizeObservation as canonicalizeObservation, index$5_createObservation as createObservation, index$5_decodeQueueMessage as decodeQueueMessage, index$5_encodeQueueMessage as encodeQueueMessage, index$5_endStage as endStage, index$5_finalizeObservation as finalizeObservation, index$5_hashObservation as hashObservation, index$6 as observation, index$5_parseAutoClaimEntries as parseAutoClaimEntries, index$5_parseStreamEntries as parseStreamEntries, index$5_recordSensor as recordSensor, index$5_stableJsonStringify as stableJsonStringify, index$5_startStage as startStage, index$5_verifyResponse as verifyResponse };
|
|
2896
|
+
export { index$5_AXIS_EXECUTION_CONTEXT_KEY as AXIS_EXECUTION_CONTEXT_KEY, type index$5_AxisCapsuleRef as AxisCapsuleRef, type index$5_AxisChainEncryption as AxisChainEncryption, type index$5_AxisChainEnvelope as AxisChainEnvelope, type index$5_AxisChainExecutionOptions as AxisChainExecutionOptions, index$5_AxisChainExecutor as AxisChainExecutor, type index$5_AxisChainRequest as AxisChainRequest, type index$5_AxisChainResult as AxisChainResult, type index$5_AxisChainStatus as AxisChainStatus, type index$5_AxisChainStep as AxisChainStep, type index$5_AxisChainStepResult as AxisChainStepResult, type index$5_AxisChainStepStatus as AxisChainStepStatus, type index$5_AxisDecoded as AxisDecoded, type index$5_AxisEffect as AxisEffect, type index$5_AxisExecutionContext as AxisExecutionContext, type index$5_AxisExecutionMode as AxisExecutionMode, type index$5_AxisIntentEnvelope as AxisIntentEnvelope, type index$5_AxisIntentObserver as AxisIntentObserver, type index$5_AxisKeyExchangeRef as AxisKeyExchangeRef, type index$5_AxisObservation as AxisObservation, type index$5_AxisObserverContext as AxisObserverContext, type index$5_AxisObserverEvent as AxisObserverEvent, type index$5_AxisObserverRegistration as AxisObserverRegistration, index$5_BAND as BAND, type index$5_ChainOptions as ChainOptions, index$5_HandlerDiscoveryService as HandlerDiscoveryService, index$5_IntentRouter as IntentRouter, type IntentSchema$1 as IntentSchema, type index$5_ObservationQueueConfig as ObservationQueueConfig, type index$5_ObservationQueueMessage as ObservationQueueMessage, type index$5_ObservationSensor as ObservationSensor, type index$5_ObservationStage as ObservationStage, type index$5_ObservationStreamEntry as ObservationStreamEntry, type index$5_ObservationWitnessSummary as ObservationWitnessSummary, index$5_ObserverDiscoveryService as ObserverDiscoveryService, index$5_ObserverDispatcherService as ObserverDispatcherService, index$5_ObserverRegistry as ObserverRegistry, type index$5_ObserverVerdict as ObserverVerdict, index$5_PRE_DECODE_BOUNDARY as PRE_DECODE_BOUNDARY, type index$5_RegisteredChainConfig as RegisteredChainConfig, type index$5_ResponseContract as ResponseContract, index$5_ResponseObserver as ResponseObserver, type index$5_ResponseObserverContext as ResponseObserverContext, type index$5_SensorBand as SensorBand, index$5_SensorDiscoveryService as SensorDiscoveryService, index$5_SensorRegistry as SensorRegistry, type index$5_UnsignedObservationWitness as UnsignedObservationWitness, index$5_buildQueueMessage as buildQueueMessage, index$5_buildUnsignedWitness as buildUnsignedWitness, index$5_canonicalizeObservation as canonicalizeObservation, index$5_createObservation as createObservation, index$5_decodeQueueMessage as decodeQueueMessage, index$5_encodeQueueMessage as encodeQueueMessage, index$5_endStage as endStage, index$5_finalizeObservation as finalizeObservation, index$5_getAxisExecutionContext as getAxisExecutionContext, index$5_hashObservation as hashObservation, index$5_mergeAxisExecutionContext as mergeAxisExecutionContext, index$6 as observation, index$5_parseAutoClaimEntries as parseAutoClaimEntries, index$5_parseStreamEntries as parseStreamEntries, index$5_recordSensor as recordSensor, index$5_stableJsonStringify as stableJsonStringify, index$5_startStage as startStage, index$5_verifyResponse as verifyResponse, index$5_withAxisExecutionContext as withAxisExecutionContext };
|
|
2567
2897
|
}
|
|
2568
2898
|
|
|
2569
2899
|
type index$4_Grant = Grant;
|
|
@@ -2939,4 +3269,4 @@ declare namespace index {
|
|
|
2939
3269
|
export { index_encodeAxisTlvDto as encodeAxisTlvDto };
|
|
2940
3270
|
}
|
|
2941
3271
|
|
|
2942
|
-
export { ATS1_HDR, ATS1_SCHEMA, AXIS_OPCODES, AXIS_UPLOAD_FILE_STORE, AXIS_UPLOAD_RECEIPT_SIGNER, AXIS_UPLOAD_SESSION_STORE, ats1 as Ats1Codec, type Axis1DecodedFrame, type Axis1FrameToEncode, type AxisAlg$1 as AxisAlg, type AxisPacket as AxisBinaryPacket, type AxisCapsule, type AxisCapsuleConstraints, type AxisCapsulePayload, AxisContext$1 as AxisContext, type AxisCrudHandler, type AxisDecoded, AxisDemoPubkey, type AxisEffect, AxisFilesDownloadHandler, AxisFilesFinalizeHandler, AxisFrame$2 as AxisFrame, type AxisHandler, type AxisHandlerInit, AxisIdDto, AxisIp, type AxisAlg as AxisJsonAlg, type AxisFrame$1 as AxisJsonFrame, type AxisResponse as AxisJsonResponse, type AxisSig as AxisJsonSig, type AxisObservation, type AxisObservedContext, type AxisPacket$1 as AxisPacket, T as AxisPacketTags, AxisPartialType, type AxisPostSensor, type AxisPreSensor, AxisRaw, type AxisRequestContext, type AxisRequestData, AxisResponseDto, type AxisSensor, AxisSensorChainService, type AxisSensorInit, type AxisSig$1 as AxisSig, AxisTlvDto, BAND, CAPABILITIES, CCE_ERROR, CCE_PROTOCOL_VERSION, type Capability, type CapsuleMode, type CceCapsuleClaims as CceCapsuleClaimsType, CceError, type CceExecutionContext as CceExecutionContextType, type CceHandler, type CceHandlerContext, type CceHandlerResult, type CcePipelineConfig, type CcePipelineResult, type CcePolicyContext, type CcePolicyDecision, type CcePolicyEvaluator, type CceRequestEnvelope as CceRequestEnvelopeType, type CceResponseEnvelope as CceResponseEnvelopeType, type CceWitnessRecord as CceWitnessRecordType, type ChainResult, ContractViolationError, DEFAULT_CONTRACTS, DEFAULT_TIMEOUT, Decision, DiskUploadFileStore, type DtoSchema, type ExecutionContract, ExecutionMeter, type ExecutionMetrics, FALLBACK_CONTRACT, type Grant, type GrantCapability, type GrantMeta, type GrantStatus, type GrantType, type GrantValidationResult, HANDLER_METADATA_KEY, HANDLER_SENSORS_KEY, Handler, HandlerDiscoveryService, HandlerSensors, INTENT_BODY_KEY, INTENT_METADATA_KEY, INTENT_REQUIREMENTS, INTENT_ROUTES_KEY, INTENT_SENSITIVITY_MAP, INTENT_SENSORS_KEY, INTENT_TIMEOUTS, Intent, IntentBody, type IntentDefinition, type IntentKind, type IntentOptions, type IntentRoute, IntentRouter, IntentSensitivity, IntentSensors, type IntentTlvField, type KeyStatus, type LoomReceipt, type LoomValidationResult, type ObservationQueueConfig, type ObservationQueueMessage, type ObservationSensor, type ObservationStage, type ObservationStreamEntry, type ObservationWitnessSummary, type ObserverVerdict, PRE_DECODE_BOUNDARY, PROOF_CAPABILITIES, type PresenceChallenge, type PresenceDeclaration, type PresenceProof, type PresenceReceipt, type PresenceStatus, type PresenceVerifyResult, RESPONSE_TAG_CREATED_AT, RESPONSE_TAG_CREATED_BY, RESPONSE_TAG_ID, RESPONSE_TAG_UPDATED_AT, RESPONSE_TAG_UPDATED_BY, type ReceiptEffect, type ResponseContract, ResponseObserver, type ResponseObserverContext, type Revocation, type RevocationTargetType, RiskDecision, type RiskEvaluation, type RiskSignal, SENSOR_METADATA_KEY, Schema2002_PasskeyLoginOptionsRes, Schema2011_PasskeyLoginVerifyReq, Schema2012_PasskeyLoginVerifyRes, Schema2021_PasskeyRegisterOptionsReq, Sensor, type SensorBand, type SensorDecision, SensorDecisions, SensorDiscoveryService, type SensorInput, type SensorMinifiedDecision, type SensorOptions, type SensorPhase, type SensorPhaseMetadata, SensorRegistry, TLV_FIELDS_KEY, TLV_VALIDATORS_KEY, type ThreadState, TlvEnum, TlvField, type TlvFieldKind, type TlvFieldMeta, type TlvFieldOptions, TlvMinLen, TlvRange, TlvUtf8Pattern, TlvValidate, type TlvValidatorFn, type TlvValidatorMeta, type UnsignedObservationWitness, type UploadFileStat, type UploadFileStore, type UploadReceiptSigner, type UploadSessionRecord, type UploadSessionStatus, type UploadSessionStore, type Writ, type WritBody, type WritHead, type WritMeta, type WritSignature, type WritValidationResult, axis1SigningBytes, b64urlDecode, b64urlDecodeString, b64urlEncode, b64urlEncodeString, buildAts1Hdr, buildDtoDecoder, buildPacket, buildQueueMessage, buildReceiptHash, buildTLVs, buildUnsignedWitness, bytes, canAccessResource, canonicalJson, canonicalJsonExcluding, canonicalizeGrant, canonicalizeObservation, canonicalizeWrit, index$9 as cce, classifyIntent, createObservation, index$8 as crypto, decodeAxis1Frame, decodeQueueMessage, index$7 as decorators, deriveAnchorReflection, encVarint, encodeAxis1Frame, encodeAxisTlvDto, encodeQueueMessage, endStage, index$5 as engine, executeCcePipeline, extractDtoSchema, finalizeObservation, hasScope, hashObservation, isAdminOpcode, isKnownOpcode, isTimestampValid, index$4 as loom, nonce16, normalizeSensorDecision, packPasskeyLoginOptionsReq, packPasskeyLoginOptionsRes, packPasskeyLoginVerifyReq, packPasskeyLoginVerifyRes, packPasskeyRegisterOptionsReq, parseAutoClaimEntries, parseScope, parseStreamEntries, recordSensor, resolveTimeout, index$3 as schemas, index$2 as security, sensitivityName, index$1 as sensors, stableJsonStringify, startStage, tlv, u64be, unpackPasskeyLoginOptionsReq, unpackPasskeyLoginVerifyReq, unpackPasskeyRegisterOptionsReq, utf8, index as utils, validateFrameShape, varintU, verifyResponse };
|
|
3272
|
+
export { ATS1_HDR, ATS1_SCHEMA, AXIS_EXECUTION_CONTEXT_KEY, AXIS_OPCODES, AXIS_UPLOAD_FILE_STORE, AXIS_UPLOAD_RECEIPT_SIGNER, AXIS_UPLOAD_SESSION_STORE, ats1 as Ats1Codec, type Axis1DecodedFrame, type Axis1FrameToEncode, type AxisAlg$1 as AxisAlg, type AxisPacket as AxisBinaryPacket, type AxisCapsule, type AxisCapsuleConstraints, type AxisCapsulePayload, type AxisCapsuleRef, type AxisChainEncryption, type AxisChainEnvelope, AxisChainExecutor, type AxisChainRequest, type AxisChainResult, type AxisChainStatus, type AxisChainStep, type AxisChainStepResult, type AxisChainStepStatus, AxisContext$1 as AxisContext, type AxisCrudHandler, type AxisDecoded, AxisDemoPubkey, type AxisEffect, type AxisExecutionContext, type AxisExecutionMode, AxisFilesDownloadHandler, AxisFilesFinalizeHandler, AxisFrame$2 as AxisFrame, type AxisHandler, type AxisHandlerInit, AxisIdDto, type AxisIntentEnvelope, type AxisIntentObserver, AxisIp, type AxisAlg as AxisJsonAlg, type AxisFrame$1 as AxisJsonFrame, type AxisResponse as AxisJsonResponse, type AxisSig as AxisJsonSig, type AxisKeyExchangeRef, type AxisObservation, type AxisObservedContext, type AxisObserverBinding, type AxisObserverBindingOptions, type AxisObserverContext, type AxisObserverDefinition, type AxisObserverEvent, type AxisObserverRef, type AxisObserverRegistration, type AxisPacket$1 as AxisPacket, T as AxisPacketTags, AxisPartialType, type AxisPostSensor, type AxisPreSensor, AxisRaw, type AxisRequestContext, type AxisRequestData, AxisResponseDto, type AxisSensor, AxisSensorChainService, type AxisSensorInit, type AxisSig$1 as AxisSig, AxisTlvDto, BAND, CAPABILITIES, CAPSULE_POLICY_METADATA_KEY, CCE_ERROR, CCE_PROTOCOL_VERSION, CHAIN_METADATA_KEY, type Capability, type CapsuleMode, CapsulePolicy, type CapsulePolicyOptions, type CapsuleScopeMode, type CceCapsuleClaims as CceCapsuleClaimsType, CceError, type CceExecutionContext as CceExecutionContextType, type CceHandler, type CceHandlerContext, type CceHandlerResult, type CcePipelineConfig, type CcePipelineResult, type CcePolicyContext, type CcePolicyDecision, type CcePolicyEvaluator, type CceRequestEnvelope as CceRequestEnvelopeType, type CceResponseEnvelope as CceResponseEnvelopeType, type CceWitnessRecord as CceWitnessRecordType, Chain, type ChainOptions, type ChainResult, ContractViolationError, DEFAULT_CONTRACTS, DEFAULT_TIMEOUT, Decision, DiskUploadFileStore, type DtoSchema, type ExecutionContract, ExecutionMeter, type ExecutionMetrics, FALLBACK_CONTRACT, type Grant, type GrantCapability, type GrantMeta, type GrantStatus, type GrantType, type GrantValidationResult, HANDLER_METADATA_KEY, HANDLER_SENSORS_KEY, Handler, HandlerDiscoveryService, HandlerSensors, INTENT_BODY_KEY, INTENT_METADATA_KEY, INTENT_REQUIREMENTS, INTENT_ROUTES_KEY, INTENT_SENSITIVITY_MAP, INTENT_SENSORS_KEY, INTENT_TIMEOUTS, Intent, IntentBody, type IntentDefinition, type IntentKind, type IntentOptions, type IntentRoute, IntentRouter, IntentSensitivity, IntentSensors, type IntentTlvField, type KeyStatus, type LoomReceipt, type LoomValidationResult, OBSERVER_BINDINGS_KEY, OBSERVER_METADATA_KEY, type ObservationQueueConfig, type ObservationQueueMessage, type ObservationSensor, type ObservationStage, type ObservationStreamEntry, type ObservationWitnessSummary, Observer, ObserverDiscoveryService, ObserverDispatcherService, ObserverRegistry, type ObserverVerdict, PRE_DECODE_BOUNDARY, PROOF_CAPABILITIES, type PresenceChallenge, type PresenceDeclaration, type PresenceProof, type PresenceReceipt, type PresenceStatus, type PresenceVerifyResult, RESPONSE_TAG_CREATED_AT, RESPONSE_TAG_CREATED_BY, RESPONSE_TAG_ID, RESPONSE_TAG_UPDATED_AT, RESPONSE_TAG_UPDATED_BY, type ReceiptEffect, type RegisteredChainConfig, type ResponseContract, ResponseObserver, type ResponseObserverContext, type Revocation, type RevocationTargetType, RiskDecision, type RiskEvaluation, type RiskSignal, SENSOR_METADATA_KEY, Schema2002_PasskeyLoginOptionsRes, Schema2011_PasskeyLoginVerifyReq, Schema2012_PasskeyLoginVerifyRes, Schema2021_PasskeyRegisterOptionsReq, Sensor, type SensorBand, type SensorDecision, SensorDecisions, SensorDiscoveryService, type SensorInput, type SensorMinifiedDecision, type SensorOptions, type SensorPhase, type SensorPhaseMetadata, SensorRegistry, TLV_FIELDS_KEY, TLV_VALIDATORS_KEY, type ThreadState, TlvEnum, TlvField, type TlvFieldKind, type TlvFieldMeta, type TlvFieldOptions, TlvMinLen, TlvRange, TlvUtf8Pattern, TlvValidate, type TlvValidatorFn, type TlvValidatorMeta, type UnsignedObservationWitness, type UploadFileStat, type UploadFileStore, type UploadReceiptSigner, type UploadSessionRecord, type UploadSessionStatus, type UploadSessionStore, type Writ, type WritBody, type WritHead, type WritMeta, type WritSignature, type WritValidationResult, axis1SigningBytes, b64urlDecode, b64urlDecodeString, b64urlEncode, b64urlEncodeString, buildAts1Hdr, buildDtoDecoder, buildPacket, buildQueueMessage, buildReceiptHash, buildTLVs, buildUnsignedWitness, bytes, canAccessResource, canonicalJson, canonicalJsonExcluding, canonicalizeGrant, canonicalizeObservation, canonicalizeWrit, index$9 as cce, classifyIntent, createObservation, index$8 as crypto, decodeAxis1Frame, decodeQueueMessage, index$7 as decorators, deriveAnchorReflection, encVarint, encodeAxis1Frame, encodeAxisTlvDto, encodeQueueMessage, endStage, index$5 as engine, executeCcePipeline, extractDtoSchema, finalizeObservation, getAxisExecutionContext, hasScope, hashObservation, isAdminOpcode, isKnownOpcode, isTimestampValid, index$4 as loom, mergeAxisExecutionContext, nonce16, normalizeSensorDecision, packPasskeyLoginOptionsReq, packPasskeyLoginOptionsRes, packPasskeyLoginVerifyReq, packPasskeyLoginVerifyRes, packPasskeyRegisterOptionsReq, parseAutoClaimEntries, parseScope, parseStreamEntries, recordSensor, resolveTimeout, index$3 as schemas, index$2 as security, sensitivityName, index$1 as sensors, stableJsonStringify, startStage, tlv, u64be, unpackPasskeyLoginOptionsReq, unpackPasskeyLoginVerifyReq, unpackPasskeyRegisterOptionsReq, utf8, index as utils, validateFrameShape, varintU, verifyResponse, withAxisExecutionContext };
|