@nextera.one/axis-server-sdk 2.1.0 → 2.1.2
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/core/index.d.mts +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +23 -0
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +22 -0
- package/dist/core/index.mjs.map +1 -1
- package/dist/{index-1uEwnW-w.d.mts → index-DXHfWxLG.d.mts} +14 -3
- package/dist/{index-1uEwnW-w.d.ts → index-DXHfWxLG.d.ts} +14 -3
- package/dist/index.d.mts +59 -59
- package/dist/index.d.ts +59 -59
- package/dist/index.js +32 -160
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +32 -159
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AxisFrame$2 } from './index-
|
|
2
|
-
export { a as AxisBinaryFrame, b as AxisError, c as AxisFrameZ, d as
|
|
1
|
+
import { A as AxisFrame$2 } from './index-DXHfWxLG.js';
|
|
2
|
+
export { a as AxisBinaryFrame, b as AxisError, c as AxisFrameZ, d as AxisMediaTypes, e as computeReceiptHash, f as computeSignaturePayload, i as core, g as decodeFrame, h as encodeFrame, j as generateEd25519KeyPair, k as getSignTarget, s as sha256, l as signFrame, v as verifyFrameSignature } from './index-DXHfWxLG.js';
|
|
3
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';
|
|
@@ -1754,52 +1754,52 @@ declare class SensorDiscoveryService implements OnApplicationBootstrap {
|
|
|
1754
1754
|
declare const SensorDecisionZ: z.ZodUnion<readonly [z.ZodObject<{
|
|
1755
1755
|
action: z.ZodLiteral<"ALLOW">;
|
|
1756
1756
|
meta: z.ZodOptional<z.ZodAny>;
|
|
1757
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1757
|
+
}, z.z.core.$strip>, z.ZodObject<{
|
|
1758
1758
|
action: z.ZodLiteral<"DENY">;
|
|
1759
1759
|
code: z.ZodString;
|
|
1760
1760
|
reason: z.ZodOptional<z.ZodString>;
|
|
1761
1761
|
meta: z.ZodOptional<z.ZodAny>;
|
|
1762
|
-
}, z.core.$strip>]>;
|
|
1762
|
+
}, z.z.core.$strip>]>;
|
|
1763
1763
|
declare const SensorDecisionWithMetadataZ: z.ZodUnion<readonly [z.ZodObject<{
|
|
1764
1764
|
action: z.ZodLiteral<"ALLOW">;
|
|
1765
1765
|
meta: z.ZodOptional<z.ZodAny>;
|
|
1766
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1766
|
+
}, z.z.core.$strip>, z.ZodObject<{
|
|
1767
1767
|
action: z.ZodLiteral<"DENY">;
|
|
1768
1768
|
code: z.ZodString;
|
|
1769
1769
|
reason: z.ZodOptional<z.ZodString>;
|
|
1770
1770
|
retryAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
1771
1771
|
meta: z.ZodOptional<z.ZodAny>;
|
|
1772
|
-
}, z.core.$strip>]>;
|
|
1772
|
+
}, z.z.core.$strip>]>;
|
|
1773
1773
|
declare const CountryBlockSensorInputZ: z.ZodObject<{
|
|
1774
1774
|
ip: z.ZodString;
|
|
1775
1775
|
country: z.ZodOptional<z.ZodString>;
|
|
1776
|
-
}, z.core.$strip>;
|
|
1776
|
+
}, z.z.core.$strip>;
|
|
1777
1777
|
type CountryBlockSensorInput = z.infer<typeof CountryBlockSensorInputZ>;
|
|
1778
1778
|
declare const CountryBlockDecisionZ: z.ZodUnion<readonly [z.ZodObject<{
|
|
1779
1779
|
action: z.ZodLiteral<"ALLOW">;
|
|
1780
1780
|
meta: z.ZodOptional<z.ZodAny>;
|
|
1781
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1781
|
+
}, z.z.core.$strip>, z.ZodObject<{
|
|
1782
1782
|
action: z.ZodLiteral<"DENY">;
|
|
1783
1783
|
code: z.ZodString;
|
|
1784
1784
|
reason: z.ZodOptional<z.ZodString>;
|
|
1785
1785
|
meta: z.ZodOptional<z.ZodAny>;
|
|
1786
|
-
}, z.core.$strip>]>;
|
|
1786
|
+
}, z.z.core.$strip>]>;
|
|
1787
1787
|
type CountryBlockDecision = z.infer<typeof CountryBlockDecisionZ>;
|
|
1788
1788
|
declare const ScanBurstSensorInputZ: z.ZodObject<{
|
|
1789
1789
|
ip: z.ZodString;
|
|
1790
1790
|
isFailure: z.ZodOptional<z.ZodBoolean>;
|
|
1791
|
-
}, z.core.$strip>;
|
|
1791
|
+
}, z.z.core.$strip>;
|
|
1792
1792
|
type ScanBurstSensorInput = z.infer<typeof ScanBurstSensorInputZ>;
|
|
1793
1793
|
declare const ScanBurstDecisionZ: z.ZodUnion<readonly [z.ZodObject<{
|
|
1794
1794
|
action: z.ZodLiteral<"ALLOW">;
|
|
1795
1795
|
meta: z.ZodOptional<z.ZodAny>;
|
|
1796
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1796
|
+
}, z.z.core.$strip>, z.ZodObject<{
|
|
1797
1797
|
action: z.ZodLiteral<"DENY">;
|
|
1798
1798
|
code: z.ZodString;
|
|
1799
1799
|
reason: z.ZodOptional<z.ZodString>;
|
|
1800
1800
|
retryAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
1801
1801
|
meta: z.ZodOptional<z.ZodAny>;
|
|
1802
|
-
}, z.core.$strip>]>;
|
|
1802
|
+
}, z.z.core.$strip>]>;
|
|
1803
1803
|
type ScanBurstDecision = z.infer<typeof ScanBurstDecisionZ>;
|
|
1804
1804
|
declare const ProofKindZ: z.ZodEnum<{
|
|
1805
1805
|
NONE: "NONE";
|
|
@@ -1837,7 +1837,7 @@ declare const ProofPresenceInputZ: z.ZodObject<{
|
|
|
1837
1837
|
hasCapsule: z.ZodBoolean;
|
|
1838
1838
|
hasPassportSignature: z.ZodBoolean;
|
|
1839
1839
|
intent: z.ZodString;
|
|
1840
|
-
}, z.core.$strip>;
|
|
1840
|
+
}, z.z.core.$strip>;
|
|
1841
1841
|
type ProofPresenceInput = z.infer<typeof ProofPresenceInputZ>;
|
|
1842
1842
|
declare const SensitivityLevelZ: z.ZodEnum<{
|
|
1843
1843
|
LOW: "LOW";
|
|
@@ -1863,7 +1863,7 @@ declare const IntentPolicyZ: z.ZodObject<{
|
|
|
1863
1863
|
requiresSignature: z.ZodBoolean;
|
|
1864
1864
|
requiresCapsule: z.ZodBoolean;
|
|
1865
1865
|
timeoutMs: z.ZodNumber;
|
|
1866
|
-
}, z.core.$strip>;
|
|
1866
|
+
}, z.z.core.$strip>;
|
|
1867
1867
|
type IntentPolicy = z.infer<typeof IntentPolicyZ>;
|
|
1868
1868
|
declare const IntentPolicySensorInputZ: z.ZodObject<{
|
|
1869
1869
|
frame: z.ZodObject<{
|
|
@@ -1871,10 +1871,10 @@ declare const IntentPolicySensorInputZ: z.ZodObject<{
|
|
|
1871
1871
|
headers: z.ZodMap<z.ZodNumber, z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
|
|
1872
1872
|
body: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
|
|
1873
1873
|
sig: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
|
|
1874
|
-
}, z.core.$strip>;
|
|
1874
|
+
}, z.z.core.$strip>;
|
|
1875
1875
|
intent: z.ZodString;
|
|
1876
1876
|
rawFrameSize: z.ZodNumber;
|
|
1877
|
-
}, z.core.$strip>;
|
|
1877
|
+
}, z.z.core.$strip>;
|
|
1878
1878
|
type IntentPolicySensorInput = z.infer<typeof IntentPolicySensorInputZ>;
|
|
1879
1879
|
declare const IntentPolicyDecisionZ: z.ZodUnion<readonly [z.ZodObject<{
|
|
1880
1880
|
action: z.ZodLiteral<"ALLOW">;
|
|
@@ -1895,20 +1895,20 @@ declare const IntentPolicyDecisionZ: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1895
1895
|
requiresSignature: z.ZodBoolean;
|
|
1896
1896
|
requiresCapsule: z.ZodBoolean;
|
|
1897
1897
|
timeoutMs: z.ZodNumber;
|
|
1898
|
-
}, z.core.$strip>;
|
|
1899
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1898
|
+
}, z.z.core.$strip>;
|
|
1899
|
+
}, z.z.core.$strip>, z.ZodObject<{
|
|
1900
1900
|
action: z.ZodLiteral<"DENY">;
|
|
1901
1901
|
reason: z.ZodString;
|
|
1902
|
-
}, z.core.$strip>]>;
|
|
1902
|
+
}, z.z.core.$strip>]>;
|
|
1903
1903
|
type IntentPolicyDecision = z.infer<typeof IntentPolicyDecisionZ>;
|
|
1904
1904
|
declare const CapsuleClaimsZ: z.ZodObject<{
|
|
1905
1905
|
capsuleId: z.ZodString;
|
|
1906
1906
|
allowIntents: z.ZodArray<z.ZodString>;
|
|
1907
1907
|
limits: z.ZodOptional<z.ZodObject<{
|
|
1908
1908
|
maxBodyBytes: z.ZodOptional<z.ZodNumber>;
|
|
1909
|
-
}, z.core.$strip>>;
|
|
1909
|
+
}, z.z.core.$strip>>;
|
|
1910
1910
|
scopes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1911
|
-
}, z.core.$strip>;
|
|
1911
|
+
}, z.z.core.$strip>;
|
|
1912
1912
|
type CapsuleClaims = z.infer<typeof CapsuleClaimsZ>;
|
|
1913
1913
|
declare const CapsuleZ: z.ZodObject<{
|
|
1914
1914
|
id: z.ZodString;
|
|
@@ -1917,9 +1917,9 @@ declare const CapsuleZ: z.ZodObject<{
|
|
|
1917
1917
|
allowIntents: z.ZodArray<z.ZodString>;
|
|
1918
1918
|
limits: z.ZodOptional<z.ZodObject<{
|
|
1919
1919
|
maxBodyBytes: z.ZodOptional<z.ZodNumber>;
|
|
1920
|
-
}, z.core.$strip>>;
|
|
1920
|
+
}, z.z.core.$strip>>;
|
|
1921
1921
|
scopes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1922
|
-
}, z.core.$strip>;
|
|
1922
|
+
}, z.z.core.$strip>;
|
|
1923
1923
|
issuedAt: z.ZodNumber;
|
|
1924
1924
|
expiresAt: z.ZodNumber;
|
|
1925
1925
|
tier: z.ZodEnum<{
|
|
@@ -1927,7 +1927,7 @@ declare const CapsuleZ: z.ZodObject<{
|
|
|
1927
1927
|
STANDARD: "STANDARD";
|
|
1928
1928
|
PREMIUM: "PREMIUM";
|
|
1929
1929
|
}>;
|
|
1930
|
-
}, z.core.$strip>;
|
|
1930
|
+
}, z.z.core.$strip>;
|
|
1931
1931
|
type Capsule = z.infer<typeof CapsuleZ>;
|
|
1932
1932
|
declare const CapsuleValidationResultZ: z.ZodObject<{
|
|
1933
1933
|
valid: z.ZodBoolean;
|
|
@@ -1938,9 +1938,9 @@ declare const CapsuleValidationResultZ: z.ZodObject<{
|
|
|
1938
1938
|
allowIntents: z.ZodArray<z.ZodString>;
|
|
1939
1939
|
limits: z.ZodOptional<z.ZodObject<{
|
|
1940
1940
|
maxBodyBytes: z.ZodOptional<z.ZodNumber>;
|
|
1941
|
-
}, z.core.$strip>>;
|
|
1941
|
+
}, z.z.core.$strip>>;
|
|
1942
1942
|
scopes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1943
|
-
}, z.core.$strip>;
|
|
1943
|
+
}, z.z.core.$strip>;
|
|
1944
1944
|
issuedAt: z.ZodNumber;
|
|
1945
1945
|
expiresAt: z.ZodNumber;
|
|
1946
1946
|
tier: z.ZodEnum<{
|
|
@@ -1948,16 +1948,16 @@ declare const CapsuleValidationResultZ: z.ZodObject<{
|
|
|
1948
1948
|
STANDARD: "STANDARD";
|
|
1949
1949
|
PREMIUM: "PREMIUM";
|
|
1950
1950
|
}>;
|
|
1951
|
-
}, z.core.$strip>>;
|
|
1951
|
+
}, z.z.core.$strip>>;
|
|
1952
1952
|
reason: z.ZodOptional<z.ZodString>;
|
|
1953
1953
|
requiresStepUp: z.ZodOptional<z.ZodBoolean>;
|
|
1954
|
-
}, z.core.$strip>;
|
|
1954
|
+
}, z.z.core.$strip>;
|
|
1955
1955
|
type CapsuleValidationResult = z.infer<typeof CapsuleValidationResultZ>;
|
|
1956
1956
|
declare const CapsuleVerifySensorInputZ: z.ZodObject<{
|
|
1957
1957
|
headers: z.ZodMap<z.ZodNumber, z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
|
|
1958
1958
|
intent: z.ZodString;
|
|
1959
1959
|
ctx: z.ZodAny;
|
|
1960
|
-
}, z.core.$strip>;
|
|
1960
|
+
}, z.z.core.$strip>;
|
|
1961
1961
|
type CapsuleVerifySensorInput = z.infer<typeof CapsuleVerifySensorInputZ>;
|
|
1962
1962
|
declare const CapsuleVerifyResultZ: z.ZodObject<{
|
|
1963
1963
|
ok: z.ZodLiteral<true>;
|
|
@@ -1968,9 +1968,9 @@ declare const CapsuleVerifyResultZ: z.ZodObject<{
|
|
|
1968
1968
|
allowIntents: z.ZodArray<z.ZodString>;
|
|
1969
1969
|
limits: z.ZodOptional<z.ZodObject<{
|
|
1970
1970
|
maxBodyBytes: z.ZodOptional<z.ZodNumber>;
|
|
1971
|
-
}, z.core.$strip>>;
|
|
1971
|
+
}, z.z.core.$strip>>;
|
|
1972
1972
|
scopes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1973
|
-
}, z.core.$strip>;
|
|
1973
|
+
}, z.z.core.$strip>;
|
|
1974
1974
|
issuedAt: z.ZodNumber;
|
|
1975
1975
|
expiresAt: z.ZodNumber;
|
|
1976
1976
|
tier: z.ZodEnum<{
|
|
@@ -1978,8 +1978,8 @@ declare const CapsuleVerifyResultZ: z.ZodObject<{
|
|
|
1978
1978
|
STANDARD: "STANDARD";
|
|
1979
1979
|
PREMIUM: "PREMIUM";
|
|
1980
1980
|
}>;
|
|
1981
|
-
}, z.core.$strip>;
|
|
1982
|
-
}, z.core.$strip>;
|
|
1981
|
+
}, z.z.core.$strip>;
|
|
1982
|
+
}, z.z.core.$strip>;
|
|
1983
1983
|
type CapsuleVerifyResult = z.infer<typeof CapsuleVerifyResultZ>;
|
|
1984
1984
|
declare const RateLimitProfileZ: z.ZodEnum<{
|
|
1985
1985
|
PUBLIC: "PUBLIC";
|
|
@@ -2000,7 +2000,7 @@ declare const RateLimitInputZ: z.ZodObject<{
|
|
|
2000
2000
|
INTERNAL: "INTERNAL";
|
|
2001
2001
|
NODE: "NODE";
|
|
2002
2002
|
}>;
|
|
2003
|
-
}, z.core.$strip>;
|
|
2003
|
+
}, z.z.core.$strip>;
|
|
2004
2004
|
type RateLimitInput = z.infer<typeof RateLimitInputZ>;
|
|
2005
2005
|
declare const RateLimitConfigZ: z.ZodObject<{
|
|
2006
2006
|
windowSec: z.ZodNumber;
|
|
@@ -2009,11 +2009,11 @@ declare const RateLimitConfigZ: z.ZodObject<{
|
|
|
2009
2009
|
ip_fingerprint: "ip_fingerprint";
|
|
2010
2010
|
actor_capsule: "actor_capsule";
|
|
2011
2011
|
}>;
|
|
2012
|
-
}, z.core.$strip>;
|
|
2012
|
+
}, z.z.core.$strip>;
|
|
2013
2013
|
type RateLimitConfig = z.infer<typeof RateLimitConfigZ>;
|
|
2014
2014
|
declare const SensorResultZ: z.ZodObject<{
|
|
2015
2015
|
ok: z.ZodLiteral<true>;
|
|
2016
|
-
}, z.core.$strip>;
|
|
2016
|
+
}, z.z.core.$strip>;
|
|
2017
2017
|
type SensorResult = z.infer<typeof SensorResultZ>;
|
|
2018
2018
|
declare const PassportZ: z.ZodObject<{
|
|
2019
2019
|
id: z.ZodString;
|
|
@@ -2026,13 +2026,13 @@ declare const PassportZ: z.ZodObject<{
|
|
|
2026
2026
|
}>;
|
|
2027
2027
|
issuedAt: z.ZodNumber;
|
|
2028
2028
|
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
2029
|
-
}, z.core.$strip>;
|
|
2029
|
+
}, z.z.core.$strip>;
|
|
2030
2030
|
declare const ExecutionMetricsZ: z.ZodObject<{
|
|
2031
2031
|
dbWrites: z.ZodNumber;
|
|
2032
2032
|
dbReads: z.ZodNumber;
|
|
2033
2033
|
externalCalls: z.ZodNumber;
|
|
2034
2034
|
elapsedMs: z.ZodOptional<z.ZodNumber>;
|
|
2035
|
-
}, z.core.$strip>;
|
|
2035
|
+
}, z.z.core.$strip>;
|
|
2036
2036
|
type Passport = z.infer<typeof PassportZ>;
|
|
2037
2037
|
declare const SensorChainInputZ: z.ZodObject<{
|
|
2038
2038
|
ip: z.ZodString;
|
|
@@ -2040,13 +2040,13 @@ declare const SensorChainInputZ: z.ZodObject<{
|
|
|
2040
2040
|
contentLength: z.ZodNumber;
|
|
2041
2041
|
peek: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
2042
2042
|
country: z.ZodOptional<z.ZodString>;
|
|
2043
|
-
}, z.core.$strip>;
|
|
2043
|
+
}, z.z.core.$strip>;
|
|
2044
2044
|
type SensorChainInput = z.infer<typeof SensorChainInputZ>;
|
|
2045
2045
|
declare const EntropySensorInputZ: z.ZodObject<{
|
|
2046
2046
|
pid: z.ZodOptional<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>;
|
|
2047
2047
|
nonce: z.ZodOptional<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>;
|
|
2048
2048
|
ip: z.ZodString;
|
|
2049
|
-
}, z.core.$strip>;
|
|
2049
|
+
}, z.z.core.$strip>;
|
|
2050
2050
|
type EntropySensorInput = z.infer<typeof EntropySensorInputZ>;
|
|
2051
2051
|
declare const ProtocolStrictInputZ: z.ZodObject<{
|
|
2052
2052
|
rawBytes: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>>;
|
|
@@ -2056,7 +2056,7 @@ declare const ProtocolStrictInputZ: z.ZodObject<{
|
|
|
2056
2056
|
peek: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
2057
2057
|
country: z.ZodOptional<z.ZodString>;
|
|
2058
2058
|
contentType: z.ZodOptional<z.ZodString>;
|
|
2059
|
-
}, z.core.$strip>;
|
|
2059
|
+
}, z.z.core.$strip>;
|
|
2060
2060
|
type ProtocolStrictInput = z.infer<typeof ProtocolStrictInputZ>;
|
|
2061
2061
|
declare const SchemaFieldKindZ: z.ZodEnum<{
|
|
2062
2062
|
utf8: "utf8";
|
|
@@ -2092,7 +2092,7 @@ declare const SchemaFieldZ: z.ZodObject<{
|
|
|
2092
2092
|
header: "header";
|
|
2093
2093
|
body: "body";
|
|
2094
2094
|
}>>;
|
|
2095
|
-
}, z.core.$strip>;
|
|
2095
|
+
}, z.z.core.$strip>;
|
|
2096
2096
|
type SchemaField = z.infer<typeof SchemaFieldZ>;
|
|
2097
2097
|
declare const BodyProfileZ: z.ZodEnum<{
|
|
2098
2098
|
TLV_MAP: "TLV_MAP";
|
|
@@ -2128,25 +2128,25 @@ declare const IntentSchemaZ: z.ZodObject<{
|
|
|
2128
2128
|
header: "header";
|
|
2129
2129
|
body: "body";
|
|
2130
2130
|
}>>;
|
|
2131
|
-
}, z.core.$strip>>;
|
|
2132
|
-
}, z.core.$strip>;
|
|
2131
|
+
}, z.z.core.$strip>>;
|
|
2132
|
+
}, z.z.core.$strip>;
|
|
2133
2133
|
type IntentSchema = z.infer<typeof IntentSchemaZ>;
|
|
2134
2134
|
declare const WsHandshakeInputZ: z.ZodObject<{
|
|
2135
2135
|
clientId: z.ZodString;
|
|
2136
2136
|
isWs: z.ZodBoolean;
|
|
2137
2137
|
ip: z.ZodString;
|
|
2138
|
-
}, z.core.$strip>;
|
|
2138
|
+
}, z.z.core.$strip>;
|
|
2139
2139
|
type WsHandshakeInput = z.infer<typeof WsHandshakeInputZ>;
|
|
2140
2140
|
declare const WsHandshakeDecisionZ: z.ZodUnion<readonly [z.ZodObject<{
|
|
2141
2141
|
action: z.ZodLiteral<"ALLOW">;
|
|
2142
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2142
|
+
}, z.z.core.$strip>, z.ZodObject<{
|
|
2143
2143
|
action: z.ZodLiteral<"DENY">;
|
|
2144
2144
|
code: z.ZodString;
|
|
2145
|
-
}, z.core.$strip>]>;
|
|
2145
|
+
}, z.z.core.$strip>]>;
|
|
2146
2146
|
type WsHandshakeDecision = z.infer<typeof WsHandshakeDecisionZ>;
|
|
2147
2147
|
declare const IPReputationInputZ: z.ZodObject<{
|
|
2148
2148
|
ip: z.ZodString;
|
|
2149
|
-
}, z.core.$strip>;
|
|
2149
|
+
}, z.z.core.$strip>;
|
|
2150
2150
|
type IPReputationInput = z.infer<typeof IPReputationInputZ>;
|
|
2151
2151
|
declare const IPReputationZ: z.ZodObject<{
|
|
2152
2152
|
score: z.ZodNumber;
|
|
@@ -2155,7 +2155,7 @@ declare const IPReputationZ: z.ZodObject<{
|
|
|
2155
2155
|
failedRequests: z.ZodNumber;
|
|
2156
2156
|
blockedRequests: z.ZodNumber;
|
|
2157
2157
|
tags: z.ZodArray<z.ZodString>;
|
|
2158
|
-
}, z.core.$strip>;
|
|
2158
|
+
}, z.z.core.$strip>;
|
|
2159
2159
|
type IPReputation = z.infer<typeof IPReputationZ>;
|
|
2160
2160
|
declare const UploadStatusZ: z.ZodEnum<{
|
|
2161
2161
|
FINALIZING: "FINALIZING";
|
|
@@ -2179,24 +2179,24 @@ declare const UploadSessionZ: z.ZodObject<{
|
|
|
2179
2179
|
UPLOADING: "UPLOADING";
|
|
2180
2180
|
DONE: "DONE";
|
|
2181
2181
|
}>;
|
|
2182
|
-
}, z.core.$strip>;
|
|
2182
|
+
}, z.z.core.$strip>;
|
|
2183
2183
|
type UploadSession = z.infer<typeof UploadSessionZ>;
|
|
2184
2184
|
declare const BodyBudgetInputZ: z.ZodObject<{
|
|
2185
2185
|
intent: z.ZodString;
|
|
2186
2186
|
headerLen: z.ZodNumber;
|
|
2187
2187
|
bodyLen: z.ZodNumber;
|
|
2188
|
-
}, z.core.$strip>;
|
|
2188
|
+
}, z.z.core.$strip>;
|
|
2189
2189
|
type BodyBudgetInput = z.infer<typeof BodyBudgetInputZ>;
|
|
2190
2190
|
declare const BodyBudgetPolicyZ: z.ZodObject<{
|
|
2191
2191
|
maxHeaderBytes: z.ZodNumber;
|
|
2192
2192
|
maxBodyBytes: z.ZodNumber;
|
|
2193
|
-
}, z.core.$strip>;
|
|
2193
|
+
}, z.z.core.$strip>;
|
|
2194
2194
|
type BodyBudgetPolicy = z.infer<typeof BodyBudgetPolicyZ>;
|
|
2195
2195
|
declare const ChunkHashInputZ: z.ZodObject<{
|
|
2196
2196
|
headerTLVs: z.ZodAny;
|
|
2197
2197
|
bodyBytes: z.ZodAny;
|
|
2198
2198
|
intent: z.ZodString;
|
|
2199
|
-
}, z.core.$strip>;
|
|
2199
|
+
}, z.z.core.$strip>;
|
|
2200
2200
|
type ChunkHashInput = z.infer<typeof ChunkHashInputZ>;
|
|
2201
2201
|
declare enum ProofType$1 {
|
|
2202
2202
|
CAPSULE = 1,
|
|
@@ -2222,9 +2222,9 @@ declare const AxisContextZ: z.ZodObject<{
|
|
|
2222
2222
|
allowIntents: z.ZodArray<z.ZodString>;
|
|
2223
2223
|
limits: z.ZodOptional<z.ZodObject<{
|
|
2224
2224
|
maxBodyBytes: z.ZodOptional<z.ZodNumber>;
|
|
2225
|
-
}, z.core.$strip>>;
|
|
2225
|
+
}, z.z.core.$strip>>;
|
|
2226
2226
|
scopes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2227
|
-
}, z.core.$strip>;
|
|
2227
|
+
}, z.z.core.$strip>;
|
|
2228
2228
|
issuedAt: z.ZodNumber;
|
|
2229
2229
|
expiresAt: z.ZodNumber;
|
|
2230
2230
|
tier: z.ZodEnum<{
|
|
@@ -2232,7 +2232,7 @@ declare const AxisContextZ: z.ZodObject<{
|
|
|
2232
2232
|
STANDARD: "STANDARD";
|
|
2233
2233
|
PREMIUM: "PREMIUM";
|
|
2234
2234
|
}>;
|
|
2235
|
-
}, z.core.$strip>>;
|
|
2235
|
+
}, z.z.core.$strip>>;
|
|
2236
2236
|
passport: z.ZodOptional<z.ZodObject<{
|
|
2237
2237
|
id: z.ZodString;
|
|
2238
2238
|
public_key: z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>;
|
|
@@ -2244,15 +2244,15 @@ declare const AxisContextZ: z.ZodObject<{
|
|
|
2244
2244
|
}>;
|
|
2245
2245
|
issuedAt: z.ZodNumber;
|
|
2246
2246
|
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
2247
|
-
}, z.core.$strip>>;
|
|
2247
|
+
}, z.z.core.$strip>>;
|
|
2248
2248
|
meter: z.ZodOptional<z.ZodAny>;
|
|
2249
|
-
}, z.core.$strip>;
|
|
2249
|
+
}, z.z.core.$strip>;
|
|
2250
2250
|
type AxisContext = z.infer<typeof AxisContextZ>;
|
|
2251
2251
|
declare const AxisErrorZ: z.ZodObject<{
|
|
2252
2252
|
code: z.ZodString;
|
|
2253
2253
|
message: z.ZodString;
|
|
2254
2254
|
httpStatus: z.ZodNumber;
|
|
2255
|
-
}, z.core.$strip>;
|
|
2255
|
+
}, z.z.core.$strip>;
|
|
2256
2256
|
type AxisError = z.infer<typeof AxisErrorZ>;
|
|
2257
2257
|
|
|
2258
2258
|
interface AxisDecoded {
|