@nextera.one/axis-server-sdk 2.2.2 → 2.2.4
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-B2G6cbRL.d.mts → index-C4ApiXHX.d.mts} +38 -25
- package/dist/{index-DbSxdR0f.d.ts → index-QGwgvVDY.d.ts} +38 -25
- package/dist/index.d.mts +9 -23
- package/dist/index.d.ts +9 -23
- package/dist/index.js +163 -196
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +159 -198
- package/dist/index.mjs.map +1 -1
- package/dist/sensors/index.d.mts +1 -1
- package/dist/sensors/index.d.ts +1 -1
- package/dist/sensors/index.js +161 -190
- package/dist/sensors/index.js.map +1 -1
- package/dist/sensors/index.mjs +157 -186
- package/dist/sensors/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -273,17 +273,76 @@ var init_intent_policy_decorator = __esm({
|
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
275
|
|
|
276
|
-
// src/decorators/handler.decorator.ts
|
|
276
|
+
// src/decorators/handler-sensors.decorator.ts
|
|
277
277
|
import "reflect-metadata";
|
|
278
|
-
function
|
|
278
|
+
function HandlerSensors(sensors) {
|
|
279
279
|
return (target) => {
|
|
280
|
-
Reflect.defineMetadata(
|
|
280
|
+
Reflect.defineMetadata(HANDLER_SENSORS_KEY, sensors, target);
|
|
281
281
|
};
|
|
282
282
|
}
|
|
283
|
-
var
|
|
284
|
-
var
|
|
285
|
-
"src/decorators/handler.decorator.ts"() {
|
|
286
|
-
|
|
283
|
+
var HANDLER_SENSORS_KEY;
|
|
284
|
+
var init_handler_sensors_decorator = __esm({
|
|
285
|
+
"src/decorators/handler-sensors.decorator.ts"() {
|
|
286
|
+
HANDLER_SENSORS_KEY = "axis:handler:sensors";
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
|
|
290
|
+
// src/decorators/observer.decorator.ts
|
|
291
|
+
import "reflect-metadata";
|
|
292
|
+
function isBindingOptions(value) {
|
|
293
|
+
return !!value && typeof value === "object" && "use" in value;
|
|
294
|
+
}
|
|
295
|
+
function isDefinitionOptions(value) {
|
|
296
|
+
return !!value && typeof value === "object" && !Array.isArray(value) && !isBindingOptions(value);
|
|
297
|
+
}
|
|
298
|
+
function toObserverBinding(input) {
|
|
299
|
+
if (!input) return null;
|
|
300
|
+
if (isBindingOptions(input)) {
|
|
301
|
+
const refs = Array.isArray(input.use) ? input.use : [input.use];
|
|
302
|
+
return { refs, tags: input.tags, events: input.events };
|
|
303
|
+
}
|
|
304
|
+
if (Array.isArray(input)) {
|
|
305
|
+
return { refs: input };
|
|
306
|
+
}
|
|
307
|
+
if (typeof input === "function" || typeof input === "string") {
|
|
308
|
+
return { refs: [input] };
|
|
309
|
+
}
|
|
310
|
+
return null;
|
|
311
|
+
}
|
|
312
|
+
function Observer(input) {
|
|
313
|
+
return ((target, propertyKey) => {
|
|
314
|
+
const binding = toObserverBinding(input);
|
|
315
|
+
if (binding) {
|
|
316
|
+
if (propertyKey !== void 0) {
|
|
317
|
+
const existing2 = Reflect.getMetadata(OBSERVER_BINDINGS_KEY, target, propertyKey) || [];
|
|
318
|
+
existing2.push(binding);
|
|
319
|
+
Reflect.defineMetadata(
|
|
320
|
+
OBSERVER_BINDINGS_KEY,
|
|
321
|
+
existing2,
|
|
322
|
+
target,
|
|
323
|
+
propertyKey
|
|
324
|
+
);
|
|
325
|
+
return;
|
|
326
|
+
}
|
|
327
|
+
const existing = Reflect.getMetadata(OBSERVER_BINDINGS_KEY, target) || [];
|
|
328
|
+
existing.push(binding);
|
|
329
|
+
Reflect.defineMetadata(OBSERVER_BINDINGS_KEY, existing, target);
|
|
330
|
+
return;
|
|
331
|
+
}
|
|
332
|
+
if (propertyKey !== void 0) {
|
|
333
|
+
throw new Error(
|
|
334
|
+
"@Observer method usage must reference one or more observer classes or names"
|
|
335
|
+
);
|
|
336
|
+
}
|
|
337
|
+
const definition = isDefinitionOptions(input) ? input : {};
|
|
338
|
+
Reflect.defineMetadata(OBSERVER_METADATA_KEY, definition, target);
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
var OBSERVER_METADATA_KEY, OBSERVER_BINDINGS_KEY;
|
|
342
|
+
var init_observer_decorator = __esm({
|
|
343
|
+
"src/decorators/observer.decorator.ts"() {
|
|
344
|
+
OBSERVER_METADATA_KEY = "axis:observer";
|
|
345
|
+
OBSERVER_BINDINGS_KEY = "axis:observer:bindings";
|
|
287
346
|
}
|
|
288
347
|
});
|
|
289
348
|
|
|
@@ -303,6 +362,21 @@ var init_intent_body_decorator = __esm({
|
|
|
303
362
|
|
|
304
363
|
// src/decorators/intent.decorator.ts
|
|
305
364
|
import "reflect-metadata";
|
|
365
|
+
function isIntentSensorBindingOptions(value) {
|
|
366
|
+
return !!value && typeof value === "object" && !Array.isArray(value) && "use" in value;
|
|
367
|
+
}
|
|
368
|
+
function toIntentSensorBinding(input) {
|
|
369
|
+
if (isIntentSensorBindingOptions(input)) {
|
|
370
|
+
return {
|
|
371
|
+
ref: input.use,
|
|
372
|
+
when: input.when || "before"
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
return {
|
|
376
|
+
ref: input,
|
|
377
|
+
when: "before"
|
|
378
|
+
};
|
|
379
|
+
}
|
|
306
380
|
function Intent(action, options) {
|
|
307
381
|
return (target, propertyKey) => {
|
|
308
382
|
const metadata = { intent: action, ...options };
|
|
@@ -350,90 +424,62 @@ var init_intent_decorator = __esm({
|
|
|
350
424
|
}
|
|
351
425
|
});
|
|
352
426
|
|
|
353
|
-
// src/decorators/
|
|
354
|
-
import "reflect-metadata";
|
|
355
|
-
function IntentSensors(sensors) {
|
|
356
|
-
return (target, propertyKey) => {
|
|
357
|
-
Reflect.defineMetadata(INTENT_SENSORS_KEY, sensors, target, propertyKey);
|
|
358
|
-
};
|
|
359
|
-
}
|
|
360
|
-
var INTENT_SENSORS_KEY;
|
|
361
|
-
var init_intent_sensors_decorator = __esm({
|
|
362
|
-
"src/decorators/intent-sensors.decorator.ts"() {
|
|
363
|
-
INTENT_SENSORS_KEY = "axis:intent:sensors";
|
|
364
|
-
}
|
|
365
|
-
});
|
|
366
|
-
|
|
367
|
-
// src/decorators/observer.decorator.ts
|
|
427
|
+
// src/decorators/handler.decorator.ts
|
|
368
428
|
import "reflect-metadata";
|
|
369
|
-
function
|
|
370
|
-
return
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
const binding = toBinding(input);
|
|
392
|
-
if (binding) {
|
|
393
|
-
if (propertyKey !== void 0) {
|
|
394
|
-
const existing2 = Reflect.getMetadata(OBSERVER_BINDINGS_KEY, target, propertyKey) || [];
|
|
395
|
-
existing2.push(binding);
|
|
396
|
-
Reflect.defineMetadata(
|
|
397
|
-
OBSERVER_BINDINGS_KEY,
|
|
398
|
-
existing2,
|
|
399
|
-
target,
|
|
400
|
-
propertyKey
|
|
401
|
-
);
|
|
402
|
-
return;
|
|
403
|
-
}
|
|
404
|
-
const existing = Reflect.getMetadata(OBSERVER_BINDINGS_KEY, target) || [];
|
|
405
|
-
existing.push(binding);
|
|
406
|
-
Reflect.defineMetadata(OBSERVER_BINDINGS_KEY, existing, target);
|
|
407
|
-
return;
|
|
429
|
+
function Handler(intentOrOptions, options) {
|
|
430
|
+
return (target) => {
|
|
431
|
+
const intent = typeof intentOrOptions === "string" ? intentOrOptions : void 0;
|
|
432
|
+
const handlerOptions = typeof intentOrOptions === "string" ? options : intentOrOptions;
|
|
433
|
+
const sensorBindings = Array.isArray(handlerOptions?.is) ? handlerOptions.is.map(
|
|
434
|
+
(input) => toIntentSensorBinding(input)
|
|
435
|
+
) : [];
|
|
436
|
+
const observerBindings = Array.isArray(
|
|
437
|
+
handlerOptions?.observe
|
|
438
|
+
) ? handlerOptions.observe.map((input) => toObserverBinding(input)).filter((binding) => !!binding) : [];
|
|
439
|
+
Reflect.defineMetadata(
|
|
440
|
+
HANDLER_METADATA_KEY,
|
|
441
|
+
{ intent, ...handlerOptions || {} },
|
|
442
|
+
target
|
|
443
|
+
);
|
|
444
|
+
if (sensorBindings.length > 0) {
|
|
445
|
+
const existing = Reflect.getMetadata(HANDLER_SENSORS_KEY, target) || [];
|
|
446
|
+
Reflect.defineMetadata(
|
|
447
|
+
HANDLER_SENSORS_KEY,
|
|
448
|
+
[...existing, ...sensorBindings],
|
|
449
|
+
target
|
|
450
|
+
);
|
|
408
451
|
}
|
|
409
|
-
if (
|
|
410
|
-
|
|
411
|
-
|
|
452
|
+
if (observerBindings.length > 0) {
|
|
453
|
+
const existing = Reflect.getMetadata(OBSERVER_BINDINGS_KEY, target) || [];
|
|
454
|
+
Reflect.defineMetadata(
|
|
455
|
+
OBSERVER_BINDINGS_KEY,
|
|
456
|
+
[...existing, ...observerBindings],
|
|
457
|
+
target
|
|
412
458
|
);
|
|
413
459
|
}
|
|
414
|
-
|
|
415
|
-
Reflect.defineMetadata(OBSERVER_METADATA_KEY, definition, target);
|
|
416
|
-
});
|
|
460
|
+
};
|
|
417
461
|
}
|
|
418
|
-
var
|
|
419
|
-
var
|
|
420
|
-
"src/decorators/
|
|
421
|
-
|
|
422
|
-
|
|
462
|
+
var HANDLER_METADATA_KEY;
|
|
463
|
+
var init_handler_decorator = __esm({
|
|
464
|
+
"src/decorators/handler.decorator.ts"() {
|
|
465
|
+
init_handler_sensors_decorator();
|
|
466
|
+
init_observer_decorator();
|
|
467
|
+
init_intent_decorator();
|
|
468
|
+
HANDLER_METADATA_KEY = "axis:handler";
|
|
423
469
|
}
|
|
424
470
|
});
|
|
425
471
|
|
|
426
|
-
// src/decorators/
|
|
472
|
+
// src/decorators/intent-sensors.decorator.ts
|
|
427
473
|
import "reflect-metadata";
|
|
428
|
-
function
|
|
429
|
-
return (target) => {
|
|
430
|
-
Reflect.defineMetadata(
|
|
474
|
+
function IntentSensors(sensors) {
|
|
475
|
+
return (target, propertyKey) => {
|
|
476
|
+
Reflect.defineMetadata(INTENT_SENSORS_KEY, sensors, target, propertyKey);
|
|
431
477
|
};
|
|
432
478
|
}
|
|
433
|
-
var
|
|
434
|
-
var
|
|
435
|
-
"src/decorators/
|
|
436
|
-
|
|
479
|
+
var INTENT_SENSORS_KEY;
|
|
480
|
+
var init_intent_sensors_decorator = __esm({
|
|
481
|
+
"src/decorators/intent-sensors.decorator.ts"() {
|
|
482
|
+
INTENT_SENSORS_KEY = "axis:intent:sensors";
|
|
437
483
|
}
|
|
438
484
|
});
|
|
439
485
|
|
|
@@ -456,92 +502,6 @@ var init_sensor_decorator = __esm({
|
|
|
456
502
|
}
|
|
457
503
|
});
|
|
458
504
|
|
|
459
|
-
// src/decorators/priority-order.decorator.ts
|
|
460
|
-
var require_priority_order_decorator = __commonJS({
|
|
461
|
-
"src/decorators/priority-order.decorator.ts"(exports) {
|
|
462
|
-
"use strict";
|
|
463
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
464
|
-
exports.priorityOrder = exports.PRIORITY_ORDER_METADATA_KEY = void 0;
|
|
465
|
-
exports.getPriorityOrder = getPriorityOrder2;
|
|
466
|
-
exports.comparePriorityOrder = comparePriorityOrder2;
|
|
467
|
-
exports.getPriorityOrderedTargets = getPriorityOrderedTargets2;
|
|
468
|
-
exports.PriorityOrder = PriorityOrder2;
|
|
469
|
-
__require("reflect-metadata");
|
|
470
|
-
exports.PRIORITY_ORDER_METADATA_KEY = "axis:priority-order";
|
|
471
|
-
var PRIORITY_ORDER_WEIGHT = {
|
|
472
|
-
HIGH: 0,
|
|
473
|
-
MEDIUM: 1,
|
|
474
|
-
LOW: 2
|
|
475
|
-
};
|
|
476
|
-
var priorityOrderRegistry = /* @__PURE__ */ new Set();
|
|
477
|
-
function normalizePriority(priority) {
|
|
478
|
-
const normalized = String(priority).toUpperCase();
|
|
479
|
-
if (normalized === "HIGH" || normalized === "MEDIUM" || normalized === "LOW") {
|
|
480
|
-
return normalized;
|
|
481
|
-
}
|
|
482
|
-
throw new Error(`@PriorityOrder() received invalid priority "${String(priority)}"`);
|
|
483
|
-
}
|
|
484
|
-
function normalizeOrder(order) {
|
|
485
|
-
if (typeof order !== "number" || !Number.isInteger(order) || !Number.isFinite(order) || order < 0) {
|
|
486
|
-
throw new Error(`@PriorityOrder() requires a non-negative integer order, received "${String(order)}"`);
|
|
487
|
-
}
|
|
488
|
-
return order;
|
|
489
|
-
}
|
|
490
|
-
function isPriorityOrderOptions(value) {
|
|
491
|
-
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
492
|
-
}
|
|
493
|
-
function resolvePriorityOrder(priorityOrOptions, order = 0) {
|
|
494
|
-
if (isPriorityOrderOptions(priorityOrOptions)) {
|
|
495
|
-
return {
|
|
496
|
-
priority: normalizePriority(priorityOrOptions.priority ?? "MEDIUM"),
|
|
497
|
-
order: normalizeOrder(priorityOrOptions.order ?? 0)
|
|
498
|
-
};
|
|
499
|
-
}
|
|
500
|
-
return {
|
|
501
|
-
priority: normalizePriority(priorityOrOptions ?? "MEDIUM"),
|
|
502
|
-
order: normalizeOrder(order)
|
|
503
|
-
};
|
|
504
|
-
}
|
|
505
|
-
function getPriorityOrder2(target) {
|
|
506
|
-
return Reflect.getMetadata(exports.PRIORITY_ORDER_METADATA_KEY, target) ?? null;
|
|
507
|
-
}
|
|
508
|
-
function comparePriorityOrder2(left, right) {
|
|
509
|
-
const priorityDelta = PRIORITY_ORDER_WEIGHT[left.priority] - PRIORITY_ORDER_WEIGHT[right.priority];
|
|
510
|
-
if (priorityDelta !== 0) {
|
|
511
|
-
return priorityDelta;
|
|
512
|
-
}
|
|
513
|
-
return left.order - right.order;
|
|
514
|
-
}
|
|
515
|
-
function getPriorityOrderedTargets2(targets) {
|
|
516
|
-
const pool = targets ? Array.from(targets) : Array.from(priorityOrderRegistry);
|
|
517
|
-
return pool.sort((left, right) => {
|
|
518
|
-
const leftMeta = getPriorityOrder2(left);
|
|
519
|
-
const rightMeta = getPriorityOrder2(right);
|
|
520
|
-
if (!leftMeta && !rightMeta) {
|
|
521
|
-
return (left.name || "").localeCompare(right.name || "");
|
|
522
|
-
}
|
|
523
|
-
if (!leftMeta)
|
|
524
|
-
return 1;
|
|
525
|
-
if (!rightMeta)
|
|
526
|
-
return -1;
|
|
527
|
-
const ordered = comparePriorityOrder2(leftMeta, rightMeta);
|
|
528
|
-
if (ordered !== 0) {
|
|
529
|
-
return ordered;
|
|
530
|
-
}
|
|
531
|
-
return (left.name || "").localeCompare(right.name || "");
|
|
532
|
-
});
|
|
533
|
-
}
|
|
534
|
-
function PriorityOrder2(priorityOrOptions, order = 0) {
|
|
535
|
-
const definition = resolvePriorityOrder(priorityOrOptions, order);
|
|
536
|
-
return (target) => {
|
|
537
|
-
Reflect.defineMetadata(exports.PRIORITY_ORDER_METADATA_KEY, definition, target);
|
|
538
|
-
priorityOrderRegistry.add(target);
|
|
539
|
-
};
|
|
540
|
-
}
|
|
541
|
-
exports.priorityOrder = PriorityOrder2;
|
|
542
|
-
}
|
|
543
|
-
});
|
|
544
|
-
|
|
545
505
|
// src/decorators/tlv-field.decorator.ts
|
|
546
506
|
var require_tlv_field_decorator = __commonJS({
|
|
547
507
|
"src/decorators/tlv-field.decorator.ts"(exports) {
|
|
@@ -2415,15 +2375,19 @@ function observerRefKey(ref) {
|
|
|
2415
2375
|
function sensorRefKey(ref) {
|
|
2416
2376
|
return typeof ref === "string" ? ref : ref.name;
|
|
2417
2377
|
}
|
|
2418
|
-
function
|
|
2378
|
+
function sensorBindingKey(binding) {
|
|
2379
|
+
return `${binding.when}:${sensorRefKey(binding.ref)}`;
|
|
2380
|
+
}
|
|
2381
|
+
function mergeIntentSensorBindings(...sensorGroups) {
|
|
2419
2382
|
const merged = /* @__PURE__ */ new Map();
|
|
2420
2383
|
for (const group of sensorGroups) {
|
|
2421
2384
|
if (!Array.isArray(group)) continue;
|
|
2422
|
-
for (const
|
|
2423
|
-
const
|
|
2385
|
+
for (const input of group) {
|
|
2386
|
+
const binding = toIntentSensorBinding(input);
|
|
2387
|
+
const key = sensorBindingKey(binding);
|
|
2424
2388
|
const existing = merged.get(key);
|
|
2425
|
-
if (!existing || typeof existing === "string" && typeof ref !== "string") {
|
|
2426
|
-
merged.set(key,
|
|
2389
|
+
if (!existing || typeof existing.ref === "string" && typeof binding.ref !== "string") {
|
|
2390
|
+
merged.set(key, binding);
|
|
2427
2391
|
}
|
|
2428
2392
|
}
|
|
2429
2393
|
}
|
|
@@ -2726,9 +2690,9 @@ var init_intent_router = __esm({
|
|
|
2726
2690
|
if (!handler) {
|
|
2727
2691
|
throw new Error(`Intent not found: ${intent}`);
|
|
2728
2692
|
}
|
|
2729
|
-
const
|
|
2730
|
-
if (
|
|
2731
|
-
await this.runIntentSensors(
|
|
2693
|
+
const sensorBindings = this.intentSensors.get(intent);
|
|
2694
|
+
if (sensorBindings && sensorBindings.length > 0) {
|
|
2695
|
+
await this.runIntentSensors(sensorBindings, intent, frame, "before");
|
|
2732
2696
|
}
|
|
2733
2697
|
const decoder = this.intentDecoders.get(intent);
|
|
2734
2698
|
let decodedBody = frame.body;
|
|
@@ -2770,6 +2734,12 @@ var init_intent_router = __esm({
|
|
|
2770
2734
|
);
|
|
2771
2735
|
}
|
|
2772
2736
|
}
|
|
2737
|
+
if (sensorBindings && sensorBindings.length > 0) {
|
|
2738
|
+
await this.runIntentSensors(sensorBindings, intent, frame, "after", {
|
|
2739
|
+
decodedBody,
|
|
2740
|
+
effect
|
|
2741
|
+
});
|
|
2742
|
+
}
|
|
2773
2743
|
}
|
|
2774
2744
|
await this.emitIntentObservers(observerBindings, {
|
|
2775
2745
|
event: "intent.completed",
|
|
@@ -2813,7 +2783,7 @@ var init_intent_router = __esm({
|
|
|
2813
2783
|
methodName
|
|
2814
2784
|
);
|
|
2815
2785
|
const meta = Reflect.getMetadata(INTENT_METADATA_KEY, proto, methodName);
|
|
2816
|
-
const combined =
|
|
2786
|
+
const combined = mergeIntentSensorBindings(
|
|
2817
2787
|
handlerSensors,
|
|
2818
2788
|
Array.isArray(intentSensors) ? intentSensors : void 0,
|
|
2819
2789
|
Array.isArray(meta?.is) ? meta.is : void 0
|
|
@@ -2955,8 +2925,10 @@ var init_intent_router = __esm({
|
|
|
2955
2925
|
if (!this.observerDispatcher || bindings.length === 0) return;
|
|
2956
2926
|
await this.observerDispatcher.dispatch(bindings, context);
|
|
2957
2927
|
}
|
|
2958
|
-
async runIntentSensors(
|
|
2959
|
-
for (const
|
|
2928
|
+
async runIntentSensors(sensorBindings, intent, frame, stage, extras) {
|
|
2929
|
+
for (const binding of sensorBindings) {
|
|
2930
|
+
if (binding.when !== stage && binding.when !== "both") continue;
|
|
2931
|
+
const sensorRef = binding.ref;
|
|
2960
2932
|
const sensor = this.resolveIntentSensor(sensorRef);
|
|
2961
2933
|
const sensorName = sensorRefKey(sensorRef);
|
|
2962
2934
|
if (!sensor) {
|
|
@@ -2973,9 +2945,12 @@ var init_intent_router = __esm({
|
|
|
2973
2945
|
frameBody: frame.body,
|
|
2974
2946
|
metadata: {
|
|
2975
2947
|
phase: "intent",
|
|
2948
|
+
stage,
|
|
2976
2949
|
intent,
|
|
2977
2950
|
schema: this.getSchema(intent),
|
|
2978
|
-
validators: this.getValidators(intent)
|
|
2951
|
+
validators: this.getValidators(intent),
|
|
2952
|
+
decodedBody: extras?.decodedBody,
|
|
2953
|
+
effect: extras?.effect
|
|
2979
2954
|
}
|
|
2980
2955
|
};
|
|
2981
2956
|
if (sensor.supports && !sensor.supports(sensorInput)) continue;
|
|
@@ -12634,7 +12609,6 @@ __export(index_exports, {
|
|
|
12634
12609
|
ObserverDispatcherService: () => ObserverDispatcherService,
|
|
12635
12610
|
ObserverRegistry: () => ObserverRegistry,
|
|
12636
12611
|
PRE_DECODE_BOUNDARY: () => PRE_DECODE_BOUNDARY,
|
|
12637
|
-
PRIORITY_ORDER_METADATA_KEY: () => import_priority_order.PRIORITY_ORDER_METADATA_KEY,
|
|
12638
12612
|
PROOF_CAPABILITIES: () => PROOF_CAPABILITIES,
|
|
12639
12613
|
PROOF_CAPSULE: () => PROOF_CAPSULE,
|
|
12640
12614
|
PROOF_JWT: () => PROOF_JWT,
|
|
@@ -12642,7 +12616,6 @@ __export(index_exports, {
|
|
|
12642
12616
|
PROOF_MTLS: () => PROOF_MTLS,
|
|
12643
12617
|
PROOF_NONE: () => PROOF_NONE,
|
|
12644
12618
|
PROOF_WITNESS: () => PROOF_WITNESS,
|
|
12645
|
-
PriorityOrder: () => import_priority_order.PriorityOrder,
|
|
12646
12619
|
ProofType: () => ProofType,
|
|
12647
12620
|
ProofVerificationService: () => ProofVerificationService,
|
|
12648
12621
|
REQUIRED_PROOF_METADATA_KEY: () => REQUIRED_PROOF_METADATA_KEY,
|
|
@@ -12734,7 +12707,6 @@ __export(index_exports, {
|
|
|
12734
12707
|
canonicalizeObservation: () => canonicalizeObservation,
|
|
12735
12708
|
canonicalizeWrit: () => canonicalizeWrit,
|
|
12736
12709
|
classifyIntent: () => classifyIntent,
|
|
12737
|
-
comparePriorityOrder: () => import_priority_order.comparePriorityOrder,
|
|
12738
12710
|
computeReceiptHash: () => computeReceiptHash,
|
|
12739
12711
|
computeSignaturePayload: () => computeSignaturePayload,
|
|
12740
12712
|
createFabric: () => createFabric,
|
|
@@ -12779,8 +12751,6 @@ __export(index_exports, {
|
|
|
12779
12751
|
getGrantStatus: () => getGrantStatus,
|
|
12780
12752
|
getIrreversibleKnots: () => getIrreversibleKnots,
|
|
12781
12753
|
getPresenceStatus: () => getPresenceStatus,
|
|
12782
|
-
getPriorityOrder: () => import_priority_order.getPriorityOrder,
|
|
12783
|
-
getPriorityOrderedTargets: () => import_priority_order.getPriorityOrderedTargets,
|
|
12784
12754
|
getSignTarget: () => getSignTarget,
|
|
12785
12755
|
grantCoversAction: () => grantCoversAction,
|
|
12786
12756
|
hasScope: () => hasScope,
|
|
@@ -12805,7 +12775,6 @@ __export(index_exports, {
|
|
|
12805
12775
|
parseAutoClaimEntries: () => parseAutoClaimEntries,
|
|
12806
12776
|
parseScope: () => parseScope,
|
|
12807
12777
|
parseStreamEntries: () => parseStreamEntries,
|
|
12808
|
-
priorityOrder: () => import_priority_order.priorityOrder,
|
|
12809
12778
|
projectAt: () => projectAt,
|
|
12810
12779
|
queryFabric: () => queryFabric,
|
|
12811
12780
|
recordOccurrence: () => recordOccurrence,
|
|
@@ -12822,6 +12791,8 @@ __export(index_exports, {
|
|
|
12822
12791
|
startStage: () => startStage,
|
|
12823
12792
|
tieKnot: () => tieKnot,
|
|
12824
12793
|
tlv: () => tlv,
|
|
12794
|
+
toIntentSensorBinding: () => toIntentSensorBinding,
|
|
12795
|
+
toObserverBinding: () => toObserverBinding,
|
|
12825
12796
|
u64be: () => u64be,
|
|
12826
12797
|
unpackPasskeyLoginOptionsReq: () => unpackPasskeyLoginOptionsReq,
|
|
12827
12798
|
unpackPasskeyLoginVerifyReq: () => unpackPasskeyLoginVerifyReq,
|
|
@@ -12842,7 +12813,7 @@ __export(index_exports, {
|
|
|
12842
12813
|
weave: () => weave,
|
|
12843
12814
|
withAxisExecutionContext: () => withAxisExecutionContext
|
|
12844
12815
|
});
|
|
12845
|
-
var
|
|
12816
|
+
var import_tlv_field2, import_dto_schema2, import_axis_id, import_axis_response;
|
|
12846
12817
|
var init_index = __esm({
|
|
12847
12818
|
"src/index.ts"() {
|
|
12848
12819
|
init_chain_decorator();
|
|
@@ -12853,9 +12824,9 @@ var init_index = __esm({
|
|
|
12853
12824
|
init_intent_body_decorator();
|
|
12854
12825
|
init_intent_sensors_decorator();
|
|
12855
12826
|
init_observer_decorator();
|
|
12827
|
+
init_observer_decorator();
|
|
12856
12828
|
init_handler_sensors_decorator();
|
|
12857
12829
|
init_sensor_decorator();
|
|
12858
|
-
import_priority_order = __toESM(require_priority_order_decorator());
|
|
12859
12830
|
import_tlv_field2 = __toESM(require_tlv_field_decorator());
|
|
12860
12831
|
import_dto_schema2 = __toESM(require_dto_schema_util());
|
|
12861
12832
|
init_axis_tlv_dto();
|
|
@@ -12927,8 +12898,6 @@ var init_index = __esm({
|
|
|
12927
12898
|
init_index();
|
|
12928
12899
|
var export_AxisIdDto = import_axis_id.AxisIdDto;
|
|
12929
12900
|
var export_AxisResponseDto = import_axis_response.AxisResponseDto;
|
|
12930
|
-
var export_PRIORITY_ORDER_METADATA_KEY = import_priority_order.PRIORITY_ORDER_METADATA_KEY;
|
|
12931
|
-
var export_PriorityOrder = import_priority_order.PriorityOrder;
|
|
12932
12901
|
var export_RESPONSE_TAG_CREATED_AT = import_axis_response.RESPONSE_TAG_CREATED_AT;
|
|
12933
12902
|
var export_RESPONSE_TAG_CREATED_BY = import_axis_response.RESPONSE_TAG_CREATED_BY;
|
|
12934
12903
|
var export_RESPONSE_TAG_ID = import_axis_response.RESPONSE_TAG_ID;
|
|
@@ -12943,11 +12912,7 @@ var export_TlvRange = import_tlv_field2.TlvRange;
|
|
|
12943
12912
|
var export_TlvUtf8Pattern = import_tlv_field2.TlvUtf8Pattern;
|
|
12944
12913
|
var export_TlvValidate = import_tlv_field2.TlvValidate;
|
|
12945
12914
|
var export_buildDtoDecoder = import_dto_schema2.buildDtoDecoder;
|
|
12946
|
-
var export_comparePriorityOrder = import_priority_order.comparePriorityOrder;
|
|
12947
12915
|
var export_extractDtoSchema = import_dto_schema2.extractDtoSchema;
|
|
12948
|
-
var export_getPriorityOrder = import_priority_order.getPriorityOrder;
|
|
12949
|
-
var export_getPriorityOrderedTargets = import_priority_order.getPriorityOrderedTargets;
|
|
12950
|
-
var export_priorityOrder = import_priority_order.priorityOrder;
|
|
12951
12916
|
export {
|
|
12952
12917
|
ATS1_HDR,
|
|
12953
12918
|
ATS1_SCHEMA,
|
|
@@ -13045,7 +13010,6 @@ export {
|
|
|
13045
13010
|
ObserverDispatcherService,
|
|
13046
13011
|
ObserverRegistry,
|
|
13047
13012
|
PRE_DECODE_BOUNDARY,
|
|
13048
|
-
export_PRIORITY_ORDER_METADATA_KEY as PRIORITY_ORDER_METADATA_KEY,
|
|
13049
13013
|
PROOF_CAPABILITIES,
|
|
13050
13014
|
PROOF_CAPSULE,
|
|
13051
13015
|
PROOF_JWT,
|
|
@@ -13053,7 +13017,6 @@ export {
|
|
|
13053
13017
|
PROOF_MTLS,
|
|
13054
13018
|
PROOF_NONE,
|
|
13055
13019
|
PROOF_WITNESS,
|
|
13056
|
-
export_PriorityOrder as PriorityOrder,
|
|
13057
13020
|
ProofType,
|
|
13058
13021
|
ProofVerificationService,
|
|
13059
13022
|
REQUIRED_PROOF_METADATA_KEY,
|
|
@@ -13145,7 +13108,6 @@ export {
|
|
|
13145
13108
|
canonicalizeObservation,
|
|
13146
13109
|
canonicalizeWrit,
|
|
13147
13110
|
classifyIntent,
|
|
13148
|
-
export_comparePriorityOrder as comparePriorityOrder,
|
|
13149
13111
|
computeReceiptHash,
|
|
13150
13112
|
computeSignaturePayload,
|
|
13151
13113
|
createFabric,
|
|
@@ -13190,8 +13152,6 @@ export {
|
|
|
13190
13152
|
getGrantStatus,
|
|
13191
13153
|
getIrreversibleKnots,
|
|
13192
13154
|
getPresenceStatus,
|
|
13193
|
-
export_getPriorityOrder as getPriorityOrder,
|
|
13194
|
-
export_getPriorityOrderedTargets as getPriorityOrderedTargets,
|
|
13195
13155
|
getSignTarget,
|
|
13196
13156
|
grantCoversAction,
|
|
13197
13157
|
hasScope,
|
|
@@ -13216,7 +13176,6 @@ export {
|
|
|
13216
13176
|
parseAutoClaimEntries,
|
|
13217
13177
|
parseScope,
|
|
13218
13178
|
parseStreamEntries,
|
|
13219
|
-
export_priorityOrder as priorityOrder,
|
|
13220
13179
|
projectAt,
|
|
13221
13180
|
queryFabric,
|
|
13222
13181
|
recordOccurrence,
|
|
@@ -13233,6 +13192,8 @@ export {
|
|
|
13233
13192
|
startStage,
|
|
13234
13193
|
tieKnot,
|
|
13235
13194
|
tlv,
|
|
13195
|
+
toIntentSensorBinding,
|
|
13196
|
+
toObserverBinding,
|
|
13236
13197
|
u64be,
|
|
13237
13198
|
unpackPasskeyLoginOptionsReq,
|
|
13238
13199
|
unpackPasskeyLoginVerifyReq,
|