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

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