@1shotapi/ows-types 0.7.0 → 0.11.0
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/eip1193/eip7715.d.ts +25 -0
- package/dist/eip1193/eip7715.d.ts.map +1 -1
- package/dist/eip1193/index.d.ts +1 -1
- package/dist/eip1193/index.d.ts.map +1 -1
- package/dist/enums/EChainTechnology.d.ts +7 -0
- package/dist/enums/EChainTechnology.d.ts.map +1 -1
- package/dist/enums/EChainTechnology.js +7 -0
- package/dist/enums/EChainTechnology.js.map +1 -1
- package/dist/enums/index.d.ts +1 -1
- package/dist/enums/index.d.ts.map +1 -1
- package/dist/enums/index.js +1 -1
- package/dist/enums/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/primitives/AES256CipherText.d.ts +7 -5
- package/dist/primitives/AES256CipherText.d.ts.map +1 -1
- package/dist/primitives/AES256CipherText.js +8 -0
- package/dist/primitives/AES256CipherText.js.map +1 -1
- package/dist/primitives/AES256CipherTextEnvelope.d.ts +13 -0
- package/dist/primitives/AES256CipherTextEnvelope.d.ts.map +1 -0
- package/dist/primitives/AES256CipherTextEnvelope.js +11 -0
- package/dist/primitives/AES256CipherTextEnvelope.js.map +1 -0
- package/dist/primitives/AnalyticsEventId.d.ts +8 -1
- package/dist/primitives/AnalyticsEventId.d.ts.map +1 -1
- package/dist/primitives/AnalyticsEventId.js +5 -0
- package/dist/primitives/AnalyticsEventId.js.map +1 -1
- package/dist/primitives/Base64UrlEncodedString.d.ts +8 -1
- package/dist/primitives/Base64UrlEncodedString.d.ts.map +1 -1
- package/dist/primitives/Base64UrlEncodedString.js +10 -0
- package/dist/primitives/Base64UrlEncodedString.js.map +1 -1
- package/dist/primitives/BitcoinChainId.d.ts +18 -4
- package/dist/primitives/BitcoinChainId.d.ts.map +1 -1
- package/dist/primitives/BitcoinChainId.js +7 -14
- package/dist/primitives/BitcoinChainId.js.map +1 -1
- package/dist/primitives/BitcoinSegwitAccountAddress.d.ts +6 -2
- package/dist/primitives/BitcoinSegwitAccountAddress.d.ts.map +1 -1
- package/dist/primitives/BitcoinSegwitAccountAddress.js +27 -0
- package/dist/primitives/BitcoinSegwitAccountAddress.js.map +1 -1
- package/dist/primitives/BitcoinSignatureHex.d.ts +6 -2
- package/dist/primitives/BitcoinSignatureHex.d.ts.map +1 -1
- package/dist/primitives/BitcoinSignatureHex.js +8 -0
- package/dist/primitives/BitcoinSignatureHex.js.map +1 -1
- package/dist/primitives/BitcoinTransactionHash.d.ts +7 -2
- package/dist/primitives/BitcoinTransactionHash.d.ts.map +1 -1
- package/dist/primitives/BitcoinTransactionHash.js +8 -0
- package/dist/primitives/BitcoinTransactionHash.js.map +1 -1
- package/dist/primitives/COSEPublicKey.d.ts +5 -1
- package/dist/primitives/COSEPublicKey.d.ts.map +1 -1
- package/dist/primitives/COSEPublicKey.js +10 -0
- package/dist/primitives/COSEPublicKey.js.map +1 -1
- package/dist/primitives/CredentialClaimName.d.ts +8 -1
- package/dist/primitives/CredentialClaimName.d.ts.map +1 -1
- package/dist/primitives/CredentialClaimName.js +6 -0
- package/dist/primitives/CredentialClaimName.js.map +1 -1
- package/dist/primitives/CredentialConfigurationId.d.ts +8 -1
- package/dist/primitives/CredentialConfigurationId.d.ts.map +1 -1
- package/dist/primitives/CredentialConfigurationId.js +6 -0
- package/dist/primitives/CredentialConfigurationId.js.map +1 -1
- package/dist/primitives/CredentialFormatId.d.ts +8 -1
- package/dist/primitives/CredentialFormatId.d.ts.map +1 -1
- package/dist/primitives/CredentialFormatId.js +6 -0
- package/dist/primitives/CredentialFormatId.js.map +1 -1
- package/dist/primitives/CredentialId.d.ts +9 -1
- package/dist/primitives/CredentialId.d.ts.map +1 -1
- package/dist/primitives/CredentialId.js +6 -0
- package/dist/primitives/CredentialId.js.map +1 -1
- package/dist/primitives/CredentialIssuer.d.ts +8 -1
- package/dist/primitives/CredentialIssuer.d.ts.map +1 -1
- package/dist/primitives/CredentialIssuer.js +6 -0
- package/dist/primitives/CredentialIssuer.js.map +1 -1
- package/dist/primitives/CredentialOfferUri.d.ts +8 -1
- package/dist/primitives/CredentialOfferUri.d.ts.map +1 -1
- package/dist/primitives/CredentialOfferUri.js +19 -0
- package/dist/primitives/CredentialOfferUri.js.map +1 -1
- package/dist/primitives/CredentialScope.d.ts +8 -1
- package/dist/primitives/CredentialScope.d.ts.map +1 -1
- package/dist/primitives/CredentialScope.js +6 -0
- package/dist/primitives/CredentialScope.js.map +1 -1
- package/dist/primitives/CredentialTypeName.d.ts +8 -1
- package/dist/primitives/CredentialTypeName.d.ts.map +1 -1
- package/dist/primitives/CredentialTypeName.js +6 -0
- package/dist/primitives/CredentialTypeName.js.map +1 -1
- package/dist/primitives/DisplayRequestId.d.ts +9 -1
- package/dist/primitives/DisplayRequestId.d.ts.map +1 -1
- package/dist/primitives/DisplayRequestId.js +6 -0
- package/dist/primitives/DisplayRequestId.js.map +1 -1
- package/dist/primitives/DomainString.d.ts +5 -0
- package/dist/primitives/DomainString.d.ts.map +1 -1
- package/dist/primitives/DomainString.js +9 -0
- package/dist/primitives/DomainString.js.map +1 -1
- package/dist/primitives/ED25519PublicKey.d.ts +8 -1
- package/dist/primitives/ED25519PublicKey.d.ts.map +1 -1
- package/dist/primitives/ED25519PublicKey.js +8 -0
- package/dist/primitives/ED25519PublicKey.js.map +1 -1
- package/dist/primitives/EVMAccountAddress.d.ts +5 -2
- package/dist/primitives/EVMAccountAddress.d.ts.map +1 -1
- package/dist/primitives/EVMAccountAddress.js +15 -0
- package/dist/primitives/EVMAccountAddress.js.map +1 -1
- package/dist/primitives/EVMChainId.d.ts +6 -1
- package/dist/primitives/EVMChainId.d.ts.map +1 -1
- package/dist/primitives/EVMChainId.js +6 -0
- package/dist/primitives/EVMChainId.js.map +1 -1
- package/dist/primitives/EVMContractAddress.d.ts +3 -2
- package/dist/primitives/EVMContractAddress.d.ts.map +1 -1
- package/dist/primitives/EVMContractAddress.js +15 -0
- package/dist/primitives/EVMContractAddress.js.map +1 -1
- package/dist/primitives/EVMSignatureHex.d.ts +6 -1
- package/dist/primitives/EVMSignatureHex.d.ts.map +1 -1
- package/dist/primitives/EVMSignatureHex.js +8 -0
- package/dist/primitives/EVMSignatureHex.js.map +1 -1
- package/dist/primitives/EVMTransactionHash.d.ts +5 -1
- package/dist/primitives/EVMTransactionHash.d.ts.map +1 -1
- package/dist/primitives/EVMTransactionHash.js +8 -0
- package/dist/primitives/EVMTransactionHash.js.map +1 -1
- package/dist/primitives/HexString.d.ts +8 -1
- package/dist/primitives/HexString.d.ts.map +1 -1
- package/dist/primitives/HexString.js +6 -0
- package/dist/primitives/HexString.js.map +1 -1
- package/dist/primitives/ISO8601DateTime.d.ts +8 -1
- package/dist/primitives/ISO8601DateTime.d.ts.map +1 -1
- package/dist/primitives/ISO8601DateTime.js +9 -0
- package/dist/primitives/ISO8601DateTime.js.map +1 -1
- package/dist/primitives/JSONString.d.ts +6 -2
- package/dist/primitives/JSONString.d.ts.map +1 -1
- package/dist/primitives/JSONString.js +14 -0
- package/dist/primitives/JSONString.js.map +1 -1
- package/dist/primitives/JWKThumbprint.d.ts +8 -1
- package/dist/primitives/JWKThumbprint.d.ts.map +1 -1
- package/dist/primitives/JWKThumbprint.js +10 -0
- package/dist/primitives/JWKThumbprint.js.map +1 -1
- package/dist/primitives/OWSChainId.d.ts +35 -1
- package/dist/primitives/OWSChainId.d.ts.map +1 -1
- package/dist/primitives/OWSChainId.js +10 -1
- package/dist/primitives/OWSChainId.js.map +1 -1
- package/dist/primitives/PresentationRequestUri.d.ts +8 -1
- package/dist/primitives/PresentationRequestUri.d.ts.map +1 -1
- package/dist/primitives/PresentationRequestUri.js +19 -0
- package/dist/primitives/PresentationRequestUri.js.map +1 -1
- package/dist/primitives/RPCCallId.d.ts +5 -0
- package/dist/primitives/RPCCallId.d.ts.map +1 -1
- package/dist/primitives/RPCCallId.js +7 -0
- package/dist/primitives/RPCCallId.js.map +1 -1
- package/dist/primitives/RelayerTransactionId.d.ts +7 -3
- package/dist/primitives/RelayerTransactionId.d.ts.map +1 -1
- package/dist/primitives/RelayerTransactionId.js +8 -0
- package/dist/primitives/RelayerTransactionId.js.map +1 -1
- package/dist/primitives/SECP256K1PublicKey.d.ts +10 -1
- package/dist/primitives/SECP256K1PublicKey.d.ts.map +1 -1
- package/dist/primitives/SECP256K1PublicKey.js +8 -0
- package/dist/primitives/SECP256K1PublicKey.js.map +1 -1
- package/dist/primitives/SPKIPublicKey.d.ts +5 -2
- package/dist/primitives/SPKIPublicKey.d.ts.map +1 -1
- package/dist/primitives/SPKIPublicKey.js +10 -0
- package/dist/primitives/SPKIPublicKey.js.map +1 -1
- package/dist/primitives/SdJwtVcPresentationString.d.ts +5 -0
- package/dist/primitives/SdJwtVcPresentationString.d.ts.map +1 -1
- package/dist/primitives/SdJwtVcPresentationString.js +6 -0
- package/dist/primitives/SdJwtVcPresentationString.js.map +1 -1
- package/dist/primitives/SolanaAccountAddress.d.ts +5 -1
- package/dist/primitives/SolanaAccountAddress.d.ts.map +1 -1
- package/dist/primitives/SolanaAccountAddress.js +22 -0
- package/dist/primitives/SolanaAccountAddress.js.map +1 -1
- package/dist/primitives/SolanaChainId.d.ts +31 -0
- package/dist/primitives/SolanaChainId.d.ts.map +1 -0
- package/dist/primitives/SolanaChainId.js +11 -0
- package/dist/primitives/SolanaChainId.js.map +1 -0
- package/dist/primitives/UnixTimestamp.d.ts +3 -0
- package/dist/primitives/UnixTimestamp.d.ts.map +1 -1
- package/dist/primitives/UnixTimestamp.js +7 -0
- package/dist/primitives/UnixTimestamp.js.map +1 -1
- package/dist/primitives/UriString.d.ts +5 -0
- package/dist/primitives/UriString.d.ts.map +1 -1
- package/dist/primitives/UriString.js +21 -0
- package/dist/primitives/UriString.js.map +1 -1
- package/dist/primitives/index.d.ts +2 -0
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/primitives/index.js +2 -0
- package/dist/primitives/index.js.map +1 -1
- package/dist/protocol/ows-signer.d.ts +3 -3
- package/dist/protocol/ows-signer.d.ts.map +1 -1
- package/dist/utils/ChainUtils.d.ts +24 -0
- package/dist/utils/ChainUtils.d.ts.map +1 -0
- package/dist/utils/ChainUtils.js +66 -0
- package/dist/utils/ChainUtils.js.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/package.json +5 -2
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { type Brand } from "ts-brand";
|
|
2
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
/**
|
|
4
|
+
* SD-JWT claim name within a credential.
|
|
5
|
+
*
|
|
6
|
+
* Example: `"given_name"`
|
|
7
|
+
*/
|
|
3
8
|
export type CredentialClaimName = Brand<string, "CredentialClaimName">;
|
|
4
9
|
export declare const CredentialClaimName: import("ts-brand").Brander<CredentialClaimName>;
|
|
10
|
+
/** Zod schema: non-empty claim name. */
|
|
11
|
+
export declare const CredentialClaimNameSchema: z.ZodPipe<z.ZodString, z.ZodTransform<CredentialClaimName, string>>;
|
|
5
12
|
//# sourceMappingURL=CredentialClaimName.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialClaimName.d.ts","sourceRoot":"","sources":["../../src/primitives/CredentialClaimName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"CredentialClaimName.d.ts","sourceRoot":"","sources":["../../src/primitives/CredentialClaimName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;AACvE,eAAO,MAAM,mBAAmB,iDAA8B,CAAC;AAE/D,wCAAwC;AACxC,eAAO,MAAM,yBAAyB,qEAGK,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { make } from "ts-brand";
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
export const CredentialClaimName = make();
|
|
4
|
+
/** Zod schema: non-empty claim name. */
|
|
5
|
+
export const CredentialClaimNameSchema = z
|
|
6
|
+
.string()
|
|
7
|
+
.min(1, { message: "must be a non-empty claim name" })
|
|
8
|
+
.transform((s) => CredentialClaimName(s));
|
|
3
9
|
//# sourceMappingURL=CredentialClaimName.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialClaimName.js","sourceRoot":"","sources":["../../src/primitives/CredentialClaimName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"CredentialClaimName.js","sourceRoot":"","sources":["../../src/primitives/CredentialClaimName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,EAAuB,CAAC;AAE/D,wCAAwC;AACxC,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC;KACvC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;KACrD,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { type Brand } from "ts-brand";
|
|
2
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
/**
|
|
4
|
+
* OID4VCI credential configuration identifier.
|
|
5
|
+
*
|
|
6
|
+
* Example: `"KycCredential"`
|
|
7
|
+
*/
|
|
3
8
|
export type CredentialConfigurationId = Brand<string, "CredentialConfigurationId">;
|
|
4
9
|
export declare const CredentialConfigurationId: import("ts-brand").Brander<CredentialConfigurationId>;
|
|
10
|
+
/** Zod schema: non-empty OID4 credential configuration id. */
|
|
11
|
+
export declare const CredentialConfigurationIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<CredentialConfigurationId, string>>;
|
|
5
12
|
//# sourceMappingURL=CredentialConfigurationId.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialConfigurationId.d.ts","sourceRoot":"","sources":["../../src/primitives/CredentialConfigurationId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"CredentialConfigurationId.d.ts","sourceRoot":"","sources":["../../src/primitives/CredentialConfigurationId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAC3C,MAAM,EACN,2BAA2B,CAC5B,CAAC;AACF,eAAO,MAAM,yBAAyB,uDAAoC,CAAC;AAE3E,8DAA8D;AAC9D,eAAO,MAAM,+BAA+B,2EAGK,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { make } from "ts-brand";
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
export const CredentialConfigurationId = make();
|
|
4
|
+
/** Zod schema: non-empty OID4 credential configuration id. */
|
|
5
|
+
export const CredentialConfigurationIdSchema = z
|
|
6
|
+
.string()
|
|
7
|
+
.min(1, { message: "must be a non-empty credential configuration id" })
|
|
8
|
+
.transform((s) => CredentialConfigurationId(s));
|
|
3
9
|
//# sourceMappingURL=CredentialConfigurationId.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialConfigurationId.js","sourceRoot":"","sources":["../../src/primitives/CredentialConfigurationId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"CredentialConfigurationId.js","sourceRoot":"","sources":["../../src/primitives/CredentialConfigurationId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,EAA6B,CAAC;AAE3E,8DAA8D;AAC9D,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC;KAC7C,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,iDAAiD,EAAE,CAAC;KACtE,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { type Brand } from "ts-brand";
|
|
2
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
/**
|
|
4
|
+
* Credential encoding format identifier from issuer metadata.
|
|
5
|
+
*
|
|
6
|
+
* Example: `"sd-jwt-vc"`
|
|
7
|
+
*/
|
|
3
8
|
export type CredentialFormatId = Brand<string, "CredentialFormatId">;
|
|
4
9
|
export declare const CredentialFormatId: import("ts-brand").Brander<CredentialFormatId>;
|
|
10
|
+
/** Zod schema: non-empty OID4 format id. */
|
|
11
|
+
export declare const CredentialFormatIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<CredentialFormatId, string>>;
|
|
5
12
|
//# sourceMappingURL=CredentialFormatId.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialFormatId.d.ts","sourceRoot":"","sources":["../../src/primitives/CredentialFormatId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"CredentialFormatId.d.ts","sourceRoot":"","sources":["../../src/primitives/CredentialFormatId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AACrE,eAAO,MAAM,kBAAkB,gDAA6B,CAAC;AAE7D,4CAA4C;AAC5C,eAAO,MAAM,wBAAwB,oEAGK,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { make } from "ts-brand";
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
export const CredentialFormatId = make();
|
|
4
|
+
/** Zod schema: non-empty OID4 format id. */
|
|
5
|
+
export const CredentialFormatIdSchema = z
|
|
6
|
+
.string()
|
|
7
|
+
.min(1, { message: "must be a non-empty credential format id" })
|
|
8
|
+
.transform((s) => CredentialFormatId(s));
|
|
3
9
|
//# sourceMappingURL=CredentialFormatId.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialFormatId.js","sourceRoot":"","sources":["../../src/primitives/CredentialFormatId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"CredentialFormatId.js","sourceRoot":"","sources":["../../src/primitives/CredentialFormatId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,EAAsB,CAAC;AAE7D,4CAA4C;AAC5C,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,0CAA0C,EAAE,CAAC;KAC/D,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { type Brand } from "ts-brand";
|
|
2
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
/**
|
|
4
|
+
* Stable identifier for a credential held in the wallet store
|
|
5
|
+
* (WebAuthn credential id or store-local id).
|
|
6
|
+
*
|
|
7
|
+
* Example: `"cred_1719792000_ab12cd"`
|
|
8
|
+
*/
|
|
3
9
|
export type CredentialId = Brand<string, "CredentialId">;
|
|
4
10
|
export declare const CredentialId: import("ts-brand").Brander<CredentialId>;
|
|
11
|
+
/** Zod schema: non-empty credential id. */
|
|
12
|
+
export declare const CredentialIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<CredentialId, string>>;
|
|
5
13
|
//# sourceMappingURL=CredentialId.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialId.d.ts","sourceRoot":"","sources":["../../src/primitives/CredentialId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"CredentialId.d.ts","sourceRoot":"","sources":["../../src/primitives/CredentialId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AACzD,eAAO,MAAM,YAAY,0CAAuB,CAAC;AAEjD,2CAA2C;AAC3C,eAAO,MAAM,kBAAkB,8DAGK,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { make } from "ts-brand";
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
export const CredentialId = make();
|
|
4
|
+
/** Zod schema: non-empty credential id. */
|
|
5
|
+
export const CredentialIdSchema = z
|
|
6
|
+
.string()
|
|
7
|
+
.min(1, { message: "must be a non-empty credential id" })
|
|
8
|
+
.transform((s) => CredentialId(s));
|
|
3
9
|
//# sourceMappingURL=CredentialId.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialId.js","sourceRoot":"","sources":["../../src/primitives/CredentialId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"CredentialId.js","sourceRoot":"","sources":["../../src/primitives/CredentialId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,EAAgB,CAAC;AAEjD,2CAA2C;AAC3C,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;KACxD,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { type Brand } from "ts-brand";
|
|
2
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
/**
|
|
4
|
+
* Credential issuer identifier (typically an HTTPS origin or DID).
|
|
5
|
+
*
|
|
6
|
+
* Example: `"https://issuer.example"`
|
|
7
|
+
*/
|
|
3
8
|
export type CredentialIssuer = Brand<string, "CredentialIssuer">;
|
|
4
9
|
export declare const CredentialIssuer: import("ts-brand").Brander<CredentialIssuer>;
|
|
10
|
+
/** Zod schema: non-empty credential issuer id. */
|
|
11
|
+
export declare const CredentialIssuerSchema: z.ZodPipe<z.ZodString, z.ZodTransform<CredentialIssuer, string>>;
|
|
5
12
|
//# sourceMappingURL=CredentialIssuer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialIssuer.d.ts","sourceRoot":"","sources":["../../src/primitives/CredentialIssuer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"CredentialIssuer.d.ts","sourceRoot":"","sources":["../../src/primitives/CredentialIssuer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;AACjE,eAAO,MAAM,gBAAgB,8CAA2B,CAAC;AAEzD,kDAAkD;AAClD,eAAO,MAAM,sBAAsB,kEAGK,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { make } from "ts-brand";
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
export const CredentialIssuer = make();
|
|
4
|
+
/** Zod schema: non-empty credential issuer id. */
|
|
5
|
+
export const CredentialIssuerSchema = z
|
|
6
|
+
.string()
|
|
7
|
+
.min(1, { message: "must be a non-empty credential issuer" })
|
|
8
|
+
.transform((s) => CredentialIssuer(s));
|
|
3
9
|
//# sourceMappingURL=CredentialIssuer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialIssuer.js","sourceRoot":"","sources":["../../src/primitives/CredentialIssuer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"CredentialIssuer.js","sourceRoot":"","sources":["../../src/primitives/CredentialIssuer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,EAAoB,CAAC;AAEzD,kDAAkD;AAClD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC;KACpC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;KAC5D,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { type Brand } from "ts-brand";
|
|
2
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
/**
|
|
4
|
+
* URI referencing an OID4VCI credential offer (HTTPS, `openid-credential-offer:`, or mock scheme).
|
|
5
|
+
*
|
|
6
|
+
* Example: `"openid-credential-offer://?credential_offer=…"`
|
|
7
|
+
*/
|
|
3
8
|
export type CredentialOfferUri = Brand<string, "CredentialOfferUri">;
|
|
4
9
|
export declare const CredentialOfferUri: import("ts-brand").Brander<CredentialOfferUri>;
|
|
10
|
+
/** Zod schema: credential offer URI (http(s) or custom scheme). */
|
|
11
|
+
export declare const CredentialOfferUriSchema: z.ZodPipe<z.ZodString, z.ZodTransform<CredentialOfferUri, string>>;
|
|
5
12
|
//# sourceMappingURL=CredentialOfferUri.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialOfferUri.d.ts","sourceRoot":"","sources":["../../src/primitives/CredentialOfferUri.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"CredentialOfferUri.d.ts","sourceRoot":"","sources":["../../src/primitives/CredentialOfferUri.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AACrE,eAAO,MAAM,kBAAkB,gDAA6B,CAAC;AAe7D,mEAAmE;AACnE,eAAO,MAAM,wBAAwB,oEAGK,CAAC"}
|
|
@@ -1,3 +1,22 @@
|
|
|
1
1
|
import { make } from "ts-brand";
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
export const CredentialOfferUri = make();
|
|
4
|
+
function isUriLike(s) {
|
|
5
|
+
if (!s.trim()) {
|
|
6
|
+
return false;
|
|
7
|
+
}
|
|
8
|
+
try {
|
|
9
|
+
// eslint-disable-next-line no-new
|
|
10
|
+
new URL(s);
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
catch {
|
|
14
|
+
return /^[a-z][a-z0-9+.-]*:/i.test(s);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
/** Zod schema: credential offer URI (http(s) or custom scheme). */
|
|
18
|
+
export const CredentialOfferUriSchema = z
|
|
19
|
+
.string()
|
|
20
|
+
.refine(isUriLike, { message: "must be a valid credential offer URI" })
|
|
21
|
+
.transform((s) => CredentialOfferUri(s));
|
|
3
22
|
//# sourceMappingURL=CredentialOfferUri.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialOfferUri.js","sourceRoot":"","sources":["../../src/primitives/CredentialOfferUri.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"CredentialOfferUri.js","sourceRoot":"","sources":["../../src/primitives/CredentialOfferUri.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,EAAsB,CAAC;AAE7D,SAAS,SAAS,CAAC,CAAS;IAC1B,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,CAAC;QACH,kCAAkC;QAClC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;QACX,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,sBAAsB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACxC,CAAC;AACH,CAAC;AAED,mEAAmE;AACnE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,MAAM,EAAE;KACR,MAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;KACtE,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { type Brand } from "ts-brand";
|
|
2
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
/**
|
|
4
|
+
* OID4 / credential scope string.
|
|
5
|
+
*
|
|
6
|
+
* Example: `"openid"`
|
|
7
|
+
*/
|
|
3
8
|
export type CredentialScope = Brand<string, "CredentialScope">;
|
|
4
9
|
export declare const CredentialScope: import("ts-brand").Brander<CredentialScope>;
|
|
10
|
+
/** Zod schema: non-empty credential scope. */
|
|
11
|
+
export declare const CredentialScopeSchema: z.ZodPipe<z.ZodString, z.ZodTransform<CredentialScope, string>>;
|
|
5
12
|
//# sourceMappingURL=CredentialScope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialScope.d.ts","sourceRoot":"","sources":["../../src/primitives/CredentialScope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"CredentialScope.d.ts","sourceRoot":"","sources":["../../src/primitives/CredentialScope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC/D,eAAO,MAAM,eAAe,6CAA0B,CAAC;AAEvD,8CAA8C;AAC9C,eAAO,MAAM,qBAAqB,iEAGK,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { make } from "ts-brand";
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
export const CredentialScope = make();
|
|
4
|
+
/** Zod schema: non-empty credential scope. */
|
|
5
|
+
export const CredentialScopeSchema = z
|
|
6
|
+
.string()
|
|
7
|
+
.min(1, { message: "must be a non-empty credential scope" })
|
|
8
|
+
.transform((s) => CredentialScope(s));
|
|
3
9
|
//# sourceMappingURL=CredentialScope.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialScope.js","sourceRoot":"","sources":["../../src/primitives/CredentialScope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"CredentialScope.js","sourceRoot":"","sources":["../../src/primitives/CredentialScope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,EAAmB,CAAC;AAEvD,8CAA8C;AAC9C,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC;KACnC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;KAC3D,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { type Brand } from "ts-brand";
|
|
2
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
/**
|
|
4
|
+
* SD-JWT / VC type name.
|
|
5
|
+
*
|
|
6
|
+
* Example: `"VerifiableCredential"`
|
|
7
|
+
*/
|
|
3
8
|
export type CredentialTypeName = Brand<string, "CredentialTypeName">;
|
|
4
9
|
export declare const CredentialTypeName: import("ts-brand").Brander<CredentialTypeName>;
|
|
10
|
+
/** Zod schema: non-empty credential type name. */
|
|
11
|
+
export declare const CredentialTypeNameSchema: z.ZodPipe<z.ZodString, z.ZodTransform<CredentialTypeName, string>>;
|
|
5
12
|
//# sourceMappingURL=CredentialTypeName.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialTypeName.d.ts","sourceRoot":"","sources":["../../src/primitives/CredentialTypeName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"CredentialTypeName.d.ts","sourceRoot":"","sources":["../../src/primitives/CredentialTypeName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AACrE,eAAO,MAAM,kBAAkB,gDAA6B,CAAC;AAE7D,kDAAkD;AAClD,eAAO,MAAM,wBAAwB,oEAGK,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { make } from "ts-brand";
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
export const CredentialTypeName = make();
|
|
4
|
+
/** Zod schema: non-empty credential type name. */
|
|
5
|
+
export const CredentialTypeNameSchema = z
|
|
6
|
+
.string()
|
|
7
|
+
.min(1, { message: "must be a non-empty credential type name" })
|
|
8
|
+
.transform((s) => CredentialTypeName(s));
|
|
3
9
|
//# sourceMappingURL=CredentialTypeName.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialTypeName.js","sourceRoot":"","sources":["../../src/primitives/CredentialTypeName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"CredentialTypeName.js","sourceRoot":"","sources":["../../src/primitives/CredentialTypeName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,EAAsB,CAAC;AAE7D,kDAAkD;AAClD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,0CAA0C,EAAE,CAAC;KAC/D,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { type Brand } from "ts-brand";
|
|
2
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
/**
|
|
4
|
+
* Correlates a branding-layer display request with the host response.
|
|
5
|
+
* Typically a monotonic decimal string from the branding session counter.
|
|
6
|
+
*
|
|
7
|
+
* Example: `"1"`
|
|
8
|
+
*/
|
|
3
9
|
export type DisplayRequestId = Brand<string, "DisplayRequestId">;
|
|
4
10
|
export declare const DisplayRequestId: import("ts-brand").Brander<DisplayRequestId>;
|
|
11
|
+
/** Zod schema: non-empty display request id string. */
|
|
12
|
+
export declare const DisplayRequestIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<DisplayRequestId, string>>;
|
|
5
13
|
//# sourceMappingURL=DisplayRequestId.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DisplayRequestId.d.ts","sourceRoot":"","sources":["../../src/primitives/DisplayRequestId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"DisplayRequestId.d.ts","sourceRoot":"","sources":["../../src/primitives/DisplayRequestId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;AACjE,eAAO,MAAM,gBAAgB,8CAA2B,CAAC;AAEzD,uDAAuD;AACvD,eAAO,MAAM,sBAAsB,kEAGK,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { make } from "ts-brand";
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
export const DisplayRequestId = make();
|
|
4
|
+
/** Zod schema: non-empty display request id string. */
|
|
5
|
+
export const DisplayRequestIdSchema = z
|
|
6
|
+
.string()
|
|
7
|
+
.min(1, { message: "must be a non-empty display request id" })
|
|
8
|
+
.transform((s) => DisplayRequestId(s));
|
|
3
9
|
//# sourceMappingURL=DisplayRequestId.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DisplayRequestId.js","sourceRoot":"","sources":["../../src/primitives/DisplayRequestId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"DisplayRequestId.js","sourceRoot":"","sources":["../../src/primitives/DisplayRequestId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,EAAoB,CAAC;AAEzD,uDAAuD;AACvD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC;KACpC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;KAC7D,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { type Brand } from "ts-brand";
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
/**
|
|
3
4
|
* DNS hostname / domain without scheme or path (e.g. `example.com`, `app.example.com`,
|
|
4
5
|
* `localhost`). Does not include a protocol or path — use {@link UriString} for full
|
|
5
6
|
* URLs such as `https://example.com/foo`.
|
|
7
|
+
*
|
|
8
|
+
* Example: `"wallet.1shotapi.com"`
|
|
6
9
|
*/
|
|
7
10
|
export type DomainString = Brand<string, "DomainString">;
|
|
8
11
|
export declare const DomainString: import("ts-brand").Brander<DomainString>;
|
|
12
|
+
/** Zod schema: non-empty hostname / domain (no scheme). */
|
|
13
|
+
export declare const DomainStringSchema: z.ZodPipe<z.ZodString, z.ZodTransform<DomainString, string>>;
|
|
9
14
|
//# sourceMappingURL=DomainString.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DomainString.d.ts","sourceRoot":"","sources":["../../src/primitives/DomainString.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"DomainString.d.ts","sourceRoot":"","sources":["../../src/primitives/DomainString.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AACzD,eAAO,MAAM,YAAY,0CAAuB,CAAC;AAEjD,2DAA2D;AAC3D,eAAO,MAAM,kBAAkB,8DAMK,CAAC"}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
import { make } from "ts-brand";
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
export const DomainString = make();
|
|
4
|
+
/** Zod schema: non-empty hostname / domain (no scheme). */
|
|
5
|
+
export const DomainStringSchema = z
|
|
6
|
+
.string()
|
|
7
|
+
.min(1, { message: "must be a non-empty domain" })
|
|
8
|
+
.refine((s) => !s.includes("://") && !s.includes("/"), {
|
|
9
|
+
message: "must be a hostname without scheme or path",
|
|
10
|
+
})
|
|
11
|
+
.transform((s) => DomainString(s));
|
|
3
12
|
//# sourceMappingURL=DomainString.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DomainString.js","sourceRoot":"","sources":["../../src/primitives/DomainString.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"DomainString.js","sourceRoot":"","sources":["../../src/primitives/DomainString.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,EAAgB,CAAC;AAEjD,2DAA2D;AAC3D,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;KACjD,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;IACrD,OAAO,EAAE,2CAA2C;CACrD,CAAC;KACD,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { type Brand } from "ts-brand";
|
|
2
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
/**
|
|
4
|
+
* Hex-encoded Ed25519 public key (`0x` + 32 bytes / 64 hex chars).
|
|
5
|
+
*
|
|
6
|
+
* Example: `"0x" + 64 hex characters`
|
|
7
|
+
*/
|
|
3
8
|
export type ED25519PublicKey = Brand<`0x${string}`, "ED25519PublicKey">;
|
|
4
9
|
export declare const ED25519PublicKey: import("ts-brand").Brander<ED25519PublicKey>;
|
|
10
|
+
/** Zod schema: 0x-prefixed 32-byte Ed25519 public key. */
|
|
11
|
+
export declare const ED25519PublicKeySchema: z.ZodPipe<z.ZodString, z.ZodTransform<ED25519PublicKey, string>>;
|
|
5
12
|
//# sourceMappingURL=ED25519PublicKey.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ED25519PublicKey.d.ts","sourceRoot":"","sources":["../../src/primitives/ED25519PublicKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"ED25519PublicKey.d.ts","sourceRoot":"","sources":["../../src/primitives/ED25519PublicKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,KAAK,MAAM,EAAE,EAAE,kBAAkB,CAAC,CAAC;AACxE,eAAO,MAAM,gBAAgB,8CAA2B,CAAC;AAEzD,0DAA0D;AAC1D,eAAO,MAAM,sBAAsB,kEAKoC,CAAC"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import { make } from "ts-brand";
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
export const ED25519PublicKey = make();
|
|
4
|
+
/** Zod schema: 0x-prefixed 32-byte Ed25519 public key. */
|
|
5
|
+
export const ED25519PublicKeySchema = z
|
|
6
|
+
.string()
|
|
7
|
+
.regex(/^0x[0-9a-fA-F]{64}$/i, {
|
|
8
|
+
message: "must be a 32-byte 0x hex Ed25519 public key",
|
|
9
|
+
})
|
|
10
|
+
.transform((s) => ED25519PublicKey(s.toLowerCase()));
|
|
3
11
|
//# sourceMappingURL=ED25519PublicKey.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ED25519PublicKey.js","sourceRoot":"","sources":["../../src/primitives/ED25519PublicKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"ED25519PublicKey.js","sourceRoot":"","sources":["../../src/primitives/ED25519PublicKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,EAAoB,CAAC;AAEzD,0DAA0D;AAC1D,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC;KACpC,MAAM,EAAE;KACR,KAAK,CAAC,sBAAsB,EAAE;IAC7B,OAAO,EAAE,6CAA6C;CACvD,CAAC;KACD,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,WAAW,EAAmB,CAAC,CAAC,CAAC"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { type Brand } from "ts-brand";
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
/**
|
|
3
4
|
* EVM account address as an EIP-55 checksummed `0x`-prefixed hex string
|
|
4
|
-
* (mixed-case, 40 hex digits). Prefer constructing via
|
|
5
|
-
*
|
|
5
|
+
* (mixed-case, 40 hex digits). Prefer constructing via
|
|
6
|
+
* {@link EVMAccountAddressSchema} or `AddressUtils.validateEVMAddress`.
|
|
6
7
|
*
|
|
7
8
|
* Example: `"0xAbCdEf0123456789AbCdEf0123456789aBcDeF01"`
|
|
8
9
|
*/
|
|
9
10
|
export type EVMAccountAddress = Brand<`0x${string}`, "EVMAccountAddress">;
|
|
10
11
|
export declare const EVMAccountAddress: import("ts-brand").Brander<EVMAccountAddress>;
|
|
12
|
+
/** Zod schema: 20-byte hex address, normalized to EIP-55 checksum. */
|
|
13
|
+
export declare const EVMAccountAddressSchema: z.ZodPipe<z.ZodString, z.ZodTransform<EVMAccountAddress, string>>;
|
|
11
14
|
//# sourceMappingURL=EVMAccountAddress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EVMAccountAddress.d.ts","sourceRoot":"","sources":["../../src/primitives/EVMAccountAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAE5C;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,KAAK,MAAM,EAAE,EAAE,mBAAmB,CAAC,CAAC;AAC1E,eAAO,MAAM,iBAAiB,+CAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"EVMAccountAddress.d.ts","sourceRoot":"","sources":["../../src/primitives/EVMAccountAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,KAAK,MAAM,EAAE,EAAE,mBAAmB,CAAC,CAAC;AAC1E,eAAO,MAAM,iBAAiB,+CAA4B,CAAC;AAE3D,sEAAsE;AACtE,eAAO,MAAM,uBAAuB,mEAUhC,CAAC"}
|
|
@@ -1,3 +1,18 @@
|
|
|
1
1
|
import { make } from "ts-brand";
|
|
2
|
+
import { getAddress } from "viem";
|
|
3
|
+
import { z } from "zod";
|
|
2
4
|
export const EVMAccountAddress = make();
|
|
5
|
+
/** Zod schema: 20-byte hex address, normalized to EIP-55 checksum. */
|
|
6
|
+
export const EVMAccountAddressSchema = z
|
|
7
|
+
.string()
|
|
8
|
+
.regex(/^0x[0-9a-fA-F]{40}$/, { message: "must be a 20-byte 0x hex address" })
|
|
9
|
+
.transform((s, ctx) => {
|
|
10
|
+
try {
|
|
11
|
+
return EVMAccountAddress(getAddress(s));
|
|
12
|
+
}
|
|
13
|
+
catch {
|
|
14
|
+
ctx.addIssue({ code: "custom", message: "invalid EIP-55 address" });
|
|
15
|
+
return z.NEVER;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
3
18
|
//# sourceMappingURL=EVMAccountAddress.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EVMAccountAddress.js","sourceRoot":"","sources":["../../src/primitives/EVMAccountAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"EVMAccountAddress.js","sourceRoot":"","sources":["../../src/primitives/EVMAccountAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,EAAqB,CAAC;AAE3D,sEAAsE;AACtE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC;KACrC,MAAM,EAAE;KACR,KAAK,CAAC,qBAAqB,EAAE,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;KAC7E,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;IACpB,IAAI,CAAC;QACH,OAAO,iBAAiB,CAAC,UAAU,CAAC,CAAkB,CAAC,CAAC,CAAC;IAC3D,CAAC;IAAC,MAAM,CAAC;QACP,GAAG,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,wBAAwB,EAAE,CAAC,CAAC;QACpE,OAAO,CAAC,CAAC,KAAK,CAAC;IACjB,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { type Brand } from "ts-brand";
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
/**
|
|
3
4
|
* EIP-155 chain id as a `0x`-prefixed hex string (EIP-1193 `eth_chainId` form).
|
|
4
|
-
*
|
|
5
|
+
* Schemas normalize leading zeros so `"0x01"` and `"0x1"` compare equal.
|
|
6
|
+
*
|
|
7
|
+
* Example: `"0x1"` (Ethereum mainnet), `"0x13b2"` (Arc)
|
|
5
8
|
*/
|
|
6
9
|
export type EVMChainId = Brand<`0x${string}`, "EVMChainId">;
|
|
7
10
|
export declare const EVMChainId: import("ts-brand").Brander<EVMChainId>;
|
|
11
|
+
/** Zod schema: 0x hex chain id, normalized (no leading zeros in the hex body). */
|
|
12
|
+
export declare const EVMChainIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<EVMChainId, string>>;
|
|
8
13
|
//# sourceMappingURL=EVMChainId.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EVMChainId.d.ts","sourceRoot":"","sources":["../../src/primitives/EVMChainId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"EVMChainId.d.ts","sourceRoot":"","sources":["../../src/primitives/EVMChainId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,MAAM,EAAE,EAAE,YAAY,CAAC,CAAC;AAC5D,eAAO,MAAM,UAAU,wCAAqB,CAAC;AAE7C,kFAAkF;AAClF,eAAO,MAAM,gBAAgB,4DAK1B,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { make } from "ts-brand";
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
export const EVMChainId = make();
|
|
4
|
+
/** Zod schema: 0x hex chain id, normalized (no leading zeros in the hex body). */
|
|
5
|
+
export const EVMChainIdSchema = z
|
|
6
|
+
.string()
|
|
7
|
+
.regex(/^0x[0-9a-fA-F]+$/, { message: "must be a 0x-prefixed hex chain id" })
|
|
8
|
+
.transform((value) => EVMChainId(`0x${BigInt(value).toString(16)}`));
|
|
3
9
|
//# sourceMappingURL=EVMChainId.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EVMChainId.js","sourceRoot":"","sources":["../../src/primitives/EVMChainId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"EVMChainId.js","sourceRoot":"","sources":["../../src/primitives/EVMChainId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,EAAc,CAAC;AAE7C,kFAAkF;AAClF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC9B,MAAM,EAAE;KACR,KAAK,CAAC,kBAAkB,EAAE,EAAE,OAAO,EAAE,oCAAoC,EAAE,CAAC;KAC5E,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CACnB,UAAU,CAAC,KAAK,MAAM,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAmB,CAAC,CAC/D,CAAC"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { type Brand } from "ts-brand";
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
/**
|
|
3
4
|
* EVM smart-contract address as an EIP-55 checksummed `0x`-prefixed hex string
|
|
4
5
|
* (mixed-case, 40 hex digits). Same address set as {@link EVMAccountAddress},
|
|
5
6
|
* but branded separately so call sites do not mix EOAs / smart accounts with
|
|
6
7
|
* contract deployments (enforcers, factories, tokens, etc.).
|
|
7
8
|
*
|
|
8
|
-
* Prefer constructing via validation that checksums (e.g. viem `getAddress`).
|
|
9
|
-
*
|
|
10
9
|
* Example: `"0xAbCdEf0123456789AbCdEf0123456789aBcDeF01"`
|
|
11
10
|
*/
|
|
12
11
|
export type EVMContractAddress = Brand<`0x${string}`, "EVMContractAddress">;
|
|
13
12
|
export declare const EVMContractAddress: import("ts-brand").Brander<EVMContractAddress>;
|
|
13
|
+
/** Zod schema: 20-byte hex address, normalized to EIP-55 checksum. */
|
|
14
|
+
export declare const EVMContractAddressSchema: z.ZodPipe<z.ZodString, z.ZodTransform<EVMContractAddress, string>>;
|
|
14
15
|
//# sourceMappingURL=EVMContractAddress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EVMContractAddress.d.ts","sourceRoot":"","sources":["../../src/primitives/EVMContractAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAE5C
|
|
1
|
+
{"version":3,"file":"EVMContractAddress.d.ts","sourceRoot":"","sources":["../../src/primitives/EVMContractAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,KAAK,MAAM,EAAE,EAAE,oBAAoB,CAAC,CAAC;AAC5E,eAAO,MAAM,kBAAkB,gDAA6B,CAAC;AAE7D,sEAAsE;AACtE,eAAO,MAAM,wBAAwB,oEAUjC,CAAC"}
|
|
@@ -1,3 +1,18 @@
|
|
|
1
1
|
import { make } from "ts-brand";
|
|
2
|
+
import { getAddress } from "viem";
|
|
3
|
+
import { z } from "zod";
|
|
2
4
|
export const EVMContractAddress = make();
|
|
5
|
+
/** Zod schema: 20-byte hex address, normalized to EIP-55 checksum. */
|
|
6
|
+
export const EVMContractAddressSchema = z
|
|
7
|
+
.string()
|
|
8
|
+
.regex(/^0x[0-9a-fA-F]{40}$/, { message: "must be a 20-byte 0x hex address" })
|
|
9
|
+
.transform((s, ctx) => {
|
|
10
|
+
try {
|
|
11
|
+
return EVMContractAddress(getAddress(s));
|
|
12
|
+
}
|
|
13
|
+
catch {
|
|
14
|
+
ctx.addIssue({ code: "custom", message: "invalid EIP-55 address" });
|
|
15
|
+
return z.NEVER;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
3
18
|
//# sourceMappingURL=EVMContractAddress.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EVMContractAddress.js","sourceRoot":"","sources":["../../src/primitives/EVMContractAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"EVMContractAddress.js","sourceRoot":"","sources":["../../src/primitives/EVMContractAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,EAAsB,CAAC;AAE7D,sEAAsE;AACtE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,MAAM,EAAE;KACR,KAAK,CAAC,qBAAqB,EAAE,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;KAC7E,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;IACpB,IAAI,CAAC;QACH,OAAO,kBAAkB,CAAC,UAAU,CAAC,CAAkB,CAAC,CAAC,CAAC;IAC5D,CAAC;IAAC,MAAM,CAAC;QACP,GAAG,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,wBAAwB,EAAE,CAAC,CAAC;QACpE,OAAO,CAAC,CAAC,KAAK,CAAC;IACjB,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { type Brand } from "ts-brand";
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
/**
|
|
3
4
|
* A hex-encoded ECDSA signature (EIP-191, EIP-712, etc.).
|
|
4
|
-
*
|
|
5
|
+
* Typically `0x` + 65-byte secp256k1 signature (130 hex chars).
|
|
6
|
+
*
|
|
7
|
+
* Example: `"0x" + 130 hex characters`
|
|
5
8
|
*/
|
|
6
9
|
export type EVMSignatureHex = Brand<`0x${string}`, "EVMSignatureHex">;
|
|
7
10
|
export declare const EVMSignatureHex: import("ts-brand").Brander<EVMSignatureHex>;
|
|
11
|
+
/** Zod schema: 0x-prefixed hex signature (min 65 bytes / length ≥ 132). */
|
|
12
|
+
export declare const EVMSignatureHexSchema: z.ZodPipe<z.ZodString, z.ZodTransform<EVMSignatureHex, string>>;
|
|
8
13
|
//# sourceMappingURL=EVMSignatureHex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EVMSignatureHex.d.ts","sourceRoot":"","sources":["../../src/primitives/EVMSignatureHex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"EVMSignatureHex.d.ts","sourceRoot":"","sources":["../../src/primitives/EVMSignatureHex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,KAAK,MAAM,EAAE,EAAE,iBAAiB,CAAC,CAAC;AACtE,eAAO,MAAM,eAAe,6CAA0B,CAAC;AAEvD,2EAA2E;AAC3E,eAAO,MAAM,qBAAqB,iEAKsB,CAAC"}
|