@verana-labs/verana-types 0.10.1-dev.4 → 0.10.1-dev.6
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 +1 -1
- package/dist/codec/verana/perm/v1/tx.d.ts +76 -40
- package/dist/codec/verana/perm/v1/tx.js +580 -249
- package/dist/codec/verana/perm/v1/types.d.ts +28 -15
- package/dist/codec/verana/perm/v1/types.js +220 -76
- package/dist/codec/verana/td/v1/tx.d.ts +17 -4
- package/dist/codec/verana/td/v1/tx.js +40 -24
- package/dist/helpers/aminoConverters.d.ts +6 -2
- package/dist/helpers/aminoConverters.js +192 -78
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ npm run build # Build the package (emits dist/)
|
|
|
48
48
|
### What Gets Generated
|
|
49
49
|
|
|
50
50
|
The generator creates TypeScript files for:
|
|
51
|
-
- **Verana modules**: `tr`, `cs`, `dd`, `perm`, `td` (Trust Registry, Credential Schema, DID Directory, Permission, Trust Deposit)
|
|
51
|
+
- **Verana modules**: `tr`, `cs`, `dd`, `perm`, `td`, `de` (Trust Registry, Credential Schema, DID Directory, Permission, Trust Deposit, Delegation Engine)
|
|
52
52
|
- **Cosmos SDK types**: Base types, queries, messages
|
|
53
53
|
- **Google protobuf types**: Timestamps, durations, etc.
|
|
54
54
|
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import * as _m0 from "protobufjs/minimal";
|
|
2
|
+
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
3
|
+
import { Duration } from "../../../google/protobuf/duration";
|
|
2
4
|
import { Params } from "./params";
|
|
3
5
|
import { OptionalUInt64, PermissionType } from "./types";
|
|
4
6
|
export declare const protobufPackage = "verana.perm.v1";
|
|
@@ -21,18 +23,24 @@ export interface MsgUpdateParamsResponse {
|
|
|
21
23
|
}
|
|
22
24
|
/** MsgStartPermissionVP represents a message to start a permission validation process */
|
|
23
25
|
export interface MsgStartPermissionVP {
|
|
24
|
-
|
|
26
|
+
/** authority is the group account on whose behalf this message is executed */
|
|
27
|
+
authority: string;
|
|
28
|
+
/** operator is the account authorized by the authority to run this Msg */
|
|
29
|
+
operator: string;
|
|
25
30
|
type: PermissionType;
|
|
26
31
|
validatorPermId: number;
|
|
27
|
-
/**
|
|
32
|
+
/** mandatory: MUST conform to DID Syntax */
|
|
33
|
+
did: string;
|
|
28
34
|
validationFees: OptionalUInt64 | undefined;
|
|
29
|
-
/** optional: Requested issuance_fees for this permission (can be modified by validator) */
|
|
30
35
|
issuanceFees: OptionalUInt64 | undefined;
|
|
31
|
-
/** optional: Requested verification_fees for this permission (can be modified by validator) */
|
|
32
36
|
verificationFees: OptionalUInt64 | undefined;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
37
|
+
/** vs_operator: the account of the Verifiable Service (optional) */
|
|
38
|
+
vsOperator: string;
|
|
39
|
+
vsOperatorAuthzEnabled: boolean;
|
|
40
|
+
vsOperatorAuthzSpendLimit: Coin[];
|
|
41
|
+
vsOperatorAuthzWithFeegrant: boolean;
|
|
42
|
+
vsOperatorAuthzFeeSpendLimit: Coin[];
|
|
43
|
+
vsOperatorAuthzSpendPeriod: Duration | undefined;
|
|
36
44
|
}
|
|
37
45
|
/** MsgStartPermissionVPResponse defines the Msg/StartPermissionVP response type */
|
|
38
46
|
export interface MsgStartPermissionVPResponse {
|
|
@@ -40,7 +48,8 @@ export interface MsgStartPermissionVPResponse {
|
|
|
40
48
|
}
|
|
41
49
|
/** MsgRenewPermissionVP represents a message to renew a permission validation process */
|
|
42
50
|
export interface MsgRenewPermissionVP {
|
|
43
|
-
|
|
51
|
+
authority: string;
|
|
52
|
+
operator: string;
|
|
44
53
|
/** ID of the permission to renew */
|
|
45
54
|
id: number;
|
|
46
55
|
}
|
|
@@ -49,13 +58,15 @@ export interface MsgRenewPermissionVPResponse {
|
|
|
49
58
|
}
|
|
50
59
|
/** MsgSetPermissionVPToValidated represents a message to set a permission validation process to validated state */
|
|
51
60
|
export interface MsgSetPermissionVPToValidated {
|
|
52
|
-
|
|
61
|
+
/** authority is the group account on whose behalf this message is executed */
|
|
62
|
+
authority: string;
|
|
63
|
+
/** operator is the account authorized by the authority to run this Msg */
|
|
64
|
+
operator: string;
|
|
53
65
|
id: number;
|
|
54
66
|
effectiveUntil: Date | undefined;
|
|
55
67
|
validationFees: number;
|
|
56
68
|
issuanceFees: number;
|
|
57
69
|
verificationFees: number;
|
|
58
|
-
country: string;
|
|
59
70
|
vpSummaryDigestSri: string;
|
|
60
71
|
/**
|
|
61
72
|
* Fee discount fields (scaled: 0 = 0.0, 10000 = 1.0, range 0-10000)
|
|
@@ -69,17 +80,20 @@ export interface MsgSetPermissionVPToValidated {
|
|
|
69
80
|
export interface MsgSetPermissionVPToValidatedResponse {
|
|
70
81
|
}
|
|
71
82
|
export interface MsgCancelPermissionVPLastRequest {
|
|
72
|
-
|
|
83
|
+
/** authority is the group account on whose behalf this message is executed */
|
|
84
|
+
authority: string;
|
|
85
|
+
/** operator is the account authorized by the authority to run this Msg */
|
|
86
|
+
operator: string;
|
|
73
87
|
/** Permission ID */
|
|
74
88
|
id: number;
|
|
75
89
|
}
|
|
76
90
|
export interface MsgCancelPermissionVPLastRequestResponse {
|
|
77
91
|
}
|
|
78
92
|
export interface MsgCreateRootPermission {
|
|
79
|
-
|
|
93
|
+
authority: string;
|
|
94
|
+
operator: string;
|
|
80
95
|
schemaId: number;
|
|
81
96
|
did: string;
|
|
82
|
-
country: string;
|
|
83
97
|
effectiveFrom: Date | undefined;
|
|
84
98
|
effectiveUntil: Date | undefined;
|
|
85
99
|
validationFees: number;
|
|
@@ -90,56 +104,78 @@ export interface MsgCreateRootPermissionResponse {
|
|
|
90
104
|
/** ID of the created permission */
|
|
91
105
|
id: number;
|
|
92
106
|
}
|
|
93
|
-
export interface
|
|
94
|
-
|
|
107
|
+
export interface MsgAdjustPermission {
|
|
108
|
+
authority: string;
|
|
109
|
+
operator: string;
|
|
95
110
|
/** Permission ID */
|
|
96
111
|
id: number;
|
|
97
112
|
effectiveUntil: Date | undefined;
|
|
98
113
|
}
|
|
99
|
-
export interface
|
|
114
|
+
export interface MsgAdjustPermissionResponse {
|
|
100
115
|
}
|
|
101
116
|
export interface MsgRevokePermission {
|
|
102
|
-
|
|
117
|
+
authority: string;
|
|
118
|
+
operator: string;
|
|
103
119
|
/** Permission ID */
|
|
104
120
|
id: number;
|
|
105
121
|
}
|
|
106
122
|
export interface MsgRevokePermissionResponse {
|
|
107
123
|
}
|
|
108
124
|
export interface MsgCreateOrUpdatePermissionSession {
|
|
109
|
-
|
|
110
|
-
|
|
125
|
+
/** authority is the group account on whose behalf this message is executed */
|
|
126
|
+
authority: string;
|
|
127
|
+
/** operator is the account authorized by the authority to run this Msg (vs_operator) */
|
|
128
|
+
operator: string;
|
|
129
|
+
/** UUID (mandatory) */
|
|
111
130
|
id: string;
|
|
131
|
+
/** optional: issuer permission id */
|
|
112
132
|
issuerPermId: number;
|
|
133
|
+
/** optional: verifier permission id */
|
|
113
134
|
verifierPermId: number;
|
|
135
|
+
/** mandatory: agent credential issuer permission id */
|
|
114
136
|
agentPermId: number;
|
|
137
|
+
/** mandatory: wallet credential issuer permission id */
|
|
115
138
|
walletAgentPermId: number;
|
|
139
|
+
/** optional: digest derived from an issued or verified credential */
|
|
140
|
+
digest: string;
|
|
116
141
|
}
|
|
117
142
|
export interface MsgCreateOrUpdatePermissionSessionResponse {
|
|
118
143
|
id: string;
|
|
119
144
|
}
|
|
120
145
|
export interface MsgSlashPermissionTrustDeposit {
|
|
121
|
-
|
|
146
|
+
/** authority is the group account on whose behalf this message is executed */
|
|
147
|
+
authority: string;
|
|
148
|
+
/** operator is the account authorized by the authority to run this Msg */
|
|
149
|
+
operator: string;
|
|
122
150
|
id: number;
|
|
123
151
|
amount: number;
|
|
124
152
|
}
|
|
125
153
|
export interface MsgSlashPermissionTrustDepositResponse {
|
|
126
154
|
}
|
|
127
155
|
export interface MsgRepayPermissionSlashedTrustDeposit {
|
|
128
|
-
|
|
156
|
+
authority: string;
|
|
157
|
+
operator: string;
|
|
129
158
|
id: number;
|
|
130
159
|
}
|
|
131
160
|
export interface MsgRepayPermissionSlashedTrustDepositResponse {
|
|
132
161
|
}
|
|
133
162
|
export interface MsgCreatePermission {
|
|
134
|
-
|
|
135
|
-
|
|
163
|
+
authority: string;
|
|
164
|
+
operator: string;
|
|
136
165
|
type: PermissionType;
|
|
166
|
+
validatorPermId: number;
|
|
137
167
|
did: string;
|
|
138
|
-
country: string;
|
|
139
168
|
effectiveFrom: Date | undefined;
|
|
140
169
|
effectiveUntil: Date | undefined;
|
|
141
170
|
verificationFees: number;
|
|
142
171
|
validationFees: number;
|
|
172
|
+
/** vs_operator: the account of the Verifiable Service (optional) */
|
|
173
|
+
vsOperator: string;
|
|
174
|
+
vsOperatorAuthzEnabled: boolean;
|
|
175
|
+
vsOperatorAuthzSpendLimit: Coin[];
|
|
176
|
+
vsOperatorAuthzWithFeegrant: boolean;
|
|
177
|
+
vsOperatorAuthzFeeSpendLimit: Coin[];
|
|
178
|
+
vsOperatorAuthzSpendPeriod: Duration | undefined;
|
|
143
179
|
}
|
|
144
180
|
export interface MsgCreatePermissionResponse {
|
|
145
181
|
id: number;
|
|
@@ -240,21 +276,21 @@ export declare const MsgCreateRootPermissionResponse: {
|
|
|
240
276
|
create<I extends Exact<DeepPartial<MsgCreateRootPermissionResponse>, I>>(base?: I): MsgCreateRootPermissionResponse;
|
|
241
277
|
fromPartial<I extends Exact<DeepPartial<MsgCreateRootPermissionResponse>, I>>(object: I): MsgCreateRootPermissionResponse;
|
|
242
278
|
};
|
|
243
|
-
export declare const
|
|
244
|
-
encode(message:
|
|
245
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
246
|
-
fromJSON(object: any):
|
|
247
|
-
toJSON(message:
|
|
248
|
-
create<I extends Exact<DeepPartial<
|
|
249
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
279
|
+
export declare const MsgAdjustPermission: {
|
|
280
|
+
encode(message: MsgAdjustPermission, writer?: _m0.Writer): _m0.Writer;
|
|
281
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgAdjustPermission;
|
|
282
|
+
fromJSON(object: any): MsgAdjustPermission;
|
|
283
|
+
toJSON(message: MsgAdjustPermission): unknown;
|
|
284
|
+
create<I extends Exact<DeepPartial<MsgAdjustPermission>, I>>(base?: I): MsgAdjustPermission;
|
|
285
|
+
fromPartial<I extends Exact<DeepPartial<MsgAdjustPermission>, I>>(object: I): MsgAdjustPermission;
|
|
250
286
|
};
|
|
251
|
-
export declare const
|
|
252
|
-
encode(_:
|
|
253
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
254
|
-
fromJSON(_: any):
|
|
255
|
-
toJSON(_:
|
|
256
|
-
create<I extends Exact<DeepPartial<
|
|
257
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
287
|
+
export declare const MsgAdjustPermissionResponse: {
|
|
288
|
+
encode(_: MsgAdjustPermissionResponse, writer?: _m0.Writer): _m0.Writer;
|
|
289
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgAdjustPermissionResponse;
|
|
290
|
+
fromJSON(_: any): MsgAdjustPermissionResponse;
|
|
291
|
+
toJSON(_: MsgAdjustPermissionResponse): unknown;
|
|
292
|
+
create<I extends Exact<DeepPartial<MsgAdjustPermissionResponse>, I>>(base?: I): MsgAdjustPermissionResponse;
|
|
293
|
+
fromPartial<I extends Exact<DeepPartial<MsgAdjustPermissionResponse>, I>>(_: I): MsgAdjustPermissionResponse;
|
|
258
294
|
};
|
|
259
295
|
export declare const MsgRevokePermission: {
|
|
260
296
|
encode(message: MsgRevokePermission, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -352,7 +388,7 @@ export interface Msg {
|
|
|
352
388
|
*/
|
|
353
389
|
CancelPermissionVPLastRequest(request: MsgCancelPermissionVPLastRequest): Promise<MsgCancelPermissionVPLastRequestResponse>;
|
|
354
390
|
CreateRootPermission(request: MsgCreateRootPermission): Promise<MsgCreateRootPermissionResponse>;
|
|
355
|
-
|
|
391
|
+
AdjustPermission(request: MsgAdjustPermission): Promise<MsgAdjustPermissionResponse>;
|
|
356
392
|
RevokePermission(request: MsgRevokePermission): Promise<MsgRevokePermissionResponse>;
|
|
357
393
|
CreateOrUpdatePermissionSession(request: MsgCreateOrUpdatePermissionSession): Promise<MsgCreateOrUpdatePermissionSessionResponse>;
|
|
358
394
|
SlashPermissionTrustDeposit(request: MsgSlashPermissionTrustDeposit): Promise<MsgSlashPermissionTrustDepositResponse>;
|
|
@@ -372,7 +408,7 @@ export declare class MsgClientImpl implements Msg {
|
|
|
372
408
|
SetPermissionVPToValidated(request: MsgSetPermissionVPToValidated): Promise<MsgSetPermissionVPToValidatedResponse>;
|
|
373
409
|
CancelPermissionVPLastRequest(request: MsgCancelPermissionVPLastRequest): Promise<MsgCancelPermissionVPLastRequestResponse>;
|
|
374
410
|
CreateRootPermission(request: MsgCreateRootPermission): Promise<MsgCreateRootPermissionResponse>;
|
|
375
|
-
|
|
411
|
+
AdjustPermission(request: MsgAdjustPermission): Promise<MsgAdjustPermissionResponse>;
|
|
376
412
|
RevokePermission(request: MsgRevokePermission): Promise<MsgRevokePermissionResponse>;
|
|
377
413
|
CreateOrUpdatePermissionSession(request: MsgCreateOrUpdatePermissionSession): Promise<MsgCreateOrUpdatePermissionSessionResponse>;
|
|
378
414
|
SlashPermissionTrustDeposit(request: MsgSlashPermissionTrustDeposit): Promise<MsgSlashPermissionTrustDepositResponse>;
|