@middlewr/contracts 0.0.43 → 0.0.44

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.
@@ -402,7 +402,7 @@ export declare const linkTemplatesContract: {
402
402
  workspace_id: z.ZodString;
403
403
  title: z.ZodString;
404
404
  description: z.ZodOptional<z.ZodString>;
405
- rule_graph: z.ZodObject<{
405
+ rule_graph: z.ZodOptional<z.ZodNullable<z.ZodObject<{
406
406
  entry: z.ZodString;
407
407
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
408
408
  id: z.ZodString;
@@ -485,13 +485,13 @@ export declare const linkTemplatesContract: {
485
485
  }, z.core.$strip>;
486
486
  next: z.ZodNullable<z.ZodString>;
487
487
  }, z.core.$strip>], "type">>;
488
- }, z.core.$strip>;
488
+ }, z.core.$strip>>>;
489
489
  }, z.core.$strip>, z.ZodObject<{
490
490
  id: z.ZodString;
491
491
  workspace_id: z.ZodString;
492
492
  title: z.ZodString;
493
493
  description: z.ZodNullable<z.ZodString>;
494
- rule_graph: z.ZodObject<{
494
+ rule_graph: z.ZodNullable<z.ZodObject<{
495
495
  entry: z.ZodString;
496
496
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
497
497
  id: z.ZodString;
@@ -574,7 +574,7 @@ export declare const linkTemplatesContract: {
574
574
  }, z.core.$strip>;
575
575
  next: z.ZodNullable<z.ZodString>;
576
576
  }, z.core.$strip>], "type">>;
577
- }, z.core.$strip>;
577
+ }, z.core.$strip>>;
578
578
  created_at: z.ZodCoercedDate<unknown>;
579
579
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
580
580
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
@@ -589,7 +589,7 @@ export declare const linkTemplatesContract: {
589
589
  workspace_id: z.ZodString;
590
590
  title: z.ZodString;
591
591
  description: z.ZodNullable<z.ZodString>;
592
- rule_graph: z.ZodObject<{
592
+ rule_graph: z.ZodNullable<z.ZodObject<{
593
593
  entry: z.ZodString;
594
594
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
595
595
  id: z.ZodString;
@@ -672,7 +672,7 @@ export declare const linkTemplatesContract: {
672
672
  }, z.core.$strip>;
673
673
  next: z.ZodNullable<z.ZodString>;
674
674
  }, z.core.$strip>], "type">>;
675
- }, z.core.$strip>;
675
+ }, z.core.$strip>>;
676
676
  created_at: z.ZodCoercedDate<unknown>;
677
677
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
678
678
  }, z.core.$strip>>;
@@ -689,7 +689,7 @@ export declare const linkTemplatesContract: {
689
689
  workspace_id: z.ZodString;
690
690
  title: z.ZodString;
691
691
  description: z.ZodNullable<z.ZodString>;
692
- rule_graph: z.ZodObject<{
692
+ rule_graph: z.ZodNullable<z.ZodObject<{
693
693
  entry: z.ZodString;
694
694
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
695
695
  id: z.ZodString;
@@ -772,7 +772,7 @@ export declare const linkTemplatesContract: {
772
772
  }, z.core.$strip>;
773
773
  next: z.ZodNullable<z.ZodString>;
774
774
  }, z.core.$strip>], "type">>;
775
- }, z.core.$strip>;
775
+ }, z.core.$strip>>;
776
776
  created_at: z.ZodCoercedDate<unknown>;
777
777
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
778
778
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
@@ -870,7 +870,7 @@ export declare const linkTemplatesContract: {
870
870
  workspace_id: z.ZodString;
871
871
  title: z.ZodString;
872
872
  description: z.ZodNullable<z.ZodString>;
873
- rule_graph: z.ZodObject<{
873
+ rule_graph: z.ZodNullable<z.ZodObject<{
874
874
  entry: z.ZodString;
875
875
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
876
876
  id: z.ZodString;
@@ -953,7 +953,7 @@ export declare const linkTemplatesContract: {
953
953
  }, z.core.$strip>;
954
954
  next: z.ZodNullable<z.ZodString>;
955
955
  }, z.core.$strip>], "type">>;
956
- }, z.core.$strip>;
956
+ }, z.core.$strip>>;
957
957
  created_at: z.ZodCoercedDate<unknown>;
958
958
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
959
959
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
@@ -2871,7 +2871,7 @@ export declare const contract: {
2871
2871
  workspace_id: z.ZodString;
2872
2872
  title: z.ZodString;
2873
2873
  description: z.ZodOptional<z.ZodString>;
2874
- rule_graph: z.ZodObject<{
2874
+ rule_graph: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2875
2875
  entry: z.ZodString;
2876
2876
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2877
2877
  id: z.ZodString;
@@ -2954,13 +2954,13 @@ export declare const contract: {
2954
2954
  }, z.core.$strip>;
2955
2955
  next: z.ZodNullable<z.ZodString>;
2956
2956
  }, z.core.$strip>], "type">>;
2957
- }, z.core.$strip>;
2957
+ }, z.core.$strip>>>;
2958
2958
  }, z.core.$strip>, z.ZodObject<{
2959
2959
  id: z.ZodString;
2960
2960
  workspace_id: z.ZodString;
2961
2961
  title: z.ZodString;
2962
2962
  description: z.ZodNullable<z.ZodString>;
2963
- rule_graph: z.ZodObject<{
2963
+ rule_graph: z.ZodNullable<z.ZodObject<{
2964
2964
  entry: z.ZodString;
2965
2965
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2966
2966
  id: z.ZodString;
@@ -3043,7 +3043,7 @@ export declare const contract: {
3043
3043
  }, z.core.$strip>;
3044
3044
  next: z.ZodNullable<z.ZodString>;
3045
3045
  }, z.core.$strip>], "type">>;
3046
- }, z.core.$strip>;
3046
+ }, z.core.$strip>>;
3047
3047
  created_at: z.ZodCoercedDate<unknown>;
3048
3048
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
3049
3049
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
@@ -3058,7 +3058,7 @@ export declare const contract: {
3058
3058
  workspace_id: z.ZodString;
3059
3059
  title: z.ZodString;
3060
3060
  description: z.ZodNullable<z.ZodString>;
3061
- rule_graph: z.ZodObject<{
3061
+ rule_graph: z.ZodNullable<z.ZodObject<{
3062
3062
  entry: z.ZodString;
3063
3063
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3064
3064
  id: z.ZodString;
@@ -3141,7 +3141,7 @@ export declare const contract: {
3141
3141
  }, z.core.$strip>;
3142
3142
  next: z.ZodNullable<z.ZodString>;
3143
3143
  }, z.core.$strip>], "type">>;
3144
- }, z.core.$strip>;
3144
+ }, z.core.$strip>>;
3145
3145
  created_at: z.ZodCoercedDate<unknown>;
3146
3146
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
3147
3147
  }, z.core.$strip>>;
@@ -3158,7 +3158,7 @@ export declare const contract: {
3158
3158
  workspace_id: z.ZodString;
3159
3159
  title: z.ZodString;
3160
3160
  description: z.ZodNullable<z.ZodString>;
3161
- rule_graph: z.ZodObject<{
3161
+ rule_graph: z.ZodNullable<z.ZodObject<{
3162
3162
  entry: z.ZodString;
3163
3163
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3164
3164
  id: z.ZodString;
@@ -3241,7 +3241,7 @@ export declare const contract: {
3241
3241
  }, z.core.$strip>;
3242
3242
  next: z.ZodNullable<z.ZodString>;
3243
3243
  }, z.core.$strip>], "type">>;
3244
- }, z.core.$strip>;
3244
+ }, z.core.$strip>>;
3245
3245
  created_at: z.ZodCoercedDate<unknown>;
3246
3246
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
3247
3247
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
@@ -3339,7 +3339,7 @@ export declare const contract: {
3339
3339
  workspace_id: z.ZodString;
3340
3340
  title: z.ZodString;
3341
3341
  description: z.ZodNullable<z.ZodString>;
3342
- rule_graph: z.ZodObject<{
3342
+ rule_graph: z.ZodNullable<z.ZodObject<{
3343
3343
  entry: z.ZodString;
3344
3344
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3345
3345
  id: z.ZodString;
@@ -3422,7 +3422,7 @@ export declare const contract: {
3422
3422
  }, z.core.$strip>;
3423
3423
  next: z.ZodNullable<z.ZodString>;
3424
3424
  }, z.core.$strip>], "type">>;
3425
- }, z.core.$strip>;
3425
+ }, z.core.$strip>>;
3426
3426
  created_at: z.ZodCoercedDate<unknown>;
3427
3427
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
3428
3428
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
package/dist/cjs/index.js CHANGED
@@ -393,14 +393,14 @@ var LinkTemplateSchema = import_zod7.z.object({
393
393
  workspace_id: import_zod7.z.string().uuid(),
394
394
  title: import_zod7.z.string(),
395
395
  description: import_zod7.z.string().nullable(),
396
- rule_graph: RuleGraphSchema,
396
+ rule_graph: RuleGraphSchema.nullable(),
397
397
  created_at: import_zod7.z.coerce.date(),
398
398
  updated_at: import_zod7.z.coerce.date().nullable()
399
399
  });
400
400
  var CreateLinkTemplateInputSchema = import_zod7.z.object({
401
401
  title: import_zod7.z.string().min(1).max(255),
402
402
  description: import_zod7.z.string().max(2e3).optional(),
403
- rule_graph: RuleGraphSchema
403
+ rule_graph: RuleGraphSchema.nullable().optional()
404
404
  });
405
405
  var UpdateLinkTemplateInputSchema = import_zod7.z.object({
406
406
  title: import_zod7.z.string().min(1).max(255).optional(),
@@ -4,7 +4,7 @@ export declare const LinkTemplateSchema: z.ZodObject<{
4
4
  workspace_id: z.ZodString;
5
5
  title: z.ZodString;
6
6
  description: z.ZodNullable<z.ZodString>;
7
- rule_graph: z.ZodObject<{
7
+ rule_graph: z.ZodNullable<z.ZodObject<{
8
8
  entry: z.ZodString;
9
9
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
10
10
  id: z.ZodString;
@@ -87,14 +87,14 @@ export declare const LinkTemplateSchema: z.ZodObject<{
87
87
  }, z.core.$strip>;
88
88
  next: z.ZodNullable<z.ZodString>;
89
89
  }, z.core.$strip>], "type">>;
90
- }, z.core.$strip>;
90
+ }, z.core.$strip>>;
91
91
  created_at: z.ZodCoercedDate<unknown>;
92
92
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
93
93
  }, z.core.$strip>;
94
94
  export declare const CreateLinkTemplateInputSchema: z.ZodObject<{
95
95
  title: z.ZodString;
96
96
  description: z.ZodOptional<z.ZodString>;
97
- rule_graph: z.ZodObject<{
97
+ rule_graph: z.ZodOptional<z.ZodNullable<z.ZodObject<{
98
98
  entry: z.ZodString;
99
99
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
100
100
  id: z.ZodString;
@@ -177,7 +177,7 @@ export declare const CreateLinkTemplateInputSchema: z.ZodObject<{
177
177
  }, z.core.$strip>;
178
178
  next: z.ZodNullable<z.ZodString>;
179
179
  }, z.core.$strip>], "type">>;
180
- }, z.core.$strip>;
180
+ }, z.core.$strip>>>;
181
181
  }, z.core.$strip>;
182
182
  export declare const UpdateLinkTemplateInputSchema: z.ZodObject<{
183
183
  title: z.ZodOptional<z.ZodString>;
@@ -278,7 +278,7 @@ export declare const PaginatedLinkTemplatesSchema: z.ZodObject<{
278
278
  workspace_id: z.ZodString;
279
279
  title: z.ZodString;
280
280
  description: z.ZodNullable<z.ZodString>;
281
- rule_graph: z.ZodObject<{
281
+ rule_graph: z.ZodNullable<z.ZodObject<{
282
282
  entry: z.ZodString;
283
283
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
284
284
  id: z.ZodString;
@@ -361,7 +361,7 @@ export declare const PaginatedLinkTemplatesSchema: z.ZodObject<{
361
361
  }, z.core.$strip>;
362
362
  next: z.ZodNullable<z.ZodString>;
363
363
  }, z.core.$strip>], "type">>;
364
- }, z.core.$strip>;
364
+ }, z.core.$strip>>;
365
365
  created_at: z.ZodCoercedDate<unknown>;
366
366
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
367
367
  }, z.core.$strip>>;
@@ -402,7 +402,7 @@ export declare const linkTemplatesContract: {
402
402
  workspace_id: z.ZodString;
403
403
  title: z.ZodString;
404
404
  description: z.ZodOptional<z.ZodString>;
405
- rule_graph: z.ZodObject<{
405
+ rule_graph: z.ZodOptional<z.ZodNullable<z.ZodObject<{
406
406
  entry: z.ZodString;
407
407
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
408
408
  id: z.ZodString;
@@ -485,13 +485,13 @@ export declare const linkTemplatesContract: {
485
485
  }, z.core.$strip>;
486
486
  next: z.ZodNullable<z.ZodString>;
487
487
  }, z.core.$strip>], "type">>;
488
- }, z.core.$strip>;
488
+ }, z.core.$strip>>>;
489
489
  }, z.core.$strip>, z.ZodObject<{
490
490
  id: z.ZodString;
491
491
  workspace_id: z.ZodString;
492
492
  title: z.ZodString;
493
493
  description: z.ZodNullable<z.ZodString>;
494
- rule_graph: z.ZodObject<{
494
+ rule_graph: z.ZodNullable<z.ZodObject<{
495
495
  entry: z.ZodString;
496
496
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
497
497
  id: z.ZodString;
@@ -574,7 +574,7 @@ export declare const linkTemplatesContract: {
574
574
  }, z.core.$strip>;
575
575
  next: z.ZodNullable<z.ZodString>;
576
576
  }, z.core.$strip>], "type">>;
577
- }, z.core.$strip>;
577
+ }, z.core.$strip>>;
578
578
  created_at: z.ZodCoercedDate<unknown>;
579
579
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
580
580
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
@@ -589,7 +589,7 @@ export declare const linkTemplatesContract: {
589
589
  workspace_id: z.ZodString;
590
590
  title: z.ZodString;
591
591
  description: z.ZodNullable<z.ZodString>;
592
- rule_graph: z.ZodObject<{
592
+ rule_graph: z.ZodNullable<z.ZodObject<{
593
593
  entry: z.ZodString;
594
594
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
595
595
  id: z.ZodString;
@@ -672,7 +672,7 @@ export declare const linkTemplatesContract: {
672
672
  }, z.core.$strip>;
673
673
  next: z.ZodNullable<z.ZodString>;
674
674
  }, z.core.$strip>], "type">>;
675
- }, z.core.$strip>;
675
+ }, z.core.$strip>>;
676
676
  created_at: z.ZodCoercedDate<unknown>;
677
677
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
678
678
  }, z.core.$strip>>;
@@ -689,7 +689,7 @@ export declare const linkTemplatesContract: {
689
689
  workspace_id: z.ZodString;
690
690
  title: z.ZodString;
691
691
  description: z.ZodNullable<z.ZodString>;
692
- rule_graph: z.ZodObject<{
692
+ rule_graph: z.ZodNullable<z.ZodObject<{
693
693
  entry: z.ZodString;
694
694
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
695
695
  id: z.ZodString;
@@ -772,7 +772,7 @@ export declare const linkTemplatesContract: {
772
772
  }, z.core.$strip>;
773
773
  next: z.ZodNullable<z.ZodString>;
774
774
  }, z.core.$strip>], "type">>;
775
- }, z.core.$strip>;
775
+ }, z.core.$strip>>;
776
776
  created_at: z.ZodCoercedDate<unknown>;
777
777
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
778
778
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
@@ -870,7 +870,7 @@ export declare const linkTemplatesContract: {
870
870
  workspace_id: z.ZodString;
871
871
  title: z.ZodString;
872
872
  description: z.ZodNullable<z.ZodString>;
873
- rule_graph: z.ZodObject<{
873
+ rule_graph: z.ZodNullable<z.ZodObject<{
874
874
  entry: z.ZodString;
875
875
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
876
876
  id: z.ZodString;
@@ -953,7 +953,7 @@ export declare const linkTemplatesContract: {
953
953
  }, z.core.$strip>;
954
954
  next: z.ZodNullable<z.ZodString>;
955
955
  }, z.core.$strip>], "type">>;
956
- }, z.core.$strip>;
956
+ }, z.core.$strip>>;
957
957
  created_at: z.ZodCoercedDate<unknown>;
958
958
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
959
959
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
@@ -2871,7 +2871,7 @@ export declare const contract: {
2871
2871
  workspace_id: z.ZodString;
2872
2872
  title: z.ZodString;
2873
2873
  description: z.ZodOptional<z.ZodString>;
2874
- rule_graph: z.ZodObject<{
2874
+ rule_graph: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2875
2875
  entry: z.ZodString;
2876
2876
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2877
2877
  id: z.ZodString;
@@ -2954,13 +2954,13 @@ export declare const contract: {
2954
2954
  }, z.core.$strip>;
2955
2955
  next: z.ZodNullable<z.ZodString>;
2956
2956
  }, z.core.$strip>], "type">>;
2957
- }, z.core.$strip>;
2957
+ }, z.core.$strip>>>;
2958
2958
  }, z.core.$strip>, z.ZodObject<{
2959
2959
  id: z.ZodString;
2960
2960
  workspace_id: z.ZodString;
2961
2961
  title: z.ZodString;
2962
2962
  description: z.ZodNullable<z.ZodString>;
2963
- rule_graph: z.ZodObject<{
2963
+ rule_graph: z.ZodNullable<z.ZodObject<{
2964
2964
  entry: z.ZodString;
2965
2965
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2966
2966
  id: z.ZodString;
@@ -3043,7 +3043,7 @@ export declare const contract: {
3043
3043
  }, z.core.$strip>;
3044
3044
  next: z.ZodNullable<z.ZodString>;
3045
3045
  }, z.core.$strip>], "type">>;
3046
- }, z.core.$strip>;
3046
+ }, z.core.$strip>>;
3047
3047
  created_at: z.ZodCoercedDate<unknown>;
3048
3048
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
3049
3049
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
@@ -3058,7 +3058,7 @@ export declare const contract: {
3058
3058
  workspace_id: z.ZodString;
3059
3059
  title: z.ZodString;
3060
3060
  description: z.ZodNullable<z.ZodString>;
3061
- rule_graph: z.ZodObject<{
3061
+ rule_graph: z.ZodNullable<z.ZodObject<{
3062
3062
  entry: z.ZodString;
3063
3063
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3064
3064
  id: z.ZodString;
@@ -3141,7 +3141,7 @@ export declare const contract: {
3141
3141
  }, z.core.$strip>;
3142
3142
  next: z.ZodNullable<z.ZodString>;
3143
3143
  }, z.core.$strip>], "type">>;
3144
- }, z.core.$strip>;
3144
+ }, z.core.$strip>>;
3145
3145
  created_at: z.ZodCoercedDate<unknown>;
3146
3146
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
3147
3147
  }, z.core.$strip>>;
@@ -3158,7 +3158,7 @@ export declare const contract: {
3158
3158
  workspace_id: z.ZodString;
3159
3159
  title: z.ZodString;
3160
3160
  description: z.ZodNullable<z.ZodString>;
3161
- rule_graph: z.ZodObject<{
3161
+ rule_graph: z.ZodNullable<z.ZodObject<{
3162
3162
  entry: z.ZodString;
3163
3163
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3164
3164
  id: z.ZodString;
@@ -3241,7 +3241,7 @@ export declare const contract: {
3241
3241
  }, z.core.$strip>;
3242
3242
  next: z.ZodNullable<z.ZodString>;
3243
3243
  }, z.core.$strip>], "type">>;
3244
- }, z.core.$strip>;
3244
+ }, z.core.$strip>>;
3245
3245
  created_at: z.ZodCoercedDate<unknown>;
3246
3246
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
3247
3247
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
@@ -3339,7 +3339,7 @@ export declare const contract: {
3339
3339
  workspace_id: z.ZodString;
3340
3340
  title: z.ZodString;
3341
3341
  description: z.ZodNullable<z.ZodString>;
3342
- rule_graph: z.ZodObject<{
3342
+ rule_graph: z.ZodNullable<z.ZodObject<{
3343
3343
  entry: z.ZodString;
3344
3344
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3345
3345
  id: z.ZodString;
@@ -3422,7 +3422,7 @@ export declare const contract: {
3422
3422
  }, z.core.$strip>;
3423
3423
  next: z.ZodNullable<z.ZodString>;
3424
3424
  }, z.core.$strip>], "type">>;
3425
- }, z.core.$strip>;
3425
+ }, z.core.$strip>>;
3426
3426
  created_at: z.ZodCoercedDate<unknown>;
3427
3427
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
3428
3428
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
package/dist/esm/index.js CHANGED
@@ -293,14 +293,14 @@ var LinkTemplateSchema = z7.object({
293
293
  workspace_id: z7.string().uuid(),
294
294
  title: z7.string(),
295
295
  description: z7.string().nullable(),
296
- rule_graph: RuleGraphSchema,
296
+ rule_graph: RuleGraphSchema.nullable(),
297
297
  created_at: z7.coerce.date(),
298
298
  updated_at: z7.coerce.date().nullable()
299
299
  });
300
300
  var CreateLinkTemplateInputSchema = z7.object({
301
301
  title: z7.string().min(1).max(255),
302
302
  description: z7.string().max(2e3).optional(),
303
- rule_graph: RuleGraphSchema
303
+ rule_graph: RuleGraphSchema.nullable().optional()
304
304
  });
305
305
  var UpdateLinkTemplateInputSchema = z7.object({
306
306
  title: z7.string().min(1).max(255).optional(),
@@ -4,7 +4,7 @@ export declare const LinkTemplateSchema: z.ZodObject<{
4
4
  workspace_id: z.ZodString;
5
5
  title: z.ZodString;
6
6
  description: z.ZodNullable<z.ZodString>;
7
- rule_graph: z.ZodObject<{
7
+ rule_graph: z.ZodNullable<z.ZodObject<{
8
8
  entry: z.ZodString;
9
9
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
10
10
  id: z.ZodString;
@@ -87,14 +87,14 @@ export declare const LinkTemplateSchema: z.ZodObject<{
87
87
  }, z.core.$strip>;
88
88
  next: z.ZodNullable<z.ZodString>;
89
89
  }, z.core.$strip>], "type">>;
90
- }, z.core.$strip>;
90
+ }, z.core.$strip>>;
91
91
  created_at: z.ZodCoercedDate<unknown>;
92
92
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
93
93
  }, z.core.$strip>;
94
94
  export declare const CreateLinkTemplateInputSchema: z.ZodObject<{
95
95
  title: z.ZodString;
96
96
  description: z.ZodOptional<z.ZodString>;
97
- rule_graph: z.ZodObject<{
97
+ rule_graph: z.ZodOptional<z.ZodNullable<z.ZodObject<{
98
98
  entry: z.ZodString;
99
99
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
100
100
  id: z.ZodString;
@@ -177,7 +177,7 @@ export declare const CreateLinkTemplateInputSchema: z.ZodObject<{
177
177
  }, z.core.$strip>;
178
178
  next: z.ZodNullable<z.ZodString>;
179
179
  }, z.core.$strip>], "type">>;
180
- }, z.core.$strip>;
180
+ }, z.core.$strip>>>;
181
181
  }, z.core.$strip>;
182
182
  export declare const UpdateLinkTemplateInputSchema: z.ZodObject<{
183
183
  title: z.ZodOptional<z.ZodString>;
@@ -278,7 +278,7 @@ export declare const PaginatedLinkTemplatesSchema: z.ZodObject<{
278
278
  workspace_id: z.ZodString;
279
279
  title: z.ZodString;
280
280
  description: z.ZodNullable<z.ZodString>;
281
- rule_graph: z.ZodObject<{
281
+ rule_graph: z.ZodNullable<z.ZodObject<{
282
282
  entry: z.ZodString;
283
283
  nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
284
284
  id: z.ZodString;
@@ -361,7 +361,7 @@ export declare const PaginatedLinkTemplatesSchema: z.ZodObject<{
361
361
  }, z.core.$strip>;
362
362
  next: z.ZodNullable<z.ZodString>;
363
363
  }, z.core.$strip>], "type">>;
364
- }, z.core.$strip>;
364
+ }, z.core.$strip>>;
365
365
  created_at: z.ZodCoercedDate<unknown>;
366
366
  updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
367
367
  }, z.core.$strip>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middlewr/contracts",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "type": "module",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -7,7 +7,7 @@ export const LinkTemplateSchema = z.object({
7
7
  workspace_id: z.string().uuid(),
8
8
  title: z.string(),
9
9
  description: z.string().nullable(),
10
- rule_graph: RuleGraphSchema,
10
+ rule_graph: RuleGraphSchema.nullable(),
11
11
  created_at: z.coerce.date(),
12
12
  updated_at: z.coerce.date().nullable(),
13
13
  });
@@ -15,7 +15,7 @@ export const LinkTemplateSchema = z.object({
15
15
  export const CreateLinkTemplateInputSchema = z.object({
16
16
  title: z.string().min(1).max(255),
17
17
  description: z.string().max(2000).optional(),
18
- rule_graph: RuleGraphSchema,
18
+ rule_graph: RuleGraphSchema.nullable().optional(),
19
19
  });
20
20
 
21
21
  export const UpdateLinkTemplateInputSchema = z.object({