@junobuild/functions 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +356 -365
- package/chunk-CCKUQNB5.js +2 -0
- package/chunk-CCKUQNB5.js.map +7 -0
- package/chunk-SFZECPH3.js +2 -0
- package/chunk-SFZECPH3.js.map +7 -0
- package/hooks/assertions.d.ts +6958 -382
- package/hooks/hooks.d.ts +10237 -626
- package/hooks/schemas/collections.d.ts +7 -3
- package/hooks/schemas/context.d.ts +13 -6
- package/hooks/schemas/db/context.d.ts +3332 -87
- package/hooks/schemas/db/payload.d.ts +173 -19
- package/hooks/schemas/satellite.env.d.ts +2 -2
- package/hooks/schemas/storage/context.d.ts +1861 -111
- package/hooks/schemas/storage/payload.d.ts +203 -29
- package/ic-cdk/schemas/call.d.ts +19 -9
- package/ic-cdk.js +1 -1
- package/ic-cdk.js.map +2 -2
- package/index.js +1 -1
- package/index.js.map +4 -4
- package/package.json +1 -1
- package/schemas/candid.d.ts +4 -4
- package/schemas/db.d.ts +51 -11
- package/schemas/list.d.ts +303 -51
- package/schemas/satellite.d.ts +3 -3
- package/schemas/storage.d.ts +312 -66
- package/sdk/schemas/collections.d.ts +2 -5
- package/sdk/schemas/controllers.d.ts +85 -39
- package/sdk/schemas/db.d.ts +874 -152
- package/sdk/schemas/params.d.ts +247 -24
- package/sdk/schemas/storage.d.ts +830 -86
- package/sdk.js +1 -1
- package/sdk.js.map +2 -2
- package/chunk-KY6LCVKU.js +0 -2
- package/chunk-KY6LCVKU.js.map +0 -7
- package/chunk-R6MTJSTE.js +0 -2
- package/chunk-R6MTJSTE.js.map +0 -7
- package/utils/zod.utils.d.ts +0 -2
package/schemas/db.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as z from 'zod
|
|
1
|
+
import * as z from 'zod';
|
|
2
2
|
import { Uint8ArraySchema } from './candid';
|
|
3
3
|
import { type Description, type RawUserId, type Timestamp, type Version } from './satellite';
|
|
4
4
|
/**
|
|
5
5
|
* @see RawData
|
|
6
6
|
*/
|
|
7
|
-
export declare const RawDataSchema: z.
|
|
7
|
+
export declare const RawDataSchema: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
|
|
8
8
|
/**
|
|
9
9
|
* Represents raw binary data.
|
|
10
10
|
*
|
|
@@ -15,13 +15,27 @@ export type RawData = z.infer<typeof Uint8ArraySchema>;
|
|
|
15
15
|
* @see Doc
|
|
16
16
|
*/
|
|
17
17
|
export declare const DocSchema: z.ZodObject<{
|
|
18
|
-
owner: z.
|
|
19
|
-
data: z.
|
|
18
|
+
owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
|
|
19
|
+
data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
|
|
20
20
|
description: z.ZodOptional<z.ZodString>;
|
|
21
21
|
created_at: z.ZodBigInt;
|
|
22
22
|
updated_at: z.ZodBigInt;
|
|
23
23
|
version: z.ZodOptional<z.ZodBigInt>;
|
|
24
|
-
}, z.
|
|
24
|
+
}, "strict", z.ZodTypeAny, {
|
|
25
|
+
owner: Uint8Array<ArrayBufferLike>;
|
|
26
|
+
data: Uint8Array<ArrayBufferLike>;
|
|
27
|
+
created_at: bigint;
|
|
28
|
+
updated_at: bigint;
|
|
29
|
+
description?: string | undefined;
|
|
30
|
+
version?: bigint | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
owner: Uint8Array<ArrayBufferLike>;
|
|
33
|
+
data: Uint8Array<ArrayBufferLike>;
|
|
34
|
+
created_at: bigint;
|
|
35
|
+
updated_at: bigint;
|
|
36
|
+
description?: string | undefined;
|
|
37
|
+
version?: bigint | undefined;
|
|
38
|
+
}>;
|
|
25
39
|
/**
|
|
26
40
|
* Represents a document stored in a collection.
|
|
27
41
|
*/
|
|
@@ -56,13 +70,27 @@ export interface Doc {
|
|
|
56
70
|
* @see OptionDoc
|
|
57
71
|
*/
|
|
58
72
|
export declare const OptionDocSchema: z.ZodOptional<z.ZodObject<{
|
|
59
|
-
owner: z.
|
|
60
|
-
data: z.
|
|
73
|
+
owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
|
|
74
|
+
data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
|
|
61
75
|
description: z.ZodOptional<z.ZodString>;
|
|
62
76
|
created_at: z.ZodBigInt;
|
|
63
77
|
updated_at: z.ZodBigInt;
|
|
64
78
|
version: z.ZodOptional<z.ZodBigInt>;
|
|
65
|
-
}, z.
|
|
79
|
+
}, "strict", z.ZodTypeAny, {
|
|
80
|
+
owner: Uint8Array<ArrayBufferLike>;
|
|
81
|
+
data: Uint8Array<ArrayBufferLike>;
|
|
82
|
+
created_at: bigint;
|
|
83
|
+
updated_at: bigint;
|
|
84
|
+
description?: string | undefined;
|
|
85
|
+
version?: bigint | undefined;
|
|
86
|
+
}, {
|
|
87
|
+
owner: Uint8Array<ArrayBufferLike>;
|
|
88
|
+
data: Uint8Array<ArrayBufferLike>;
|
|
89
|
+
created_at: bigint;
|
|
90
|
+
updated_at: bigint;
|
|
91
|
+
description?: string | undefined;
|
|
92
|
+
version?: bigint | undefined;
|
|
93
|
+
}>>;
|
|
66
94
|
/**
|
|
67
95
|
* A shorthand for a document that might or not be defined.
|
|
68
96
|
*/
|
|
@@ -71,10 +99,18 @@ export type OptionDoc = Doc | undefined;
|
|
|
71
99
|
* @see SetDoc
|
|
72
100
|
*/
|
|
73
101
|
export declare const SetDocSchema: z.ZodObject<{
|
|
74
|
-
data: z.
|
|
102
|
+
data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
|
|
75
103
|
description: z.ZodOptional<z.ZodString>;
|
|
76
104
|
version: z.ZodOptional<z.ZodBigInt>;
|
|
77
|
-
}, z.
|
|
105
|
+
}, "strict", z.ZodTypeAny, {
|
|
106
|
+
data: Uint8Array<ArrayBufferLike>;
|
|
107
|
+
description?: string | undefined;
|
|
108
|
+
version?: bigint | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
data: Uint8Array<ArrayBufferLike>;
|
|
111
|
+
description?: string | undefined;
|
|
112
|
+
version?: bigint | undefined;
|
|
113
|
+
}>;
|
|
78
114
|
/**
|
|
79
115
|
* Represents the proposed version of a document to be created or updated.
|
|
80
116
|
* This can be validated before allowing the operation.
|
|
@@ -98,7 +134,11 @@ export interface SetDoc {
|
|
|
98
134
|
*/
|
|
99
135
|
export declare const DelDocSchema: z.ZodObject<{
|
|
100
136
|
version: z.ZodOptional<z.ZodBigInt>;
|
|
101
|
-
}, z.
|
|
137
|
+
}, "strict", z.ZodTypeAny, {
|
|
138
|
+
version?: bigint | undefined;
|
|
139
|
+
}, {
|
|
140
|
+
version?: bigint | undefined;
|
|
141
|
+
}>;
|
|
102
142
|
/**
|
|
103
143
|
* Represents the proposed version of a document to be deleted.
|
|
104
144
|
* This can be validated before allowing the operation.
|
package/schemas/list.d.ts
CHANGED
|
@@ -1,17 +1,33 @@
|
|
|
1
|
-
import * as z from 'zod
|
|
1
|
+
import * as z from 'zod';
|
|
2
2
|
import { type Description, type Key, type RawUserId, type Timestamp } from './satellite';
|
|
3
3
|
/**
|
|
4
4
|
* @see TimestampMatcher
|
|
5
5
|
*/
|
|
6
|
-
export declare const TimestampMatcherSchema: z.ZodUnion<
|
|
6
|
+
export declare const TimestampMatcherSchema: z.ZodUnion<[z.ZodObject<{
|
|
7
7
|
equal: z.ZodBigInt;
|
|
8
|
-
},
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
equal: bigint;
|
|
10
|
+
}, {
|
|
11
|
+
equal: bigint;
|
|
12
|
+
}>, z.ZodObject<{
|
|
9
13
|
greater_than: z.ZodBigInt;
|
|
10
|
-
},
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
greater_than: bigint;
|
|
16
|
+
}, {
|
|
17
|
+
greater_than: bigint;
|
|
18
|
+
}>, z.ZodObject<{
|
|
11
19
|
less_than: z.ZodBigInt;
|
|
12
|
-
},
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
less_than: bigint;
|
|
22
|
+
}, {
|
|
23
|
+
less_than: bigint;
|
|
24
|
+
}>, z.ZodObject<{
|
|
13
25
|
between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>;
|
|
14
|
-
}, z.
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
between: [bigint, bigint];
|
|
28
|
+
}, {
|
|
29
|
+
between: [bigint, bigint];
|
|
30
|
+
}>]>;
|
|
15
31
|
/**
|
|
16
32
|
* TimestampMatcher matches a timestamp field using a specific strategy.
|
|
17
33
|
*/
|
|
@@ -30,25 +46,99 @@ export type TimestampMatcher = {
|
|
|
30
46
|
export declare const ListMatcherSchema: z.ZodObject<{
|
|
31
47
|
key: z.ZodOptional<z.ZodString>;
|
|
32
48
|
description: z.ZodOptional<z.ZodString>;
|
|
33
|
-
created_at: z.ZodOptional<z.ZodUnion<
|
|
49
|
+
created_at: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
34
50
|
equal: z.ZodBigInt;
|
|
35
|
-
},
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
equal: bigint;
|
|
53
|
+
}, {
|
|
54
|
+
equal: bigint;
|
|
55
|
+
}>, z.ZodObject<{
|
|
36
56
|
greater_than: z.ZodBigInt;
|
|
37
|
-
},
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
greater_than: bigint;
|
|
59
|
+
}, {
|
|
60
|
+
greater_than: bigint;
|
|
61
|
+
}>, z.ZodObject<{
|
|
38
62
|
less_than: z.ZodBigInt;
|
|
39
|
-
},
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
less_than: bigint;
|
|
65
|
+
}, {
|
|
66
|
+
less_than: bigint;
|
|
67
|
+
}>, z.ZodObject<{
|
|
40
68
|
between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>;
|
|
41
|
-
}, z.
|
|
42
|
-
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
between: [bigint, bigint];
|
|
71
|
+
}, {
|
|
72
|
+
between: [bigint, bigint];
|
|
73
|
+
}>]>>;
|
|
74
|
+
updated_at: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
43
75
|
equal: z.ZodBigInt;
|
|
44
|
-
},
|
|
76
|
+
}, "strip", z.ZodTypeAny, {
|
|
77
|
+
equal: bigint;
|
|
78
|
+
}, {
|
|
79
|
+
equal: bigint;
|
|
80
|
+
}>, z.ZodObject<{
|
|
45
81
|
greater_than: z.ZodBigInt;
|
|
46
|
-
},
|
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
|
83
|
+
greater_than: bigint;
|
|
84
|
+
}, {
|
|
85
|
+
greater_than: bigint;
|
|
86
|
+
}>, z.ZodObject<{
|
|
47
87
|
less_than: z.ZodBigInt;
|
|
48
|
-
},
|
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
less_than: bigint;
|
|
90
|
+
}, {
|
|
91
|
+
less_than: bigint;
|
|
92
|
+
}>, z.ZodObject<{
|
|
49
93
|
between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>;
|
|
50
|
-
}, z.
|
|
51
|
-
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
between: [bigint, bigint];
|
|
96
|
+
}, {
|
|
97
|
+
between: [bigint, bigint];
|
|
98
|
+
}>]>>;
|
|
99
|
+
}, "strict", z.ZodTypeAny, {
|
|
100
|
+
description?: string | undefined;
|
|
101
|
+
created_at?: {
|
|
102
|
+
equal: bigint;
|
|
103
|
+
} | {
|
|
104
|
+
greater_than: bigint;
|
|
105
|
+
} | {
|
|
106
|
+
less_than: bigint;
|
|
107
|
+
} | {
|
|
108
|
+
between: [bigint, bigint];
|
|
109
|
+
} | undefined;
|
|
110
|
+
updated_at?: {
|
|
111
|
+
equal: bigint;
|
|
112
|
+
} | {
|
|
113
|
+
greater_than: bigint;
|
|
114
|
+
} | {
|
|
115
|
+
less_than: bigint;
|
|
116
|
+
} | {
|
|
117
|
+
between: [bigint, bigint];
|
|
118
|
+
} | undefined;
|
|
119
|
+
key?: string | undefined;
|
|
120
|
+
}, {
|
|
121
|
+
description?: string | undefined;
|
|
122
|
+
created_at?: {
|
|
123
|
+
equal: bigint;
|
|
124
|
+
} | {
|
|
125
|
+
greater_than: bigint;
|
|
126
|
+
} | {
|
|
127
|
+
less_than: bigint;
|
|
128
|
+
} | {
|
|
129
|
+
between: [bigint, bigint];
|
|
130
|
+
} | undefined;
|
|
131
|
+
updated_at?: {
|
|
132
|
+
equal: bigint;
|
|
133
|
+
} | {
|
|
134
|
+
greater_than: bigint;
|
|
135
|
+
} | {
|
|
136
|
+
less_than: bigint;
|
|
137
|
+
} | {
|
|
138
|
+
between: [bigint, bigint];
|
|
139
|
+
} | undefined;
|
|
140
|
+
key?: string | undefined;
|
|
141
|
+
}>;
|
|
52
142
|
/**
|
|
53
143
|
* Matcher used to filter list results.
|
|
54
144
|
*/
|
|
@@ -64,7 +154,13 @@ export interface ListMatcher {
|
|
|
64
154
|
export declare const ListPaginateSchema: z.ZodObject<{
|
|
65
155
|
start_after: z.ZodOptional<z.ZodString>;
|
|
66
156
|
limit: z.ZodOptional<z.ZodBigInt>;
|
|
67
|
-
}, z.
|
|
157
|
+
}, "strict", z.ZodTypeAny, {
|
|
158
|
+
start_after?: string | undefined;
|
|
159
|
+
limit?: bigint | undefined;
|
|
160
|
+
}, {
|
|
161
|
+
start_after?: string | undefined;
|
|
162
|
+
limit?: bigint | undefined;
|
|
163
|
+
}>;
|
|
68
164
|
/**
|
|
69
165
|
* Optional pagination controls for listing.
|
|
70
166
|
*/
|
|
@@ -75,11 +171,7 @@ export interface ListPaginate {
|
|
|
75
171
|
/**
|
|
76
172
|
* @see ListOrderField
|
|
77
173
|
*/
|
|
78
|
-
export declare const ListOrderFieldSchema: z.ZodEnum<
|
|
79
|
-
created_at: "created_at";
|
|
80
|
-
updated_at: "updated_at";
|
|
81
|
-
keys: "keys";
|
|
82
|
-
}>;
|
|
174
|
+
export declare const ListOrderFieldSchema: z.ZodEnum<["keys", "created_at", "updated_at"]>;
|
|
83
175
|
/**
|
|
84
176
|
* Enum representing possible fields to order by.
|
|
85
177
|
*/
|
|
@@ -89,12 +181,14 @@ export type ListOrderField = 'keys' | 'updated_at' | 'created_at';
|
|
|
89
181
|
*/
|
|
90
182
|
export declare const ListOrderSchema: z.ZodObject<{
|
|
91
183
|
desc: z.ZodBoolean;
|
|
92
|
-
field: z.ZodEnum<
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
184
|
+
field: z.ZodEnum<["keys", "created_at", "updated_at"]>;
|
|
185
|
+
}, "strict", z.ZodTypeAny, {
|
|
186
|
+
desc: boolean;
|
|
187
|
+
field: "keys" | "created_at" | "updated_at";
|
|
188
|
+
}, {
|
|
189
|
+
desc: boolean;
|
|
190
|
+
field: "keys" | "created_at" | "updated_at";
|
|
191
|
+
}>;
|
|
98
192
|
/**
|
|
99
193
|
* Ordering strategy for listing documents.
|
|
100
194
|
*/
|
|
@@ -109,39 +203,185 @@ export declare const ListParamsSchema: z.ZodObject<{
|
|
|
109
203
|
matcher: z.ZodOptional<z.ZodObject<{
|
|
110
204
|
key: z.ZodOptional<z.ZodString>;
|
|
111
205
|
description: z.ZodOptional<z.ZodString>;
|
|
112
|
-
created_at: z.ZodOptional<z.ZodUnion<
|
|
206
|
+
created_at: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
113
207
|
equal: z.ZodBigInt;
|
|
114
|
-
},
|
|
208
|
+
}, "strip", z.ZodTypeAny, {
|
|
209
|
+
equal: bigint;
|
|
210
|
+
}, {
|
|
211
|
+
equal: bigint;
|
|
212
|
+
}>, z.ZodObject<{
|
|
115
213
|
greater_than: z.ZodBigInt;
|
|
116
|
-
},
|
|
214
|
+
}, "strip", z.ZodTypeAny, {
|
|
215
|
+
greater_than: bigint;
|
|
216
|
+
}, {
|
|
217
|
+
greater_than: bigint;
|
|
218
|
+
}>, z.ZodObject<{
|
|
117
219
|
less_than: z.ZodBigInt;
|
|
118
|
-
},
|
|
220
|
+
}, "strip", z.ZodTypeAny, {
|
|
221
|
+
less_than: bigint;
|
|
222
|
+
}, {
|
|
223
|
+
less_than: bigint;
|
|
224
|
+
}>, z.ZodObject<{
|
|
119
225
|
between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>;
|
|
120
|
-
}, z.
|
|
121
|
-
|
|
226
|
+
}, "strip", z.ZodTypeAny, {
|
|
227
|
+
between: [bigint, bigint];
|
|
228
|
+
}, {
|
|
229
|
+
between: [bigint, bigint];
|
|
230
|
+
}>]>>;
|
|
231
|
+
updated_at: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
122
232
|
equal: z.ZodBigInt;
|
|
123
|
-
},
|
|
233
|
+
}, "strip", z.ZodTypeAny, {
|
|
234
|
+
equal: bigint;
|
|
235
|
+
}, {
|
|
236
|
+
equal: bigint;
|
|
237
|
+
}>, z.ZodObject<{
|
|
124
238
|
greater_than: z.ZodBigInt;
|
|
125
|
-
},
|
|
239
|
+
}, "strip", z.ZodTypeAny, {
|
|
240
|
+
greater_than: bigint;
|
|
241
|
+
}, {
|
|
242
|
+
greater_than: bigint;
|
|
243
|
+
}>, z.ZodObject<{
|
|
126
244
|
less_than: z.ZodBigInt;
|
|
127
|
-
},
|
|
245
|
+
}, "strip", z.ZodTypeAny, {
|
|
246
|
+
less_than: bigint;
|
|
247
|
+
}, {
|
|
248
|
+
less_than: bigint;
|
|
249
|
+
}>, z.ZodObject<{
|
|
128
250
|
between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>;
|
|
129
|
-
}, z.
|
|
130
|
-
|
|
251
|
+
}, "strip", z.ZodTypeAny, {
|
|
252
|
+
between: [bigint, bigint];
|
|
253
|
+
}, {
|
|
254
|
+
between: [bigint, bigint];
|
|
255
|
+
}>]>>;
|
|
256
|
+
}, "strict", z.ZodTypeAny, {
|
|
257
|
+
description?: string | undefined;
|
|
258
|
+
created_at?: {
|
|
259
|
+
equal: bigint;
|
|
260
|
+
} | {
|
|
261
|
+
greater_than: bigint;
|
|
262
|
+
} | {
|
|
263
|
+
less_than: bigint;
|
|
264
|
+
} | {
|
|
265
|
+
between: [bigint, bigint];
|
|
266
|
+
} | undefined;
|
|
267
|
+
updated_at?: {
|
|
268
|
+
equal: bigint;
|
|
269
|
+
} | {
|
|
270
|
+
greater_than: bigint;
|
|
271
|
+
} | {
|
|
272
|
+
less_than: bigint;
|
|
273
|
+
} | {
|
|
274
|
+
between: [bigint, bigint];
|
|
275
|
+
} | undefined;
|
|
276
|
+
key?: string | undefined;
|
|
277
|
+
}, {
|
|
278
|
+
description?: string | undefined;
|
|
279
|
+
created_at?: {
|
|
280
|
+
equal: bigint;
|
|
281
|
+
} | {
|
|
282
|
+
greater_than: bigint;
|
|
283
|
+
} | {
|
|
284
|
+
less_than: bigint;
|
|
285
|
+
} | {
|
|
286
|
+
between: [bigint, bigint];
|
|
287
|
+
} | undefined;
|
|
288
|
+
updated_at?: {
|
|
289
|
+
equal: bigint;
|
|
290
|
+
} | {
|
|
291
|
+
greater_than: bigint;
|
|
292
|
+
} | {
|
|
293
|
+
less_than: bigint;
|
|
294
|
+
} | {
|
|
295
|
+
between: [bigint, bigint];
|
|
296
|
+
} | undefined;
|
|
297
|
+
key?: string | undefined;
|
|
298
|
+
}>>;
|
|
131
299
|
paginate: z.ZodOptional<z.ZodObject<{
|
|
132
300
|
start_after: z.ZodOptional<z.ZodString>;
|
|
133
301
|
limit: z.ZodOptional<z.ZodBigInt>;
|
|
134
|
-
}, z.
|
|
302
|
+
}, "strict", z.ZodTypeAny, {
|
|
303
|
+
start_after?: string | undefined;
|
|
304
|
+
limit?: bigint | undefined;
|
|
305
|
+
}, {
|
|
306
|
+
start_after?: string | undefined;
|
|
307
|
+
limit?: bigint | undefined;
|
|
308
|
+
}>>;
|
|
135
309
|
order: z.ZodOptional<z.ZodObject<{
|
|
136
310
|
desc: z.ZodBoolean;
|
|
137
|
-
field: z.ZodEnum<
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
311
|
+
field: z.ZodEnum<["keys", "created_at", "updated_at"]>;
|
|
312
|
+
}, "strict", z.ZodTypeAny, {
|
|
313
|
+
desc: boolean;
|
|
314
|
+
field: "keys" | "created_at" | "updated_at";
|
|
315
|
+
}, {
|
|
316
|
+
desc: boolean;
|
|
317
|
+
field: "keys" | "created_at" | "updated_at";
|
|
318
|
+
}>>;
|
|
319
|
+
owner: z.ZodOptional<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>>;
|
|
320
|
+
}, "strict", z.ZodTypeAny, {
|
|
321
|
+
owner?: Uint8Array<ArrayBufferLike> | undefined;
|
|
322
|
+
matcher?: {
|
|
323
|
+
description?: string | undefined;
|
|
324
|
+
created_at?: {
|
|
325
|
+
equal: bigint;
|
|
326
|
+
} | {
|
|
327
|
+
greater_than: bigint;
|
|
328
|
+
} | {
|
|
329
|
+
less_than: bigint;
|
|
330
|
+
} | {
|
|
331
|
+
between: [bigint, bigint];
|
|
332
|
+
} | undefined;
|
|
333
|
+
updated_at?: {
|
|
334
|
+
equal: bigint;
|
|
335
|
+
} | {
|
|
336
|
+
greater_than: bigint;
|
|
337
|
+
} | {
|
|
338
|
+
less_than: bigint;
|
|
339
|
+
} | {
|
|
340
|
+
between: [bigint, bigint];
|
|
341
|
+
} | undefined;
|
|
342
|
+
key?: string | undefined;
|
|
343
|
+
} | undefined;
|
|
344
|
+
paginate?: {
|
|
345
|
+
start_after?: string | undefined;
|
|
346
|
+
limit?: bigint | undefined;
|
|
347
|
+
} | undefined;
|
|
348
|
+
order?: {
|
|
349
|
+
desc: boolean;
|
|
350
|
+
field: "keys" | "created_at" | "updated_at";
|
|
351
|
+
} | undefined;
|
|
352
|
+
}, {
|
|
353
|
+
owner?: Uint8Array<ArrayBufferLike> | undefined;
|
|
354
|
+
matcher?: {
|
|
355
|
+
description?: string | undefined;
|
|
356
|
+
created_at?: {
|
|
357
|
+
equal: bigint;
|
|
358
|
+
} | {
|
|
359
|
+
greater_than: bigint;
|
|
360
|
+
} | {
|
|
361
|
+
less_than: bigint;
|
|
362
|
+
} | {
|
|
363
|
+
between: [bigint, bigint];
|
|
364
|
+
} | undefined;
|
|
365
|
+
updated_at?: {
|
|
366
|
+
equal: bigint;
|
|
367
|
+
} | {
|
|
368
|
+
greater_than: bigint;
|
|
369
|
+
} | {
|
|
370
|
+
less_than: bigint;
|
|
371
|
+
} | {
|
|
372
|
+
between: [bigint, bigint];
|
|
373
|
+
} | undefined;
|
|
374
|
+
key?: string | undefined;
|
|
375
|
+
} | undefined;
|
|
376
|
+
paginate?: {
|
|
377
|
+
start_after?: string | undefined;
|
|
378
|
+
limit?: bigint | undefined;
|
|
379
|
+
} | undefined;
|
|
380
|
+
order?: {
|
|
381
|
+
desc: boolean;
|
|
382
|
+
field: "keys" | "created_at" | "updated_at";
|
|
383
|
+
} | undefined;
|
|
384
|
+
}>;
|
|
145
385
|
/**
|
|
146
386
|
* Full set of listing parameters.
|
|
147
387
|
*/
|
|
@@ -158,12 +398,24 @@ export interface ListParams {
|
|
|
158
398
|
* @see JsListResults
|
|
159
399
|
*/
|
|
160
400
|
export declare const createListResultsSchema: <T extends z.ZodTypeAny>(itemData: T) => z.ZodObject<{
|
|
161
|
-
items: z.ZodArray<z.ZodTuple<[z.ZodString, T], null
|
|
401
|
+
items: z.ZodArray<z.ZodTuple<[z.ZodString, T], null>, "many">;
|
|
162
402
|
items_length: z.ZodBigInt;
|
|
163
403
|
items_page: z.ZodOptional<z.ZodBigInt>;
|
|
164
404
|
matches_length: z.ZodBigInt;
|
|
165
405
|
matches_pages: z.ZodOptional<z.ZodBigInt>;
|
|
166
|
-
}, z.
|
|
406
|
+
}, "strict", z.ZodTypeAny, {
|
|
407
|
+
items: [string, T extends z.ZodType<any, any, any> ? T["_output"] : never][];
|
|
408
|
+
items_length: bigint;
|
|
409
|
+
matches_length: bigint;
|
|
410
|
+
items_page?: bigint | undefined;
|
|
411
|
+
matches_pages?: bigint | undefined;
|
|
412
|
+
}, {
|
|
413
|
+
items: [string, T extends z.ZodType<any, any, any> ? T["_input"] : never][];
|
|
414
|
+
items_length: bigint;
|
|
415
|
+
matches_length: bigint;
|
|
416
|
+
items_page?: bigint | undefined;
|
|
417
|
+
matches_pages?: bigint | undefined;
|
|
418
|
+
}>;
|
|
167
419
|
/**
|
|
168
420
|
* List results, parameterized by type of returned item.
|
|
169
421
|
*/
|
package/schemas/satellite.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as z from 'zod
|
|
1
|
+
import * as z from 'zod';
|
|
2
2
|
/**
|
|
3
3
|
* @see Timestamp
|
|
4
4
|
*/
|
|
@@ -22,7 +22,7 @@ export type Version = z.infer<typeof VersionSchema>;
|
|
|
22
22
|
/**
|
|
23
23
|
* @see RawUserId
|
|
24
24
|
*/
|
|
25
|
-
export declare const RawUserIdSchema: z.
|
|
25
|
+
export declare const RawUserIdSchema: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
|
|
26
26
|
/**
|
|
27
27
|
* Represents a raw user identifier.
|
|
28
28
|
*
|
|
@@ -32,7 +32,7 @@ export type RawUserId = z.infer<typeof RawUserIdSchema>;
|
|
|
32
32
|
/**
|
|
33
33
|
* @see UserId
|
|
34
34
|
*/
|
|
35
|
-
export declare const UserIdSchema: z.
|
|
35
|
+
export declare const UserIdSchema: z.ZodType<import("@dfinity/principal").Principal, z.ZodTypeDef, import("@dfinity/principal").Principal>;
|
|
36
36
|
/**
|
|
37
37
|
* Represents a user identifier.
|
|
38
38
|
*
|