@sleet-js/neardata-types 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +42 -0
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.js +4 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/interface/block_response.d.ts +47 -0
  7. package/dist/interface/block_response.js +3 -0
  8. package/dist/interface/block_response.js.map +1 -0
  9. package/dist/interface/block_response_block_chunks.d.ts +22 -0
  10. package/dist/interface/block_response_block_chunks.js +5 -0
  11. package/dist/interface/block_response_block_chunks.js.map +1 -0
  12. package/dist/interface/block_response_shards.d.ts +62 -0
  13. package/dist/interface/block_response_shards.js +3 -0
  14. package/dist/interface/block_response_shards.js.map +1 -0
  15. package/dist/interface/index.d.ts +11 -0
  16. package/dist/interface/index.js +3 -0
  17. package/dist/interface/index.js.map +1 -0
  18. package/dist/interface/receipts.d.ts +36 -0
  19. package/dist/interface/receipts.js +3 -0
  20. package/dist/interface/receipts.js.map +1 -0
  21. package/dist/interface/transactions.d.ts +29 -0
  22. package/dist/interface/transactions.js +3 -0
  23. package/dist/interface/transactions.js.map +1 -0
  24. package/dist/interface/transactions_actions_AddKey.d.ts +12 -0
  25. package/dist/interface/transactions_actions_AddKey.js +5 -0
  26. package/dist/interface/transactions_actions_AddKey.js.map +1 -0
  27. package/dist/interface/transactions_actions_CreateAccount.d.ts +2 -0
  28. package/dist/interface/transactions_actions_CreateAccount.js +11 -0
  29. package/dist/interface/transactions_actions_CreateAccount.js.map +1 -0
  30. package/dist/interface/transactions_actions_Delegate.d.ts +22 -0
  31. package/dist/interface/transactions_actions_Delegate.js +3 -0
  32. package/dist/interface/transactions_actions_Delegate.js.map +1 -0
  33. package/dist/interface/transactions_actions_DeleteAccount.d.ts +3 -0
  34. package/dist/interface/transactions_actions_DeleteAccount.js +5 -0
  35. package/dist/interface/transactions_actions_DeleteAccount.js.map +1 -0
  36. package/dist/interface/transactions_actions_FunctionCall.d.ts +6 -0
  37. package/dist/interface/transactions_actions_FunctionCall.js +5 -0
  38. package/dist/interface/transactions_actions_FunctionCall.js.map +1 -0
  39. package/dist/interface/transactions_actions_Transfer.d.ts +3 -0
  40. package/dist/interface/transactions_actions_Transfer.js +5 -0
  41. package/dist/interface/transactions_actions_Transfer.js.map +1 -0
  42. package/dist/interface/transactions_outcome_interface.d.ts +41 -0
  43. package/dist/interface/transactions_outcome_interface.js +3 -0
  44. package/dist/interface/transactions_outcome_interface.js.map +1 -0
  45. package/dist/zod/block_response.d.ts +508 -0
  46. package/dist/zod/block_response.js +56 -0
  47. package/dist/zod/block_response.js.map +1 -0
  48. package/dist/zod/block_response_block_chunks.d.ts +23 -0
  49. package/dist/zod/block_response_block_chunks.js +28 -0
  50. package/dist/zod/block_response_block_chunks.js.map +1 -0
  51. package/dist/zod/block_response_shards.d.ts +603 -0
  52. package/dist/zod/block_response_shards.js +73 -0
  53. package/dist/zod/block_response_shards.js.map +1 -0
  54. package/dist/zod/index.d.ts +11 -0
  55. package/dist/zod/index.js +21 -0
  56. package/dist/zod/index.js.map +1 -0
  57. package/dist/zod/receipts.d.ts +367 -0
  58. package/dist/zod/receipts.js +52 -0
  59. package/dist/zod/receipts.js.map +1 -0
  60. package/dist/zod/transactions.d.ts +240 -0
  61. package/dist/zod/transactions.js +42 -0
  62. package/dist/zod/transactions.js.map +1 -0
  63. package/dist/zod/transactions_actions_AddKey.d.ts +13 -0
  64. package/dist/zod/transactions_actions_AddKey.js +21 -0
  65. package/dist/zod/transactions_actions_AddKey.js.map +1 -0
  66. package/dist/zod/transactions_actions_CreateAccount.d.ts +2 -0
  67. package/dist/zod/transactions_actions_CreateAccount.js +7 -0
  68. package/dist/zod/transactions_actions_CreateAccount.js.map +1 -0
  69. package/dist/zod/transactions_actions_Delegate.d.ts +59 -0
  70. package/dist/zod/transactions_actions_Delegate.js +31 -0
  71. package/dist/zod/transactions_actions_Delegate.js.map +1 -0
  72. package/dist/zod/transactions_actions_DeleteAccount.d.ts +4 -0
  73. package/dist/zod/transactions_actions_DeleteAccount.js +9 -0
  74. package/dist/zod/transactions_actions_DeleteAccount.js.map +1 -0
  75. package/dist/zod/transactions_actions_FunctionCall.d.ts +7 -0
  76. package/dist/zod/transactions_actions_FunctionCall.js +12 -0
  77. package/dist/zod/transactions_actions_FunctionCall.js.map +1 -0
  78. package/dist/zod/transactions_actions_Transfer.d.ts +4 -0
  79. package/dist/zod/transactions_actions_Transfer.js +9 -0
  80. package/dist/zod/transactions_actions_Transfer.js.map +1 -0
  81. package/dist/zod/transactions_outcome_interface.d.ts +120 -0
  82. package/dist/zod/transactions_outcome_interface.js +55 -0
  83. package/dist/zod/transactions_outcome_interface.js.map +1 -0
  84. package/package.json +41 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block_response_shards.js","sourceRoot":"","sources":["../../src/zod/block_response_shards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,OAAO,EAAE,uCAAuC,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EACL,kCAAkC,EAClC,oDAAoD,GACrD,MAAM,YAAY,CAAC;AAEpB,qCAAqC;AACrC,qCAAqC;AAErC,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,sCAAsC,CAAC;IAC3D,0BAA0B,EAAE,CAAC,CAAC,KAAK,CACjC,oDAAoD,CACrD;IACD,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,uCAAuC,CAAC,CAAC;CAC9E,CAA+C,CAAC;AAEjD,2CAA2C;AAC3C,4CAA4C;AAE5C,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC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block_response_block_chunks.ts";
3
+ export * from "./block_response_shards.ts";
4
+ export * from "./receipts.ts";
5
+ export * from "./transactions.ts";
6
+ export * from "./transactions_actions_AddKey.ts";
7
+ export * from "./transactions_actions_CreateAccount.ts";
8
+ export * from "./transactions_actions_Delegate.ts";
9
+ export * from "./transactions_actions_DeleteAccount.ts";
10
+ export * from "./transactions_actions_FunctionCall.ts";
11
+ export * from "./transactions_actions_Transfer.ts";
@@ -0,0 +1,21 @@
1
+ // Index file that re-exports all NEAR Zod schemas
2
+ // This provides a single entry point for importing Zod schemas
3
+ // ==============================================
4
+ // Re-export all block-related Zod schemas
5
+ // master 🟨 neardata_block_response_interface
6
+ export * from "./block_response.js";
7
+ // other
8
+ export * from "./block_response_block_chunks.js";
9
+ export * from "./block_response_shards.js";
10
+ export * from "./receipts.js";
11
+ // transactions
12
+ export * from "./transactions.js";
13
+ export * from "./transactions_actions_AddKey.js";
14
+ export * from "./transactions_actions_CreateAccount.js";
15
+ export * from "./transactions_actions_Delegate.js";
16
+ export * from "./transactions_actions_DeleteAccount.js";
17
+ export * from "./transactions_actions_FunctionCall.js";
18
+ export * from "./transactions_actions_Transfer.js";
19
+ // ==============================================
20
+ // copyright 2025 by sleet.near
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/zod/index.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,+DAA+D;AAC/D,iDAAiD;AACjD,0CAA0C;AAC1C,8CAA8C;AAC9C,cAAc,qBAAqB,CAAC;AACpC,QAAQ;AACR,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,eAAe;AACf,cAAc,mBAAmB,CAAC;AAClC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yCAAyC,CAAC;AACxD,cAAc,oCAAoC,CAAC;AACnD,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,iDAAiD;AACjD,+BAA+B"}
@@ -0,0 +1,367 @@
1
+ import { z } from "zod";
2
+ export declare const neardata_receipt_interface_z_const: z.ZodObject<{
3
+ predecessor_id: z.ZodString;
4
+ receiver_id: z.ZodString;
5
+ receipt_id: z.ZodString;
6
+ receipt: z.ZodLazy<z.ZodObject<{
7
+ Action: z.ZodOptional<z.ZodLazy<z.ZodObject<{
8
+ signer_id: z.ZodString;
9
+ signer_public_key: z.ZodString;
10
+ gas_price: z.ZodString;
11
+ output_data_receivers: z.ZodArray<z.ZodLazy<z.ZodObject<{
12
+ data_id: z.ZodString;
13
+ receiver_id: z.ZodString;
14
+ }, z.core.$strip>>>;
15
+ input_data_ids: z.ZodArray<z.ZodString>;
16
+ actions: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodLiteral<"DeleteAccount">, z.ZodObject<{
17
+ CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
18
+ DeleteAccount: z.ZodOptional<z.ZodObject<{
19
+ beneficiary_id: z.ZodString;
20
+ }, z.core.$strip>>;
21
+ AddKey: z.ZodOptional<z.ZodObject<{
22
+ public_key: z.ZodString;
23
+ access_key: z.ZodObject<{
24
+ nonce: z.ZodNumber;
25
+ permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
26
+ permission_kind: z.ZodString;
27
+ allowance: z.ZodOptional<z.ZodString>;
28
+ receiver_id: z.ZodOptional<z.ZodString>;
29
+ method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
30
+ }, z.core.$strip>]>;
31
+ }, z.core.$strip>;
32
+ }, z.core.$strip>>;
33
+ FunctionCall: z.ZodOptional<z.ZodObject<{
34
+ method_name: z.ZodString;
35
+ args: z.ZodString;
36
+ gas: z.ZodNumber;
37
+ deposit: z.ZodString;
38
+ }, z.core.$strip>>;
39
+ Transfer: z.ZodOptional<z.ZodObject<{
40
+ deposit: z.ZodString;
41
+ }, z.core.$strip>>;
42
+ Delegate: z.ZodOptional<z.ZodObject<{
43
+ delegate_action: z.ZodObject<{
44
+ sender_id: z.ZodString;
45
+ receiver_id: z.ZodString;
46
+ actions: z.ZodArray<z.ZodObject<{
47
+ CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
48
+ AddKey: z.ZodOptional<z.ZodObject<{
49
+ public_key: z.ZodString;
50
+ access_key: z.ZodObject<{
51
+ nonce: z.ZodNumber;
52
+ permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
53
+ permission_kind: z.ZodString;
54
+ allowance: z.ZodOptional<z.ZodString>;
55
+ receiver_id: z.ZodOptional<z.ZodString>;
56
+ method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
57
+ }, z.core.$strip>]>;
58
+ }, z.core.$strip>;
59
+ }, z.core.$strip>>;
60
+ FunctionCall: z.ZodOptional<z.ZodObject<{
61
+ method_name: z.ZodString;
62
+ args: z.ZodString;
63
+ gas: z.ZodNumber;
64
+ deposit: z.ZodString;
65
+ }, z.core.$strip>>;
66
+ Transfer: z.ZodOptional<z.ZodObject<{
67
+ deposit: z.ZodString;
68
+ }, z.core.$strip>>;
69
+ }, z.core.$catchall<z.ZodAny>>>;
70
+ nonce: z.ZodNumber;
71
+ max_block_height: z.ZodNumber;
72
+ public_key: z.ZodString;
73
+ }, z.core.$strip>;
74
+ signature: z.ZodString;
75
+ }, z.core.$strip>>;
76
+ }, z.core.$catchall<z.ZodAny>>]>>;
77
+ is_promise_yield: z.ZodBoolean;
78
+ }, z.core.$strip>>>;
79
+ Data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
80
+ data_id: z.ZodString;
81
+ data: z.ZodNullable<z.ZodString>;
82
+ is_promise_resume: z.ZodBoolean;
83
+ }, z.core.$strip>>>;
84
+ }, z.core.$strip>>;
85
+ priority: z.ZodNumber;
86
+ }, z.core.$strip>;
87
+ export declare const neardata_receipt_kind_interface_z_const: z.ZodObject<{
88
+ Action: z.ZodOptional<z.ZodLazy<z.ZodObject<{
89
+ signer_id: z.ZodString;
90
+ signer_public_key: z.ZodString;
91
+ gas_price: z.ZodString;
92
+ output_data_receivers: z.ZodArray<z.ZodLazy<z.ZodObject<{
93
+ data_id: z.ZodString;
94
+ receiver_id: z.ZodString;
95
+ }, z.core.$strip>>>;
96
+ input_data_ids: z.ZodArray<z.ZodString>;
97
+ actions: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodLiteral<"DeleteAccount">, z.ZodObject<{
98
+ CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
99
+ DeleteAccount: z.ZodOptional<z.ZodObject<{
100
+ beneficiary_id: z.ZodString;
101
+ }, z.core.$strip>>;
102
+ AddKey: z.ZodOptional<z.ZodObject<{
103
+ public_key: z.ZodString;
104
+ access_key: z.ZodObject<{
105
+ nonce: z.ZodNumber;
106
+ permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
107
+ permission_kind: z.ZodString;
108
+ allowance: z.ZodOptional<z.ZodString>;
109
+ receiver_id: z.ZodOptional<z.ZodString>;
110
+ method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
111
+ }, z.core.$strip>]>;
112
+ }, z.core.$strip>;
113
+ }, z.core.$strip>>;
114
+ FunctionCall: z.ZodOptional<z.ZodObject<{
115
+ method_name: z.ZodString;
116
+ args: z.ZodString;
117
+ gas: z.ZodNumber;
118
+ deposit: z.ZodString;
119
+ }, z.core.$strip>>;
120
+ Transfer: z.ZodOptional<z.ZodObject<{
121
+ deposit: z.ZodString;
122
+ }, z.core.$strip>>;
123
+ Delegate: z.ZodOptional<z.ZodObject<{
124
+ delegate_action: z.ZodObject<{
125
+ sender_id: z.ZodString;
126
+ receiver_id: z.ZodString;
127
+ actions: z.ZodArray<z.ZodObject<{
128
+ CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
129
+ AddKey: z.ZodOptional<z.ZodObject<{
130
+ public_key: z.ZodString;
131
+ access_key: z.ZodObject<{
132
+ nonce: z.ZodNumber;
133
+ permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
134
+ permission_kind: z.ZodString;
135
+ allowance: z.ZodOptional<z.ZodString>;
136
+ receiver_id: z.ZodOptional<z.ZodString>;
137
+ method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
138
+ }, z.core.$strip>]>;
139
+ }, z.core.$strip>;
140
+ }, z.core.$strip>>;
141
+ FunctionCall: z.ZodOptional<z.ZodObject<{
142
+ method_name: z.ZodString;
143
+ args: z.ZodString;
144
+ gas: z.ZodNumber;
145
+ deposit: z.ZodString;
146
+ }, z.core.$strip>>;
147
+ Transfer: z.ZodOptional<z.ZodObject<{
148
+ deposit: z.ZodString;
149
+ }, z.core.$strip>>;
150
+ }, z.core.$catchall<z.ZodAny>>>;
151
+ nonce: z.ZodNumber;
152
+ max_block_height: z.ZodNumber;
153
+ public_key: z.ZodString;
154
+ }, z.core.$strip>;
155
+ signature: z.ZodString;
156
+ }, z.core.$strip>>;
157
+ }, z.core.$catchall<z.ZodAny>>]>>;
158
+ is_promise_yield: z.ZodBoolean;
159
+ }, z.core.$strip>>>;
160
+ Data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
161
+ data_id: z.ZodString;
162
+ data: z.ZodNullable<z.ZodString>;
163
+ is_promise_resume: z.ZodBoolean;
164
+ }, z.core.$strip>>>;
165
+ }, z.core.$strip>;
166
+ export declare const neardata_action_receipt_interface_z_const: z.ZodObject<{
167
+ signer_id: z.ZodString;
168
+ signer_public_key: z.ZodString;
169
+ gas_price: z.ZodString;
170
+ output_data_receivers: z.ZodArray<z.ZodLazy<z.ZodObject<{
171
+ data_id: z.ZodString;
172
+ receiver_id: z.ZodString;
173
+ }, z.core.$strip>>>;
174
+ input_data_ids: z.ZodArray<z.ZodString>;
175
+ actions: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodLiteral<"DeleteAccount">, z.ZodObject<{
176
+ CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
177
+ DeleteAccount: z.ZodOptional<z.ZodObject<{
178
+ beneficiary_id: z.ZodString;
179
+ }, z.core.$strip>>;
180
+ AddKey: z.ZodOptional<z.ZodObject<{
181
+ public_key: z.ZodString;
182
+ access_key: z.ZodObject<{
183
+ nonce: z.ZodNumber;
184
+ permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
185
+ permission_kind: z.ZodString;
186
+ allowance: z.ZodOptional<z.ZodString>;
187
+ receiver_id: z.ZodOptional<z.ZodString>;
188
+ method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
189
+ }, z.core.$strip>]>;
190
+ }, z.core.$strip>;
191
+ }, z.core.$strip>>;
192
+ FunctionCall: z.ZodOptional<z.ZodObject<{
193
+ method_name: z.ZodString;
194
+ args: z.ZodString;
195
+ gas: z.ZodNumber;
196
+ deposit: z.ZodString;
197
+ }, z.core.$strip>>;
198
+ Transfer: z.ZodOptional<z.ZodObject<{
199
+ deposit: z.ZodString;
200
+ }, z.core.$strip>>;
201
+ Delegate: z.ZodOptional<z.ZodObject<{
202
+ delegate_action: z.ZodObject<{
203
+ sender_id: z.ZodString;
204
+ receiver_id: z.ZodString;
205
+ actions: z.ZodArray<z.ZodObject<{
206
+ CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
207
+ AddKey: z.ZodOptional<z.ZodObject<{
208
+ public_key: z.ZodString;
209
+ access_key: z.ZodObject<{
210
+ nonce: z.ZodNumber;
211
+ permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
212
+ permission_kind: z.ZodString;
213
+ allowance: z.ZodOptional<z.ZodString>;
214
+ receiver_id: z.ZodOptional<z.ZodString>;
215
+ method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
216
+ }, z.core.$strip>]>;
217
+ }, z.core.$strip>;
218
+ }, z.core.$strip>>;
219
+ FunctionCall: z.ZodOptional<z.ZodObject<{
220
+ method_name: z.ZodString;
221
+ args: z.ZodString;
222
+ gas: z.ZodNumber;
223
+ deposit: z.ZodString;
224
+ }, z.core.$strip>>;
225
+ Transfer: z.ZodOptional<z.ZodObject<{
226
+ deposit: z.ZodString;
227
+ }, z.core.$strip>>;
228
+ }, z.core.$catchall<z.ZodAny>>>;
229
+ nonce: z.ZodNumber;
230
+ max_block_height: z.ZodNumber;
231
+ public_key: z.ZodString;
232
+ }, z.core.$strip>;
233
+ signature: z.ZodString;
234
+ }, z.core.$strip>>;
235
+ }, z.core.$catchall<z.ZodAny>>]>>;
236
+ is_promise_yield: z.ZodBoolean;
237
+ }, z.core.$strip>;
238
+ export declare const neardata_data_receiver_interface_z_const: z.ZodObject<{
239
+ data_id: z.ZodString;
240
+ receiver_id: z.ZodString;
241
+ }, z.core.$strip>;
242
+ export declare const neardata_data_receipt_interface_z_const: z.ZodObject<{
243
+ data_id: z.ZodString;
244
+ data: z.ZodNullable<z.ZodString>;
245
+ is_promise_resume: z.ZodBoolean;
246
+ }, z.core.$strip>;
247
+ export declare const neardata_receipt_execution_outcome_interface_z_const: z.ZodObject<{
248
+ execution_outcome: z.ZodObject<{
249
+ proof: z.ZodArray<z.ZodLazy<z.ZodObject<{
250
+ hash: z.ZodString;
251
+ direction: z.ZodEnum<{
252
+ Left: "Left";
253
+ Right: "Right";
254
+ }>;
255
+ }, z.core.$strip>>>;
256
+ block_hash: z.ZodString;
257
+ id: z.ZodString;
258
+ outcome: z.ZodLazy<z.ZodObject<{
259
+ logs: z.ZodArray<z.ZodString>;
260
+ receipt_ids: z.ZodArray<z.ZodString>;
261
+ gas_burnt: z.ZodNumber;
262
+ tokens_burnt: z.ZodString;
263
+ executor_id: z.ZodString;
264
+ status: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
265
+ SuccessValue: z.ZodString;
266
+ }, z.core.$strip>, z.ZodObject<{
267
+ SuccessReceiptId: z.ZodString;
268
+ }, z.core.$strip>, z.ZodObject<{
269
+ Failure: z.ZodRecord<z.ZodString, z.ZodAny>;
270
+ }, z.core.$strip>]>>;
271
+ metadata: z.ZodLazy<z.ZodObject<{
272
+ version: z.ZodNumber;
273
+ gas_profile: z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
274
+ cost: z.ZodString;
275
+ cost_category: z.ZodString;
276
+ description: z.ZodOptional<z.ZodString>;
277
+ }, z.core.$strip>>>>;
278
+ }, z.core.$strip>>;
279
+ }, z.core.$strip>>;
280
+ }, z.core.$strip>;
281
+ receipt: z.ZodObject<{
282
+ predecessor_id: z.ZodString;
283
+ receiver_id: z.ZodString;
284
+ receipt_id: z.ZodString;
285
+ receipt: z.ZodLazy<z.ZodObject<{
286
+ Action: z.ZodOptional<z.ZodLazy<z.ZodObject<{
287
+ signer_id: z.ZodString;
288
+ signer_public_key: z.ZodString;
289
+ gas_price: z.ZodString;
290
+ output_data_receivers: z.ZodArray<z.ZodLazy<z.ZodObject<{
291
+ data_id: z.ZodString;
292
+ receiver_id: z.ZodString;
293
+ }, z.core.$strip>>>;
294
+ input_data_ids: z.ZodArray<z.ZodString>;
295
+ actions: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodLiteral<"DeleteAccount">, z.ZodObject<{
296
+ CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
297
+ DeleteAccount: z.ZodOptional<z.ZodObject<{
298
+ beneficiary_id: z.ZodString;
299
+ }, z.core.$strip>>;
300
+ AddKey: z.ZodOptional<z.ZodObject<{
301
+ public_key: z.ZodString;
302
+ access_key: z.ZodObject<{
303
+ nonce: z.ZodNumber;
304
+ permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
305
+ permission_kind: z.ZodString;
306
+ allowance: z.ZodOptional<z.ZodString>;
307
+ receiver_id: z.ZodOptional<z.ZodString>;
308
+ method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
309
+ }, z.core.$strip>]>;
310
+ }, z.core.$strip>;
311
+ }, z.core.$strip>>;
312
+ FunctionCall: z.ZodOptional<z.ZodObject<{
313
+ method_name: z.ZodString;
314
+ args: z.ZodString;
315
+ gas: z.ZodNumber;
316
+ deposit: z.ZodString;
317
+ }, z.core.$strip>>;
318
+ Transfer: z.ZodOptional<z.ZodObject<{
319
+ deposit: z.ZodString;
320
+ }, z.core.$strip>>;
321
+ Delegate: z.ZodOptional<z.ZodObject<{
322
+ delegate_action: z.ZodObject<{
323
+ sender_id: z.ZodString;
324
+ receiver_id: z.ZodString;
325
+ actions: z.ZodArray<z.ZodObject<{
326
+ CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
327
+ AddKey: z.ZodOptional<z.ZodObject<{
328
+ public_key: z.ZodString;
329
+ access_key: z.ZodObject<{
330
+ nonce: z.ZodNumber;
331
+ permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
332
+ permission_kind: z.ZodString;
333
+ allowance: z.ZodOptional<z.ZodString>;
334
+ receiver_id: z.ZodOptional<z.ZodString>;
335
+ method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
336
+ }, z.core.$strip>]>;
337
+ }, z.core.$strip>;
338
+ }, z.core.$strip>>;
339
+ FunctionCall: z.ZodOptional<z.ZodObject<{
340
+ method_name: z.ZodString;
341
+ args: z.ZodString;
342
+ gas: z.ZodNumber;
343
+ deposit: z.ZodString;
344
+ }, z.core.$strip>>;
345
+ Transfer: z.ZodOptional<z.ZodObject<{
346
+ deposit: z.ZodString;
347
+ }, z.core.$strip>>;
348
+ }, z.core.$catchall<z.ZodAny>>>;
349
+ nonce: z.ZodNumber;
350
+ max_block_height: z.ZodNumber;
351
+ public_key: z.ZodString;
352
+ }, z.core.$strip>;
353
+ signature: z.ZodString;
354
+ }, z.core.$strip>>;
355
+ }, z.core.$catchall<z.ZodAny>>]>>;
356
+ is_promise_yield: z.ZodBoolean;
357
+ }, z.core.$strip>>>;
358
+ Data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
359
+ data_id: z.ZodString;
360
+ data: z.ZodNullable<z.ZodString>;
361
+ is_promise_resume: z.ZodBoolean;
362
+ }, z.core.$strip>>>;
363
+ }, z.core.$strip>>;
364
+ priority: z.ZodNumber;
365
+ }, z.core.$strip>;
366
+ tx_hash: z.ZodString;
367
+ }, z.core.$strip>;
@@ -0,0 +1,52 @@
1
+ import { z } from "zod";
2
+ import { neardata_action_interface_z_const } from "./transactions";
3
+ import { neardata_execution_outcome_interface_z_const } from "./transactions_outcome_interface";
4
+ // ========================================
5
+ // ==== neardata_receipt_interface ====
6
+ export const neardata_receipt_interface_z_const = z.object({
7
+ predecessor_id: z.string(),
8
+ receiver_id: z.string(),
9
+ receipt_id: z.string(),
10
+ receipt: z.lazy(() => neardata_receipt_kind_interface_z_const),
11
+ priority: z.number(),
12
+ });
13
+ // ========================================
14
+ // ==== neardata_receipt_kind_interface ====
15
+ export const neardata_receipt_kind_interface_z_const = z.object({
16
+ Action: z.lazy(() => neardata_action_receipt_interface_z_const).optional(),
17
+ Data: z.lazy(() => neardata_data_receipt_interface_z_const).optional(),
18
+ });
19
+ // ========================================
20
+ // ==== neardata_action_receipt_interface ====
21
+ export const neardata_action_receipt_interface_z_const = z.object({
22
+ signer_id: z.string(),
23
+ signer_public_key: z.string(),
24
+ gas_price: z.string(),
25
+ output_data_receivers: z.array(z.lazy(() => neardata_data_receiver_interface_z_const)),
26
+ input_data_ids: z.array(z.string()),
27
+ actions: z.array(neardata_action_interface_z_const),
28
+ is_promise_yield: z.boolean(),
29
+ });
30
+ // ========================================
31
+ // ==== neardata_data_receiver_interface ====
32
+ export const neardata_data_receiver_interface_z_const = z.object({
33
+ data_id: z.string(),
34
+ receiver_id: z.string(),
35
+ });
36
+ // ========================================
37
+ // ==== neardata_data_receipt_interface ====
38
+ export const neardata_data_receipt_interface_z_const = z.object({
39
+ data_id: z.string(),
40
+ data: z.string().nullable(),
41
+ is_promise_resume: z.boolean(),
42
+ });
43
+ // ========================================
44
+ // ==== neardata_receipt_execution_outcome_interface ====
45
+ export const neardata_receipt_execution_outcome_interface_z_const = z.object({
46
+ execution_outcome: neardata_execution_outcome_interface_z_const,
47
+ receipt: neardata_receipt_interface_z_const,
48
+ tx_hash: z.string(),
49
+ });
50
+ // ==============================================
51
+ // copyright 2025 by sleet.near
52
+ //# sourceMappingURL=receipts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"receipts.js","sourceRoot":"","sources":["../../src/zod/receipts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,OAAO,EAAE,iCAAiC,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,4CAA4C,EAAE,MAAM,kCAAkC,CAAC;AAEhG,2CAA2C;AAC3C,uCAAuC;AAEvC,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC;IACzD,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,uCAAuC,CAAC;IAC9D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAiD,CAAC;AAEnD,2CAA2C;AAC3C,4CAA4C;AAE5C,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,yCAAyC,CAAC,CAAC,QAAQ,EAAE;IAC1E,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,uCAAuC,CAAC,CAAC,QAAQ,EAAE;CACvE,CAAsD,CAAC;AAExD,2CAA2C;AAC3C,8CAA8C;AAE9C,MAAM,CAAC,MAAM,yCAAyC,GAAG,CAAC,CAAC,MAAM,CAAC;IAChE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAA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