@junobuild/functions 0.0.11 → 0.0.12

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.
@@ -1,8 +1,9 @@
1
+ import type { baseObjectInputType, baseObjectOutputType, ZodObject, ZodTypeAny } from 'zod';
1
2
  import * as z from 'zod';
2
3
  /**
3
4
  * @see HookContext
4
5
  */
5
- export declare const HookContextSchema: <T extends z.ZodTypeAny>(dataSchema: T) => z.ZodObject<{
6
+ export declare const HookContextSchema: <T extends z.ZodTypeAny>(dataSchema: T) => ZodObject<{
6
7
  /**
7
8
  * The user who originally triggered the function that in turn triggered the hook.
8
9
  */
@@ -11,7 +12,7 @@ export declare const HookContextSchema: <T extends z.ZodTypeAny>(dataSchema: T)
11
12
  * The data associated with the hook execution.
12
13
  */
13
14
  data: T;
14
- }, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
15
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
15
16
  /**
16
17
  * The user who originally triggered the function that in turn triggered the hook.
17
18
  */
@@ -20,7 +21,7 @@ export declare const HookContextSchema: <T extends z.ZodTypeAny>(dataSchema: T)
20
21
  * The data associated with the hook execution.
21
22
  */
22
23
  data: T;
23
- }>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
24
+ }>, baseObjectInputType<{
24
25
  /**
25
26
  * The user who originally triggered the function that in turn triggered the hook.
26
27
  */
@@ -29,25 +30,7 @@ export declare const HookContextSchema: <T extends z.ZodTypeAny>(dataSchema: T)
29
30
  * The data associated with the hook execution.
30
31
  */
31
32
  data: T;
32
- }>, any>[k]; } : never, z.baseObjectInputType<{
33
- /**
34
- * The user who originally triggered the function that in turn triggered the hook.
35
- */
36
- caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
37
- /**
38
- * The data associated with the hook execution.
39
- */
40
- data: T;
41
- }> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<{
42
- /**
43
- * The user who originally triggered the function that in turn triggered the hook.
44
- */
45
- caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
46
- /**
47
- * The data associated with the hook execution.
48
- */
49
- data: T;
50
- }>[k_1]; } : never>;
33
+ }>>;
51
34
  /**
52
35
  * Represents the context provided to hooks, containing information about the caller and related data.
53
36
  *