@nextera.one/axis-server-sdk 2.1.3 → 2.1.5
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/index.d.mts +1834 -1804
- package/dist/index.d.ts +1834 -1804
- package/dist/index.js +268 -126
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +254 -112
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -139,6 +139,163 @@ var init_capsule_policy_decorator = __esm({
|
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
141
|
|
|
142
|
+
// src/decorators/intent-policy.decorator.ts
|
|
143
|
+
var intent_policy_decorator_exports = {};
|
|
144
|
+
__export(intent_policy_decorator_exports, {
|
|
145
|
+
AXIS_ANONYMOUS_KEY: () => AXIS_ANONYMOUS_KEY,
|
|
146
|
+
AXIS_PUBLIC_KEY: () => AXIS_PUBLIC_KEY,
|
|
147
|
+
AXIS_RATE_LIMIT_KEY: () => AXIS_RATE_LIMIT_KEY,
|
|
148
|
+
AxisAnonymous: () => AxisAnonymous,
|
|
149
|
+
AxisPublic: () => AxisPublic,
|
|
150
|
+
AxisRateLimit: () => AxisRateLimit,
|
|
151
|
+
CONTRACT_METADATA_KEY: () => CONTRACT_METADATA_KEY,
|
|
152
|
+
Capsule: () => Capsule,
|
|
153
|
+
Contract: () => Contract,
|
|
154
|
+
REQUIRED_PROOF_METADATA_KEY: () => REQUIRED_PROOF_METADATA_KEY,
|
|
155
|
+
RequiredProof: () => RequiredProof,
|
|
156
|
+
SENSITIVITY_METADATA_KEY: () => SENSITIVITY_METADATA_KEY,
|
|
157
|
+
Sensitivity: () => Sensitivity,
|
|
158
|
+
Witness: () => Witness
|
|
159
|
+
});
|
|
160
|
+
import "reflect-metadata";
|
|
161
|
+
function Sensitivity(level) {
|
|
162
|
+
return ((target, propertyKey) => {
|
|
163
|
+
if (propertyKey !== void 0) {
|
|
164
|
+
Reflect.defineMetadata(
|
|
165
|
+
SENSITIVITY_METADATA_KEY,
|
|
166
|
+
level,
|
|
167
|
+
target,
|
|
168
|
+
propertyKey
|
|
169
|
+
);
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
Reflect.defineMetadata(SENSITIVITY_METADATA_KEY, level, target);
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
function Contract(options) {
|
|
176
|
+
return ((target, propertyKey) => {
|
|
177
|
+
if (propertyKey !== void 0) {
|
|
178
|
+
Reflect.defineMetadata(
|
|
179
|
+
CONTRACT_METADATA_KEY,
|
|
180
|
+
options,
|
|
181
|
+
target,
|
|
182
|
+
propertyKey
|
|
183
|
+
);
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
Reflect.defineMetadata(CONTRACT_METADATA_KEY, options, target);
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
function RequiredProof(proofs) {
|
|
190
|
+
return ((target, propertyKey) => {
|
|
191
|
+
if (propertyKey !== void 0) {
|
|
192
|
+
Reflect.defineMetadata(
|
|
193
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
194
|
+
proofs,
|
|
195
|
+
target,
|
|
196
|
+
propertyKey
|
|
197
|
+
);
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
Reflect.defineMetadata(
|
|
201
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
202
|
+
proofs,
|
|
203
|
+
target
|
|
204
|
+
);
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
function Capsule() {
|
|
208
|
+
return ((target, propertyKey) => {
|
|
209
|
+
const existing = propertyKey !== void 0 ? Reflect.getMetadata(
|
|
210
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
211
|
+
target,
|
|
212
|
+
propertyKey
|
|
213
|
+
) ?? [] : Reflect.getMetadata(
|
|
214
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
215
|
+
target
|
|
216
|
+
) ?? [];
|
|
217
|
+
const merged = existing.includes("CAPSULE") ? existing : [...existing, "CAPSULE"];
|
|
218
|
+
if (propertyKey !== void 0) {
|
|
219
|
+
Reflect.defineMetadata(
|
|
220
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
221
|
+
merged,
|
|
222
|
+
target,
|
|
223
|
+
propertyKey
|
|
224
|
+
);
|
|
225
|
+
} else {
|
|
226
|
+
Reflect.defineMetadata(
|
|
227
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
228
|
+
merged,
|
|
229
|
+
target
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
function Witness() {
|
|
235
|
+
return ((target, propertyKey) => {
|
|
236
|
+
const existing = propertyKey !== void 0 ? Reflect.getMetadata(
|
|
237
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
238
|
+
target,
|
|
239
|
+
propertyKey
|
|
240
|
+
) ?? [] : Reflect.getMetadata(
|
|
241
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
242
|
+
target
|
|
243
|
+
) ?? [];
|
|
244
|
+
const merged = existing.includes("WITNESS") ? existing : [...existing, "WITNESS"];
|
|
245
|
+
if (propertyKey !== void 0) {
|
|
246
|
+
Reflect.defineMetadata(
|
|
247
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
248
|
+
merged,
|
|
249
|
+
target,
|
|
250
|
+
propertyKey
|
|
251
|
+
);
|
|
252
|
+
} else {
|
|
253
|
+
Reflect.defineMetadata(
|
|
254
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
255
|
+
merged,
|
|
256
|
+
target
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
function AxisPublic() {
|
|
262
|
+
return (target, propertyKey, descriptor) => {
|
|
263
|
+
if (descriptor) {
|
|
264
|
+
Reflect.defineMetadata(AXIS_PUBLIC_KEY, true, target, propertyKey);
|
|
265
|
+
return descriptor;
|
|
266
|
+
}
|
|
267
|
+
Reflect.defineMetadata(AXIS_PUBLIC_KEY, true, target);
|
|
268
|
+
return target;
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
function AxisAnonymous() {
|
|
272
|
+
return (target, propertyKey, descriptor) => {
|
|
273
|
+
if (descriptor) {
|
|
274
|
+
Reflect.defineMetadata(AXIS_ANONYMOUS_KEY, true, target, propertyKey);
|
|
275
|
+
return descriptor;
|
|
276
|
+
}
|
|
277
|
+
Reflect.defineMetadata(AXIS_ANONYMOUS_KEY, true, target);
|
|
278
|
+
return target;
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
function AxisRateLimit(config) {
|
|
282
|
+
return (target, propertyKey, descriptor) => {
|
|
283
|
+
Reflect.defineMetadata(AXIS_RATE_LIMIT_KEY, config, target, propertyKey);
|
|
284
|
+
return descriptor;
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
var SENSITIVITY_METADATA_KEY, CONTRACT_METADATA_KEY, REQUIRED_PROOF_METADATA_KEY, AXIS_PUBLIC_KEY, AXIS_ANONYMOUS_KEY, AXIS_RATE_LIMIT_KEY;
|
|
288
|
+
var init_intent_policy_decorator = __esm({
|
|
289
|
+
"src/decorators/intent-policy.decorator.ts"() {
|
|
290
|
+
SENSITIVITY_METADATA_KEY = "axis:sensitivity";
|
|
291
|
+
CONTRACT_METADATA_KEY = "axis:contract";
|
|
292
|
+
REQUIRED_PROOF_METADATA_KEY = "axis:required_proof";
|
|
293
|
+
AXIS_PUBLIC_KEY = "axis:public";
|
|
294
|
+
AXIS_ANONYMOUS_KEY = "axis:anonymous";
|
|
295
|
+
AXIS_RATE_LIMIT_KEY = "axis:rateLimit";
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
|
|
142
299
|
// src/decorators/handler.decorator.ts
|
|
143
300
|
var handler_decorator_exports = {};
|
|
144
301
|
__export(handler_decorator_exports, {
|
|
@@ -2009,6 +2166,7 @@ var require_intent_router = __commonJS({
|
|
|
2009
2166
|
var handler_sensors_decorator_1 = (init_handler_sensors_decorator(), __toCommonJS(handler_sensors_decorator_exports));
|
|
2010
2167
|
var handler_decorator_1 = (init_handler_decorator(), __toCommonJS(handler_decorator_exports));
|
|
2011
2168
|
var intent_body_decorator_1 = (init_intent_body_decorator(), __toCommonJS(intent_body_decorator_exports));
|
|
2169
|
+
var intent_policy_decorator_1 = (init_intent_policy_decorator(), __toCommonJS(intent_policy_decorator_exports));
|
|
2012
2170
|
var intent_sensors_decorator_1 = (init_intent_sensors_decorator(), __toCommonJS(intent_sensors_decorator_exports));
|
|
2013
2171
|
var intent_decorator_1 = (init_intent_decorator(), __toCommonJS(intent_decorator_exports));
|
|
2014
2172
|
var observer_decorator_1 = (init_observer_decorator(), __toCommonJS(observer_decorator_exports));
|
|
@@ -2070,6 +2228,12 @@ var require_intent_router = __commonJS({
|
|
|
2070
2228
|
this.intentChains = /* @__PURE__ */ new Map();
|
|
2071
2229
|
this.intentObservers = /* @__PURE__ */ new Map();
|
|
2072
2230
|
this.intentCapsulePolicies = /* @__PURE__ */ new Map();
|
|
2231
|
+
this.intentSensitivity = /* @__PURE__ */ new Map();
|
|
2232
|
+
this.intentContracts = /* @__PURE__ */ new Map();
|
|
2233
|
+
this.intentRequiredProof = /* @__PURE__ */ new Map();
|
|
2234
|
+
this.publicIntents = /* @__PURE__ */ new Set();
|
|
2235
|
+
this.anonymousIntents = /* @__PURE__ */ new Set();
|
|
2236
|
+
this.intentRateLimits = /* @__PURE__ */ new Map();
|
|
2073
2237
|
this.cceHandlers = /* @__PURE__ */ new Map();
|
|
2074
2238
|
this.ccePipelineConfig = null;
|
|
2075
2239
|
}
|
|
@@ -2325,6 +2489,56 @@ var require_intent_router = __commonJS({
|
|
|
2325
2489
|
this.intentChains.set(intent, chainConfig);
|
|
2326
2490
|
}
|
|
2327
2491
|
}
|
|
2492
|
+
const methodSensitivity = Reflect.getMetadata(intent_policy_decorator_1.SENSITIVITY_METADATA_KEY, proto, methodName);
|
|
2493
|
+
const classSensitivity = Reflect.getMetadata(intent_policy_decorator_1.SENSITIVITY_METADATA_KEY, proto.constructor);
|
|
2494
|
+
const sensitivity = methodSensitivity ?? classSensitivity;
|
|
2495
|
+
if (sensitivity) {
|
|
2496
|
+
this.intentSensitivity.set(intent, sensitivity);
|
|
2497
|
+
}
|
|
2498
|
+
const methodContract = Reflect.getMetadata(intent_policy_decorator_1.CONTRACT_METADATA_KEY, proto, methodName);
|
|
2499
|
+
const classContract = Reflect.getMetadata(intent_policy_decorator_1.CONTRACT_METADATA_KEY, proto.constructor);
|
|
2500
|
+
const contract = methodContract ?? classContract;
|
|
2501
|
+
if (contract) {
|
|
2502
|
+
this.intentContracts.set(intent, contract);
|
|
2503
|
+
}
|
|
2504
|
+
const methodProof = Reflect.getMetadata(intent_policy_decorator_1.REQUIRED_PROOF_METADATA_KEY, proto, methodName);
|
|
2505
|
+
const classProof = Reflect.getMetadata(intent_policy_decorator_1.REQUIRED_PROOF_METADATA_KEY, proto.constructor);
|
|
2506
|
+
const requiredProof = methodProof ?? classProof;
|
|
2507
|
+
if (requiredProof && requiredProof.length > 0) {
|
|
2508
|
+
this.intentRequiredProof.set(intent, requiredProof);
|
|
2509
|
+
}
|
|
2510
|
+
const isPublicMethod = Reflect.getMetadata(intent_policy_decorator_1.AXIS_PUBLIC_KEY, proto, methodName);
|
|
2511
|
+
const isPublicClass = Reflect.getMetadata(intent_policy_decorator_1.AXIS_PUBLIC_KEY, proto.constructor);
|
|
2512
|
+
if (isPublicMethod || isPublicClass) {
|
|
2513
|
+
this.publicIntents.add(intent);
|
|
2514
|
+
}
|
|
2515
|
+
const isAnonMethod = Reflect.getMetadata(intent_policy_decorator_1.AXIS_ANONYMOUS_KEY, proto, methodName);
|
|
2516
|
+
const isAnonClass = Reflect.getMetadata(intent_policy_decorator_1.AXIS_ANONYMOUS_KEY, proto.constructor);
|
|
2517
|
+
if (isAnonMethod || isAnonClass) {
|
|
2518
|
+
this.anonymousIntents.add(intent);
|
|
2519
|
+
}
|
|
2520
|
+
const rateLimit = Reflect.getMetadata(intent_policy_decorator_1.AXIS_RATE_LIMIT_KEY, proto, methodName);
|
|
2521
|
+
if (rateLimit) {
|
|
2522
|
+
this.intentRateLimits.set(intent, rateLimit);
|
|
2523
|
+
}
|
|
2524
|
+
}
|
|
2525
|
+
getSensitivity(intent) {
|
|
2526
|
+
return this.intentSensitivity.get(intent);
|
|
2527
|
+
}
|
|
2528
|
+
getContract(intent) {
|
|
2529
|
+
return this.intentContracts.get(intent);
|
|
2530
|
+
}
|
|
2531
|
+
getRequiredProof(intent) {
|
|
2532
|
+
return this.intentRequiredProof.get(intent);
|
|
2533
|
+
}
|
|
2534
|
+
isPublic(intent) {
|
|
2535
|
+
return this.publicIntents.has(intent);
|
|
2536
|
+
}
|
|
2537
|
+
isAnonymous(intent) {
|
|
2538
|
+
return this.anonymousIntents.has(intent);
|
|
2539
|
+
}
|
|
2540
|
+
getRateLimit(intent) {
|
|
2541
|
+
return this.intentRateLimits.get(intent);
|
|
2328
2542
|
}
|
|
2329
2543
|
async emitIntentObservers(bindings, context) {
|
|
2330
2544
|
if (!this.observerDispatcher || bindings.length === 0)
|
|
@@ -2525,7 +2739,11 @@ var require_intent_router = __commonJS({
|
|
|
2525
2739
|
envelope: (0, axis_protocol_1.decodeChainEnvelope)(bytes2)
|
|
2526
2740
|
};
|
|
2527
2741
|
} catch (envelopeError) {
|
|
2528
|
-
const reason = [
|
|
2742
|
+
const reason = [
|
|
2743
|
+
jsonError?.message,
|
|
2744
|
+
requestError.message,
|
|
2745
|
+
envelopeError.message
|
|
2746
|
+
].filter(Boolean).join(" | ");
|
|
2529
2747
|
throw new Error(`CHAIN.EXEC decode failed: ${reason}`);
|
|
2530
2748
|
}
|
|
2531
2749
|
}
|
|
@@ -7135,120 +7353,15 @@ var init_crypto = __esm({
|
|
|
7135
7353
|
}
|
|
7136
7354
|
});
|
|
7137
7355
|
|
|
7138
|
-
// src/decorators/intent-policy.decorator.ts
|
|
7139
|
-
import "reflect-metadata";
|
|
7140
|
-
function Sensitivity(level) {
|
|
7141
|
-
return ((target, propertyKey) => {
|
|
7142
|
-
if (propertyKey !== void 0) {
|
|
7143
|
-
Reflect.defineMetadata(
|
|
7144
|
-
SENSITIVITY_METADATA_KEY,
|
|
7145
|
-
level,
|
|
7146
|
-
target,
|
|
7147
|
-
propertyKey
|
|
7148
|
-
);
|
|
7149
|
-
return;
|
|
7150
|
-
}
|
|
7151
|
-
Reflect.defineMetadata(SENSITIVITY_METADATA_KEY, level, target);
|
|
7152
|
-
});
|
|
7153
|
-
}
|
|
7154
|
-
function Contract(options) {
|
|
7155
|
-
return ((target, propertyKey) => {
|
|
7156
|
-
if (propertyKey !== void 0) {
|
|
7157
|
-
Reflect.defineMetadata(
|
|
7158
|
-
CONTRACT_METADATA_KEY,
|
|
7159
|
-
options,
|
|
7160
|
-
target,
|
|
7161
|
-
propertyKey
|
|
7162
|
-
);
|
|
7163
|
-
return;
|
|
7164
|
-
}
|
|
7165
|
-
Reflect.defineMetadata(CONTRACT_METADATA_KEY, options, target);
|
|
7166
|
-
});
|
|
7167
|
-
}
|
|
7168
|
-
function RequiredProof(proofs) {
|
|
7169
|
-
return ((target, propertyKey) => {
|
|
7170
|
-
if (propertyKey !== void 0) {
|
|
7171
|
-
Reflect.defineMetadata(
|
|
7172
|
-
REQUIRED_PROOF_METADATA_KEY,
|
|
7173
|
-
proofs,
|
|
7174
|
-
target,
|
|
7175
|
-
propertyKey
|
|
7176
|
-
);
|
|
7177
|
-
return;
|
|
7178
|
-
}
|
|
7179
|
-
Reflect.defineMetadata(
|
|
7180
|
-
REQUIRED_PROOF_METADATA_KEY,
|
|
7181
|
-
proofs,
|
|
7182
|
-
target
|
|
7183
|
-
);
|
|
7184
|
-
});
|
|
7185
|
-
}
|
|
7186
|
-
function Capsule() {
|
|
7187
|
-
return ((target, propertyKey) => {
|
|
7188
|
-
const existing = propertyKey !== void 0 ? Reflect.getMetadata(
|
|
7189
|
-
REQUIRED_PROOF_METADATA_KEY,
|
|
7190
|
-
target,
|
|
7191
|
-
propertyKey
|
|
7192
|
-
) ?? [] : Reflect.getMetadata(
|
|
7193
|
-
REQUIRED_PROOF_METADATA_KEY,
|
|
7194
|
-
target
|
|
7195
|
-
) ?? [];
|
|
7196
|
-
const merged = existing.includes("CAPSULE") ? existing : [...existing, "CAPSULE"];
|
|
7197
|
-
if (propertyKey !== void 0) {
|
|
7198
|
-
Reflect.defineMetadata(
|
|
7199
|
-
REQUIRED_PROOF_METADATA_KEY,
|
|
7200
|
-
merged,
|
|
7201
|
-
target,
|
|
7202
|
-
propertyKey
|
|
7203
|
-
);
|
|
7204
|
-
} else {
|
|
7205
|
-
Reflect.defineMetadata(
|
|
7206
|
-
REQUIRED_PROOF_METADATA_KEY,
|
|
7207
|
-
merged,
|
|
7208
|
-
target
|
|
7209
|
-
);
|
|
7210
|
-
}
|
|
7211
|
-
});
|
|
7212
|
-
}
|
|
7213
|
-
function Witness() {
|
|
7214
|
-
return ((target, propertyKey) => {
|
|
7215
|
-
const existing = propertyKey !== void 0 ? Reflect.getMetadata(
|
|
7216
|
-
REQUIRED_PROOF_METADATA_KEY,
|
|
7217
|
-
target,
|
|
7218
|
-
propertyKey
|
|
7219
|
-
) ?? [] : Reflect.getMetadata(
|
|
7220
|
-
REQUIRED_PROOF_METADATA_KEY,
|
|
7221
|
-
target
|
|
7222
|
-
) ?? [];
|
|
7223
|
-
const merged = existing.includes("WITNESS") ? existing : [...existing, "WITNESS"];
|
|
7224
|
-
if (propertyKey !== void 0) {
|
|
7225
|
-
Reflect.defineMetadata(
|
|
7226
|
-
REQUIRED_PROOF_METADATA_KEY,
|
|
7227
|
-
merged,
|
|
7228
|
-
target,
|
|
7229
|
-
propertyKey
|
|
7230
|
-
);
|
|
7231
|
-
} else {
|
|
7232
|
-
Reflect.defineMetadata(
|
|
7233
|
-
REQUIRED_PROOF_METADATA_KEY,
|
|
7234
|
-
merged,
|
|
7235
|
-
target
|
|
7236
|
-
);
|
|
7237
|
-
}
|
|
7238
|
-
});
|
|
7239
|
-
}
|
|
7240
|
-
var SENSITIVITY_METADATA_KEY, CONTRACT_METADATA_KEY, REQUIRED_PROOF_METADATA_KEY;
|
|
7241
|
-
var init_intent_policy_decorator = __esm({
|
|
7242
|
-
"src/decorators/intent-policy.decorator.ts"() {
|
|
7243
|
-
SENSITIVITY_METADATA_KEY = "axis:sensitivity";
|
|
7244
|
-
CONTRACT_METADATA_KEY = "axis:contract";
|
|
7245
|
-
REQUIRED_PROOF_METADATA_KEY = "axis:required_proof";
|
|
7246
|
-
}
|
|
7247
|
-
});
|
|
7248
|
-
|
|
7249
7356
|
// src/decorators/index.ts
|
|
7250
7357
|
var decorators_exports = {};
|
|
7251
7358
|
__export(decorators_exports, {
|
|
7359
|
+
AXIS_ANONYMOUS_KEY: () => AXIS_ANONYMOUS_KEY,
|
|
7360
|
+
AXIS_PUBLIC_KEY: () => AXIS_PUBLIC_KEY,
|
|
7361
|
+
AXIS_RATE_LIMIT_KEY: () => AXIS_RATE_LIMIT_KEY,
|
|
7362
|
+
AxisAnonymous: () => AxisAnonymous,
|
|
7363
|
+
AxisPublic: () => AxisPublic,
|
|
7364
|
+
AxisRateLimit: () => AxisRateLimit,
|
|
7252
7365
|
CAPSULE_POLICY_METADATA_KEY: () => CAPSULE_POLICY_METADATA_KEY,
|
|
7253
7366
|
CHAIN_METADATA_KEY: () => CHAIN_METADATA_KEY,
|
|
7254
7367
|
CONTRACT_METADATA_KEY: () => CONTRACT_METADATA_KEY,
|
|
@@ -9390,14 +9503,18 @@ var index_exports = {};
|
|
|
9390
9503
|
__export(index_exports, {
|
|
9391
9504
|
ATS1_HDR: () => ATS1_HDR,
|
|
9392
9505
|
ATS1_SCHEMA: () => ATS1_SCHEMA,
|
|
9506
|
+
AXIS_ANONYMOUS_KEY: () => AXIS_ANONYMOUS_KEY,
|
|
9393
9507
|
AXIS_EXECUTION_CONTEXT_KEY: () => AXIS_EXECUTION_CONTEXT_KEY,
|
|
9394
9508
|
AXIS_MAGIC: () => AXIS_MAGIC,
|
|
9395
9509
|
AXIS_OPCODES: () => AXIS_OPCODES,
|
|
9510
|
+
AXIS_PUBLIC_KEY: () => AXIS_PUBLIC_KEY,
|
|
9511
|
+
AXIS_RATE_LIMIT_KEY: () => AXIS_RATE_LIMIT_KEY,
|
|
9396
9512
|
AXIS_UPLOAD_FILE_STORE: () => AXIS_UPLOAD_FILE_STORE,
|
|
9397
9513
|
AXIS_UPLOAD_RECEIPT_SIGNER: () => AXIS_UPLOAD_RECEIPT_SIGNER,
|
|
9398
9514
|
AXIS_UPLOAD_SESSION_STORE: () => AXIS_UPLOAD_SESSION_STORE,
|
|
9399
9515
|
AXIS_VERSION: () => AXIS_VERSION,
|
|
9400
9516
|
Ats1Codec: () => ats1_exports,
|
|
9517
|
+
AxisAnonymous: () => AxisAnonymous,
|
|
9401
9518
|
AxisChainExecutor: () => import_axis_chain.AxisChainExecutor,
|
|
9402
9519
|
AxisContext: () => import_axis_request.AxisContext,
|
|
9403
9520
|
AxisDemoPubkey: () => import_axis_request.AxisDemoPubkey,
|
|
@@ -9411,6 +9528,8 @@ __export(index_exports, {
|
|
|
9411
9528
|
AxisMediaTypes: () => AxisMediaTypes,
|
|
9412
9529
|
AxisPacketTags: () => T,
|
|
9413
9530
|
AxisPartialType: () => AxisPartialType,
|
|
9531
|
+
AxisPublic: () => AxisPublic,
|
|
9532
|
+
AxisRateLimit: () => AxisRateLimit,
|
|
9414
9533
|
AxisRaw: () => import_axis_request.AxisRaw,
|
|
9415
9534
|
AxisResponseDto: () => import_axis_response.AxisResponseDto,
|
|
9416
9535
|
AxisSensorChainService: () => import_axis_sensor_chain.AxisSensorChainService,
|
|
@@ -9422,9 +9541,12 @@ __export(index_exports, {
|
|
|
9422
9541
|
CCE_ERROR: () => CCE_ERROR,
|
|
9423
9542
|
CCE_PROTOCOL_VERSION: () => CCE_PROTOCOL_VERSION,
|
|
9424
9543
|
CHAIN_METADATA_KEY: () => CHAIN_METADATA_KEY,
|
|
9544
|
+
CONTRACT_METADATA_KEY: () => CONTRACT_METADATA_KEY,
|
|
9545
|
+
Capsule: () => Capsule,
|
|
9425
9546
|
CapsulePolicy: () => CapsulePolicy,
|
|
9426
9547
|
CceError: () => CceError,
|
|
9427
9548
|
Chain: () => Chain,
|
|
9549
|
+
Contract: () => Contract,
|
|
9428
9550
|
ContractViolationError: () => ContractViolationError,
|
|
9429
9551
|
DEFAULT_CONTRACTS: () => DEFAULT_CONTRACTS,
|
|
9430
9552
|
DEFAULT_TIMEOUT: () => DEFAULT_TIMEOUT,
|
|
@@ -9485,18 +9607,22 @@ __export(index_exports, {
|
|
|
9485
9607
|
PROOF_NONE: () => PROOF_NONE,
|
|
9486
9608
|
PROOF_WITNESS: () => PROOF_WITNESS,
|
|
9487
9609
|
ProofType: () => ProofType,
|
|
9610
|
+
REQUIRED_PROOF_METADATA_KEY: () => REQUIRED_PROOF_METADATA_KEY,
|
|
9488
9611
|
RESPONSE_TAG_CREATED_AT: () => import_axis_response.RESPONSE_TAG_CREATED_AT,
|
|
9489
9612
|
RESPONSE_TAG_CREATED_BY: () => import_axis_response.RESPONSE_TAG_CREATED_BY,
|
|
9490
9613
|
RESPONSE_TAG_ID: () => import_axis_response.RESPONSE_TAG_ID,
|
|
9491
9614
|
RESPONSE_TAG_UPDATED_AT: () => import_axis_response.RESPONSE_TAG_UPDATED_AT,
|
|
9492
9615
|
RESPONSE_TAG_UPDATED_BY: () => import_axis_response.RESPONSE_TAG_UPDATED_BY,
|
|
9616
|
+
RequiredProof: () => RequiredProof,
|
|
9493
9617
|
ResponseObserver: () => ResponseObserver,
|
|
9494
9618
|
RiskDecision: () => RiskDecision,
|
|
9619
|
+
SENSITIVITY_METADATA_KEY: () => SENSITIVITY_METADATA_KEY,
|
|
9495
9620
|
SENSOR_METADATA_KEY: () => SENSOR_METADATA_KEY,
|
|
9496
9621
|
Schema2002_PasskeyLoginOptionsRes: () => Schema2002_PasskeyLoginOptionsRes,
|
|
9497
9622
|
Schema2011_PasskeyLoginVerifyReq: () => Schema2011_PasskeyLoginVerifyReq,
|
|
9498
9623
|
Schema2012_PasskeyLoginVerifyRes: () => Schema2012_PasskeyLoginVerifyRes,
|
|
9499
9624
|
Schema2021_PasskeyRegisterOptionsReq: () => Schema2021_PasskeyRegisterOptionsReq,
|
|
9625
|
+
Sensitivity: () => Sensitivity,
|
|
9500
9626
|
Sensor: () => Sensor,
|
|
9501
9627
|
SensorDecisions: () => SensorDecisions,
|
|
9502
9628
|
SensorDiscoveryService: () => import_sensor_discovery.SensorDiscoveryService,
|
|
@@ -9544,6 +9670,7 @@ __export(index_exports, {
|
|
|
9544
9670
|
TlvRange: () => TlvRange,
|
|
9545
9671
|
TlvUtf8Pattern: () => TlvUtf8Pattern,
|
|
9546
9672
|
TlvValidate: () => TlvValidate,
|
|
9673
|
+
Witness: () => Witness,
|
|
9547
9674
|
axis1SigningBytes: () => axis1SigningBytes,
|
|
9548
9675
|
b64urlDecode: () => b64urlDecode,
|
|
9549
9676
|
b64urlDecodeString: () => b64urlDecodeString,
|
|
@@ -9641,6 +9768,7 @@ var init_index = __esm({
|
|
|
9641
9768
|
"src/index.ts"() {
|
|
9642
9769
|
init_chain_decorator();
|
|
9643
9770
|
init_capsule_policy_decorator();
|
|
9771
|
+
init_intent_policy_decorator();
|
|
9644
9772
|
init_handler_decorator();
|
|
9645
9773
|
init_intent_decorator();
|
|
9646
9774
|
init_intent_body_decorator();
|
|
@@ -9746,14 +9874,18 @@ var export_extractDtoSchema = import_dto_schema.extractDtoSchema;
|
|
|
9746
9874
|
export {
|
|
9747
9875
|
ATS1_HDR,
|
|
9748
9876
|
ATS1_SCHEMA,
|
|
9877
|
+
AXIS_ANONYMOUS_KEY,
|
|
9749
9878
|
AXIS_EXECUTION_CONTEXT_KEY,
|
|
9750
9879
|
AXIS_MAGIC,
|
|
9751
9880
|
AXIS_OPCODES,
|
|
9881
|
+
AXIS_PUBLIC_KEY,
|
|
9882
|
+
AXIS_RATE_LIMIT_KEY,
|
|
9752
9883
|
AXIS_UPLOAD_FILE_STORE,
|
|
9753
9884
|
AXIS_UPLOAD_RECEIPT_SIGNER,
|
|
9754
9885
|
AXIS_UPLOAD_SESSION_STORE,
|
|
9755
9886
|
AXIS_VERSION,
|
|
9756
9887
|
ats1_exports as Ats1Codec,
|
|
9888
|
+
AxisAnonymous,
|
|
9757
9889
|
export_AxisChainExecutor as AxisChainExecutor,
|
|
9758
9890
|
export_AxisContext as AxisContext,
|
|
9759
9891
|
export_AxisDemoPubkey as AxisDemoPubkey,
|
|
@@ -9767,6 +9899,8 @@ export {
|
|
|
9767
9899
|
AxisMediaTypes,
|
|
9768
9900
|
T as AxisPacketTags,
|
|
9769
9901
|
AxisPartialType,
|
|
9902
|
+
AxisPublic,
|
|
9903
|
+
AxisRateLimit,
|
|
9770
9904
|
export_AxisRaw as AxisRaw,
|
|
9771
9905
|
export_AxisResponseDto as AxisResponseDto,
|
|
9772
9906
|
export_AxisSensorChainService as AxisSensorChainService,
|
|
@@ -9778,9 +9912,12 @@ export {
|
|
|
9778
9912
|
CCE_ERROR,
|
|
9779
9913
|
CCE_PROTOCOL_VERSION,
|
|
9780
9914
|
CHAIN_METADATA_KEY,
|
|
9915
|
+
CONTRACT_METADATA_KEY,
|
|
9916
|
+
Capsule,
|
|
9781
9917
|
CapsulePolicy,
|
|
9782
9918
|
CceError,
|
|
9783
9919
|
Chain,
|
|
9920
|
+
Contract,
|
|
9784
9921
|
ContractViolationError,
|
|
9785
9922
|
DEFAULT_CONTRACTS,
|
|
9786
9923
|
DEFAULT_TIMEOUT,
|
|
@@ -9841,18 +9978,22 @@ export {
|
|
|
9841
9978
|
PROOF_NONE,
|
|
9842
9979
|
PROOF_WITNESS,
|
|
9843
9980
|
ProofType,
|
|
9981
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
9844
9982
|
export_RESPONSE_TAG_CREATED_AT as RESPONSE_TAG_CREATED_AT,
|
|
9845
9983
|
export_RESPONSE_TAG_CREATED_BY as RESPONSE_TAG_CREATED_BY,
|
|
9846
9984
|
export_RESPONSE_TAG_ID as RESPONSE_TAG_ID,
|
|
9847
9985
|
export_RESPONSE_TAG_UPDATED_AT as RESPONSE_TAG_UPDATED_AT,
|
|
9848
9986
|
export_RESPONSE_TAG_UPDATED_BY as RESPONSE_TAG_UPDATED_BY,
|
|
9987
|
+
RequiredProof,
|
|
9849
9988
|
ResponseObserver,
|
|
9850
9989
|
RiskDecision,
|
|
9990
|
+
SENSITIVITY_METADATA_KEY,
|
|
9851
9991
|
SENSOR_METADATA_KEY,
|
|
9852
9992
|
Schema2002_PasskeyLoginOptionsRes,
|
|
9853
9993
|
Schema2011_PasskeyLoginVerifyReq,
|
|
9854
9994
|
Schema2012_PasskeyLoginVerifyRes,
|
|
9855
9995
|
Schema2021_PasskeyRegisterOptionsReq,
|
|
9996
|
+
Sensitivity,
|
|
9856
9997
|
Sensor,
|
|
9857
9998
|
SensorDecisions,
|
|
9858
9999
|
export_SensorDiscoveryService as SensorDiscoveryService,
|
|
@@ -9900,6 +10041,7 @@ export {
|
|
|
9900
10041
|
TlvRange,
|
|
9901
10042
|
TlvUtf8Pattern,
|
|
9902
10043
|
TlvValidate,
|
|
10044
|
+
Witness,
|
|
9903
10045
|
axis1SigningBytes,
|
|
9904
10046
|
b64urlDecode,
|
|
9905
10047
|
b64urlDecodeString,
|