@cheqd/sdk 5.3.2 → 5.3.3-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.
- package/README.md +310 -0
- package/build/cjs/index.d.ts +92 -1
- package/build/cjs/index.d.ts.map +1 -1
- package/build/cjs/index.js +75 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/modules/_.d.ts +61 -0
- package/build/cjs/modules/_.d.ts.map +1 -1
- package/build/cjs/modules/_.js +50 -0
- package/build/cjs/modules/_.js.map +1 -1
- package/build/cjs/modules/did.d.ts +278 -0
- package/build/cjs/modules/did.d.ts.map +1 -1
- package/build/cjs/modules/did.js +242 -0
- package/build/cjs/modules/did.js.map +1 -1
- package/build/cjs/modules/feeabstraction.d.ts +297 -2
- package/build/cjs/modules/feeabstraction.d.ts.map +1 -1
- package/build/cjs/modules/feeabstraction.js +235 -4
- package/build/cjs/modules/feeabstraction.js.map +1 -1
- package/build/cjs/modules/feemarket.d.ts +154 -21
- package/build/cjs/modules/feemarket.d.ts.map +1 -1
- package/build/cjs/modules/feemarket.js +133 -22
- package/build/cjs/modules/feemarket.js.map +1 -1
- package/build/cjs/modules/resource.d.ts +143 -0
- package/build/cjs/modules/resource.d.ts.map +1 -1
- package/build/cjs/modules/resource.js +131 -0
- package/build/cjs/modules/resource.js.map +1 -1
- package/build/cjs/querier.d.ts +50 -0
- package/build/cjs/querier.d.ts.map +1 -1
- package/build/cjs/querier.js +50 -0
- package/build/cjs/querier.js.map +1 -1
- package/build/cjs/registry.d.ts +14 -0
- package/build/cjs/registry.d.ts.map +1 -1
- package/build/cjs/registry.js +14 -0
- package/build/cjs/registry.js.map +1 -1
- package/build/cjs/signer.d.ts +172 -1
- package/build/cjs/signer.d.ts.map +1 -1
- package/build/cjs/signer.js +172 -1
- package/build/cjs/signer.js.map +1 -1
- package/build/cjs/types.d.ts +91 -0
- package/build/cjs/types.d.ts.map +1 -1
- package/build/cjs/types.js +17 -0
- package/build/cjs/types.js.map +1 -1
- package/build/cjs/utils.d.ts +191 -3
- package/build/cjs/utils.d.ts.map +1 -1
- package/build/cjs/utils.js +196 -0
- package/build/cjs/utils.js.map +1 -1
- package/build/esm/index.d.ts +92 -1
- package/build/esm/index.d.ts.map +1 -1
- package/build/esm/index.js +74 -1
- package/build/esm/index.js.map +1 -1
- package/build/esm/modules/_.d.ts +42 -0
- package/build/esm/modules/_.d.ts.map +1 -1
- package/build/esm/modules/_.js +32 -0
- package/build/esm/modules/_.js.map +1 -1
- package/build/esm/modules/did.d.ts +274 -0
- package/build/esm/modules/did.d.ts.map +1 -1
- package/build/esm/modules/did.js +242 -0
- package/build/esm/modules/did.js.map +1 -1
- package/build/esm/modules/feeabstraction.d.ts +277 -2
- package/build/esm/modules/feeabstraction.d.ts.map +1 -1
- package/build/esm/modules/feeabstraction.js +221 -2
- package/build/esm/modules/feeabstraction.js.map +1 -1
- package/build/esm/modules/feemarket.d.ts +152 -21
- package/build/esm/modules/feemarket.d.ts.map +1 -1
- package/build/esm/modules/feemarket.js +131 -21
- package/build/esm/modules/feemarket.js.map +1 -1
- package/build/esm/modules/resource.d.ts +142 -0
- package/build/esm/modules/resource.d.ts.map +1 -1
- package/build/esm/modules/resource.js +130 -0
- package/build/esm/modules/resource.js.map +1 -1
- package/build/esm/querier.d.ts +50 -0
- package/build/esm/querier.d.ts.map +1 -1
- package/build/esm/querier.js +50 -0
- package/build/esm/querier.js.map +1 -1
- package/build/esm/registry.d.ts +14 -0
- package/build/esm/registry.d.ts.map +1 -1
- package/build/esm/registry.js +14 -0
- package/build/esm/registry.js.map +1 -1
- package/build/esm/signer.d.ts +122 -0
- package/build/esm/signer.d.ts.map +1 -1
- package/build/esm/signer.js +122 -0
- package/build/esm/signer.js.map +1 -1
- package/build/esm/types.d.ts +92 -0
- package/build/esm/types.d.ts.map +1 -1
- package/build/esm/types.js +17 -0
- package/build/esm/types.js.map +1 -1
- package/build/esm/utils.d.ts +181 -3
- package/build/esm/utils.d.ts.map +1 -1
- package/build/esm/utils.js +172 -0
- package/build/esm/utils.js.map +1 -1
- package/build/types/index.d.ts +92 -1
- package/build/types/index.d.ts.map +1 -1
- package/build/types/modules/_.d.ts +42 -0
- package/build/types/modules/_.d.ts.map +1 -1
- package/build/types/modules/did.d.ts +274 -0
- package/build/types/modules/did.d.ts.map +1 -1
- package/build/types/modules/feeabstraction.d.ts +277 -2
- package/build/types/modules/feeabstraction.d.ts.map +1 -1
- package/build/types/modules/feemarket.d.ts +152 -21
- package/build/types/modules/feemarket.d.ts.map +1 -1
- package/build/types/modules/resource.d.ts +142 -0
- package/build/types/modules/resource.d.ts.map +1 -1
- package/build/types/querier.d.ts +50 -0
- package/build/types/querier.d.ts.map +1 -1
- package/build/types/registry.d.ts +14 -0
- package/build/types/registry.d.ts.map +1 -1
- package/build/types/signer.d.ts +122 -0
- package/build/types/signer.d.ts.map +1 -1
- package/build/types/types.d.ts +92 -0
- package/build/types/types.d.ts.map +1 -1
- package/build/types/utils.d.ts +181 -3
- package/build/types/utils.d.ts.map +1 -1
- package/package.json +4 -4
package/build/types/index.d.ts
CHANGED
|
@@ -8,39 +8,130 @@ import { CheqdNetwork, IModuleMethodMap } from './types.js';
|
|
|
8
8
|
import { GasPrice } from '@cosmjs/stargate';
|
|
9
9
|
import { CheqdQuerier } from './querier.js';
|
|
10
10
|
import { FeeabstractionExtension, FeeabstractionModule, MinimalImportableFeeabstractionModule } from './modules/feeabstraction.js';
|
|
11
|
+
/**
|
|
12
|
+
* Configuration options for initializing the CheqdSDK
|
|
13
|
+
*/
|
|
11
14
|
export interface ICheqdSDKOptions {
|
|
15
|
+
/** Array of modules to be loaded and registered with the SDK */
|
|
12
16
|
modules: AbstractCheqdSDKModule[];
|
|
17
|
+
/** Optional querier extensions to extend query functionality */
|
|
13
18
|
querierExtensions?: Record<string, any>[];
|
|
19
|
+
/** RPC URL of the blockchain node to connect to */
|
|
14
20
|
rpcUrl: string;
|
|
21
|
+
/** Network configuration (Mainnet, Testnet, etc.) */
|
|
15
22
|
network?: CheqdNetwork;
|
|
23
|
+
/** Gas price configuration for transactions */
|
|
16
24
|
gasPrice?: GasPrice;
|
|
25
|
+
/** List of method names that are authorized for execution */
|
|
17
26
|
authorizedMethods?: string[];
|
|
27
|
+
/** Wallet instance for signing transactions */
|
|
18
28
|
readonly wallet: OfflineSigner;
|
|
19
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Default SDK modules that provide core functionality for DID, Resource, Feemarket, and Fee abstraction operations
|
|
32
|
+
*/
|
|
20
33
|
export type DefaultCheqdSDKModules = MinimalImportableDIDModule & MinimalImportableResourceModule & MinimalImportableFeemarketModule & MinimalImportableFeeabstractionModule;
|
|
34
|
+
/**
|
|
35
|
+
* Main CheqdSDK class that provides a comprehensive interface for interacting with the Cheqd blockchain.
|
|
36
|
+
* This class orchestrates modules for DID operations, resource management, fee market interactions,
|
|
37
|
+
* and fee abstraction functionality.
|
|
38
|
+
*/
|
|
21
39
|
export interface CheqdSDK extends DefaultCheqdSDKModules {
|
|
22
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Main CheqdSDK class that provides a comprehensive interface for interacting with the Cheqd blockchain.
|
|
43
|
+
* This class orchestrates modules for DID operations, resource management, fee market interactions,
|
|
44
|
+
* and fee abstraction functionality.
|
|
45
|
+
*/
|
|
23
46
|
export declare class CheqdSDK {
|
|
47
|
+
/** Map of available methods from loaded modules */
|
|
24
48
|
methods: IModuleMethodMap;
|
|
49
|
+
/** Signing client for executing transactions on the blockchain */
|
|
25
50
|
signer: CheqdSigningStargateClient;
|
|
51
|
+
/** Query client with extensions for reading blockchain data */
|
|
26
52
|
querier: CheqdQuerier & DidExtension & ResourceExtension & FeemarketExtension & FeeabstractionExtension;
|
|
53
|
+
/** Configuration options passed during SDK initialization */
|
|
27
54
|
options: ICheqdSDKOptions;
|
|
55
|
+
/** List of method names that are protected from external access */
|
|
28
56
|
private protectedMethods;
|
|
57
|
+
/**
|
|
58
|
+
* Constructs a new CheqdSDK instance with the provided configuration options.
|
|
59
|
+
*
|
|
60
|
+
* @param options - Configuration options for the SDK including wallet, modules, and network settings
|
|
61
|
+
* @throws {Error} Throws an error if no wallet is provided in the options
|
|
62
|
+
*/
|
|
29
63
|
constructor(options: ICheqdSDKOptions);
|
|
64
|
+
/**
|
|
65
|
+
* Executes a method from the loaded modules with the provided parameters.
|
|
66
|
+
* Only authorized methods can be executed through this interface.
|
|
67
|
+
*
|
|
68
|
+
* @template P - Type of parameters to pass to the method
|
|
69
|
+
* @template R - Return type of the method
|
|
70
|
+
* @param method - Name of the method to execute
|
|
71
|
+
* @param params - Parameters to pass to the method
|
|
72
|
+
* @returns Promise resolving to the method's return value
|
|
73
|
+
* @throws {Error} Throws an error if the method is not authorized
|
|
74
|
+
*/
|
|
30
75
|
execute<P = any, R = any>(method: string, ...params: P[]): Promise<R>;
|
|
76
|
+
/**
|
|
77
|
+
* Loads and instantiates the provided modules, making their methods available for execution.
|
|
78
|
+
* This method also applies mixins to make module methods accessible on the SDK instance.
|
|
79
|
+
*
|
|
80
|
+
* @param modules - Array of modules to load and integrate
|
|
81
|
+
* @returns Promise resolving to the CheqdSDK instance with loaded modules
|
|
82
|
+
* @private
|
|
83
|
+
*/
|
|
31
84
|
private loadModules;
|
|
85
|
+
/**
|
|
86
|
+
* Creates and configures a registry with types from all loaded modules.
|
|
87
|
+
* The registry is used for encoding and decoding blockchain messages.
|
|
88
|
+
*
|
|
89
|
+
* @returns Configured Registry instance with all module types
|
|
90
|
+
* @private
|
|
91
|
+
*/
|
|
32
92
|
private loadRegistry;
|
|
93
|
+
/**
|
|
94
|
+
* Establishes a connection to the blockchain querier with all necessary extensions.
|
|
95
|
+
* Extensions provide specialized query capabilities for different modules.
|
|
96
|
+
*
|
|
97
|
+
* @returns Promise resolving to a CheqdQuerier instance with all extensions
|
|
98
|
+
* @private
|
|
99
|
+
*/
|
|
33
100
|
private loadQuerierExtensions;
|
|
101
|
+
/**
|
|
102
|
+
* Builds and initializes the complete SDK instance by loading all components:
|
|
103
|
+
* registry, querier extensions, modules, gas price configuration, and signing client.
|
|
104
|
+
* This method must be called before the SDK can be used for blockchain operations.
|
|
105
|
+
*
|
|
106
|
+
* @returns Promise resolving to the fully initialized CheqdSDK instance
|
|
107
|
+
*/
|
|
34
108
|
build(): Promise<CheqdSDK>;
|
|
35
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* Filters methods based on authorization rules and protected method restrictions.
|
|
112
|
+
* Returns only methods that are explicitly authorized (if authorization list is provided)
|
|
113
|
+
* and excludes protected methods from external access.
|
|
114
|
+
*
|
|
115
|
+
* @param methods - Map of all available methods from modules
|
|
116
|
+
* @param authorizedMethods - List of method names that are explicitly authorized
|
|
117
|
+
* @param protectedMethods - List of method names that should be protected from external access
|
|
118
|
+
* @returns Filtered map containing only authorized and non-protected methods
|
|
119
|
+
*/
|
|
36
120
|
export declare function filterUnauthorizedMethods(methods: IModuleMethodMap, authorizedMethods: string[], protectedMethods: string[]): IModuleMethodMap;
|
|
121
|
+
/**
|
|
122
|
+
* Factory function that creates and builds a fully initialized CheqdSDK instance.
|
|
123
|
+
* This is the recommended way to create an SDK instance as it handles all initialization steps.
|
|
124
|
+
*
|
|
125
|
+
* @param options - Configuration options for the SDK including wallet, modules, and network settings
|
|
126
|
+
* @returns Promise resolving to a fully initialized and ready-to-use CheqdSDK instance
|
|
127
|
+
*/
|
|
37
128
|
export declare function createCheqdSDK(options: ICheqdSDKOptions): Promise<CheqdSDK>;
|
|
38
129
|
export { DIDModule, ResourceModule, FeemarketModule, FeeabstractionModule };
|
|
39
130
|
export { AbstractCheqdSDKModule, applyMixins } from './modules/_.js';
|
|
40
131
|
export { DidExtension, MinimalImportableDIDModule, MsgCreateDidDocEncodeObject, MsgCreateDidDocResponseEncodeObject, MsgUpdateDidDocEncodeObject, MsgUpdateDidDocResponseEncodeObject, MsgDeactivateDidDocEncodeObject, MsgDeactivateDidDocResponseEncodeObject, contexts, defaultDidExtensionKey, protobufLiterals as protobufLiteralsDid, typeUrlMsgCreateDidDoc, typeUrlMsgCreateDidDocResponse, typeUrlMsgUpdateDidDoc, typeUrlMsgUpdateDidDocResponse, typeUrlMsgDeactivateDidDoc, typeUrlMsgDeactivateDidDocResponse, setupDidExtension, isMsgCreateDidDocEncodeObject, isMsgUpdateDidDocEncodeObject, isMsgDeactivateDidDocEncodeObject, } from './modules/did.js';
|
|
41
132
|
export { ResourceExtension, MinimalImportableResourceModule, defaultResourceExtensionKey, protobufLiterals as protobufLiteralsResource, typeUrlMsgCreateResource, typeUrlMsgCreateResourceResponse, setupResourceExtension, isMsgCreateResourceEncodeObject, } from './modules/resource.js';
|
|
42
133
|
export { FeemarketExtension, MinimalImportableFeemarketModule, DefaultGasPriceTiers, defaultFeemarketExtensionKey, defaultGasPriceTiers, protobufLiterals as protobufLiteralsFeemarket, typeUrlGasPriceResponse, typeUrlGasPricesResponse, typeUrlParamsResponse, setupFeemarketExtension, isGasPriceEncodeObject, isGasPricesEncodeObject, isParamsEncodeObject, } from './modules/feemarket.js';
|
|
43
|
-
export { FeeabstractionExtension, MinimalImportableFeeabstractionModule,
|
|
134
|
+
export { FeeabstractionExtension, MinimalImportableFeeabstractionModule, defaultFeeabstractionExtensionKey, protobufLiterals as protobufLiteralsFeeabstraction, typeUrlMsgAddHostZone, typeUrlMsgAddHostZoneResponse, typeUrlMsgFundFeeAbsModuleAccount, typeUrlMsgFundFeeAbsModuleAccountResponse, typeUrlMsgRemoveHostZone, typeUrlMsgRemoveHostZoneResponse, typeUrlMsgUpdateHostZone, typeUrlMsgUpdateHostZoneResponse, typeUrlMsgSendQueryIbcDenomTWAP, typeUrlMsgSendQueryIbcDenomTWAPResponse, typeUrlMsgSwapCrossChain, typeUrlMsgSwapCrossChainResponse, typeUrlMsgUpdateParams, typeUrlMsgUpdateParamsResponse, setupFeeabstractionExtension, isMsgAddHostZoneEncodeObject, isMsgAddHostZoneResponseEncodeObject, isMsgFundFeeAbsModuleAccountEncodeObject, isMsgFundFeeAbsModuleAccountResponseEncodeObject, isMsgRemoveHostZoneEncodeObject, isMsgRemoveHostZoneResponseEncodeObject, isMsgUpdateHostZoneEncodeObject, isMsgUpdateHostZoneResponseEncodeObject, isMsgSendQueryIbcDenomTWAPEncodeObject, isMsgSendQueryIbcDenomTWAPResponseEncodeObject, isMsgSwapCrossChainEncodeObject, isMsgSwapCrossChainResponseEncodeObject, isMsgUpdateParamsEncodeObject, isMsgUpdateParamsResponseEncodeObject, } from './modules/feeabstraction.js';
|
|
44
135
|
export * from './signer.js';
|
|
45
136
|
export * from './querier.js';
|
|
46
137
|
export * from './registry.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../esm/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAY,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,0BAA0B,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,EAAE,+BAA+B,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC3G,OAAO,EACN,eAAe,EACf,kBAAkB,EAClB,gCAAgC,EAEhC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,sBAAsB,EAKtB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,YAAY,EAAY,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAe,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EACN,uBAAuB,EACvB,oBAAoB,EACpB,qCAAqC,EACrC,MAAM,6BAA6B,CAAC;AAErC,MAAM,WAAW,gBAAgB;IAChC,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAClC,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,E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C7C,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,GACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,uBAAuB,EACvB,qCAAqC,EACrC,iCAAiC,EACjC,gBAAgB,IAAI,8BAA8B,EAClD,qBAAqB,EACrB,6BAA6B,EAC7B,iCAAiC,EACjC,yCAAyC,EACzC,wBAAwB,EACxB,gCAAgC,EAChC,wBAAwB,EACxB,gCAAgC,EAChC,+BAA+B,EAC/B,uCAAuC,EACvC,wBAAwB,EACxB,gCAAgC,EAChC,sBAAsB,EACtB,8BAA8B,EAC9B,4BAA4B,EAC5B,4BAA4B,EAC5B,oCAAoC,EACpC,wCAAwC,EACxC,gDAAgD,EAChD,+BAA+B,EAC/B,uCAAuC,EACvC,+BAA+B,EAC/B,uCAAuC,EACvC,sCAAsC,EACtC,8CAA8C,EAC9C,+BAA+B,EAC/B,uCAAuC,EACvC,6BAA6B,EAC7B,qCAAqC,GACrC,MAAM,6BAA6B,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,OAAO,EACN,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,2BAA2B,EAC3B,gBAAgB,EAChB,wCAAwC,EACxC,4BAA4B,EAC5B,mBAAmB,EACnB,uBAAuB,EACvB,gBAAgB,EAChB,YAAY,EACZ,cAAc,GACd,MAAM,YAAY,CAAC"}
|
|
@@ -2,18 +2,60 @@ import { GeneratedType } from '@cosmjs/proto-signing';
|
|
|
2
2
|
import { CheqdSigningStargateClient } from '../signer.js';
|
|
3
3
|
import { IModuleMethodMap, QueryExtensionSetup } from '../types.js';
|
|
4
4
|
import { CheqdQuerier } from '../querier.js';
|
|
5
|
+
/**
|
|
6
|
+
* Abstract base class for all Cheqd SDK modules.
|
|
7
|
+
* Provides common functionality and enforces implementation of required methods.
|
|
8
|
+
*/
|
|
5
9
|
export declare abstract class AbstractCheqdSDKModule {
|
|
10
|
+
/** Signing client for blockchain transactions */
|
|
6
11
|
_signer: CheqdSigningStargateClient;
|
|
12
|
+
/** Module methods registry */
|
|
7
13
|
methods: IModuleMethodMap;
|
|
14
|
+
/** Querier client for data retrieval */
|
|
8
15
|
querier: CheqdQuerier;
|
|
16
|
+
/** List of methods that should not be exposed externally */
|
|
9
17
|
readonly _protectedMethods: string[];
|
|
18
|
+
/** Static registry of protobuf message types */
|
|
10
19
|
static readonly registryTypes: Iterable<[string, GeneratedType]>;
|
|
20
|
+
/** Static querier extension setup function */
|
|
11
21
|
static readonly querierExtensionSetup: QueryExtensionSetup<any>;
|
|
22
|
+
/**
|
|
23
|
+
* Creates a new SDK module instance.
|
|
24
|
+
*
|
|
25
|
+
* @param signer - Signing client for blockchain transactions
|
|
26
|
+
* @param querier - Querier client for data retrieval
|
|
27
|
+
* @throws Error if signer or querier is not provided
|
|
28
|
+
*/
|
|
12
29
|
constructor(signer: CheqdSigningStargateClient, querier: CheqdQuerier);
|
|
30
|
+
/**
|
|
31
|
+
* Gets the registry types for message encoding/decoding.
|
|
32
|
+
* Must be implemented by each module to provide its specific message types.
|
|
33
|
+
*
|
|
34
|
+
* @returns Iterable of [typeUrl, GeneratedType] pairs for the registry
|
|
35
|
+
*/
|
|
13
36
|
abstract getRegistryTypes(): Iterable<[string, GeneratedType]>;
|
|
14
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Minimal importable interface for SDK modules.
|
|
40
|
+
* Excludes internal implementation details and protected methods for clean external APIs.
|
|
41
|
+
*/
|
|
15
42
|
export type MinimalImportableCheqdSDKModule<T extends AbstractCheqdSDKModule> = Omit<T, '_signer' | '_protectedMethods' | 'registryTypes' | 'querierExtensionSetup' | 'getRegistryTypes' | 'getQuerierExtensionSetup'>;
|
|
43
|
+
/**
|
|
44
|
+
* Creates a new instance of a Cheqd SDK module.
|
|
45
|
+
* Generic factory function for instantiating any module type.
|
|
46
|
+
*
|
|
47
|
+
* @param module - Module constructor class
|
|
48
|
+
* @param args - Constructor arguments for the module
|
|
49
|
+
* @returns New instance of the specified module
|
|
50
|
+
*/
|
|
16
51
|
export declare function instantiateCheqdSDKModule<T extends new (...args: any[]) => T>(module: T, ...args: ConstructorParameters<T>): T;
|
|
52
|
+
/**
|
|
53
|
+
* Extracts registry types from a module instance.
|
|
54
|
+
* Safely retrieves protobuf message types with fallback to empty array.
|
|
55
|
+
*
|
|
56
|
+
* @param module - Module instance to extract registry types from
|
|
57
|
+
* @returns Iterable of [typeUrl, GeneratedType] pairs for protobuf messages
|
|
58
|
+
*/
|
|
17
59
|
export declare function instantiateCheqdSDKModuleRegistryTypes(module: any): Iterable<[string, GeneratedType]>;
|
|
18
60
|
export declare function instantiateCheqdSDKModuleQuerierExtensionSetup(module: any): QueryExtensionSetup<any>;
|
|
19
61
|
export declare function applyMixins(derivedCtor: any, constructors: any[]): IModuleMethodMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_.d.ts","sourceRoot":"","sources":["../../../esm/src/modules/_.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,8BAAsB,sBAAsB;IAC3C,OAAO,EAAE,0BAA0B,CAAC;IACpC,OAAO,EAAE,gBAAgB,CAAM;IAC/B,OAAO,EAAE,YAAY,CAAC;IACtB,QAAQ,CAAC,iBAAiB,EAAE,MAAM,EAAE,CAAmE;IACvG,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,C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AAyB,CAAC,CAAC,SAAS,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC5E,MAAM,EAAE,CAAC,EACT,GAAG,IAAI,EAAE,qBAAqB,CAAC,CAAC,CAAC,GAC/B,CAAC,CAEH;AAED;;;;;;GAMG;AAEH,wBAAgB,sCAAsC,CAAC,MAAM,EAAE,GAAG,GAAG,QAAQ,CAAC,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAErG;AAED,wBAAgB,8CAA8C,CAAC,MAAM,EAAE,GAAG,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAEpG;AAED,wBAAgB,WAAW,CAAC,WAAW,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,GAAG,gBAAgB,CAmBnF"}
|
|
@@ -6,107 +6,381 @@ import { MsgCreateDidDoc, MsgCreateDidDocResponse, MsgDeactivateDidDoc, MsgDeact
|
|
|
6
6
|
import { EncodeObject, GeneratedType } from '@cosmjs/proto-signing';
|
|
7
7
|
import { CheqdQuerier } from '../querier.js';
|
|
8
8
|
import { DIDDocumentMetadata } from 'did-resolver';
|
|
9
|
+
/** Default extension key for DID-related query operations */
|
|
9
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
|
+
*/
|
|
10
15
|
export declare const contexts: {
|
|
16
|
+
/** W3C DID Core v1 context */
|
|
11
17
|
readonly W3CDIDv1: "https://www.w3.org/ns/did/v1";
|
|
18
|
+
/** Ed25519 Signature Suite 2020 context */
|
|
12
19
|
readonly W3CSuiteEd255192020: "https://w3id.org/security/suites/ed25519-2020/v1";
|
|
20
|
+
/** Ed25519 Signature Suite 2018 context */
|
|
13
21
|
readonly W3CSuiteEd255192018: "https://w3id.org/security/suites/ed25519-2018/v1";
|
|
22
|
+
/** JSON Web Signature Suite 2020 context */
|
|
14
23
|
readonly W3CSuiteJws2020: "https://w3id.org/security/suites/jws-2020/v1";
|
|
24
|
+
/** Linked Domains context for domain verification */
|
|
15
25
|
readonly LinkedDomainsContext: "https://identity.foundation/.well-known/did-configuration/v1";
|
|
16
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* Protobuf message type literals for DID operations.
|
|
29
|
+
* Used for consistent message type identification across the module.
|
|
30
|
+
*/
|
|
17
31
|
export declare const protobufLiterals: {
|
|
32
|
+
/** Create DID document message type */
|
|
18
33
|
readonly MsgCreateDidDoc: "MsgCreateDidDoc";
|
|
34
|
+
/** Create DID document response message type */
|
|
19
35
|
readonly MsgCreateDidDocResponse: "MsgCreateDidDocResponse";
|
|
36
|
+
/** Update DID document message type */
|
|
20
37
|
readonly MsgUpdateDidDoc: "MsgUpdateDidDoc";
|
|
38
|
+
/** Update DID document response message type */
|
|
21
39
|
readonly MsgUpdateDidDocResponse: "MsgUpdateDidDocResponse";
|
|
40
|
+
/** Deactivate DID document message type */
|
|
22
41
|
readonly MsgDeactivateDidDoc: "MsgDeactivateDidDoc";
|
|
42
|
+
/** Deactivate DID document response message type */
|
|
23
43
|
readonly MsgDeactivateDidDocResponse: "MsgDeactivateDidDocResponse";
|
|
24
44
|
};
|
|
45
|
+
/** Type URL for MsgCreateDidDoc messages */
|
|
25
46
|
export declare const typeUrlMsgCreateDidDoc: "/cheqd.did.v2.MsgCreateDidDoc";
|
|
47
|
+
/** Type URL for MsgCreateDidDocResponse messages */
|
|
26
48
|
export declare const typeUrlMsgCreateDidDocResponse: "/cheqd.did.v2.MsgCreateDidDocResponse";
|
|
49
|
+
/** Type URL for MsgUpdateDidDoc messages */
|
|
27
50
|
export declare const typeUrlMsgUpdateDidDoc: "/cheqd.did.v2.MsgUpdateDidDoc";
|
|
51
|
+
/** Type URL for MsgUpdateDidDocResponse messages */
|
|
28
52
|
export declare const typeUrlMsgUpdateDidDocResponse: "/cheqd.did.v2.MsgUpdateDidDocResponse";
|
|
53
|
+
/** Type URL for MsgDeactivateDidDoc messages */
|
|
29
54
|
export declare const typeUrlMsgDeactivateDidDoc: "/cheqd.did.v2.MsgDeactivateDidDoc";
|
|
55
|
+
/** Type URL for MsgDeactivateDidDocResponse messages */
|
|
30
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
|
+
*/
|
|
31
61
|
export interface MsgCreateDidDocEncodeObject extends EncodeObject {
|
|
32
62
|
readonly typeUrl: typeof typeUrlMsgCreateDidDoc;
|
|
33
63
|
readonly value: Partial<MsgCreateDidDoc>;
|
|
34
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
|
+
*/
|
|
35
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
|
+
*/
|
|
36
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
|
+
*/
|
|
37
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
|
+
*/
|
|
38
90
|
export interface MsgCreateDidDocResponseEncodeObject extends EncodeObject {
|
|
39
91
|
readonly typeUrl: typeof typeUrlMsgCreateDidDocResponse;
|
|
40
92
|
readonly value: Partial<MsgCreateDidDocResponse>;
|
|
41
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
|
+
*/
|
|
42
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
|
+
*/
|
|
43
105
|
export interface MsgUpdateDidDocEncodeObject extends EncodeObject {
|
|
44
106
|
readonly typeUrl: typeof typeUrlMsgUpdateDidDoc;
|
|
45
107
|
readonly value: Partial<MsgUpdateDidDoc>;
|
|
46
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
|
+
*/
|
|
47
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
|
+
*/
|
|
48
120
|
export interface MsgUpdateDidDocResponseEncodeObject extends EncodeObject {
|
|
49
121
|
readonly typeUrl: typeof typeUrlMsgUpdateDidDocResponse;
|
|
50
122
|
readonly value: Partial<MsgUpdateDidDocResponse>;
|
|
51
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
|
+
*/
|
|
52
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
|
+
*/
|
|
53
135
|
export interface MsgDeactivateDidDocEncodeObject extends EncodeObject {
|
|
54
136
|
readonly typeUrl: typeof typeUrlMsgDeactivateDidDoc;
|
|
55
137
|
readonly value: Partial<MsgDeactivateDidDoc>;
|
|
56
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
|
+
*/
|
|
57
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
|
+
*/
|
|
58
150
|
export interface MsgDeactivateDidDocResponseEncodeObject extends EncodeObject {
|
|
59
151
|
readonly typeUrl: typeof typeUrlMsgDeactivateDidDocResponse;
|
|
60
152
|
readonly value: Partial<MsgDeactivateDidDocResponse>;
|
|
61
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
|
+
*/
|
|
62
160
|
export declare function MsgDeactiveDidDocResponseEncodeObject(obj: EncodeObject): obj is MsgDeactivateDidDocResponseEncodeObject;
|
|
161
|
+
/** Minimal importable version of the DID module for clean external interfaces */
|
|
63
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
|
+
*/
|
|
64
167
|
export type DidExtension = {
|
|
65
168
|
readonly [defaultDidExtensionKey]: {
|
|
169
|
+
/** Query a DID document by ID */
|
|
66
170
|
readonly didDoc: (id: string) => Promise<DidDocWithMetadata>;
|
|
171
|
+
/** Query a specific version of a DID document */
|
|
67
172
|
readonly didDocVersion: (id: string, versionId: string) => Promise<DidDocWithMetadata>;
|
|
173
|
+
/** Query metadata for all versions of a DID document */
|
|
68
174
|
readonly allDidDocVersionsMetadata: (id: string, paginationKey?: Uint8Array) => Promise<QueryAllDidDocVersionsMetadataResponse>;
|
|
69
175
|
};
|
|
70
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
|
+
*/
|
|
71
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
|
+
*/
|
|
72
189
|
export declare class DIDModule extends AbstractCheqdSDKModule {
|
|
73
190
|
static readonly registryTypes: Iterable<[string, GeneratedType]>;
|
|
191
|
+
/** Base denomination for Cheqd network transactions */
|
|
74
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
|
+
*/
|
|
75
197
|
static readonly fees: {
|
|
198
|
+
/** Default fee for creating a new DID document */
|
|
76
199
|
readonly DefaultCreateDidDocFee: {
|
|
77
200
|
readonly amount: "50000000000";
|
|
78
201
|
readonly denom: "ncheq";
|
|
79
202
|
};
|
|
203
|
+
/** Default fee for updating an existing DID document */
|
|
80
204
|
readonly DefaultUpdateDidDocFee: {
|
|
81
205
|
readonly amount: "25000000000";
|
|
82
206
|
readonly denom: "ncheq";
|
|
83
207
|
};
|
|
208
|
+
/** Default fee for deactivating a DID document */
|
|
84
209
|
readonly DefaultDeactivateDidDocFee: {
|
|
85
210
|
readonly amount: "10000000000";
|
|
86
211
|
readonly denom: "ncheq";
|
|
87
212
|
};
|
|
88
213
|
};
|
|
214
|
+
/** Querier extension setup function for DID operations */
|
|
89
215
|
static readonly querierExtensionSetup: QueryExtensionSetup<DidExtension>;
|
|
216
|
+
/** Querier instance with DID extension capabilities */
|
|
90
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
|
+
*/
|
|
91
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
|
+
*/
|
|
92
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
|
+
*/
|
|
93
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
|
+
*/
|
|
94
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
|
+
*/
|
|
95
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
|
+
*/
|
|
96
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
|
+
*/
|
|
97
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
|
+
*/
|
|
98
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
|
+
*/
|
|
99
308
|
queryAllDidDocVersionsMetadata(id: string, context?: IContext): Promise<{
|
|
100
309
|
didDocumentVersionsMetadata: DIDDocumentMetadata[];
|
|
101
310
|
pagination: QueryAllDidDocVersionsMetadataResponse['pagination'];
|
|
102
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
|
+
*/
|
|
103
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
|
+
*/
|
|
104
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
|
+
*/
|
|
105
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
|
+
*/
|
|
106
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
|
+
*/
|
|
107
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
|
+
*/
|
|
108
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
|
+
*/
|
|
109
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
|
+
*/
|
|
110
384
|
static generateDeactivateDidDocFees(feePayer: string, granter?: string): Promise<DidStdFee>;
|
|
111
385
|
}
|
|
112
386
|
//# sourceMappingURL=did.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"did.d.ts","sourceRoot":"","sources":["../../../esm/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,EAC3B,eAAe,EAEf,uBAAuB,EAIvB,QAAQ,EAER,sCAAsC,EACtC,kBAAkB,EAClB,MAAM,EACN,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAIpE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,O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