@middlewr/contracts 0.0.48 → 0.0.49

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 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA+DxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAE9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AAGpC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAU7B,CAAC;AAGF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYzB,CAAC;AAGF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM3B,CAAC;AAGF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAepC,CAAC;AAGF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6D9B,CAAC;AAGF,eAAO,MAAM,mBAAmB;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYpB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AACvC,MAAM,MAAM,MAAM,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC"}
package/dist/esm/index.js CHANGED
@@ -272,6 +272,25 @@ var PasswordNodeSchema = z6.object({
272
272
  position: PositionSchema,
273
273
  next: z6.string().nullable()
274
274
  });
275
+ var CountdownNodeSchema = z6.object({
276
+ id: z6.string(),
277
+ type: z6.literal("countdown"),
278
+ position: PositionSchema,
279
+ seconds: z6.number().int().min(1).max(300),
280
+ message: z6.string().max(500).nullable(),
281
+ next: z6.string().nullable()
282
+ });
283
+ var WebhookNodeSchema = z6.object({
284
+ id: z6.string(),
285
+ type: z6.literal("webhook"),
286
+ position: PositionSchema,
287
+ url: z6.string().url().refine((u) => u.startsWith("https://") || u.startsWith("http://"), {
288
+ message: "Webhook URL must use http or https protocol"
289
+ }),
290
+ method: z6.enum(["POST", "GET"]),
291
+ headers: z6.record(z6.string(), z6.string().regex(/^[^\r\n]*$/, "Header value must not contain newlines")).optional(),
292
+ next: z6.string().nullable()
293
+ });
275
294
  var EntryNodeSchema = z6.object({
276
295
  id: z6.string(),
277
296
  type: z6.literal("entry"),
@@ -287,6 +306,8 @@ var RuleGraphNodeSchema = z6.discriminatedUnion("type", [
287
306
  DestinationNodeSchema,
288
307
  TransformNodeSchema,
289
308
  PasswordNodeSchema,
309
+ CountdownNodeSchema,
310
+ WebhookNodeSchema,
290
311
  EntryNodeSchema
291
312
  ]);
292
313
  var BaseRuleGraphSchema = z6.object({
@@ -415,7 +436,6 @@ var LinkSchema = z9.object({
415
436
  qr_code_settings: QrCodeSettingsSchema.nullable(),
416
437
  qr_logo_key: z9.string().nullable(),
417
438
  logo_url: z9.string().nullable(),
418
- link_type: z9.enum(["redirect", "rules"]).default("redirect"),
419
439
  rule_graph: RuleGraphOutputSchema.nullable().optional(),
420
440
  tags: z9.array(TagSchema)
421
441
  });
@@ -434,11 +454,7 @@ var CreateLinkInputSchema = z9.object({
434
454
  redirect_type: z9.coerce.number().refine((v) => [301, 302, 307, 308].includes(v)).optional(),
435
455
  qr_code_settings: QrCodeSettingsSchema.nullable().optional(),
436
456
  tag_ids: z9.array(z9.string().uuid()).optional(),
437
- link_type: z9.enum(["redirect", "rules"]).optional(),
438
457
  rule_graph: RuleGraphSchema.nullable().optional()
439
- }).refine((data) => data.link_type !== "rules" || data.rule_graph != null, {
440
- message: 'rule_graph is required when link_type is "rules"',
441
- path: ["rule_graph"]
442
458
  });
443
459
  var UpdateLinkInputSchema = z9.object({
444
460
  original_url: z9.string().url().max(2048).optional(),
@@ -456,11 +472,7 @@ var UpdateLinkInputSchema = z9.object({
456
472
  redirect_type: z9.coerce.number().refine((v) => [301, 302, 307, 308].includes(v)).optional(),
457
473
  qr_code_settings: QrCodeSettingsSchema.nullable().optional(),
458
474
  tag_ids: z9.array(z9.string().uuid()).optional(),
459
- link_type: z9.enum(["redirect", "rules"]).optional(),
460
475
  rule_graph: RuleGraphSchema.nullable().optional()
461
- }).refine((data) => data.link_type !== "rules" || data.rule_graph != null, {
462
- message: 'rule_graph is required when link_type is "rules"',
463
- path: ["rule_graph"]
464
476
  });
465
477
  var stringToBoolean = z9.union([z9.boolean(), z9.enum(["true", "false"])]).transform((val) => typeof val === "string" ? val === "true" : val);
466
478
  var LinkFiltersSchema = z9.object({
@@ -86,6 +86,30 @@ export declare const LinkTemplateSchema: z.ZodObject<{
86
86
  y: z.ZodNumber;
87
87
  }, z.core.$strip>;
88
88
  next: z.ZodNullable<z.ZodString>;
89
+ }, z.core.$strip>, z.ZodObject<{
90
+ id: z.ZodString;
91
+ type: z.ZodLiteral<"countdown">;
92
+ position: z.ZodObject<{
93
+ x: z.ZodNumber;
94
+ y: z.ZodNumber;
95
+ }, z.core.$strip>;
96
+ seconds: z.ZodNumber;
97
+ message: z.ZodNullable<z.ZodString>;
98
+ next: z.ZodNullable<z.ZodString>;
99
+ }, z.core.$strip>, z.ZodObject<{
100
+ id: z.ZodString;
101
+ type: z.ZodLiteral<"webhook">;
102
+ position: z.ZodObject<{
103
+ x: z.ZodNumber;
104
+ y: z.ZodNumber;
105
+ }, z.core.$strip>;
106
+ url: z.ZodString;
107
+ method: z.ZodEnum<{
108
+ POST: "POST";
109
+ GET: "GET";
110
+ }>;
111
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
112
+ next: z.ZodNullable<z.ZodString>;
89
113
  }, z.core.$strip>, z.ZodObject<{
90
114
  id: z.ZodString;
91
115
  type: z.ZodLiteral<"entry">;
@@ -187,6 +211,30 @@ export declare const CreateLinkTemplateInputSchema: z.ZodObject<{
187
211
  y: z.ZodNumber;
188
212
  }, z.core.$strip>;
189
213
  next: z.ZodNullable<z.ZodString>;
214
+ }, z.core.$strip>, z.ZodObject<{
215
+ id: z.ZodString;
216
+ type: z.ZodLiteral<"countdown">;
217
+ position: z.ZodObject<{
218
+ x: z.ZodNumber;
219
+ y: z.ZodNumber;
220
+ }, z.core.$strip>;
221
+ seconds: z.ZodNumber;
222
+ message: z.ZodNullable<z.ZodString>;
223
+ next: z.ZodNullable<z.ZodString>;
224
+ }, z.core.$strip>, z.ZodObject<{
225
+ id: z.ZodString;
226
+ type: z.ZodLiteral<"webhook">;
227
+ position: z.ZodObject<{
228
+ x: z.ZodNumber;
229
+ y: z.ZodNumber;
230
+ }, z.core.$strip>;
231
+ url: z.ZodString;
232
+ method: z.ZodEnum<{
233
+ POST: "POST";
234
+ GET: "GET";
235
+ }>;
236
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
237
+ next: z.ZodNullable<z.ZodString>;
190
238
  }, z.core.$strip>, z.ZodObject<{
191
239
  id: z.ZodString;
192
240
  type: z.ZodLiteral<"entry">;
@@ -286,6 +334,30 @@ export declare const UpdateLinkTemplateInputSchema: z.ZodObject<{
286
334
  y: z.ZodNumber;
287
335
  }, z.core.$strip>;
288
336
  next: z.ZodNullable<z.ZodString>;
337
+ }, z.core.$strip>, z.ZodObject<{
338
+ id: z.ZodString;
339
+ type: z.ZodLiteral<"countdown">;
340
+ position: z.ZodObject<{
341
+ x: z.ZodNumber;
342
+ y: z.ZodNumber;
343
+ }, z.core.$strip>;
344
+ seconds: z.ZodNumber;
345
+ message: z.ZodNullable<z.ZodString>;
346
+ next: z.ZodNullable<z.ZodString>;
347
+ }, z.core.$strip>, z.ZodObject<{
348
+ id: z.ZodString;
349
+ type: z.ZodLiteral<"webhook">;
350
+ position: z.ZodObject<{
351
+ x: z.ZodNumber;
352
+ y: z.ZodNumber;
353
+ }, z.core.$strip>;
354
+ url: z.ZodString;
355
+ method: z.ZodEnum<{
356
+ POST: "POST";
357
+ GET: "GET";
358
+ }>;
359
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
360
+ next: z.ZodNullable<z.ZodString>;
289
361
  }, z.core.$strip>, z.ZodObject<{
290
362
  id: z.ZodString;
291
363
  type: z.ZodLiteral<"entry">;
@@ -393,6 +465,30 @@ export declare const PaginatedLinkTemplatesSchema: z.ZodObject<{
393
465
  y: z.ZodNumber;
394
466
  }, z.core.$strip>;
395
467
  next: z.ZodNullable<z.ZodString>;
468
+ }, z.core.$strip>, z.ZodObject<{
469
+ id: z.ZodString;
470
+ type: z.ZodLiteral<"countdown">;
471
+ position: z.ZodObject<{
472
+ x: z.ZodNumber;
473
+ y: z.ZodNumber;
474
+ }, z.core.$strip>;
475
+ seconds: z.ZodNumber;
476
+ message: z.ZodNullable<z.ZodString>;
477
+ next: z.ZodNullable<z.ZodString>;
478
+ }, z.core.$strip>, z.ZodObject<{
479
+ id: z.ZodString;
480
+ type: z.ZodLiteral<"webhook">;
481
+ position: z.ZodObject<{
482
+ x: z.ZodNumber;
483
+ y: z.ZodNumber;
484
+ }, z.core.$strip>;
485
+ url: z.ZodString;
486
+ method: z.ZodEnum<{
487
+ POST: "POST";
488
+ GET: "GET";
489
+ }>;
490
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
491
+ next: z.ZodNullable<z.ZodString>;
396
492
  }, z.core.$strip>, z.ZodObject<{
397
493
  id: z.ZodString;
398
494
  type: z.ZodLiteral<"entry">;
@@ -1 +1 @@
1
- {"version":3,"file":"link-templates.schema.d.ts","sourceRoot":"","sources":["../../src/link-templates.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQ7B,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIxC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIxC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMvC,CAAC"}
1
+ {"version":3,"file":"link-templates.schema.d.ts","sourceRoot":"","sources":["../../src/link-templates.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQ7B,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIxC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIxC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMvC,CAAC"}
@@ -74,10 +74,6 @@ export declare const LinkSchema: z.ZodObject<{
74
74
  }, z.core.$strip>>;
75
75
  qr_logo_key: z.ZodNullable<z.ZodString>;
76
76
  logo_url: z.ZodNullable<z.ZodString>;
77
- link_type: z.ZodDefault<z.ZodEnum<{
78
- redirect: "redirect";
79
- rules: "rules";
80
- }>>;
81
77
  rule_graph: z.ZodOptional<z.ZodNullable<z.ZodObject<{
82
78
  entry: z.ZodString;
83
79
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -160,6 +156,30 @@ export declare const LinkSchema: z.ZodObject<{
160
156
  y: z.ZodNumber;
161
157
  }, z.core.$strip>;
162
158
  next: z.ZodNullable<z.ZodString>;
159
+ }, z.core.$strip>, z.ZodObject<{
160
+ id: z.ZodString;
161
+ type: z.ZodLiteral<"countdown">;
162
+ position: z.ZodObject<{
163
+ x: z.ZodNumber;
164
+ y: z.ZodNumber;
165
+ }, z.core.$strip>;
166
+ seconds: z.ZodNumber;
167
+ message: z.ZodNullable<z.ZodString>;
168
+ next: z.ZodNullable<z.ZodString>;
169
+ }, z.core.$strip>, z.ZodObject<{
170
+ id: z.ZodString;
171
+ type: z.ZodLiteral<"webhook">;
172
+ position: z.ZodObject<{
173
+ x: z.ZodNumber;
174
+ y: z.ZodNumber;
175
+ }, z.core.$strip>;
176
+ url: z.ZodString;
177
+ method: z.ZodEnum<{
178
+ POST: "POST";
179
+ GET: "GET";
180
+ }>;
181
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
182
+ next: z.ZodNullable<z.ZodString>;
163
183
  }, z.core.$strip>, z.ZodObject<{
164
184
  id: z.ZodString;
165
185
  type: z.ZodLiteral<"entry">;
@@ -222,10 +242,6 @@ export declare const CreateLinkInputSchema: z.ZodObject<{
222
242
  logo_size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
223
243
  }, z.core.$strip>>>;
224
244
  tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
225
- link_type: z.ZodOptional<z.ZodEnum<{
226
- redirect: "redirect";
227
- rules: "rules";
228
- }>>;
229
245
  rule_graph: z.ZodOptional<z.ZodNullable<z.ZodObject<{
230
246
  entry: z.ZodString;
231
247
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -308,6 +324,30 @@ export declare const CreateLinkInputSchema: z.ZodObject<{
308
324
  y: z.ZodNumber;
309
325
  }, z.core.$strip>;
310
326
  next: z.ZodNullable<z.ZodString>;
327
+ }, z.core.$strip>, z.ZodObject<{
328
+ id: z.ZodString;
329
+ type: z.ZodLiteral<"countdown">;
330
+ position: z.ZodObject<{
331
+ x: z.ZodNumber;
332
+ y: z.ZodNumber;
333
+ }, z.core.$strip>;
334
+ seconds: z.ZodNumber;
335
+ message: z.ZodNullable<z.ZodString>;
336
+ next: z.ZodNullable<z.ZodString>;
337
+ }, z.core.$strip>, z.ZodObject<{
338
+ id: z.ZodString;
339
+ type: z.ZodLiteral<"webhook">;
340
+ position: z.ZodObject<{
341
+ x: z.ZodNumber;
342
+ y: z.ZodNumber;
343
+ }, z.core.$strip>;
344
+ url: z.ZodString;
345
+ method: z.ZodEnum<{
346
+ POST: "POST";
347
+ GET: "GET";
348
+ }>;
349
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
350
+ next: z.ZodNullable<z.ZodString>;
311
351
  }, z.core.$strip>, z.ZodObject<{
312
352
  id: z.ZodString;
313
353
  type: z.ZodLiteral<"entry">;
@@ -363,10 +403,6 @@ export declare const UpdateLinkInputSchema: z.ZodObject<{
363
403
  logo_size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
364
404
  }, z.core.$strip>>>;
365
405
  tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
366
- link_type: z.ZodOptional<z.ZodEnum<{
367
- redirect: "redirect";
368
- rules: "rules";
369
- }>>;
370
406
  rule_graph: z.ZodOptional<z.ZodNullable<z.ZodObject<{
371
407
  entry: z.ZodString;
372
408
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -449,6 +485,30 @@ export declare const UpdateLinkInputSchema: z.ZodObject<{
449
485
  y: z.ZodNumber;
450
486
  }, z.core.$strip>;
451
487
  next: z.ZodNullable<z.ZodString>;
488
+ }, z.core.$strip>, z.ZodObject<{
489
+ id: z.ZodString;
490
+ type: z.ZodLiteral<"countdown">;
491
+ position: z.ZodObject<{
492
+ x: z.ZodNumber;
493
+ y: z.ZodNumber;
494
+ }, z.core.$strip>;
495
+ seconds: z.ZodNumber;
496
+ message: z.ZodNullable<z.ZodString>;
497
+ next: z.ZodNullable<z.ZodString>;
498
+ }, z.core.$strip>, z.ZodObject<{
499
+ id: z.ZodString;
500
+ type: z.ZodLiteral<"webhook">;
501
+ position: z.ZodObject<{
502
+ x: z.ZodNumber;
503
+ y: z.ZodNumber;
504
+ }, z.core.$strip>;
505
+ url: z.ZodString;
506
+ method: z.ZodEnum<{
507
+ POST: "POST";
508
+ GET: "GET";
509
+ }>;
510
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
511
+ next: z.ZodNullable<z.ZodString>;
452
512
  }, z.core.$strip>, z.ZodObject<{
453
513
  id: z.ZodString;
454
514
  type: z.ZodLiteral<"entry">;
@@ -557,10 +617,6 @@ export declare const PaginatedLinksSchema: z.ZodObject<{
557
617
  }, z.core.$strip>>;
558
618
  qr_logo_key: z.ZodNullable<z.ZodString>;
559
619
  logo_url: z.ZodNullable<z.ZodString>;
560
- link_type: z.ZodDefault<z.ZodEnum<{
561
- redirect: "redirect";
562
- rules: "rules";
563
- }>>;
564
620
  rule_graph: z.ZodOptional<z.ZodNullable<z.ZodObject<{
565
621
  entry: z.ZodString;
566
622
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -643,6 +699,30 @@ export declare const PaginatedLinksSchema: z.ZodObject<{
643
699
  y: z.ZodNumber;
644
700
  }, z.core.$strip>;
645
701
  next: z.ZodNullable<z.ZodString>;
702
+ }, z.core.$strip>, z.ZodObject<{
703
+ id: z.ZodString;
704
+ type: z.ZodLiteral<"countdown">;
705
+ position: z.ZodObject<{
706
+ x: z.ZodNumber;
707
+ y: z.ZodNumber;
708
+ }, z.core.$strip>;
709
+ seconds: z.ZodNumber;
710
+ message: z.ZodNullable<z.ZodString>;
711
+ next: z.ZodNullable<z.ZodString>;
712
+ }, z.core.$strip>, z.ZodObject<{
713
+ id: z.ZodString;
714
+ type: z.ZodLiteral<"webhook">;
715
+ position: z.ZodObject<{
716
+ x: z.ZodNumber;
717
+ y: z.ZodNumber;
718
+ }, z.core.$strip>;
719
+ url: z.ZodString;
720
+ method: z.ZodEnum<{
721
+ POST: "POST";
722
+ GET: "GET";
723
+ }>;
724
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
725
+ next: z.ZodNullable<z.ZodString>;
646
726
  }, z.core.$strip>, z.ZodObject<{
647
727
  id: z.ZodString;
648
728
  type: z.ZodLiteral<"entry">;
@@ -1 +1 @@
1
- {"version":3,"file":"links.schema.d.ts","sourceRoot":"","sources":["../../src/links.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;iBAW/B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2BrB,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8B5B,CAAC;AAEP,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;iBAwBhC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyBhC,CAAC;AAMH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;iBAW5B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;iBAAyD,CAAC;AAE/F,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM/B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;iBAYxB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC"}
@@ -79,6 +79,30 @@ export declare const RuleGraphNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
79
79
  y: z.ZodNumber;
80
80
  }, z.core.$strip>;
81
81
  next: z.ZodNullable<z.ZodString>;
82
+ }, z.core.$strip>, z.ZodObject<{
83
+ id: z.ZodString;
84
+ type: z.ZodLiteral<"countdown">;
85
+ position: z.ZodObject<{
86
+ x: z.ZodNumber;
87
+ y: z.ZodNumber;
88
+ }, z.core.$strip>;
89
+ seconds: z.ZodNumber;
90
+ message: z.ZodNullable<z.ZodString>;
91
+ next: z.ZodNullable<z.ZodString>;
92
+ }, z.core.$strip>, z.ZodObject<{
93
+ id: z.ZodString;
94
+ type: z.ZodLiteral<"webhook">;
95
+ position: z.ZodObject<{
96
+ x: z.ZodNumber;
97
+ y: z.ZodNumber;
98
+ }, z.core.$strip>;
99
+ url: z.ZodString;
100
+ method: z.ZodEnum<{
101
+ POST: "POST";
102
+ GET: "GET";
103
+ }>;
104
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
105
+ next: z.ZodNullable<z.ZodString>;
82
106
  }, z.core.$strip>, z.ZodObject<{
83
107
  id: z.ZodString;
84
108
  type: z.ZodLiteral<"entry">;
@@ -173,6 +197,30 @@ export declare const RuleGraphOutputSchema: z.ZodObject<{
173
197
  y: z.ZodNumber;
174
198
  }, z.core.$strip>;
175
199
  next: z.ZodNullable<z.ZodString>;
200
+ }, z.core.$strip>, z.ZodObject<{
201
+ id: z.ZodString;
202
+ type: z.ZodLiteral<"countdown">;
203
+ position: z.ZodObject<{
204
+ x: z.ZodNumber;
205
+ y: z.ZodNumber;
206
+ }, z.core.$strip>;
207
+ seconds: z.ZodNumber;
208
+ message: z.ZodNullable<z.ZodString>;
209
+ next: z.ZodNullable<z.ZodString>;
210
+ }, z.core.$strip>, z.ZodObject<{
211
+ id: z.ZodString;
212
+ type: z.ZodLiteral<"webhook">;
213
+ position: z.ZodObject<{
214
+ x: z.ZodNumber;
215
+ y: z.ZodNumber;
216
+ }, z.core.$strip>;
217
+ url: z.ZodString;
218
+ method: z.ZodEnum<{
219
+ POST: "POST";
220
+ GET: "GET";
221
+ }>;
222
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
223
+ next: z.ZodNullable<z.ZodString>;
176
224
  }, z.core.$strip>, z.ZodObject<{
177
225
  id: z.ZodString;
178
226
  type: z.ZodLiteral<"entry">;
@@ -268,6 +316,30 @@ export declare const RuleGraphSchema: z.ZodObject<{
268
316
  y: z.ZodNumber;
269
317
  }, z.core.$strip>;
270
318
  next: z.ZodNullable<z.ZodString>;
319
+ }, z.core.$strip>, z.ZodObject<{
320
+ id: z.ZodString;
321
+ type: z.ZodLiteral<"countdown">;
322
+ position: z.ZodObject<{
323
+ x: z.ZodNumber;
324
+ y: z.ZodNumber;
325
+ }, z.core.$strip>;
326
+ seconds: z.ZodNumber;
327
+ message: z.ZodNullable<z.ZodString>;
328
+ next: z.ZodNullable<z.ZodString>;
329
+ }, z.core.$strip>, z.ZodObject<{
330
+ id: z.ZodString;
331
+ type: z.ZodLiteral<"webhook">;
332
+ position: z.ZodObject<{
333
+ x: z.ZodNumber;
334
+ y: z.ZodNumber;
335
+ }, z.core.$strip>;
336
+ url: z.ZodString;
337
+ method: z.ZodEnum<{
338
+ POST: "POST";
339
+ GET: "GET";
340
+ }>;
341
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
342
+ next: z.ZodNullable<z.ZodString>;
271
343
  }, z.core.$strip>, z.ZodObject<{
272
344
  id: z.ZodString;
273
345
  type: z.ZodLiteral<"entry">;
@@ -1 +1 @@
1
- {"version":3,"file":"rules.schema.d.ts","sourceRoot":"","sources":["../../src/rules.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkGxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAO9B,CAAC;AAOH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGhC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuBvB,CAAC"}
1
+ {"version":3,"file":"rules.schema.d.ts","sourceRoot":"","sources":["../../src/rules.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA0HxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAS9B,CAAC;AAOH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGhC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuBvB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middlewr/contracts",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
4
4
  "type": "module",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -44,75 +44,62 @@ export const LinkSchema = z.object({
44
44
  qr_code_settings: QrCodeSettingsSchema.nullable(),
45
45
  qr_logo_key: z.string().nullable(),
46
46
  logo_url: z.string().nullable(),
47
- link_type: z.enum(['redirect', 'rules']).default('redirect'),
48
47
  rule_graph: RuleGraphOutputSchema.nullable().optional(),
49
48
  tags: z.array(TagSchema),
50
49
  });
51
50
 
52
- export const CreateLinkInputSchema = z
53
- .object({
54
- original_url: z.string().url().max(2048),
55
- domain_id: z.string().uuid().optional(),
56
- short_code: z
57
- .string()
58
- .min(3)
59
- .max(50)
60
- .regex(/^[a-zA-Z0-9-]+$/)
61
- .optional(),
62
- title: z.string().max(255).optional(),
63
- description: z.string().max(2000).optional(),
64
- utm_source: z.string().max(255).optional(),
65
- utm_medium: z.string().max(255).optional(),
66
- utm_campaign: z.string().max(255).optional(),
67
- utm_term: z.string().max(255).optional(),
68
- utm_content: z.string().max(255).optional(),
69
- password: z.string().min(4).max(100).optional(),
70
- redirect_type: z.coerce
71
- .number()
72
- .refine((v) => [301, 302, 307, 308].includes(v))
73
- .optional(),
74
- qr_code_settings: QrCodeSettingsSchema.nullable().optional(),
75
- tag_ids: z.array(z.string().uuid()).optional(),
76
- link_type: z.enum(['redirect', 'rules']).optional(),
77
- rule_graph: RuleGraphSchema.nullable().optional(),
78
- })
79
- .refine((data) => data.link_type !== 'rules' || data.rule_graph != null, {
80
- message: 'rule_graph is required when link_type is "rules"',
81
- path: ['rule_graph'],
82
- });
51
+ export const CreateLinkInputSchema = z.object({
52
+ original_url: z.string().url().max(2048),
53
+ domain_id: z.string().uuid().optional(),
54
+ short_code: z
55
+ .string()
56
+ .min(3)
57
+ .max(50)
58
+ .regex(/^[a-zA-Z0-9-]+$/)
59
+ .optional(),
60
+ title: z.string().max(255).optional(),
61
+ description: z.string().max(2000).optional(),
62
+ utm_source: z.string().max(255).optional(),
63
+ utm_medium: z.string().max(255).optional(),
64
+ utm_campaign: z.string().max(255).optional(),
65
+ utm_term: z.string().max(255).optional(),
66
+ utm_content: z.string().max(255).optional(),
67
+ password: z.string().min(4).max(100).optional(),
68
+ redirect_type: z.coerce
69
+ .number()
70
+ .refine((v) => [301, 302, 307, 308].includes(v))
71
+ .optional(),
72
+ qr_code_settings: QrCodeSettingsSchema.nullable().optional(),
73
+ tag_ids: z.array(z.string().uuid()).optional(),
74
+ rule_graph: RuleGraphSchema.nullable().optional(),
75
+ });
83
76
 
84
- export const UpdateLinkInputSchema = z
85
- .object({
86
- original_url: z.string().url().max(2048).optional(),
87
- domain_id: z.string().uuid().optional(),
88
- short_code: z
89
- .string()
90
- .min(3)
91
- .max(50)
92
- .regex(/^[a-zA-Z0-9-]+$/)
93
- .optional(),
94
- title: z.string().max(255).nullable().optional(),
95
- description: z.string().max(2000).nullable().optional(),
96
- utm_source: z.string().max(255).nullable().optional(),
97
- utm_medium: z.string().max(255).nullable().optional(),
98
- utm_campaign: z.string().max(255).nullable().optional(),
99
- utm_term: z.string().max(255).nullable().optional(),
100
- utm_content: z.string().max(255).nullable().optional(),
101
- password: z.string().min(4).max(100).nullable().optional(),
102
- is_active: z.boolean().optional(),
103
- redirect_type: z.coerce
104
- .number()
105
- .refine((v) => [301, 302, 307, 308].includes(v))
106
- .optional(),
107
- qr_code_settings: QrCodeSettingsSchema.nullable().optional(),
108
- tag_ids: z.array(z.string().uuid()).optional(),
109
- link_type: z.enum(['redirect', 'rules']).optional(),
110
- rule_graph: RuleGraphSchema.nullable().optional(),
111
- })
112
- .refine((data) => data.link_type !== 'rules' || data.rule_graph != null, {
113
- message: 'rule_graph is required when link_type is "rules"',
114
- path: ['rule_graph'],
115
- });
77
+ export const UpdateLinkInputSchema = z.object({
78
+ original_url: z.string().url().max(2048).optional(),
79
+ domain_id: z.string().uuid().optional(),
80
+ short_code: z
81
+ .string()
82
+ .min(3)
83
+ .max(50)
84
+ .regex(/^[a-zA-Z0-9-]+$/)
85
+ .optional(),
86
+ title: z.string().max(255).nullable().optional(),
87
+ description: z.string().max(2000).nullable().optional(),
88
+ utm_source: z.string().max(255).nullable().optional(),
89
+ utm_medium: z.string().max(255).nullable().optional(),
90
+ utm_campaign: z.string().max(255).nullable().optional(),
91
+ utm_term: z.string().max(255).nullable().optional(),
92
+ utm_content: z.string().max(255).nullable().optional(),
93
+ password: z.string().min(4).max(100).nullable().optional(),
94
+ is_active: z.boolean().optional(),
95
+ redirect_type: z.coerce
96
+ .number()
97
+ .refine((v) => [301, 302, 307, 308].includes(v))
98
+ .optional(),
99
+ qr_code_settings: QrCodeSettingsSchema.nullable().optional(),
100
+ tag_ids: z.array(z.string().uuid()).optional(),
101
+ rule_graph: RuleGraphSchema.nullable().optional(),
102
+ });
116
103
 
117
104
  const stringToBoolean = z
118
105
  .union([z.boolean(), z.enum(['true', 'false'])])