@cheqd/did-provider-cheqd 3.4.0-develop.1 → 3.4.0-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.
@@ -61,17 +61,40 @@ export const DefaultRESTUrls = {
61
61
  [CheqdNetwork.Testnet]: 'https://api.cheqd.network'
62
62
  } as const
63
63
 
64
+ export const DefaultStatusList2021StatusPurposeTypes = {
65
+ revocation: 'revocation',
66
+ suspension: 'suspension'
67
+ } as const
68
+
69
+ export const DefaultStatusList2021ResourceTypes = {
70
+ default: 'StatusList2021',
71
+ revocation: 'StatusList2021Revocation',
72
+ suspension: 'StatusList2021Suspension'
73
+ } as const
74
+
75
+ export const DefaultStatusList2021Encodings = {
76
+ 'base64': 'base64',
77
+ 'base64url': 'base64url',
78
+ 'hex': 'hex'
79
+ } as const
80
+
64
81
  export type IContext = IAgentContext<IKeyManager>
65
82
 
66
- export type DefaultRPCUrl = typeof DefaultRPCUrls[CheqdNetwork.Mainnet] | typeof DefaultRPCUrls[CheqdNetwork.Testnet]
83
+ export type DefaultRPCUrl = typeof DefaultRPCUrls[keyof typeof DefaultRPCUrls]
84
+
85
+ export type DefaultRESTUrl = typeof DefaultRESTUrls[keyof typeof DefaultRESTUrls]
86
+
87
+ export type DefaultStatusList2021ResourceType = typeof DefaultStatusList2021ResourceTypes[keyof typeof DefaultStatusList2021ResourceTypes]
88
+
89
+ export type DefaultStatusList2021StatusPurposeType = typeof DefaultStatusList2021StatusPurposeTypes[keyof typeof DefaultStatusList2021StatusPurposeTypes]
67
90
 
68
- export type DefaultRESTUrl = typeof DefaultRESTUrls[CheqdNetwork.Mainnet] | typeof DefaultRESTUrls[CheqdNetwork.Testnet]
91
+ export type DefaultStatusList2021Encoding = typeof DefaultStatusList2021Encodings[keyof typeof DefaultStatusList2021Encodings]
69
92
 
70
93
  export type LinkedResource = Omit<MsgCreateResourcePayload, 'data'> & { data?: string }
71
94
 
72
95
  export type ResourcePayload = Partial<MsgCreateResourcePayload>
73
96
 
74
- export type StatusList2021ResourcePayload = ResourcePayload & { resourceType: 'StatusList2021' }
97
+ export type StatusList2021ResourcePayload = ResourcePayload & { resourceType: DefaultStatusList2021ResourceType }
75
98
 
76
99
  export type TImportableEd25519Key = Required<Pick<IKey, 'publicKeyHex' | 'privateKeyHex'>> & { kid: TImportableEd25519Key['publicKeyHex'], type: 'Ed25519' }
77
100