@nextera.one/axis-server-sdk 2.3.17 → 2.3.19
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-D4Oz7vc1.d.mts → index-BCFbHQxo.d.mts} +8 -15
- package/dist/{index-DwBRLF9t.d.ts → index-BsnV_K_l.d.ts} +8 -15
- package/dist/index.d.mts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +26 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -13
- package/dist/index.mjs.map +1 -1
- package/dist/needle/index.js.map +1 -1
- package/dist/needle/index.mjs +1 -0
- package/dist/needle/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 +23 -13
- package/dist/sensors/index.js.map +1 -1
- package/dist/sensors/index.mjs +24 -13
- package/dist/sensors/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -219,6 +219,21 @@ function Axis() {
|
|
|
219
219
|
Reflect.defineMetadata(AXIS_META_KEY, { entry: true }, target);
|
|
220
220
|
};
|
|
221
221
|
}
|
|
222
|
+
function AxisStream(options = {}) {
|
|
223
|
+
return (target) => {
|
|
224
|
+
Reflect.defineMetadata(
|
|
225
|
+
AXIS_STREAM_META_KEY,
|
|
226
|
+
{
|
|
227
|
+
entry: true,
|
|
228
|
+
transport: "stream",
|
|
229
|
+
role: "entry",
|
|
230
|
+
path: options.path,
|
|
231
|
+
protocol: options.protocol
|
|
232
|
+
},
|
|
233
|
+
target
|
|
234
|
+
);
|
|
235
|
+
};
|
|
236
|
+
}
|
|
222
237
|
function AxisPublic() {
|
|
223
238
|
return (target, propertyKey, descriptor) => {
|
|
224
239
|
if (propertyKey !== void 0) {
|
|
@@ -261,10 +276,11 @@ function AxisRateLimit(config) {
|
|
|
261
276
|
return descriptor;
|
|
262
277
|
};
|
|
263
278
|
}
|
|
264
|
-
var AXIS_META_KEY, SENSITIVITY_METADATA_KEY, CONTRACT_METADATA_KEY, REQUIRED_PROOF_METADATA_KEY, AXIS_PUBLIC_KEY, AXIS_ANONYMOUS_KEY, AXIS_AUTHORIZED_KEY, AXIS_RATE_LIMIT_KEY;
|
|
279
|
+
var AXIS_META_KEY, AXIS_STREAM_META_KEY, SENSITIVITY_METADATA_KEY, CONTRACT_METADATA_KEY, REQUIRED_PROOF_METADATA_KEY, AXIS_PUBLIC_KEY, AXIS_ANONYMOUS_KEY, AXIS_AUTHORIZED_KEY, AXIS_RATE_LIMIT_KEY;
|
|
265
280
|
var init_intent_policy_decorator = __esm({
|
|
266
281
|
"src/decorators/intent-policy.decorator.ts"() {
|
|
267
282
|
AXIS_META_KEY = "axis:axis";
|
|
283
|
+
AXIS_STREAM_META_KEY = "axis:stream";
|
|
268
284
|
SENSITIVITY_METADATA_KEY = "axis:sensitivity";
|
|
269
285
|
CONTRACT_METADATA_KEY = "axis:contract";
|
|
270
286
|
REQUIRED_PROOF_METADATA_KEY = "axis:required_proof";
|
|
@@ -876,6 +892,7 @@ __export(constants_exports, {
|
|
|
876
892
|
NCERT_SIG: () => NCERT_SIG,
|
|
877
893
|
PROOF_CAPSULE: () => PROOF_CAPSULE,
|
|
878
894
|
PROOF_JWT: () => PROOF_JWT,
|
|
895
|
+
PROOF_KINDS: () => PROOF_KINDS,
|
|
879
896
|
PROOF_LOOM: () => PROOF_LOOM,
|
|
880
897
|
PROOF_MTLS: () => PROOF_MTLS,
|
|
881
898
|
PROOF_NONE: () => PROOF_NONE,
|
|
@@ -970,6 +987,7 @@ import {
|
|
|
970
987
|
PROOF_MTLS,
|
|
971
988
|
PROOF_LOOM,
|
|
972
989
|
PROOF_WITNESS,
|
|
990
|
+
PROOF_KINDS,
|
|
973
991
|
ProofType,
|
|
974
992
|
BodyProfile,
|
|
975
993
|
ERR_INVALID_PACKET,
|
|
@@ -11809,6 +11827,7 @@ var SensorDecisionZ, SensorDecisionWithMetadataZ, CountryBlockSensorInputZ, Coun
|
|
|
11809
11827
|
var init_axis_schemas = __esm({
|
|
11810
11828
|
"src/schemas/axis-schemas.ts"() {
|
|
11811
11829
|
init_axis_bin();
|
|
11830
|
+
init_constants();
|
|
11812
11831
|
SensorDecisionZ = z2.union([
|
|
11813
11832
|
z2.object({ action: z2.literal("ALLOW"), meta: z2.any().optional() }),
|
|
11814
11833
|
z2.object({
|
|
@@ -11838,18 +11857,7 @@ var init_axis_schemas = __esm({
|
|
|
11838
11857
|
isFailure: z2.boolean().optional()
|
|
11839
11858
|
});
|
|
11840
11859
|
ScanBurstDecisionZ = SensorDecisionWithMetadataZ;
|
|
11841
|
-
ProofKindZ = z2.enum(
|
|
11842
|
-
"NONE",
|
|
11843
|
-
"ANONYMOUS",
|
|
11844
|
-
"PASSPORT",
|
|
11845
|
-
"CAPSULE",
|
|
11846
|
-
"JWT",
|
|
11847
|
-
"CONTRACT",
|
|
11848
|
-
"WITNESS",
|
|
11849
|
-
"MTLS",
|
|
11850
|
-
"DEVICE",
|
|
11851
|
-
"AUTHORIZED"
|
|
11852
|
-
]);
|
|
11860
|
+
ProofKindZ = z2.enum(PROOF_KINDS);
|
|
11853
11861
|
AccessProfileZ = z2.enum(["PUBLIC", "PARTNER", "INTERNAL", "NODE"]);
|
|
11854
11862
|
ProofPresenceInputZ = z2.object({
|
|
11855
11863
|
profile: AccessProfileZ,
|
|
@@ -13117,6 +13125,7 @@ __export(index_exports, {
|
|
|
13117
13125
|
AXIS_OPCODES: () => AXIS_OPCODES,
|
|
13118
13126
|
AXIS_PUBLIC_KEY: () => AXIS_PUBLIC_KEY,
|
|
13119
13127
|
AXIS_RATE_LIMIT_KEY: () => AXIS_RATE_LIMIT_KEY,
|
|
13128
|
+
AXIS_STREAM_META_KEY: () => AXIS_STREAM_META_KEY,
|
|
13120
13129
|
AXIS_UPLOAD_FILE_STORE: () => AXIS_UPLOAD_FILE_STORE,
|
|
13121
13130
|
AXIS_UPLOAD_RECEIPT_SIGNER: () => AXIS_UPLOAD_RECEIPT_SIGNER,
|
|
13122
13131
|
AXIS_UPLOAD_SESSION_STORE: () => AXIS_UPLOAD_SESSION_STORE,
|
|
@@ -13136,6 +13145,7 @@ __export(index_exports, {
|
|
|
13136
13145
|
AxisRateLimit: () => AxisRateLimit,
|
|
13137
13146
|
AxisResponseDto: () => import_axis_response.AxisResponseDto,
|
|
13138
13147
|
AxisSensorChainService: () => AxisSensorChainService,
|
|
13148
|
+
AxisStream: () => AxisStream,
|
|
13139
13149
|
AxisTlvDto: () => AxisTlvDto,
|
|
13140
13150
|
BAND: () => BAND,
|
|
13141
13151
|
BodyProfile: () => BodyProfile2,
|
|
@@ -13208,6 +13218,7 @@ __export(index_exports, {
|
|
|
13208
13218
|
PROOF_CAPABILITIES: () => PROOF_CAPABILITIES,
|
|
13209
13219
|
PROOF_CAPSULE: () => PROOF_CAPSULE,
|
|
13210
13220
|
PROOF_JWT: () => PROOF_JWT,
|
|
13221
|
+
PROOF_KINDS: () => PROOF_KINDS,
|
|
13211
13222
|
PROOF_LOOM: () => PROOF_LOOM,
|
|
13212
13223
|
PROOF_MTLS: () => PROOF_MTLS,
|
|
13213
13224
|
PROOF_NONE: () => PROOF_NONE,
|
|
@@ -13520,6 +13531,7 @@ export {
|
|
|
13520
13531
|
AXIS_OPCODES,
|
|
13521
13532
|
AXIS_PUBLIC_KEY,
|
|
13522
13533
|
AXIS_RATE_LIMIT_KEY,
|
|
13534
|
+
AXIS_STREAM_META_KEY,
|
|
13523
13535
|
AXIS_UPLOAD_FILE_STORE,
|
|
13524
13536
|
AXIS_UPLOAD_RECEIPT_SIGNER,
|
|
13525
13537
|
AXIS_UPLOAD_SESSION_STORE,
|
|
@@ -13539,6 +13551,7 @@ export {
|
|
|
13539
13551
|
AxisRateLimit,
|
|
13540
13552
|
export_AxisResponseDto as AxisResponseDto,
|
|
13541
13553
|
AxisSensorChainService,
|
|
13554
|
+
AxisStream,
|
|
13542
13555
|
AxisTlvDto,
|
|
13543
13556
|
BAND,
|
|
13544
13557
|
BodyProfile2 as BodyProfile,
|
|
@@ -13611,6 +13624,7 @@ export {
|
|
|
13611
13624
|
PROOF_CAPABILITIES,
|
|
13612
13625
|
PROOF_CAPSULE,
|
|
13613
13626
|
PROOF_JWT,
|
|
13627
|
+
PROOF_KINDS,
|
|
13614
13628
|
PROOF_LOOM,
|
|
13615
13629
|
PROOF_MTLS,
|
|
13616
13630
|
PROOF_NONE,
|