@uniformdev/mesh-edgehancer-sdk 19.179.1-alpha.1 → 19.179.2-alpha.22

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.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as zod from 'zod';
2
2
  import { z } from 'zod';
3
- import { DataType, DataSource } from '@uniformdev/canvas';
3
+ import { DataType, DataSource, DataSourceVariantsKeys } from '@uniformdev/canvas';
4
4
 
5
5
  /**
6
6
  * The context we are fetching the data resource in:
@@ -30,6 +30,7 @@ declare const mergedDataTypeSchema: z.ZodObject<{
30
30
  allowedOnComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
31
31
  badgeIconUrl: z.ZodOptional<z.ZodString>;
32
32
  connectorType: z.ZodString;
33
+ path: z.ZodString;
33
34
  url: z.ZodString;
34
35
  headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
35
36
  key: z.ZodString;
@@ -97,15 +98,161 @@ declare const mergedDataTypeSchema: z.ZodObject<{
97
98
  request?: string | undefined;
98
99
  }>>;
99
100
  uiBadgeText: z.ZodOptional<z.ZodString>;
101
+ variants: z.ZodOptional<z.ZodObject<{
102
+ unpublished: z.ZodOptional<z.ZodOptional<z.ZodObject<{
103
+ baseUrl: z.ZodString;
104
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
105
+ key: z.ZodString;
106
+ value: z.ZodString;
107
+ omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ key: string;
110
+ value: string;
111
+ omitIfEmpty?: boolean | undefined;
112
+ }, {
113
+ key: string;
114
+ value: string;
115
+ omitIfEmpty?: boolean | undefined;
116
+ }>, "many">>;
117
+ parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
118
+ key: z.ZodString;
119
+ value: z.ZodString;
120
+ omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
121
+ }, "strip", z.ZodTypeAny, {
122
+ key: string;
123
+ value: string;
124
+ omitIfEmpty?: boolean | undefined;
125
+ }, {
126
+ key: string;
127
+ value: string;
128
+ omitIfEmpty?: boolean | undefined;
129
+ }>, "many">>;
130
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
131
+ displayName: z.ZodOptional<z.ZodString>;
132
+ type: z.ZodOptional<z.ZodString>;
133
+ default: z.ZodString;
134
+ helpText: z.ZodOptional<z.ZodString>;
135
+ order: z.ZodOptional<z.ZodNumber>;
136
+ source: z.ZodOptional<z.ZodString>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ default: string;
139
+ type?: string | undefined;
140
+ displayName?: string | undefined;
141
+ helpText?: string | undefined;
142
+ order?: number | undefined;
143
+ source?: string | undefined;
144
+ }, {
145
+ default: string;
146
+ type?: string | undefined;
147
+ displayName?: string | undefined;
148
+ helpText?: string | undefined;
149
+ order?: number | undefined;
150
+ source?: string | undefined;
151
+ }>>>;
152
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
153
+ customPublic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
154
+ }, "strip", z.ZodTypeAny, {
155
+ baseUrl: string;
156
+ headers?: {
157
+ key: string;
158
+ value: string;
159
+ omitIfEmpty?: boolean | undefined;
160
+ }[] | undefined;
161
+ parameters?: {
162
+ key: string;
163
+ value: string;
164
+ omitIfEmpty?: boolean | undefined;
165
+ }[] | undefined;
166
+ variables?: Record<string, {
167
+ default: string;
168
+ type?: string | undefined;
169
+ displayName?: string | undefined;
170
+ helpText?: string | undefined;
171
+ order?: number | undefined;
172
+ source?: string | undefined;
173
+ }> | undefined;
174
+ custom?: Record<string, unknown> | undefined;
175
+ customPublic?: Record<string, unknown> | undefined;
176
+ }, {
177
+ baseUrl: string;
178
+ headers?: {
179
+ key: string;
180
+ value: string;
181
+ omitIfEmpty?: boolean | undefined;
182
+ }[] | undefined;
183
+ parameters?: {
184
+ key: string;
185
+ value: string;
186
+ omitIfEmpty?: boolean | undefined;
187
+ }[] | undefined;
188
+ variables?: Record<string, {
189
+ default: string;
190
+ type?: string | undefined;
191
+ displayName?: string | undefined;
192
+ helpText?: string | undefined;
193
+ order?: number | undefined;
194
+ source?: string | undefined;
195
+ }> | undefined;
196
+ custom?: Record<string, unknown> | undefined;
197
+ customPublic?: Record<string, unknown> | undefined;
198
+ }>>>;
199
+ }, "strip", z.ZodTypeAny, {
200
+ unpublished?: {
201
+ baseUrl: string;
202
+ headers?: {
203
+ key: string;
204
+ value: string;
205
+ omitIfEmpty?: boolean | undefined;
206
+ }[] | undefined;
207
+ parameters?: {
208
+ key: string;
209
+ value: string;
210
+ omitIfEmpty?: boolean | undefined;
211
+ }[] | undefined;
212
+ variables?: Record<string, {
213
+ default: string;
214
+ type?: string | undefined;
215
+ displayName?: string | undefined;
216
+ helpText?: string | undefined;
217
+ order?: number | undefined;
218
+ source?: string | undefined;
219
+ }> | undefined;
220
+ custom?: Record<string, unknown> | undefined;
221
+ customPublic?: Record<string, unknown> | undefined;
222
+ } | undefined;
223
+ }, {
224
+ unpublished?: {
225
+ baseUrl: string;
226
+ headers?: {
227
+ key: string;
228
+ value: string;
229
+ omitIfEmpty?: boolean | undefined;
230
+ }[] | undefined;
231
+ parameters?: {
232
+ key: string;
233
+ value: string;
234
+ omitIfEmpty?: boolean | undefined;
235
+ }[] | undefined;
236
+ variables?: Record<string, {
237
+ default: string;
238
+ type?: string | undefined;
239
+ displayName?: string | undefined;
240
+ helpText?: string | undefined;
241
+ order?: number | undefined;
242
+ source?: string | undefined;
243
+ }> | undefined;
244
+ custom?: Record<string, unknown> | undefined;
245
+ customPublic?: Record<string, unknown> | undefined;
246
+ } | undefined;
247
+ }>>;
248
+ dataSourceVariant: z.ZodOptional<z.ZodEnum<["unpublished"]>>;
100
249
  }, "strip", z.ZodTypeAny, {
250
+ path: string;
101
251
  displayName: string;
102
252
  id: string;
103
253
  connectorType: string;
104
254
  url: string;
105
255
  method: "GET" | "POST" | "HEAD";
106
- archetype?: string | undefined;
107
- allowedOnComponents?: string[] | undefined;
108
- badgeIconUrl?: string | undefined;
109
256
  headers?: {
110
257
  key: string;
111
258
  value: string;
@@ -116,8 +263,6 @@ declare const mergedDataTypeSchema: z.ZodObject<{
116
263
  value: string;
117
264
  omitIfEmpty?: boolean | undefined;
118
265
  }[] | undefined;
119
- body?: string | undefined;
120
- custom?: Record<string, unknown> | undefined;
121
266
  variables?: Record<string, {
122
267
  default: string;
123
268
  type?: string | undefined;
@@ -126,7 +271,12 @@ declare const mergedDataTypeSchema: z.ZodObject<{
126
271
  order?: number | undefined;
127
272
  source?: string | undefined;
128
273
  }> | undefined;
274
+ custom?: Record<string, unknown> | undefined;
129
275
  customPublic?: Record<string, unknown> | undefined;
276
+ archetype?: string | undefined;
277
+ allowedOnComponents?: string[] | undefined;
278
+ badgeIconUrl?: string | undefined;
279
+ body?: string | undefined;
130
280
  ttl?: number | undefined;
131
281
  purgeKey?: string | undefined;
132
282
  localeMapping?: Record<string, string> | undefined;
@@ -135,15 +285,39 @@ declare const mergedDataTypeSchema: z.ZodObject<{
135
285
  request?: string | undefined;
136
286
  } | undefined;
137
287
  uiBadgeText?: string | undefined;
288
+ variants?: {
289
+ unpublished?: {
290
+ baseUrl: string;
291
+ headers?: {
292
+ key: string;
293
+ value: string;
294
+ omitIfEmpty?: boolean | undefined;
295
+ }[] | undefined;
296
+ parameters?: {
297
+ key: string;
298
+ value: string;
299
+ omitIfEmpty?: boolean | undefined;
300
+ }[] | undefined;
301
+ variables?: Record<string, {
302
+ default: string;
303
+ type?: string | undefined;
304
+ displayName?: string | undefined;
305
+ helpText?: string | undefined;
306
+ order?: number | undefined;
307
+ source?: string | undefined;
308
+ }> | undefined;
309
+ custom?: Record<string, unknown> | undefined;
310
+ customPublic?: Record<string, unknown> | undefined;
311
+ } | undefined;
312
+ } | undefined;
313
+ dataSourceVariant?: "unpublished" | undefined;
138
314
  }, {
315
+ path: string;
139
316
  displayName: string;
140
317
  id: string;
141
318
  connectorType: string;
142
319
  url: string;
143
320
  method: "GET" | "POST" | "HEAD";
144
- archetype?: string | undefined;
145
- allowedOnComponents?: string[] | undefined;
146
- badgeIconUrl?: string | undefined;
147
321
  headers?: {
148
322
  key: string;
149
323
  value: string;
@@ -154,8 +328,6 @@ declare const mergedDataTypeSchema: z.ZodObject<{
154
328
  value: string;
155
329
  omitIfEmpty?: boolean | undefined;
156
330
  }[] | undefined;
157
- body?: string | undefined;
158
- custom?: Record<string, unknown> | undefined;
159
331
  variables?: Record<string, {
160
332
  default: string;
161
333
  type?: string | undefined;
@@ -164,7 +336,12 @@ declare const mergedDataTypeSchema: z.ZodObject<{
164
336
  order?: number | undefined;
165
337
  source?: string | undefined;
166
338
  }> | undefined;
339
+ custom?: Record<string, unknown> | undefined;
167
340
  customPublic?: Record<string, unknown> | undefined;
341
+ archetype?: string | undefined;
342
+ allowedOnComponents?: string[] | undefined;
343
+ badgeIconUrl?: string | undefined;
344
+ body?: string | undefined;
168
345
  ttl?: number | undefined;
169
346
  purgeKey?: string | undefined;
170
347
  localeMapping?: Record<string, string> | undefined;
@@ -173,13 +350,39 @@ declare const mergedDataTypeSchema: z.ZodObject<{
173
350
  request?: string | undefined;
174
351
  } | undefined;
175
352
  uiBadgeText?: string | undefined;
353
+ variants?: {
354
+ unpublished?: {
355
+ baseUrl: string;
356
+ headers?: {
357
+ key: string;
358
+ value: string;
359
+ omitIfEmpty?: boolean | undefined;
360
+ }[] | undefined;
361
+ parameters?: {
362
+ key: string;
363
+ value: string;
364
+ omitIfEmpty?: boolean | undefined;
365
+ }[] | undefined;
366
+ variables?: Record<string, {
367
+ default: string;
368
+ type?: string | undefined;
369
+ displayName?: string | undefined;
370
+ helpText?: string | undefined;
371
+ order?: number | undefined;
372
+ source?: string | undefined;
373
+ }> | undefined;
374
+ custom?: Record<string, unknown> | undefined;
375
+ customPublic?: Record<string, unknown> | undefined;
376
+ } | undefined;
377
+ } | undefined;
378
+ dataSourceVariant?: "unpublished" | undefined;
176
379
  }>;
177
380
  /** Declaration of custom edgehancer hooks on a merged data type */
178
381
  type CustomEdgehancerDefinition = z.infer<typeof customEdgehancerDefinitionSchema>;
179
382
  /**
180
383
  * The result of merging a data source with a data type into a single request object
181
384
  */
182
- type MergedDataType = Omit<DataType, 'path' | 'dataSourceId'> & Pick<DataSource, 'connectorType' | 'localeMapping' | 'customPublic'> & {
385
+ type MergedDataType = Omit<DataType, 'dataSourceId'> & Pick<DataSource, 'connectorType' | 'localeMapping' | 'customPublic' | 'variants'> & {
183
386
  /** Merged base URL from the data source with the relative URL from the data type */
184
387
  url: string;
185
388
  /**
@@ -193,6 +396,7 @@ type MergedDataType = Omit<DataType, 'path' | 'dataSourceId'> & Pick<DataSource,
193
396
  * Max length 12
194
397
  */
195
398
  uiBadgeText?: string;
399
+ dataSourceVariant?: DataSourceVariantsKeys;
196
400
  };
197
401
  declare const dataResourceSchema: 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]>;
198
402
  /** A data resource of JSON data retrieved from a data type/data source */
@@ -211,6 +415,7 @@ type RequestEdgehancerContext = {
211
415
  * that the handler is registered for.
212
416
  */
213
417
  dataResources: readonly RequestEdgehancerDataResourceContext[];
418
+ dataSourceVariant?: DataSourceVariantsKeys;
214
419
  };
215
420
  declare const requestEdgehancerDataResourceResolutionResultSchema: z.ZodObject<{
216
421
  errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -304,6 +509,10 @@ type ResolveBatchIdsResult<TID> = {
304
509
  */
305
510
  declare function resolveBatchFetchIds<TID>(batch: readonly RequestEdgehancerDataResourceContext[], resolveBatchItemIdFn: (dataResource: RequestEdgehancerDataResourceContext) => TID | undefined): ResolveBatchIdsResult<TID>;
306
511
 
512
+ declare const COLLECTION_DEFAULT_LIMIT = 20;
513
+ declare const COLLECTION_MAX_LIMIT = 50;
514
+ declare const COLLECTION_DEFAULT_OFFSET = 0;
515
+
307
516
  declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
308
517
  id: z.ZodString;
309
518
  displayName: z.ZodString;
@@ -311,6 +520,7 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
311
520
  allowedOnComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
312
521
  badgeIconUrl: z.ZodOptional<z.ZodString>;
313
522
  connectorType: z.ZodString;
523
+ path: z.ZodString;
314
524
  url: z.ZodString;
315
525
  headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
316
526
  key: z.ZodString;
@@ -378,11 +588,159 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
378
588
  request?: string | undefined;
379
589
  }>>;
380
590
  uiBadgeText: z.ZodOptional<z.ZodString>;
381
- }, "displayName" | "id" | "allowedOnComponents" | "badgeIconUrl" | "variables" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
591
+ variants: z.ZodOptional<z.ZodObject<{
592
+ unpublished: z.ZodOptional<z.ZodOptional<z.ZodObject<{
593
+ baseUrl: z.ZodString;
594
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
595
+ key: z.ZodString;
596
+ value: z.ZodString;
597
+ omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
598
+ }, "strip", z.ZodTypeAny, {
599
+ key: string;
600
+ value: string;
601
+ omitIfEmpty?: boolean | undefined;
602
+ }, {
603
+ key: string;
604
+ value: string;
605
+ omitIfEmpty?: boolean | undefined;
606
+ }>, "many">>;
607
+ parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
608
+ key: z.ZodString;
609
+ value: z.ZodString;
610
+ omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
611
+ }, "strip", z.ZodTypeAny, {
612
+ key: string;
613
+ value: string;
614
+ omitIfEmpty?: boolean | undefined;
615
+ }, {
616
+ key: string;
617
+ value: string;
618
+ omitIfEmpty?: boolean | undefined;
619
+ }>, "many">>;
620
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
621
+ displayName: z.ZodOptional<z.ZodString>;
622
+ type: z.ZodOptional<z.ZodString>;
623
+ default: z.ZodString;
624
+ helpText: z.ZodOptional<z.ZodString>;
625
+ order: z.ZodOptional<z.ZodNumber>;
626
+ source: z.ZodOptional<z.ZodString>;
627
+ }, "strip", z.ZodTypeAny, {
628
+ default: string;
629
+ type?: string | undefined;
630
+ displayName?: string | undefined;
631
+ helpText?: string | undefined;
632
+ order?: number | undefined;
633
+ source?: string | undefined;
634
+ }, {
635
+ default: string;
636
+ type?: string | undefined;
637
+ displayName?: string | undefined;
638
+ helpText?: string | undefined;
639
+ order?: number | undefined;
640
+ source?: string | undefined;
641
+ }>>>;
642
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
643
+ customPublic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
644
+ }, "strip", z.ZodTypeAny, {
645
+ baseUrl: string;
646
+ headers?: {
647
+ key: string;
648
+ value: string;
649
+ omitIfEmpty?: boolean | undefined;
650
+ }[] | undefined;
651
+ parameters?: {
652
+ key: string;
653
+ value: string;
654
+ omitIfEmpty?: boolean | undefined;
655
+ }[] | undefined;
656
+ variables?: Record<string, {
657
+ default: string;
658
+ type?: string | undefined;
659
+ displayName?: string | undefined;
660
+ helpText?: string | undefined;
661
+ order?: number | undefined;
662
+ source?: string | undefined;
663
+ }> | undefined;
664
+ custom?: Record<string, unknown> | undefined;
665
+ customPublic?: Record<string, unknown> | undefined;
666
+ }, {
667
+ baseUrl: string;
668
+ headers?: {
669
+ key: string;
670
+ value: string;
671
+ omitIfEmpty?: boolean | undefined;
672
+ }[] | undefined;
673
+ parameters?: {
674
+ key: string;
675
+ value: string;
676
+ omitIfEmpty?: boolean | undefined;
677
+ }[] | undefined;
678
+ variables?: Record<string, {
679
+ default: string;
680
+ type?: string | undefined;
681
+ displayName?: string | undefined;
682
+ helpText?: string | undefined;
683
+ order?: number | undefined;
684
+ source?: string | undefined;
685
+ }> | undefined;
686
+ custom?: Record<string, unknown> | undefined;
687
+ customPublic?: Record<string, unknown> | undefined;
688
+ }>>>;
689
+ }, "strip", z.ZodTypeAny, {
690
+ unpublished?: {
691
+ baseUrl: string;
692
+ headers?: {
693
+ key: string;
694
+ value: string;
695
+ omitIfEmpty?: boolean | undefined;
696
+ }[] | undefined;
697
+ parameters?: {
698
+ key: string;
699
+ value: string;
700
+ omitIfEmpty?: boolean | undefined;
701
+ }[] | undefined;
702
+ variables?: Record<string, {
703
+ default: string;
704
+ type?: string | undefined;
705
+ displayName?: string | undefined;
706
+ helpText?: string | undefined;
707
+ order?: number | undefined;
708
+ source?: string | undefined;
709
+ }> | undefined;
710
+ custom?: Record<string, unknown> | undefined;
711
+ customPublic?: Record<string, unknown> | undefined;
712
+ } | undefined;
713
+ }, {
714
+ unpublished?: {
715
+ baseUrl: string;
716
+ headers?: {
717
+ key: string;
718
+ value: string;
719
+ omitIfEmpty?: boolean | undefined;
720
+ }[] | undefined;
721
+ parameters?: {
722
+ key: string;
723
+ value: string;
724
+ omitIfEmpty?: boolean | undefined;
725
+ }[] | undefined;
726
+ variables?: Record<string, {
727
+ default: string;
728
+ type?: string | undefined;
729
+ displayName?: string | undefined;
730
+ helpText?: string | undefined;
731
+ order?: number | undefined;
732
+ source?: string | undefined;
733
+ }> | undefined;
734
+ custom?: Record<string, unknown> | undefined;
735
+ customPublic?: Record<string, unknown> | undefined;
736
+ } | undefined;
737
+ }>>;
738
+ dataSourceVariant: z.ZodOptional<z.ZodEnum<["unpublished"]>>;
739
+ }, "displayName" | "variables" | "id" | "allowedOnComponents" | "badgeIconUrl" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
740
+ path: string;
382
741
  connectorType: string;
383
742
  url: string;
384
743
  method: "GET" | "POST" | "HEAD";
385
- archetype?: string | undefined;
386
744
  headers?: {
387
745
  key: string;
388
746
  value: string;
@@ -393,17 +751,44 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
393
751
  value: string;
394
752
  omitIfEmpty?: boolean | undefined;
395
753
  }[] | undefined;
396
- body?: string | undefined;
397
754
  custom?: Record<string, unknown> | undefined;
398
755
  customPublic?: Record<string, unknown> | undefined;
756
+ archetype?: string | undefined;
757
+ body?: string | undefined;
399
758
  ttl?: number | undefined;
400
759
  localeMapping?: Record<string, string> | undefined;
401
760
  uiBadgeText?: string | undefined;
761
+ variants?: {
762
+ unpublished?: {
763
+ baseUrl: string;
764
+ headers?: {
765
+ key: string;
766
+ value: string;
767
+ omitIfEmpty?: boolean | undefined;
768
+ }[] | undefined;
769
+ parameters?: {
770
+ key: string;
771
+ value: string;
772
+ omitIfEmpty?: boolean | undefined;
773
+ }[] | undefined;
774
+ variables?: Record<string, {
775
+ default: string;
776
+ type?: string | undefined;
777
+ displayName?: string | undefined;
778
+ helpText?: string | undefined;
779
+ order?: number | undefined;
780
+ source?: string | undefined;
781
+ }> | undefined;
782
+ custom?: Record<string, unknown> | undefined;
783
+ customPublic?: Record<string, unknown> | undefined;
784
+ } | undefined;
785
+ } | undefined;
786
+ dataSourceVariant?: "unpublished" | undefined;
402
787
  }, {
788
+ path: string;
403
789
  connectorType: string;
404
790
  url: string;
405
791
  method: "GET" | "POST" | "HEAD";
406
- archetype?: string | undefined;
407
792
  headers?: {
408
793
  key: string;
409
794
  value: string;
@@ -414,12 +799,39 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
414
799
  value: string;
415
800
  omitIfEmpty?: boolean | undefined;
416
801
  }[] | undefined;
417
- body?: string | undefined;
418
802
  custom?: Record<string, unknown> | undefined;
419
803
  customPublic?: Record<string, unknown> | undefined;
804
+ archetype?: string | undefined;
805
+ body?: string | undefined;
420
806
  ttl?: number | undefined;
421
807
  localeMapping?: Record<string, string> | undefined;
422
808
  uiBadgeText?: string | undefined;
809
+ variants?: {
810
+ unpublished?: {
811
+ baseUrl: string;
812
+ headers?: {
813
+ key: string;
814
+ value: string;
815
+ omitIfEmpty?: boolean | undefined;
816
+ }[] | undefined;
817
+ parameters?: {
818
+ key: string;
819
+ value: string;
820
+ omitIfEmpty?: boolean | undefined;
821
+ }[] | undefined;
822
+ variables?: Record<string, {
823
+ default: string;
824
+ type?: string | undefined;
825
+ displayName?: string | undefined;
826
+ helpText?: string | undefined;
827
+ order?: number | undefined;
828
+ source?: string | undefined;
829
+ }> | undefined;
830
+ custom?: Record<string, unknown> | undefined;
831
+ customPublic?: Record<string, unknown> | undefined;
832
+ } | undefined;
833
+ } | undefined;
834
+ dataSourceVariant?: "unpublished" | undefined;
423
835
  }>;
424
836
  type EdgehancerMergedDataType = z.infer<typeof edgehancerMergedDataTypeSchema>;
425
837
  type PreRequestEdgehancerDataResourceContext = {
@@ -435,6 +847,7 @@ type PreRequestEdgehancerContext = {
435
847
  * that the hook is registered for.
436
848
  */
437
849
  dataResources: readonly PreRequestEdgehancerDataResourceContext[];
850
+ dataSourceVariant?: DataSourceVariantsKeys;
438
851
  };
439
852
  declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
440
853
  errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -447,6 +860,7 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
447
860
  allowedOnComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
448
861
  badgeIconUrl: z.ZodOptional<z.ZodString>;
449
862
  connectorType: z.ZodString;
863
+ path: z.ZodString;
450
864
  url: z.ZodString;
451
865
  headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
452
866
  key: z.ZodString;
@@ -514,11 +928,159 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
514
928
  request?: string | undefined;
515
929
  }>>;
516
930
  uiBadgeText: z.ZodOptional<z.ZodString>;
517
- }, "displayName" | "id" | "allowedOnComponents" | "badgeIconUrl" | "variables" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
931
+ variants: z.ZodOptional<z.ZodObject<{
932
+ unpublished: z.ZodOptional<z.ZodOptional<z.ZodObject<{
933
+ baseUrl: z.ZodString;
934
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
935
+ key: z.ZodString;
936
+ value: z.ZodString;
937
+ omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
938
+ }, "strip", z.ZodTypeAny, {
939
+ key: string;
940
+ value: string;
941
+ omitIfEmpty?: boolean | undefined;
942
+ }, {
943
+ key: string;
944
+ value: string;
945
+ omitIfEmpty?: boolean | undefined;
946
+ }>, "many">>;
947
+ parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
948
+ key: z.ZodString;
949
+ value: z.ZodString;
950
+ omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
951
+ }, "strip", z.ZodTypeAny, {
952
+ key: string;
953
+ value: string;
954
+ omitIfEmpty?: boolean | undefined;
955
+ }, {
956
+ key: string;
957
+ value: string;
958
+ omitIfEmpty?: boolean | undefined;
959
+ }>, "many">>;
960
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
961
+ displayName: z.ZodOptional<z.ZodString>;
962
+ type: z.ZodOptional<z.ZodString>;
963
+ default: z.ZodString;
964
+ helpText: z.ZodOptional<z.ZodString>;
965
+ order: z.ZodOptional<z.ZodNumber>;
966
+ source: z.ZodOptional<z.ZodString>;
967
+ }, "strip", z.ZodTypeAny, {
968
+ default: string;
969
+ type?: string | undefined;
970
+ displayName?: string | undefined;
971
+ helpText?: string | undefined;
972
+ order?: number | undefined;
973
+ source?: string | undefined;
974
+ }, {
975
+ default: string;
976
+ type?: string | undefined;
977
+ displayName?: string | undefined;
978
+ helpText?: string | undefined;
979
+ order?: number | undefined;
980
+ source?: string | undefined;
981
+ }>>>;
982
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
983
+ customPublic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
984
+ }, "strip", z.ZodTypeAny, {
985
+ baseUrl: string;
986
+ headers?: {
987
+ key: string;
988
+ value: string;
989
+ omitIfEmpty?: boolean | undefined;
990
+ }[] | undefined;
991
+ parameters?: {
992
+ key: string;
993
+ value: string;
994
+ omitIfEmpty?: boolean | undefined;
995
+ }[] | undefined;
996
+ variables?: Record<string, {
997
+ default: string;
998
+ type?: string | undefined;
999
+ displayName?: string | undefined;
1000
+ helpText?: string | undefined;
1001
+ order?: number | undefined;
1002
+ source?: string | undefined;
1003
+ }> | undefined;
1004
+ custom?: Record<string, unknown> | undefined;
1005
+ customPublic?: Record<string, unknown> | undefined;
1006
+ }, {
1007
+ baseUrl: string;
1008
+ headers?: {
1009
+ key: string;
1010
+ value: string;
1011
+ omitIfEmpty?: boolean | undefined;
1012
+ }[] | undefined;
1013
+ parameters?: {
1014
+ key: string;
1015
+ value: string;
1016
+ omitIfEmpty?: boolean | undefined;
1017
+ }[] | undefined;
1018
+ variables?: Record<string, {
1019
+ default: string;
1020
+ type?: string | undefined;
1021
+ displayName?: string | undefined;
1022
+ helpText?: string | undefined;
1023
+ order?: number | undefined;
1024
+ source?: string | undefined;
1025
+ }> | undefined;
1026
+ custom?: Record<string, unknown> | undefined;
1027
+ customPublic?: Record<string, unknown> | undefined;
1028
+ }>>>;
1029
+ }, "strip", z.ZodTypeAny, {
1030
+ unpublished?: {
1031
+ baseUrl: string;
1032
+ headers?: {
1033
+ key: string;
1034
+ value: string;
1035
+ omitIfEmpty?: boolean | undefined;
1036
+ }[] | undefined;
1037
+ parameters?: {
1038
+ key: string;
1039
+ value: string;
1040
+ omitIfEmpty?: boolean | undefined;
1041
+ }[] | undefined;
1042
+ variables?: Record<string, {
1043
+ default: string;
1044
+ type?: string | undefined;
1045
+ displayName?: string | undefined;
1046
+ helpText?: string | undefined;
1047
+ order?: number | undefined;
1048
+ source?: string | undefined;
1049
+ }> | undefined;
1050
+ custom?: Record<string, unknown> | undefined;
1051
+ customPublic?: Record<string, unknown> | undefined;
1052
+ } | undefined;
1053
+ }, {
1054
+ unpublished?: {
1055
+ baseUrl: string;
1056
+ headers?: {
1057
+ key: string;
1058
+ value: string;
1059
+ omitIfEmpty?: boolean | undefined;
1060
+ }[] | undefined;
1061
+ parameters?: {
1062
+ key: string;
1063
+ value: string;
1064
+ omitIfEmpty?: boolean | undefined;
1065
+ }[] | undefined;
1066
+ variables?: Record<string, {
1067
+ default: string;
1068
+ type?: string | undefined;
1069
+ displayName?: string | undefined;
1070
+ helpText?: string | undefined;
1071
+ order?: number | undefined;
1072
+ source?: string | undefined;
1073
+ }> | undefined;
1074
+ custom?: Record<string, unknown> | undefined;
1075
+ customPublic?: Record<string, unknown> | undefined;
1076
+ } | undefined;
1077
+ }>>;
1078
+ dataSourceVariant: z.ZodOptional<z.ZodEnum<["unpublished"]>>;
1079
+ }, "displayName" | "variables" | "id" | "allowedOnComponents" | "badgeIconUrl" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
1080
+ path: string;
518
1081
  connectorType: string;
519
1082
  url: string;
520
1083
  method: "GET" | "POST" | "HEAD";
521
- archetype?: string | undefined;
522
1084
  headers?: {
523
1085
  key: string;
524
1086
  value: string;
@@ -529,17 +1091,44 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
529
1091
  value: string;
530
1092
  omitIfEmpty?: boolean | undefined;
531
1093
  }[] | undefined;
532
- body?: string | undefined;
533
1094
  custom?: Record<string, unknown> | undefined;
534
1095
  customPublic?: Record<string, unknown> | undefined;
1096
+ archetype?: string | undefined;
1097
+ body?: string | undefined;
535
1098
  ttl?: number | undefined;
536
1099
  localeMapping?: Record<string, string> | undefined;
537
1100
  uiBadgeText?: string | undefined;
1101
+ variants?: {
1102
+ unpublished?: {
1103
+ baseUrl: string;
1104
+ headers?: {
1105
+ key: string;
1106
+ value: string;
1107
+ omitIfEmpty?: boolean | undefined;
1108
+ }[] | undefined;
1109
+ parameters?: {
1110
+ key: string;
1111
+ value: string;
1112
+ omitIfEmpty?: boolean | undefined;
1113
+ }[] | undefined;
1114
+ variables?: Record<string, {
1115
+ default: string;
1116
+ type?: string | undefined;
1117
+ displayName?: string | undefined;
1118
+ helpText?: string | undefined;
1119
+ order?: number | undefined;
1120
+ source?: string | undefined;
1121
+ }> | undefined;
1122
+ custom?: Record<string, unknown> | undefined;
1123
+ customPublic?: Record<string, unknown> | undefined;
1124
+ } | undefined;
1125
+ } | undefined;
1126
+ dataSourceVariant?: "unpublished" | undefined;
538
1127
  }, {
1128
+ path: string;
539
1129
  connectorType: string;
540
1130
  url: string;
541
1131
  method: "GET" | "POST" | "HEAD";
542
- archetype?: string | undefined;
543
1132
  headers?: {
544
1133
  key: string;
545
1134
  value: string;
@@ -550,19 +1139,46 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
550
1139
  value: string;
551
1140
  omitIfEmpty?: boolean | undefined;
552
1141
  }[] | undefined;
553
- body?: string | undefined;
554
1142
  custom?: Record<string, unknown> | undefined;
555
1143
  customPublic?: Record<string, unknown> | undefined;
1144
+ archetype?: string | undefined;
1145
+ body?: string | undefined;
556
1146
  ttl?: number | undefined;
557
1147
  localeMapping?: Record<string, string> | undefined;
558
1148
  uiBadgeText?: string | undefined;
1149
+ variants?: {
1150
+ unpublished?: {
1151
+ baseUrl: string;
1152
+ headers?: {
1153
+ key: string;
1154
+ value: string;
1155
+ omitIfEmpty?: boolean | undefined;
1156
+ }[] | undefined;
1157
+ parameters?: {
1158
+ key: string;
1159
+ value: string;
1160
+ omitIfEmpty?: boolean | undefined;
1161
+ }[] | undefined;
1162
+ variables?: Record<string, {
1163
+ default: string;
1164
+ type?: string | undefined;
1165
+ displayName?: string | undefined;
1166
+ helpText?: string | undefined;
1167
+ order?: number | undefined;
1168
+ source?: string | undefined;
1169
+ }> | undefined;
1170
+ custom?: Record<string, unknown> | undefined;
1171
+ customPublic?: Record<string, unknown> | undefined;
1172
+ } | undefined;
1173
+ } | undefined;
1174
+ dataSourceVariant?: "unpublished" | undefined;
559
1175
  }>;
560
1176
  }, "strict", z.ZodTypeAny, {
561
1177
  dataResource: {
1178
+ path: string;
562
1179
  connectorType: string;
563
1180
  url: string;
564
1181
  method: "GET" | "POST" | "HEAD";
565
- archetype?: string | undefined;
566
1182
  headers?: {
567
1183
  key: string;
568
1184
  value: string;
@@ -573,22 +1189,49 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
573
1189
  value: string;
574
1190
  omitIfEmpty?: boolean | undefined;
575
1191
  }[] | undefined;
576
- body?: string | undefined;
577
1192
  custom?: Record<string, unknown> | undefined;
578
1193
  customPublic?: Record<string, unknown> | undefined;
1194
+ archetype?: string | undefined;
1195
+ body?: string | undefined;
579
1196
  ttl?: number | undefined;
580
1197
  localeMapping?: Record<string, string> | undefined;
581
1198
  uiBadgeText?: string | undefined;
1199
+ variants?: {
1200
+ unpublished?: {
1201
+ baseUrl: string;
1202
+ headers?: {
1203
+ key: string;
1204
+ value: string;
1205
+ omitIfEmpty?: boolean | undefined;
1206
+ }[] | undefined;
1207
+ parameters?: {
1208
+ key: string;
1209
+ value: string;
1210
+ omitIfEmpty?: boolean | undefined;
1211
+ }[] | undefined;
1212
+ variables?: Record<string, {
1213
+ default: string;
1214
+ type?: string | undefined;
1215
+ displayName?: string | undefined;
1216
+ helpText?: string | undefined;
1217
+ order?: number | undefined;
1218
+ source?: string | undefined;
1219
+ }> | undefined;
1220
+ custom?: Record<string, unknown> | undefined;
1221
+ customPublic?: Record<string, unknown> | undefined;
1222
+ } | undefined;
1223
+ } | undefined;
1224
+ dataSourceVariant?: "unpublished" | undefined;
582
1225
  };
583
1226
  errors?: string[] | undefined;
584
1227
  warnings?: string[] | undefined;
585
1228
  infos?: string[] | undefined;
586
1229
  }, {
587
1230
  dataResource: {
1231
+ path: string;
588
1232
  connectorType: string;
589
1233
  url: string;
590
1234
  method: "GET" | "POST" | "HEAD";
591
- archetype?: string | undefined;
592
1235
  headers?: {
593
1236
  key: string;
594
1237
  value: string;
@@ -599,12 +1242,39 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
599
1242
  value: string;
600
1243
  omitIfEmpty?: boolean | undefined;
601
1244
  }[] | undefined;
602
- body?: string | undefined;
603
1245
  custom?: Record<string, unknown> | undefined;
604
1246
  customPublic?: Record<string, unknown> | undefined;
1247
+ archetype?: string | undefined;
1248
+ body?: string | undefined;
605
1249
  ttl?: number | undefined;
606
1250
  localeMapping?: Record<string, string> | undefined;
607
1251
  uiBadgeText?: string | undefined;
1252
+ variants?: {
1253
+ unpublished?: {
1254
+ baseUrl: string;
1255
+ headers?: {
1256
+ key: string;
1257
+ value: string;
1258
+ omitIfEmpty?: boolean | undefined;
1259
+ }[] | undefined;
1260
+ parameters?: {
1261
+ key: string;
1262
+ value: string;
1263
+ omitIfEmpty?: boolean | undefined;
1264
+ }[] | undefined;
1265
+ variables?: Record<string, {
1266
+ default: string;
1267
+ type?: string | undefined;
1268
+ displayName?: string | undefined;
1269
+ helpText?: string | undefined;
1270
+ order?: number | undefined;
1271
+ source?: string | undefined;
1272
+ }> | undefined;
1273
+ custom?: Record<string, unknown> | undefined;
1274
+ customPublic?: Record<string, unknown> | undefined;
1275
+ } | undefined;
1276
+ } | undefined;
1277
+ dataSourceVariant?: "unpublished" | undefined;
608
1278
  };
609
1279
  errors?: string[] | undefined;
610
1280
  warnings?: string[] | undefined;
@@ -622,6 +1292,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
622
1292
  allowedOnComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
623
1293
  badgeIconUrl: z.ZodOptional<z.ZodString>;
624
1294
  connectorType: z.ZodString;
1295
+ path: z.ZodString;
625
1296
  url: z.ZodString;
626
1297
  headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
627
1298
  key: z.ZodString;
@@ -689,11 +1360,159 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
689
1360
  request?: string | undefined;
690
1361
  }>>;
691
1362
  uiBadgeText: z.ZodOptional<z.ZodString>;
692
- }, "displayName" | "id" | "allowedOnComponents" | "badgeIconUrl" | "variables" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
1363
+ variants: z.ZodOptional<z.ZodObject<{
1364
+ unpublished: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1365
+ baseUrl: z.ZodString;
1366
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1367
+ key: z.ZodString;
1368
+ value: z.ZodString;
1369
+ omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
1370
+ }, "strip", z.ZodTypeAny, {
1371
+ key: string;
1372
+ value: string;
1373
+ omitIfEmpty?: boolean | undefined;
1374
+ }, {
1375
+ key: string;
1376
+ value: string;
1377
+ omitIfEmpty?: boolean | undefined;
1378
+ }>, "many">>;
1379
+ parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
1380
+ key: z.ZodString;
1381
+ value: z.ZodString;
1382
+ omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
1383
+ }, "strip", z.ZodTypeAny, {
1384
+ key: string;
1385
+ value: string;
1386
+ omitIfEmpty?: boolean | undefined;
1387
+ }, {
1388
+ key: string;
1389
+ value: string;
1390
+ omitIfEmpty?: boolean | undefined;
1391
+ }>, "many">>;
1392
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1393
+ displayName: z.ZodOptional<z.ZodString>;
1394
+ type: z.ZodOptional<z.ZodString>;
1395
+ default: z.ZodString;
1396
+ helpText: z.ZodOptional<z.ZodString>;
1397
+ order: z.ZodOptional<z.ZodNumber>;
1398
+ source: z.ZodOptional<z.ZodString>;
1399
+ }, "strip", z.ZodTypeAny, {
1400
+ default: string;
1401
+ type?: string | undefined;
1402
+ displayName?: string | undefined;
1403
+ helpText?: string | undefined;
1404
+ order?: number | undefined;
1405
+ source?: string | undefined;
1406
+ }, {
1407
+ default: string;
1408
+ type?: string | undefined;
1409
+ displayName?: string | undefined;
1410
+ helpText?: string | undefined;
1411
+ order?: number | undefined;
1412
+ source?: string | undefined;
1413
+ }>>>;
1414
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1415
+ customPublic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1416
+ }, "strip", z.ZodTypeAny, {
1417
+ baseUrl: string;
1418
+ headers?: {
1419
+ key: string;
1420
+ value: string;
1421
+ omitIfEmpty?: boolean | undefined;
1422
+ }[] | undefined;
1423
+ parameters?: {
1424
+ key: string;
1425
+ value: string;
1426
+ omitIfEmpty?: boolean | undefined;
1427
+ }[] | undefined;
1428
+ variables?: Record<string, {
1429
+ default: string;
1430
+ type?: string | undefined;
1431
+ displayName?: string | undefined;
1432
+ helpText?: string | undefined;
1433
+ order?: number | undefined;
1434
+ source?: string | undefined;
1435
+ }> | undefined;
1436
+ custom?: Record<string, unknown> | undefined;
1437
+ customPublic?: Record<string, unknown> | undefined;
1438
+ }, {
1439
+ baseUrl: string;
1440
+ headers?: {
1441
+ key: string;
1442
+ value: string;
1443
+ omitIfEmpty?: boolean | undefined;
1444
+ }[] | undefined;
1445
+ parameters?: {
1446
+ key: string;
1447
+ value: string;
1448
+ omitIfEmpty?: boolean | undefined;
1449
+ }[] | undefined;
1450
+ variables?: Record<string, {
1451
+ default: string;
1452
+ type?: string | undefined;
1453
+ displayName?: string | undefined;
1454
+ helpText?: string | undefined;
1455
+ order?: number | undefined;
1456
+ source?: string | undefined;
1457
+ }> | undefined;
1458
+ custom?: Record<string, unknown> | undefined;
1459
+ customPublic?: Record<string, unknown> | undefined;
1460
+ }>>>;
1461
+ }, "strip", z.ZodTypeAny, {
1462
+ unpublished?: {
1463
+ baseUrl: string;
1464
+ headers?: {
1465
+ key: string;
1466
+ value: string;
1467
+ omitIfEmpty?: boolean | undefined;
1468
+ }[] | undefined;
1469
+ parameters?: {
1470
+ key: string;
1471
+ value: string;
1472
+ omitIfEmpty?: boolean | undefined;
1473
+ }[] | undefined;
1474
+ variables?: Record<string, {
1475
+ default: string;
1476
+ type?: string | undefined;
1477
+ displayName?: string | undefined;
1478
+ helpText?: string | undefined;
1479
+ order?: number | undefined;
1480
+ source?: string | undefined;
1481
+ }> | undefined;
1482
+ custom?: Record<string, unknown> | undefined;
1483
+ customPublic?: Record<string, unknown> | undefined;
1484
+ } | undefined;
1485
+ }, {
1486
+ unpublished?: {
1487
+ baseUrl: string;
1488
+ headers?: {
1489
+ key: string;
1490
+ value: string;
1491
+ omitIfEmpty?: boolean | undefined;
1492
+ }[] | undefined;
1493
+ parameters?: {
1494
+ key: string;
1495
+ value: string;
1496
+ omitIfEmpty?: boolean | undefined;
1497
+ }[] | undefined;
1498
+ variables?: Record<string, {
1499
+ default: string;
1500
+ type?: string | undefined;
1501
+ displayName?: string | undefined;
1502
+ helpText?: string | undefined;
1503
+ order?: number | undefined;
1504
+ source?: string | undefined;
1505
+ }> | undefined;
1506
+ custom?: Record<string, unknown> | undefined;
1507
+ customPublic?: Record<string, unknown> | undefined;
1508
+ } | undefined;
1509
+ }>>;
1510
+ dataSourceVariant: z.ZodOptional<z.ZodEnum<["unpublished"]>>;
1511
+ }, "displayName" | "variables" | "id" | "allowedOnComponents" | "badgeIconUrl" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
1512
+ path: string;
693
1513
  connectorType: string;
694
1514
  url: string;
695
1515
  method: "GET" | "POST" | "HEAD";
696
- archetype?: string | undefined;
697
1516
  headers?: {
698
1517
  key: string;
699
1518
  value: string;
@@ -704,17 +1523,44 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
704
1523
  value: string;
705
1524
  omitIfEmpty?: boolean | undefined;
706
1525
  }[] | undefined;
707
- body?: string | undefined;
708
1526
  custom?: Record<string, unknown> | undefined;
709
1527
  customPublic?: Record<string, unknown> | undefined;
1528
+ archetype?: string | undefined;
1529
+ body?: string | undefined;
710
1530
  ttl?: number | undefined;
711
1531
  localeMapping?: Record<string, string> | undefined;
712
1532
  uiBadgeText?: string | undefined;
1533
+ variants?: {
1534
+ unpublished?: {
1535
+ baseUrl: string;
1536
+ headers?: {
1537
+ key: string;
1538
+ value: string;
1539
+ omitIfEmpty?: boolean | undefined;
1540
+ }[] | undefined;
1541
+ parameters?: {
1542
+ key: string;
1543
+ value: string;
1544
+ omitIfEmpty?: boolean | undefined;
1545
+ }[] | undefined;
1546
+ variables?: Record<string, {
1547
+ default: string;
1548
+ type?: string | undefined;
1549
+ displayName?: string | undefined;
1550
+ helpText?: string | undefined;
1551
+ order?: number | undefined;
1552
+ source?: string | undefined;
1553
+ }> | undefined;
1554
+ custom?: Record<string, unknown> | undefined;
1555
+ customPublic?: Record<string, unknown> | undefined;
1556
+ } | undefined;
1557
+ } | undefined;
1558
+ dataSourceVariant?: "unpublished" | undefined;
713
1559
  }, {
1560
+ path: string;
714
1561
  connectorType: string;
715
1562
  url: string;
716
1563
  method: "GET" | "POST" | "HEAD";
717
- archetype?: string | undefined;
718
1564
  headers?: {
719
1565
  key: string;
720
1566
  value: string;
@@ -725,19 +1571,46 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
725
1571
  value: string;
726
1572
  omitIfEmpty?: boolean | undefined;
727
1573
  }[] | undefined;
728
- body?: string | undefined;
729
1574
  custom?: Record<string, unknown> | undefined;
730
1575
  customPublic?: Record<string, unknown> | undefined;
1576
+ archetype?: string | undefined;
1577
+ body?: string | undefined;
731
1578
  ttl?: number | undefined;
732
1579
  localeMapping?: Record<string, string> | undefined;
733
1580
  uiBadgeText?: string | undefined;
1581
+ variants?: {
1582
+ unpublished?: {
1583
+ baseUrl: string;
1584
+ headers?: {
1585
+ key: string;
1586
+ value: string;
1587
+ omitIfEmpty?: boolean | undefined;
1588
+ }[] | undefined;
1589
+ parameters?: {
1590
+ key: string;
1591
+ value: string;
1592
+ omitIfEmpty?: boolean | undefined;
1593
+ }[] | undefined;
1594
+ variables?: Record<string, {
1595
+ default: string;
1596
+ type?: string | undefined;
1597
+ displayName?: string | undefined;
1598
+ helpText?: string | undefined;
1599
+ order?: number | undefined;
1600
+ source?: string | undefined;
1601
+ }> | undefined;
1602
+ custom?: Record<string, unknown> | undefined;
1603
+ customPublic?: Record<string, unknown> | undefined;
1604
+ } | undefined;
1605
+ } | undefined;
1606
+ dataSourceVariant?: "unpublished" | undefined;
734
1607
  }>;
735
1608
  }, "strict", z.ZodTypeAny, {
736
1609
  dataResource: {
1610
+ path: string;
737
1611
  connectorType: string;
738
1612
  url: string;
739
1613
  method: "GET" | "POST" | "HEAD";
740
- archetype?: string | undefined;
741
1614
  headers?: {
742
1615
  key: string;
743
1616
  value: string;
@@ -748,22 +1621,49 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
748
1621
  value: string;
749
1622
  omitIfEmpty?: boolean | undefined;
750
1623
  }[] | undefined;
751
- body?: string | undefined;
752
1624
  custom?: Record<string, unknown> | undefined;
753
1625
  customPublic?: Record<string, unknown> | undefined;
1626
+ archetype?: string | undefined;
1627
+ body?: string | undefined;
754
1628
  ttl?: number | undefined;
755
1629
  localeMapping?: Record<string, string> | undefined;
756
1630
  uiBadgeText?: string | undefined;
1631
+ variants?: {
1632
+ unpublished?: {
1633
+ baseUrl: string;
1634
+ headers?: {
1635
+ key: string;
1636
+ value: string;
1637
+ omitIfEmpty?: boolean | undefined;
1638
+ }[] | undefined;
1639
+ parameters?: {
1640
+ key: string;
1641
+ value: string;
1642
+ omitIfEmpty?: boolean | undefined;
1643
+ }[] | undefined;
1644
+ variables?: Record<string, {
1645
+ default: string;
1646
+ type?: string | undefined;
1647
+ displayName?: string | undefined;
1648
+ helpText?: string | undefined;
1649
+ order?: number | undefined;
1650
+ source?: string | undefined;
1651
+ }> | undefined;
1652
+ custom?: Record<string, unknown> | undefined;
1653
+ customPublic?: Record<string, unknown> | undefined;
1654
+ } | undefined;
1655
+ } | undefined;
1656
+ dataSourceVariant?: "unpublished" | undefined;
757
1657
  };
758
1658
  errors?: string[] | undefined;
759
1659
  warnings?: string[] | undefined;
760
1660
  infos?: string[] | undefined;
761
1661
  }, {
762
1662
  dataResource: {
1663
+ path: string;
763
1664
  connectorType: string;
764
1665
  url: string;
765
1666
  method: "GET" | "POST" | "HEAD";
766
- archetype?: string | undefined;
767
1667
  headers?: {
768
1668
  key: string;
769
1669
  value: string;
@@ -774,12 +1674,39 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
774
1674
  value: string;
775
1675
  omitIfEmpty?: boolean | undefined;
776
1676
  }[] | undefined;
777
- body?: string | undefined;
778
1677
  custom?: Record<string, unknown> | undefined;
779
1678
  customPublic?: Record<string, unknown> | undefined;
1679
+ archetype?: string | undefined;
1680
+ body?: string | undefined;
780
1681
  ttl?: number | undefined;
781
1682
  localeMapping?: Record<string, string> | undefined;
782
1683
  uiBadgeText?: string | undefined;
1684
+ variants?: {
1685
+ unpublished?: {
1686
+ baseUrl: string;
1687
+ headers?: {
1688
+ key: string;
1689
+ value: string;
1690
+ omitIfEmpty?: boolean | undefined;
1691
+ }[] | undefined;
1692
+ parameters?: {
1693
+ key: string;
1694
+ value: string;
1695
+ omitIfEmpty?: boolean | undefined;
1696
+ }[] | undefined;
1697
+ variables?: Record<string, {
1698
+ default: string;
1699
+ type?: string | undefined;
1700
+ displayName?: string | undefined;
1701
+ helpText?: string | undefined;
1702
+ order?: number | undefined;
1703
+ source?: string | undefined;
1704
+ }> | undefined;
1705
+ custom?: Record<string, unknown> | undefined;
1706
+ customPublic?: Record<string, unknown> | undefined;
1707
+ } | undefined;
1708
+ } | undefined;
1709
+ dataSourceVariant?: "unpublished" | undefined;
783
1710
  };
784
1711
  errors?: string[] | undefined;
785
1712
  warnings?: string[] | undefined;
@@ -788,10 +1715,10 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
788
1715
  }, "strict", z.ZodTypeAny, {
789
1716
  dataResources: {
790
1717
  dataResource: {
1718
+ path: string;
791
1719
  connectorType: string;
792
1720
  url: string;
793
1721
  method: "GET" | "POST" | "HEAD";
794
- archetype?: string | undefined;
795
1722
  headers?: {
796
1723
  key: string;
797
1724
  value: string;
@@ -802,12 +1729,39 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
802
1729
  value: string;
803
1730
  omitIfEmpty?: boolean | undefined;
804
1731
  }[] | undefined;
805
- body?: string | undefined;
806
1732
  custom?: Record<string, unknown> | undefined;
807
1733
  customPublic?: Record<string, unknown> | undefined;
1734
+ archetype?: string | undefined;
1735
+ body?: string | undefined;
808
1736
  ttl?: number | undefined;
809
1737
  localeMapping?: Record<string, string> | undefined;
810
1738
  uiBadgeText?: string | undefined;
1739
+ variants?: {
1740
+ unpublished?: {
1741
+ baseUrl: string;
1742
+ headers?: {
1743
+ key: string;
1744
+ value: string;
1745
+ omitIfEmpty?: boolean | undefined;
1746
+ }[] | undefined;
1747
+ parameters?: {
1748
+ key: string;
1749
+ value: string;
1750
+ omitIfEmpty?: boolean | undefined;
1751
+ }[] | undefined;
1752
+ variables?: Record<string, {
1753
+ default: string;
1754
+ type?: string | undefined;
1755
+ displayName?: string | undefined;
1756
+ helpText?: string | undefined;
1757
+ order?: number | undefined;
1758
+ source?: string | undefined;
1759
+ }> | undefined;
1760
+ custom?: Record<string, unknown> | undefined;
1761
+ customPublic?: Record<string, unknown> | undefined;
1762
+ } | undefined;
1763
+ } | undefined;
1764
+ dataSourceVariant?: "unpublished" | undefined;
811
1765
  };
812
1766
  errors?: string[] | undefined;
813
1767
  warnings?: string[] | undefined;
@@ -816,10 +1770,10 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
816
1770
  }, {
817
1771
  dataResources: {
818
1772
  dataResource: {
1773
+ path: string;
819
1774
  connectorType: string;
820
1775
  url: string;
821
1776
  method: "GET" | "POST" | "HEAD";
822
- archetype?: string | undefined;
823
1777
  headers?: {
824
1778
  key: string;
825
1779
  value: string;
@@ -830,12 +1784,39 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
830
1784
  value: string;
831
1785
  omitIfEmpty?: boolean | undefined;
832
1786
  }[] | undefined;
833
- body?: string | undefined;
834
1787
  custom?: Record<string, unknown> | undefined;
835
1788
  customPublic?: Record<string, unknown> | undefined;
1789
+ archetype?: string | undefined;
1790
+ body?: string | undefined;
836
1791
  ttl?: number | undefined;
837
1792
  localeMapping?: Record<string, string> | undefined;
838
1793
  uiBadgeText?: string | undefined;
1794
+ variants?: {
1795
+ unpublished?: {
1796
+ baseUrl: string;
1797
+ headers?: {
1798
+ key: string;
1799
+ value: string;
1800
+ omitIfEmpty?: boolean | undefined;
1801
+ }[] | undefined;
1802
+ parameters?: {
1803
+ key: string;
1804
+ value: string;
1805
+ omitIfEmpty?: boolean | undefined;
1806
+ }[] | undefined;
1807
+ variables?: Record<string, {
1808
+ default: string;
1809
+ type?: string | undefined;
1810
+ displayName?: string | undefined;
1811
+ helpText?: string | undefined;
1812
+ order?: number | undefined;
1813
+ source?: string | undefined;
1814
+ }> | undefined;
1815
+ custom?: Record<string, unknown> | undefined;
1816
+ customPublic?: Record<string, unknown> | undefined;
1817
+ } | undefined;
1818
+ } | undefined;
1819
+ dataSourceVariant?: "unpublished" | undefined;
839
1820
  };
840
1821
  errors?: string[] | undefined;
841
1822
  warnings?: string[] | undefined;
@@ -855,4 +1836,4 @@ declare function getDataResourceQueryString({ parameters, url }: EdgehancerMerge
855
1836
  /** Gets the HTTP headers for a data resource */
856
1837
  declare function getDataResourceHeaders({ headers }: EdgehancerMergedDataType): Headers;
857
1838
 
858
- export { type ConvertBatchResultsToEdgehancerResultOptions, type CustomEdgehancerDefinition, type DataResource, type DataResourceFetchContext, 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 };
1839
+ export { COLLECTION_DEFAULT_LIMIT, COLLECTION_DEFAULT_OFFSET, COLLECTION_MAX_LIMIT, type ConvertBatchResultsToEdgehancerResultOptions, type CustomEdgehancerDefinition, type DataResource, type DataResourceFetchContext, 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 };