@uniformdev/mesh-edgehancer-sdk 20.32.0 → 20.32.1-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -2,6 +2,164 @@ import * as zod from 'zod';
2
2
  import { z } from 'zod';
3
3
  import { DataType, DataSource, DataSourceVariantsKeys, DataSourceVariantData } from '@uniformdev/canvas';
4
4
 
5
+ declare const afterAIEditResultSchema: z.ZodObject<{
6
+ newValue: z.ZodUnknown;
7
+ success: z.ZodBoolean;
8
+ summary: z.ZodOptional<z.ZodString>;
9
+ }, "strict", z.ZodTypeAny, {
10
+ success: boolean;
11
+ summary?: string | undefined;
12
+ newValue?: unknown;
13
+ }, {
14
+ success: boolean;
15
+ summary?: string | undefined;
16
+ newValue?: unknown;
17
+ }>;
18
+ declare const afterAIEditContextSchema: z.ZodObject<{
19
+ editRequest: z.ZodObject<{
20
+ edit: z.ZodString;
21
+ currentValue: z.ZodOptional<z.ZodUnknown>;
22
+ projectGuidance: z.ZodOptional<z.ZodString>;
23
+ componentGuidance: z.ZodOptional<z.ZodString>;
24
+ audienceGuidance: z.ZodOptional<z.ZodString>;
25
+ propertyDefinition: z.ZodObject<{
26
+ id: z.ZodString;
27
+ name: z.ZodString;
28
+ type: z.ZodString;
29
+ guidance: z.ZodOptional<z.ZodString>;
30
+ typeConfig: z.ZodOptional<z.ZodUnknown>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ type: string;
33
+ id: string;
34
+ name: string;
35
+ guidance?: string | undefined;
36
+ typeConfig?: unknown;
37
+ }, {
38
+ type: string;
39
+ id: string;
40
+ name: string;
41
+ guidance?: string | undefined;
42
+ typeConfig?: unknown;
43
+ }>;
44
+ outputLocale: z.ZodOptional<z.ZodString>;
45
+ documentContext: z.ZodOptional<z.ZodString>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ edit: string;
48
+ propertyDefinition: {
49
+ type: string;
50
+ id: string;
51
+ name: string;
52
+ guidance?: string | undefined;
53
+ typeConfig?: unknown;
54
+ };
55
+ currentValue?: unknown;
56
+ projectGuidance?: string | undefined;
57
+ componentGuidance?: string | undefined;
58
+ audienceGuidance?: string | undefined;
59
+ outputLocale?: string | undefined;
60
+ documentContext?: string | undefined;
61
+ }, {
62
+ edit: string;
63
+ propertyDefinition: {
64
+ type: string;
65
+ id: string;
66
+ name: string;
67
+ guidance?: string | undefined;
68
+ typeConfig?: unknown;
69
+ };
70
+ currentValue?: unknown;
71
+ projectGuidance?: string | undefined;
72
+ componentGuidance?: string | undefined;
73
+ audienceGuidance?: string | undefined;
74
+ outputLocale?: string | undefined;
75
+ documentContext?: string | undefined;
76
+ }>;
77
+ invocationContext: z.ZodEnum<["composition", "compositionPattern", "componentPattern", "entry", "entryPattern", "general"]>;
78
+ userId: z.ZodString;
79
+ currentLocale: z.ZodOptional<z.ZodString>;
80
+ projectId: z.ZodString;
81
+ currentValue: z.ZodOptional<z.ZodUnknown>;
82
+ newValue: z.ZodUnknown;
83
+ result: z.ZodObject<{
84
+ success: z.ZodBoolean;
85
+ summary: z.ZodOptional<z.ZodString>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ success: boolean;
88
+ summary?: string | undefined;
89
+ }, {
90
+ success: boolean;
91
+ summary?: string | undefined;
92
+ }>;
93
+ }, "strict", z.ZodTypeAny, {
94
+ invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
95
+ result: {
96
+ success: boolean;
97
+ summary?: string | undefined;
98
+ };
99
+ editRequest: {
100
+ edit: string;
101
+ propertyDefinition: {
102
+ type: string;
103
+ id: string;
104
+ name: string;
105
+ guidance?: string | undefined;
106
+ typeConfig?: unknown;
107
+ };
108
+ currentValue?: unknown;
109
+ projectGuidance?: string | undefined;
110
+ componentGuidance?: string | undefined;
111
+ audienceGuidance?: string | undefined;
112
+ outputLocale?: string | undefined;
113
+ documentContext?: string | undefined;
114
+ };
115
+ userId: string;
116
+ projectId: string;
117
+ currentValue?: unknown;
118
+ newValue?: unknown;
119
+ currentLocale?: string | undefined;
120
+ }, {
121
+ invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
122
+ result: {
123
+ success: boolean;
124
+ summary?: string | undefined;
125
+ };
126
+ editRequest: {
127
+ edit: string;
128
+ propertyDefinition: {
129
+ type: string;
130
+ id: string;
131
+ name: string;
132
+ guidance?: string | undefined;
133
+ typeConfig?: unknown;
134
+ };
135
+ currentValue?: unknown;
136
+ projectGuidance?: string | undefined;
137
+ componentGuidance?: string | undefined;
138
+ audienceGuidance?: string | undefined;
139
+ outputLocale?: string | undefined;
140
+ documentContext?: string | undefined;
141
+ };
142
+ userId: string;
143
+ projectId: string;
144
+ currentValue?: unknown;
145
+ newValue?: unknown;
146
+ currentLocale?: string | undefined;
147
+ }>;
148
+ type AfterAIEditContext = z.infer<typeof afterAIEditContextSchema>;
149
+ type AfterAIEditResult = z.infer<typeof afterAIEditResultSchema>;
150
+ /**
151
+ * Shape of a hook function that is invoked after an AI edit has been performed to a custom property type.
152
+ * The function can alter the success or value of the edit performed by the LLM.
153
+ *
154
+ * NOTE: this function is only invoked when a value is edited. If the value is cleared or
155
+ * overrides reset, the function is not invoked (those are internally handled)
156
+ *
157
+ * NOTE: in most cases, you want createAIEdit well before this hook. This hook allows catching
158
+ * hallucinations, applying deterministic business rules, or transforming the format of the AI result
159
+ * into another format.
160
+ */
161
+ type AfterAIEditHookFn = (context: AfterAIEditContext) => Promise<AfterAIEditResult>;
162
+
5
163
  /**
6
164
  * The context we are fetching the data resource in:
7
165
  *
@@ -52,12 +210,12 @@ declare const mergedDataTypeSchema: z.ZodObject<{
52
210
  value: z.ZodString;
53
211
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
54
212
  }, "strip", z.ZodTypeAny, {
55
- key: string;
56
213
  value: string;
214
+ key: string;
57
215
  omitIfEmpty?: boolean | undefined;
58
216
  }, {
59
- key: string;
60
217
  value: string;
218
+ key: string;
61
219
  omitIfEmpty?: boolean | undefined;
62
220
  }>, "many">>;
63
221
  parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -65,12 +223,12 @@ declare const mergedDataTypeSchema: z.ZodObject<{
65
223
  value: z.ZodString;
66
224
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
67
225
  }, "strip", z.ZodTypeAny, {
68
- key: string;
69
226
  value: string;
227
+ key: string;
70
228
  omitIfEmpty?: boolean | undefined;
71
229
  }, {
72
- key: string;
73
230
  value: string;
231
+ key: string;
74
232
  omitIfEmpty?: boolean | undefined;
75
233
  }>, "many">>;
76
234
  body: z.ZodOptional<z.ZodString>;
@@ -120,12 +278,12 @@ declare const mergedDataTypeSchema: z.ZodObject<{
120
278
  value: z.ZodString;
121
279
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
122
280
  }, "strip", z.ZodTypeAny, {
123
- key: string;
124
281
  value: string;
282
+ key: string;
125
283
  omitIfEmpty?: boolean | undefined;
126
284
  }, {
127
- key: string;
128
285
  value: string;
286
+ key: string;
129
287
  omitIfEmpty?: boolean | undefined;
130
288
  }>, "many">>;
131
289
  parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -133,12 +291,12 @@ declare const mergedDataTypeSchema: z.ZodObject<{
133
291
  value: z.ZodString;
134
292
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
135
293
  }, "strip", z.ZodTypeAny, {
136
- key: string;
137
294
  value: string;
295
+ key: string;
138
296
  omitIfEmpty?: boolean | undefined;
139
297
  }, {
140
- key: string;
141
298
  value: string;
299
+ key: string;
142
300
  omitIfEmpty?: boolean | undefined;
143
301
  }>, "many">>;
144
302
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -165,13 +323,13 @@ declare const mergedDataTypeSchema: z.ZodObject<{
165
323
  }>>>;
166
324
  }, "strip", z.ZodTypeAny, {
167
325
  headers?: {
168
- key: string;
169
326
  value: string;
327
+ key: string;
170
328
  omitIfEmpty?: boolean | undefined;
171
329
  }[] | undefined;
172
330
  parameters?: {
173
- key: string;
174
331
  value: string;
332
+ key: string;
175
333
  omitIfEmpty?: boolean | undefined;
176
334
  }[] | undefined;
177
335
  variables?: Record<string, {
@@ -184,13 +342,13 @@ declare const mergedDataTypeSchema: z.ZodObject<{
184
342
  }> | undefined;
185
343
  }, {
186
344
  headers?: {
187
- key: string;
188
345
  value: string;
346
+ key: string;
189
347
  omitIfEmpty?: boolean | undefined;
190
348
  }[] | undefined;
191
349
  parameters?: {
192
- key: string;
193
350
  value: string;
351
+ key: string;
194
352
  omitIfEmpty?: boolean | undefined;
195
353
  }[] | undefined;
196
354
  variables?: Record<string, {
@@ -211,13 +369,13 @@ declare const mergedDataTypeSchema: z.ZodObject<{
211
369
  }, "strip", z.ZodTypeAny, {
212
370
  unpublished?: ({
213
371
  headers?: {
214
- key: string;
215
372
  value: string;
373
+ key: string;
216
374
  omitIfEmpty?: boolean | undefined;
217
375
  }[] | undefined;
218
376
  parameters?: {
219
- key: string;
220
377
  value: string;
378
+ key: string;
221
379
  omitIfEmpty?: boolean | undefined;
222
380
  }[] | undefined;
223
381
  variables?: Record<string, {
@@ -234,13 +392,13 @@ declare const mergedDataTypeSchema: z.ZodObject<{
234
392
  }, {
235
393
  unpublished?: ({
236
394
  headers?: {
237
- key: string;
238
395
  value: string;
396
+ key: string;
239
397
  omitIfEmpty?: boolean | undefined;
240
398
  }[] | undefined;
241
399
  parameters?: {
242
- key: string;
243
400
  value: string;
401
+ key: string;
244
402
  omitIfEmpty?: boolean | undefined;
245
403
  }[] | undefined;
246
404
  variables?: Record<string, {
@@ -257,20 +415,20 @@ declare const mergedDataTypeSchema: z.ZodObject<{
257
415
  }>>;
258
416
  enableUnpublishedMode: z.ZodOptional<z.ZodBoolean>;
259
417
  }, "strip", z.ZodTypeAny, {
418
+ id: string;
260
419
  displayName: string;
261
420
  url: string;
262
- id: string;
263
421
  connectorType: string;
264
422
  method: "GET" | "POST" | "HEAD";
265
423
  custom?: Record<string, unknown> | undefined;
266
424
  headers?: {
267
- key: string;
268
425
  value: string;
426
+ key: string;
269
427
  omitIfEmpty?: boolean | undefined;
270
428
  }[] | undefined;
271
429
  parameters?: {
272
- key: string;
273
430
  value: string;
431
+ key: string;
274
432
  omitIfEmpty?: boolean | undefined;
275
433
  }[] | undefined;
276
434
  variables?: Record<string, {
@@ -297,13 +455,13 @@ declare const mergedDataTypeSchema: z.ZodObject<{
297
455
  variants?: {
298
456
  unpublished?: ({
299
457
  headers?: {
300
- key: string;
301
458
  value: string;
459
+ key: string;
302
460
  omitIfEmpty?: boolean | undefined;
303
461
  }[] | undefined;
304
462
  parameters?: {
305
- key: string;
306
463
  value: string;
464
+ key: string;
307
465
  omitIfEmpty?: boolean | undefined;
308
466
  }[] | undefined;
309
467
  variables?: Record<string, {
@@ -320,20 +478,20 @@ declare const mergedDataTypeSchema: z.ZodObject<{
320
478
  } | undefined;
321
479
  enableUnpublishedMode?: boolean | undefined;
322
480
  }, {
481
+ id: string;
323
482
  displayName: string;
324
483
  url: string;
325
- id: string;
326
484
  connectorType: string;
327
485
  method: "GET" | "POST" | "HEAD";
328
486
  custom?: Record<string, unknown> | undefined;
329
487
  headers?: {
330
- key: string;
331
488
  value: string;
489
+ key: string;
332
490
  omitIfEmpty?: boolean | undefined;
333
491
  }[] | undefined;
334
492
  parameters?: {
335
- key: string;
336
493
  value: string;
494
+ key: string;
337
495
  omitIfEmpty?: boolean | undefined;
338
496
  }[] | undefined;
339
497
  variables?: Record<string, {
@@ -360,13 +518,13 @@ declare const mergedDataTypeSchema: z.ZodObject<{
360
518
  variants?: {
361
519
  unpublished?: ({
362
520
  headers?: {
363
- key: string;
364
521
  value: string;
522
+ key: string;
365
523
  omitIfEmpty?: boolean | undefined;
366
524
  }[] | undefined;
367
525
  parameters?: {
368
- key: string;
369
526
  value: string;
527
+ key: string;
370
528
  omitIfEmpty?: boolean | undefined;
371
529
  }[] | undefined;
372
530
  variables?: Record<string, {
@@ -490,6 +648,7 @@ declare const requestEdgehancerDataResourceResolutionResultSchema: z.ZodObject<{
490
648
  surrogateKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
491
649
  result: z.ZodUnion<[z.ZodString, z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown, "many">, z.ZodUndefined]>;
492
650
  }, "strict", z.ZodTypeAny, {
651
+ result?: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodUnknown, "strip"> | undefined;
493
652
  errors?: (string | {
494
653
  message: string;
495
654
  subType?: "unpublishedData" | "configuration" | undefined;
@@ -509,8 +668,8 @@ declare const requestEdgehancerDataResourceResolutionResultSchema: z.ZodObject<{
509
668
  deepLink?: string | undefined;
510
669
  })[] | undefined;
511
670
  surrogateKeys?: string[] | undefined;
512
- result?: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodUnknown, "strip"> | undefined;
513
671
  }, {
672
+ result?: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodUnknown, "strip"> | undefined;
514
673
  errors?: (string | {
515
674
  message: string;
516
675
  subType?: "unpublishedData" | "configuration" | undefined;
@@ -530,7 +689,6 @@ declare const requestEdgehancerDataResourceResolutionResultSchema: z.ZodObject<{
530
689
  deepLink?: string | undefined;
531
690
  })[] | undefined;
532
691
  surrogateKeys?: string[] | undefined;
533
- result?: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodUnknown, "strip"> | undefined;
534
692
  }>;
535
693
  declare const requestEdgehancerResultSchema: z.ZodObject<{
536
694
  results: z.ZodArray<z.ZodObject<{
@@ -585,6 +743,7 @@ declare const requestEdgehancerResultSchema: z.ZodObject<{
585
743
  surrogateKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
586
744
  result: z.ZodUnion<[z.ZodString, z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown, "many">, z.ZodUndefined]>;
587
745
  }, "strict", z.ZodTypeAny, {
746
+ result?: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodUnknown, "strip"> | undefined;
588
747
  errors?: (string | {
589
748
  message: string;
590
749
  subType?: "unpublishedData" | "configuration" | undefined;
@@ -604,8 +763,8 @@ declare const requestEdgehancerResultSchema: z.ZodObject<{
604
763
  deepLink?: string | undefined;
605
764
  })[] | undefined;
606
765
  surrogateKeys?: string[] | undefined;
607
- result?: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodUnknown, "strip"> | undefined;
608
766
  }, {
767
+ result?: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodUnknown, "strip"> | undefined;
609
768
  errors?: (string | {
610
769
  message: string;
611
770
  subType?: "unpublishedData" | "configuration" | undefined;
@@ -625,10 +784,10 @@ declare const requestEdgehancerResultSchema: z.ZodObject<{
625
784
  deepLink?: string | undefined;
626
785
  })[] | undefined;
627
786
  surrogateKeys?: string[] | undefined;
628
- result?: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodUnknown, "strip"> | undefined;
629
787
  }>, "many">;
630
788
  }, "strict", z.ZodTypeAny, {
631
789
  results: {
790
+ result?: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodUnknown, "strip"> | undefined;
632
791
  errors?: (string | {
633
792
  message: string;
634
793
  subType?: "unpublishedData" | "configuration" | undefined;
@@ -648,10 +807,10 @@ declare const requestEdgehancerResultSchema: z.ZodObject<{
648
807
  deepLink?: string | undefined;
649
808
  })[] | undefined;
650
809
  surrogateKeys?: string[] | undefined;
651
- result?: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodUnknown, "strip"> | undefined;
652
810
  }[];
653
811
  }, {
654
812
  results: {
813
+ result?: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodUnknown, "strip"> | undefined;
655
814
  errors?: (string | {
656
815
  message: string;
657
816
  subType?: "unpublishedData" | "configuration" | undefined;
@@ -671,7 +830,6 @@ declare const requestEdgehancerResultSchema: z.ZodObject<{
671
830
  deepLink?: string | undefined;
672
831
  })[] | undefined;
673
832
  surrogateKeys?: string[] | undefined;
674
- result?: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodUnknown, "strip"> | undefined;
675
833
  }[];
676
834
  }>;
677
835
  type RequestEdgehancerResult = z.infer<typeof requestEdgehancerResultSchema>;
@@ -690,6 +848,7 @@ type ConvertBatchResultsToEdgehancerResultOptions<TID, TResultItem extends DataR
690
848
  * Given a batch of data resources and their batch-fetch results, convert them into a result that can be returned from a request hook.
691
849
  */
692
850
  declare function convertBatchResultsToEdgehancerResult<TID, TResultItem extends DataResource>({ batch, batchFetchIds: { invalidBatchIndices, validIdToOriginalIndexMap }, batchResults, resolveIdFromBatchResultFn, knownInvalidErrorMessage, missingBatchResultErrorMessage, }: ConvertBatchResultsToEdgehancerResultOptions<TID, TResultItem>): {
851
+ result?: string | number | boolean | unknown[] | zod.objectOutputType<{}, zod.ZodUnknown, "strip"> | undefined;
693
852
  errors?: (string | {
694
853
  message: string;
695
854
  subType?: "unpublishedData" | "configuration" | undefined;
@@ -709,7 +868,6 @@ declare function convertBatchResultsToEdgehancerResult<TID, TResultItem extends
709
868
  deepLink?: string | undefined;
710
869
  })[] | undefined;
711
870
  surrogateKeys?: string[] | undefined;
712
- result?: string | number | boolean | unknown[] | zod.objectOutputType<{}, zod.ZodUnknown, "strip"> | undefined;
713
871
  }[];
714
872
  type ResolveBatchIdsResult<TID> = {
715
873
  /** The IDs that are valid that should be fetched */
@@ -729,6 +887,132 @@ declare const COLLECTION_DEFAULT_LIMIT = 20;
729
887
  declare const COLLECTION_MAX_LIMIT = 50;
730
888
  declare const COLLECTION_DEFAULT_OFFSET = 0;
731
889
 
890
+ declare const createAIEditContextSchema: z.ZodObject<{
891
+ editRequest: z.ZodObject<{
892
+ edit: z.ZodString;
893
+ currentValue: z.ZodOptional<z.ZodUnknown>;
894
+ projectGuidance: z.ZodOptional<z.ZodString>;
895
+ componentGuidance: z.ZodOptional<z.ZodString>;
896
+ audienceGuidance: z.ZodOptional<z.ZodString>;
897
+ propertyDefinition: z.ZodObject<{
898
+ id: z.ZodString;
899
+ name: z.ZodString;
900
+ type: z.ZodString;
901
+ guidance: z.ZodOptional<z.ZodString>;
902
+ typeConfig: z.ZodOptional<z.ZodUnknown>;
903
+ }, "strip", z.ZodTypeAny, {
904
+ type: string;
905
+ id: string;
906
+ name: string;
907
+ guidance?: string | undefined;
908
+ typeConfig?: unknown;
909
+ }, {
910
+ type: string;
911
+ id: string;
912
+ name: string;
913
+ guidance?: string | undefined;
914
+ typeConfig?: unknown;
915
+ }>;
916
+ outputLocale: z.ZodOptional<z.ZodString>;
917
+ documentContext: z.ZodOptional<z.ZodString>;
918
+ }, "strip", z.ZodTypeAny, {
919
+ edit: string;
920
+ propertyDefinition: {
921
+ type: string;
922
+ id: string;
923
+ name: string;
924
+ guidance?: string | undefined;
925
+ typeConfig?: unknown;
926
+ };
927
+ currentValue?: unknown;
928
+ projectGuidance?: string | undefined;
929
+ componentGuidance?: string | undefined;
930
+ audienceGuidance?: string | undefined;
931
+ outputLocale?: string | undefined;
932
+ documentContext?: string | undefined;
933
+ }, {
934
+ edit: string;
935
+ propertyDefinition: {
936
+ type: string;
937
+ id: string;
938
+ name: string;
939
+ guidance?: string | undefined;
940
+ typeConfig?: unknown;
941
+ };
942
+ currentValue?: unknown;
943
+ projectGuidance?: string | undefined;
944
+ componentGuidance?: string | undefined;
945
+ audienceGuidance?: string | undefined;
946
+ outputLocale?: string | undefined;
947
+ documentContext?: string | undefined;
948
+ }>;
949
+ invocationContext: z.ZodEnum<["composition", "compositionPattern", "componentPattern", "entry", "entryPattern", "general"]>;
950
+ userId: z.ZodString;
951
+ currentLocale: z.ZodOptional<z.ZodString>;
952
+ projectId: z.ZodString;
953
+ }, "strict", z.ZodTypeAny, {
954
+ invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
955
+ editRequest: {
956
+ edit: string;
957
+ propertyDefinition: {
958
+ type: string;
959
+ id: string;
960
+ name: string;
961
+ guidance?: string | undefined;
962
+ typeConfig?: unknown;
963
+ };
964
+ currentValue?: unknown;
965
+ projectGuidance?: string | undefined;
966
+ componentGuidance?: string | undefined;
967
+ audienceGuidance?: string | undefined;
968
+ outputLocale?: string | undefined;
969
+ documentContext?: string | undefined;
970
+ };
971
+ userId: string;
972
+ projectId: string;
973
+ currentLocale?: string | undefined;
974
+ }, {
975
+ invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
976
+ editRequest: {
977
+ edit: string;
978
+ propertyDefinition: {
979
+ type: string;
980
+ id: string;
981
+ name: string;
982
+ guidance?: string | undefined;
983
+ typeConfig?: unknown;
984
+ };
985
+ currentValue?: unknown;
986
+ projectGuidance?: string | undefined;
987
+ componentGuidance?: string | undefined;
988
+ audienceGuidance?: string | undefined;
989
+ outputLocale?: string | undefined;
990
+ documentContext?: string | undefined;
991
+ };
992
+ userId: string;
993
+ projectId: string;
994
+ currentLocale?: string | undefined;
995
+ }>;
996
+ type CreateAIEditContext = z.infer<typeof createAIEditContextSchema>;
997
+ declare const createAIEditResultSchema: z.ZodObject<{
998
+ outputJsonSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
999
+ instructions: z.ZodString;
1000
+ }, "strict", z.ZodTypeAny, {
1001
+ outputJsonSchema: Record<string, any>;
1002
+ instructions: string;
1003
+ }, {
1004
+ outputJsonSchema: Record<string, any>;
1005
+ instructions: string;
1006
+ }>;
1007
+ type CreateAIEditResult = z.infer<typeof createAIEditResultSchema>;
1008
+ /**
1009
+ * Shape of a hook function that is invoked to create the prompt and output schema for an AI edit to a custom property type.
1010
+
1011
+ * NOTE: the prompt returned by this hook is part of a larger system editing prompt. Only describe how to edit
1012
+ * the custom property type itself.
1013
+ */
1014
+ type CreateAIEditHookFn = (context: CreateAIEditContext) => Promise<CreateAIEditResult>;
1015
+
732
1016
  declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
733
1017
  id: z.ZodString;
734
1018
  displayName: z.ZodString;
@@ -742,12 +1026,12 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
742
1026
  value: z.ZodString;
743
1027
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
744
1028
  }, "strip", z.ZodTypeAny, {
745
- key: string;
746
1029
  value: string;
1030
+ key: string;
747
1031
  omitIfEmpty?: boolean | undefined;
748
1032
  }, {
749
- key: string;
750
1033
  value: string;
1034
+ key: string;
751
1035
  omitIfEmpty?: boolean | undefined;
752
1036
  }>, "many">>;
753
1037
  parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -755,12 +1039,12 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
755
1039
  value: z.ZodString;
756
1040
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
757
1041
  }, "strip", z.ZodTypeAny, {
758
- key: string;
759
1042
  value: string;
1043
+ key: string;
760
1044
  omitIfEmpty?: boolean | undefined;
761
1045
  }, {
762
- key: string;
763
1046
  value: string;
1047
+ key: string;
764
1048
  omitIfEmpty?: boolean | undefined;
765
1049
  }>, "many">>;
766
1050
  body: z.ZodOptional<z.ZodString>;
@@ -810,12 +1094,12 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
810
1094
  value: z.ZodString;
811
1095
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
812
1096
  }, "strip", z.ZodTypeAny, {
813
- key: string;
814
1097
  value: string;
1098
+ key: string;
815
1099
  omitIfEmpty?: boolean | undefined;
816
1100
  }, {
817
- key: string;
818
1101
  value: string;
1102
+ key: string;
819
1103
  omitIfEmpty?: boolean | undefined;
820
1104
  }>, "many">>;
821
1105
  parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -823,12 +1107,12 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
823
1107
  value: z.ZodString;
824
1108
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
825
1109
  }, "strip", z.ZodTypeAny, {
826
- key: string;
827
1110
  value: string;
1111
+ key: string;
828
1112
  omitIfEmpty?: boolean | undefined;
829
1113
  }, {
830
- key: string;
831
1114
  value: string;
1115
+ key: string;
832
1116
  omitIfEmpty?: boolean | undefined;
833
1117
  }>, "many">>;
834
1118
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -855,13 +1139,13 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
855
1139
  }>>>;
856
1140
  }, "strip", z.ZodTypeAny, {
857
1141
  headers?: {
858
- key: string;
859
1142
  value: string;
1143
+ key: string;
860
1144
  omitIfEmpty?: boolean | undefined;
861
1145
  }[] | undefined;
862
1146
  parameters?: {
863
- key: string;
864
1147
  value: string;
1148
+ key: string;
865
1149
  omitIfEmpty?: boolean | undefined;
866
1150
  }[] | undefined;
867
1151
  variables?: Record<string, {
@@ -874,13 +1158,13 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
874
1158
  }> | undefined;
875
1159
  }, {
876
1160
  headers?: {
877
- key: string;
878
1161
  value: string;
1162
+ key: string;
879
1163
  omitIfEmpty?: boolean | undefined;
880
1164
  }[] | undefined;
881
1165
  parameters?: {
882
- key: string;
883
1166
  value: string;
1167
+ key: string;
884
1168
  omitIfEmpty?: boolean | undefined;
885
1169
  }[] | undefined;
886
1170
  variables?: Record<string, {
@@ -901,13 +1185,13 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
901
1185
  }, "strip", z.ZodTypeAny, {
902
1186
  unpublished?: ({
903
1187
  headers?: {
904
- key: string;
905
1188
  value: string;
1189
+ key: string;
906
1190
  omitIfEmpty?: boolean | undefined;
907
1191
  }[] | undefined;
908
1192
  parameters?: {
909
- key: string;
910
1193
  value: string;
1194
+ key: string;
911
1195
  omitIfEmpty?: boolean | undefined;
912
1196
  }[] | undefined;
913
1197
  variables?: Record<string, {
@@ -924,13 +1208,13 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
924
1208
  }, {
925
1209
  unpublished?: ({
926
1210
  headers?: {
927
- key: string;
928
1211
  value: string;
1212
+ key: string;
929
1213
  omitIfEmpty?: boolean | undefined;
930
1214
  }[] | undefined;
931
1215
  parameters?: {
932
- key: string;
933
1216
  value: string;
1217
+ key: string;
934
1218
  omitIfEmpty?: boolean | undefined;
935
1219
  }[] | undefined;
936
1220
  variables?: Record<string, {
@@ -946,19 +1230,19 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
946
1230
  }) | undefined;
947
1231
  }>>;
948
1232
  enableUnpublishedMode: z.ZodOptional<z.ZodBoolean>;
949
- }, "displayName" | "variables" | "id" | "allowedOnComponents" | "badgeIconUrl" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
1233
+ }, "id" | "displayName" | "variables" | "allowedOnComponents" | "badgeIconUrl" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
950
1234
  url: string;
951
1235
  connectorType: string;
952
1236
  method: "GET" | "POST" | "HEAD";
953
1237
  custom?: Record<string, unknown> | undefined;
954
1238
  headers?: {
955
- key: string;
956
1239
  value: string;
1240
+ key: string;
957
1241
  omitIfEmpty?: boolean | undefined;
958
1242
  }[] | undefined;
959
1243
  parameters?: {
960
- key: string;
961
1244
  value: string;
1245
+ key: string;
962
1246
  omitIfEmpty?: boolean | undefined;
963
1247
  }[] | undefined;
964
1248
  archetype?: string | undefined;
@@ -970,13 +1254,13 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
970
1254
  variants?: {
971
1255
  unpublished?: ({
972
1256
  headers?: {
973
- key: string;
974
1257
  value: string;
1258
+ key: string;
975
1259
  omitIfEmpty?: boolean | undefined;
976
1260
  }[] | undefined;
977
1261
  parameters?: {
978
- key: string;
979
1262
  value: string;
1263
+ key: string;
980
1264
  omitIfEmpty?: boolean | undefined;
981
1265
  }[] | undefined;
982
1266
  variables?: Record<string, {
@@ -998,13 +1282,13 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
998
1282
  method: "GET" | "POST" | "HEAD";
999
1283
  custom?: Record<string, unknown> | undefined;
1000
1284
  headers?: {
1001
- key: string;
1002
1285
  value: string;
1286
+ key: string;
1003
1287
  omitIfEmpty?: boolean | undefined;
1004
1288
  }[] | undefined;
1005
1289
  parameters?: {
1006
- key: string;
1007
1290
  value: string;
1291
+ key: string;
1008
1292
  omitIfEmpty?: boolean | undefined;
1009
1293
  }[] | undefined;
1010
1294
  archetype?: string | undefined;
@@ -1016,13 +1300,13 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
1016
1300
  variants?: {
1017
1301
  unpublished?: ({
1018
1302
  headers?: {
1019
- key: string;
1020
1303
  value: string;
1304
+ key: string;
1021
1305
  omitIfEmpty?: boolean | undefined;
1022
1306
  }[] | undefined;
1023
1307
  parameters?: {
1024
- key: string;
1025
1308
  value: string;
1309
+ key: string;
1026
1310
  omitIfEmpty?: boolean | undefined;
1027
1311
  }[] | undefined;
1028
1312
  variables?: Record<string, {
@@ -1120,12 +1404,12 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1120
1404
  value: z.ZodString;
1121
1405
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
1122
1406
  }, "strip", z.ZodTypeAny, {
1123
- key: string;
1124
1407
  value: string;
1408
+ key: string;
1125
1409
  omitIfEmpty?: boolean | undefined;
1126
1410
  }, {
1127
- key: string;
1128
1411
  value: string;
1412
+ key: string;
1129
1413
  omitIfEmpty?: boolean | undefined;
1130
1414
  }>, "many">>;
1131
1415
  parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1133,12 +1417,12 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1133
1417
  value: z.ZodString;
1134
1418
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
1135
1419
  }, "strip", z.ZodTypeAny, {
1136
- key: string;
1137
1420
  value: string;
1421
+ key: string;
1138
1422
  omitIfEmpty?: boolean | undefined;
1139
1423
  }, {
1140
- key: string;
1141
1424
  value: string;
1425
+ key: string;
1142
1426
  omitIfEmpty?: boolean | undefined;
1143
1427
  }>, "many">>;
1144
1428
  body: z.ZodOptional<z.ZodString>;
@@ -1188,12 +1472,12 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1188
1472
  value: z.ZodString;
1189
1473
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
1190
1474
  }, "strip", z.ZodTypeAny, {
1191
- key: string;
1192
1475
  value: string;
1476
+ key: string;
1193
1477
  omitIfEmpty?: boolean | undefined;
1194
1478
  }, {
1195
- key: string;
1196
1479
  value: string;
1480
+ key: string;
1197
1481
  omitIfEmpty?: boolean | undefined;
1198
1482
  }>, "many">>;
1199
1483
  parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1201,12 +1485,12 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1201
1485
  value: z.ZodString;
1202
1486
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
1203
1487
  }, "strip", z.ZodTypeAny, {
1204
- key: string;
1205
1488
  value: string;
1489
+ key: string;
1206
1490
  omitIfEmpty?: boolean | undefined;
1207
1491
  }, {
1208
- key: string;
1209
1492
  value: string;
1493
+ key: string;
1210
1494
  omitIfEmpty?: boolean | undefined;
1211
1495
  }>, "many">>;
1212
1496
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -1233,13 +1517,13 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1233
1517
  }>>>;
1234
1518
  }, "strip", z.ZodTypeAny, {
1235
1519
  headers?: {
1236
- key: string;
1237
1520
  value: string;
1521
+ key: string;
1238
1522
  omitIfEmpty?: boolean | undefined;
1239
1523
  }[] | undefined;
1240
1524
  parameters?: {
1241
- key: string;
1242
1525
  value: string;
1526
+ key: string;
1243
1527
  omitIfEmpty?: boolean | undefined;
1244
1528
  }[] | undefined;
1245
1529
  variables?: Record<string, {
@@ -1252,13 +1536,13 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1252
1536
  }> | undefined;
1253
1537
  }, {
1254
1538
  headers?: {
1255
- key: string;
1256
1539
  value: string;
1540
+ key: string;
1257
1541
  omitIfEmpty?: boolean | undefined;
1258
1542
  }[] | undefined;
1259
1543
  parameters?: {
1260
- key: string;
1261
1544
  value: string;
1545
+ key: string;
1262
1546
  omitIfEmpty?: boolean | undefined;
1263
1547
  }[] | undefined;
1264
1548
  variables?: Record<string, {
@@ -1279,13 +1563,13 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1279
1563
  }, "strip", z.ZodTypeAny, {
1280
1564
  unpublished?: ({
1281
1565
  headers?: {
1282
- key: string;
1283
1566
  value: string;
1567
+ key: string;
1284
1568
  omitIfEmpty?: boolean | undefined;
1285
1569
  }[] | undefined;
1286
1570
  parameters?: {
1287
- key: string;
1288
1571
  value: string;
1572
+ key: string;
1289
1573
  omitIfEmpty?: boolean | undefined;
1290
1574
  }[] | undefined;
1291
1575
  variables?: Record<string, {
@@ -1302,13 +1586,13 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1302
1586
  }, {
1303
1587
  unpublished?: ({
1304
1588
  headers?: {
1305
- key: string;
1306
1589
  value: string;
1590
+ key: string;
1307
1591
  omitIfEmpty?: boolean | undefined;
1308
1592
  }[] | undefined;
1309
1593
  parameters?: {
1310
- key: string;
1311
1594
  value: string;
1595
+ key: string;
1312
1596
  omitIfEmpty?: boolean | undefined;
1313
1597
  }[] | undefined;
1314
1598
  variables?: Record<string, {
@@ -1324,19 +1608,19 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1324
1608
  }) | undefined;
1325
1609
  }>>;
1326
1610
  enableUnpublishedMode: z.ZodOptional<z.ZodBoolean>;
1327
- }, "displayName" | "variables" | "id" | "allowedOnComponents" | "badgeIconUrl" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
1611
+ }, "id" | "displayName" | "variables" | "allowedOnComponents" | "badgeIconUrl" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
1328
1612
  url: string;
1329
1613
  connectorType: string;
1330
1614
  method: "GET" | "POST" | "HEAD";
1331
1615
  custom?: Record<string, unknown> | undefined;
1332
1616
  headers?: {
1333
- key: string;
1334
1617
  value: string;
1618
+ key: string;
1335
1619
  omitIfEmpty?: boolean | undefined;
1336
1620
  }[] | undefined;
1337
1621
  parameters?: {
1338
- key: string;
1339
1622
  value: string;
1623
+ key: string;
1340
1624
  omitIfEmpty?: boolean | undefined;
1341
1625
  }[] | undefined;
1342
1626
  archetype?: string | undefined;
@@ -1348,13 +1632,13 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1348
1632
  variants?: {
1349
1633
  unpublished?: ({
1350
1634
  headers?: {
1351
- key: string;
1352
1635
  value: string;
1636
+ key: string;
1353
1637
  omitIfEmpty?: boolean | undefined;
1354
1638
  }[] | undefined;
1355
1639
  parameters?: {
1356
- key: string;
1357
1640
  value: string;
1641
+ key: string;
1358
1642
  omitIfEmpty?: boolean | undefined;
1359
1643
  }[] | undefined;
1360
1644
  variables?: Record<string, {
@@ -1376,13 +1660,13 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1376
1660
  method: "GET" | "POST" | "HEAD";
1377
1661
  custom?: Record<string, unknown> | undefined;
1378
1662
  headers?: {
1379
- key: string;
1380
1663
  value: string;
1664
+ key: string;
1381
1665
  omitIfEmpty?: boolean | undefined;
1382
1666
  }[] | undefined;
1383
1667
  parameters?: {
1384
- key: string;
1385
1668
  value: string;
1669
+ key: string;
1386
1670
  omitIfEmpty?: boolean | undefined;
1387
1671
  }[] | undefined;
1388
1672
  archetype?: string | undefined;
@@ -1394,13 +1678,13 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1394
1678
  variants?: {
1395
1679
  unpublished?: ({
1396
1680
  headers?: {
1397
- key: string;
1398
1681
  value: string;
1682
+ key: string;
1399
1683
  omitIfEmpty?: boolean | undefined;
1400
1684
  }[] | undefined;
1401
1685
  parameters?: {
1402
- key: string;
1403
1686
  value: string;
1687
+ key: string;
1404
1688
  omitIfEmpty?: boolean | undefined;
1405
1689
  }[] | undefined;
1406
1690
  variables?: Record<string, {
@@ -1424,13 +1708,13 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1424
1708
  method: "GET" | "POST" | "HEAD";
1425
1709
  custom?: Record<string, unknown> | undefined;
1426
1710
  headers?: {
1427
- key: string;
1428
1711
  value: string;
1712
+ key: string;
1429
1713
  omitIfEmpty?: boolean | undefined;
1430
1714
  }[] | undefined;
1431
1715
  parameters?: {
1432
- key: string;
1433
1716
  value: string;
1717
+ key: string;
1434
1718
  omitIfEmpty?: boolean | undefined;
1435
1719
  }[] | undefined;
1436
1720
  archetype?: string | undefined;
@@ -1442,13 +1726,13 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1442
1726
  variants?: {
1443
1727
  unpublished?: ({
1444
1728
  headers?: {
1445
- key: string;
1446
1729
  value: string;
1730
+ key: string;
1447
1731
  omitIfEmpty?: boolean | undefined;
1448
1732
  }[] | undefined;
1449
1733
  parameters?: {
1450
- key: string;
1451
1734
  value: string;
1735
+ key: string;
1452
1736
  omitIfEmpty?: boolean | undefined;
1453
1737
  }[] | undefined;
1454
1738
  variables?: Record<string, {
@@ -1490,13 +1774,13 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1490
1774
  method: "GET" | "POST" | "HEAD";
1491
1775
  custom?: Record<string, unknown> | undefined;
1492
1776
  headers?: {
1493
- key: string;
1494
1777
  value: string;
1778
+ key: string;
1495
1779
  omitIfEmpty?: boolean | undefined;
1496
1780
  }[] | undefined;
1497
1781
  parameters?: {
1498
- key: string;
1499
1782
  value: string;
1783
+ key: string;
1500
1784
  omitIfEmpty?: boolean | undefined;
1501
1785
  }[] | undefined;
1502
1786
  archetype?: string | undefined;
@@ -1508,13 +1792,13 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1508
1792
  variants?: {
1509
1793
  unpublished?: ({
1510
1794
  headers?: {
1511
- key: string;
1512
1795
  value: string;
1796
+ key: string;
1513
1797
  omitIfEmpty?: boolean | undefined;
1514
1798
  }[] | undefined;
1515
1799
  parameters?: {
1516
- key: string;
1517
1800
  value: string;
1801
+ key: string;
1518
1802
  omitIfEmpty?: boolean | undefined;
1519
1803
  }[] | undefined;
1520
1804
  variables?: Record<string, {
@@ -1613,12 +1897,12 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1613
1897
  value: z.ZodString;
1614
1898
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
1615
1899
  }, "strip", z.ZodTypeAny, {
1616
- key: string;
1617
1900
  value: string;
1901
+ key: string;
1618
1902
  omitIfEmpty?: boolean | undefined;
1619
1903
  }, {
1620
- key: string;
1621
1904
  value: string;
1905
+ key: string;
1622
1906
  omitIfEmpty?: boolean | undefined;
1623
1907
  }>, "many">>;
1624
1908
  parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1626,12 +1910,12 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1626
1910
  value: z.ZodString;
1627
1911
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
1628
1912
  }, "strip", z.ZodTypeAny, {
1629
- key: string;
1630
1913
  value: string;
1914
+ key: string;
1631
1915
  omitIfEmpty?: boolean | undefined;
1632
1916
  }, {
1633
- key: string;
1634
1917
  value: string;
1918
+ key: string;
1635
1919
  omitIfEmpty?: boolean | undefined;
1636
1920
  }>, "many">>;
1637
1921
  body: z.ZodOptional<z.ZodString>;
@@ -1681,12 +1965,12 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1681
1965
  value: z.ZodString;
1682
1966
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
1683
1967
  }, "strip", z.ZodTypeAny, {
1684
- key: string;
1685
1968
  value: string;
1969
+ key: string;
1686
1970
  omitIfEmpty?: boolean | undefined;
1687
1971
  }, {
1688
- key: string;
1689
1972
  value: string;
1973
+ key: string;
1690
1974
  omitIfEmpty?: boolean | undefined;
1691
1975
  }>, "many">>;
1692
1976
  parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1694,12 +1978,12 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1694
1978
  value: z.ZodString;
1695
1979
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
1696
1980
  }, "strip", z.ZodTypeAny, {
1697
- key: string;
1698
1981
  value: string;
1982
+ key: string;
1699
1983
  omitIfEmpty?: boolean | undefined;
1700
1984
  }, {
1701
- key: string;
1702
1985
  value: string;
1986
+ key: string;
1703
1987
  omitIfEmpty?: boolean | undefined;
1704
1988
  }>, "many">>;
1705
1989
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -1726,13 +2010,13 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1726
2010
  }>>>;
1727
2011
  }, "strip", z.ZodTypeAny, {
1728
2012
  headers?: {
1729
- key: string;
1730
2013
  value: string;
2014
+ key: string;
1731
2015
  omitIfEmpty?: boolean | undefined;
1732
2016
  }[] | undefined;
1733
2017
  parameters?: {
1734
- key: string;
1735
2018
  value: string;
2019
+ key: string;
1736
2020
  omitIfEmpty?: boolean | undefined;
1737
2021
  }[] | undefined;
1738
2022
  variables?: Record<string, {
@@ -1745,13 +2029,13 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1745
2029
  }> | undefined;
1746
2030
  }, {
1747
2031
  headers?: {
1748
- key: string;
1749
2032
  value: string;
2033
+ key: string;
1750
2034
  omitIfEmpty?: boolean | undefined;
1751
2035
  }[] | undefined;
1752
2036
  parameters?: {
1753
- key: string;
1754
2037
  value: string;
2038
+ key: string;
1755
2039
  omitIfEmpty?: boolean | undefined;
1756
2040
  }[] | undefined;
1757
2041
  variables?: Record<string, {
@@ -1772,13 +2056,13 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1772
2056
  }, "strip", z.ZodTypeAny, {
1773
2057
  unpublished?: ({
1774
2058
  headers?: {
1775
- key: string;
1776
2059
  value: string;
2060
+ key: string;
1777
2061
  omitIfEmpty?: boolean | undefined;
1778
2062
  }[] | undefined;
1779
2063
  parameters?: {
1780
- key: string;
1781
2064
  value: string;
2065
+ key: string;
1782
2066
  omitIfEmpty?: boolean | undefined;
1783
2067
  }[] | undefined;
1784
2068
  variables?: Record<string, {
@@ -1795,13 +2079,13 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1795
2079
  }, {
1796
2080
  unpublished?: ({
1797
2081
  headers?: {
1798
- key: string;
1799
2082
  value: string;
2083
+ key: string;
1800
2084
  omitIfEmpty?: boolean | undefined;
1801
2085
  }[] | undefined;
1802
2086
  parameters?: {
1803
- key: string;
1804
2087
  value: string;
2088
+ key: string;
1805
2089
  omitIfEmpty?: boolean | undefined;
1806
2090
  }[] | undefined;
1807
2091
  variables?: Record<string, {
@@ -1817,19 +2101,19 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1817
2101
  }) | undefined;
1818
2102
  }>>;
1819
2103
  enableUnpublishedMode: z.ZodOptional<z.ZodBoolean>;
1820
- }, "displayName" | "variables" | "id" | "allowedOnComponents" | "badgeIconUrl" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
2104
+ }, "id" | "displayName" | "variables" | "allowedOnComponents" | "badgeIconUrl" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
1821
2105
  url: string;
1822
2106
  connectorType: string;
1823
2107
  method: "GET" | "POST" | "HEAD";
1824
2108
  custom?: Record<string, unknown> | undefined;
1825
2109
  headers?: {
1826
- key: string;
1827
2110
  value: string;
2111
+ key: string;
1828
2112
  omitIfEmpty?: boolean | undefined;
1829
2113
  }[] | undefined;
1830
2114
  parameters?: {
1831
- key: string;
1832
2115
  value: string;
2116
+ key: string;
1833
2117
  omitIfEmpty?: boolean | undefined;
1834
2118
  }[] | undefined;
1835
2119
  archetype?: string | undefined;
@@ -1841,13 +2125,13 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1841
2125
  variants?: {
1842
2126
  unpublished?: ({
1843
2127
  headers?: {
1844
- key: string;
1845
2128
  value: string;
2129
+ key: string;
1846
2130
  omitIfEmpty?: boolean | undefined;
1847
2131
  }[] | undefined;
1848
2132
  parameters?: {
1849
- key: string;
1850
2133
  value: string;
2134
+ key: string;
1851
2135
  omitIfEmpty?: boolean | undefined;
1852
2136
  }[] | undefined;
1853
2137
  variables?: Record<string, {
@@ -1869,13 +2153,13 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1869
2153
  method: "GET" | "POST" | "HEAD";
1870
2154
  custom?: Record<string, unknown> | undefined;
1871
2155
  headers?: {
1872
- key: string;
1873
2156
  value: string;
2157
+ key: string;
1874
2158
  omitIfEmpty?: boolean | undefined;
1875
2159
  }[] | undefined;
1876
2160
  parameters?: {
1877
- key: string;
1878
2161
  value: string;
2162
+ key: string;
1879
2163
  omitIfEmpty?: boolean | undefined;
1880
2164
  }[] | undefined;
1881
2165
  archetype?: string | undefined;
@@ -1887,13 +2171,13 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1887
2171
  variants?: {
1888
2172
  unpublished?: ({
1889
2173
  headers?: {
1890
- key: string;
1891
2174
  value: string;
2175
+ key: string;
1892
2176
  omitIfEmpty?: boolean | undefined;
1893
2177
  }[] | undefined;
1894
2178
  parameters?: {
1895
- key: string;
1896
2179
  value: string;
2180
+ key: string;
1897
2181
  omitIfEmpty?: boolean | undefined;
1898
2182
  }[] | undefined;
1899
2183
  variables?: Record<string, {
@@ -1917,13 +2201,13 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1917
2201
  method: "GET" | "POST" | "HEAD";
1918
2202
  custom?: Record<string, unknown> | undefined;
1919
2203
  headers?: {
1920
- key: string;
1921
2204
  value: string;
2205
+ key: string;
1922
2206
  omitIfEmpty?: boolean | undefined;
1923
2207
  }[] | undefined;
1924
2208
  parameters?: {
1925
- key: string;
1926
2209
  value: string;
2210
+ key: string;
1927
2211
  omitIfEmpty?: boolean | undefined;
1928
2212
  }[] | undefined;
1929
2213
  archetype?: string | undefined;
@@ -1935,13 +2219,13 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1935
2219
  variants?: {
1936
2220
  unpublished?: ({
1937
2221
  headers?: {
1938
- key: string;
1939
2222
  value: string;
2223
+ key: string;
1940
2224
  omitIfEmpty?: boolean | undefined;
1941
2225
  }[] | undefined;
1942
2226
  parameters?: {
1943
- key: string;
1944
2227
  value: string;
2228
+ key: string;
1945
2229
  omitIfEmpty?: boolean | undefined;
1946
2230
  }[] | undefined;
1947
2231
  variables?: Record<string, {
@@ -1983,13 +2267,13 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1983
2267
  method: "GET" | "POST" | "HEAD";
1984
2268
  custom?: Record<string, unknown> | undefined;
1985
2269
  headers?: {
1986
- key: string;
1987
2270
  value: string;
2271
+ key: string;
1988
2272
  omitIfEmpty?: boolean | undefined;
1989
2273
  }[] | undefined;
1990
2274
  parameters?: {
1991
- key: string;
1992
2275
  value: string;
2276
+ key: string;
1993
2277
  omitIfEmpty?: boolean | undefined;
1994
2278
  }[] | undefined;
1995
2279
  archetype?: string | undefined;
@@ -2001,13 +2285,13 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
2001
2285
  variants?: {
2002
2286
  unpublished?: ({
2003
2287
  headers?: {
2004
- key: string;
2005
2288
  value: string;
2289
+ key: string;
2006
2290
  omitIfEmpty?: boolean | undefined;
2007
2291
  }[] | undefined;
2008
2292
  parameters?: {
2009
- key: string;
2010
2293
  value: string;
2294
+ key: string;
2011
2295
  omitIfEmpty?: boolean | undefined;
2012
2296
  }[] | undefined;
2013
2297
  variables?: Record<string, {
@@ -2051,13 +2335,13 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
2051
2335
  method: "GET" | "POST" | "HEAD";
2052
2336
  custom?: Record<string, unknown> | undefined;
2053
2337
  headers?: {
2054
- key: string;
2055
2338
  value: string;
2339
+ key: string;
2056
2340
  omitIfEmpty?: boolean | undefined;
2057
2341
  }[] | undefined;
2058
2342
  parameters?: {
2059
- key: string;
2060
2343
  value: string;
2344
+ key: string;
2061
2345
  omitIfEmpty?: boolean | undefined;
2062
2346
  }[] | undefined;
2063
2347
  archetype?: string | undefined;
@@ -2069,13 +2353,13 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
2069
2353
  variants?: {
2070
2354
  unpublished?: ({
2071
2355
  headers?: {
2072
- key: string;
2073
2356
  value: string;
2357
+ key: string;
2074
2358
  omitIfEmpty?: boolean | undefined;
2075
2359
  }[] | undefined;
2076
2360
  parameters?: {
2077
- key: string;
2078
2361
  value: string;
2362
+ key: string;
2079
2363
  omitIfEmpty?: boolean | undefined;
2080
2364
  }[] | undefined;
2081
2365
  variables?: Record<string, {
@@ -2119,13 +2403,13 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
2119
2403
  method: "GET" | "POST" | "HEAD";
2120
2404
  custom?: Record<string, unknown> | undefined;
2121
2405
  headers?: {
2122
- key: string;
2123
2406
  value: string;
2407
+ key: string;
2124
2408
  omitIfEmpty?: boolean | undefined;
2125
2409
  }[] | undefined;
2126
2410
  parameters?: {
2127
- key: string;
2128
2411
  value: string;
2412
+ key: string;
2129
2413
  omitIfEmpty?: boolean | undefined;
2130
2414
  }[] | undefined;
2131
2415
  archetype?: string | undefined;
@@ -2137,13 +2421,13 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
2137
2421
  variants?: {
2138
2422
  unpublished?: ({
2139
2423
  headers?: {
2140
- key: string;
2141
2424
  value: string;
2425
+ key: string;
2142
2426
  omitIfEmpty?: boolean | undefined;
2143
2427
  }[] | undefined;
2144
2428
  parameters?: {
2145
- key: string;
2146
2429
  value: string;
2430
+ key: string;
2147
2431
  omitIfEmpty?: boolean | undefined;
2148
2432
  }[] | undefined;
2149
2433
  variables?: Record<string, {
@@ -2193,4 +2477,4 @@ declare function getDataResourceQueryString({ parameters, url }: EdgehancerMerge
2193
2477
  /** Gets the HTTP headers for a data resource */
2194
2478
  declare function getDataResourceHeaders({ headers }: EdgehancerMergedDataType): Headers;
2195
2479
 
2196
- export { COLLECTION_DEFAULT_LIMIT, COLLECTION_DEFAULT_OFFSET, COLLECTION_MAX_LIMIT, type ConvertBatchResultsToEdgehancerResultOptions, type CustomEdgehancerDefinition, type DataResource, type DataResourceFetchContext, type EdgehancerDataIssue, type EdgehancerMergedDataType, type MergedDataType, type PreRequestEdgehancerContext, type PreRequestEdgehancerDataResourceContext, type PreRequestEdgehancerDataResourceResult, type PreRequestEdgehancerResult, type PreRequestHookFn, type RequestEdgehancerContext, type RequestEdgehancerDataResourceContext, type RequestEdgehancerDataResourceResolutionResult, type RequestEdgehancerResult, type RequestHookFn, type ResolveBatchIdsResult, convertBatchResultsToEdgehancerResult, dataResourceSchema, edgehancerMergedDataTypeSchema, getDataResourceAsRequest, getDataResourceHeaders, getDataResourceQueryString, getDataResourceUrl, mergedDataTypeSchema, preRequestEdgehancerDataResourceResultSchema, preRequestEdgehancerResultSchema, requestEdgehancerDataResourceResolutionResultSchema, requestEdgehancerResultSchema, resolveBatchFetchIds, resolvingIssueSchema };
2480
+ export { type AfterAIEditContext, type AfterAIEditHookFn, type AfterAIEditResult, COLLECTION_DEFAULT_LIMIT, COLLECTION_DEFAULT_OFFSET, COLLECTION_MAX_LIMIT, type ConvertBatchResultsToEdgehancerResultOptions, type CreateAIEditContext, type CreateAIEditHookFn, type CreateAIEditResult, type CustomEdgehancerDefinition, type DataResource, type DataResourceFetchContext, type EdgehancerDataIssue, type EdgehancerMergedDataType, type MergedDataType, type PreRequestEdgehancerContext, type PreRequestEdgehancerDataResourceContext, type PreRequestEdgehancerDataResourceResult, type PreRequestEdgehancerResult, type PreRequestHookFn, type RequestEdgehancerContext, type RequestEdgehancerDataResourceContext, type RequestEdgehancerDataResourceResolutionResult, type RequestEdgehancerResult, type RequestHookFn, type ResolveBatchIdsResult, afterAIEditContextSchema, afterAIEditResultSchema, convertBatchResultsToEdgehancerResult, createAIEditContextSchema, createAIEditResultSchema, dataResourceSchema, edgehancerMergedDataTypeSchema, getDataResourceAsRequest, getDataResourceHeaders, getDataResourceQueryString, getDataResourceUrl, mergedDataTypeSchema, preRequestEdgehancerDataResourceResultSchema, preRequestEdgehancerResultSchema, requestEdgehancerDataResourceResolutionResultSchema, requestEdgehancerResultSchema, resolveBatchFetchIds, resolvingIssueSchema };