@degenerate/generic 0.1.9 → 0.1.11
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/dist/application/audit-log/create-application-audit-log.d.ts.map +1 -1
- package/dist/application/audit-log/create-application-audit-log.js +1 -1
- package/dist/application/database/firestore/generics/add-items-to-database.d.ts.map +1 -1
- package/dist/application/database/firestore/generics/add-items-to-database.js +2 -2
- package/dist/application/database/firestore/generics/add-or-update-items-to-database.d.ts.map +1 -1
- package/dist/application/database/firestore/generics/add-or-update-items-to-database.js +3 -3
- package/dist/application/database/firestore/generics/delete-items-on-database.d.ts.map +1 -1
- package/dist/application/database/firestore/generics/delete-items-on-database.js +2 -2
- package/dist/application/database/firestore/generics/get-item-from-database.d.ts.map +1 -1
- package/dist/application/database/firestore/generics/get-item-from-database.js +2 -2
- package/dist/application/database/firestore/generics/get-items-different-path-on-database.d.ts.map +1 -1
- package/dist/application/database/firestore/generics/get-items-different-path-on-database.js +2 -2
- package/dist/application/database/firestore/generics/get-items-from-database.d.ts.map +1 -1
- package/dist/application/database/firestore/generics/get-items-from-database.js +2 -2
- package/dist/application/database/firestore/generics/update-items-on-database.d.ts.map +1 -1
- package/dist/application/database/firestore/generics/update-items-on-database.js +2 -2
- package/dist/application/database/firestore/generics/update-items-properties-on-database.d.ts.map +1 -1
- package/dist/application/database/firestore/generics/update-items-properties-on-database.js +2 -2
- package/dist/authorization/jwt/sign/create-authorization-issuer.d.ts +2 -2
- package/dist/authorization/jwt/sign/create-authorization-issuer.d.ts.map +1 -1
- package/dist/authorization/jwt/sign/create-authorization-subject.d.ts +2 -2
- package/dist/authorization/jwt/sign/create-authorization-subject.d.ts.map +1 -1
- package/dist/authorization/jwt/sign/create-jwt-options.d.ts +2 -2
- package/dist/authorization/jwt/sign/create-jwt-options.d.ts.map +1 -1
- package/dist/authorization/safe/authorization/authorized-authorities.d.ts +5 -5
- package/dist/authorization/safe/authorization/authorized-authorities.d.ts.map +1 -1
- package/dist/authorization/safe/request/determine-issuer-from-request.d.ts +2 -2
- package/dist/authorization/safe/request/determine-issuer-from-request.d.ts.map +1 -1
- package/dist/authorization/safe/request/issuer/determine-issuer-from-bearer-token.d.ts +2 -2
- package/dist/authorization/safe/request/issuer/determine-issuer-from-bearer-token.d.ts.map +1 -1
- package/dist/authorization/safe/validation/jwt/payload/verify-authorization-issuer.d.ts +2 -2
- package/dist/authorization/safe/validation/jwt/payload/verify-authorization-issuer.d.ts.map +1 -1
- package/dist/authorization/safe/validation/jwt/payload/verify-authorization-subject.d.ts +2 -2
- package/dist/authorization/safe/validation/jwt/payload/verify-authorization-subject.d.ts.map +1 -1
- package/dist/helpers/request/params-object-helpers.d.ts +7 -1
- package/dist/helpers/request/params-object-helpers.d.ts.map +1 -1
- package/dist/helpers/request/params-object-helpers.js +10 -1
- package/dist/helpers/request/request-object-helpers.d.ts +16 -1
- package/dist/helpers/request/request-object-helpers.d.ts.map +1 -1
- package/dist/helpers/request/request-object-helpers.js +25 -2
- package/dist/models/application/audit-log/application-audit-log-models.d.ts +144 -60
- package/dist/models/application/audit-log/application-audit-log-models.d.ts.map +1 -1
- package/dist/models/application/audit-log/application-audit-log-models.js +87 -41
- package/dist/models/application/database/firestore-models.d.ts +370 -54
- package/dist/models/application/database/firestore-models.d.ts.map +1 -1
- package/dist/models/application/database/firestore-models.js +119 -1
- package/dist/models/authorization/authorization-models.d.ts +76 -33
- package/dist/models/authorization/authorization-models.d.ts.map +1 -1
- package/dist/models/authorization/authorization-models.js +82 -12
- package/dist/models/crypto/crypto-models.d.ts +10 -2
- package/dist/models/crypto/crypto-models.d.ts.map +1 -1
- package/dist/models/crypto/crypto-models.js +6 -0
- package/dist/models/data/data-models.d.ts +18 -5
- package/dist/models/data/data-models.d.ts.map +1 -1
- package/dist/models/data/data-models.js +24 -1
- package/dist/models/dynamic-execution/dynamic-execution-models.d.ts +13 -3
- package/dist/models/dynamic-execution/dynamic-execution-models.d.ts.map +1 -1
- package/dist/models/dynamic-execution/dynamic-execution-models.js +10 -0
- package/dist/models/events/share-event-models.d.ts +145 -24
- package/dist/models/events/share-event-models.d.ts.map +1 -1
- package/dist/models/events/share-event-models.js +53 -2
- package/dist/models/functions/share-data-function-models.d.ts +251 -32
- package/dist/models/functions/share-data-function-models.d.ts.map +1 -1
- package/dist/models/functions/share-data-function-models.js +100 -3
- package/dist/models/generic/request-response-models.d.ts +11 -3
- package/dist/models/generic/request-response-models.d.ts.map +1 -1
- package/dist/models/generic/request-response-models.js +9 -0
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +6 -1
- package/dist/models/safe/rules/share-rule-models.d.ts +931 -0
- package/dist/models/safe/rules/share-rule-models.d.ts.map +1 -0
- package/dist/models/safe/rules/share-rule-models.js +341 -0
- package/dist/models/safe/safe-transaction-models.d.ts +137 -20
- package/dist/models/safe/safe-transaction-models.d.ts.map +1 -1
- package/dist/models/safe/safe-transaction-models.js +88 -3
- package/dist/models/safe/transactions/authorities-transactions-models.d.ts +391 -0
- package/dist/models/safe/transactions/authorities-transactions-models.d.ts.map +1 -0
- package/dist/models/safe/transactions/authorities-transactions-models.js +56 -0
- package/dist/models/share-data/share-data.d.ts +144 -23
- package/dist/models/share-data/share-data.d.ts.map +1 -1
- package/dist/models/share-data/share-data.js +66 -1
- package/dist/transactions/authority/create-safe-transaction-authority-data.d.ts +14 -0
- package/dist/transactions/authority/create-safe-transaction-authority-data.d.ts.map +1 -0
- package/dist/transactions/authority/create-safe-transaction-authority-data.js +21 -0
- package/dist/transactions/authority/create-safe-transaction-authority.d.ts +15 -0
- package/dist/transactions/authority/create-safe-transaction-authority.d.ts.map +1 -0
- package/dist/transactions/authority/create-safe-transaction-authority.js +29 -0
- package/dist/transactions/index.d.ts +3 -0
- package/dist/transactions/index.d.ts.map +1 -0
- package/dist/transactions/index.js +20 -0
- package/package.json +2 -2
- package/dist/models/rules/share-rule-models.d.ts +0 -303
- package/dist/models/rules/share-rule-models.d.ts.map +0 -1
- package/dist/models/rules/share-rule-models.js +0 -93
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* This is the transaction targetting an authority in the SAFE Ecosystem.
|
|
4
|
+
*
|
|
5
|
+
const sampleTransactionAuthority: ISAFETransactionAuthority = {
|
|
6
|
+
createdAt: Date.now(),
|
|
7
|
+
authority: '0xAuthorityPublicKey',
|
|
8
|
+
authoritySignature: '0xAuthoritySignature',
|
|
9
|
+
transaction: {
|
|
10
|
+
type: SAFETransactionType.AUTHORITY,
|
|
11
|
+
action: SAFETransactionActionType.CREATE,
|
|
12
|
+
data: {
|
|
13
|
+
authorizationIssuer: 'exampleIssuer-12345678' as AuthorizationIssuer,
|
|
14
|
+
authorizationPublicKey: '0xAuthorizationPublicKey',
|
|
15
|
+
authorityValidationType: AuthorityValidationType.JWT,
|
|
16
|
+
authorityOver: [SAFETransactionType.SHAREDATA, SAFETransactionType.FUNCTIONS],
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
version: 1,
|
|
20
|
+
};
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* This is the schema for the authority transaction add.
|
|
24
|
+
*/
|
|
25
|
+
export declare const ISAFETransactionAuthorityAddSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
26
|
+
createdAt: z.ZodNumber;
|
|
27
|
+
authority: z.ZodString;
|
|
28
|
+
authoritySignature: z.ZodString;
|
|
29
|
+
transaction: z.ZodObject<{
|
|
30
|
+
type: z.ZodEnum<["AUTHORITY", "SHAREDATA", "FUNCTIONS", "RULES", "EVENTS", "ENDPOINTS"]>;
|
|
31
|
+
action: z.ZodEnum<["ADD", "DELETE", "UPDATE"]>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
type: "SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY";
|
|
34
|
+
action: "ADD" | "DELETE" | "UPDATE";
|
|
35
|
+
}, {
|
|
36
|
+
type: "SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY";
|
|
37
|
+
action: "ADD" | "DELETE" | "UPDATE";
|
|
38
|
+
}>;
|
|
39
|
+
version: z.ZodNumber;
|
|
40
|
+
}, {
|
|
41
|
+
transaction: z.ZodObject<{
|
|
42
|
+
type: z.ZodLiteral<import("../safe-transaction-models").SAFETransactionType.AUTHORITY>;
|
|
43
|
+
action: z.ZodEnum<["ADD", "DELETE", "UPDATE"]>;
|
|
44
|
+
data: z.ZodObject<{
|
|
45
|
+
authorizationIssuer: z.ZodString;
|
|
46
|
+
authorizationPublicKey: z.ZodString;
|
|
47
|
+
authorityValidationType: z.ZodEnum<["JWT"]>;
|
|
48
|
+
authorityOver: z.ZodArray<z.ZodEnum<["AUTHORITY", "SHAREDATA", "FUNCTIONS", "RULES", "EVENTS", "ENDPOINTS"]>, "many">;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
authorizationIssuer: string;
|
|
51
|
+
authorizationPublicKey: string;
|
|
52
|
+
authorityValidationType: "JWT";
|
|
53
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
54
|
+
}, {
|
|
55
|
+
authorizationIssuer: string;
|
|
56
|
+
authorizationPublicKey: string;
|
|
57
|
+
authorityValidationType: "JWT";
|
|
58
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
59
|
+
}>;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
type: import("../safe-transaction-models").SAFETransactionType.AUTHORITY;
|
|
62
|
+
action: "ADD" | "DELETE" | "UPDATE";
|
|
63
|
+
data: {
|
|
64
|
+
authorizationIssuer: string;
|
|
65
|
+
authorizationPublicKey: string;
|
|
66
|
+
authorityValidationType: "JWT";
|
|
67
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
68
|
+
};
|
|
69
|
+
}, {
|
|
70
|
+
type: import("../safe-transaction-models").SAFETransactionType.AUTHORITY;
|
|
71
|
+
action: "ADD" | "DELETE" | "UPDATE";
|
|
72
|
+
data: {
|
|
73
|
+
authorizationIssuer: string;
|
|
74
|
+
authorizationPublicKey: string;
|
|
75
|
+
authorityValidationType: "JWT";
|
|
76
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
77
|
+
};
|
|
78
|
+
}>;
|
|
79
|
+
}>, {
|
|
80
|
+
transaction: z.ZodObject<{
|
|
81
|
+
action: z.ZodLiteral<"ADD">;
|
|
82
|
+
data: z.ZodObject<{
|
|
83
|
+
authorizationIssuer: z.ZodString;
|
|
84
|
+
authorizationPublicKey: z.ZodString;
|
|
85
|
+
authorityValidationType: z.ZodEnum<["JWT"]>;
|
|
86
|
+
authorityOver: z.ZodArray<z.ZodEnum<["AUTHORITY", "SHAREDATA", "FUNCTIONS", "RULES", "EVENTS", "ENDPOINTS"]>, "many">;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
authorizationIssuer: string;
|
|
89
|
+
authorizationPublicKey: string;
|
|
90
|
+
authorityValidationType: "JWT";
|
|
91
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
92
|
+
}, {
|
|
93
|
+
authorizationIssuer: string;
|
|
94
|
+
authorizationPublicKey: string;
|
|
95
|
+
authorityValidationType: "JWT";
|
|
96
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
97
|
+
}>;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
action: "ADD";
|
|
100
|
+
data: {
|
|
101
|
+
authorizationIssuer: string;
|
|
102
|
+
authorizationPublicKey: string;
|
|
103
|
+
authorityValidationType: "JWT";
|
|
104
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
105
|
+
};
|
|
106
|
+
}, {
|
|
107
|
+
action: "ADD";
|
|
108
|
+
data: {
|
|
109
|
+
authorizationIssuer: string;
|
|
110
|
+
authorizationPublicKey: string;
|
|
111
|
+
authorityValidationType: "JWT";
|
|
112
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
113
|
+
};
|
|
114
|
+
}>;
|
|
115
|
+
}>, "strip", z.ZodTypeAny, {
|
|
116
|
+
createdAt: number;
|
|
117
|
+
version: number;
|
|
118
|
+
authority: string;
|
|
119
|
+
authoritySignature: string;
|
|
120
|
+
transaction: {
|
|
121
|
+
action: "ADD";
|
|
122
|
+
data: {
|
|
123
|
+
authorizationIssuer: string;
|
|
124
|
+
authorizationPublicKey: string;
|
|
125
|
+
authorityValidationType: "JWT";
|
|
126
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
}, {
|
|
130
|
+
createdAt: number;
|
|
131
|
+
version: number;
|
|
132
|
+
authority: string;
|
|
133
|
+
authoritySignature: string;
|
|
134
|
+
transaction: {
|
|
135
|
+
action: "ADD";
|
|
136
|
+
data: {
|
|
137
|
+
authorizationIssuer: string;
|
|
138
|
+
authorizationPublicKey: string;
|
|
139
|
+
authorityValidationType: "JWT";
|
|
140
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
}>;
|
|
144
|
+
export type ISAFETransactionAuthorityAdd = z.infer<typeof ISAFETransactionAuthorityAddSchema>;
|
|
145
|
+
/**
|
|
146
|
+
* This is the schema for the authority transaction update.
|
|
147
|
+
*/
|
|
148
|
+
export declare const ISAFETransactionAuthorityUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
149
|
+
createdAt: z.ZodNumber;
|
|
150
|
+
authority: z.ZodString;
|
|
151
|
+
authoritySignature: z.ZodString;
|
|
152
|
+
transaction: z.ZodObject<{
|
|
153
|
+
type: z.ZodEnum<["AUTHORITY", "SHAREDATA", "FUNCTIONS", "RULES", "EVENTS", "ENDPOINTS"]>;
|
|
154
|
+
action: z.ZodEnum<["ADD", "DELETE", "UPDATE"]>;
|
|
155
|
+
}, "strip", z.ZodTypeAny, {
|
|
156
|
+
type: "SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY";
|
|
157
|
+
action: "ADD" | "DELETE" | "UPDATE";
|
|
158
|
+
}, {
|
|
159
|
+
type: "SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY";
|
|
160
|
+
action: "ADD" | "DELETE" | "UPDATE";
|
|
161
|
+
}>;
|
|
162
|
+
version: z.ZodNumber;
|
|
163
|
+
}, {
|
|
164
|
+
transaction: z.ZodObject<{
|
|
165
|
+
type: z.ZodLiteral<import("../safe-transaction-models").SAFETransactionType.AUTHORITY>;
|
|
166
|
+
action: z.ZodEnum<["ADD", "DELETE", "UPDATE"]>;
|
|
167
|
+
data: z.ZodObject<{
|
|
168
|
+
authorizationIssuer: z.ZodString;
|
|
169
|
+
authorizationPublicKey: z.ZodString;
|
|
170
|
+
authorityValidationType: z.ZodEnum<["JWT"]>;
|
|
171
|
+
authorityOver: z.ZodArray<z.ZodEnum<["AUTHORITY", "SHAREDATA", "FUNCTIONS", "RULES", "EVENTS", "ENDPOINTS"]>, "many">;
|
|
172
|
+
}, "strip", z.ZodTypeAny, {
|
|
173
|
+
authorizationIssuer: string;
|
|
174
|
+
authorizationPublicKey: string;
|
|
175
|
+
authorityValidationType: "JWT";
|
|
176
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
177
|
+
}, {
|
|
178
|
+
authorizationIssuer: string;
|
|
179
|
+
authorizationPublicKey: string;
|
|
180
|
+
authorityValidationType: "JWT";
|
|
181
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
182
|
+
}>;
|
|
183
|
+
}, "strip", z.ZodTypeAny, {
|
|
184
|
+
type: import("../safe-transaction-models").SAFETransactionType.AUTHORITY;
|
|
185
|
+
action: "ADD" | "DELETE" | "UPDATE";
|
|
186
|
+
data: {
|
|
187
|
+
authorizationIssuer: string;
|
|
188
|
+
authorizationPublicKey: string;
|
|
189
|
+
authorityValidationType: "JWT";
|
|
190
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
191
|
+
};
|
|
192
|
+
}, {
|
|
193
|
+
type: import("../safe-transaction-models").SAFETransactionType.AUTHORITY;
|
|
194
|
+
action: "ADD" | "DELETE" | "UPDATE";
|
|
195
|
+
data: {
|
|
196
|
+
authorizationIssuer: string;
|
|
197
|
+
authorizationPublicKey: string;
|
|
198
|
+
authorityValidationType: "JWT";
|
|
199
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
200
|
+
};
|
|
201
|
+
}>;
|
|
202
|
+
}>, {
|
|
203
|
+
transaction: z.ZodObject<{
|
|
204
|
+
action: z.ZodLiteral<"UPDATE">;
|
|
205
|
+
data: z.ZodObject<{
|
|
206
|
+
authorizationIssuer: z.ZodString;
|
|
207
|
+
authorizationPublicKey: z.ZodString;
|
|
208
|
+
authorityValidationType: z.ZodEnum<["JWT"]>;
|
|
209
|
+
authorityOver: z.ZodArray<z.ZodEnum<["AUTHORITY", "SHAREDATA", "FUNCTIONS", "RULES", "EVENTS", "ENDPOINTS"]>, "many">;
|
|
210
|
+
}, "strip", z.ZodTypeAny, {
|
|
211
|
+
authorizationIssuer: string;
|
|
212
|
+
authorizationPublicKey: string;
|
|
213
|
+
authorityValidationType: "JWT";
|
|
214
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
215
|
+
}, {
|
|
216
|
+
authorizationIssuer: string;
|
|
217
|
+
authorizationPublicKey: string;
|
|
218
|
+
authorityValidationType: "JWT";
|
|
219
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
220
|
+
}>;
|
|
221
|
+
}, "strip", z.ZodTypeAny, {
|
|
222
|
+
action: "UPDATE";
|
|
223
|
+
data: {
|
|
224
|
+
authorizationIssuer: string;
|
|
225
|
+
authorizationPublicKey: string;
|
|
226
|
+
authorityValidationType: "JWT";
|
|
227
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
228
|
+
};
|
|
229
|
+
}, {
|
|
230
|
+
action: "UPDATE";
|
|
231
|
+
data: {
|
|
232
|
+
authorizationIssuer: string;
|
|
233
|
+
authorizationPublicKey: string;
|
|
234
|
+
authorityValidationType: "JWT";
|
|
235
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
236
|
+
};
|
|
237
|
+
}>;
|
|
238
|
+
}>, "strip", z.ZodTypeAny, {
|
|
239
|
+
createdAt: number;
|
|
240
|
+
version: number;
|
|
241
|
+
authority: string;
|
|
242
|
+
authoritySignature: string;
|
|
243
|
+
transaction: {
|
|
244
|
+
action: "UPDATE";
|
|
245
|
+
data: {
|
|
246
|
+
authorizationIssuer: string;
|
|
247
|
+
authorizationPublicKey: string;
|
|
248
|
+
authorityValidationType: "JWT";
|
|
249
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
}, {
|
|
253
|
+
createdAt: number;
|
|
254
|
+
version: number;
|
|
255
|
+
authority: string;
|
|
256
|
+
authoritySignature: string;
|
|
257
|
+
transaction: {
|
|
258
|
+
action: "UPDATE";
|
|
259
|
+
data: {
|
|
260
|
+
authorizationIssuer: string;
|
|
261
|
+
authorizationPublicKey: string;
|
|
262
|
+
authorityValidationType: "JWT";
|
|
263
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
}>;
|
|
267
|
+
export type ISAFETransactionAuthorityUpdate = z.infer<typeof ISAFETransactionAuthorityUpdateSchema>;
|
|
268
|
+
/**
|
|
269
|
+
* This is the schema for the authority transaction remove.
|
|
270
|
+
*/
|
|
271
|
+
export declare const ISAFETransactionAuthorityDeleteSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
272
|
+
createdAt: z.ZodNumber;
|
|
273
|
+
authority: z.ZodString;
|
|
274
|
+
authoritySignature: z.ZodString;
|
|
275
|
+
transaction: z.ZodObject<{
|
|
276
|
+
type: z.ZodEnum<["AUTHORITY", "SHAREDATA", "FUNCTIONS", "RULES", "EVENTS", "ENDPOINTS"]>;
|
|
277
|
+
action: z.ZodEnum<["ADD", "DELETE", "UPDATE"]>;
|
|
278
|
+
}, "strip", z.ZodTypeAny, {
|
|
279
|
+
type: "SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY";
|
|
280
|
+
action: "ADD" | "DELETE" | "UPDATE";
|
|
281
|
+
}, {
|
|
282
|
+
type: "SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY";
|
|
283
|
+
action: "ADD" | "DELETE" | "UPDATE";
|
|
284
|
+
}>;
|
|
285
|
+
version: z.ZodNumber;
|
|
286
|
+
}, {
|
|
287
|
+
transaction: z.ZodObject<{
|
|
288
|
+
type: z.ZodLiteral<import("../safe-transaction-models").SAFETransactionType.AUTHORITY>;
|
|
289
|
+
action: z.ZodEnum<["ADD", "DELETE", "UPDATE"]>;
|
|
290
|
+
data: z.ZodObject<{
|
|
291
|
+
authorizationIssuer: z.ZodString;
|
|
292
|
+
authorizationPublicKey: z.ZodString;
|
|
293
|
+
authorityValidationType: z.ZodEnum<["JWT"]>;
|
|
294
|
+
authorityOver: z.ZodArray<z.ZodEnum<["AUTHORITY", "SHAREDATA", "FUNCTIONS", "RULES", "EVENTS", "ENDPOINTS"]>, "many">;
|
|
295
|
+
}, "strip", z.ZodTypeAny, {
|
|
296
|
+
authorizationIssuer: string;
|
|
297
|
+
authorizationPublicKey: string;
|
|
298
|
+
authorityValidationType: "JWT";
|
|
299
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
300
|
+
}, {
|
|
301
|
+
authorizationIssuer: string;
|
|
302
|
+
authorizationPublicKey: string;
|
|
303
|
+
authorityValidationType: "JWT";
|
|
304
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
305
|
+
}>;
|
|
306
|
+
}, "strip", z.ZodTypeAny, {
|
|
307
|
+
type: import("../safe-transaction-models").SAFETransactionType.AUTHORITY;
|
|
308
|
+
action: "ADD" | "DELETE" | "UPDATE";
|
|
309
|
+
data: {
|
|
310
|
+
authorizationIssuer: string;
|
|
311
|
+
authorizationPublicKey: string;
|
|
312
|
+
authorityValidationType: "JWT";
|
|
313
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
314
|
+
};
|
|
315
|
+
}, {
|
|
316
|
+
type: import("../safe-transaction-models").SAFETransactionType.AUTHORITY;
|
|
317
|
+
action: "ADD" | "DELETE" | "UPDATE";
|
|
318
|
+
data: {
|
|
319
|
+
authorizationIssuer: string;
|
|
320
|
+
authorizationPublicKey: string;
|
|
321
|
+
authorityValidationType: "JWT";
|
|
322
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
323
|
+
};
|
|
324
|
+
}>;
|
|
325
|
+
}>, {
|
|
326
|
+
transaction: z.ZodObject<{
|
|
327
|
+
action: z.ZodLiteral<"DELETE">;
|
|
328
|
+
data: z.ZodObject<{
|
|
329
|
+
authorizationIssuer: z.ZodString;
|
|
330
|
+
authorizationPublicKey: z.ZodString;
|
|
331
|
+
authorityValidationType: z.ZodEnum<["JWT"]>;
|
|
332
|
+
authorityOver: z.ZodArray<z.ZodEnum<["AUTHORITY", "SHAREDATA", "FUNCTIONS", "RULES", "EVENTS", "ENDPOINTS"]>, "many">;
|
|
333
|
+
}, "strip", z.ZodTypeAny, {
|
|
334
|
+
authorizationIssuer: string;
|
|
335
|
+
authorizationPublicKey: string;
|
|
336
|
+
authorityValidationType: "JWT";
|
|
337
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
338
|
+
}, {
|
|
339
|
+
authorizationIssuer: string;
|
|
340
|
+
authorizationPublicKey: string;
|
|
341
|
+
authorityValidationType: "JWT";
|
|
342
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
343
|
+
}>;
|
|
344
|
+
}, "strip", z.ZodTypeAny, {
|
|
345
|
+
action: "DELETE";
|
|
346
|
+
data: {
|
|
347
|
+
authorizationIssuer: string;
|
|
348
|
+
authorizationPublicKey: string;
|
|
349
|
+
authorityValidationType: "JWT";
|
|
350
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
351
|
+
};
|
|
352
|
+
}, {
|
|
353
|
+
action: "DELETE";
|
|
354
|
+
data: {
|
|
355
|
+
authorizationIssuer: string;
|
|
356
|
+
authorizationPublicKey: string;
|
|
357
|
+
authorityValidationType: "JWT";
|
|
358
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
359
|
+
};
|
|
360
|
+
}>;
|
|
361
|
+
}>, "strip", z.ZodTypeAny, {
|
|
362
|
+
createdAt: number;
|
|
363
|
+
version: number;
|
|
364
|
+
authority: string;
|
|
365
|
+
authoritySignature: string;
|
|
366
|
+
transaction: {
|
|
367
|
+
action: "DELETE";
|
|
368
|
+
data: {
|
|
369
|
+
authorizationIssuer: string;
|
|
370
|
+
authorizationPublicKey: string;
|
|
371
|
+
authorityValidationType: "JWT";
|
|
372
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
}, {
|
|
376
|
+
createdAt: number;
|
|
377
|
+
version: number;
|
|
378
|
+
authority: string;
|
|
379
|
+
authoritySignature: string;
|
|
380
|
+
transaction: {
|
|
381
|
+
action: "DELETE";
|
|
382
|
+
data: {
|
|
383
|
+
authorizationIssuer: string;
|
|
384
|
+
authorizationPublicKey: string;
|
|
385
|
+
authorityValidationType: "JWT";
|
|
386
|
+
authorityOver: ("SHAREDATA" | "FUNCTIONS" | "RULES" | "EVENTS" | "ENDPOINTS" | "AUTHORITY")[];
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
}>;
|
|
390
|
+
export type ISAFETransactionAuthorityDelete = z.infer<typeof ISAFETransactionAuthorityDeleteSchema>;
|
|
391
|
+
//# sourceMappingURL=authorities-transactions-models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authorities-transactions-models.d.ts","sourceRoot":"","sources":["../../../../src/models/safe/transactions/authorities-transactions-models.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAOpB;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;GAEG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK7C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F;;GAEG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKhD,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAEpG;;GAEG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKhD,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ISAFETransactionAuthorityDeleteSchema = exports.ISAFETransactionAuthorityUpdateSchema = exports.ISAFETransactionAuthorityAddSchema = void 0;
|
|
7
|
+
// This contains the schemas for the authorities transaction models
|
|
8
|
+
const zod_1 = __importDefault(require("zod"));
|
|
9
|
+
const safe_transaction_models_1 = require("../safe-transaction-models");
|
|
10
|
+
/**
|
|
11
|
+
* This is the transaction targetting an authority in the SAFE Ecosystem.
|
|
12
|
+
*
|
|
13
|
+
const sampleTransactionAuthority: ISAFETransactionAuthority = {
|
|
14
|
+
createdAt: Date.now(),
|
|
15
|
+
authority: '0xAuthorityPublicKey',
|
|
16
|
+
authoritySignature: '0xAuthoritySignature',
|
|
17
|
+
transaction: {
|
|
18
|
+
type: SAFETransactionType.AUTHORITY,
|
|
19
|
+
action: SAFETransactionActionType.CREATE,
|
|
20
|
+
data: {
|
|
21
|
+
authorizationIssuer: 'exampleIssuer-12345678' as AuthorizationIssuer,
|
|
22
|
+
authorizationPublicKey: '0xAuthorizationPublicKey',
|
|
23
|
+
authorityValidationType: AuthorityValidationType.JWT,
|
|
24
|
+
authorityOver: [SAFETransactionType.SHAREDATA, SAFETransactionType.FUNCTIONS],
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
version: 1,
|
|
28
|
+
};
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* This is the schema for the authority transaction add.
|
|
32
|
+
*/
|
|
33
|
+
exports.ISAFETransactionAuthorityAddSchema = safe_transaction_models_1.ISAFETransactionAuthoritySchema.extend({
|
|
34
|
+
transaction: zod_1.default.object({
|
|
35
|
+
action: zod_1.default.literal(safe_transaction_models_1.SAFETransactionActionTypeSchema.Enum.ADD),
|
|
36
|
+
data: safe_transaction_models_1.ISAFETransactionAuthorityDataSchema,
|
|
37
|
+
}),
|
|
38
|
+
});
|
|
39
|
+
/**
|
|
40
|
+
* This is the schema for the authority transaction update.
|
|
41
|
+
*/
|
|
42
|
+
exports.ISAFETransactionAuthorityUpdateSchema = safe_transaction_models_1.ISAFETransactionAuthoritySchema.extend({
|
|
43
|
+
transaction: zod_1.default.object({
|
|
44
|
+
action: zod_1.default.literal(safe_transaction_models_1.SAFETransactionActionTypeSchema.Enum.UPDATE),
|
|
45
|
+
data: safe_transaction_models_1.ISAFETransactionAuthorityDataSchema,
|
|
46
|
+
}),
|
|
47
|
+
});
|
|
48
|
+
/**
|
|
49
|
+
* This is the schema for the authority transaction remove.
|
|
50
|
+
*/
|
|
51
|
+
exports.ISAFETransactionAuthorityDeleteSchema = safe_transaction_models_1.ISAFETransactionAuthoritySchema.extend({
|
|
52
|
+
transaction: zod_1.default.object({
|
|
53
|
+
action: zod_1.default.literal(safe_transaction_models_1.SAFETransactionActionTypeSchema.Enum.DELETE),
|
|
54
|
+
data: safe_transaction_models_1.ISAFETransactionAuthorityDataSchema,
|
|
55
|
+
}),
|
|
56
|
+
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import z from 'zod';
|
|
1
2
|
/**
|
|
2
3
|
* This contains the data for the share data object
|
|
3
4
|
*/
|
|
@@ -8,49 +9,169 @@ export declare enum ShareDataTypes {
|
|
|
8
9
|
TRANSACTION_HISTORY = "TRANSACTION_HISTORY",
|
|
9
10
|
DATA = "DATA"
|
|
10
11
|
}
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
export declare const ShareDataTypesSchema: z.ZodEnum<["AUTHORIZATION", "RULE", "FUNCTION", "TRANSACTION_HISTORY", "DATA"]>;
|
|
13
|
+
/**
|
|
14
|
+
* This contains the interface for a data in a share data object
|
|
15
|
+
*/
|
|
16
|
+
export declare const IShareDataSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
17
|
+
export type IShareData = z.infer<typeof IShareDataSchema>;
|
|
14
18
|
/**
|
|
15
19
|
* This contains the interface for a share function record in the share data object
|
|
16
20
|
*/
|
|
17
|
-
export
|
|
21
|
+
export declare const IShareFunctionRecordSchema: z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
groupingId: z.ZodString;
|
|
24
|
+
groupingName: z.ZodString;
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
description: z.ZodString;
|
|
27
|
+
hash: z.ZodString;
|
|
28
|
+
stringifiedFunction: z.ZodString;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
stringifiedFunction: string;
|
|
18
31
|
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
description: string;
|
|
19
34
|
groupingId: string;
|
|
20
35
|
groupingName: string;
|
|
36
|
+
hash: string;
|
|
37
|
+
}, {
|
|
38
|
+
stringifiedFunction: string;
|
|
39
|
+
id: string;
|
|
21
40
|
name: string;
|
|
22
41
|
description: string;
|
|
42
|
+
groupingId: string;
|
|
43
|
+
groupingName: string;
|
|
23
44
|
hash: string;
|
|
24
|
-
|
|
25
|
-
|
|
45
|
+
}>;
|
|
46
|
+
export type IShareFunctionRecord = z.infer<typeof IShareFunctionRecordSchema>;
|
|
26
47
|
/**
|
|
27
48
|
* This contains the interface for a share function in the share data object
|
|
28
49
|
*/
|
|
29
|
-
export
|
|
30
|
-
input:
|
|
31
|
-
func:
|
|
32
|
-
output:
|
|
33
|
-
}
|
|
50
|
+
export declare const IShareFunctionSchema: z.ZodObject<{
|
|
51
|
+
input: z.ZodAny;
|
|
52
|
+
func: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>;
|
|
53
|
+
output: z.ZodAny;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
func: (...args: unknown[]) => unknown;
|
|
56
|
+
output?: any;
|
|
57
|
+
input?: any;
|
|
58
|
+
}, {
|
|
59
|
+
func: (...args: unknown[]) => unknown;
|
|
60
|
+
output?: any;
|
|
61
|
+
input?: any;
|
|
62
|
+
}>;
|
|
63
|
+
export type IShareFunction<TInput, TFunction extends (...args: any[]) => any, TOutput> = z.infer<typeof IShareFunctionSchema>;
|
|
64
|
+
/**
|
|
65
|
+
* This contains the interface for the rule failures in the share data object
|
|
66
|
+
*/
|
|
67
|
+
export declare const IShareDataRuleFailuresSchema: z.ZodObject<{
|
|
68
|
+
ruleId: z.ZodString;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
ruleId: string;
|
|
71
|
+
}, {
|
|
72
|
+
ruleId: string;
|
|
73
|
+
}>;
|
|
74
|
+
export type IShareDataRuleFailures = z.infer<typeof IShareDataRuleFailuresSchema>;
|
|
34
75
|
/**
|
|
35
76
|
* This contains the interface for the share transaction history in the share data object
|
|
36
77
|
*/
|
|
37
|
-
export
|
|
78
|
+
export declare const IShareDataTransactionBaseSchema: z.ZodObject<{
|
|
79
|
+
ruleOutcome: z.ZodBoolean;
|
|
80
|
+
ruleFailures: z.ZodArray<z.ZodObject<{
|
|
81
|
+
ruleId: z.ZodString;
|
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
|
83
|
+
ruleId: string;
|
|
84
|
+
}, {
|
|
85
|
+
ruleId: string;
|
|
86
|
+
}>, "many">;
|
|
87
|
+
transactionFunction: z.ZodObject<{
|
|
88
|
+
input: z.ZodAny;
|
|
89
|
+
func: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>;
|
|
90
|
+
output: z.ZodAny;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
func: (...args: unknown[]) => unknown;
|
|
93
|
+
output?: any;
|
|
94
|
+
input?: any;
|
|
95
|
+
}, {
|
|
96
|
+
func: (...args: unknown[]) => unknown;
|
|
97
|
+
output?: any;
|
|
98
|
+
input?: any;
|
|
99
|
+
}>;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
101
|
ruleOutcome: boolean;
|
|
39
|
-
ruleFailures:
|
|
40
|
-
|
|
41
|
-
}
|
|
102
|
+
ruleFailures: {
|
|
103
|
+
ruleId: string;
|
|
104
|
+
}[];
|
|
105
|
+
transactionFunction: {
|
|
106
|
+
func: (...args: unknown[]) => unknown;
|
|
107
|
+
output?: any;
|
|
108
|
+
input?: any;
|
|
109
|
+
};
|
|
110
|
+
}, {
|
|
111
|
+
ruleOutcome: boolean;
|
|
112
|
+
ruleFailures: {
|
|
113
|
+
ruleId: string;
|
|
114
|
+
}[];
|
|
115
|
+
transactionFunction: {
|
|
116
|
+
func: (...args: unknown[]) => unknown;
|
|
117
|
+
output?: any;
|
|
118
|
+
input?: any;
|
|
119
|
+
};
|
|
120
|
+
}>;
|
|
121
|
+
export type IShareDataTransactionBase = z.infer<typeof IShareDataTransactionBaseSchema>;
|
|
42
122
|
/**
|
|
43
123
|
* This contains the interface for the share transaction history in the share data object
|
|
44
124
|
* This is done for storage
|
|
45
125
|
*/
|
|
46
|
-
export
|
|
126
|
+
export declare const IShareDataTransactionHistorySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
127
|
+
ruleOutcome: z.ZodBoolean;
|
|
128
|
+
ruleFailures: z.ZodArray<z.ZodObject<{
|
|
129
|
+
ruleId: z.ZodString;
|
|
130
|
+
}, "strip", z.ZodTypeAny, {
|
|
131
|
+
ruleId: string;
|
|
132
|
+
}, {
|
|
133
|
+
ruleId: string;
|
|
134
|
+
}>, "many">;
|
|
135
|
+
transactionFunction: z.ZodObject<{
|
|
136
|
+
input: z.ZodAny;
|
|
137
|
+
func: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>;
|
|
138
|
+
output: z.ZodAny;
|
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
|
140
|
+
func: (...args: unknown[]) => unknown;
|
|
141
|
+
output?: any;
|
|
142
|
+
input?: any;
|
|
143
|
+
}, {
|
|
144
|
+
func: (...args: unknown[]) => unknown;
|
|
145
|
+
output?: any;
|
|
146
|
+
input?: any;
|
|
147
|
+
}>;
|
|
148
|
+
}, {
|
|
149
|
+
transactionId: z.ZodString;
|
|
150
|
+
transactionTime: z.ZodNumber;
|
|
151
|
+
}>, "strip", z.ZodTypeAny, {
|
|
152
|
+
ruleOutcome: boolean;
|
|
153
|
+
ruleFailures: {
|
|
154
|
+
ruleId: string;
|
|
155
|
+
}[];
|
|
156
|
+
transactionFunction: {
|
|
157
|
+
func: (...args: unknown[]) => unknown;
|
|
158
|
+
output?: any;
|
|
159
|
+
input?: any;
|
|
160
|
+
};
|
|
47
161
|
transactionId: string;
|
|
48
162
|
transactionTime: number;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
163
|
+
}, {
|
|
164
|
+
ruleOutcome: boolean;
|
|
165
|
+
ruleFailures: {
|
|
166
|
+
ruleId: string;
|
|
167
|
+
}[];
|
|
168
|
+
transactionFunction: {
|
|
169
|
+
func: (...args: unknown[]) => unknown;
|
|
170
|
+
output?: any;
|
|
171
|
+
input?: any;
|
|
172
|
+
};
|
|
173
|
+
transactionId: string;
|
|
174
|
+
transactionTime: number;
|
|
175
|
+
}>;
|
|
176
|
+
export type IShareDataTransactionHistory = z.infer<typeof IShareDataTransactionHistorySchema>;
|
|
56
177
|
//# sourceMappingURL=share-data.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"share-data.d.ts","sourceRoot":"","sources":["../../../src/models/share-data/share-data.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"share-data.d.ts","sourceRoot":"","sources":["../../../src/models/share-data/share-data.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB;;GAEG;AACH,oBAAY,cAAc;IACtB,aAAa,kBAAkB;IAC/B,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,mBAAmB,wBAAwB;IAC3C,IAAI,SAAS;CAChB;AAED,eAAO,MAAM,oBAAoB,iFAM/B,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,gBAAgB,oCAAoB,CAAC;AAClD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;EAQrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;AAEH,MAAM,MAAM,cAAc,CAAC,MAAM,EAAE,SAAS,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,OAAO,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAQ9H;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;EAEvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF;;;GAGG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG7C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC"}
|