@learncard/helpers 1.1.16 → 1.1.17

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/dist/helpers.d.ts CHANGED
@@ -39,6 +39,9 @@ declare const JWEValidator: z.ZodObject<{
39
39
  apv: z.ZodOptional<z.ZodString>;
40
40
  apu: z.ZodOptional<z.ZodString>;
41
41
  }, "strip", z.ZodTypeAny, {
42
+ alg: string;
43
+ iv: string;
44
+ tag: string;
42
45
  epk?: {
43
46
  kty?: string | undefined;
44
47
  crv?: string | undefined;
@@ -50,10 +53,10 @@ declare const JWEValidator: z.ZodObject<{
50
53
  kid?: string | undefined;
51
54
  apv?: string | undefined;
52
55
  apu?: string | undefined;
56
+ }, {
53
57
  alg: string;
54
58
  iv: string;
55
59
  tag: string;
56
- }, {
57
60
  epk?: {
58
61
  kty?: string | undefined;
59
62
  crv?: string | undefined;
@@ -65,13 +68,13 @@ declare const JWEValidator: z.ZodObject<{
65
68
  kid?: string | undefined;
66
69
  apv?: string | undefined;
67
70
  apu?: string | undefined;
68
- alg: string;
69
- iv: string;
70
- tag: string;
71
71
  }>;
72
72
  encrypted_key: z.ZodString;
73
73
  }, "strip", z.ZodTypeAny, {
74
74
  header: {
75
+ alg: string;
76
+ iv: string;
77
+ tag: string;
75
78
  epk?: {
76
79
  kty?: string | undefined;
77
80
  crv?: string | undefined;
@@ -83,13 +86,13 @@ declare const JWEValidator: z.ZodObject<{
83
86
  kid?: string | undefined;
84
87
  apv?: string | undefined;
85
88
  apu?: string | undefined;
86
- alg: string;
87
- iv: string;
88
- tag: string;
89
89
  };
90
90
  encrypted_key: string;
91
91
  }, {
92
92
  header: {
93
+ alg: string;
94
+ iv: string;
95
+ tag: string;
93
96
  epk?: {
94
97
  kty?: string | undefined;
95
98
  crv?: string | undefined;
@@ -101,16 +104,20 @@ declare const JWEValidator: z.ZodObject<{
101
104
  kid?: string | undefined;
102
105
  apv?: string | undefined;
103
106
  apu?: string | undefined;
104
- alg: string;
105
- iv: string;
106
- tag: string;
107
107
  };
108
108
  encrypted_key: string;
109
109
  }>, "many">>;
110
110
  }, "strip", z.ZodTypeAny, {
111
+ iv: string;
112
+ tag: string;
113
+ protected: string;
114
+ ciphertext: string;
111
115
  aad?: string | undefined;
112
116
  recipients?: {
113
117
  header: {
118
+ alg: string;
119
+ iv: string;
120
+ tag: string;
114
121
  epk?: {
115
122
  kty?: string | undefined;
116
123
  crv?: string | undefined;
@@ -122,20 +129,20 @@ declare const JWEValidator: z.ZodObject<{
122
129
  kid?: string | undefined;
123
130
  apv?: string | undefined;
124
131
  apu?: string | undefined;
125
- alg: string;
126
- iv: string;
127
- tag: string;
128
132
  };
129
133
  encrypted_key: string;
130
134
  }[] | undefined;
135
+ }, {
131
136
  iv: string;
132
137
  tag: string;
133
138
  protected: string;
134
139
  ciphertext: string;
135
- }, {
136
140
  aad?: string | undefined;
137
141
  recipients?: {
138
142
  header: {
143
+ alg: string;
144
+ iv: string;
145
+ tag: string;
139
146
  epk?: {
140
147
  kty?: string | undefined;
141
148
  crv?: string | undefined;
@@ -147,16 +154,9 @@ declare const JWEValidator: z.ZodObject<{
147
154
  kid?: string | undefined;
148
155
  apv?: string | undefined;
149
156
  apu?: string | undefined;
150
- alg: string;
151
- iv: string;
152
- tag: string;
153
157
  };
154
158
  encrypted_key: string;
155
159
  }[] | undefined;
156
- iv: string;
157
- tag: string;
158
- protected: string;
159
- ciphertext: string;
160
160
  }>;
161
161
  export type JWE = z.infer<typeof JWEValidator>;
162
162
  /**