@cheqd/sdk-esm 5.3.4-develop.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.
Files changed (68) hide show
  1. package/build/index.d.ts +140 -0
  2. package/build/index.d.ts.map +1 -0
  3. package/build/index.js +182 -0
  4. package/build/index.js.map +1 -0
  5. package/build/modules/_.d.ts +62 -0
  6. package/build/modules/_.d.ts.map +1 -0
  7. package/build/modules/_.js +75 -0
  8. package/build/modules/_.js.map +1 -0
  9. package/build/modules/did.d.ts +386 -0
  10. package/build/modules/did.d.ts.map +1 -0
  11. package/build/modules/did.js +1013 -0
  12. package/build/modules/did.js.map +1 -0
  13. package/build/modules/feeabstraction.d.ts +409 -0
  14. package/build/modules/feeabstraction.d.ts.map +1 -0
  15. package/build/modules/feeabstraction.js +462 -0
  16. package/build/modules/feeabstraction.js.map +1 -0
  17. package/build/modules/feemarket.d.ts +242 -0
  18. package/build/modules/feemarket.d.ts.map +1 -0
  19. package/build/modules/feemarket.js +296 -0
  20. package/build/modules/feemarket.js.map +1 -0
  21. package/build/modules/resource.d.ts +204 -0
  22. package/build/modules/resource.d.ts.map +1 -0
  23. package/build/modules/resource.js +297 -0
  24. package/build/modules/resource.js.map +1 -0
  25. package/build/package.json +64 -0
  26. package/build/querier.d.ts +62 -0
  27. package/build/querier.d.ts.map +1 -0
  28. package/build/querier.js +86 -0
  29. package/build/querier.js.map +1 -0
  30. package/build/registry.d.ts +18 -0
  31. package/build/registry.d.ts.map +1 -0
  32. package/build/registry.js +23 -0
  33. package/build/registry.js.map +1 -0
  34. package/build/signer.d.ts +190 -0
  35. package/build/signer.d.ts.map +1 -0
  36. package/build/signer.js +547 -0
  37. package/build/signer.js.map +1 -0
  38. package/build/types/index.d.ts +140 -0
  39. package/build/types/index.d.ts.map +1 -0
  40. package/build/types/modules/_.d.ts +62 -0
  41. package/build/types/modules/_.d.ts.map +1 -0
  42. package/build/types/modules/did.d.ts +386 -0
  43. package/build/types/modules/did.d.ts.map +1 -0
  44. package/build/types/modules/feeabstraction.d.ts +409 -0
  45. package/build/types/modules/feeabstraction.d.ts.map +1 -0
  46. package/build/types/modules/feemarket.d.ts +242 -0
  47. package/build/types/modules/feemarket.d.ts.map +1 -0
  48. package/build/types/modules/resource.d.ts +204 -0
  49. package/build/types/modules/resource.d.ts.map +1 -0
  50. package/build/types/querier.d.ts +62 -0
  51. package/build/types/querier.d.ts.map +1 -0
  52. package/build/types/registry.d.ts +18 -0
  53. package/build/types/registry.d.ts.map +1 -0
  54. package/build/types/signer.d.ts +190 -0
  55. package/build/types/signer.d.ts.map +1 -0
  56. package/build/types/types.d.ts +196 -0
  57. package/build/types/types.d.ts.map +1 -0
  58. package/build/types/utils.d.ts +223 -0
  59. package/build/types/utils.d.ts.map +1 -0
  60. package/build/types.d.ts +196 -0
  61. package/build/types.d.ts.map +1 -0
  62. package/build/types.js +43 -0
  63. package/build/types.js.map +1 -0
  64. package/build/utils.d.ts +223 -0
  65. package/build/utils.d.ts.map +1 -0
  66. package/build/utils.js +541 -0
  67. package/build/utils.js.map +1 -0
  68. package/package.json +64 -0
@@ -0,0 +1,386 @@
1
+ import { DeliverTxResponse, QueryClient } from '@cosmjs/stargate';
2
+ import { AbstractCheqdSDKModule, MinimalImportableCheqdSDKModule } from './_.js';
3
+ import { CheqdSigningStargateClient } from '../signer.js';
4
+ import { DIDDocument, DidStdFee, IContext, ISignInputs, QueryExtensionSetup, SpecValidationResult, DIDDocumentWithMetadata, AuthenticationValidationResult } from '../types.js';
5
+ import { MsgCreateDidDoc, MsgCreateDidDocResponse, MsgDeactivateDidDoc, MsgDeactivateDidDocResponse, MsgUpdateDidDoc, MsgUpdateDidDocResponse, SignInfo, QueryAllDidDocVersionsMetadataResponse, DidDocWithMetadata, DidDoc, Metadata } from '@cheqd/ts-proto/cheqd/did/v2/index.js';
6
+ import { EncodeObject, GeneratedType } from '@cosmjs/proto-signing';
7
+ import { CheqdQuerier } from '../querier.js';
8
+ import { DIDDocumentMetadata } from 'did-resolver';
9
+ /** Default extension key for DID-related query operations */
10
+ export declare const defaultDidExtensionKey: "did";
11
+ /**
12
+ * Standard W3C and DID-related context URIs used in DID documents.
13
+ * These contexts define the semantic meaning of properties in DID documents.
14
+ */
15
+ export declare const contexts: {
16
+ /** W3C DID Core v1 context */
17
+ readonly W3CDIDv1: "https://www.w3.org/ns/did/v1";
18
+ /** Ed25519 Signature Suite 2020 context */
19
+ readonly W3CSuiteEd255192020: "https://w3id.org/security/suites/ed25519-2020/v1";
20
+ /** Ed25519 Signature Suite 2018 context */
21
+ readonly W3CSuiteEd255192018: "https://w3id.org/security/suites/ed25519-2018/v1";
22
+ /** JSON Web Signature Suite 2020 context */
23
+ readonly W3CSuiteJws2020: "https://w3id.org/security/suites/jws-2020/v1";
24
+ /** Linked Domains context for domain verification */
25
+ readonly LinkedDomainsContext: "https://identity.foundation/.well-known/did-configuration/v1";
26
+ };
27
+ /**
28
+ * Protobuf message type literals for DID operations.
29
+ * Used for consistent message type identification across the module.
30
+ */
31
+ export declare const protobufLiterals: {
32
+ /** Create DID document message type */
33
+ readonly MsgCreateDidDoc: "MsgCreateDidDoc";
34
+ /** Create DID document response message type */
35
+ readonly MsgCreateDidDocResponse: "MsgCreateDidDocResponse";
36
+ /** Update DID document message type */
37
+ readonly MsgUpdateDidDoc: "MsgUpdateDidDoc";
38
+ /** Update DID document response message type */
39
+ readonly MsgUpdateDidDocResponse: "MsgUpdateDidDocResponse";
40
+ /** Deactivate DID document message type */
41
+ readonly MsgDeactivateDidDoc: "MsgDeactivateDidDoc";
42
+ /** Deactivate DID document response message type */
43
+ readonly MsgDeactivateDidDocResponse: "MsgDeactivateDidDocResponse";
44
+ };
45
+ /** Type URL for MsgCreateDidDoc messages */
46
+ export declare const typeUrlMsgCreateDidDoc: "/cheqd.did.v2.MsgCreateDidDoc";
47
+ /** Type URL for MsgCreateDidDocResponse messages */
48
+ export declare const typeUrlMsgCreateDidDocResponse: "/cheqd.did.v2.MsgCreateDidDocResponse";
49
+ /** Type URL for MsgUpdateDidDoc messages */
50
+ export declare const typeUrlMsgUpdateDidDoc: "/cheqd.did.v2.MsgUpdateDidDoc";
51
+ /** Type URL for MsgUpdateDidDocResponse messages */
52
+ export declare const typeUrlMsgUpdateDidDocResponse: "/cheqd.did.v2.MsgUpdateDidDocResponse";
53
+ /** Type URL for MsgDeactivateDidDoc messages */
54
+ export declare const typeUrlMsgDeactivateDidDoc: "/cheqd.did.v2.MsgDeactivateDidDoc";
55
+ /** Type URL for MsgDeactivateDidDocResponse messages */
56
+ export declare const typeUrlMsgDeactivateDidDocResponse: "/cheqd.did.v2.MsgDeactivateDidDocResponse";
57
+ /**
58
+ * Encode object interface for MsgCreateDidDoc messages.
59
+ * Used for type-safe message encoding in transactions.
60
+ */
61
+ export interface MsgCreateDidDocEncodeObject extends EncodeObject {
62
+ readonly typeUrl: typeof typeUrlMsgCreateDidDoc;
63
+ readonly value: Partial<MsgCreateDidDoc>;
64
+ }
65
+ /**
66
+ * Type guard function to check if an object is a MsgCreateDidDocEncodeObject.
67
+ *
68
+ * @param obj - EncodeObject to check
69
+ * @returns True if the object is a MsgCreateDidDocEncodeObject
70
+ */
71
+ export declare function isMsgCreateDidDocEncodeObject(obj: EncodeObject): obj is MsgCreateDidDocEncodeObject;
72
+ /**
73
+ * Type guard function to check if an object is a MsgUpdateDidDocEncodeObject.
74
+ *
75
+ * @param obj - EncodeObject to check
76
+ * @returns True if the object is a MsgUpdateDidDocEncodeObject
77
+ */
78
+ export declare function isMsgUpdateDidDocEncodeObject(obj: EncodeObject): obj is MsgUpdateDidDocEncodeObject;
79
+ /**
80
+ * Type guard function to check if an object is a MsgDeactivateDidDocEncodeObject.
81
+ *
82
+ * @param obj - EncodeObject to check
83
+ * @returns True if the object is a MsgDeactivateDidDocEncodeObject
84
+ */
85
+ export declare function isMsgDeactivateDidDocEncodeObject(obj: EncodeObject): obj is MsgDeactivateDidDocEncodeObject;
86
+ /**
87
+ * Encode object interface for MsgCreateDidDocResponse messages.
88
+ * Used for type-safe response message handling.
89
+ */
90
+ export interface MsgCreateDidDocResponseEncodeObject extends EncodeObject {
91
+ readonly typeUrl: typeof typeUrlMsgCreateDidDocResponse;
92
+ readonly value: Partial<MsgCreateDidDocResponse>;
93
+ }
94
+ /**
95
+ * Type guard function to check if an object is a MsgCreateDidDocResponseEncodeObject.
96
+ *
97
+ * @param obj - EncodeObject to check
98
+ * @returns True if the object is a MsgCreateDidDocResponseEncodeObject
99
+ */
100
+ export declare function MsgCreateDidDocResponseEncodeObject(obj: EncodeObject): obj is MsgCreateDidDocResponseEncodeObject;
101
+ /**
102
+ * Encode object interface for MsgUpdateDidDoc messages.
103
+ * Used for type-safe message encoding in update transactions.
104
+ */
105
+ export interface MsgUpdateDidDocEncodeObject extends EncodeObject {
106
+ readonly typeUrl: typeof typeUrlMsgUpdateDidDoc;
107
+ readonly value: Partial<MsgUpdateDidDoc>;
108
+ }
109
+ /**
110
+ * Type guard function to check if an object is a MsgUpdateDidDocEncodeObject.
111
+ *
112
+ * @param obj - EncodeObject to check
113
+ * @returns True if the object is a MsgUpdateDidDocEncodeObject
114
+ */
115
+ export declare function MsgUpdateDidDocEncodeObject(obj: EncodeObject): obj is MsgUpdateDidDocEncodeObject;
116
+ /**
117
+ * Encode object interface for MsgUpdateDidDocResponse messages.
118
+ * Used for type-safe response message handling in update operations.
119
+ */
120
+ export interface MsgUpdateDidDocResponseEncodeObject extends EncodeObject {
121
+ readonly typeUrl: typeof typeUrlMsgUpdateDidDocResponse;
122
+ readonly value: Partial<MsgUpdateDidDocResponse>;
123
+ }
124
+ /**
125
+ * Type guard function to check if an object is a MsgUpdateDidDocResponseEncodeObject.
126
+ *
127
+ * @param obj - EncodeObject to check
128
+ * @returns True if the object is a MsgUpdateDidDocResponseEncodeObject
129
+ */
130
+ export declare function MsgUpdateDidDocResponseEncodeObject(obj: EncodeObject): obj is MsgUpdateDidDocResponseEncodeObject;
131
+ /**
132
+ * Encode object interface for MsgDeactivateDidDoc messages.
133
+ * Used for type-safe message encoding in deactivation transactions.
134
+ */
135
+ export interface MsgDeactivateDidDocEncodeObject extends EncodeObject {
136
+ readonly typeUrl: typeof typeUrlMsgDeactivateDidDoc;
137
+ readonly value: Partial<MsgDeactivateDidDoc>;
138
+ }
139
+ /**
140
+ * Type guard function to check if an object is a MsgDeactivateDidDocEncodeObject.
141
+ *
142
+ * @param obj - EncodeObject to check
143
+ * @returns True if the object is a MsgDeactivateDidDocEncodeObject
144
+ */
145
+ export declare function MsgDeactivateDidDocEncodeObject(obj: EncodeObject): obj is MsgUpdateDidDocEncodeObject;
146
+ /**
147
+ * Encode object interface for MsgDeactivateDidDocResponse messages.
148
+ * Used for type-safe response message handling in deactivation operations.
149
+ */
150
+ export interface MsgDeactivateDidDocResponseEncodeObject extends EncodeObject {
151
+ readonly typeUrl: typeof typeUrlMsgDeactivateDidDocResponse;
152
+ readonly value: Partial<MsgDeactivateDidDocResponse>;
153
+ }
154
+ /**
155
+ * Type guard function to check if an object is a MsgDeactivateDidDocResponseEncodeObject.
156
+ *
157
+ * @param obj - EncodeObject to check
158
+ * @returns True if the object is a MsgDeactivateDidDocResponseEncodeObject
159
+ */
160
+ export declare function MsgDeactiveDidDocResponseEncodeObject(obj: EncodeObject): obj is MsgDeactivateDidDocResponseEncodeObject;
161
+ /** Minimal importable version of the DID module for clean external interfaces */
162
+ export type MinimalImportableDIDModule = MinimalImportableCheqdSDKModule<DIDModule>;
163
+ /**
164
+ * DID extension interface for querier functionality.
165
+ * Provides methods for querying DID documents and their versions.
166
+ */
167
+ export type DidExtension = {
168
+ readonly [defaultDidExtensionKey]: {
169
+ /** Query a DID document by ID */
170
+ readonly didDoc: (id: string) => Promise<DidDocWithMetadata>;
171
+ /** Query a specific version of a DID document */
172
+ readonly didDocVersion: (id: string, versionId: string) => Promise<DidDocWithMetadata>;
173
+ /** Query metadata for all versions of a DID document */
174
+ readonly allDidDocVersionsMetadata: (id: string, paginationKey?: Uint8Array) => Promise<QueryAllDidDocVersionsMetadataResponse>;
175
+ };
176
+ };
177
+ /**
178
+ * Sets up the DID extension for the querier client.
179
+ * Creates and configures the DID-specific query methods.
180
+ *
181
+ * @param base - Base QueryClient to extend
182
+ * @returns Configured DID extension with query methods
183
+ */
184
+ export declare const setupDidExtension: (base: QueryClient) => DidExtension;
185
+ /**
186
+ * DID Module class providing comprehensive DID document management functionality.
187
+ * Handles creation, updates, deactivation, and querying of DID documents on the Cheqd blockchain.
188
+ */
189
+ export declare class DIDModule extends AbstractCheqdSDKModule {
190
+ static readonly registryTypes: Iterable<[string, GeneratedType]>;
191
+ /** Base denomination for Cheqd network transactions */
192
+ static readonly baseMinimalDenom: "ncheq";
193
+ /**
194
+ * Standard fee amounts for DID operations.
195
+ * These represent the default costs for different DID document operations.
196
+ */
197
+ static readonly fees: {
198
+ /** Default fee for creating a new DID document */
199
+ readonly DefaultCreateDidDocFee: {
200
+ readonly amount: "50000000000";
201
+ readonly denom: "ncheq";
202
+ };
203
+ /** Default fee for updating an existing DID document */
204
+ readonly DefaultUpdateDidDocFee: {
205
+ readonly amount: "25000000000";
206
+ readonly denom: "ncheq";
207
+ };
208
+ /** Default fee for deactivating a DID document */
209
+ readonly DefaultDeactivateDidDocFee: {
210
+ readonly amount: "10000000000";
211
+ readonly denom: "ncheq";
212
+ };
213
+ };
214
+ /** Querier extension setup function for DID operations */
215
+ static readonly querierExtensionSetup: QueryExtensionSetup<DidExtension>;
216
+ /** Querier instance with DID extension capabilities */
217
+ querier: CheqdQuerier & DidExtension;
218
+ /**
219
+ * Constructs a new DID module instance.
220
+ *
221
+ * @param signer - Signing client for blockchain transactions
222
+ * @param querier - Querier client with DID extension for data retrieval
223
+ */
224
+ constructor(signer: CheqdSigningStargateClient, querier: CheqdQuerier & DidExtension);
225
+ /**
226
+ * Gets the registry types for DID message encoding/decoding.
227
+ *
228
+ * @returns Iterable of [typeUrl, GeneratedType] pairs for the registry
229
+ */
230
+ getRegistryTypes(): Iterable<[string, GeneratedType]>;
231
+ /**
232
+ * Gets the querier extension setup for DID operations.
233
+ *
234
+ * @returns Query extension setup function for DID functionality
235
+ */
236
+ getQuerierExtensionSetup(): QueryExtensionSetup<DidExtension>;
237
+ /**
238
+ * Creates a new DID document transaction on the blockchain.
239
+ * Validates the DID payload and authentication before submission.
240
+ *
241
+ * @param signInputs - Signing inputs or pre-computed signatures for the transaction
242
+ * @param didPayload - DID document payload to create
243
+ * @param address - Address of the account submitting the transaction
244
+ * @param fee - Transaction fee configuration or 'auto' for automatic calculation
245
+ * @param memo - Optional transaction memo
246
+ * @param versionId - Optional version identifier for the DID document
247
+ * @param context - Optional SDK context for accessing clients
248
+ * @returns Promise resolving to the transaction response
249
+ * @throws Error if DID payload is not spec compliant or authentication is invalid
250
+ */
251
+ createDidDocTx(signInputs: ISignInputs[] | SignInfo[], didPayload: DIDDocument, address: string, fee?: DidStdFee | 'auto' | number, memo?: string, versionId?: string, context?: IContext): Promise<DeliverTxResponse>;
252
+ /**
253
+ * Updates an existing DID document transaction on the blockchain.
254
+ * Validates the updated DID payload and handles key rotation scenarios.
255
+ *
256
+ * @param signInputs - Signing inputs or pre-computed signatures for the transaction
257
+ * @param didPayload - Updated DID document payload
258
+ * @param address - Address of the account submitting the transaction
259
+ * @param fee - Transaction fee configuration or 'auto' for automatic calculation
260
+ * @param memo - Optional transaction memo
261
+ * @param versionId - Optional version identifier for the updated DID document
262
+ * @param context - Optional SDK context for accessing clients
263
+ * @returns Promise resolving to the transaction response
264
+ * @throws Error if DID payload is not spec compliant or authentication is invalid
265
+ */
266
+ updateDidDocTx(signInputs: ISignInputs[] | SignInfo[], didPayload: DIDDocument, address: string, fee?: DidStdFee | 'auto' | number, memo?: string, versionId?: string, context?: IContext): Promise<DeliverTxResponse>;
267
+ /**
268
+ * Deactivates an existing DID document transaction on the blockchain.
269
+ * Validates authentication and creates a deactivation transaction.
270
+ *
271
+ * @param signInputs - Signing inputs or pre-computed signatures for the transaction
272
+ * @param didPayload - DID document payload containing the ID to deactivate
273
+ * @param address - Address of the account submitting the transaction
274
+ * @param fee - Transaction fee configuration or 'auto' for automatic calculation
275
+ * @param memo - Optional transaction memo
276
+ * @param versionId - Optional version identifier for the deactivation
277
+ * @param context - Optional SDK context for accessing clients
278
+ * @returns Promise resolving to the transaction response
279
+ * @throws Error if DID payload is not spec compliant or authentication is invalid
280
+ */
281
+ deactivateDidDocTx(signInputs: ISignInputs[] | SignInfo[], didPayload: DIDDocument, address: string, fee?: DidStdFee | 'auto' | number, memo?: string, versionId?: string, context?: IContext): Promise<DeliverTxResponse>;
282
+ /**
283
+ * Queries a DID document by its identifier.
284
+ * Retrieves the latest version of the DID document with metadata.
285
+ *
286
+ * @param id - DID identifier to query
287
+ * @param context - Optional SDK context for accessing clients
288
+ * @returns Promise resolving to the DID document with metadata
289
+ */
290
+ queryDidDoc(id: string, context?: IContext): Promise<DIDDocumentWithMetadata>;
291
+ /**
292
+ * Queries a specific version of a DID document by its identifier and version ID.
293
+ *
294
+ * @param id - DID identifier to query
295
+ * @param versionId - Specific version identifier to retrieve
296
+ * @param context - Optional SDK context for accessing clients
297
+ * @returns Promise resolving to the DID document version with metadata
298
+ */
299
+ queryDidDocVersion(id: string, versionId: string, context?: IContext): Promise<DIDDocumentWithMetadata>;
300
+ /**
301
+ * Queries metadata for all versions of a DID document.
302
+ * Retrieves version history information for a specific DID.
303
+ *
304
+ * @param id - DID identifier to query version metadata for
305
+ * @param context - Optional SDK context for accessing clients
306
+ * @returns Promise resolving to array of version metadata and pagination info
307
+ */
308
+ queryAllDidDocVersionsMetadata(id: string, context?: IContext): Promise<{
309
+ didDocumentVersionsMetadata: DIDDocumentMetadata[];
310
+ pagination: QueryAllDidDocVersionsMetadataResponse['pagination'];
311
+ }>;
312
+ /**
313
+ * Validates a DID document against the Cheqd specification requirements.
314
+ * Ensures all required fields are present and verification methods are supported.
315
+ *
316
+ * @param didDocument - DID document to validate
317
+ * @returns Promise resolving to validation result with protobuf conversion or error details
318
+ */
319
+ static validateSpecCompliantPayload(didDocument: DIDDocument): Promise<SpecValidationResult>;
320
+ /**
321
+ * Converts a protobuf DID document to a specification-compliant DID document format.
322
+ * Handles context inclusion, verification method formatting, and service denormalization.
323
+ *
324
+ * @param protobufDidDocument - Protobuf DID document to convert
325
+ * @returns Promise resolving to a spec-compliant DID document
326
+ */
327
+ static toSpecCompliantPayload(protobufDidDocument: DidDoc): Promise<DIDDocument>;
328
+ /**
329
+ * Converts protobuf metadata to specification-compliant DID document metadata format.
330
+ * Handles date formatting and optional field normalization.
331
+ *
332
+ * @param protobufDidDocument - Protobuf metadata to convert
333
+ * @returns Promise resolving to spec-compliant DID document metadata
334
+ */
335
+ static toSpecCompliantMetadata(protobufDidDocument: Metadata): Promise<DIDDocumentMetadata>;
336
+ /**
337
+ * Validates that provided signatures match the authentication requirements in a DID document.
338
+ * Checks signature count, authentication presence, and controller authorization.
339
+ *
340
+ * @param didDocument - DID document containing authentication requirements
341
+ * @param signatures - Array of signatures to validate against authentication
342
+ * @param querier - Optional querier for retrieving external controller documents
343
+ * @param externalControllersDidDocuments - Optional pre-loaded external controller documents
344
+ * @returns Promise resolving to validation result with error details if invalid
345
+ */
346
+ static validateAuthenticationAgainstSignatures(didDocument: DIDDocument, signatures: readonly SignInfo[], querier?: CheqdQuerier & DidExtension, externalControllersDidDocuments?: DIDDocument[]): Promise<AuthenticationValidationResult>;
347
+ /**
348
+ * Validates authentication against signatures for key rotation scenarios.
349
+ * Handles validation during DID document updates where keys may have changed.
350
+ *
351
+ * @param didDocument - Updated DID document to validate
352
+ * @param signatures - Array of signatures to validate
353
+ * @param querier - Querier for retrieving previous DID document and controllers
354
+ * @param previousDidDocument - Optional previous version of the DID document
355
+ * @param externalControllersDidDocuments - Optional pre-loaded external controller documents
356
+ * @returns Promise resolving to validation result with controller documents and previous document
357
+ */
358
+ static validateAuthenticationAgainstSignaturesKeyRotation(didDocument: DIDDocument, signatures: readonly SignInfo[], querier: CheqdQuerier & DidExtension, previousDidDocument?: DIDDocument, externalControllersDidDocuments?: DIDDocument[]): Promise<AuthenticationValidationResult>;
359
+ /**
360
+ * Generates standard fees for creating a DID document.
361
+ *
362
+ * @param feePayer - Address of the account that will pay the transaction fees
363
+ * @param granter - Optional address of the account granting fee payment permissions
364
+ * @returns Promise resolving to the fee configuration for DID document creation
365
+ */
366
+ static generateCreateDidDocFees(feePayer: string, granter?: string): Promise<DidStdFee>;
367
+ /**
368
+ * Generates fee configuration for DID document update transactions.
369
+ * Uses default update fees and gas requirements.
370
+ *
371
+ * @param feePayer - Address of the account that will pay the transaction fees
372
+ * @param granter - Optional address of the account granting fee payment permissions
373
+ * @returns Promise resolving to the fee configuration for DID document updates
374
+ */
375
+ static generateUpdateDidDocFees(feePayer: string, granter?: string): Promise<DidStdFee>;
376
+ /**
377
+ * Generates fee configuration for DID document deactivation transactions.
378
+ * Uses default deactivation fees and gas requirements.
379
+ *
380
+ * @param feePayer - Address of the account that will pay the transaction fees
381
+ * @param granter - Optional address of the account granting fee payment permissions
382
+ * @returns Promise resolving to the fee configuration for DID document deactivation
383
+ */
384
+ static generateDeactivateDidDocFees(feePayer: string, granter?: string): Promise<DidStdFee>;
385
+ }
386
+ //# sourceMappingURL=did.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"did.d.ts","sourceRoot":"","sources":["../../src/modules/did.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,iBAAiB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC7G,OAAO,EAAE,sBAAsB,EAAE,+BAA+B,EAAE,MAAM,QAAQ,CAAC;AACjF,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EACN,WAAW,EACX,SAAS,EACT,QAAQ,EACR,WAAW,EACX,mBAAmB,EACnB,oBAAoB,EAEpB,uBAAuB,EAEvB,8BAA8B,EAC9B,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,eAAe,EAEf,uBAAuB,EACvB,mBAAmB,EAEnB,2BAA2B,E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