@nextera.one/axis-server-sdk 2.1.4 → 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 +905 -905
- package/dist/index.d.ts +905 -905
- package/dist/index.js +200 -171
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +186 -157
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -133,6 +133,163 @@ var init_capsule_policy_decorator = __esm({
|
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
|
|
136
|
+
// src/decorators/intent-policy.decorator.ts
|
|
137
|
+
var intent_policy_decorator_exports = {};
|
|
138
|
+
__export(intent_policy_decorator_exports, {
|
|
139
|
+
AXIS_ANONYMOUS_KEY: () => AXIS_ANONYMOUS_KEY,
|
|
140
|
+
AXIS_PUBLIC_KEY: () => AXIS_PUBLIC_KEY,
|
|
141
|
+
AXIS_RATE_LIMIT_KEY: () => AXIS_RATE_LIMIT_KEY,
|
|
142
|
+
AxisAnonymous: () => AxisAnonymous,
|
|
143
|
+
AxisPublic: () => AxisPublic,
|
|
144
|
+
AxisRateLimit: () => AxisRateLimit,
|
|
145
|
+
CONTRACT_METADATA_KEY: () => CONTRACT_METADATA_KEY,
|
|
146
|
+
Capsule: () => Capsule,
|
|
147
|
+
Contract: () => Contract,
|
|
148
|
+
REQUIRED_PROOF_METADATA_KEY: () => REQUIRED_PROOF_METADATA_KEY,
|
|
149
|
+
RequiredProof: () => RequiredProof,
|
|
150
|
+
SENSITIVITY_METADATA_KEY: () => SENSITIVITY_METADATA_KEY,
|
|
151
|
+
Sensitivity: () => Sensitivity,
|
|
152
|
+
Witness: () => Witness
|
|
153
|
+
});
|
|
154
|
+
function Sensitivity(level) {
|
|
155
|
+
return ((target, propertyKey) => {
|
|
156
|
+
if (propertyKey !== void 0) {
|
|
157
|
+
Reflect.defineMetadata(
|
|
158
|
+
SENSITIVITY_METADATA_KEY,
|
|
159
|
+
level,
|
|
160
|
+
target,
|
|
161
|
+
propertyKey
|
|
162
|
+
);
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
Reflect.defineMetadata(SENSITIVITY_METADATA_KEY, level, target);
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
function Contract(options) {
|
|
169
|
+
return ((target, propertyKey) => {
|
|
170
|
+
if (propertyKey !== void 0) {
|
|
171
|
+
Reflect.defineMetadata(
|
|
172
|
+
CONTRACT_METADATA_KEY,
|
|
173
|
+
options,
|
|
174
|
+
target,
|
|
175
|
+
propertyKey
|
|
176
|
+
);
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
Reflect.defineMetadata(CONTRACT_METADATA_KEY, options, target);
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
function RequiredProof(proofs) {
|
|
183
|
+
return ((target, propertyKey) => {
|
|
184
|
+
if (propertyKey !== void 0) {
|
|
185
|
+
Reflect.defineMetadata(
|
|
186
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
187
|
+
proofs,
|
|
188
|
+
target,
|
|
189
|
+
propertyKey
|
|
190
|
+
);
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
Reflect.defineMetadata(
|
|
194
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
195
|
+
proofs,
|
|
196
|
+
target
|
|
197
|
+
);
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
function Capsule() {
|
|
201
|
+
return ((target, propertyKey) => {
|
|
202
|
+
const existing = propertyKey !== void 0 ? Reflect.getMetadata(
|
|
203
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
204
|
+
target,
|
|
205
|
+
propertyKey
|
|
206
|
+
) ?? [] : Reflect.getMetadata(
|
|
207
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
208
|
+
target
|
|
209
|
+
) ?? [];
|
|
210
|
+
const merged = existing.includes("CAPSULE") ? existing : [...existing, "CAPSULE"];
|
|
211
|
+
if (propertyKey !== void 0) {
|
|
212
|
+
Reflect.defineMetadata(
|
|
213
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
214
|
+
merged,
|
|
215
|
+
target,
|
|
216
|
+
propertyKey
|
|
217
|
+
);
|
|
218
|
+
} else {
|
|
219
|
+
Reflect.defineMetadata(
|
|
220
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
221
|
+
merged,
|
|
222
|
+
target
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
function Witness() {
|
|
228
|
+
return ((target, propertyKey) => {
|
|
229
|
+
const existing = propertyKey !== void 0 ? Reflect.getMetadata(
|
|
230
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
231
|
+
target,
|
|
232
|
+
propertyKey
|
|
233
|
+
) ?? [] : Reflect.getMetadata(
|
|
234
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
235
|
+
target
|
|
236
|
+
) ?? [];
|
|
237
|
+
const merged = existing.includes("WITNESS") ? existing : [...existing, "WITNESS"];
|
|
238
|
+
if (propertyKey !== void 0) {
|
|
239
|
+
Reflect.defineMetadata(
|
|
240
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
241
|
+
merged,
|
|
242
|
+
target,
|
|
243
|
+
propertyKey
|
|
244
|
+
);
|
|
245
|
+
} else {
|
|
246
|
+
Reflect.defineMetadata(
|
|
247
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
248
|
+
merged,
|
|
249
|
+
target
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
function AxisPublic() {
|
|
255
|
+
return (target, propertyKey, descriptor) => {
|
|
256
|
+
if (descriptor) {
|
|
257
|
+
Reflect.defineMetadata(AXIS_PUBLIC_KEY, true, target, propertyKey);
|
|
258
|
+
return descriptor;
|
|
259
|
+
}
|
|
260
|
+
Reflect.defineMetadata(AXIS_PUBLIC_KEY, true, target);
|
|
261
|
+
return target;
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
function AxisAnonymous() {
|
|
265
|
+
return (target, propertyKey, descriptor) => {
|
|
266
|
+
if (descriptor) {
|
|
267
|
+
Reflect.defineMetadata(AXIS_ANONYMOUS_KEY, true, target, propertyKey);
|
|
268
|
+
return descriptor;
|
|
269
|
+
}
|
|
270
|
+
Reflect.defineMetadata(AXIS_ANONYMOUS_KEY, true, target);
|
|
271
|
+
return target;
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
function AxisRateLimit(config) {
|
|
275
|
+
return (target, propertyKey, descriptor) => {
|
|
276
|
+
Reflect.defineMetadata(AXIS_RATE_LIMIT_KEY, config, target, propertyKey);
|
|
277
|
+
return descriptor;
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
var import_reflect_metadata3, SENSITIVITY_METADATA_KEY, CONTRACT_METADATA_KEY, REQUIRED_PROOF_METADATA_KEY, AXIS_PUBLIC_KEY, AXIS_ANONYMOUS_KEY, AXIS_RATE_LIMIT_KEY;
|
|
281
|
+
var init_intent_policy_decorator = __esm({
|
|
282
|
+
"src/decorators/intent-policy.decorator.ts"() {
|
|
283
|
+
import_reflect_metadata3 = require("reflect-metadata");
|
|
284
|
+
SENSITIVITY_METADATA_KEY = "axis:sensitivity";
|
|
285
|
+
CONTRACT_METADATA_KEY = "axis:contract";
|
|
286
|
+
REQUIRED_PROOF_METADATA_KEY = "axis:required_proof";
|
|
287
|
+
AXIS_PUBLIC_KEY = "axis:public";
|
|
288
|
+
AXIS_ANONYMOUS_KEY = "axis:anonymous";
|
|
289
|
+
AXIS_RATE_LIMIT_KEY = "axis:rateLimit";
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
|
|
136
293
|
// src/decorators/handler.decorator.ts
|
|
137
294
|
var handler_decorator_exports = {};
|
|
138
295
|
__export(handler_decorator_exports, {
|
|
@@ -183,10 +340,10 @@ function Intent(action, options) {
|
|
|
183
340
|
Reflect.defineMetadata(INTENT_ROUTES_KEY, routes, target.constructor);
|
|
184
341
|
};
|
|
185
342
|
}
|
|
186
|
-
var
|
|
343
|
+
var import_reflect_metadata4, INTENT_METADATA_KEY, INTENT_ROUTES_KEY;
|
|
187
344
|
var init_intent_decorator = __esm({
|
|
188
345
|
"src/decorators/intent.decorator.ts"() {
|
|
189
|
-
|
|
346
|
+
import_reflect_metadata4 = require("reflect-metadata");
|
|
190
347
|
INTENT_METADATA_KEY = "axis:intent";
|
|
191
348
|
INTENT_ROUTES_KEY = "axis:intent_routes";
|
|
192
349
|
}
|
|
@@ -203,10 +360,10 @@ function IntentBody(decoder) {
|
|
|
203
360
|
Reflect.defineMetadata(INTENT_BODY_KEY, decoder, target, propertyKey);
|
|
204
361
|
};
|
|
205
362
|
}
|
|
206
|
-
var
|
|
363
|
+
var import_reflect_metadata5, INTENT_BODY_KEY;
|
|
207
364
|
var init_intent_body_decorator = __esm({
|
|
208
365
|
"src/decorators/intent-body.decorator.ts"() {
|
|
209
|
-
|
|
366
|
+
import_reflect_metadata5 = require("reflect-metadata");
|
|
210
367
|
INTENT_BODY_KEY = "axis:intent:body";
|
|
211
368
|
}
|
|
212
369
|
});
|
|
@@ -222,10 +379,10 @@ function IntentSensors(sensors) {
|
|
|
222
379
|
Reflect.defineMetadata(INTENT_SENSORS_KEY, sensors, target, propertyKey);
|
|
223
380
|
};
|
|
224
381
|
}
|
|
225
|
-
var
|
|
382
|
+
var import_reflect_metadata6, INTENT_SENSORS_KEY;
|
|
226
383
|
var init_intent_sensors_decorator = __esm({
|
|
227
384
|
"src/decorators/intent-sensors.decorator.ts"() {
|
|
228
|
-
|
|
385
|
+
import_reflect_metadata6 = require("reflect-metadata");
|
|
229
386
|
INTENT_SENSORS_KEY = "axis:intent:sensors";
|
|
230
387
|
}
|
|
231
388
|
});
|
|
@@ -287,10 +444,10 @@ function Observer(input) {
|
|
|
287
444
|
(0, import_common2.Injectable)()(target);
|
|
288
445
|
});
|
|
289
446
|
}
|
|
290
|
-
var
|
|
447
|
+
var import_reflect_metadata7, import_common2, OBSERVER_METADATA_KEY, OBSERVER_BINDINGS_KEY;
|
|
291
448
|
var init_observer_decorator = __esm({
|
|
292
449
|
"src/decorators/observer.decorator.ts"() {
|
|
293
|
-
|
|
450
|
+
import_reflect_metadata7 = require("reflect-metadata");
|
|
294
451
|
import_common2 = require("@nestjs/common");
|
|
295
452
|
OBSERVER_METADATA_KEY = "axis:observer";
|
|
296
453
|
OBSERVER_BINDINGS_KEY = "axis:observer:bindings";
|
|
@@ -308,10 +465,10 @@ function HandlerSensors(sensors) {
|
|
|
308
465
|
Reflect.defineMetadata(HANDLER_SENSORS_KEY, sensors, target);
|
|
309
466
|
};
|
|
310
467
|
}
|
|
311
|
-
var
|
|
468
|
+
var import_reflect_metadata8, HANDLER_SENSORS_KEY;
|
|
312
469
|
var init_handler_sensors_decorator = __esm({
|
|
313
470
|
"src/decorators/handler-sensors.decorator.ts"() {
|
|
314
|
-
|
|
471
|
+
import_reflect_metadata8 = require("reflect-metadata");
|
|
315
472
|
HANDLER_SENSORS_KEY = "axis:handler:sensors";
|
|
316
473
|
}
|
|
317
474
|
});
|
|
@@ -398,10 +555,10 @@ function TlvRange(min, max, message) {
|
|
|
398
555
|
return null;
|
|
399
556
|
});
|
|
400
557
|
}
|
|
401
|
-
var
|
|
558
|
+
var import_reflect_metadata9, TLV_FIELDS_KEY, TLV_VALIDATORS_KEY;
|
|
402
559
|
var init_tlv_field_decorator = __esm({
|
|
403
560
|
"src/decorators/tlv-field.decorator.ts"() {
|
|
404
|
-
|
|
561
|
+
import_reflect_metadata9 = require("reflect-metadata");
|
|
405
562
|
TLV_FIELDS_KEY = "axis:tlv:fields";
|
|
406
563
|
TLV_VALIDATORS_KEY = "axis:tlv:validators";
|
|
407
564
|
}
|
|
@@ -574,10 +731,10 @@ function AxisPartialType(BaseDto) {
|
|
|
574
731
|
});
|
|
575
732
|
return PartialDto;
|
|
576
733
|
}
|
|
577
|
-
var
|
|
734
|
+
var import_reflect_metadata10;
|
|
578
735
|
var init_axis_partial_type = __esm({
|
|
579
736
|
"src/base/axis-partial-type.ts"() {
|
|
580
|
-
|
|
737
|
+
import_reflect_metadata10 = require("reflect-metadata");
|
|
581
738
|
init_tlv_field_decorator();
|
|
582
739
|
}
|
|
583
740
|
});
|
|
@@ -1733,163 +1890,6 @@ var init_axis_error = __esm({
|
|
|
1733
1890
|
}
|
|
1734
1891
|
});
|
|
1735
1892
|
|
|
1736
|
-
// src/decorators/intent-policy.decorator.ts
|
|
1737
|
-
var intent_policy_decorator_exports = {};
|
|
1738
|
-
__export(intent_policy_decorator_exports, {
|
|
1739
|
-
AXIS_ANONYMOUS_KEY: () => AXIS_ANONYMOUS_KEY,
|
|
1740
|
-
AXIS_PUBLIC_KEY: () => AXIS_PUBLIC_KEY,
|
|
1741
|
-
AXIS_RATE_LIMIT_KEY: () => AXIS_RATE_LIMIT_KEY,
|
|
1742
|
-
AxisAnonymous: () => AxisAnonymous,
|
|
1743
|
-
AxisPublic: () => AxisPublic,
|
|
1744
|
-
AxisRateLimit: () => AxisRateLimit,
|
|
1745
|
-
CONTRACT_METADATA_KEY: () => CONTRACT_METADATA_KEY,
|
|
1746
|
-
Capsule: () => Capsule,
|
|
1747
|
-
Contract: () => Contract,
|
|
1748
|
-
REQUIRED_PROOF_METADATA_KEY: () => REQUIRED_PROOF_METADATA_KEY,
|
|
1749
|
-
RequiredProof: () => RequiredProof,
|
|
1750
|
-
SENSITIVITY_METADATA_KEY: () => SENSITIVITY_METADATA_KEY,
|
|
1751
|
-
Sensitivity: () => Sensitivity,
|
|
1752
|
-
Witness: () => Witness
|
|
1753
|
-
});
|
|
1754
|
-
function Sensitivity(level) {
|
|
1755
|
-
return ((target, propertyKey) => {
|
|
1756
|
-
if (propertyKey !== void 0) {
|
|
1757
|
-
Reflect.defineMetadata(
|
|
1758
|
-
SENSITIVITY_METADATA_KEY,
|
|
1759
|
-
level,
|
|
1760
|
-
target,
|
|
1761
|
-
propertyKey
|
|
1762
|
-
);
|
|
1763
|
-
return;
|
|
1764
|
-
}
|
|
1765
|
-
Reflect.defineMetadata(SENSITIVITY_METADATA_KEY, level, target);
|
|
1766
|
-
});
|
|
1767
|
-
}
|
|
1768
|
-
function Contract(options) {
|
|
1769
|
-
return ((target, propertyKey) => {
|
|
1770
|
-
if (propertyKey !== void 0) {
|
|
1771
|
-
Reflect.defineMetadata(
|
|
1772
|
-
CONTRACT_METADATA_KEY,
|
|
1773
|
-
options,
|
|
1774
|
-
target,
|
|
1775
|
-
propertyKey
|
|
1776
|
-
);
|
|
1777
|
-
return;
|
|
1778
|
-
}
|
|
1779
|
-
Reflect.defineMetadata(CONTRACT_METADATA_KEY, options, target);
|
|
1780
|
-
});
|
|
1781
|
-
}
|
|
1782
|
-
function RequiredProof(proofs) {
|
|
1783
|
-
return ((target, propertyKey) => {
|
|
1784
|
-
if (propertyKey !== void 0) {
|
|
1785
|
-
Reflect.defineMetadata(
|
|
1786
|
-
REQUIRED_PROOF_METADATA_KEY,
|
|
1787
|
-
proofs,
|
|
1788
|
-
target,
|
|
1789
|
-
propertyKey
|
|
1790
|
-
);
|
|
1791
|
-
return;
|
|
1792
|
-
}
|
|
1793
|
-
Reflect.defineMetadata(
|
|
1794
|
-
REQUIRED_PROOF_METADATA_KEY,
|
|
1795
|
-
proofs,
|
|
1796
|
-
target
|
|
1797
|
-
);
|
|
1798
|
-
});
|
|
1799
|
-
}
|
|
1800
|
-
function Capsule() {
|
|
1801
|
-
return ((target, propertyKey) => {
|
|
1802
|
-
const existing = propertyKey !== void 0 ? Reflect.getMetadata(
|
|
1803
|
-
REQUIRED_PROOF_METADATA_KEY,
|
|
1804
|
-
target,
|
|
1805
|
-
propertyKey
|
|
1806
|
-
) ?? [] : Reflect.getMetadata(
|
|
1807
|
-
REQUIRED_PROOF_METADATA_KEY,
|
|
1808
|
-
target
|
|
1809
|
-
) ?? [];
|
|
1810
|
-
const merged = existing.includes("CAPSULE") ? existing : [...existing, "CAPSULE"];
|
|
1811
|
-
if (propertyKey !== void 0) {
|
|
1812
|
-
Reflect.defineMetadata(
|
|
1813
|
-
REQUIRED_PROOF_METADATA_KEY,
|
|
1814
|
-
merged,
|
|
1815
|
-
target,
|
|
1816
|
-
propertyKey
|
|
1817
|
-
);
|
|
1818
|
-
} else {
|
|
1819
|
-
Reflect.defineMetadata(
|
|
1820
|
-
REQUIRED_PROOF_METADATA_KEY,
|
|
1821
|
-
merged,
|
|
1822
|
-
target
|
|
1823
|
-
);
|
|
1824
|
-
}
|
|
1825
|
-
});
|
|
1826
|
-
}
|
|
1827
|
-
function Witness() {
|
|
1828
|
-
return ((target, propertyKey) => {
|
|
1829
|
-
const existing = propertyKey !== void 0 ? Reflect.getMetadata(
|
|
1830
|
-
REQUIRED_PROOF_METADATA_KEY,
|
|
1831
|
-
target,
|
|
1832
|
-
propertyKey
|
|
1833
|
-
) ?? [] : Reflect.getMetadata(
|
|
1834
|
-
REQUIRED_PROOF_METADATA_KEY,
|
|
1835
|
-
target
|
|
1836
|
-
) ?? [];
|
|
1837
|
-
const merged = existing.includes("WITNESS") ? existing : [...existing, "WITNESS"];
|
|
1838
|
-
if (propertyKey !== void 0) {
|
|
1839
|
-
Reflect.defineMetadata(
|
|
1840
|
-
REQUIRED_PROOF_METADATA_KEY,
|
|
1841
|
-
merged,
|
|
1842
|
-
target,
|
|
1843
|
-
propertyKey
|
|
1844
|
-
);
|
|
1845
|
-
} else {
|
|
1846
|
-
Reflect.defineMetadata(
|
|
1847
|
-
REQUIRED_PROOF_METADATA_KEY,
|
|
1848
|
-
merged,
|
|
1849
|
-
target
|
|
1850
|
-
);
|
|
1851
|
-
}
|
|
1852
|
-
});
|
|
1853
|
-
}
|
|
1854
|
-
function AxisPublic() {
|
|
1855
|
-
return (target, propertyKey, descriptor) => {
|
|
1856
|
-
if (descriptor) {
|
|
1857
|
-
Reflect.defineMetadata(AXIS_PUBLIC_KEY, true, target, propertyKey);
|
|
1858
|
-
return descriptor;
|
|
1859
|
-
}
|
|
1860
|
-
Reflect.defineMetadata(AXIS_PUBLIC_KEY, true, target);
|
|
1861
|
-
return target;
|
|
1862
|
-
};
|
|
1863
|
-
}
|
|
1864
|
-
function AxisAnonymous() {
|
|
1865
|
-
return (target, propertyKey, descriptor) => {
|
|
1866
|
-
if (descriptor) {
|
|
1867
|
-
Reflect.defineMetadata(AXIS_ANONYMOUS_KEY, true, target, propertyKey);
|
|
1868
|
-
return descriptor;
|
|
1869
|
-
}
|
|
1870
|
-
Reflect.defineMetadata(AXIS_ANONYMOUS_KEY, true, target);
|
|
1871
|
-
return target;
|
|
1872
|
-
};
|
|
1873
|
-
}
|
|
1874
|
-
function AxisRateLimit(config) {
|
|
1875
|
-
return (target, propertyKey, descriptor) => {
|
|
1876
|
-
Reflect.defineMetadata(AXIS_RATE_LIMIT_KEY, config, target, propertyKey);
|
|
1877
|
-
return descriptor;
|
|
1878
|
-
};
|
|
1879
|
-
}
|
|
1880
|
-
var import_reflect_metadata10, SENSITIVITY_METADATA_KEY, CONTRACT_METADATA_KEY, REQUIRED_PROOF_METADATA_KEY, AXIS_PUBLIC_KEY, AXIS_ANONYMOUS_KEY, AXIS_RATE_LIMIT_KEY;
|
|
1881
|
-
var init_intent_policy_decorator = __esm({
|
|
1882
|
-
"src/decorators/intent-policy.decorator.ts"() {
|
|
1883
|
-
import_reflect_metadata10 = require("reflect-metadata");
|
|
1884
|
-
SENSITIVITY_METADATA_KEY = "axis:sensitivity";
|
|
1885
|
-
CONTRACT_METADATA_KEY = "axis:contract";
|
|
1886
|
-
REQUIRED_PROOF_METADATA_KEY = "axis:required_proof";
|
|
1887
|
-
AXIS_PUBLIC_KEY = "axis:public";
|
|
1888
|
-
AXIS_ANONYMOUS_KEY = "axis:anonymous";
|
|
1889
|
-
AXIS_RATE_LIMIT_KEY = "axis:rateLimit";
|
|
1890
|
-
}
|
|
1891
|
-
});
|
|
1892
|
-
|
|
1893
1893
|
// src/security/scopes.ts
|
|
1894
1894
|
function hasScope(scopes, required) {
|
|
1895
1895
|
if (!Array.isArray(scopes) || scopes.length === 0) {
|
|
@@ -9437,14 +9437,18 @@ var index_exports = {};
|
|
|
9437
9437
|
__export(index_exports, {
|
|
9438
9438
|
ATS1_HDR: () => ATS1_HDR,
|
|
9439
9439
|
ATS1_SCHEMA: () => ATS1_SCHEMA,
|
|
9440
|
+
AXIS_ANONYMOUS_KEY: () => AXIS_ANONYMOUS_KEY,
|
|
9440
9441
|
AXIS_EXECUTION_CONTEXT_KEY: () => AXIS_EXECUTION_CONTEXT_KEY,
|
|
9441
9442
|
AXIS_MAGIC: () => import_axis_protocol2.AXIS_MAGIC,
|
|
9442
9443
|
AXIS_OPCODES: () => AXIS_OPCODES,
|
|
9444
|
+
AXIS_PUBLIC_KEY: () => AXIS_PUBLIC_KEY,
|
|
9445
|
+
AXIS_RATE_LIMIT_KEY: () => AXIS_RATE_LIMIT_KEY,
|
|
9443
9446
|
AXIS_UPLOAD_FILE_STORE: () => AXIS_UPLOAD_FILE_STORE,
|
|
9444
9447
|
AXIS_UPLOAD_RECEIPT_SIGNER: () => AXIS_UPLOAD_RECEIPT_SIGNER,
|
|
9445
9448
|
AXIS_UPLOAD_SESSION_STORE: () => AXIS_UPLOAD_SESSION_STORE,
|
|
9446
9449
|
AXIS_VERSION: () => import_axis_protocol2.AXIS_VERSION,
|
|
9447
9450
|
Ats1Codec: () => ats1_exports,
|
|
9451
|
+
AxisAnonymous: () => AxisAnonymous,
|
|
9448
9452
|
AxisChainExecutor: () => import_axis_chain.AxisChainExecutor,
|
|
9449
9453
|
AxisContext: () => import_axis_request.AxisContext,
|
|
9450
9454
|
AxisDemoPubkey: () => import_axis_request.AxisDemoPubkey,
|
|
@@ -9458,6 +9462,8 @@ __export(index_exports, {
|
|
|
9458
9462
|
AxisMediaTypes: () => AxisMediaTypes,
|
|
9459
9463
|
AxisPacketTags: () => T,
|
|
9460
9464
|
AxisPartialType: () => AxisPartialType,
|
|
9465
|
+
AxisPublic: () => AxisPublic,
|
|
9466
|
+
AxisRateLimit: () => AxisRateLimit,
|
|
9461
9467
|
AxisRaw: () => import_axis_request.AxisRaw,
|
|
9462
9468
|
AxisResponseDto: () => import_axis_response.AxisResponseDto,
|
|
9463
9469
|
AxisSensorChainService: () => import_axis_sensor_chain.AxisSensorChainService,
|
|
@@ -9469,9 +9475,12 @@ __export(index_exports, {
|
|
|
9469
9475
|
CCE_ERROR: () => CCE_ERROR,
|
|
9470
9476
|
CCE_PROTOCOL_VERSION: () => CCE_PROTOCOL_VERSION,
|
|
9471
9477
|
CHAIN_METADATA_KEY: () => CHAIN_METADATA_KEY,
|
|
9478
|
+
CONTRACT_METADATA_KEY: () => CONTRACT_METADATA_KEY,
|
|
9479
|
+
Capsule: () => Capsule,
|
|
9472
9480
|
CapsulePolicy: () => CapsulePolicy,
|
|
9473
9481
|
CceError: () => CceError,
|
|
9474
9482
|
Chain: () => Chain,
|
|
9483
|
+
Contract: () => Contract,
|
|
9475
9484
|
ContractViolationError: () => ContractViolationError,
|
|
9476
9485
|
DEFAULT_CONTRACTS: () => DEFAULT_CONTRACTS,
|
|
9477
9486
|
DEFAULT_TIMEOUT: () => DEFAULT_TIMEOUT,
|
|
@@ -9532,18 +9541,22 @@ __export(index_exports, {
|
|
|
9532
9541
|
PROOF_NONE: () => import_axis_protocol2.PROOF_NONE,
|
|
9533
9542
|
PROOF_WITNESS: () => import_axis_protocol2.PROOF_WITNESS,
|
|
9534
9543
|
ProofType: () => import_axis_protocol2.ProofType,
|
|
9544
|
+
REQUIRED_PROOF_METADATA_KEY: () => REQUIRED_PROOF_METADATA_KEY,
|
|
9535
9545
|
RESPONSE_TAG_CREATED_AT: () => import_axis_response.RESPONSE_TAG_CREATED_AT,
|
|
9536
9546
|
RESPONSE_TAG_CREATED_BY: () => import_axis_response.RESPONSE_TAG_CREATED_BY,
|
|
9537
9547
|
RESPONSE_TAG_ID: () => import_axis_response.RESPONSE_TAG_ID,
|
|
9538
9548
|
RESPONSE_TAG_UPDATED_AT: () => import_axis_response.RESPONSE_TAG_UPDATED_AT,
|
|
9539
9549
|
RESPONSE_TAG_UPDATED_BY: () => import_axis_response.RESPONSE_TAG_UPDATED_BY,
|
|
9550
|
+
RequiredProof: () => RequiredProof,
|
|
9540
9551
|
ResponseObserver: () => ResponseObserver,
|
|
9541
9552
|
RiskDecision: () => RiskDecision,
|
|
9553
|
+
SENSITIVITY_METADATA_KEY: () => SENSITIVITY_METADATA_KEY,
|
|
9542
9554
|
SENSOR_METADATA_KEY: () => SENSOR_METADATA_KEY,
|
|
9543
9555
|
Schema2002_PasskeyLoginOptionsRes: () => Schema2002_PasskeyLoginOptionsRes,
|
|
9544
9556
|
Schema2011_PasskeyLoginVerifyReq: () => Schema2011_PasskeyLoginVerifyReq,
|
|
9545
9557
|
Schema2012_PasskeyLoginVerifyRes: () => Schema2012_PasskeyLoginVerifyRes,
|
|
9546
9558
|
Schema2021_PasskeyRegisterOptionsReq: () => Schema2021_PasskeyRegisterOptionsReq,
|
|
9559
|
+
Sensitivity: () => Sensitivity,
|
|
9547
9560
|
Sensor: () => Sensor,
|
|
9548
9561
|
SensorDecisions: () => SensorDecisions,
|
|
9549
9562
|
SensorDiscoveryService: () => import_sensor_discovery.SensorDiscoveryService,
|
|
@@ -9591,6 +9604,7 @@ __export(index_exports, {
|
|
|
9591
9604
|
TlvRange: () => TlvRange,
|
|
9592
9605
|
TlvUtf8Pattern: () => TlvUtf8Pattern,
|
|
9593
9606
|
TlvValidate: () => TlvValidate,
|
|
9607
|
+
Witness: () => Witness,
|
|
9594
9608
|
axis1SigningBytes: () => axis1SigningBytes,
|
|
9595
9609
|
b64urlDecode: () => b64urlDecode,
|
|
9596
9610
|
b64urlDecodeString: () => b64urlDecodeString,
|
|
@@ -9689,6 +9703,7 @@ var init_index = __esm({
|
|
|
9689
9703
|
"src/index.ts"() {
|
|
9690
9704
|
init_chain_decorator();
|
|
9691
9705
|
init_capsule_policy_decorator();
|
|
9706
|
+
init_intent_policy_decorator();
|
|
9692
9707
|
init_handler_decorator();
|
|
9693
9708
|
init_intent_decorator();
|
|
9694
9709
|
init_intent_body_decorator();
|
|
@@ -9770,14 +9785,18 @@ init_index();
|
|
|
9770
9785
|
0 && (module.exports = {
|
|
9771
9786
|
ATS1_HDR,
|
|
9772
9787
|
ATS1_SCHEMA,
|
|
9788
|
+
AXIS_ANONYMOUS_KEY,
|
|
9773
9789
|
AXIS_EXECUTION_CONTEXT_KEY,
|
|
9774
9790
|
AXIS_MAGIC,
|
|
9775
9791
|
AXIS_OPCODES,
|
|
9792
|
+
AXIS_PUBLIC_KEY,
|
|
9793
|
+
AXIS_RATE_LIMIT_KEY,
|
|
9776
9794
|
AXIS_UPLOAD_FILE_STORE,
|
|
9777
9795
|
AXIS_UPLOAD_RECEIPT_SIGNER,
|
|
9778
9796
|
AXIS_UPLOAD_SESSION_STORE,
|
|
9779
9797
|
AXIS_VERSION,
|
|
9780
9798
|
Ats1Codec,
|
|
9799
|
+
AxisAnonymous,
|
|
9781
9800
|
AxisChainExecutor,
|
|
9782
9801
|
AxisContext,
|
|
9783
9802
|
AxisDemoPubkey,
|
|
@@ -9791,6 +9810,8 @@ init_index();
|
|
|
9791
9810
|
AxisMediaTypes,
|
|
9792
9811
|
AxisPacketTags,
|
|
9793
9812
|
AxisPartialType,
|
|
9813
|
+
AxisPublic,
|
|
9814
|
+
AxisRateLimit,
|
|
9794
9815
|
AxisRaw,
|
|
9795
9816
|
AxisResponseDto,
|
|
9796
9817
|
AxisSensorChainService,
|
|
@@ -9802,9 +9823,12 @@ init_index();
|
|
|
9802
9823
|
CCE_ERROR,
|
|
9803
9824
|
CCE_PROTOCOL_VERSION,
|
|
9804
9825
|
CHAIN_METADATA_KEY,
|
|
9826
|
+
CONTRACT_METADATA_KEY,
|
|
9827
|
+
Capsule,
|
|
9805
9828
|
CapsulePolicy,
|
|
9806
9829
|
CceError,
|
|
9807
9830
|
Chain,
|
|
9831
|
+
Contract,
|
|
9808
9832
|
ContractViolationError,
|
|
9809
9833
|
DEFAULT_CONTRACTS,
|
|
9810
9834
|
DEFAULT_TIMEOUT,
|
|
@@ -9865,18 +9889,22 @@ init_index();
|
|
|
9865
9889
|
PROOF_NONE,
|
|
9866
9890
|
PROOF_WITNESS,
|
|
9867
9891
|
ProofType,
|
|
9892
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
9868
9893
|
RESPONSE_TAG_CREATED_AT,
|
|
9869
9894
|
RESPONSE_TAG_CREATED_BY,
|
|
9870
9895
|
RESPONSE_TAG_ID,
|
|
9871
9896
|
RESPONSE_TAG_UPDATED_AT,
|
|
9872
9897
|
RESPONSE_TAG_UPDATED_BY,
|
|
9898
|
+
RequiredProof,
|
|
9873
9899
|
ResponseObserver,
|
|
9874
9900
|
RiskDecision,
|
|
9901
|
+
SENSITIVITY_METADATA_KEY,
|
|
9875
9902
|
SENSOR_METADATA_KEY,
|
|
9876
9903
|
Schema2002_PasskeyLoginOptionsRes,
|
|
9877
9904
|
Schema2011_PasskeyLoginVerifyReq,
|
|
9878
9905
|
Schema2012_PasskeyLoginVerifyRes,
|
|
9879
9906
|
Schema2021_PasskeyRegisterOptionsReq,
|
|
9907
|
+
Sensitivity,
|
|
9880
9908
|
Sensor,
|
|
9881
9909
|
SensorDecisions,
|
|
9882
9910
|
SensorDiscoveryService,
|
|
@@ -9924,6 +9952,7 @@ init_index();
|
|
|
9924
9952
|
TlvRange,
|
|
9925
9953
|
TlvUtf8Pattern,
|
|
9926
9954
|
TlvValidate,
|
|
9955
|
+
Witness,
|
|
9927
9956
|
axis1SigningBytes,
|
|
9928
9957
|
b64urlDecode,
|
|
9929
9958
|
b64urlDecodeString,
|