@middlewr/contracts 0.0.16 → 0.0.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.
@@ -352,6 +352,31 @@ export declare const linksContract: {
352
352
  starts_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
353
353
  expires_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
354
354
  redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
355
+ qr_code_settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
356
+ fg_color: z.ZodString;
357
+ bg_color: z.ZodString;
358
+ dot_style: z.ZodEnum<{
359
+ square: "square";
360
+ dots: "dots";
361
+ rounded: "rounded";
362
+ classy: "classy";
363
+ "classy-rounded": "classy-rounded";
364
+ "extra-rounded": "extra-rounded";
365
+ }>;
366
+ eye_outer_style: z.ZodEnum<{
367
+ square: "square";
368
+ "extra-rounded": "extra-rounded";
369
+ dot: "dot";
370
+ }>;
371
+ eye_inner_style: z.ZodEnum<{
372
+ square: "square";
373
+ dot: "dot";
374
+ }>;
375
+ frame_enabled: z.ZodBoolean;
376
+ frame_text: z.ZodString;
377
+ frame_color: z.ZodString;
378
+ frame_text_color: z.ZodString;
379
+ }, z.core.$strip>>>;
355
380
  tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
356
381
  }, z.core.$strip>, z.ZodObject<{
357
382
  id: z.ZodString;
@@ -376,6 +401,31 @@ export declare const linksContract: {
376
401
  click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
377
402
  created_at: z.ZodCoercedDate<unknown>;
378
403
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
404
+ qr_code_settings: z.ZodNullable<z.ZodObject<{
405
+ fg_color: z.ZodString;
406
+ bg_color: z.ZodString;
407
+ dot_style: z.ZodEnum<{
408
+ square: "square";
409
+ dots: "dots";
410
+ rounded: "rounded";
411
+ classy: "classy";
412
+ "classy-rounded": "classy-rounded";
413
+ "extra-rounded": "extra-rounded";
414
+ }>;
415
+ eye_outer_style: z.ZodEnum<{
416
+ square: "square";
417
+ "extra-rounded": "extra-rounded";
418
+ dot: "dot";
419
+ }>;
420
+ eye_inner_style: z.ZodEnum<{
421
+ square: "square";
422
+ dot: "dot";
423
+ }>;
424
+ frame_enabled: z.ZodBoolean;
425
+ frame_text: z.ZodString;
426
+ frame_color: z.ZodString;
427
+ frame_text_color: z.ZodString;
428
+ }, z.core.$strip>>;
379
429
  tags: z.ZodArray<z.ZodObject<{
380
430
  id: z.ZodString;
381
431
  workspace_id: z.ZodString;
@@ -441,6 +491,31 @@ export declare const linksContract: {
441
491
  click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
442
492
  created_at: z.ZodCoercedDate<unknown>;
443
493
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
494
+ qr_code_settings: z.ZodNullable<z.ZodObject<{
495
+ fg_color: z.ZodString;
496
+ bg_color: z.ZodString;
497
+ dot_style: z.ZodEnum<{
498
+ square: "square";
499
+ dots: "dots";
500
+ rounded: "rounded";
501
+ classy: "classy";
502
+ "classy-rounded": "classy-rounded";
503
+ "extra-rounded": "extra-rounded";
504
+ }>;
505
+ eye_outer_style: z.ZodEnum<{
506
+ square: "square";
507
+ "extra-rounded": "extra-rounded";
508
+ dot: "dot";
509
+ }>;
510
+ eye_inner_style: z.ZodEnum<{
511
+ square: "square";
512
+ dot: "dot";
513
+ }>;
514
+ frame_enabled: z.ZodBoolean;
515
+ frame_text: z.ZodString;
516
+ frame_color: z.ZodString;
517
+ frame_text_color: z.ZodString;
518
+ }, z.core.$strip>>;
444
519
  tags: z.ZodArray<z.ZodObject<{
445
520
  id: z.ZodString;
446
521
  workspace_id: z.ZodString;
@@ -481,6 +556,31 @@ export declare const linksContract: {
481
556
  click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
482
557
  created_at: z.ZodCoercedDate<unknown>;
483
558
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
559
+ qr_code_settings: z.ZodNullable<z.ZodObject<{
560
+ fg_color: z.ZodString;
561
+ bg_color: z.ZodString;
562
+ dot_style: z.ZodEnum<{
563
+ square: "square";
564
+ dots: "dots";
565
+ rounded: "rounded";
566
+ classy: "classy";
567
+ "classy-rounded": "classy-rounded";
568
+ "extra-rounded": "extra-rounded";
569
+ }>;
570
+ eye_outer_style: z.ZodEnum<{
571
+ square: "square";
572
+ "extra-rounded": "extra-rounded";
573
+ dot: "dot";
574
+ }>;
575
+ eye_inner_style: z.ZodEnum<{
576
+ square: "square";
577
+ dot: "dot";
578
+ }>;
579
+ frame_enabled: z.ZodBoolean;
580
+ frame_text: z.ZodString;
581
+ frame_color: z.ZodString;
582
+ frame_text_color: z.ZodString;
583
+ }, z.core.$strip>>;
484
584
  tags: z.ZodArray<z.ZodObject<{
485
585
  id: z.ZodString;
486
586
  workspace_id: z.ZodString;
@@ -508,6 +608,31 @@ export declare const linksContract: {
508
608
  expires_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
509
609
  is_active: z.ZodOptional<z.ZodBoolean>;
510
610
  redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
611
+ qr_code_settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
612
+ fg_color: z.ZodString;
613
+ bg_color: z.ZodString;
614
+ dot_style: z.ZodEnum<{
615
+ square: "square";
616
+ dots: "dots";
617
+ rounded: "rounded";
618
+ classy: "classy";
619
+ "classy-rounded": "classy-rounded";
620
+ "extra-rounded": "extra-rounded";
621
+ }>;
622
+ eye_outer_style: z.ZodEnum<{
623
+ square: "square";
624
+ "extra-rounded": "extra-rounded";
625
+ dot: "dot";
626
+ }>;
627
+ eye_inner_style: z.ZodEnum<{
628
+ square: "square";
629
+ dot: "dot";
630
+ }>;
631
+ frame_enabled: z.ZodBoolean;
632
+ frame_text: z.ZodString;
633
+ frame_color: z.ZodString;
634
+ frame_text_color: z.ZodString;
635
+ }, z.core.$strip>>>;
511
636
  tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
512
637
  }, z.core.$strip>, z.ZodObject<{
513
638
  id: z.ZodString;
@@ -532,6 +657,31 @@ export declare const linksContract: {
532
657
  click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
533
658
  created_at: z.ZodCoercedDate<unknown>;
534
659
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
660
+ qr_code_settings: z.ZodNullable<z.ZodObject<{
661
+ fg_color: z.ZodString;
662
+ bg_color: z.ZodString;
663
+ dot_style: z.ZodEnum<{
664
+ square: "square";
665
+ dots: "dots";
666
+ rounded: "rounded";
667
+ classy: "classy";
668
+ "classy-rounded": "classy-rounded";
669
+ "extra-rounded": "extra-rounded";
670
+ }>;
671
+ eye_outer_style: z.ZodEnum<{
672
+ square: "square";
673
+ "extra-rounded": "extra-rounded";
674
+ dot: "dot";
675
+ }>;
676
+ eye_inner_style: z.ZodEnum<{
677
+ square: "square";
678
+ dot: "dot";
679
+ }>;
680
+ frame_enabled: z.ZodBoolean;
681
+ frame_text: z.ZodString;
682
+ frame_color: z.ZodString;
683
+ frame_text_color: z.ZodString;
684
+ }, z.core.$strip>>;
535
685
  tags: z.ZodArray<z.ZodObject<{
536
686
  id: z.ZodString;
537
687
  workspace_id: z.ZodString;
@@ -1077,6 +1227,31 @@ export declare const contract: {
1077
1227
  starts_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1078
1228
  expires_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1079
1229
  redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1230
+ qr_code_settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1231
+ fg_color: z.ZodString;
1232
+ bg_color: z.ZodString;
1233
+ dot_style: z.ZodEnum<{
1234
+ square: "square";
1235
+ dots: "dots";
1236
+ rounded: "rounded";
1237
+ classy: "classy";
1238
+ "classy-rounded": "classy-rounded";
1239
+ "extra-rounded": "extra-rounded";
1240
+ }>;
1241
+ eye_outer_style: z.ZodEnum<{
1242
+ square: "square";
1243
+ "extra-rounded": "extra-rounded";
1244
+ dot: "dot";
1245
+ }>;
1246
+ eye_inner_style: z.ZodEnum<{
1247
+ square: "square";
1248
+ dot: "dot";
1249
+ }>;
1250
+ frame_enabled: z.ZodBoolean;
1251
+ frame_text: z.ZodString;
1252
+ frame_color: z.ZodString;
1253
+ frame_text_color: z.ZodString;
1254
+ }, z.core.$strip>>>;
1080
1255
  tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
1081
1256
  }, z.core.$strip>, z.ZodObject<{
1082
1257
  id: z.ZodString;
@@ -1101,6 +1276,31 @@ export declare const contract: {
1101
1276
  click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1102
1277
  created_at: z.ZodCoercedDate<unknown>;
1103
1278
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1279
+ qr_code_settings: z.ZodNullable<z.ZodObject<{
1280
+ fg_color: z.ZodString;
1281
+ bg_color: z.ZodString;
1282
+ dot_style: z.ZodEnum<{
1283
+ square: "square";
1284
+ dots: "dots";
1285
+ rounded: "rounded";
1286
+ classy: "classy";
1287
+ "classy-rounded": "classy-rounded";
1288
+ "extra-rounded": "extra-rounded";
1289
+ }>;
1290
+ eye_outer_style: z.ZodEnum<{
1291
+ square: "square";
1292
+ "extra-rounded": "extra-rounded";
1293
+ dot: "dot";
1294
+ }>;
1295
+ eye_inner_style: z.ZodEnum<{
1296
+ square: "square";
1297
+ dot: "dot";
1298
+ }>;
1299
+ frame_enabled: z.ZodBoolean;
1300
+ frame_text: z.ZodString;
1301
+ frame_color: z.ZodString;
1302
+ frame_text_color: z.ZodString;
1303
+ }, z.core.$strip>>;
1104
1304
  tags: z.ZodArray<z.ZodObject<{
1105
1305
  id: z.ZodString;
1106
1306
  workspace_id: z.ZodString;
@@ -1166,6 +1366,31 @@ export declare const contract: {
1166
1366
  click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1167
1367
  created_at: z.ZodCoercedDate<unknown>;
1168
1368
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1369
+ qr_code_settings: z.ZodNullable<z.ZodObject<{
1370
+ fg_color: z.ZodString;
1371
+ bg_color: z.ZodString;
1372
+ dot_style: z.ZodEnum<{
1373
+ square: "square";
1374
+ dots: "dots";
1375
+ rounded: "rounded";
1376
+ classy: "classy";
1377
+ "classy-rounded": "classy-rounded";
1378
+ "extra-rounded": "extra-rounded";
1379
+ }>;
1380
+ eye_outer_style: z.ZodEnum<{
1381
+ square: "square";
1382
+ "extra-rounded": "extra-rounded";
1383
+ dot: "dot";
1384
+ }>;
1385
+ eye_inner_style: z.ZodEnum<{
1386
+ square: "square";
1387
+ dot: "dot";
1388
+ }>;
1389
+ frame_enabled: z.ZodBoolean;
1390
+ frame_text: z.ZodString;
1391
+ frame_color: z.ZodString;
1392
+ frame_text_color: z.ZodString;
1393
+ }, z.core.$strip>>;
1169
1394
  tags: z.ZodArray<z.ZodObject<{
1170
1395
  id: z.ZodString;
1171
1396
  workspace_id: z.ZodString;
@@ -1206,6 +1431,31 @@ export declare const contract: {
1206
1431
  click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1207
1432
  created_at: z.ZodCoercedDate<unknown>;
1208
1433
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1434
+ qr_code_settings: z.ZodNullable<z.ZodObject<{
1435
+ fg_color: z.ZodString;
1436
+ bg_color: z.ZodString;
1437
+ dot_style: z.ZodEnum<{
1438
+ square: "square";
1439
+ dots: "dots";
1440
+ rounded: "rounded";
1441
+ classy: "classy";
1442
+ "classy-rounded": "classy-rounded";
1443
+ "extra-rounded": "extra-rounded";
1444
+ }>;
1445
+ eye_outer_style: z.ZodEnum<{
1446
+ square: "square";
1447
+ "extra-rounded": "extra-rounded";
1448
+ dot: "dot";
1449
+ }>;
1450
+ eye_inner_style: z.ZodEnum<{
1451
+ square: "square";
1452
+ dot: "dot";
1453
+ }>;
1454
+ frame_enabled: z.ZodBoolean;
1455
+ frame_text: z.ZodString;
1456
+ frame_color: z.ZodString;
1457
+ frame_text_color: z.ZodString;
1458
+ }, z.core.$strip>>;
1209
1459
  tags: z.ZodArray<z.ZodObject<{
1210
1460
  id: z.ZodString;
1211
1461
  workspace_id: z.ZodString;
@@ -1233,6 +1483,31 @@ export declare const contract: {
1233
1483
  expires_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
1234
1484
  is_active: z.ZodOptional<z.ZodBoolean>;
1235
1485
  redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1486
+ qr_code_settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1487
+ fg_color: z.ZodString;
1488
+ bg_color: z.ZodString;
1489
+ dot_style: z.ZodEnum<{
1490
+ square: "square";
1491
+ dots: "dots";
1492
+ rounded: "rounded";
1493
+ classy: "classy";
1494
+ "classy-rounded": "classy-rounded";
1495
+ "extra-rounded": "extra-rounded";
1496
+ }>;
1497
+ eye_outer_style: z.ZodEnum<{
1498
+ square: "square";
1499
+ "extra-rounded": "extra-rounded";
1500
+ dot: "dot";
1501
+ }>;
1502
+ eye_inner_style: z.ZodEnum<{
1503
+ square: "square";
1504
+ dot: "dot";
1505
+ }>;
1506
+ frame_enabled: z.ZodBoolean;
1507
+ frame_text: z.ZodString;
1508
+ frame_color: z.ZodString;
1509
+ frame_text_color: z.ZodString;
1510
+ }, z.core.$strip>>>;
1236
1511
  tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
1237
1512
  }, z.core.$strip>, z.ZodObject<{
1238
1513
  id: z.ZodString;
@@ -1257,6 +1532,31 @@ export declare const contract: {
1257
1532
  click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1258
1533
  created_at: z.ZodCoercedDate<unknown>;
1259
1534
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1535
+ qr_code_settings: z.ZodNullable<z.ZodObject<{
1536
+ fg_color: z.ZodString;
1537
+ bg_color: z.ZodString;
1538
+ dot_style: z.ZodEnum<{
1539
+ square: "square";
1540
+ dots: "dots";
1541
+ rounded: "rounded";
1542
+ classy: "classy";
1543
+ "classy-rounded": "classy-rounded";
1544
+ "extra-rounded": "extra-rounded";
1545
+ }>;
1546
+ eye_outer_style: z.ZodEnum<{
1547
+ square: "square";
1548
+ "extra-rounded": "extra-rounded";
1549
+ dot: "dot";
1550
+ }>;
1551
+ eye_inner_style: z.ZodEnum<{
1552
+ square: "square";
1553
+ dot: "dot";
1554
+ }>;
1555
+ frame_enabled: z.ZodBoolean;
1556
+ frame_text: z.ZodString;
1557
+ frame_color: z.ZodString;
1558
+ frame_text_color: z.ZodString;
1559
+ }, z.core.$strip>>;
1260
1560
  tags: z.ZodArray<z.ZodObject<{
1261
1561
  id: z.ZodString;
1262
1562
  workspace_id: z.ZodString;
@@ -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;AAgCxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,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;;;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,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC"}
package/dist/cjs/index.js CHANGED
@@ -46,6 +46,7 @@ __export(index_exports, {
46
46
  LinkSchema: () => LinkSchema,
47
47
  MemberIdParamSchema: () => MemberIdParamSchema,
48
48
  PaginatedLinksSchema: () => PaginatedLinksSchema,
49
+ QrCodeSettingsSchema: () => QrCodeSettingsSchema,
49
50
  SignInInputSchema: () => SignInInputSchema,
50
51
  TagIdParamSchema: () => TagIdParamSchema,
51
52
  TagSchema: () => TagSchema,
@@ -244,6 +245,20 @@ var UpdateTagInputSchema = import_zod6.z.object({
244
245
  });
245
246
 
246
247
  // src/links.schema.ts
248
+ var DotStyleSchema = import_zod7.z.enum(["square", "dots", "rounded", "classy", "classy-rounded", "extra-rounded"]);
249
+ var EyeOuterStyleSchema = import_zod7.z.enum(["square", "dot", "extra-rounded"]);
250
+ var EyeInnerStyleSchema = import_zod7.z.enum(["square", "dot"]);
251
+ var QrCodeSettingsSchema = import_zod7.z.object({
252
+ fg_color: import_zod7.z.string().max(20),
253
+ bg_color: import_zod7.z.string().max(20),
254
+ dot_style: DotStyleSchema,
255
+ eye_outer_style: EyeOuterStyleSchema,
256
+ eye_inner_style: EyeInnerStyleSchema,
257
+ frame_enabled: import_zod7.z.boolean(),
258
+ frame_text: import_zod7.z.string().max(255),
259
+ frame_color: import_zod7.z.string().max(20),
260
+ frame_text_color: import_zod7.z.string().max(20)
261
+ });
247
262
  var LinkSchema = import_zod7.z.object({
248
263
  id: import_zod7.z.string().uuid(),
249
264
  workspace_id: import_zod7.z.string().uuid(),
@@ -267,6 +282,7 @@ var LinkSchema = import_zod7.z.object({
267
282
  click_count_updated_at: import_zod7.z.coerce.date().nullable(),
268
283
  created_at: import_zod7.z.coerce.date(),
269
284
  updated_at: import_zod7.z.coerce.date().nullable(),
285
+ qr_code_settings: QrCodeSettingsSchema.nullable(),
270
286
  tags: import_zod7.z.array(TagSchema)
271
287
  });
272
288
  var CreateLinkInputSchema = import_zod7.z.object({
@@ -284,6 +300,7 @@ var CreateLinkInputSchema = import_zod7.z.object({
284
300
  starts_at: import_zod7.z.coerce.date().optional(),
285
301
  expires_at: import_zod7.z.coerce.date().optional(),
286
302
  redirect_type: import_zod7.z.coerce.number().refine((v) => [301, 302, 307, 308].includes(v)).optional(),
303
+ qr_code_settings: QrCodeSettingsSchema.nullable().optional(),
287
304
  tag_ids: import_zod7.z.array(import_zod7.z.string().uuid()).optional()
288
305
  });
289
306
  var UpdateLinkInputSchema = import_zod7.z.object({
@@ -302,6 +319,7 @@ var UpdateLinkInputSchema = import_zod7.z.object({
302
319
  expires_at: import_zod7.z.coerce.date().nullable().optional(),
303
320
  is_active: import_zod7.z.boolean().optional(),
304
321
  redirect_type: import_zod7.z.coerce.number().refine((v) => [301, 302, 307, 308].includes(v)).optional(),
322
+ qr_code_settings: QrCodeSettingsSchema.nullable().optional(),
305
323
  tag_ids: import_zod7.z.array(import_zod7.z.string().uuid()).optional()
306
324
  });
307
325
  var stringToBoolean = import_zod7.z.union([import_zod7.z.boolean(), import_zod7.z.enum(["true", "false"])]).transform((val) => typeof val === "string" ? val === "true" : val);
@@ -518,6 +536,7 @@ var contract = {
518
536
  LinkSchema,
519
537
  MemberIdParamSchema,
520
538
  PaginatedLinksSchema,
539
+ QrCodeSettingsSchema,
521
540
  SignInInputSchema,
522
541
  TagIdParamSchema,
523
542
  TagSchema,
@@ -1,4 +1,29 @@
1
1
  import { z } from 'zod';
2
+ export declare const QrCodeSettingsSchema: z.ZodObject<{
3
+ fg_color: z.ZodString;
4
+ bg_color: z.ZodString;
5
+ dot_style: z.ZodEnum<{
6
+ square: "square";
7
+ dots: "dots";
8
+ rounded: "rounded";
9
+ classy: "classy";
10
+ "classy-rounded": "classy-rounded";
11
+ "extra-rounded": "extra-rounded";
12
+ }>;
13
+ eye_outer_style: z.ZodEnum<{
14
+ square: "square";
15
+ "extra-rounded": "extra-rounded";
16
+ dot: "dot";
17
+ }>;
18
+ eye_inner_style: z.ZodEnum<{
19
+ square: "square";
20
+ dot: "dot";
21
+ }>;
22
+ frame_enabled: z.ZodBoolean;
23
+ frame_text: z.ZodString;
24
+ frame_color: z.ZodString;
25
+ frame_text_color: z.ZodString;
26
+ }, z.core.$strip>;
2
27
  export declare const LinkSchema: z.ZodObject<{
3
28
  id: z.ZodString;
4
29
  workspace_id: z.ZodString;
@@ -22,6 +47,31 @@ export declare const LinkSchema: z.ZodObject<{
22
47
  click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
23
48
  created_at: z.ZodCoercedDate<unknown>;
24
49
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
50
+ qr_code_settings: z.ZodNullable<z.ZodObject<{
51
+ fg_color: z.ZodString;
52
+ bg_color: z.ZodString;
53
+ dot_style: z.ZodEnum<{
54
+ square: "square";
55
+ dots: "dots";
56
+ rounded: "rounded";
57
+ classy: "classy";
58
+ "classy-rounded": "classy-rounded";
59
+ "extra-rounded": "extra-rounded";
60
+ }>;
61
+ eye_outer_style: z.ZodEnum<{
62
+ square: "square";
63
+ "extra-rounded": "extra-rounded";
64
+ dot: "dot";
65
+ }>;
66
+ eye_inner_style: z.ZodEnum<{
67
+ square: "square";
68
+ dot: "dot";
69
+ }>;
70
+ frame_enabled: z.ZodBoolean;
71
+ frame_text: z.ZodString;
72
+ frame_color: z.ZodString;
73
+ frame_text_color: z.ZodString;
74
+ }, z.core.$strip>>;
25
75
  tags: z.ZodArray<z.ZodObject<{
26
76
  id: z.ZodString;
27
77
  workspace_id: z.ZodString;
@@ -46,6 +96,31 @@ export declare const CreateLinkInputSchema: z.ZodObject<{
46
96
  starts_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
47
97
  expires_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
48
98
  redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
99
+ qr_code_settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
100
+ fg_color: z.ZodString;
101
+ bg_color: z.ZodString;
102
+ dot_style: z.ZodEnum<{
103
+ square: "square";
104
+ dots: "dots";
105
+ rounded: "rounded";
106
+ classy: "classy";
107
+ "classy-rounded": "classy-rounded";
108
+ "extra-rounded": "extra-rounded";
109
+ }>;
110
+ eye_outer_style: z.ZodEnum<{
111
+ square: "square";
112
+ "extra-rounded": "extra-rounded";
113
+ dot: "dot";
114
+ }>;
115
+ eye_inner_style: z.ZodEnum<{
116
+ square: "square";
117
+ dot: "dot";
118
+ }>;
119
+ frame_enabled: z.ZodBoolean;
120
+ frame_text: z.ZodString;
121
+ frame_color: z.ZodString;
122
+ frame_text_color: z.ZodString;
123
+ }, z.core.$strip>>>;
49
124
  tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
50
125
  }, z.core.$strip>;
51
126
  export declare const UpdateLinkInputSchema: z.ZodObject<{
@@ -64,6 +139,31 @@ export declare const UpdateLinkInputSchema: z.ZodObject<{
64
139
  expires_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
65
140
  is_active: z.ZodOptional<z.ZodBoolean>;
66
141
  redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
142
+ qr_code_settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
143
+ fg_color: z.ZodString;
144
+ bg_color: z.ZodString;
145
+ dot_style: z.ZodEnum<{
146
+ square: "square";
147
+ dots: "dots";
148
+ rounded: "rounded";
149
+ classy: "classy";
150
+ "classy-rounded": "classy-rounded";
151
+ "extra-rounded": "extra-rounded";
152
+ }>;
153
+ eye_outer_style: z.ZodEnum<{
154
+ square: "square";
155
+ "extra-rounded": "extra-rounded";
156
+ dot: "dot";
157
+ }>;
158
+ eye_inner_style: z.ZodEnum<{
159
+ square: "square";
160
+ dot: "dot";
161
+ }>;
162
+ frame_enabled: z.ZodBoolean;
163
+ frame_text: z.ZodString;
164
+ frame_color: z.ZodString;
165
+ frame_text_color: z.ZodString;
166
+ }, z.core.$strip>>>;
67
167
  tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
68
168
  }, z.core.$strip>;
69
169
  export declare const LinkFiltersSchema: z.ZodObject<{
@@ -122,6 +222,31 @@ export declare const PaginatedLinksSchema: z.ZodObject<{
122
222
  click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
123
223
  created_at: z.ZodCoercedDate<unknown>;
124
224
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
225
+ qr_code_settings: z.ZodNullable<z.ZodObject<{
226
+ fg_color: z.ZodString;
227
+ bg_color: z.ZodString;
228
+ dot_style: z.ZodEnum<{
229
+ square: "square";
230
+ dots: "dots";
231
+ rounded: "rounded";
232
+ classy: "classy";
233
+ "classy-rounded": "classy-rounded";
234
+ "extra-rounded": "extra-rounded";
235
+ }>;
236
+ eye_outer_style: z.ZodEnum<{
237
+ square: "square";
238
+ "extra-rounded": "extra-rounded";
239
+ dot: "dot";
240
+ }>;
241
+ eye_inner_style: z.ZodEnum<{
242
+ square: "square";
243
+ dot: "dot";
244
+ }>;
245
+ frame_enabled: z.ZodBoolean;
246
+ frame_text: z.ZodString;
247
+ frame_color: z.ZodString;
248
+ frame_text_color: z.ZodString;
249
+ }, z.core.$strip>>;
125
250
  tags: z.ZodArray<z.ZodObject<{
126
251
  id: z.ZodString;
127
252
  workspace_id: z.ZodString;
@@ -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;AAIxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwBrB,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;iBAwBhC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;iBAyBhC,CAAC;AAMH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAe5B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM/B,CAAC"}
1
+ {"version":3,"file":"links.schema.d.ts","sourceRoot":"","sources":["../../src/links.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;iBAU/B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyBrB,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyBhC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0BhC,CAAC;AAMH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAe5B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM/B,CAAC"}
@@ -352,6 +352,31 @@ export declare const linksContract: {
352
352
  starts_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
353
353
  expires_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
354
354
  redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
355
+ qr_code_settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
356
+ fg_color: z.ZodString;
357
+ bg_color: z.ZodString;
358
+ dot_style: z.ZodEnum<{
359
+ square: "square";
360
+ dots: "dots";
361
+ rounded: "rounded";
362
+ classy: "classy";
363
+ "classy-rounded": "classy-rounded";
364
+ "extra-rounded": "extra-rounded";
365
+ }>;
366
+ eye_outer_style: z.ZodEnum<{
367
+ square: "square";
368
+ "extra-rounded": "extra-rounded";
369
+ dot: "dot";
370
+ }>;
371
+ eye_inner_style: z.ZodEnum<{
372
+ square: "square";
373
+ dot: "dot";
374
+ }>;
375
+ frame_enabled: z.ZodBoolean;
376
+ frame_text: z.ZodString;
377
+ frame_color: z.ZodString;
378
+ frame_text_color: z.ZodString;
379
+ }, z.core.$strip>>>;
355
380
  tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
356
381
  }, z.core.$strip>, z.ZodObject<{
357
382
  id: z.ZodString;
@@ -376,6 +401,31 @@ export declare const linksContract: {
376
401
  click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
377
402
  created_at: z.ZodCoercedDate<unknown>;
378
403
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
404
+ qr_code_settings: z.ZodNullable<z.ZodObject<{
405
+ fg_color: z.ZodString;
406
+ bg_color: z.ZodString;
407
+ dot_style: z.ZodEnum<{
408
+ square: "square";
409
+ dots: "dots";
410
+ rounded: "rounded";
411
+ classy: "classy";
412
+ "classy-rounded": "classy-rounded";
413
+ "extra-rounded": "extra-rounded";
414
+ }>;
415
+ eye_outer_style: z.ZodEnum<{
416
+ square: "square";
417
+ "extra-rounded": "extra-rounded";
418
+ dot: "dot";
419
+ }>;
420
+ eye_inner_style: z.ZodEnum<{
421
+ square: "square";
422
+ dot: "dot";
423
+ }>;
424
+ frame_enabled: z.ZodBoolean;
425
+ frame_text: z.ZodString;
426
+ frame_color: z.ZodString;
427
+ frame_text_color: z.ZodString;
428
+ }, z.core.$strip>>;
379
429
  tags: z.ZodArray<z.ZodObject<{
380
430
  id: z.ZodString;
381
431
  workspace_id: z.ZodString;
@@ -441,6 +491,31 @@ export declare const linksContract: {
441
491
  click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
442
492
  created_at: z.ZodCoercedDate<unknown>;
443
493
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
494
+ qr_code_settings: z.ZodNullable<z.ZodObject<{
495
+ fg_color: z.ZodString;
496
+ bg_color: z.ZodString;
497
+ dot_style: z.ZodEnum<{
498
+ square: "square";
499
+ dots: "dots";
500
+ rounded: "rounded";
501
+ classy: "classy";
502
+ "classy-rounded": "classy-rounded";
503
+ "extra-rounded": "extra-rounded";
504
+ }>;
505
+ eye_outer_style: z.ZodEnum<{
506
+ square: "square";
507
+ "extra-rounded": "extra-rounded";
508
+ dot: "dot";
509
+ }>;
510
+ eye_inner_style: z.ZodEnum<{
511
+ square: "square";
512
+ dot: "dot";
513
+ }>;
514
+ frame_enabled: z.ZodBoolean;
515
+ frame_text: z.ZodString;
516
+ frame_color: z.ZodString;
517
+ frame_text_color: z.ZodString;
518
+ }, z.core.$strip>>;
444
519
  tags: z.ZodArray<z.ZodObject<{
445
520
  id: z.ZodString;
446
521
  workspace_id: z.ZodString;
@@ -481,6 +556,31 @@ export declare const linksContract: {
481
556
  click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
482
557
  created_at: z.ZodCoercedDate<unknown>;
483
558
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
559
+ qr_code_settings: z.ZodNullable<z.ZodObject<{
560
+ fg_color: z.ZodString;
561
+ bg_color: z.ZodString;
562
+ dot_style: z.ZodEnum<{
563
+ square: "square";
564
+ dots: "dots";
565
+ rounded: "rounded";
566
+ classy: "classy";
567
+ "classy-rounded": "classy-rounded";
568
+ "extra-rounded": "extra-rounded";
569
+ }>;
570
+ eye_outer_style: z.ZodEnum<{
571
+ square: "square";
572
+ "extra-rounded": "extra-rounded";
573
+ dot: "dot";
574
+ }>;
575
+ eye_inner_style: z.ZodEnum<{
576
+ square: "square";
577
+ dot: "dot";
578
+ }>;
579
+ frame_enabled: z.ZodBoolean;
580
+ frame_text: z.ZodString;
581
+ frame_color: z.ZodString;
582
+ frame_text_color: z.ZodString;
583
+ }, z.core.$strip>>;
484
584
  tags: z.ZodArray<z.ZodObject<{
485
585
  id: z.ZodString;
486
586
  workspace_id: z.ZodString;
@@ -508,6 +608,31 @@ export declare const linksContract: {
508
608
  expires_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
509
609
  is_active: z.ZodOptional<z.ZodBoolean>;
510
610
  redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
611
+ qr_code_settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
612
+ fg_color: z.ZodString;
613
+ bg_color: z.ZodString;
614
+ dot_style: z.ZodEnum<{
615
+ square: "square";
616
+ dots: "dots";
617
+ rounded: "rounded";
618
+ classy: "classy";
619
+ "classy-rounded": "classy-rounded";
620
+ "extra-rounded": "extra-rounded";
621
+ }>;
622
+ eye_outer_style: z.ZodEnum<{
623
+ square: "square";
624
+ "extra-rounded": "extra-rounded";
625
+ dot: "dot";
626
+ }>;
627
+ eye_inner_style: z.ZodEnum<{
628
+ square: "square";
629
+ dot: "dot";
630
+ }>;
631
+ frame_enabled: z.ZodBoolean;
632
+ frame_text: z.ZodString;
633
+ frame_color: z.ZodString;
634
+ frame_text_color: z.ZodString;
635
+ }, z.core.$strip>>>;
511
636
  tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
512
637
  }, z.core.$strip>, z.ZodObject<{
513
638
  id: z.ZodString;
@@ -532,6 +657,31 @@ export declare const linksContract: {
532
657
  click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
533
658
  created_at: z.ZodCoercedDate<unknown>;
534
659
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
660
+ qr_code_settings: z.ZodNullable<z.ZodObject<{
661
+ fg_color: z.ZodString;
662
+ bg_color: z.ZodString;
663
+ dot_style: z.ZodEnum<{
664
+ square: "square";
665
+ dots: "dots";
666
+ rounded: "rounded";
667
+ classy: "classy";
668
+ "classy-rounded": "classy-rounded";
669
+ "extra-rounded": "extra-rounded";
670
+ }>;
671
+ eye_outer_style: z.ZodEnum<{
672
+ square: "square";
673
+ "extra-rounded": "extra-rounded";
674
+ dot: "dot";
675
+ }>;
676
+ eye_inner_style: z.ZodEnum<{
677
+ square: "square";
678
+ dot: "dot";
679
+ }>;
680
+ frame_enabled: z.ZodBoolean;
681
+ frame_text: z.ZodString;
682
+ frame_color: z.ZodString;
683
+ frame_text_color: z.ZodString;
684
+ }, z.core.$strip>>;
535
685
  tags: z.ZodArray<z.ZodObject<{
536
686
  id: z.ZodString;
537
687
  workspace_id: z.ZodString;
@@ -1077,6 +1227,31 @@ export declare const contract: {
1077
1227
  starts_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1078
1228
  expires_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1079
1229
  redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1230
+ qr_code_settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1231
+ fg_color: z.ZodString;
1232
+ bg_color: z.ZodString;
1233
+ dot_style: z.ZodEnum<{
1234
+ square: "square";
1235
+ dots: "dots";
1236
+ rounded: "rounded";
1237
+ classy: "classy";
1238
+ "classy-rounded": "classy-rounded";
1239
+ "extra-rounded": "extra-rounded";
1240
+ }>;
1241
+ eye_outer_style: z.ZodEnum<{
1242
+ square: "square";
1243
+ "extra-rounded": "extra-rounded";
1244
+ dot: "dot";
1245
+ }>;
1246
+ eye_inner_style: z.ZodEnum<{
1247
+ square: "square";
1248
+ dot: "dot";
1249
+ }>;
1250
+ frame_enabled: z.ZodBoolean;
1251
+ frame_text: z.ZodString;
1252
+ frame_color: z.ZodString;
1253
+ frame_text_color: z.ZodString;
1254
+ }, z.core.$strip>>>;
1080
1255
  tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
1081
1256
  }, z.core.$strip>, z.ZodObject<{
1082
1257
  id: z.ZodString;
@@ -1101,6 +1276,31 @@ export declare const contract: {
1101
1276
  click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1102
1277
  created_at: z.ZodCoercedDate<unknown>;
1103
1278
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1279
+ qr_code_settings: z.ZodNullable<z.ZodObject<{
1280
+ fg_color: z.ZodString;
1281
+ bg_color: z.ZodString;
1282
+ dot_style: z.ZodEnum<{
1283
+ square: "square";
1284
+ dots: "dots";
1285
+ rounded: "rounded";
1286
+ classy: "classy";
1287
+ "classy-rounded": "classy-rounded";
1288
+ "extra-rounded": "extra-rounded";
1289
+ }>;
1290
+ eye_outer_style: z.ZodEnum<{
1291
+ square: "square";
1292
+ "extra-rounded": "extra-rounded";
1293
+ dot: "dot";
1294
+ }>;
1295
+ eye_inner_style: z.ZodEnum<{
1296
+ square: "square";
1297
+ dot: "dot";
1298
+ }>;
1299
+ frame_enabled: z.ZodBoolean;
1300
+ frame_text: z.ZodString;
1301
+ frame_color: z.ZodString;
1302
+ frame_text_color: z.ZodString;
1303
+ }, z.core.$strip>>;
1104
1304
  tags: z.ZodArray<z.ZodObject<{
1105
1305
  id: z.ZodString;
1106
1306
  workspace_id: z.ZodString;
@@ -1166,6 +1366,31 @@ export declare const contract: {
1166
1366
  click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1167
1367
  created_at: z.ZodCoercedDate<unknown>;
1168
1368
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1369
+ qr_code_settings: z.ZodNullable<z.ZodObject<{
1370
+ fg_color: z.ZodString;
1371
+ bg_color: z.ZodString;
1372
+ dot_style: z.ZodEnum<{
1373
+ square: "square";
1374
+ dots: "dots";
1375
+ rounded: "rounded";
1376
+ classy: "classy";
1377
+ "classy-rounded": "classy-rounded";
1378
+ "extra-rounded": "extra-rounded";
1379
+ }>;
1380
+ eye_outer_style: z.ZodEnum<{
1381
+ square: "square";
1382
+ "extra-rounded": "extra-rounded";
1383
+ dot: "dot";
1384
+ }>;
1385
+ eye_inner_style: z.ZodEnum<{
1386
+ square: "square";
1387
+ dot: "dot";
1388
+ }>;
1389
+ frame_enabled: z.ZodBoolean;
1390
+ frame_text: z.ZodString;
1391
+ frame_color: z.ZodString;
1392
+ frame_text_color: z.ZodString;
1393
+ }, z.core.$strip>>;
1169
1394
  tags: z.ZodArray<z.ZodObject<{
1170
1395
  id: z.ZodString;
1171
1396
  workspace_id: z.ZodString;
@@ -1206,6 +1431,31 @@ export declare const contract: {
1206
1431
  click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1207
1432
  created_at: z.ZodCoercedDate<unknown>;
1208
1433
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1434
+ qr_code_settings: z.ZodNullable<z.ZodObject<{
1435
+ fg_color: z.ZodString;
1436
+ bg_color: z.ZodString;
1437
+ dot_style: z.ZodEnum<{
1438
+ square: "square";
1439
+ dots: "dots";
1440
+ rounded: "rounded";
1441
+ classy: "classy";
1442
+ "classy-rounded": "classy-rounded";
1443
+ "extra-rounded": "extra-rounded";
1444
+ }>;
1445
+ eye_outer_style: z.ZodEnum<{
1446
+ square: "square";
1447
+ "extra-rounded": "extra-rounded";
1448
+ dot: "dot";
1449
+ }>;
1450
+ eye_inner_style: z.ZodEnum<{
1451
+ square: "square";
1452
+ dot: "dot";
1453
+ }>;
1454
+ frame_enabled: z.ZodBoolean;
1455
+ frame_text: z.ZodString;
1456
+ frame_color: z.ZodString;
1457
+ frame_text_color: z.ZodString;
1458
+ }, z.core.$strip>>;
1209
1459
  tags: z.ZodArray<z.ZodObject<{
1210
1460
  id: z.ZodString;
1211
1461
  workspace_id: z.ZodString;
@@ -1233,6 +1483,31 @@ export declare const contract: {
1233
1483
  expires_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
1234
1484
  is_active: z.ZodOptional<z.ZodBoolean>;
1235
1485
  redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1486
+ qr_code_settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1487
+ fg_color: z.ZodString;
1488
+ bg_color: z.ZodString;
1489
+ dot_style: z.ZodEnum<{
1490
+ square: "square";
1491
+ dots: "dots";
1492
+ rounded: "rounded";
1493
+ classy: "classy";
1494
+ "classy-rounded": "classy-rounded";
1495
+ "extra-rounded": "extra-rounded";
1496
+ }>;
1497
+ eye_outer_style: z.ZodEnum<{
1498
+ square: "square";
1499
+ "extra-rounded": "extra-rounded";
1500
+ dot: "dot";
1501
+ }>;
1502
+ eye_inner_style: z.ZodEnum<{
1503
+ square: "square";
1504
+ dot: "dot";
1505
+ }>;
1506
+ frame_enabled: z.ZodBoolean;
1507
+ frame_text: z.ZodString;
1508
+ frame_color: z.ZodString;
1509
+ frame_text_color: z.ZodString;
1510
+ }, z.core.$strip>>>;
1236
1511
  tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
1237
1512
  }, z.core.$strip>, z.ZodObject<{
1238
1513
  id: z.ZodString;
@@ -1257,6 +1532,31 @@ export declare const contract: {
1257
1532
  click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1258
1533
  created_at: z.ZodCoercedDate<unknown>;
1259
1534
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1535
+ qr_code_settings: z.ZodNullable<z.ZodObject<{
1536
+ fg_color: z.ZodString;
1537
+ bg_color: z.ZodString;
1538
+ dot_style: z.ZodEnum<{
1539
+ square: "square";
1540
+ dots: "dots";
1541
+ rounded: "rounded";
1542
+ classy: "classy";
1543
+ "classy-rounded": "classy-rounded";
1544
+ "extra-rounded": "extra-rounded";
1545
+ }>;
1546
+ eye_outer_style: z.ZodEnum<{
1547
+ square: "square";
1548
+ "extra-rounded": "extra-rounded";
1549
+ dot: "dot";
1550
+ }>;
1551
+ eye_inner_style: z.ZodEnum<{
1552
+ square: "square";
1553
+ dot: "dot";
1554
+ }>;
1555
+ frame_enabled: z.ZodBoolean;
1556
+ frame_text: z.ZodString;
1557
+ frame_color: z.ZodString;
1558
+ frame_text_color: z.ZodString;
1559
+ }, z.core.$strip>>;
1260
1560
  tags: z.ZodArray<z.ZodObject<{
1261
1561
  id: z.ZodString;
1262
1562
  workspace_id: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUpB,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
@@ -164,6 +164,20 @@ var UpdateTagInputSchema = z6.object({
164
164
  });
165
165
 
166
166
  // src/links.schema.ts
167
+ var DotStyleSchema = z7.enum(["square", "dots", "rounded", "classy", "classy-rounded", "extra-rounded"]);
168
+ var EyeOuterStyleSchema = z7.enum(["square", "dot", "extra-rounded"]);
169
+ var EyeInnerStyleSchema = z7.enum(["square", "dot"]);
170
+ var QrCodeSettingsSchema = z7.object({
171
+ fg_color: z7.string().max(20),
172
+ bg_color: z7.string().max(20),
173
+ dot_style: DotStyleSchema,
174
+ eye_outer_style: EyeOuterStyleSchema,
175
+ eye_inner_style: EyeInnerStyleSchema,
176
+ frame_enabled: z7.boolean(),
177
+ frame_text: z7.string().max(255),
178
+ frame_color: z7.string().max(20),
179
+ frame_text_color: z7.string().max(20)
180
+ });
167
181
  var LinkSchema = z7.object({
168
182
  id: z7.string().uuid(),
169
183
  workspace_id: z7.string().uuid(),
@@ -187,6 +201,7 @@ var LinkSchema = z7.object({
187
201
  click_count_updated_at: z7.coerce.date().nullable(),
188
202
  created_at: z7.coerce.date(),
189
203
  updated_at: z7.coerce.date().nullable(),
204
+ qr_code_settings: QrCodeSettingsSchema.nullable(),
190
205
  tags: z7.array(TagSchema)
191
206
  });
192
207
  var CreateLinkInputSchema = z7.object({
@@ -204,6 +219,7 @@ var CreateLinkInputSchema = z7.object({
204
219
  starts_at: z7.coerce.date().optional(),
205
220
  expires_at: z7.coerce.date().optional(),
206
221
  redirect_type: z7.coerce.number().refine((v) => [301, 302, 307, 308].includes(v)).optional(),
222
+ qr_code_settings: QrCodeSettingsSchema.nullable().optional(),
207
223
  tag_ids: z7.array(z7.string().uuid()).optional()
208
224
  });
209
225
  var UpdateLinkInputSchema = z7.object({
@@ -222,6 +238,7 @@ var UpdateLinkInputSchema = z7.object({
222
238
  expires_at: z7.coerce.date().nullable().optional(),
223
239
  is_active: z7.boolean().optional(),
224
240
  redirect_type: z7.coerce.number().refine((v) => [301, 302, 307, 308].includes(v)).optional(),
241
+ qr_code_settings: QrCodeSettingsSchema.nullable().optional(),
225
242
  tag_ids: z7.array(z7.string().uuid()).optional()
226
243
  });
227
244
  var stringToBoolean = z7.union([z7.boolean(), z7.enum(["true", "false"])]).transform((val) => typeof val === "string" ? val === "true" : val);
@@ -437,6 +454,7 @@ export {
437
454
  LinkSchema,
438
455
  MemberIdParamSchema,
439
456
  PaginatedLinksSchema,
457
+ QrCodeSettingsSchema,
440
458
  SignInInputSchema,
441
459
  TagIdParamSchema,
442
460
  TagSchema,
@@ -1,4 +1,29 @@
1
1
  import { z } from 'zod';
2
+ export declare const QrCodeSettingsSchema: z.ZodObject<{
3
+ fg_color: z.ZodString;
4
+ bg_color: z.ZodString;
5
+ dot_style: z.ZodEnum<{
6
+ square: "square";
7
+ dots: "dots";
8
+ rounded: "rounded";
9
+ classy: "classy";
10
+ "classy-rounded": "classy-rounded";
11
+ "extra-rounded": "extra-rounded";
12
+ }>;
13
+ eye_outer_style: z.ZodEnum<{
14
+ square: "square";
15
+ "extra-rounded": "extra-rounded";
16
+ dot: "dot";
17
+ }>;
18
+ eye_inner_style: z.ZodEnum<{
19
+ square: "square";
20
+ dot: "dot";
21
+ }>;
22
+ frame_enabled: z.ZodBoolean;
23
+ frame_text: z.ZodString;
24
+ frame_color: z.ZodString;
25
+ frame_text_color: z.ZodString;
26
+ }, z.core.$strip>;
2
27
  export declare const LinkSchema: z.ZodObject<{
3
28
  id: z.ZodString;
4
29
  workspace_id: z.ZodString;
@@ -22,6 +47,31 @@ export declare const LinkSchema: z.ZodObject<{
22
47
  click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
23
48
  created_at: z.ZodCoercedDate<unknown>;
24
49
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
50
+ qr_code_settings: z.ZodNullable<z.ZodObject<{
51
+ fg_color: z.ZodString;
52
+ bg_color: z.ZodString;
53
+ dot_style: z.ZodEnum<{
54
+ square: "square";
55
+ dots: "dots";
56
+ rounded: "rounded";
57
+ classy: "classy";
58
+ "classy-rounded": "classy-rounded";
59
+ "extra-rounded": "extra-rounded";
60
+ }>;
61
+ eye_outer_style: z.ZodEnum<{
62
+ square: "square";
63
+ "extra-rounded": "extra-rounded";
64
+ dot: "dot";
65
+ }>;
66
+ eye_inner_style: z.ZodEnum<{
67
+ square: "square";
68
+ dot: "dot";
69
+ }>;
70
+ frame_enabled: z.ZodBoolean;
71
+ frame_text: z.ZodString;
72
+ frame_color: z.ZodString;
73
+ frame_text_color: z.ZodString;
74
+ }, z.core.$strip>>;
25
75
  tags: z.ZodArray<z.ZodObject<{
26
76
  id: z.ZodString;
27
77
  workspace_id: z.ZodString;
@@ -46,6 +96,31 @@ export declare const CreateLinkInputSchema: z.ZodObject<{
46
96
  starts_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
47
97
  expires_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
48
98
  redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
99
+ qr_code_settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
100
+ fg_color: z.ZodString;
101
+ bg_color: z.ZodString;
102
+ dot_style: z.ZodEnum<{
103
+ square: "square";
104
+ dots: "dots";
105
+ rounded: "rounded";
106
+ classy: "classy";
107
+ "classy-rounded": "classy-rounded";
108
+ "extra-rounded": "extra-rounded";
109
+ }>;
110
+ eye_outer_style: z.ZodEnum<{
111
+ square: "square";
112
+ "extra-rounded": "extra-rounded";
113
+ dot: "dot";
114
+ }>;
115
+ eye_inner_style: z.ZodEnum<{
116
+ square: "square";
117
+ dot: "dot";
118
+ }>;
119
+ frame_enabled: z.ZodBoolean;
120
+ frame_text: z.ZodString;
121
+ frame_color: z.ZodString;
122
+ frame_text_color: z.ZodString;
123
+ }, z.core.$strip>>>;
49
124
  tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
50
125
  }, z.core.$strip>;
51
126
  export declare const UpdateLinkInputSchema: z.ZodObject<{
@@ -64,6 +139,31 @@ export declare const UpdateLinkInputSchema: z.ZodObject<{
64
139
  expires_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
65
140
  is_active: z.ZodOptional<z.ZodBoolean>;
66
141
  redirect_type: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
142
+ qr_code_settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
143
+ fg_color: z.ZodString;
144
+ bg_color: z.ZodString;
145
+ dot_style: z.ZodEnum<{
146
+ square: "square";
147
+ dots: "dots";
148
+ rounded: "rounded";
149
+ classy: "classy";
150
+ "classy-rounded": "classy-rounded";
151
+ "extra-rounded": "extra-rounded";
152
+ }>;
153
+ eye_outer_style: z.ZodEnum<{
154
+ square: "square";
155
+ "extra-rounded": "extra-rounded";
156
+ dot: "dot";
157
+ }>;
158
+ eye_inner_style: z.ZodEnum<{
159
+ square: "square";
160
+ dot: "dot";
161
+ }>;
162
+ frame_enabled: z.ZodBoolean;
163
+ frame_text: z.ZodString;
164
+ frame_color: z.ZodString;
165
+ frame_text_color: z.ZodString;
166
+ }, z.core.$strip>>>;
67
167
  tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
68
168
  }, z.core.$strip>;
69
169
  export declare const LinkFiltersSchema: z.ZodObject<{
@@ -122,6 +222,31 @@ export declare const PaginatedLinksSchema: z.ZodObject<{
122
222
  click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
123
223
  created_at: z.ZodCoercedDate<unknown>;
124
224
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
225
+ qr_code_settings: z.ZodNullable<z.ZodObject<{
226
+ fg_color: z.ZodString;
227
+ bg_color: z.ZodString;
228
+ dot_style: z.ZodEnum<{
229
+ square: "square";
230
+ dots: "dots";
231
+ rounded: "rounded";
232
+ classy: "classy";
233
+ "classy-rounded": "classy-rounded";
234
+ "extra-rounded": "extra-rounded";
235
+ }>;
236
+ eye_outer_style: z.ZodEnum<{
237
+ square: "square";
238
+ "extra-rounded": "extra-rounded";
239
+ dot: "dot";
240
+ }>;
241
+ eye_inner_style: z.ZodEnum<{
242
+ square: "square";
243
+ dot: "dot";
244
+ }>;
245
+ frame_enabled: z.ZodBoolean;
246
+ frame_text: z.ZodString;
247
+ frame_color: z.ZodString;
248
+ frame_text_color: z.ZodString;
249
+ }, z.core.$strip>>;
125
250
  tags: z.ZodArray<z.ZodObject<{
126
251
  id: z.ZodString;
127
252
  workspace_id: z.ZodString;
@@ -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;AAIxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwBrB,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;iBAwBhC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;iBAyBhC,CAAC;AAMH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAe5B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM/B,CAAC"}
1
+ {"version":3,"file":"links.schema.d.ts","sourceRoot":"","sources":["../../src/links.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;iBAU/B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyBrB,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyBhC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0BhC,CAAC;AAMH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAe5B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM/B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middlewr/contracts",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "type": "module",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -2,6 +2,22 @@ import { z } from 'zod';
2
2
 
3
3
  import { TagSchema } from './tags.schema';
4
4
 
5
+ const DotStyleSchema = z.enum(['square', 'dots', 'rounded', 'classy', 'classy-rounded', 'extra-rounded']);
6
+ const EyeOuterStyleSchema = z.enum(['square', 'dot', 'extra-rounded']);
7
+ const EyeInnerStyleSchema = z.enum(['square', 'dot']);
8
+
9
+ export const QrCodeSettingsSchema = z.object({
10
+ fg_color: z.string().max(20),
11
+ bg_color: z.string().max(20),
12
+ dot_style: DotStyleSchema,
13
+ eye_outer_style: EyeOuterStyleSchema,
14
+ eye_inner_style: EyeInnerStyleSchema,
15
+ frame_enabled: z.boolean(),
16
+ frame_text: z.string().max(255),
17
+ frame_color: z.string().max(20),
18
+ frame_text_color: z.string().max(20),
19
+ });
20
+
5
21
  export const LinkSchema = z.object({
6
22
  id: z.string().uuid(),
7
23
  workspace_id: z.string().uuid(),
@@ -25,6 +41,7 @@ export const LinkSchema = z.object({
25
41
  click_count_updated_at: z.coerce.date().nullable(),
26
42
  created_at: z.coerce.date(),
27
43
  updated_at: z.coerce.date().nullable(),
44
+ qr_code_settings: QrCodeSettingsSchema.nullable(),
28
45
  tags: z.array(TagSchema),
29
46
  });
30
47
 
@@ -51,6 +68,7 @@ export const CreateLinkInputSchema = z.object({
51
68
  .number()
52
69
  .refine((v) => [301, 302, 307, 308].includes(v))
53
70
  .optional(),
71
+ qr_code_settings: QrCodeSettingsSchema.nullable().optional(),
54
72
  tag_ids: z.array(z.string().uuid()).optional(),
55
73
  });
56
74
 
@@ -78,6 +96,7 @@ export const UpdateLinkInputSchema = z.object({
78
96
  .number()
79
97
  .refine((v) => [301, 302, 307, 308].includes(v))
80
98
  .optional(),
99
+ qr_code_settings: QrCodeSettingsSchema.nullable().optional(),
81
100
  tag_ids: z.array(z.string().uuid()).optional(),
82
101
  });
83
102