@cheqd/sdk-esm 5.3.7-develop.1 → 5.4.0-develop.1

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.
Files changed (179) hide show
  1. package/build/cjs/src/index.d.ts +142 -0
  2. package/build/cjs/src/index.d.ts.map +1 -0
  3. package/build/cjs/src/index.js +184 -0
  4. package/build/cjs/src/index.js.map +1 -0
  5. package/build/cjs/src/modules/_.d.ts +81 -0
  6. package/build/cjs/src/modules/_.d.ts.map +1 -0
  7. package/build/cjs/src/modules/_.js +93 -0
  8. package/build/cjs/src/modules/_.js.map +1 -0
  9. package/build/cjs/src/modules/did.d.ts +488 -0
  10. package/build/cjs/src/modules/did.d.ts.map +1 -0
  11. package/build/cjs/src/modules/did.js +1249 -0
  12. package/build/cjs/src/modules/did.js.map +1 -0
  13. package/build/cjs/src/modules/feeabstraction.d.ts +429 -0
  14. package/build/cjs/src/modules/feeabstraction.d.ts.map +1 -0
  15. package/build/cjs/src/modules/feeabstraction.js +474 -0
  16. package/build/cjs/src/modules/feeabstraction.js.map +1 -0
  17. package/build/cjs/src/modules/feemarket.d.ts +244 -0
  18. package/build/cjs/src/modules/feemarket.d.ts.map +1 -0
  19. package/build/cjs/src/modules/feemarket.js +297 -0
  20. package/build/cjs/src/modules/feemarket.js.map +1 -0
  21. package/build/cjs/src/modules/oracle.d.ts +563 -0
  22. package/build/cjs/src/modules/oracle.d.ts.map +1 -0
  23. package/build/cjs/src/modules/oracle.js +784 -0
  24. package/build/cjs/src/modules/oracle.js.map +1 -0
  25. package/build/cjs/src/modules/resource.d.ts +330 -0
  26. package/build/cjs/src/modules/resource.d.ts.map +1 -0
  27. package/build/cjs/src/modules/resource.js +556 -0
  28. package/build/cjs/src/modules/resource.js.map +1 -0
  29. package/build/cjs/src/querier.d.ts +62 -0
  30. package/build/cjs/src/querier.d.ts.map +1 -0
  31. package/build/cjs/src/querier.js +87 -0
  32. package/build/cjs/src/querier.js.map +1 -0
  33. package/build/cjs/src/registry.d.ts +18 -0
  34. package/build/cjs/src/registry.d.ts.map +1 -0
  35. package/build/cjs/src/registry.js +23 -0
  36. package/build/cjs/src/registry.js.map +1 -0
  37. package/build/cjs/src/signer.d.ts +250 -0
  38. package/build/cjs/src/signer.d.ts.map +1 -0
  39. package/build/cjs/src/signer.js +617 -0
  40. package/build/cjs/src/signer.js.map +1 -0
  41. package/build/cjs/src/types.d.ts +221 -0
  42. package/build/cjs/src/types.d.ts.map +1 -0
  43. package/build/cjs/src/types.js.map +1 -0
  44. package/build/cjs/src/utils.d.ts +233 -0
  45. package/build/cjs/src/utils.d.ts.map +1 -0
  46. package/build/cjs/src/utils.js +571 -0
  47. package/build/cjs/src/utils.js.map +1 -0
  48. package/build/{index.d.ts → esm/src/index.d.ts} +7 -3
  49. package/build/esm/src/index.d.ts.map +1 -0
  50. package/build/{index.js → esm/src/index.js} +3 -1
  51. package/build/esm/src/index.js.map +1 -0
  52. package/build/esm/src/modules/_.d.ts.map +1 -0
  53. package/build/esm/src/modules/_.js.map +1 -0
  54. package/build/{modules → esm/src/modules}/did.d.ts +109 -7
  55. package/build/esm/src/modules/did.d.ts.map +1 -0
  56. package/build/{modules → esm/src/modules}/did.js +212 -6
  57. package/build/esm/src/modules/did.js.map +1 -0
  58. package/build/esm/src/modules/feeabstraction.d.ts.map +1 -0
  59. package/build/esm/src/modules/feeabstraction.js.map +1 -0
  60. package/build/esm/src/modules/feemarket.d.ts.map +1 -0
  61. package/build/esm/src/modules/feemarket.js.map +1 -0
  62. package/build/esm/src/modules/oracle.d.ts +563 -0
  63. package/build/esm/src/modules/oracle.d.ts.map +1 -0
  64. package/build/esm/src/modules/oracle.js +784 -0
  65. package/build/esm/src/modules/oracle.js.map +1 -0
  66. package/build/{modules → esm/src/modules}/resource.d.ts +132 -6
  67. package/build/esm/src/modules/resource.d.ts.map +1 -0
  68. package/build/esm/src/modules/resource.js +556 -0
  69. package/build/esm/src/modules/resource.js.map +1 -0
  70. package/build/esm/src/querier.d.ts.map +1 -0
  71. package/build/esm/src/querier.js.map +1 -0
  72. package/build/esm/src/registry.d.ts.map +1 -0
  73. package/build/esm/src/registry.js.map +1 -0
  74. package/build/esm/src/signer.d.ts.map +1 -0
  75. package/build/esm/src/signer.js.map +1 -0
  76. package/build/{types → esm/src}/types.d.ts +27 -1
  77. package/build/esm/src/types.d.ts.map +1 -0
  78. package/build/esm/src/types.js +43 -0
  79. package/build/esm/src/types.js.map +1 -0
  80. package/build/esm/src/utils.d.ts.map +1 -0
  81. package/build/esm/src/utils.js.map +1 -0
  82. package/build/types/cjs/src/index.d.ts +142 -0
  83. package/build/types/cjs/src/index.d.ts.map +1 -0
  84. package/build/types/cjs/src/modules/_.d.ts +81 -0
  85. package/build/types/cjs/src/modules/_.d.ts.map +1 -0
  86. package/build/types/cjs/src/modules/did.d.ts +488 -0
  87. package/build/types/cjs/src/modules/did.d.ts.map +1 -0
  88. package/build/types/cjs/src/modules/feeabstraction.d.ts +429 -0
  89. package/build/types/cjs/src/modules/feeabstraction.d.ts.map +1 -0
  90. package/build/types/cjs/src/modules/feemarket.d.ts +244 -0
  91. package/build/types/cjs/src/modules/feemarket.d.ts.map +1 -0
  92. package/build/types/cjs/src/modules/oracle.d.ts +563 -0
  93. package/build/types/cjs/src/modules/oracle.d.ts.map +1 -0
  94. package/build/types/cjs/src/modules/resource.d.ts +330 -0
  95. package/build/types/cjs/src/modules/resource.d.ts.map +1 -0
  96. package/build/types/cjs/src/querier.d.ts +62 -0
  97. package/build/types/cjs/src/querier.d.ts.map +1 -0
  98. package/build/types/cjs/src/registry.d.ts +18 -0
  99. package/build/types/cjs/src/registry.d.ts.map +1 -0
  100. package/build/types/cjs/src/signer.d.ts +250 -0
  101. package/build/types/cjs/src/signer.d.ts.map +1 -0
  102. package/build/types/cjs/src/types.d.ts +221 -0
  103. package/build/types/cjs/src/types.d.ts.map +1 -0
  104. package/build/types/cjs/src/utils.d.ts +233 -0
  105. package/build/types/cjs/src/utils.d.ts.map +1 -0
  106. package/build/types/{index.d.ts → esm/src/index.d.ts} +7 -3
  107. package/build/types/esm/src/index.d.ts.map +1 -0
  108. package/build/types/esm/src/modules/_.d.ts.map +1 -0
  109. package/build/types/{modules → esm/src/modules}/did.d.ts +109 -7
  110. package/build/types/esm/src/modules/did.d.ts.map +1 -0
  111. package/build/types/esm/src/modules/feeabstraction.d.ts.map +1 -0
  112. package/build/types/esm/src/modules/feemarket.d.ts.map +1 -0
  113. package/build/types/esm/src/modules/oracle.d.ts +563 -0
  114. package/build/types/esm/src/modules/oracle.d.ts.map +1 -0
  115. package/build/types/{modules → esm/src/modules}/resource.d.ts +132 -6
  116. package/build/types/esm/src/modules/resource.d.ts.map +1 -0
  117. package/build/types/esm/src/querier.d.ts.map +1 -0
  118. package/build/types/esm/src/registry.d.ts.map +1 -0
  119. package/build/types/esm/src/signer.d.ts.map +1 -0
  120. package/build/{types.d.ts → types/esm/src/types.d.ts} +27 -1
  121. package/build/types/esm/src/types.d.ts.map +1 -0
  122. package/build/types/esm/src/utils.d.ts.map +1 -0
  123. package/package.json +2 -2
  124. package/build/index.d.ts.map +0 -1
  125. package/build/index.js.map +0 -1
  126. package/build/modules/_.d.ts.map +0 -1
  127. package/build/modules/_.js.map +0 -1
  128. package/build/modules/did.d.ts.map +0 -1
  129. package/build/modules/did.js.map +0 -1
  130. package/build/modules/feeabstraction.d.ts.map +0 -1
  131. package/build/modules/feeabstraction.js.map +0 -1
  132. package/build/modules/feemarket.d.ts.map +0 -1
  133. package/build/modules/feemarket.js.map +0 -1
  134. package/build/modules/resource.d.ts.map +0 -1
  135. package/build/modules/resource.js +0 -297
  136. package/build/modules/resource.js.map +0 -1
  137. package/build/querier.d.ts.map +0 -1
  138. package/build/querier.js.map +0 -1
  139. package/build/registry.d.ts.map +0 -1
  140. package/build/registry.js.map +0 -1
  141. package/build/signer.d.ts.map +0 -1
  142. package/build/signer.js.map +0 -1
  143. package/build/types/index.d.ts.map +0 -1
  144. package/build/types/modules/_.d.ts.map +0 -1
  145. package/build/types/modules/did.d.ts.map +0 -1
  146. package/build/types/modules/feeabstraction.d.ts.map +0 -1
  147. package/build/types/modules/feemarket.d.ts.map +0 -1
  148. package/build/types/modules/resource.d.ts.map +0 -1
  149. package/build/types/querier.d.ts.map +0 -1
  150. package/build/types/registry.d.ts.map +0 -1
  151. package/build/types/signer.d.ts.map +0 -1
  152. package/build/types/types.d.ts.map +0 -1
  153. package/build/types/utils.d.ts.map +0 -1
  154. package/build/types.d.ts.map +0 -1
  155. package/build/types.js.map +0 -1
  156. package/build/utils.d.ts.map +0 -1
  157. package/build/utils.js.map +0 -1
  158. /package/build/{types.js → cjs/src/types.js} +0 -0
  159. /package/build/{modules → esm/src/modules}/_.d.ts +0 -0
  160. /package/build/{modules → esm/src/modules}/_.js +0 -0
  161. /package/build/{modules → esm/src/modules}/feeabstraction.d.ts +0 -0
  162. /package/build/{modules → esm/src/modules}/feeabstraction.js +0 -0
  163. /package/build/{modules → esm/src/modules}/feemarket.d.ts +0 -0
  164. /package/build/{modules → esm/src/modules}/feemarket.js +0 -0
  165. /package/build/{querier.d.ts → esm/src/querier.d.ts} +0 -0
  166. /package/build/{querier.js → esm/src/querier.js} +0 -0
  167. /package/build/{registry.d.ts → esm/src/registry.d.ts} +0 -0
  168. /package/build/{registry.js → esm/src/registry.js} +0 -0
  169. /package/build/{signer.d.ts → esm/src/signer.d.ts} +0 -0
  170. /package/build/{signer.js → esm/src/signer.js} +0 -0
  171. /package/build/{types → esm/src}/utils.d.ts +0 -0
  172. /package/build/{utils.js → esm/src/utils.js} +0 -0
  173. /package/build/types/{modules → esm/src/modules}/_.d.ts +0 -0
  174. /package/build/types/{modules → esm/src/modules}/feeabstraction.d.ts +0 -0
  175. /package/build/types/{modules → esm/src/modules}/feemarket.d.ts +0 -0
  176. /package/build/types/{querier.d.ts → esm/src/querier.d.ts} +0 -0
  177. /package/build/types/{registry.d.ts → esm/src/registry.d.ts} +0 -0
  178. /package/build/types/{signer.d.ts → esm/src/signer.d.ts} +0 -0
  179. /package/build/{utils.d.ts → types/esm/src/utils.d.ts} +0 -0
@@ -0,0 +1,221 @@
1
+ import { Service as ProtobufService, VerificationMethod as ProtobufVerificationMethod } from '@cheqd/ts-proto-cjs/cheqd/did/v2';
2
+ import { CheqdSDK } from './index';
3
+ import { Coin, EncodeObject } from '@cosmjs/proto-signing-cjs';
4
+ import { Signer } from 'did-jwt-cjs';
5
+ import { QueryClient } from '@cosmjs/stargate-cjs';
6
+ import { DIDDocument, DIDResolutionResult } from 'did-resolver-cjs';
7
+ import { DidExtension } from './modules/did';
8
+ import { ResourceExtension } from './modules/resource';
9
+ import { FeemarketExtension } from './modules/feemarket';
10
+ import { FeeabstractionExtension } from './modules/feeabstraction';
11
+ import { GetTxResponse, SimulateResponse } from 'cosmjs-types-cjs/cosmos/tx/v1beta1/service';
12
+ import { Any } from 'cosmjs-types-cjs/google/protobuf/any';
13
+ import { Pubkey } from '@cosmjs/amino-cjs';
14
+ import { MovingAverage, OracleExtension, WMAStrategy } from './modules/oracle';
15
+ export { DIDDocument, VerificationMethod, Service, ServiceEndpoint, JsonWebKey } from 'did-resolver-cjs';
16
+ /** Supported Cheqd blockchain networks */
17
+ export declare enum CheqdNetwork {
18
+ /** Production network for live transactions */
19
+ Mainnet = "mainnet",
20
+ /** Test network for development and testing */
21
+ Testnet = "testnet"
22
+ }
23
+ /** Function type for setting up query extensions on a base QueryClient */
24
+ export type QueryExtensionSetup<T> = (base: QueryClient) => T;
25
+ /**
26
+ * Utility type for creating exclusive extension objects where only one extension can be active at a time.
27
+ * Ensures type safety when working with mutually exclusive extensions.
28
+ */
29
+ export type CheqdExtension<K extends string, V = any> = {
30
+ [P in K]: Record<P, V> & Partial<Record<Exclude<K, P>, never>> extends infer O ? {
31
+ [Q in keyof O]: O[Q];
32
+ } : never;
33
+ }[K];
34
+ /** Union type of all supported Cheqd query extensions */
35
+ export type CheqdExtensions = DidExtension | ResourceExtension | FeemarketExtension | FeeabstractionExtension | OracleExtension;
36
+ /**
37
+ * Extension interface for transaction-related operations.
38
+ * Provides methods for transaction retrieval and simulation.
39
+ */
40
+ export interface TxExtension {
41
+ readonly tx: {
42
+ /** Retrieves a transaction by its ID */
43
+ getTx: (txId: string) => Promise<GetTxResponse>;
44
+ /** Simulates a transaction to estimate gas usage and validate execution */
45
+ simulate: (messages: readonly Any[], memo: string | undefined, signer: Pubkey, signerAddress: string, sequence: number, gasLimit: number) => Promise<SimulateResponse>;
46
+ };
47
+ }
48
+ /** Generic interface for module methods that can be executed with variable arguments */
49
+ export interface IModuleMethod {
50
+ (...args: any[]): Promise<any>;
51
+ }
52
+ /** Map of method names to their corresponding module method implementations */
53
+ export interface IModuleMethodMap extends Record<string, IModuleMethod> {
54
+ }
55
+ /** Context interface providing access to the SDK instance for module methods */
56
+ export interface IContext {
57
+ sdk: CheqdSDK;
58
+ }
59
+ /** DID document with associated metadata from resolution results */
60
+ export type DIDDocumentWithMetadata = Pick<DIDResolutionResult, 'didDocument' | 'didDocumentMetadata'>;
61
+ /**
62
+ * Result of DID specification validation containing validation status,
63
+ * error information, and converted protobuf objects.
64
+ */
65
+ export type SpecValidationResult = {
66
+ /** Whether the validation passed */
67
+ valid: boolean;
68
+ /** Error message if validation failed */
69
+ error?: string;
70
+ /** Converted verification methods in protobuf format */
71
+ protobufVerificationMethod?: ProtobufVerificationMethod[];
72
+ /** Converted services in protobuf format */
73
+ protobufService?: ProtobufService[];
74
+ };
75
+ /**
76
+ * Result of authentication validation for DID operations,
77
+ * including resolved external controllers and previous document state.
78
+ */
79
+ export type AuthenticationValidationResult = {
80
+ /** Whether the authentication validation passed */
81
+ valid: boolean;
82
+ /** Error message if validation failed */
83
+ error?: string;
84
+ /** Resolved external controller DID documents */
85
+ externalControllersDocuments?: DIDDocument[];
86
+ /** Previous version of the DID document for updates */
87
+ previousDidDocument?: DIDDocument;
88
+ };
89
+ /**
90
+ * Batched messages grouped by gas consumption limits,
91
+ * with corresponding gas estimates for each batch.
92
+ */
93
+ export type MessageBatch = {
94
+ /** Array of message batches grouped by gas limits */
95
+ readonly batches: EncodeObject[][];
96
+ /** Gas estimates for each corresponding batch */
97
+ readonly gas: number[];
98
+ };
99
+ /** Supported verification method types for DID documents */
100
+ export declare enum VerificationMethods {
101
+ /** Ed25519 verification key (2020 specification) */
102
+ Ed255192020 = "Ed25519VerificationKey2020",
103
+ /** Ed25519 verification key (2018 specification) */
104
+ Ed255192018 = "Ed25519VerificationKey2018",
105
+ /** JSON Web Key (2020 specification) */
106
+ JWK = "JsonWebKey2020"
107
+ }
108
+ /** Supported algorithms for generating method-specific identifiers */
109
+ export declare enum MethodSpecificIdAlgo {
110
+ /** Base58 Bitcoin encoding */
111
+ Base58 = "base58btc",
112
+ /** UUID format */
113
+ Uuid = "uuid"
114
+ }
115
+ /** Map of verification method types to their corresponding signer algorithms */
116
+ export type TSignerAlgo = {
117
+ [key in VerificationMethods as string]?: (secretKey: Uint8Array) => Signer;
118
+ };
119
+ /**
120
+ * Interface for signing inputs containing verification method details
121
+ * and the private key required for signing operations.
122
+ */
123
+ export interface ISignInputs {
124
+ /** ID of the verification method to use for signing */
125
+ verificationMethodId: string;
126
+ /** Type of cryptographic key (Ed25519, Secp256k1, or P256) */
127
+ keyType?: 'Ed25519' | 'Secp256k1' | 'P256';
128
+ /** Private key in hexadecimal format */
129
+ privateKeyHex: string;
130
+ }
131
+ /**
132
+ * Interface representing a cryptographic key pair with optional algorithm specification.
133
+ */
134
+ export interface IKeyPair {
135
+ /** Public key string */
136
+ publicKey: string;
137
+ /** Private key string */
138
+ privateKey: string;
139
+ /** Optional algorithm used for key generation */
140
+ algo?: MethodSpecificIdAlgo;
141
+ }
142
+ /** Generic key-value pair interface for flexible data storage */
143
+ export interface IKeyValuePair {
144
+ /** The key identifier */
145
+ key: string;
146
+ /** The associated value (can be any type) */
147
+ value: any;
148
+ }
149
+ /** String type for verification key prefixes */
150
+ export type TVerificationKeyPrefix = string;
151
+ /** Template literal type for creating verification key identifiers with prefix and number */
152
+ export type TVerificationKey<K extends TVerificationKeyPrefix, N extends number> = `${K}-${N}`;
153
+ /**
154
+ * Interface for verification key structures with strongly typed DID URLs and key IDs.
155
+ * Provides type safety for Cheqd DID identifiers and verification key relationships.
156
+ */
157
+ export interface IVerificationKeys {
158
+ /** Method-specific identifier for the DID */
159
+ readonly methodSpecificId: TMethodSpecificId;
160
+ /** Fully qualified DID URL for the Cheqd network */
161
+ readonly didUrl: `did:cheqd:${CheqdNetwork}:${IVerificationKeys['methodSpecificId']}` extends string ? string : never;
162
+ /** Key identifier combining DID URL with verification key fragment */
163
+ readonly keyId: `${IVerificationKeys['didUrl']}#${TVerificationKey<TVerificationKeyPrefix, number>}`;
164
+ /** Public key string representation */
165
+ readonly publicKey: string;
166
+ }
167
+ /** String type representing a method-specific identifier for DIDs */
168
+ export type TMethodSpecificId = string;
169
+ /**
170
+ * DID-specific fee structure extending standard fee with payer and granter support.
171
+ * Enables fee delegation and payment by third parties for DID operations.
172
+ */
173
+ export interface DidStdFee {
174
+ /** Array of coins representing the fee amount */
175
+ readonly amount: readonly Coin[];
176
+ /** Gas limit for the transaction */
177
+ readonly gas: string;
178
+ /** Optional address of the account paying the fees */
179
+ payer?: string;
180
+ /** Optional address of the account granting fee payment permissions */
181
+ granter?: string;
182
+ }
183
+ /**
184
+ * Identity-specific fee options for DID and DLR transactions.
185
+ * Enables customization of fee payment and slippage tolerance.
186
+ */
187
+ export interface DidFeeOptions {
188
+ /** Optional explicit USD amount, otherwise we use lower bound from parameters */
189
+ wantedAmountUsd?: string;
190
+ /** Optional slippage in basis points; default is module's defaultSlippageBps */
191
+ slippageBps?: number;
192
+ /**
193
+ * Optional fee denom.
194
+ * - If 'ncheq': pay in native after oracle conversion.
195
+ * - If accepted fee-abstraction denom: go through fee-abstraction flow.
196
+ * - If omitted: pay in native 'ncheq'.
197
+ */
198
+ feeDenom?: string;
199
+ /** Optional gas limit for the transaction */
200
+ gasLimit?: string;
201
+ /** Optional moving average type. */
202
+ movingAverageType?: MovingAverage;
203
+ /** Optional WMA strategy, if applicable */
204
+ wmaStrategy?: WMAStrategy;
205
+ /** Optional weights for WMA strategy CUSTOM, if applicable */
206
+ wmaWeights?: number[];
207
+ }
208
+ /**
209
+ * Utility object providing type guard functions for ISignInputs validation.
210
+ * Contains helper methods to validate and type-check signing input objects.
211
+ */
212
+ export declare const ISignInputs: {
213
+ /** Type guard function to check if an object array contains valid ISignInputs */
214
+ isSignInput(object: Object[]): object is ISignInputs[];
215
+ };
216
+ /** Enumeration of supported service types for DID documents */
217
+ export declare enum ServiceType {
218
+ /** Service type for linking domain names to DIDs */
219
+ LinkedDomains = "LinkedDomains"
220
+ }
221
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../cjs/src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,OAAO,IAAI,eAAe,EAC1B,kBAAkB,IAAI,0BAA0B,EAChD,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC7F,OAAO,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AA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A+D;AAC/D,oBAAY,WAAW;IACtB,oDAAoD;IACpD,aAAa,kBAAkB;CAC/B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../cjs/src/types.ts"],"names":[],"mappings":"AAmBA,0CAA0C;AAC1C,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACvB,+CAA+C;IAC/C,mCAAmB,CAAA;IACnB,+CAA+C;IAC/C,mCAAmB,CAAA;AACpB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAkGD,4DAA4D;AAC5D,MAAM,CAAN,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC9B,oDAAoD;IACpD,iEAA0C,CAAA;IAC1C,oDAAoD;IACpD,iEAA0C,CAAA;IAC1C,wCAAwC;IACxC,6CAAsB,CAAA;AACvB,CAAC,EAPW,mBAAmB,KAAnB,mBAAmB,QAO9B;AAED,sEAAsE;AACtE,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC/B,8BAA8B;IAC9B,4CAAoB,CAAA;IACpB,kBAAkB;IAClB,qCAAa,CAAA;AACd,CAAC,EALW,oBAAoB,KAApB,oBAAoB,QAK/B;AA2GD;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,iFAAiF;IACjF,WAAW,CAAC,MAAgB;QAC3B,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,eAAe,IAAI,CAAC,CAAC,CAAC;IACjD,CAAC;CACD,CAAC;AAEF,+DAA+D;AAC/D,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACtB,oDAAoD;IACpD,8CAA+B,CAAA;AAChC,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB"}
@@ -0,0 +1,233 @@
1
+ import { IKeyPair, IKeyValuePair, ISignInputs, VerificationMethods, TMethodSpecificId, MethodSpecificIdAlgo, TVerificationKey, TVerificationKeyPrefix, CheqdNetwork, IVerificationKeys, VerificationMethod, DIDDocument, SpecValidationResult, Service } from './types';
2
+ import { KeyPair } from '@stablelib/ed25519-cjs';
3
+ import { DirectSecp256k1HdWallet, DirectSecp256k1Wallet } from '@cosmjs/proto-signing-cjs';
4
+ import { EnglishMnemonic as _ } from '@cosmjs/crypto-cjs';
5
+ import { Service as ProtoService, DidDoc } from '@cheqd/ts-proto-cjs/cheqd/did/v2';
6
+ import { MsgCreateResourcePayload } from '@cheqd/ts-proto-cjs/cheqd/resource/v2';
7
+ import { Coin } from 'cosmjs-types-cjs/cosmos/base/v1beta1/coin';
8
+ import { BackoffOptions } from 'exponential-backoff-cjs';
9
+ /**
10
+ * Represents an importable Ed25519 key with hexadecimal encoding.
11
+ * This type ensures type safety for Ed25519 key operations.
12
+ */
13
+ export type TImportableEd25519Key = {
14
+ /** Public key in hexadecimal format */
15
+ publicKeyHex: string;
16
+ /** Private key in hexadecimal format */
17
+ privateKeyHex: string;
18
+ /** Key identifier */
19
+ kid: string;
20
+ /** Key type, must be 'Ed25519' */
21
+ type: 'Ed25519';
22
+ };
23
+ /**
24
+ * Utility object for validating TImportableEd25519Key objects.
25
+ * Provides type guard functionality to ensure key structure integrity.
26
+ */
27
+ export declare const TImportableEd25519Key: {
28
+ /**
29
+ * Type guard to validate if an object is a valid TImportableEd25519Key.
30
+ *
31
+ * @param key - Object to validate
32
+ * @returns True if the object is a valid TImportableEd25519Key
33
+ */
34
+ isValid(key: any): key is TImportableEd25519Key;
35
+ };
36
+ /**
37
+ * Compares two arrays of key-value pairs for equality.
38
+ *
39
+ * @param kv1 - First array of key-value pairs
40
+ * @param kv2 - Second array of key-value pairs
41
+ * @returns True if both arrays contain identical key-value pairs in the same order
42
+ */
43
+ export declare function isEqualKeyValuePair(kv1: IKeyValuePair[], kv2: IKeyValuePair[]): boolean;
44
+ /**
45
+ * Extended English mnemonic class with additional validation patterns.
46
+ * Provides regex pattern matching for mnemonic phrase validation.
47
+ */
48
+ export declare class EnglishMnemonic extends _ {
49
+ /** Regular expression pattern for validating English mnemonic phrases */
50
+ static readonly _mnemonicMatcher: RegExp;
51
+ }
52
+ /**
53
+ * Creates signing inputs from an importable Ed25519 key by matching it with verification methods.
54
+ * Supports multiple verification method types and key formats.
55
+ *
56
+ * @param key - The Ed25519 key to create signing inputs from
57
+ * @param verificationMethod - Array of verification methods to match against
58
+ * @returns Signing inputs containing verification method ID and private key
59
+ * @throws Error if key validation fails or no matching verification method is found
60
+ */
61
+ export declare function createSignInputsFromImportableEd25519Key(key: TImportableEd25519Key, verificationMethod: VerificationMethod[]): ISignInputs;
62
+ /**
63
+ * Creates a raw Ed25519 key pair using the StableLib library.
64
+ *
65
+ * @param seed - Optional seed string for deterministic key generation
66
+ * @returns Raw KeyPair object with publicKey and secretKey as Uint8Arrays
67
+ */
68
+ export declare function createKeyPairRaw(seed?: string): KeyPair;
69
+ /**
70
+ * Creates an Ed25519 key pair with Base64-encoded keys.
71
+ *
72
+ * @param seed - Optional seed string for deterministic key generation
73
+ * @returns Key pair with Base64-encoded public and private keys
74
+ */
75
+ export declare function createKeyPairBase64(seed?: string): IKeyPair;
76
+ /**
77
+ * Creates an Ed25519 key pair with hexadecimal-encoded keys.
78
+ *
79
+ * @param seed - Optional seed string for deterministic key generation
80
+ * @returns Key pair with hexadecimal-encoded public and private keys
81
+ */
82
+ export declare function createKeyPairHex(seed?: string): IKeyPair;
83
+ /**
84
+ * Creates verification keys structure with DID URLs and key identifiers.
85
+ * Supports multiple algorithm types and network configurations.
86
+ *
87
+ * @param publicKey - Public key in base64 or hex format
88
+ * @param algo - Algorithm for method-specific ID generation
89
+ * @param keyFragment - Key fragment for the verification key identifier
90
+ * @param network - Cheqd network (defaults to Testnet)
91
+ * @param methodSpecificId - Optional pre-computed method-specific ID
92
+ * @param didUrl - Optional pre-computed DID URL
93
+ * @returns Verification keys structure with all identifiers
94
+ * @throws Error if public key format is invalid
95
+ */
96
+ export declare function createVerificationKeys(publicKey: string, algo: MethodSpecificIdAlgo, keyFragment: TVerificationKey<TVerificationKeyPrefix, number>, network?: CheqdNetwork, methodSpecificId?: TMethodSpecificId, didUrl?: string): IVerificationKeys;
97
+ /**
98
+ * Creates DID verification methods from verification method types and keys.
99
+ * Supports Ed25519 keys in multiple formats (multibase, base58, JWK).
100
+ *
101
+ * @param verificationMethodTypes - Array of verification method types to create
102
+ * @param verificationKeys - Array of verification keys corresponding to each type
103
+ * @returns Array of formatted verification methods for DID documents
104
+ */
105
+ export declare function createDidVerificationMethod(verificationMethodTypes: VerificationMethods[], verificationKeys: IVerificationKeys[]): VerificationMethod[];
106
+ /**
107
+ * Creates a complete DID document payload with verification methods and controllers.
108
+ *
109
+ * @param verificationMethods - Array of verification methods for the DID
110
+ * @param verificationKeys - Array of verification keys for authentication
111
+ * @param controller - Optional array of controller DIDs (defaults to self-controlled)
112
+ * @returns Complete DID document with all required fields
113
+ * @throws Error if verification methods or keys are missing
114
+ */
115
+ export declare function createDidPayload(verificationMethods: VerificationMethod[], verificationKeys: IVerificationKeys[], controller?: string[]): DIDDocument;
116
+ /**
117
+ * Validates a DID document against the Cheqd specification and converts to protobuf format.
118
+ * Ensures all required fields are present and verification methods are supported.
119
+ *
120
+ * @param didDocument - DID document to validate
121
+ * @returns Validation result with protobuf conversion or error details
122
+ */
123
+ export declare function validateSpecCompliantPayload(didDocument: DIDDocument): SpecValidationResult;
124
+ /**
125
+ * Creates a Cosmos wallet from a seed phrase or private key.
126
+ * Automatically detects whether the input is a mnemonic phrase or hex-encoded private key.
127
+ *
128
+ * @param cosmosPayerSeed - Mnemonic phrase or hexadecimal private key
129
+ * @returns Promise resolving to DirectSecp256k1HdWallet or DirectSecp256k1Wallet
130
+ */
131
+ export declare function createCosmosPayerWallet(cosmosPayerSeed: string): Promise<DirectSecp256k1HdWallet | DirectSecp256k1Wallet>;
132
+ /**
133
+ * Converts a raw Ed25519 public key to multibase format with proper multicodec header.
134
+ *
135
+ * @param key - Raw Ed25519 public key as Uint8Array
136
+ * @returns Multibase-encoded string with Ed25519 multicodec prefix
137
+ */
138
+ export declare function toMultibaseRaw(key: Uint8Array): import("multiformats-cjs/bases/base").Multibase<"z">;
139
+ /**
140
+ * Creates a MsgCreateDidDoc payload ready for signing.
141
+ * Validates the DID document and converts it to protobuf format.
142
+ *
143
+ * @param didPayload - DID document to create message payload from
144
+ * @param versionId - Version identifier for the DID document
145
+ * @returns Encoded message payload bytes ready for signing
146
+ */
147
+ export declare function createMsgCreateDidDocPayloadToSign(didPayload: DIDDocument, versionId: string): Promise<Uint8Array<ArrayBuffer>>;
148
+ /** Alias for createMsgCreateDidDocPayloadToSign - used for DID document updates */
149
+ export declare const createMsgUpdateDidDocPayloadToSign: typeof createMsgCreateDidDocPayloadToSign;
150
+ /**
151
+ * Creates a MsgDeactivateDidDoc payload ready for signing.
152
+ *
153
+ * @param didPayload - DID document containing the ID to deactivate
154
+ * @param versionId - Optional version identifier for the deactivation
155
+ * @returns Encoded deactivation message payload bytes ready for signing
156
+ */
157
+ export declare function createMsgDeactivateDidDocPayloadToSign(didPayload: DIDDocument, versionId?: string): Uint8Array<ArrayBuffer>;
158
+ /**
159
+ * Creates a MsgCreateResource payload ready for signing.
160
+ *
161
+ * @param payload - Resource creation payload (partial or complete)
162
+ * @returns Encoded resource creation message payload bytes ready for signing
163
+ */
164
+ export declare function createMsgResourcePayloadToSign(payload: Partial<MsgCreateResourcePayload> | MsgCreateResourcePayload): Uint8Array<ArrayBuffer>;
165
+ /**
166
+ * Derives a Cosmos account address from a hexadecimal public key.
167
+ * Converts the public key to the appropriate format and generates a bech32 address.
168
+ *
169
+ * @param publicKeyHex - Secp256k1 public key in hexadecimal format
170
+ * @returns Bech32-encoded Cheqd account address
171
+ */
172
+ export declare function getCosmosAccount(publicKeyHex: string): string;
173
+ /**
174
+ * Checks the balance of all coins for a given address on the blockchain.
175
+ *
176
+ * @param address - Bech32-encoded account address to check balance for
177
+ * @param rpcAddress - RPC endpoint URL of the blockchain node
178
+ * @returns Promise resolving to array of coin balances
179
+ */
180
+ export declare function checkBalance(address: string, rpcAddress: string): Promise<readonly Coin[]>;
181
+ /**
182
+ * Checks if a given input is valid JSON.
183
+ *
184
+ * @param input - Input to validate as JSON
185
+ * @returns True if the input is a valid JSON string
186
+ */
187
+ export declare function isJSON(input: any): boolean;
188
+ /** Default configuration options for exponential backoff retry logic */
189
+ export declare const DefaultBackoffOptions: BackoffOptions;
190
+ /**
191
+ * Retries a function with exponential backoff strategy.
192
+ * Provides configurable retry logic with jitter and delay options.
193
+ *
194
+ * @template T - Return type of the function being retried
195
+ * @param fn - Async function to retry
196
+ * @param options - Optional backoff configuration (uses defaults if not provided)
197
+ * @returns Promise resolving to the function result or undefined if all retries fail
198
+ */
199
+ export declare function retry<T>(fn: () => Promise<T>, options?: BackoffOptions): Promise<T | undefined>;
200
+ /**
201
+ * Normalizes the authentication property of a DID document to an array of strings.
202
+ * Handles both string references and embedded verification method objects.
203
+ *
204
+ * @param didDocument - DID document to normalize authentication for
205
+ * @returns Array of authentication method identifiers
206
+ * @throws Error if authentication section is missing
207
+ */
208
+ export declare function normalizeAuthentication(didDocument: DIDDocument): string[];
209
+ /**
210
+ * Normalizes the controller property of a DID document to an array of strings.
211
+ * Defaults to self-controlled if no controller is specified.
212
+ *
213
+ * @param didDocument - DID document to normalize controller for
214
+ * @returns Array of controller DID identifiers
215
+ */
216
+ export declare function normalizeController(didDocument: DIDDocument): string[];
217
+ /**
218
+ * Normalizes DID document services to protobuf format.
219
+ * Converts service endpoints to arrays and includes optional properties.
220
+ *
221
+ * @param didDocument - DID document containing services to normalize
222
+ * @returns Array of protobuf-formatted services or undefined if no services
223
+ */
224
+ export declare function normalizeService(didDocument: DIDDocument): ProtoService[] | undefined;
225
+ /**
226
+ * Converts protobuf services back to standard DID document service format.
227
+ * Handles special context requirements for LinkedDomains services.
228
+ *
229
+ * @param didDocument - Protobuf DID document containing services to denormalize
230
+ * @returns Array of standard DID document services
231
+ */
232
+ export declare function denormalizeService(didDocument: DidDoc): Service[];
233
+ //# source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