@keetanetwork/anchor 0.0.39 → 0.0.41

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 (95) hide show
  1. package/client/index.d.ts +6 -0
  2. package/client/index.d.ts.map +1 -1
  3. package/client/index.js +7 -0
  4. package/client/index.js.map +1 -1
  5. package/lib/block-listener.d.ts +93 -0
  6. package/lib/block-listener.d.ts.map +1 -0
  7. package/lib/block-listener.js +259 -0
  8. package/lib/block-listener.js.map +1 -0
  9. package/lib/error.d.ts.map +1 -1
  10. package/lib/error.js +3 -1
  11. package/lib/error.js.map +1 -1
  12. package/lib/http-server/index.d.ts +14 -1
  13. package/lib/http-server/index.d.ts.map +1 -1
  14. package/lib/http-server/index.js +86 -7
  15. package/lib/http-server/index.js.map +1 -1
  16. package/lib/queue/index.d.ts +20 -5
  17. package/lib/queue/index.d.ts.map +1 -1
  18. package/lib/queue/index.js +52 -17
  19. package/lib/queue/index.js.map +1 -1
  20. package/lib/resolver.d.ts +57 -0
  21. package/lib/resolver.d.ts.map +1 -1
  22. package/lib/resolver.js +864 -250
  23. package/lib/resolver.js.map +1 -1
  24. package/npm-shrinkwrap.json +4 -4
  25. package/package.json +1 -1
  26. package/services/asset-movement/client.d.ts +9 -2
  27. package/services/asset-movement/client.d.ts.map +1 -1
  28. package/services/asset-movement/client.js +35 -2
  29. package/services/asset-movement/client.js.map +1 -1
  30. package/services/asset-movement/common.d.ts +1 -0
  31. package/services/asset-movement/common.d.ts.map +1 -1
  32. package/services/asset-movement/common.js +75 -0
  33. package/services/asset-movement/common.js.map +1 -1
  34. package/services/asset-movement/server.d.ts +0 -10
  35. package/services/asset-movement/server.d.ts.map +1 -1
  36. package/services/asset-movement/server.js +0 -2
  37. package/services/asset-movement/server.js.map +1 -1
  38. package/services/fx/common.d.ts +1 -1
  39. package/services/fx/common.js.map +1 -1
  40. package/services/fx/server.d.ts +37 -6
  41. package/services/fx/server.d.ts.map +1 -1
  42. package/services/fx/server.js +207 -66
  43. package/services/fx/server.js.map +1 -1
  44. package/services/storage/client.d.ts +332 -0
  45. package/services/storage/client.d.ts.map +1 -0
  46. package/services/storage/client.js +1078 -0
  47. package/services/storage/client.js.map +1 -0
  48. package/services/storage/clients/contacts.d.ts +94 -0
  49. package/services/storage/clients/contacts.d.ts.map +1 -0
  50. package/services/storage/clients/contacts.generated.d.ts +3 -0
  51. package/services/storage/clients/contacts.generated.d.ts.map +1 -0
  52. package/services/storage/clients/contacts.generated.js +1197 -0
  53. package/services/storage/clients/contacts.generated.js.map +1 -0
  54. package/services/storage/clients/contacts.js +141 -0
  55. package/services/storage/clients/contacts.js.map +1 -0
  56. package/services/storage/common.d.ts +667 -0
  57. package/services/storage/common.d.ts.map +1 -0
  58. package/services/storage/common.generated.d.ts +17 -0
  59. package/services/storage/common.generated.d.ts.map +1 -0
  60. package/services/storage/common.generated.js +863 -0
  61. package/services/storage/common.generated.js.map +1 -0
  62. package/services/storage/common.js +587 -0
  63. package/services/storage/common.js.map +1 -0
  64. package/services/storage/lib/validators.d.ts +64 -0
  65. package/services/storage/lib/validators.d.ts.map +1 -0
  66. package/services/storage/lib/validators.js +82 -0
  67. package/services/storage/lib/validators.js.map +1 -0
  68. package/services/storage/server.d.ts +127 -0
  69. package/services/storage/server.d.ts.map +1 -0
  70. package/services/storage/server.js +626 -0
  71. package/services/storage/server.js.map +1 -0
  72. package/services/storage/test-utils.d.ts +70 -0
  73. package/services/storage/test-utils.d.ts.map +1 -0
  74. package/services/storage/test-utils.js +347 -0
  75. package/services/storage/test-utils.js.map +1 -0
  76. package/services/storage/utils.d.ts +3 -0
  77. package/services/storage/utils.d.ts.map +1 -0
  78. package/services/storage/utils.js +10 -0
  79. package/services/storage/utils.js.map +1 -0
  80. package/services/username/client.d.ts +145 -0
  81. package/services/username/client.d.ts.map +1 -0
  82. package/services/username/client.js +681 -0
  83. package/services/username/client.js.map +1 -0
  84. package/services/username/common.d.ts +136 -0
  85. package/services/username/common.d.ts.map +1 -0
  86. package/services/username/common.generated.d.ts +13 -0
  87. package/services/username/common.generated.d.ts.map +1 -0
  88. package/services/username/common.generated.js +256 -0
  89. package/services/username/common.generated.js.map +1 -0
  90. package/services/username/common.js +226 -0
  91. package/services/username/common.js.map +1 -0
  92. package/services/username/server.d.ts +49 -0
  93. package/services/username/server.d.ts.map +1 -0
  94. package/services/username/server.js +262 -0
  95. package/services/username/server.js.map +1 -0
@@ -0,0 +1,863 @@
1
+ import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard.js";
2
+ import { createIs, createAssert } from 'typia';
3
+ export const isKeetaStorageAnchorPutResponse = (() => { const _io0 = input => false === input.ok && "string" === typeof input.error; const _io1 = input => true === input.ok && ("object" === typeof input.object && null !== input.object && _io2(input.object)); const _io2 = input => "string" === typeof input.path && "string" === typeof input.owner && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && ("public" === input.visibility || "private" === input.visibility) && "number" === typeof input.size && "string" === typeof input.createdAt && (undefined === input.updatedAt || "string" === typeof input.updatedAt); const _iu0 = input => (() => {
4
+ if (false === input.ok)
5
+ return _io0(input);
6
+ else if (true === input.ok)
7
+ return _io1(input);
8
+ else
9
+ return false;
10
+ })(); return input => "object" === typeof input && null !== input && _iu0(input); })();
11
+ export const isKeetaStorageAnchorGetResponse = (() => { const _io0 = input => false === input.ok && "string" === typeof input.error; const _io1 = input => true === input.ok && "string" === typeof input.data && ("object" === typeof input.object && null !== input.object && _io2(input.object)); const _io2 = input => "string" === typeof input.path && "string" === typeof input.owner && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && ("public" === input.visibility || "private" === input.visibility) && "number" === typeof input.size && "string" === typeof input.createdAt && (undefined === input.updatedAt || "string" === typeof input.updatedAt); const _iu0 = input => (() => {
12
+ if (false === input.ok)
13
+ return _io0(input);
14
+ else if (true === input.ok)
15
+ return _io1(input);
16
+ else
17
+ return false;
18
+ })(); return input => "object" === typeof input && null !== input && _iu0(input); })();
19
+ export const isKeetaStorageAnchorDeleteResponse = (() => { const _io0 = input => false === input.ok && "string" === typeof input.error; const _io1 = input => true === input.ok && "boolean" === typeof input.deleted; const _iu0 = input => (() => {
20
+ if (false === input.ok)
21
+ return _io0(input);
22
+ else if (true === input.ok)
23
+ return _io1(input);
24
+ else
25
+ return false;
26
+ })(); return input => "object" === typeof input && null !== input && _iu0(input); })();
27
+ export const isKeetaStorageAnchorSearchResponse = (() => { const _io0 = input => false === input.ok && "string" === typeof input.error; const _io1 = input => true === input.ok && (Array.isArray(input.results) && input.results.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.nextCursor || "string" === typeof input.nextCursor); const _io2 = input => "string" === typeof input.path && "string" === typeof input.owner && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && ("public" === input.visibility || "private" === input.visibility) && "number" === typeof input.size && "string" === typeof input.createdAt && (undefined === input.updatedAt || "string" === typeof input.updatedAt); const _iu0 = input => (() => {
28
+ if (false === input.ok)
29
+ return _io0(input);
30
+ else if (true === input.ok)
31
+ return _io1(input);
32
+ else
33
+ return false;
34
+ })(); return input => "object" === typeof input && null !== input && _iu0(input); })();
35
+ export const isKeetaStorageAnchorQuotaResponse = (() => { const _io0 = input => false === input.ok && "string" === typeof input.error; const _io1 = input => true === input.ok && ("object" === typeof input.quota && null !== input.quota && _io2(input.quota)); const _io2 = input => "number" === typeof input.objectCount && "number" === typeof input.totalSize && (undefined === input.remainingObjects || "number" === typeof input.remainingObjects) && (undefined === input.remainingSize || "number" === typeof input.remainingSize); const _iu0 = input => (() => {
36
+ if (false === input.ok)
37
+ return _io0(input);
38
+ else if (true === input.ok)
39
+ return _io1(input);
40
+ else
41
+ return false;
42
+ })(); return input => "object" === typeof input && null !== input && _iu0(input); })();
43
+ export const assertKeetaStorageAnchorPutRequest = (() => { const _io0 = input => (undefined === input.account || "string" === typeof input.account) && (undefined === input.signed || "object" === typeof input.signed && null !== input.signed && _io1(input.signed)) && "string" === typeof input.path && "string" === typeof input.data && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.visibility || "public" === input.visibility || "private" === input.visibility); const _io1 = input => "string" === typeof input.nonce && "string" === typeof input.timestamp && "string" === typeof input.signature; const _ao0 = (input, _path, _exceptionable = true) => (undefined === input.account || "string" === typeof input.account || __typia_transform__assertGuard._assertGuard(_exceptionable, {
44
+ method: "createAssert",
45
+ path: _path + ".account",
46
+ expected: "(string | undefined)",
47
+ value: input.account
48
+ }, _errorFactory)) && (undefined === input.signed || ("object" === typeof input.signed && null !== input.signed || __typia_transform__assertGuard._assertGuard(_exceptionable, {
49
+ method: "createAssert",
50
+ path: _path + ".signed",
51
+ expected: "(HTTPSignedField | undefined)",
52
+ value: input.signed
53
+ }, _errorFactory)) && _ao1(input.signed, _path + ".signed", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
54
+ method: "createAssert",
55
+ path: _path + ".signed",
56
+ expected: "(HTTPSignedField | undefined)",
57
+ value: input.signed
58
+ }, _errorFactory)) && ("string" === typeof input.path || __typia_transform__assertGuard._assertGuard(_exceptionable, {
59
+ method: "createAssert",
60
+ path: _path + ".path",
61
+ expected: "string",
62
+ value: input.path
63
+ }, _errorFactory)) && ("string" === typeof input.data || __typia_transform__assertGuard._assertGuard(_exceptionable, {
64
+ method: "createAssert",
65
+ path: _path + ".data",
66
+ expected: "string",
67
+ value: input.data
68
+ }, _errorFactory)) && (undefined === input.tags || (Array.isArray(input.tags) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
69
+ method: "createAssert",
70
+ path: _path + ".tags",
71
+ expected: "(Array<string> | undefined)",
72
+ value: input.tags
73
+ }, _errorFactory)) && input.tags.every((elem, _index2) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
74
+ method: "createAssert",
75
+ path: _path + ".tags[" + _index2 + "]",
76
+ expected: "string",
77
+ value: elem
78
+ }, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
79
+ method: "createAssert",
80
+ path: _path + ".tags",
81
+ expected: "(Array<string> | undefined)",
82
+ value: input.tags
83
+ }, _errorFactory)) && (undefined === input.visibility || "public" === input.visibility || "private" === input.visibility || __typia_transform__assertGuard._assertGuard(_exceptionable, {
84
+ method: "createAssert",
85
+ path: _path + ".visibility",
86
+ expected: "(\"private\" | \"public\" | undefined)",
87
+ value: input.visibility
88
+ }, _errorFactory)); const _ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.nonce || __typia_transform__assertGuard._assertGuard(_exceptionable, {
89
+ method: "createAssert",
90
+ path: _path + ".nonce",
91
+ expected: "string",
92
+ value: input.nonce
93
+ }, _errorFactory)) && ("string" === typeof input.timestamp || __typia_transform__assertGuard._assertGuard(_exceptionable, {
94
+ method: "createAssert",
95
+ path: _path + ".timestamp",
96
+ expected: "string",
97
+ value: input.timestamp
98
+ }, _errorFactory)) && ("string" === typeof input.signature || __typia_transform__assertGuard._assertGuard(_exceptionable, {
99
+ method: "createAssert",
100
+ path: _path + ".signature",
101
+ expected: "string",
102
+ value: input.signature
103
+ }, _errorFactory)); const __is = input => "object" === typeof input && null !== input && _io0(input); let _errorFactory; return (input, errorFactory) => {
104
+ if (false === __is(input)) {
105
+ _errorFactory = errorFactory;
106
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
107
+ method: "createAssert",
108
+ path: _path + "",
109
+ expected: "KeetaStorageAnchorPutRequest",
110
+ value: input
111
+ }, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
112
+ method: "createAssert",
113
+ path: _path + "",
114
+ expected: "KeetaStorageAnchorPutRequest",
115
+ value: input
116
+ }, _errorFactory))(input, "$input", true);
117
+ }
118
+ return input;
119
+ }; })();
120
+ export const assertKeetaStorageAnchorPutResponse = (() => { const _io0 = input => false === input.ok && "string" === typeof input.error; const _io1 = input => true === input.ok && ("object" === typeof input.object && null !== input.object && _io2(input.object)); const _io2 = input => "string" === typeof input.path && "string" === typeof input.owner && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && ("public" === input.visibility || "private" === input.visibility) && "number" === typeof input.size && "string" === typeof input.createdAt && (undefined === input.updatedAt || "string" === typeof input.updatedAt); const _iu0 = input => (() => {
121
+ if (false === input.ok)
122
+ return _io0(input);
123
+ else if (true === input.ok)
124
+ return _io1(input);
125
+ else
126
+ return false;
127
+ })(); const _ao0 = (input, _path, _exceptionable = true) => (false === input.ok || __typia_transform__assertGuard._assertGuard(_exceptionable, {
128
+ method: "createAssert",
129
+ path: _path + ".ok",
130
+ expected: "false",
131
+ value: input.ok
132
+ }, _errorFactory)) && ("string" === typeof input.error || __typia_transform__assertGuard._assertGuard(_exceptionable, {
133
+ method: "createAssert",
134
+ path: _path + ".error",
135
+ expected: "string",
136
+ value: input.error
137
+ }, _errorFactory)); const _ao1 = (input, _path, _exceptionable = true) => (true === input.ok || __typia_transform__assertGuard._assertGuard(_exceptionable, {
138
+ method: "createAssert",
139
+ path: _path + ".ok",
140
+ expected: "true",
141
+ value: input.ok
142
+ }, _errorFactory)) && (("object" === typeof input.object && null !== input.object || __typia_transform__assertGuard._assertGuard(_exceptionable, {
143
+ method: "createAssert",
144
+ path: _path + ".object",
145
+ expected: "StorageObjectMetadata",
146
+ value: input.object
147
+ }, _errorFactory)) && _ao2(input.object, _path + ".object", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
148
+ method: "createAssert",
149
+ path: _path + ".object",
150
+ expected: "StorageObjectMetadata",
151
+ value: input.object
152
+ }, _errorFactory)); const _ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.path || __typia_transform__assertGuard._assertGuard(_exceptionable, {
153
+ method: "createAssert",
154
+ path: _path + ".path",
155
+ expected: "string",
156
+ value: input.path
157
+ }, _errorFactory)) && ("string" === typeof input.owner || __typia_transform__assertGuard._assertGuard(_exceptionable, {
158
+ method: "createAssert",
159
+ path: _path + ".owner",
160
+ expected: "string",
161
+ value: input.owner
162
+ }, _errorFactory)) && ((Array.isArray(input.tags) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
163
+ method: "createAssert",
164
+ path: _path + ".tags",
165
+ expected: "Array<string>",
166
+ value: input.tags
167
+ }, _errorFactory)) && input.tags.every((elem, _index2) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
168
+ method: "createAssert",
169
+ path: _path + ".tags[" + _index2 + "]",
170
+ expected: "string",
171
+ value: elem
172
+ }, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
173
+ method: "createAssert",
174
+ path: _path + ".tags",
175
+ expected: "Array<string>",
176
+ value: input.tags
177
+ }, _errorFactory)) && ("public" === input.visibility || "private" === input.visibility || __typia_transform__assertGuard._assertGuard(_exceptionable, {
178
+ method: "createAssert",
179
+ path: _path + ".visibility",
180
+ expected: "(\"private\" | \"public\")",
181
+ value: input.visibility
182
+ }, _errorFactory)) && ("number" === typeof input.size || __typia_transform__assertGuard._assertGuard(_exceptionable, {
183
+ method: "createAssert",
184
+ path: _path + ".size",
185
+ expected: "number",
186
+ value: input.size
187
+ }, _errorFactory)) && ("string" === typeof input.createdAt || __typia_transform__assertGuard._assertGuard(_exceptionable, {
188
+ method: "createAssert",
189
+ path: _path + ".createdAt",
190
+ expected: "string",
191
+ value: input.createdAt
192
+ }, _errorFactory)) && (undefined === input.updatedAt || "string" === typeof input.updatedAt || __typia_transform__assertGuard._assertGuard(_exceptionable, {
193
+ method: "createAssert",
194
+ path: _path + ".updatedAt",
195
+ expected: "(string | undefined)",
196
+ value: input.updatedAt
197
+ }, _errorFactory)); const _au0 = (input, _path, _exceptionable = true) => (() => {
198
+ if (false === input.ok)
199
+ return _ao0(input, _path, true && _exceptionable);
200
+ else if (true === input.ok)
201
+ return _ao1(input, _path, true && _exceptionable);
202
+ else
203
+ return __typia_transform__assertGuard._assertGuard(_exceptionable, {
204
+ method: "createAssert",
205
+ path: _path,
206
+ expected: "(__type | { ok: true; } & { object: StorageObjectMetadata; })",
207
+ value: input
208
+ }, _errorFactory);
209
+ })(); const __is = input => "object" === typeof input && null !== input && _iu0(input); let _errorFactory; return (input, errorFactory) => {
210
+ if (false === __is(input)) {
211
+ _errorFactory = errorFactory;
212
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
213
+ method: "createAssert",
214
+ path: _path + "",
215
+ expected: "(__type | { ok: true; } & { object: StorageObjectMetadata; })",
216
+ value: input
217
+ }, _errorFactory)) && _au0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
218
+ method: "createAssert",
219
+ path: _path + "",
220
+ expected: "(__type | { ok: true; } & { object: StorageObjectMetadata; })",
221
+ value: input
222
+ }, _errorFactory))(input, "$input", true);
223
+ }
224
+ return input;
225
+ }; })();
226
+ export const assertKeetaStorageAnchorGetRequest = (() => { const _io0 = input => (undefined === input.account || "string" === typeof input.account) && (undefined === input.signed || "object" === typeof input.signed && null !== input.signed && _io1(input.signed)) && "string" === typeof input.path; const _io1 = input => "string" === typeof input.nonce && "string" === typeof input.timestamp && "string" === typeof input.signature; const _ao0 = (input, _path, _exceptionable = true) => (undefined === input.account || "string" === typeof input.account || __typia_transform__assertGuard._assertGuard(_exceptionable, {
227
+ method: "createAssert",
228
+ path: _path + ".account",
229
+ expected: "(string | undefined)",
230
+ value: input.account
231
+ }, _errorFactory)) && (undefined === input.signed || ("object" === typeof input.signed && null !== input.signed || __typia_transform__assertGuard._assertGuard(_exceptionable, {
232
+ method: "createAssert",
233
+ path: _path + ".signed",
234
+ expected: "(HTTPSignedField | undefined)",
235
+ value: input.signed
236
+ }, _errorFactory)) && _ao1(input.signed, _path + ".signed", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
237
+ method: "createAssert",
238
+ path: _path + ".signed",
239
+ expected: "(HTTPSignedField | undefined)",
240
+ value: input.signed
241
+ }, _errorFactory)) && ("string" === typeof input.path || __typia_transform__assertGuard._assertGuard(_exceptionable, {
242
+ method: "createAssert",
243
+ path: _path + ".path",
244
+ expected: "string",
245
+ value: input.path
246
+ }, _errorFactory)); const _ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.nonce || __typia_transform__assertGuard._assertGuard(_exceptionable, {
247
+ method: "createAssert",
248
+ path: _path + ".nonce",
249
+ expected: "string",
250
+ value: input.nonce
251
+ }, _errorFactory)) && ("string" === typeof input.timestamp || __typia_transform__assertGuard._assertGuard(_exceptionable, {
252
+ method: "createAssert",
253
+ path: _path + ".timestamp",
254
+ expected: "string",
255
+ value: input.timestamp
256
+ }, _errorFactory)) && ("string" === typeof input.signature || __typia_transform__assertGuard._assertGuard(_exceptionable, {
257
+ method: "createAssert",
258
+ path: _path + ".signature",
259
+ expected: "string",
260
+ value: input.signature
261
+ }, _errorFactory)); const __is = input => "object" === typeof input && null !== input && _io0(input); let _errorFactory; return (input, errorFactory) => {
262
+ if (false === __is(input)) {
263
+ _errorFactory = errorFactory;
264
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
265
+ method: "createAssert",
266
+ path: _path + "",
267
+ expected: "KeetaStorageAnchorGetRequest",
268
+ value: input
269
+ }, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
270
+ method: "createAssert",
271
+ path: _path + "",
272
+ expected: "KeetaStorageAnchorGetRequest",
273
+ value: input
274
+ }, _errorFactory))(input, "$input", true);
275
+ }
276
+ return input;
277
+ }; })();
278
+ export const assertKeetaStorageAnchorGetResponse = (() => { const _io0 = input => false === input.ok && "string" === typeof input.error; const _io1 = input => true === input.ok && "string" === typeof input.data && ("object" === typeof input.object && null !== input.object && _io2(input.object)); const _io2 = input => "string" === typeof input.path && "string" === typeof input.owner && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && ("public" === input.visibility || "private" === input.visibility) && "number" === typeof input.size && "string" === typeof input.createdAt && (undefined === input.updatedAt || "string" === typeof input.updatedAt); const _iu0 = input => (() => {
279
+ if (false === input.ok)
280
+ return _io0(input);
281
+ else if (true === input.ok)
282
+ return _io1(input);
283
+ else
284
+ return false;
285
+ })(); const _ao0 = (input, _path, _exceptionable = true) => (false === input.ok || __typia_transform__assertGuard._assertGuard(_exceptionable, {
286
+ method: "createAssert",
287
+ path: _path + ".ok",
288
+ expected: "false",
289
+ value: input.ok
290
+ }, _errorFactory)) && ("string" === typeof input.error || __typia_transform__assertGuard._assertGuard(_exceptionable, {
291
+ method: "createAssert",
292
+ path: _path + ".error",
293
+ expected: "string",
294
+ value: input.error
295
+ }, _errorFactory)); const _ao1 = (input, _path, _exceptionable = true) => (true === input.ok || __typia_transform__assertGuard._assertGuard(_exceptionable, {
296
+ method: "createAssert",
297
+ path: _path + ".ok",
298
+ expected: "true",
299
+ value: input.ok
300
+ }, _errorFactory)) && ("string" === typeof input.data || __typia_transform__assertGuard._assertGuard(_exceptionable, {
301
+ method: "createAssert",
302
+ path: _path + ".data",
303
+ expected: "string",
304
+ value: input.data
305
+ }, _errorFactory)) && (("object" === typeof input.object && null !== input.object || __typia_transform__assertGuard._assertGuard(_exceptionable, {
306
+ method: "createAssert",
307
+ path: _path + ".object",
308
+ expected: "StorageObjectMetadata",
309
+ value: input.object
310
+ }, _errorFactory)) && _ao2(input.object, _path + ".object", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
311
+ method: "createAssert",
312
+ path: _path + ".object",
313
+ expected: "StorageObjectMetadata",
314
+ value: input.object
315
+ }, _errorFactory)); const _ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.path || __typia_transform__assertGuard._assertGuard(_exceptionable, {
316
+ method: "createAssert",
317
+ path: _path + ".path",
318
+ expected: "string",
319
+ value: input.path
320
+ }, _errorFactory)) && ("string" === typeof input.owner || __typia_transform__assertGuard._assertGuard(_exceptionable, {
321
+ method: "createAssert",
322
+ path: _path + ".owner",
323
+ expected: "string",
324
+ value: input.owner
325
+ }, _errorFactory)) && ((Array.isArray(input.tags) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
326
+ method: "createAssert",
327
+ path: _path + ".tags",
328
+ expected: "Array<string>",
329
+ value: input.tags
330
+ }, _errorFactory)) && input.tags.every((elem, _index2) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
331
+ method: "createAssert",
332
+ path: _path + ".tags[" + _index2 + "]",
333
+ expected: "string",
334
+ value: elem
335
+ }, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
336
+ method: "createAssert",
337
+ path: _path + ".tags",
338
+ expected: "Array<string>",
339
+ value: input.tags
340
+ }, _errorFactory)) && ("public" === input.visibility || "private" === input.visibility || __typia_transform__assertGuard._assertGuard(_exceptionable, {
341
+ method: "createAssert",
342
+ path: _path + ".visibility",
343
+ expected: "(\"private\" | \"public\")",
344
+ value: input.visibility
345
+ }, _errorFactory)) && ("number" === typeof input.size || __typia_transform__assertGuard._assertGuard(_exceptionable, {
346
+ method: "createAssert",
347
+ path: _path + ".size",
348
+ expected: "number",
349
+ value: input.size
350
+ }, _errorFactory)) && ("string" === typeof input.createdAt || __typia_transform__assertGuard._assertGuard(_exceptionable, {
351
+ method: "createAssert",
352
+ path: _path + ".createdAt",
353
+ expected: "string",
354
+ value: input.createdAt
355
+ }, _errorFactory)) && (undefined === input.updatedAt || "string" === typeof input.updatedAt || __typia_transform__assertGuard._assertGuard(_exceptionable, {
356
+ method: "createAssert",
357
+ path: _path + ".updatedAt",
358
+ expected: "(string | undefined)",
359
+ value: input.updatedAt
360
+ }, _errorFactory)); const _au0 = (input, _path, _exceptionable = true) => (() => {
361
+ if (false === input.ok)
362
+ return _ao0(input, _path, true && _exceptionable);
363
+ else if (true === input.ok)
364
+ return _ao1(input, _path, true && _exceptionable);
365
+ else
366
+ return __typia_transform__assertGuard._assertGuard(_exceptionable, {
367
+ method: "createAssert",
368
+ path: _path,
369
+ expected: "(__type | { ok: true; } & { data: string; object: StorageObjectMetadata; })",
370
+ value: input
371
+ }, _errorFactory);
372
+ })(); const __is = input => "object" === typeof input && null !== input && _iu0(input); let _errorFactory; return (input, errorFactory) => {
373
+ if (false === __is(input)) {
374
+ _errorFactory = errorFactory;
375
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
376
+ method: "createAssert",
377
+ path: _path + "",
378
+ expected: "(__type | { ok: true; } & { data: string; object: StorageObjectMetadata; })",
379
+ value: input
380
+ }, _errorFactory)) && _au0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
381
+ method: "createAssert",
382
+ path: _path + "",
383
+ expected: "(__type | { ok: true; } & { data: string; object: StorageObjectMetadata; })",
384
+ value: input
385
+ }, _errorFactory))(input, "$input", true);
386
+ }
387
+ return input;
388
+ }; })();
389
+ export const assertKeetaStorageAnchorDeleteRequest = (() => { const _io0 = input => (undefined === input.account || "string" === typeof input.account) && (undefined === input.signed || "object" === typeof input.signed && null !== input.signed && _io1(input.signed)) && "string" === typeof input.path; const _io1 = input => "string" === typeof input.nonce && "string" === typeof input.timestamp && "string" === typeof input.signature; const _ao0 = (input, _path, _exceptionable = true) => (undefined === input.account || "string" === typeof input.account || __typia_transform__assertGuard._assertGuard(_exceptionable, {
390
+ method: "createAssert",
391
+ path: _path + ".account",
392
+ expected: "(string | undefined)",
393
+ value: input.account
394
+ }, _errorFactory)) && (undefined === input.signed || ("object" === typeof input.signed && null !== input.signed || __typia_transform__assertGuard._assertGuard(_exceptionable, {
395
+ method: "createAssert",
396
+ path: _path + ".signed",
397
+ expected: "(HTTPSignedField | undefined)",
398
+ value: input.signed
399
+ }, _errorFactory)) && _ao1(input.signed, _path + ".signed", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
400
+ method: "createAssert",
401
+ path: _path + ".signed",
402
+ expected: "(HTTPSignedField | undefined)",
403
+ value: input.signed
404
+ }, _errorFactory)) && ("string" === typeof input.path || __typia_transform__assertGuard._assertGuard(_exceptionable, {
405
+ method: "createAssert",
406
+ path: _path + ".path",
407
+ expected: "string",
408
+ value: input.path
409
+ }, _errorFactory)); const _ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.nonce || __typia_transform__assertGuard._assertGuard(_exceptionable, {
410
+ method: "createAssert",
411
+ path: _path + ".nonce",
412
+ expected: "string",
413
+ value: input.nonce
414
+ }, _errorFactory)) && ("string" === typeof input.timestamp || __typia_transform__assertGuard._assertGuard(_exceptionable, {
415
+ method: "createAssert",
416
+ path: _path + ".timestamp",
417
+ expected: "string",
418
+ value: input.timestamp
419
+ }, _errorFactory)) && ("string" === typeof input.signature || __typia_transform__assertGuard._assertGuard(_exceptionable, {
420
+ method: "createAssert",
421
+ path: _path + ".signature",
422
+ expected: "string",
423
+ value: input.signature
424
+ }, _errorFactory)); const __is = input => "object" === typeof input && null !== input && _io0(input); let _errorFactory; return (input, errorFactory) => {
425
+ if (false === __is(input)) {
426
+ _errorFactory = errorFactory;
427
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
428
+ method: "createAssert",
429
+ path: _path + "",
430
+ expected: "KeetaStorageAnchorDeleteRequest",
431
+ value: input
432
+ }, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
433
+ method: "createAssert",
434
+ path: _path + "",
435
+ expected: "KeetaStorageAnchorDeleteRequest",
436
+ value: input
437
+ }, _errorFactory))(input, "$input", true);
438
+ }
439
+ return input;
440
+ }; })();
441
+ export const assertKeetaStorageAnchorDeleteResponse = (() => { const _io0 = input => false === input.ok && "string" === typeof input.error; const _io1 = input => true === input.ok && "boolean" === typeof input.deleted; const _iu0 = input => (() => {
442
+ if (false === input.ok)
443
+ return _io0(input);
444
+ else if (true === input.ok)
445
+ return _io1(input);
446
+ else
447
+ return false;
448
+ })(); const _ao0 = (input, _path, _exceptionable = true) => (false === input.ok || __typia_transform__assertGuard._assertGuard(_exceptionable, {
449
+ method: "createAssert",
450
+ path: _path + ".ok",
451
+ expected: "false",
452
+ value: input.ok
453
+ }, _errorFactory)) && ("string" === typeof input.error || __typia_transform__assertGuard._assertGuard(_exceptionable, {
454
+ method: "createAssert",
455
+ path: _path + ".error",
456
+ expected: "string",
457
+ value: input.error
458
+ }, _errorFactory)); const _ao1 = (input, _path, _exceptionable = true) => (true === input.ok || __typia_transform__assertGuard._assertGuard(_exceptionable, {
459
+ method: "createAssert",
460
+ path: _path + ".ok",
461
+ expected: "true",
462
+ value: input.ok
463
+ }, _errorFactory)) && ("boolean" === typeof input.deleted || __typia_transform__assertGuard._assertGuard(_exceptionable, {
464
+ method: "createAssert",
465
+ path: _path + ".deleted",
466
+ expected: "boolean",
467
+ value: input.deleted
468
+ }, _errorFactory)); const _au0 = (input, _path, _exceptionable = true) => (() => {
469
+ if (false === input.ok)
470
+ return _ao0(input, _path, true && _exceptionable);
471
+ else if (true === input.ok)
472
+ return _ao1(input, _path, true && _exceptionable);
473
+ else
474
+ return __typia_transform__assertGuard._assertGuard(_exceptionable, {
475
+ method: "createAssert",
476
+ path: _path,
477
+ expected: "(__type | { ok: true; } & { deleted: boolean; })",
478
+ value: input
479
+ }, _errorFactory);
480
+ })(); const __is = input => "object" === typeof input && null !== input && _iu0(input); let _errorFactory; return (input, errorFactory) => {
481
+ if (false === __is(input)) {
482
+ _errorFactory = errorFactory;
483
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
484
+ method: "createAssert",
485
+ path: _path + "",
486
+ expected: "(__type | { ok: true; } & { deleted: boolean; })",
487
+ value: input
488
+ }, _errorFactory)) && _au0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
489
+ method: "createAssert",
490
+ path: _path + "",
491
+ expected: "(__type | { ok: true; } & { deleted: boolean; })",
492
+ value: input
493
+ }, _errorFactory))(input, "$input", true);
494
+ }
495
+ return input;
496
+ }; })();
497
+ export const assertKeetaStorageAnchorSearchRequest = (() => { const _io0 = input => (undefined === input.account || "string" === typeof input.account) && (undefined === input.signed || "object" === typeof input.signed && null !== input.signed && _io1(input.signed)) && ("object" === typeof input.criteria && null !== input.criteria && false === Array.isArray(input.criteria) && _io2(input.criteria)) && (undefined === input.pagination || "object" === typeof input.pagination && null !== input.pagination && false === Array.isArray(input.pagination) && _io3(input.pagination)); const _io1 = input => "string" === typeof input.nonce && "string" === typeof input.timestamp && "string" === typeof input.signature; const _io2 = input => (undefined === input.pathPrefix || "string" === typeof input.pathPrefix) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.name || "string" === typeof input.name) && (undefined === input.owner || "string" === typeof input.owner) && (undefined === input.recursive || "boolean" === typeof input.recursive) && (undefined === input.visibility || "public" === input.visibility || "private" === input.visibility); const _io3 = input => (undefined === input.cursor || "string" === typeof input.cursor) && (undefined === input.limit || "number" === typeof input.limit); const _ao0 = (input, _path, _exceptionable = true) => (undefined === input.account || "string" === typeof input.account || __typia_transform__assertGuard._assertGuard(_exceptionable, {
498
+ method: "createAssert",
499
+ path: _path + ".account",
500
+ expected: "(string | undefined)",
501
+ value: input.account
502
+ }, _errorFactory)) && (undefined === input.signed || ("object" === typeof input.signed && null !== input.signed || __typia_transform__assertGuard._assertGuard(_exceptionable, {
503
+ method: "createAssert",
504
+ path: _path + ".signed",
505
+ expected: "(HTTPSignedField | undefined)",
506
+ value: input.signed
507
+ }, _errorFactory)) && _ao1(input.signed, _path + ".signed", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
508
+ method: "createAssert",
509
+ path: _path + ".signed",
510
+ expected: "(HTTPSignedField | undefined)",
511
+ value: input.signed
512
+ }, _errorFactory)) && (("object" === typeof input.criteria && null !== input.criteria && false === Array.isArray(input.criteria) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
513
+ method: "createAssert",
514
+ path: _path + ".criteria",
515
+ expected: "SearchCriteria",
516
+ value: input.criteria
517
+ }, _errorFactory)) && _ao2(input.criteria, _path + ".criteria", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
518
+ method: "createAssert",
519
+ path: _path + ".criteria",
520
+ expected: "SearchCriteria",
521
+ value: input.criteria
522
+ }, _errorFactory)) && (undefined === input.pagination || ("object" === typeof input.pagination && null !== input.pagination && false === Array.isArray(input.pagination) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
523
+ method: "createAssert",
524
+ path: _path + ".pagination",
525
+ expected: "(SearchPagination | undefined)",
526
+ value: input.pagination
527
+ }, _errorFactory)) && _ao3(input.pagination, _path + ".pagination", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
528
+ method: "createAssert",
529
+ path: _path + ".pagination",
530
+ expected: "(SearchPagination | undefined)",
531
+ value: input.pagination
532
+ }, _errorFactory)); const _ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.nonce || __typia_transform__assertGuard._assertGuard(_exceptionable, {
533
+ method: "createAssert",
534
+ path: _path + ".nonce",
535
+ expected: "string",
536
+ value: input.nonce
537
+ }, _errorFactory)) && ("string" === typeof input.timestamp || __typia_transform__assertGuard._assertGuard(_exceptionable, {
538
+ method: "createAssert",
539
+ path: _path + ".timestamp",
540
+ expected: "string",
541
+ value: input.timestamp
542
+ }, _errorFactory)) && ("string" === typeof input.signature || __typia_transform__assertGuard._assertGuard(_exceptionable, {
543
+ method: "createAssert",
544
+ path: _path + ".signature",
545
+ expected: "string",
546
+ value: input.signature
547
+ }, _errorFactory)); const _ao2 = (input, _path, _exceptionable = true) => (undefined === input.pathPrefix || "string" === typeof input.pathPrefix || __typia_transform__assertGuard._assertGuard(_exceptionable, {
548
+ method: "createAssert",
549
+ path: _path + ".pathPrefix",
550
+ expected: "(string | undefined)",
551
+ value: input.pathPrefix
552
+ }, _errorFactory)) && (undefined === input.tags || (Array.isArray(input.tags) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
553
+ method: "createAssert",
554
+ path: _path + ".tags",
555
+ expected: "(Array<string> | undefined)",
556
+ value: input.tags
557
+ }, _errorFactory)) && input.tags.every((elem, _index2) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
558
+ method: "createAssert",
559
+ path: _path + ".tags[" + _index2 + "]",
560
+ expected: "string",
561
+ value: elem
562
+ }, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
563
+ method: "createAssert",
564
+ path: _path + ".tags",
565
+ expected: "(Array<string> | undefined)",
566
+ value: input.tags
567
+ }, _errorFactory)) && (undefined === input.name || "string" === typeof input.name || __typia_transform__assertGuard._assertGuard(_exceptionable, {
568
+ method: "createAssert",
569
+ path: _path + ".name",
570
+ expected: "(string | undefined)",
571
+ value: input.name
572
+ }, _errorFactory)) && (undefined === input.owner || "string" === typeof input.owner || __typia_transform__assertGuard._assertGuard(_exceptionable, {
573
+ method: "createAssert",
574
+ path: _path + ".owner",
575
+ expected: "(string | undefined)",
576
+ value: input.owner
577
+ }, _errorFactory)) && (undefined === input.recursive || "boolean" === typeof input.recursive || __typia_transform__assertGuard._assertGuard(_exceptionable, {
578
+ method: "createAssert",
579
+ path: _path + ".recursive",
580
+ expected: "(boolean | undefined)",
581
+ value: input.recursive
582
+ }, _errorFactory)) && (undefined === input.visibility || "public" === input.visibility || "private" === input.visibility || __typia_transform__assertGuard._assertGuard(_exceptionable, {
583
+ method: "createAssert",
584
+ path: _path + ".visibility",
585
+ expected: "(\"private\" | \"public\" | undefined)",
586
+ value: input.visibility
587
+ }, _errorFactory)); const _ao3 = (input, _path, _exceptionable = true) => (undefined === input.cursor || "string" === typeof input.cursor || __typia_transform__assertGuard._assertGuard(_exceptionable, {
588
+ method: "createAssert",
589
+ path: _path + ".cursor",
590
+ expected: "(string | undefined)",
591
+ value: input.cursor
592
+ }, _errorFactory)) && (undefined === input.limit || "number" === typeof input.limit || __typia_transform__assertGuard._assertGuard(_exceptionable, {
593
+ method: "createAssert",
594
+ path: _path + ".limit",
595
+ expected: "(number | undefined)",
596
+ value: input.limit
597
+ }, _errorFactory)); const __is = input => "object" === typeof input && null !== input && _io0(input); let _errorFactory; return (input, errorFactory) => {
598
+ if (false === __is(input)) {
599
+ _errorFactory = errorFactory;
600
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
601
+ method: "createAssert",
602
+ path: _path + "",
603
+ expected: "KeetaStorageAnchorSearchRequest",
604
+ value: input
605
+ }, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
606
+ method: "createAssert",
607
+ path: _path + "",
608
+ expected: "KeetaStorageAnchorSearchRequest",
609
+ value: input
610
+ }, _errorFactory))(input, "$input", true);
611
+ }
612
+ return input;
613
+ }; })();
614
+ export const assertKeetaStorageAnchorSearchResponse = (() => { const _io0 = input => false === input.ok && "string" === typeof input.error; const _io1 = input => true === input.ok && (Array.isArray(input.results) && input.results.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.nextCursor || "string" === typeof input.nextCursor); const _io2 = input => "string" === typeof input.path && "string" === typeof input.owner && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && ("public" === input.visibility || "private" === input.visibility) && "number" === typeof input.size && "string" === typeof input.createdAt && (undefined === input.updatedAt || "string" === typeof input.updatedAt); const _iu0 = input => (() => {
615
+ if (false === input.ok)
616
+ return _io0(input);
617
+ else if (true === input.ok)
618
+ return _io1(input);
619
+ else
620
+ return false;
621
+ })(); const _ao0 = (input, _path, _exceptionable = true) => (false === input.ok || __typia_transform__assertGuard._assertGuard(_exceptionable, {
622
+ method: "createAssert",
623
+ path: _path + ".ok",
624
+ expected: "false",
625
+ value: input.ok
626
+ }, _errorFactory)) && ("string" === typeof input.error || __typia_transform__assertGuard._assertGuard(_exceptionable, {
627
+ method: "createAssert",
628
+ path: _path + ".error",
629
+ expected: "string",
630
+ value: input.error
631
+ }, _errorFactory)); const _ao1 = (input, _path, _exceptionable = true) => (true === input.ok || __typia_transform__assertGuard._assertGuard(_exceptionable, {
632
+ method: "createAssert",
633
+ path: _path + ".ok",
634
+ expected: "true",
635
+ value: input.ok
636
+ }, _errorFactory)) && ((Array.isArray(input.results) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
637
+ method: "createAssert",
638
+ path: _path + ".results",
639
+ expected: "Array<StorageObjectMetadata>",
640
+ value: input.results
641
+ }, _errorFactory)) && input.results.every((elem, _index3) => ("object" === typeof elem && null !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
642
+ method: "createAssert",
643
+ path: _path + ".results[" + _index3 + "]",
644
+ expected: "StorageObjectMetadata",
645
+ value: elem
646
+ }, _errorFactory)) && _ao2(elem, _path + ".results[" + _index3 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
647
+ method: "createAssert",
648
+ path: _path + ".results[" + _index3 + "]",
649
+ expected: "StorageObjectMetadata",
650
+ value: elem
651
+ }, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
652
+ method: "createAssert",
653
+ path: _path + ".results",
654
+ expected: "Array<StorageObjectMetadata>",
655
+ value: input.results
656
+ }, _errorFactory)) && (undefined === input.nextCursor || "string" === typeof input.nextCursor || __typia_transform__assertGuard._assertGuard(_exceptionable, {
657
+ method: "createAssert",
658
+ path: _path + ".nextCursor",
659
+ expected: "(string | undefined)",
660
+ value: input.nextCursor
661
+ }, _errorFactory)); const _ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.path || __typia_transform__assertGuard._assertGuard(_exceptionable, {
662
+ method: "createAssert",
663
+ path: _path + ".path",
664
+ expected: "string",
665
+ value: input.path
666
+ }, _errorFactory)) && ("string" === typeof input.owner || __typia_transform__assertGuard._assertGuard(_exceptionable, {
667
+ method: "createAssert",
668
+ path: _path + ".owner",
669
+ expected: "string",
670
+ value: input.owner
671
+ }, _errorFactory)) && ((Array.isArray(input.tags) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
672
+ method: "createAssert",
673
+ path: _path + ".tags",
674
+ expected: "Array<string>",
675
+ value: input.tags
676
+ }, _errorFactory)) && input.tags.every((elem, _index4) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
677
+ method: "createAssert",
678
+ path: _path + ".tags[" + _index4 + "]",
679
+ expected: "string",
680
+ value: elem
681
+ }, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
682
+ method: "createAssert",
683
+ path: _path + ".tags",
684
+ expected: "Array<string>",
685
+ value: input.tags
686
+ }, _errorFactory)) && ("public" === input.visibility || "private" === input.visibility || __typia_transform__assertGuard._assertGuard(_exceptionable, {
687
+ method: "createAssert",
688
+ path: _path + ".visibility",
689
+ expected: "(\"private\" | \"public\")",
690
+ value: input.visibility
691
+ }, _errorFactory)) && ("number" === typeof input.size || __typia_transform__assertGuard._assertGuard(_exceptionable, {
692
+ method: "createAssert",
693
+ path: _path + ".size",
694
+ expected: "number",
695
+ value: input.size
696
+ }, _errorFactory)) && ("string" === typeof input.createdAt || __typia_transform__assertGuard._assertGuard(_exceptionable, {
697
+ method: "createAssert",
698
+ path: _path + ".createdAt",
699
+ expected: "string",
700
+ value: input.createdAt
701
+ }, _errorFactory)) && (undefined === input.updatedAt || "string" === typeof input.updatedAt || __typia_transform__assertGuard._assertGuard(_exceptionable, {
702
+ method: "createAssert",
703
+ path: _path + ".updatedAt",
704
+ expected: "(string | undefined)",
705
+ value: input.updatedAt
706
+ }, _errorFactory)); const _au0 = (input, _path, _exceptionable = true) => (() => {
707
+ if (false === input.ok)
708
+ return _ao0(input, _path, true && _exceptionable);
709
+ else if (true === input.ok)
710
+ return _ao1(input, _path, true && _exceptionable);
711
+ else
712
+ return __typia_transform__assertGuard._assertGuard(_exceptionable, {
713
+ method: "createAssert",
714
+ path: _path,
715
+ expected: "(__type | { ok: true; } & { results: StorageObjectMetadata[]; nextCursor?: string; })",
716
+ value: input
717
+ }, _errorFactory);
718
+ })(); const __is = input => "object" === typeof input && null !== input && _iu0(input); let _errorFactory; return (input, errorFactory) => {
719
+ if (false === __is(input)) {
720
+ _errorFactory = errorFactory;
721
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
722
+ method: "createAssert",
723
+ path: _path + "",
724
+ expected: "(__type | { ok: true; } & { results: StorageObjectMetadata[]; nextCursor?: string; })",
725
+ value: input
726
+ }, _errorFactory)) && _au0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
727
+ method: "createAssert",
728
+ path: _path + "",
729
+ expected: "(__type | { ok: true; } & { results: StorageObjectMetadata[]; nextCursor?: string; })",
730
+ value: input
731
+ }, _errorFactory))(input, "$input", true);
732
+ }
733
+ return input;
734
+ }; })();
735
+ export const assertKeetaStorageAnchorQuotaRequest = (() => { const _io0 = input => (undefined === input.account || "string" === typeof input.account) && (undefined === input.signed || "object" === typeof input.signed && null !== input.signed && _io1(input.signed)); const _io1 = input => "string" === typeof input.nonce && "string" === typeof input.timestamp && "string" === typeof input.signature; const _ao0 = (input, _path, _exceptionable = true) => (undefined === input.account || "string" === typeof input.account || __typia_transform__assertGuard._assertGuard(_exceptionable, {
736
+ method: "createAssert",
737
+ path: _path + ".account",
738
+ expected: "(string | undefined)",
739
+ value: input.account
740
+ }, _errorFactory)) && (undefined === input.signed || ("object" === typeof input.signed && null !== input.signed || __typia_transform__assertGuard._assertGuard(_exceptionable, {
741
+ method: "createAssert",
742
+ path: _path + ".signed",
743
+ expected: "(HTTPSignedField | undefined)",
744
+ value: input.signed
745
+ }, _errorFactory)) && _ao1(input.signed, _path + ".signed", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
746
+ method: "createAssert",
747
+ path: _path + ".signed",
748
+ expected: "(HTTPSignedField | undefined)",
749
+ value: input.signed
750
+ }, _errorFactory)); const _ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.nonce || __typia_transform__assertGuard._assertGuard(_exceptionable, {
751
+ method: "createAssert",
752
+ path: _path + ".nonce",
753
+ expected: "string",
754
+ value: input.nonce
755
+ }, _errorFactory)) && ("string" === typeof input.timestamp || __typia_transform__assertGuard._assertGuard(_exceptionable, {
756
+ method: "createAssert",
757
+ path: _path + ".timestamp",
758
+ expected: "string",
759
+ value: input.timestamp
760
+ }, _errorFactory)) && ("string" === typeof input.signature || __typia_transform__assertGuard._assertGuard(_exceptionable, {
761
+ method: "createAssert",
762
+ path: _path + ".signature",
763
+ expected: "string",
764
+ value: input.signature
765
+ }, _errorFactory)); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let _errorFactory; return (input, errorFactory) => {
766
+ if (false === __is(input)) {
767
+ _errorFactory = errorFactory;
768
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
769
+ method: "createAssert",
770
+ path: _path + "",
771
+ expected: "KeetaStorageAnchorQuotaRequest",
772
+ value: input
773
+ }, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
774
+ method: "createAssert",
775
+ path: _path + "",
776
+ expected: "KeetaStorageAnchorQuotaRequest",
777
+ value: input
778
+ }, _errorFactory))(input, "$input", true);
779
+ }
780
+ return input;
781
+ }; })();
782
+ export const assertKeetaStorageAnchorQuotaResponse = (() => { const _io0 = input => false === input.ok && "string" === typeof input.error; const _io1 = input => true === input.ok && ("object" === typeof input.quota && null !== input.quota && _io2(input.quota)); const _io2 = input => "number" === typeof input.objectCount && "number" === typeof input.totalSize && (undefined === input.remainingObjects || "number" === typeof input.remainingObjects) && (undefined === input.remainingSize || "number" === typeof input.remainingSize); const _iu0 = input => (() => {
783
+ if (false === input.ok)
784
+ return _io0(input);
785
+ else if (true === input.ok)
786
+ return _io1(input);
787
+ else
788
+ return false;
789
+ })(); const _ao0 = (input, _path, _exceptionable = true) => (false === input.ok || __typia_transform__assertGuard._assertGuard(_exceptionable, {
790
+ method: "createAssert",
791
+ path: _path + ".ok",
792
+ expected: "false",
793
+ value: input.ok
794
+ }, _errorFactory)) && ("string" === typeof input.error || __typia_transform__assertGuard._assertGuard(_exceptionable, {
795
+ method: "createAssert",
796
+ path: _path + ".error",
797
+ expected: "string",
798
+ value: input.error
799
+ }, _errorFactory)); const _ao1 = (input, _path, _exceptionable = true) => (true === input.ok || __typia_transform__assertGuard._assertGuard(_exceptionable, {
800
+ method: "createAssert",
801
+ path: _path + ".ok",
802
+ expected: "true",
803
+ value: input.ok
804
+ }, _errorFactory)) && (("object" === typeof input.quota && null !== input.quota || __typia_transform__assertGuard._assertGuard(_exceptionable, {
805
+ method: "createAssert",
806
+ path: _path + ".quota",
807
+ expected: "QuotaStatus",
808
+ value: input.quota
809
+ }, _errorFactory)) && _ao2(input.quota, _path + ".quota", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
810
+ method: "createAssert",
811
+ path: _path + ".quota",
812
+ expected: "QuotaStatus",
813
+ value: input.quota
814
+ }, _errorFactory)); const _ao2 = (input, _path, _exceptionable = true) => ("number" === typeof input.objectCount || __typia_transform__assertGuard._assertGuard(_exceptionable, {
815
+ method: "createAssert",
816
+ path: _path + ".objectCount",
817
+ expected: "number",
818
+ value: input.objectCount
819
+ }, _errorFactory)) && ("number" === typeof input.totalSize || __typia_transform__assertGuard._assertGuard(_exceptionable, {
820
+ method: "createAssert",
821
+ path: _path + ".totalSize",
822
+ expected: "number",
823
+ value: input.totalSize
824
+ }, _errorFactory)) && (undefined === input.remainingObjects || "number" === typeof input.remainingObjects || __typia_transform__assertGuard._assertGuard(_exceptionable, {
825
+ method: "createAssert",
826
+ path: _path + ".remainingObjects",
827
+ expected: "(number | undefined)",
828
+ value: input.remainingObjects
829
+ }, _errorFactory)) && (undefined === input.remainingSize || "number" === typeof input.remainingSize || __typia_transform__assertGuard._assertGuard(_exceptionable, {
830
+ method: "createAssert",
831
+ path: _path + ".remainingSize",
832
+ expected: "(number | undefined)",
833
+ value: input.remainingSize
834
+ }, _errorFactory)); const _au0 = (input, _path, _exceptionable = true) => (() => {
835
+ if (false === input.ok)
836
+ return _ao0(input, _path, true && _exceptionable);
837
+ else if (true === input.ok)
838
+ return _ao1(input, _path, true && _exceptionable);
839
+ else
840
+ return __typia_transform__assertGuard._assertGuard(_exceptionable, {
841
+ method: "createAssert",
842
+ path: _path,
843
+ expected: "(__type | { ok: true; } & { quota: QuotaStatus; })",
844
+ value: input
845
+ }, _errorFactory);
846
+ })(); const __is = input => "object" === typeof input && null !== input && _iu0(input); let _errorFactory; return (input, errorFactory) => {
847
+ if (false === __is(input)) {
848
+ _errorFactory = errorFactory;
849
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
850
+ method: "createAssert",
851
+ path: _path + "",
852
+ expected: "(__type | { ok: true; } & { quota: QuotaStatus; })",
853
+ value: input
854
+ }, _errorFactory)) && _au0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
855
+ method: "createAssert",
856
+ path: _path + "",
857
+ expected: "(__type | { ok: true; } & { quota: QuotaStatus; })",
858
+ value: input
859
+ }, _errorFactory))(input, "$input", true);
860
+ }
861
+ return input;
862
+ }; })();
863
+ //# sourceMappingURL=common.generated.js.map