@m5kdev/commons 0.39.0 → 0.40.1

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.
@@ -14,7 +14,8 @@ const userSchema = zod.z.object({
14
14
  banReason: zod.z.string().nullable(),
15
15
  banExpires: zod.z.date().nullable(),
16
16
  preferences: zod.z.string().nullable(),
17
- onboarding: zod.z.boolean().nullable()
17
+ onboarding: zod.z.boolean().nullable(),
18
+ closedAt: zod.z.date().nullable()
18
19
  });
19
20
  //#endregion
20
21
  exports.userSchema = userSchema;
@@ -1 +1 @@
1
- {"version":3,"file":"auth.schema.cjs","names":["z"],"sources":["../../../../src/modules/auth/auth.schema.ts"],"sourcesContent":["import { z } from \"zod\";\r\n\r\nexport const userSchema = z.object({\r\n id: z.string(),\r\n name: z.string(),\r\n email: z.string(),\r\n emailVerified: z.boolean(),\r\n image: z.string().nullable(),\r\n createdAt: z.date(),\r\n updatedAt: z.date(),\r\n role: z.string().nullable(),\r\n banned: z.boolean().nullable(),\r\n banReason: z.string().nullable(),\r\n banExpires: z.date().nullable(),\r\n preferences: z.string().nullable(),\r\n onboarding: z.boolean().nullable(),\r\n});\r\n\r\nexport type UserSchema = z.infer<typeof userSchema>;\r\n"],"mappings":";;;AAEA,MAAa,aAAaA,IAAAA,EAAE,OAAO;CACjC,IAAIA,IAAAA,EAAE,QAAQ;CACd,MAAMA,IAAAA,EAAE,QAAQ;CAChB,OAAOA,IAAAA,EAAE,QAAQ;CACjB,eAAeA,IAAAA,EAAE,SAAS;CAC1B,OAAOA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CAC5B,WAAWA,IAAAA,EAAE,MAAM;CACnB,WAAWA,IAAAA,EAAE,MAAM;CACnB,MAAMA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CAC3B,QAAQA,IAAAA,EAAE,SAAS,CAAC,UAAU;CAC9B,WAAWA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CAChC,YAAYA,IAAAA,EAAE,MAAM,CAAC,UAAU;CAC/B,aAAaA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CAClC,YAAYA,IAAAA,EAAE,SAAS,CAAC,UAAU;CACnC,CAAC"}
1
+ {"version":3,"file":"auth.schema.cjs","names":["z"],"sources":["../../../../src/modules/auth/auth.schema.ts"],"sourcesContent":["import { z } from \"zod\";\r\n\r\nexport const userSchema = z.object({\r\n id: z.string(),\r\n name: z.string(),\r\n email: z.string(),\r\n emailVerified: z.boolean(),\r\n image: z.string().nullable(),\r\n createdAt: z.date(),\r\n updatedAt: z.date(),\r\n role: z.string().nullable(),\r\n banned: z.boolean().nullable(),\r\n banReason: z.string().nullable(),\r\n banExpires: z.date().nullable(),\r\n preferences: z.string().nullable(),\r\n onboarding: z.boolean().nullable(),\r\n closedAt: z.date().nullable(),\r\n});\r\n\r\nexport type UserSchema = z.infer<typeof userSchema>;\r\n"],"mappings":";;;AAEA,MAAa,aAAaA,IAAAA,EAAE,OAAO;CACjC,IAAIA,IAAAA,EAAE,QAAQ;CACd,MAAMA,IAAAA,EAAE,QAAQ;CAChB,OAAOA,IAAAA,EAAE,QAAQ;CACjB,eAAeA,IAAAA,EAAE,SAAS;CAC1B,OAAOA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CAC5B,WAAWA,IAAAA,EAAE,MAAM;CACnB,WAAWA,IAAAA,EAAE,MAAM;CACnB,MAAMA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CAC3B,QAAQA,IAAAA,EAAE,SAAS,CAAC,UAAU;CAC9B,WAAWA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CAChC,YAAYA,IAAAA,EAAE,MAAM,CAAC,UAAU;CAC/B,aAAaA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CAClC,YAAYA,IAAAA,EAAE,SAAS,CAAC,UAAU;CAClC,UAAUA,IAAAA,EAAE,MAAM,CAAC,UAAU;CAC9B,CAAC"}
@@ -15,6 +15,7 @@ declare const userSchema: z.ZodObject<{
15
15
  banExpires: z.ZodNullable<z.ZodDate>;
16
16
  preferences: z.ZodNullable<z.ZodString>;
17
17
  onboarding: z.ZodNullable<z.ZodBoolean>;
18
+ closedAt: z.ZodNullable<z.ZodDate>;
18
19
  }, z.core.$strip>;
19
20
  type UserSchema = z.infer<typeof userSchema>;
20
21
  //#endregion
@@ -15,6 +15,7 @@ declare const userSchema: z.ZodObject<{
15
15
  banExpires: z.ZodNullable<z.ZodDate>;
16
16
  preferences: z.ZodNullable<z.ZodString>;
17
17
  onboarding: z.ZodNullable<z.ZodBoolean>;
18
+ closedAt: z.ZodNullable<z.ZodDate>;
18
19
  }, z.core.$strip>;
19
20
  type UserSchema = z.infer<typeof userSchema>;
20
21
  //#endregion
@@ -13,7 +13,8 @@ const userSchema = z.object({
13
13
  banReason: z.string().nullable(),
14
14
  banExpires: z.date().nullable(),
15
15
  preferences: z.string().nullable(),
16
- onboarding: z.boolean().nullable()
16
+ onboarding: z.boolean().nullable(),
17
+ closedAt: z.date().nullable()
17
18
  });
18
19
  //#endregion
19
20
  export { userSchema };
@@ -1 +1 @@
1
- {"version":3,"file":"auth.schema.mjs","names":[],"sources":["../../../../src/modules/auth/auth.schema.ts"],"sourcesContent":["import { z } from \"zod\";\r\n\r\nexport const userSchema = z.object({\r\n id: z.string(),\r\n name: z.string(),\r\n email: z.string(),\r\n emailVerified: z.boolean(),\r\n image: z.string().nullable(),\r\n createdAt: z.date(),\r\n updatedAt: z.date(),\r\n role: z.string().nullable(),\r\n banned: z.boolean().nullable(),\r\n banReason: z.string().nullable(),\r\n banExpires: z.date().nullable(),\r\n preferences: z.string().nullable(),\r\n onboarding: z.boolean().nullable(),\r\n});\r\n\r\nexport type UserSchema = z.infer<typeof userSchema>;\r\n"],"mappings":";;AAEA,MAAa,aAAa,EAAE,OAAO;CACjC,IAAI,EAAE,QAAQ;CACd,MAAM,EAAE,QAAQ;CAChB,OAAO,EAAE,QAAQ;CACjB,eAAe,EAAE,SAAS;CAC1B,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,WAAW,EAAE,MAAM;CACnB,WAAW,EAAE,MAAM;CACnB,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,QAAQ,EAAE,SAAS,CAAC,UAAU;CAC9B,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,YAAY,EAAE,MAAM,CAAC,UAAU;CAC/B,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,YAAY,EAAE,SAAS,CAAC,UAAU;CACnC,CAAC"}
1
+ {"version":3,"file":"auth.schema.mjs","names":[],"sources":["../../../../src/modules/auth/auth.schema.ts"],"sourcesContent":["import { z } from \"zod\";\r\n\r\nexport const userSchema = z.object({\r\n id: z.string(),\r\n name: z.string(),\r\n email: z.string(),\r\n emailVerified: z.boolean(),\r\n image: z.string().nullable(),\r\n createdAt: z.date(),\r\n updatedAt: z.date(),\r\n role: z.string().nullable(),\r\n banned: z.boolean().nullable(),\r\n banReason: z.string().nullable(),\r\n banExpires: z.date().nullable(),\r\n preferences: z.string().nullable(),\r\n onboarding: z.boolean().nullable(),\r\n closedAt: z.date().nullable(),\r\n});\r\n\r\nexport type UserSchema = z.infer<typeof userSchema>;\r\n"],"mappings":";;AAEA,MAAa,aAAa,EAAE,OAAO;CACjC,IAAI,EAAE,QAAQ;CACd,MAAM,EAAE,QAAQ;CAChB,OAAO,EAAE,QAAQ;CACjB,eAAe,EAAE,SAAS;CAC1B,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,WAAW,EAAE,MAAM;CACnB,WAAW,EAAE,MAAM;CACnB,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,QAAQ,EAAE,SAAS,CAAC,UAAU;CAC9B,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,YAAY,EAAE,MAAM,CAAC,UAAU;CAC/B,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,YAAY,EAAE,SAAS,CAAC,UAAU;CAClC,UAAU,EAAE,MAAM,CAAC,UAAU;CAC9B,CAAC"}
@@ -2,8 +2,8 @@ import { z } from "zod";
2
2
 
3
3
  //#region src/modules/billing/billing.schema.d.ts
4
4
  declare const stripeEnvironmentSchema: z.ZodEnum<{
5
- sandbox: "sandbox";
6
5
  production: "production";
6
+ sandbox: "sandbox";
7
7
  }>;
8
8
  declare const billingSchema: z.ZodObject<{
9
9
  id: z.ZodString;
@@ -28,8 +28,8 @@ declare const billingSchema: z.ZodObject<{
28
28
  unitAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
29
  discounts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
30
30
  environment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
31
- sandbox: "sandbox";
32
31
  production: "production";
32
+ sandbox: "sandbox";
33
33
  }>>>;
34
34
  }, z.core.$strip>;
35
35
  type BillingSchema = z.infer<typeof billingSchema>;
@@ -56,8 +56,8 @@ declare const activeSubscriptionSchema: z.ZodObject<{
56
56
  unitAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
57
57
  discounts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
58
58
  environment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
59
- sandbox: "sandbox";
60
59
  production: "production";
60
+ sandbox: "sandbox";
61
61
  }>>>;
62
62
  ownerMustAddPaymentMethod: z.ZodBoolean;
63
63
  }, z.core.$strip>;
@@ -156,8 +156,8 @@ declare const adminOrganizationBillingRowSchema: z.ZodObject<{
156
156
  unitAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
157
157
  discounts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
158
158
  environment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
159
- sandbox: "sandbox";
160
159
  production: "production";
160
+ sandbox: "sandbox";
161
161
  }>>>;
162
162
  }, z.core.$strip>>;
163
163
  coupon: z.ZodNullable<z.ZodObject<{
@@ -189,15 +189,15 @@ declare const billingAdminListInputSchema: z.ZodObject<{
189
189
  string: "string";
190
190
  number: "number";
191
191
  boolean: "boolean";
192
- date: "date";
193
192
  enum: "enum";
193
+ date: "date";
194
194
  jsonArray: "jsonArray";
195
195
  }>;
196
196
  method: z.ZodEnum<{
197
- contains: "contains";
198
- equals: "equals";
199
197
  starts_with: "starts_with";
200
198
  ends_with: "ends_with";
199
+ contains: "contains";
200
+ equals: "equals";
201
201
  greater_than: "greater_than";
202
202
  less_than: "less_than";
203
203
  on: "on";
@@ -251,8 +251,8 @@ declare const billingAdminListOutputSchema: z.ZodObject<{
251
251
  unitAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
252
252
  discounts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
253
253
  environment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
254
- sandbox: "sandbox";
255
254
  production: "production";
255
+ sandbox: "sandbox";
256
256
  }>>>;
257
257
  }, z.core.$strip>>;
258
258
  coupon: z.ZodNullable<z.ZodObject<{
@@ -272,8 +272,8 @@ declare const billingAdminListOutputSchema: z.ZodObject<{
272
272
  }, z.core.$strip>>;
273
273
  total: z.ZodNumber;
274
274
  environment: z.ZodEnum<{
275
- sandbox: "sandbox";
276
275
  production: "production";
276
+ sandbox: "sandbox";
277
277
  }>;
278
278
  }, z.core.$strip>;
279
279
  type BillingCoupon = z.infer<typeof billingCouponSchema>;
@@ -2,8 +2,8 @@ import { z } from "zod";
2
2
 
3
3
  //#region src/modules/billing/billing.schema.d.ts
4
4
  declare const stripeEnvironmentSchema: z.ZodEnum<{
5
- sandbox: "sandbox";
6
5
  production: "production";
6
+ sandbox: "sandbox";
7
7
  }>;
8
8
  declare const billingSchema: z.ZodObject<{
9
9
  id: z.ZodString;
@@ -28,8 +28,8 @@ declare const billingSchema: z.ZodObject<{
28
28
  unitAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
29
  discounts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
30
30
  environment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
31
- sandbox: "sandbox";
32
31
  production: "production";
32
+ sandbox: "sandbox";
33
33
  }>>>;
34
34
  }, z.core.$strip>;
35
35
  type BillingSchema = z.infer<typeof billingSchema>;
@@ -56,8 +56,8 @@ declare const activeSubscriptionSchema: z.ZodObject<{
56
56
  unitAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
57
57
  discounts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
58
58
  environment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
59
- sandbox: "sandbox";
60
59
  production: "production";
60
+ sandbox: "sandbox";
61
61
  }>>>;
62
62
  ownerMustAddPaymentMethod: z.ZodBoolean;
63
63
  }, z.core.$strip>;
@@ -156,8 +156,8 @@ declare const adminOrganizationBillingRowSchema: z.ZodObject<{
156
156
  unitAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
157
157
  discounts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
158
158
  environment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
159
- sandbox: "sandbox";
160
159
  production: "production";
160
+ sandbox: "sandbox";
161
161
  }>>>;
162
162
  }, z.core.$strip>>;
163
163
  coupon: z.ZodNullable<z.ZodObject<{
@@ -189,15 +189,15 @@ declare const billingAdminListInputSchema: z.ZodObject<{
189
189
  string: "string";
190
190
  number: "number";
191
191
  boolean: "boolean";
192
- date: "date";
193
192
  enum: "enum";
193
+ date: "date";
194
194
  jsonArray: "jsonArray";
195
195
  }>;
196
196
  method: z.ZodEnum<{
197
- contains: "contains";
198
- equals: "equals";
199
197
  starts_with: "starts_with";
200
198
  ends_with: "ends_with";
199
+ contains: "contains";
200
+ equals: "equals";
201
201
  greater_than: "greater_than";
202
202
  less_than: "less_than";
203
203
  on: "on";
@@ -251,8 +251,8 @@ declare const billingAdminListOutputSchema: z.ZodObject<{
251
251
  unitAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
252
252
  discounts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
253
253
  environment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
254
- sandbox: "sandbox";
255
254
  production: "production";
255
+ sandbox: "sandbox";
256
256
  }>>>;
257
257
  }, z.core.$strip>>;
258
258
  coupon: z.ZodNullable<z.ZodObject<{
@@ -272,8 +272,8 @@ declare const billingAdminListOutputSchema: z.ZodObject<{
272
272
  }, z.core.$strip>>;
273
273
  total: z.ZodNumber;
274
274
  environment: z.ZodEnum<{
275
- sandbox: "sandbox";
276
275
  production: "production";
276
+ sandbox: "sandbox";
277
277
  }>;
278
278
  }, z.core.$strip>;
279
279
  type BillingCoupon = z.infer<typeof billingCouponSchema>;
@@ -12,9 +12,9 @@ declare const notificationProviderSchema: z.ZodEnum<{
12
12
  fcm: "fcm";
13
13
  }>;
14
14
  declare const notificationSendStatusSchema: z.ZodEnum<{
15
+ failed: "failed";
15
16
  pending: "pending";
16
17
  sent: "sent";
17
- failed: "failed";
18
18
  }>;
19
19
  /** Web Push `PushSubscriptionJSON` subset we persist and accept from clients. */
20
20
  declare const pushSubscriptionJsonSchema: z.ZodObject<{
@@ -87,10 +87,10 @@ declare const notificationVapidPublicKeyOutputSchema: z.ZodObject<{
87
87
  publicKey: z.ZodString;
88
88
  }, z.core.$strip>;
89
89
  declare const notificationChannelSchema: z.ZodEnum<{
90
+ email: "email";
90
91
  "in-app": "in-app";
91
92
  "web-push": "web-push";
92
93
  "mobile-push": "mobile-push";
93
- email: "email";
94
94
  }>;
95
95
  declare const notificationSendLogSelectSchema: z.ZodObject<{
96
96
  id: z.ZodString;
@@ -99,10 +99,10 @@ declare const notificationSendLogSelectSchema: z.ZodObject<{
99
99
  userId: z.ZodString;
100
100
  deviceId: z.ZodNullable<z.ZodString>;
101
101
  channel: z.ZodEnum<{
102
+ email: "email";
102
103
  "in-app": "in-app";
103
104
  "web-push": "web-push";
104
105
  "mobile-push": "mobile-push";
105
- email: "email";
106
106
  }>;
107
107
  provider: z.ZodNullable<z.ZodEnum<{
108
108
  web: "web";
@@ -113,9 +113,9 @@ declare const notificationSendLogSelectSchema: z.ZodObject<{
113
113
  body: z.ZodString;
114
114
  data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
115
115
  status: z.ZodEnum<{
116
+ failed: "failed";
116
117
  pending: "pending";
117
118
  sent: "sent";
118
- failed: "failed";
119
119
  }>;
120
120
  error: z.ZodNullable<z.ZodString>;
121
121
  jobId: z.ZodNullable<z.ZodString>;
@@ -133,10 +133,10 @@ declare const notificationListSendLogsOutputSchema: z.ZodArray<z.ZodObject<{
133
133
  userId: z.ZodString;
134
134
  deviceId: z.ZodNullable<z.ZodString>;
135
135
  channel: z.ZodEnum<{
136
+ email: "email";
136
137
  "in-app": "in-app";
137
138
  "web-push": "web-push";
138
139
  "mobile-push": "mobile-push";
139
- email: "email";
140
140
  }>;
141
141
  provider: z.ZodNullable<z.ZodEnum<{
142
142
  web: "web";
@@ -147,9 +147,9 @@ declare const notificationListSendLogsOutputSchema: z.ZodArray<z.ZodObject<{
147
147
  body: z.ZodString;
148
148
  data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
149
149
  status: z.ZodEnum<{
150
+ failed: "failed";
150
151
  pending: "pending";
151
152
  sent: "sent";
152
- failed: "failed";
153
153
  }>;
154
154
  error: z.ZodNullable<z.ZodString>;
155
155
  jobId: z.ZodNullable<z.ZodString>;
@@ -203,10 +203,10 @@ declare const notificationSendTestOutputSchema: z.ZodObject<{
203
203
  }, z.core.$strip>;
204
204
  declare const notificationKindPreferenceChannelSchema: z.ZodObject<{
205
205
  channel: z.ZodEnum<{
206
+ email: "email";
206
207
  "in-app": "in-app";
207
208
  "web-push": "web-push";
208
209
  "mobile-push": "mobile-push";
209
- email: "email";
210
210
  }>;
211
211
  enabled: z.ZodBoolean;
212
212
  }, z.core.$strip>;
@@ -214,10 +214,10 @@ declare const notificationKindPreferenceSchema: z.ZodObject<{
214
214
  kind: z.ZodString;
215
215
  channels: z.ZodArray<z.ZodObject<{
216
216
  channel: z.ZodEnum<{
217
+ email: "email";
217
218
  "in-app": "in-app";
218
219
  "web-push": "web-push";
219
220
  "mobile-push": "mobile-push";
220
- email: "email";
221
221
  }>;
222
222
  enabled: z.ZodBoolean;
223
223
  }, z.core.$strip>>;
@@ -226,10 +226,10 @@ declare const notificationListPreferencesOutputSchema: z.ZodArray<z.ZodObject<{
226
226
  kind: z.ZodString;
227
227
  channels: z.ZodArray<z.ZodObject<{
228
228
  channel: z.ZodEnum<{
229
+ email: "email";
229
230
  "in-app": "in-app";
230
231
  "web-push": "web-push";
231
232
  "mobile-push": "mobile-push";
232
- email: "email";
233
233
  }>;
234
234
  enabled: z.ZodBoolean;
235
235
  }, z.core.$strip>>;
@@ -237,10 +237,10 @@ declare const notificationListPreferencesOutputSchema: z.ZodArray<z.ZodObject<{
237
237
  declare const notificationSetPreferenceInputSchema: z.ZodObject<{
238
238
  kind: z.ZodString;
239
239
  channel: z.ZodEnum<{
240
+ email: "email";
240
241
  "in-app": "in-app";
241
242
  "web-push": "web-push";
242
243
  "mobile-push": "mobile-push";
243
- email: "email";
244
244
  }>;
245
245
  enabled: z.ZodBoolean;
246
246
  }, z.core.$strip>;
@@ -248,10 +248,10 @@ declare const notificationSetPreferenceOutputSchema: z.ZodObject<{
248
248
  kind: z.ZodString;
249
249
  channels: z.ZodArray<z.ZodObject<{
250
250
  channel: z.ZodEnum<{
251
+ email: "email";
251
252
  "in-app": "in-app";
252
253
  "web-push": "web-push";
253
254
  "mobile-push": "mobile-push";
254
- email: "email";
255
255
  }>;
256
256
  enabled: z.ZodBoolean;
257
257
  }, z.core.$strip>>;
@@ -12,9 +12,9 @@ declare const notificationProviderSchema: z.ZodEnum<{
12
12
  fcm: "fcm";
13
13
  }>;
14
14
  declare const notificationSendStatusSchema: z.ZodEnum<{
15
+ failed: "failed";
15
16
  pending: "pending";
16
17
  sent: "sent";
17
- failed: "failed";
18
18
  }>;
19
19
  /** Web Push `PushSubscriptionJSON` subset we persist and accept from clients. */
20
20
  declare const pushSubscriptionJsonSchema: z.ZodObject<{
@@ -87,10 +87,10 @@ declare const notificationVapidPublicKeyOutputSchema: z.ZodObject<{
87
87
  publicKey: z.ZodString;
88
88
  }, z.core.$strip>;
89
89
  declare const notificationChannelSchema: z.ZodEnum<{
90
+ email: "email";
90
91
  "in-app": "in-app";
91
92
  "web-push": "web-push";
92
93
  "mobile-push": "mobile-push";
93
- email: "email";
94
94
  }>;
95
95
  declare const notificationSendLogSelectSchema: z.ZodObject<{
96
96
  id: z.ZodString;
@@ -99,10 +99,10 @@ declare const notificationSendLogSelectSchema: z.ZodObject<{
99
99
  userId: z.ZodString;
100
100
  deviceId: z.ZodNullable<z.ZodString>;
101
101
  channel: z.ZodEnum<{
102
+ email: "email";
102
103
  "in-app": "in-app";
103
104
  "web-push": "web-push";
104
105
  "mobile-push": "mobile-push";
105
- email: "email";
106
106
  }>;
107
107
  provider: z.ZodNullable<z.ZodEnum<{
108
108
  web: "web";
@@ -113,9 +113,9 @@ declare const notificationSendLogSelectSchema: z.ZodObject<{
113
113
  body: z.ZodString;
114
114
  data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
115
115
  status: z.ZodEnum<{
116
+ failed: "failed";
116
117
  pending: "pending";
117
118
  sent: "sent";
118
- failed: "failed";
119
119
  }>;
120
120
  error: z.ZodNullable<z.ZodString>;
121
121
  jobId: z.ZodNullable<z.ZodString>;
@@ -133,10 +133,10 @@ declare const notificationListSendLogsOutputSchema: z.ZodArray<z.ZodObject<{
133
133
  userId: z.ZodString;
134
134
  deviceId: z.ZodNullable<z.ZodString>;
135
135
  channel: z.ZodEnum<{
136
+ email: "email";
136
137
  "in-app": "in-app";
137
138
  "web-push": "web-push";
138
139
  "mobile-push": "mobile-push";
139
- email: "email";
140
140
  }>;
141
141
  provider: z.ZodNullable<z.ZodEnum<{
142
142
  web: "web";
@@ -147,9 +147,9 @@ declare const notificationListSendLogsOutputSchema: z.ZodArray<z.ZodObject<{
147
147
  body: z.ZodString;
148
148
  data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
149
149
  status: z.ZodEnum<{
150
+ failed: "failed";
150
151
  pending: "pending";
151
152
  sent: "sent";
152
- failed: "failed";
153
153
  }>;
154
154
  error: z.ZodNullable<z.ZodString>;
155
155
  jobId: z.ZodNullable<z.ZodString>;
@@ -203,10 +203,10 @@ declare const notificationSendTestOutputSchema: z.ZodObject<{
203
203
  }, z.core.$strip>;
204
204
  declare const notificationKindPreferenceChannelSchema: z.ZodObject<{
205
205
  channel: z.ZodEnum<{
206
+ email: "email";
206
207
  "in-app": "in-app";
207
208
  "web-push": "web-push";
208
209
  "mobile-push": "mobile-push";
209
- email: "email";
210
210
  }>;
211
211
  enabled: z.ZodBoolean;
212
212
  }, z.core.$strip>;
@@ -214,10 +214,10 @@ declare const notificationKindPreferenceSchema: z.ZodObject<{
214
214
  kind: z.ZodString;
215
215
  channels: z.ZodArray<z.ZodObject<{
216
216
  channel: z.ZodEnum<{
217
+ email: "email";
217
218
  "in-app": "in-app";
218
219
  "web-push": "web-push";
219
220
  "mobile-push": "mobile-push";
220
- email: "email";
221
221
  }>;
222
222
  enabled: z.ZodBoolean;
223
223
  }, z.core.$strip>>;
@@ -226,10 +226,10 @@ declare const notificationListPreferencesOutputSchema: z.ZodArray<z.ZodObject<{
226
226
  kind: z.ZodString;
227
227
  channels: z.ZodArray<z.ZodObject<{
228
228
  channel: z.ZodEnum<{
229
+ email: "email";
229
230
  "in-app": "in-app";
230
231
  "web-push": "web-push";
231
232
  "mobile-push": "mobile-push";
232
- email: "email";
233
233
  }>;
234
234
  enabled: z.ZodBoolean;
235
235
  }, z.core.$strip>>;
@@ -237,10 +237,10 @@ declare const notificationListPreferencesOutputSchema: z.ZodArray<z.ZodObject<{
237
237
  declare const notificationSetPreferenceInputSchema: z.ZodObject<{
238
238
  kind: z.ZodString;
239
239
  channel: z.ZodEnum<{
240
+ email: "email";
240
241
  "in-app": "in-app";
241
242
  "web-push": "web-push";
242
243
  "mobile-push": "mobile-push";
243
- email: "email";
244
244
  }>;
245
245
  enabled: z.ZodBoolean;
246
246
  }, z.core.$strip>;
@@ -248,10 +248,10 @@ declare const notificationSetPreferenceOutputSchema: z.ZodObject<{
248
248
  kind: z.ZodString;
249
249
  channels: z.ZodArray<z.ZodObject<{
250
250
  channel: z.ZodEnum<{
251
+ email: "email";
251
252
  "in-app": "in-app";
252
253
  "web-push": "web-push";
253
254
  "mobile-push": "mobile-push";
254
- email: "email";
255
255
  }>;
256
256
  enabled: z.ZodBoolean;
257
257
  }, z.core.$strip>>;
@@ -7,15 +7,15 @@ declare const filterSchema: z.ZodObject<{
7
7
  string: "string";
8
8
  number: "number";
9
9
  boolean: "boolean";
10
- date: "date";
11
10
  enum: "enum";
11
+ date: "date";
12
12
  jsonArray: "jsonArray";
13
13
  }>;
14
14
  method: z.ZodEnum<{
15
- contains: "contains";
16
- equals: "equals";
17
15
  starts_with: "starts_with";
18
16
  ends_with: "ends_with";
17
+ contains: "contains";
18
+ equals: "equals";
19
19
  greater_than: "greater_than";
20
20
  less_than: "less_than";
21
21
  on: "on";
@@ -39,15 +39,15 @@ declare const filtersSchema: z.ZodArray<z.ZodObject<{
39
39
  string: "string";
40
40
  number: "number";
41
41
  boolean: "boolean";
42
- date: "date";
43
42
  enum: "enum";
43
+ date: "date";
44
44
  jsonArray: "jsonArray";
45
45
  }>;
46
46
  method: z.ZodEnum<{
47
- contains: "contains";
48
- equals: "equals";
49
47
  starts_with: "starts_with";
50
48
  ends_with: "ends_with";
49
+ contains: "contains";
50
+ equals: "equals";
51
51
  greater_than: "greater_than";
52
52
  less_than: "less_than";
53
53
  on: "on";
@@ -79,15 +79,15 @@ declare const querySchema: z.ZodObject<{
79
79
  string: "string";
80
80
  number: "number";
81
81
  boolean: "boolean";
82
- date: "date";
83
82
  enum: "enum";
83
+ date: "date";
84
84
  jsonArray: "jsonArray";
85
85
  }>;
86
86
  method: z.ZodEnum<{
87
- contains: "contains";
88
- equals: "equals";
89
87
  starts_with: "starts_with";
90
88
  ends_with: "ends_with";
89
+ contains: "contains";
90
+ equals: "equals";
91
91
  greater_than: "greater_than";
92
92
  less_than: "less_than";
93
93
  on: "on";
@@ -7,15 +7,15 @@ declare const filterSchema: z.ZodObject<{
7
7
  string: "string";
8
8
  number: "number";
9
9
  boolean: "boolean";
10
- date: "date";
11
10
  enum: "enum";
11
+ date: "date";
12
12
  jsonArray: "jsonArray";
13
13
  }>;
14
14
  method: z.ZodEnum<{
15
- contains: "contains";
16
- equals: "equals";
17
15
  starts_with: "starts_with";
18
16
  ends_with: "ends_with";
17
+ contains: "contains";
18
+ equals: "equals";
19
19
  greater_than: "greater_than";
20
20
  less_than: "less_than";
21
21
  on: "on";
@@ -39,15 +39,15 @@ declare const filtersSchema: z.ZodArray<z.ZodObject<{
39
39
  string: "string";
40
40
  number: "number";
41
41
  boolean: "boolean";
42
- date: "date";
43
42
  enum: "enum";
43
+ date: "date";
44
44
  jsonArray: "jsonArray";
45
45
  }>;
46
46
  method: z.ZodEnum<{
47
- contains: "contains";
48
- equals: "equals";
49
47
  starts_with: "starts_with";
50
48
  ends_with: "ends_with";
49
+ contains: "contains";
50
+ equals: "equals";
51
51
  greater_than: "greater_than";
52
52
  less_than: "less_than";
53
53
  on: "on";
@@ -79,15 +79,15 @@ declare const querySchema: z.ZodObject<{
79
79
  string: "string";
80
80
  number: "number";
81
81
  boolean: "boolean";
82
- date: "date";
83
82
  enum: "enum";
83
+ date: "date";
84
84
  jsonArray: "jsonArray";
85
85
  }>;
86
86
  method: z.ZodEnum<{
87
- contains: "contains";
88
- equals: "equals";
89
87
  starts_with: "starts_with";
90
88
  ends_with: "ends_with";
89
+ contains: "contains";
90
+ equals: "equals";
91
91
  greater_than: "greater_than";
92
92
  less_than: "less_than";
93
93
  on: "on";
@@ -37,15 +37,15 @@ declare const tagListInputSchema: z.ZodObject<{
37
37
  string: "string";
38
38
  number: "number";
39
39
  boolean: "boolean";
40
- date: "date";
41
40
  enum: "enum";
41
+ date: "date";
42
42
  jsonArray: "jsonArray";
43
43
  }>;
44
44
  method: z.ZodEnum<{
45
- contains: "contains";
46
- equals: "equals";
47
45
  starts_with: "starts_with";
48
46
  ends_with: "ends_with";
47
+ contains: "contains";
48
+ equals: "equals";
49
49
  greater_than: "greater_than";
50
50
  less_than: "less_than";
51
51
  on: "on";
@@ -37,15 +37,15 @@ declare const tagListInputSchema: z.ZodObject<{
37
37
  string: "string";
38
38
  number: "number";
39
39
  boolean: "boolean";
40
- date: "date";
41
40
  enum: "enum";
41
+ date: "date";
42
42
  jsonArray: "jsonArray";
43
43
  }>;
44
44
  method: z.ZodEnum<{
45
- contains: "contains";
46
- equals: "equals";
47
45
  starts_with: "starts_with";
48
46
  ends_with: "ends_with";
47
+ contains: "contains";
48
+ equals: "equals";
49
49
  greater_than: "greater_than";
50
50
  less_than: "less_than";
51
51
  on: "on";
@@ -11,10 +11,10 @@ declare const workflowSelectSchema: z.ZodObject<{
11
11
  input: z.ZodUnknown;
12
12
  output: z.ZodUnknown;
13
13
  status: z.ZodEnum<{
14
- failed: "failed";
15
14
  queued: "queued";
16
15
  running: "running";
17
16
  completed: "completed";
17
+ failed: "failed";
18
18
  }>;
19
19
  error: z.ZodNullable<z.ZodString>;
20
20
  retries: z.ZodNumber;
@@ -28,10 +28,10 @@ declare const workflowReadInputSchema: z.ZodObject<{
28
28
  }, z.core.$strip>;
29
29
  declare const workflowListInputSchema: z.ZodObject<{
30
30
  status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
31
- failed: "failed";
32
31
  queued: "queued";
33
32
  running: "running";
34
33
  completed: "completed";
34
+ failed: "failed";
35
35
  }>>>;
36
36
  jobName: z.ZodOptional<z.ZodString>;
37
37
  }, z.core.$strip>;
@@ -51,10 +51,10 @@ declare const workflowReadOutputSchema: z.ZodObject<{
51
51
  input: z.ZodUnknown;
52
52
  output: z.ZodUnknown;
53
53
  status: z.ZodEnum<{
54
- failed: "failed";
55
54
  queued: "queued";
56
55
  running: "running";
57
56
  completed: "completed";
57
+ failed: "failed";
58
58
  }>;
59
59
  error: z.ZodNullable<z.ZodString>;
60
60
  retries: z.ZodNumber;
@@ -73,10 +73,10 @@ declare const workflowListOutputSchema: z.ZodArray<z.ZodObject<{
73
73
  input: z.ZodUnknown;
74
74
  output: z.ZodUnknown;
75
75
  status: z.ZodEnum<{
76
- failed: "failed";
77
76
  queued: "queued";
78
77
  running: "running";
79
78
  completed: "completed";
79
+ failed: "failed";
80
80
  }>;
81
81
  error: z.ZodNullable<z.ZodString>;
82
82
  retries: z.ZodNumber;
@@ -11,10 +11,10 @@ declare const workflowSelectSchema: z.ZodObject<{
11
11
  input: z.ZodUnknown;
12
12
  output: z.ZodUnknown;
13
13
  status: z.ZodEnum<{
14
- failed: "failed";
15
14
  queued: "queued";
16
15
  running: "running";
17
16
  completed: "completed";
17
+ failed: "failed";
18
18
  }>;
19
19
  error: z.ZodNullable<z.ZodString>;
20
20
  retries: z.ZodNumber;
@@ -28,10 +28,10 @@ declare const workflowReadInputSchema: z.ZodObject<{
28
28
  }, z.core.$strip>;
29
29
  declare const workflowListInputSchema: z.ZodObject<{
30
30
  status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
31
- failed: "failed";
32
31
  queued: "queued";
33
32
  running: "running";
34
33
  completed: "completed";
34
+ failed: "failed";
35
35
  }>>>;
36
36
  jobName: z.ZodOptional<z.ZodString>;
37
37
  }, z.core.$strip>;
@@ -51,10 +51,10 @@ declare const workflowReadOutputSchema: z.ZodObject<{
51
51
  input: z.ZodUnknown;
52
52
  output: z.ZodUnknown;
53
53
  status: z.ZodEnum<{
54
- failed: "failed";
55
54
  queued: "queued";
56
55
  running: "running";
57
56
  completed: "completed";
57
+ failed: "failed";
58
58
  }>;
59
59
  error: z.ZodNullable<z.ZodString>;
60
60
  retries: z.ZodNumber;
@@ -73,10 +73,10 @@ declare const workflowListOutputSchema: z.ZodArray<z.ZodObject<{
73
73
  input: z.ZodUnknown;
74
74
  output: z.ZodUnknown;
75
75
  status: z.ZodEnum<{
76
- failed: "failed";
77
76
  queued: "queued";
78
77
  running: "running";
79
78
  completed: "completed";
79
+ failed: "failed";
80
80
  }>;
81
81
  error: z.ZodNullable<z.ZodString>;
82
82
  retries: z.ZodNumber;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m5kdev/commons",
3
- "version": "0.39.0",
3
+ "version": "0.40.1",
4
4
  "license": "GPL-3.0-only",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,7 +21,7 @@
21
21
  "tsdown": "0.21.7",
22
22
  "typescript": "6.0.3",
23
23
  "zod": "4.4.3",
24
- "@m5kdev/config": "0.39.0"
24
+ "@m5kdev/config": "0.40.1"
25
25
  },
26
26
  "exports": {
27
27
  "./utils/*": {