@junobuild/functions 0.5.3 → 0.5.4
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/canisters/declarations/cmc/cmc.did.idl.d.ts +1 -1
- package/canisters/ledger/icrc/schemas.d.ts +1 -1
- package/canisters/schemas.d.ts +1 -1
- package/package.json +3 -3
- package/schemas/satellite.d.ts +1 -1
- package/sdk/schemas/controllers.d.ts +1 -1
- package/sdk/schemas/db.d.ts +6 -6
- package/sdk/schemas/params.d.ts +1 -1
- package/sdk/schemas/storage.d.ts +6 -6
|
@@ -33,7 +33,7 @@ export const idlService: IDL.ServiceClass<string, {
|
|
|
33
33
|
change_subnet_type_assignment: IDL.FuncClass<[IDL.VariantClass], []>;
|
|
34
34
|
create_canister: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
35
35
|
get_build_metadata: IDL.FuncClass<[], [IDL.TextClass]>;
|
|
36
|
-
get_default_subnets: IDL.FuncClass<[], [IDL.VecClass<import("@
|
|
36
|
+
get_default_subnets: IDL.FuncClass<[], [IDL.VecClass<import("@icp-sdk/core/principal").Principal>]>;
|
|
37
37
|
get_icp_xdr_conversion_rate: IDL.FuncClass<[], [IDL.RecordClass]>;
|
|
38
38
|
get_principals_authorized_to_create_canisters_to_subnets: IDL.FuncClass<[], [IDL.RecordClass]>;
|
|
39
39
|
get_subnet_types_to_subnets: IDL.FuncClass<[], [IDL.RecordClass]>;
|
|
@@ -3,7 +3,7 @@ import type * as z from 'zod';
|
|
|
3
3
|
* @see CanisterOptions
|
|
4
4
|
*/
|
|
5
5
|
export declare const IcrcCanisterOptionsSchema: z.ZodObject<{
|
|
6
|
-
canisterId: z.ZodNonOptional<z.ZodOptional<z.ZodCustom<import("@
|
|
6
|
+
canisterId: z.ZodNonOptional<z.ZodOptional<z.ZodCustom<import("@icp-sdk/core/principal").Principal, import("@icp-sdk/core/principal").Principal>>>;
|
|
7
7
|
}, z.core.$strict>;
|
|
8
8
|
/**
|
|
9
9
|
* The options to initialize an Icrc canister.
|
package/canisters/schemas.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as z from 'zod';
|
|
|
3
3
|
* @see CanisterOptions
|
|
4
4
|
*/
|
|
5
5
|
export declare const CanisterOptionsSchema: z.ZodObject<{
|
|
6
|
-
canisterId: z.ZodOptional<z.ZodCustom<import("@
|
|
6
|
+
canisterId: z.ZodOptional<z.ZodCustom<import("@icp-sdk/core/principal").Principal, import("@icp-sdk/core/principal").Principal>>;
|
|
7
7
|
}, z.core.$strict>;
|
|
8
8
|
/**
|
|
9
9
|
* The options to initialize a canister.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@junobuild/functions",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "JavaScript and TypeScript utilities for Juno Serverless Functions",
|
|
5
5
|
"author": "David Dal Busco (https://daviddalbusco.com)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
],
|
|
95
95
|
"homepage": "https://juno.build",
|
|
96
96
|
"peerDependencies": {
|
|
97
|
-
"@dfinity/utils": "4.
|
|
98
|
-
"@icp-sdk/core": "^
|
|
97
|
+
"@dfinity/utils": "^4.1",
|
|
98
|
+
"@icp-sdk/core": "^5",
|
|
99
99
|
"zod": "^4"
|
|
100
100
|
}
|
|
101
101
|
}
|
package/schemas/satellite.d.ts
CHANGED
|
@@ -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.ZodCustom<import("@
|
|
35
|
+
export declare const UserIdSchema: z.ZodCustom<import("@icp-sdk/core/principal").Principal, import("@icp-sdk/core/principal").Principal>;
|
|
36
36
|
/**
|
|
37
37
|
* Represents a user identifier.
|
|
38
38
|
*
|
|
@@ -100,7 +100,7 @@ export type Controllers = z.infer<typeof ControllersSchema>;
|
|
|
100
100
|
* @see ControllerCheckParamsSchema
|
|
101
101
|
*/
|
|
102
102
|
export declare const ControllerCheckParamsSchema: z.ZodObject<{
|
|
103
|
-
caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@
|
|
103
|
+
caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@icp-sdk/core/principal").Principal, import("@icp-sdk/core/principal").Principal>]>;
|
|
104
104
|
controllers: z.ZodArray<z.ZodTuple<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodObject<{
|
|
105
105
|
metadata: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
|
|
106
106
|
created_at: z.ZodBigInt;
|
package/sdk/schemas/db.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { type CollectionParams, type ListStoreParams } from './params';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const GetDocStoreParamsSchema: import("zod").ZodObject<{
|
|
8
8
|
collection: import("zod").ZodString;
|
|
9
|
-
caller: import("zod").ZodUnion<[import("zod").ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, import("zod").ZodCustom<import("@
|
|
9
|
+
caller: import("zod").ZodUnion<[import("zod").ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, import("zod").ZodCustom<import("@icp-sdk/core/principal").Principal, import("@icp-sdk/core/principal").Principal>]>;
|
|
10
10
|
key: import("zod").ZodString;
|
|
11
11
|
}, import("zod/v4/core").$strict>;
|
|
12
12
|
/**
|
|
@@ -27,7 +27,7 @@ export type GetDocStoreParams = CollectionParams & {
|
|
|
27
27
|
*/
|
|
28
28
|
export declare const SetDocStoreParamsSchema: import("zod").ZodObject<{
|
|
29
29
|
collection: import("zod").ZodString;
|
|
30
|
-
caller: import("zod").ZodUnion<[import("zod").ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, import("zod").ZodCustom<import("@
|
|
30
|
+
caller: import("zod").ZodUnion<[import("zod").ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, import("zod").ZodCustom<import("@icp-sdk/core/principal").Principal, import("@icp-sdk/core/principal").Principal>]>;
|
|
31
31
|
key: import("zod").ZodString;
|
|
32
32
|
doc: import("zod").ZodObject<{
|
|
33
33
|
data: import("zod").ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
|
|
@@ -52,7 +52,7 @@ export type SetDocStoreParams = GetDocStoreParams & {
|
|
|
52
52
|
*/
|
|
53
53
|
export declare const DeleteDocStoreParamsSchema: import("zod").ZodObject<{
|
|
54
54
|
collection: import("zod").ZodString;
|
|
55
|
-
caller: import("zod").ZodUnion<[import("zod").ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, import("zod").ZodCustom<import("@
|
|
55
|
+
caller: import("zod").ZodUnion<[import("zod").ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, import("zod").ZodCustom<import("@icp-sdk/core/principal").Principal, import("@icp-sdk/core/principal").Principal>]>;
|
|
56
56
|
key: import("zod").ZodString;
|
|
57
57
|
doc: import("zod").ZodObject<{
|
|
58
58
|
version: import("zod").ZodOptional<import("zod").ZodBigInt>;
|
|
@@ -85,7 +85,7 @@ export type CountCollectionDocsStoreParams = CollectionParams;
|
|
|
85
85
|
*/
|
|
86
86
|
export declare const CountDocsStoreParamsSchema: import("zod").ZodObject<{
|
|
87
87
|
collection: import("zod").ZodString;
|
|
88
|
-
caller: import("zod").ZodUnion<[import("zod").ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, import("zod").ZodCustom<import("@
|
|
88
|
+
caller: import("zod").ZodUnion<[import("zod").ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, import("zod").ZodCustom<import("@icp-sdk/core/principal").Principal, import("@icp-sdk/core/principal").Principal>]>;
|
|
89
89
|
params: import("zod").ZodObject<{
|
|
90
90
|
matcher: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
91
91
|
key: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -133,7 +133,7 @@ export type CountDocsStoreParams = ListStoreParams;
|
|
|
133
133
|
*/
|
|
134
134
|
export declare const ListDocsStoreParamsSchema: import("zod").ZodObject<{
|
|
135
135
|
collection: import("zod").ZodString;
|
|
136
|
-
caller: import("zod").ZodUnion<[import("zod").ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, import("zod").ZodCustom<import("@
|
|
136
|
+
caller: import("zod").ZodUnion<[import("zod").ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, import("zod").ZodCustom<import("@icp-sdk/core/principal").Principal, import("@icp-sdk/core/principal").Principal>]>;
|
|
137
137
|
params: import("zod").ZodObject<{
|
|
138
138
|
matcher: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
139
139
|
key: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -191,7 +191,7 @@ export type DeleteDocsStoreParams = CollectionParams;
|
|
|
191
191
|
*/
|
|
192
192
|
export declare const DeleteFilteredDocsStoreParamsSchema: import("zod").ZodObject<{
|
|
193
193
|
collection: import("zod").ZodString;
|
|
194
|
-
caller: import("zod").ZodUnion<[import("zod").ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, import("zod").ZodCustom<import("@
|
|
194
|
+
caller: import("zod").ZodUnion<[import("zod").ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, import("zod").ZodCustom<import("@icp-sdk/core/principal").Principal, import("@icp-sdk/core/principal").Principal>]>;
|
|
195
195
|
params: import("zod").ZodObject<{
|
|
196
196
|
matcher: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
197
197
|
key: import("zod").ZodOptional<import("zod").ZodString>;
|
package/sdk/schemas/params.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export interface CollectionParams {
|
|
|
21
21
|
*/
|
|
22
22
|
export declare const ListStoreParamsSchema: z.ZodObject<{
|
|
23
23
|
collection: z.ZodString;
|
|
24
|
-
caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@
|
|
24
|
+
caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@icp-sdk/core/principal").Principal, import("@icp-sdk/core/principal").Principal>]>;
|
|
25
25
|
params: z.ZodObject<{
|
|
26
26
|
matcher: z.ZodOptional<z.ZodObject<{
|
|
27
27
|
key: z.ZodOptional<z.ZodString>;
|
package/sdk/schemas/storage.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { type CollectionParams, type ListStoreParams } from './params';
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const GetAssetStoreParamsSchema: z.ZodObject<{
|
|
10
10
|
collection: z.ZodString;
|
|
11
|
-
caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@
|
|
11
|
+
caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@icp-sdk/core/principal").Principal, import("@icp-sdk/core/principal").Principal>]>;
|
|
12
12
|
full_path: z.ZodString;
|
|
13
13
|
}, z.core.$strict>;
|
|
14
14
|
/**
|
|
@@ -39,7 +39,7 @@ export type CountCollectionAssetsStoreParams = CollectionParams;
|
|
|
39
39
|
*/
|
|
40
40
|
export declare const CountAssetsStoreParamsSchema: z.ZodObject<{
|
|
41
41
|
collection: z.ZodString;
|
|
42
|
-
caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@
|
|
42
|
+
caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@icp-sdk/core/principal").Principal, import("@icp-sdk/core/principal").Principal>]>;
|
|
43
43
|
params: z.ZodObject<{
|
|
44
44
|
matcher: z.ZodOptional<z.ZodObject<{
|
|
45
45
|
key: z.ZodOptional<z.ZodString>;
|
|
@@ -129,7 +129,7 @@ export type DeleteAssetsStoreParams = CollectionParams;
|
|
|
129
129
|
*/
|
|
130
130
|
export declare const DeleteFilteredAssetsStoreParamsSchema: z.ZodObject<{
|
|
131
131
|
collection: z.ZodString;
|
|
132
|
-
caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@
|
|
132
|
+
caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@icp-sdk/core/principal").Principal, import("@icp-sdk/core/principal").Principal>]>;
|
|
133
133
|
params: z.ZodObject<{
|
|
134
134
|
matcher: z.ZodOptional<z.ZodObject<{
|
|
135
135
|
key: z.ZodOptional<z.ZodString>;
|
|
@@ -177,7 +177,7 @@ export type DeleteFilteredAssetsStoreParams = ListStoreParams;
|
|
|
177
177
|
*/
|
|
178
178
|
export declare const DeleteAssetStoreParamsSchema: z.ZodObject<{
|
|
179
179
|
collection: z.ZodString;
|
|
180
|
-
caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@
|
|
180
|
+
caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@icp-sdk/core/principal").Principal, import("@icp-sdk/core/principal").Principal>]>;
|
|
181
181
|
full_path: z.ZodString;
|
|
182
182
|
}, z.core.$strict>;
|
|
183
183
|
/**
|
|
@@ -189,7 +189,7 @@ export type DeleteAssetStoreParams = GetAssetStoreParams;
|
|
|
189
189
|
*/
|
|
190
190
|
export declare const SetAssetTokenStoreParamsSchema: z.ZodObject<{
|
|
191
191
|
collection: z.ZodString;
|
|
192
|
-
caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@
|
|
192
|
+
caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@icp-sdk/core/principal").Principal, import("@icp-sdk/core/principal").Principal>]>;
|
|
193
193
|
full_path: z.ZodString;
|
|
194
194
|
token: z.ZodOptional<z.ZodString>;
|
|
195
195
|
}, z.core.$strict>;
|
|
@@ -208,7 +208,7 @@ export type SetAssetTokenStoreParams = GetAssetStoreParams & {
|
|
|
208
208
|
*/
|
|
209
209
|
export declare const ListAssetsStoreParamsSchema: z.ZodObject<{
|
|
210
210
|
collection: z.ZodString;
|
|
211
|
-
caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@
|
|
211
|
+
caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@icp-sdk/core/principal").Principal, import("@icp-sdk/core/principal").Principal>]>;
|
|
212
212
|
params: z.ZodObject<{
|
|
213
213
|
matcher: z.ZodOptional<z.ZodObject<{
|
|
214
214
|
key: z.ZodOptional<z.ZodString>;
|