@uniformdev/mesh-edgehancer-sdk 20.63.0 → 20.63.1-alpha.18

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
@@ -1,7 +1,5 @@
1
- import * as _uniformdev_canvas from '@uniformdev/canvas';
1
+ import * as z from 'zod';
2
2
  import { DataType, DataSource, DataSourceVariantsKeys, DataSourceVariantData } from '@uniformdev/canvas';
3
- import * as z from 'zod/v3';
4
- import * as zod from 'zod';
5
3
 
6
4
  /**
7
5
  * The context we are fetching the data resource in:
@@ -14,46 +12,27 @@ import * as zod from 'zod';
14
12
  * NOTE: this is subject to additive change
15
13
  */
16
14
  type DataResourceFetchContext = 'testing' | 'editing' | 'normal';
17
- declare const resolvingIssueSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
15
+ declare const resolvingIssueSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
18
16
  message: z.ZodString;
19
- subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
17
+ subType: z.ZodOptional<z.ZodEnum<{
18
+ unpublishedData: "unpublishedData";
19
+ configuration: "configuration";
20
+ }>>;
20
21
  issueReference: z.ZodOptional<z.ZodString>;
21
22
  deepLink: z.ZodOptional<z.ZodString>;
22
23
  statusCode: z.ZodOptional<z.ZodNumber>;
23
- }, "strip", z.ZodTypeAny, {
24
- message: string;
25
- subType?: "unpublishedData" | "configuration" | undefined;
26
- issueReference?: string | undefined;
27
- deepLink?: string | undefined;
28
- statusCode?: number | undefined;
29
- }, {
30
- message: string;
31
- subType?: "unpublishedData" | "configuration" | undefined;
32
- issueReference?: string | undefined;
33
- deepLink?: string | undefined;
34
- statusCode?: number | undefined;
35
- }>]>;
24
+ }, z.core.$strip>]>;
36
25
  declare const customEdgehancerDefinitionSchema: z.ZodObject<{
37
26
  preRequest: z.ZodOptional<z.ZodString>;
38
27
  request: z.ZodOptional<z.ZodString>;
39
28
  createAIDataResourceEdit: z.ZodOptional<z.ZodString>;
40
29
  afterAIDataResourceEdit: z.ZodOptional<z.ZodString>;
41
- }, "strip", z.ZodTypeAny, {
42
- preRequest?: string | undefined;
43
- request?: string | undefined;
44
- createAIDataResourceEdit?: string | undefined;
45
- afterAIDataResourceEdit?: string | undefined;
46
- }, {
47
- preRequest?: string | undefined;
48
- request?: string | undefined;
49
- createAIDataResourceEdit?: string | undefined;
50
- afterAIDataResourceEdit?: string | undefined;
51
- }>;
30
+ }, z.core.$strip>;
52
31
  declare const mergedDataTypeSchema: z.ZodObject<{
53
32
  id: z.ZodString;
54
33
  displayName: z.ZodString;
55
34
  archetype: z.ZodOptional<z.ZodString>;
56
- allowedOnComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
35
+ allowedOnComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
57
36
  badgeIconUrl: z.ZodOptional<z.ZodString>;
58
37
  connectorType: z.ZodString;
59
38
  url: z.ZodString;
@@ -61,30 +40,18 @@ declare const mergedDataTypeSchema: z.ZodObject<{
61
40
  key: z.ZodString;
62
41
  value: z.ZodString;
63
42
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
64
- }, "strip", z.ZodTypeAny, {
65
- value: string;
66
- key: string;
67
- omitIfEmpty?: boolean | undefined;
68
- }, {
69
- value: string;
70
- key: string;
71
- omitIfEmpty?: boolean | undefined;
72
- }>, "many">>;
43
+ }, z.core.$strip>>>;
73
44
  parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
74
45
  key: z.ZodString;
75
46
  value: z.ZodString;
76
47
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
77
- }, "strip", z.ZodTypeAny, {
78
- value: string;
79
- key: string;
80
- omitIfEmpty?: boolean | undefined;
81
- }, {
82
- value: string;
83
- key: string;
84
- omitIfEmpty?: boolean | undefined;
85
- }>, "many">>;
48
+ }, z.core.$strip>>>;
86
49
  body: z.ZodOptional<z.ZodString>;
87
- method: z.ZodEnum<["GET", "POST", "HEAD"]>;
50
+ method: z.ZodEnum<{
51
+ GET: "GET";
52
+ POST: "POST";
53
+ HEAD: "HEAD";
54
+ }>;
88
55
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
89
56
  displayName: z.ZodOptional<z.ZodString>;
90
57
  type: z.ZodOptional<z.ZodString>;
@@ -92,21 +59,7 @@ declare const mergedDataTypeSchema: z.ZodObject<{
92
59
  helpText: z.ZodOptional<z.ZodString>;
93
60
  order: z.ZodOptional<z.ZodNumber>;
94
61
  source: z.ZodOptional<z.ZodString>;
95
- }, "strip", z.ZodTypeAny, {
96
- default: string;
97
- type?: string | undefined;
98
- displayName?: string | undefined;
99
- helpText?: string | undefined;
100
- order?: number | undefined;
101
- source?: string | undefined;
102
- }, {
103
- default: string;
104
- type?: string | undefined;
105
- displayName?: string | undefined;
106
- helpText?: string | undefined;
107
- order?: number | undefined;
108
- source?: string | undefined;
109
- }>>>;
62
+ }, z.core.$strip>>>;
110
63
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
111
64
  customPublic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
112
65
  ttl: z.ZodOptional<z.ZodNumber>;
@@ -117,17 +70,7 @@ declare const mergedDataTypeSchema: z.ZodObject<{
117
70
  request: z.ZodOptional<z.ZodString>;
118
71
  createAIDataResourceEdit: z.ZodOptional<z.ZodString>;
119
72
  afterAIDataResourceEdit: z.ZodOptional<z.ZodString>;
120
- }, "strip", z.ZodTypeAny, {
121
- preRequest?: string | undefined;
122
- request?: string | undefined;
123
- createAIDataResourceEdit?: string | undefined;
124
- afterAIDataResourceEdit?: string | undefined;
125
- }, {
126
- preRequest?: string | undefined;
127
- request?: string | undefined;
128
- createAIDataResourceEdit?: string | undefined;
129
- afterAIDataResourceEdit?: string | undefined;
130
- }>>;
73
+ }, z.core.$strip>>;
131
74
  uiBadgeText: z.ZodOptional<z.ZodString>;
132
75
  variants: z.ZodOptional<z.ZodObject<{
133
76
  unpublished: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
@@ -135,28 +78,12 @@ declare const mergedDataTypeSchema: z.ZodObject<{
135
78
  key: z.ZodString;
136
79
  value: z.ZodString;
137
80
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
138
- }, "strip", z.ZodTypeAny, {
139
- value: string;
140
- key: string;
141
- omitIfEmpty?: boolean | undefined;
142
- }, {
143
- value: string;
144
- key: string;
145
- omitIfEmpty?: boolean | undefined;
146
- }>, "many">>;
81
+ }, z.core.$strip>>>;
147
82
  parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
148
83
  key: z.ZodString;
149
84
  value: z.ZodString;
150
85
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
151
- }, "strip", z.ZodTypeAny, {
152
- value: string;
153
- key: string;
154
- omitIfEmpty?: boolean | undefined;
155
- }, {
156
- value: string;
157
- key: string;
158
- omitIfEmpty?: boolean | undefined;
159
- }>, "many">>;
86
+ }, z.core.$strip>>>;
160
87
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
161
88
  displayName: z.ZodOptional<z.ZodString>;
162
89
  type: z.ZodOptional<z.ZodString>;
@@ -164,245 +91,13 @@ declare const mergedDataTypeSchema: z.ZodObject<{
164
91
  helpText: z.ZodOptional<z.ZodString>;
165
92
  order: z.ZodOptional<z.ZodNumber>;
166
93
  source: z.ZodOptional<z.ZodString>;
167
- }, "strip", z.ZodTypeAny, {
168
- default: string;
169
- type?: string | undefined;
170
- displayName?: string | undefined;
171
- helpText?: string | undefined;
172
- order?: number | undefined;
173
- source?: string | undefined;
174
- }, {
175
- default: string;
176
- type?: string | undefined;
177
- displayName?: string | undefined;
178
- helpText?: string | undefined;
179
- order?: number | undefined;
180
- source?: string | undefined;
181
- }>>>;
182
- }, "strip", z.ZodTypeAny, {
183
- headers?: {
184
- value: string;
185
- key: string;
186
- omitIfEmpty?: boolean | undefined;
187
- }[] | undefined;
188
- parameters?: {
189
- value: string;
190
- key: string;
191
- omitIfEmpty?: boolean | undefined;
192
- }[] | undefined;
193
- variables?: Record<string, {
194
- default: string;
195
- type?: string | undefined;
196
- displayName?: string | undefined;
197
- helpText?: string | undefined;
198
- order?: number | undefined;
199
- source?: string | undefined;
200
- }> | undefined;
201
- }, {
202
- headers?: {
203
- value: string;
204
- key: string;
205
- omitIfEmpty?: boolean | undefined;
206
- }[] | undefined;
207
- parameters?: {
208
- value: string;
209
- key: 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
- }>, z.ZodObject<{
94
+ }, z.core.$strip>>>;
95
+ }, z.core.$strip>, z.ZodObject<{
221
96
  url: z.ZodString;
222
- }, "strip", z.ZodTypeAny, {
223
- url: string;
224
- }, {
225
- url: string;
226
- }>>>;
227
- }, "strip", z.ZodTypeAny, {
228
- unpublished?: ({
229
- headers?: {
230
- value: string;
231
- key: string;
232
- omitIfEmpty?: boolean | undefined;
233
- }[] | undefined;
234
- parameters?: {
235
- value: string;
236
- key: string;
237
- omitIfEmpty?: boolean | undefined;
238
- }[] | undefined;
239
- variables?: Record<string, {
240
- default: string;
241
- type?: string | undefined;
242
- displayName?: string | undefined;
243
- helpText?: string | undefined;
244
- order?: number | undefined;
245
- source?: string | undefined;
246
- }> | undefined;
247
- } & {
248
- url: string;
249
- }) | undefined;
250
- }, {
251
- unpublished?: ({
252
- headers?: {
253
- value: string;
254
- key: string;
255
- omitIfEmpty?: boolean | undefined;
256
- }[] | undefined;
257
- parameters?: {
258
- value: string;
259
- key: string;
260
- omitIfEmpty?: boolean | undefined;
261
- }[] | undefined;
262
- variables?: Record<string, {
263
- default: string;
264
- type?: string | undefined;
265
- displayName?: string | undefined;
266
- helpText?: string | undefined;
267
- order?: number | undefined;
268
- source?: string | undefined;
269
- }> | undefined;
270
- } & {
271
- url: string;
272
- }) | undefined;
273
- }>>;
97
+ }, z.core.$strip>>>;
98
+ }, z.core.$strip>>;
274
99
  enableUnpublishedMode: z.ZodOptional<z.ZodBoolean>;
275
- }, "strip", z.ZodTypeAny, {
276
- id: string;
277
- displayName: string;
278
- url: string;
279
- connectorType: string;
280
- method: "GET" | "POST" | "HEAD";
281
- custom?: Record<string, unknown> | undefined;
282
- headers?: {
283
- value: string;
284
- key: string;
285
- omitIfEmpty?: boolean | undefined;
286
- }[] | undefined;
287
- parameters?: {
288
- value: string;
289
- key: string;
290
- omitIfEmpty?: boolean | undefined;
291
- }[] | undefined;
292
- variables?: Record<string, {
293
- default: string;
294
- type?: string | undefined;
295
- displayName?: string | undefined;
296
- helpText?: string | undefined;
297
- order?: number | undefined;
298
- source?: string | undefined;
299
- }> | undefined;
300
- archetype?: string | undefined;
301
- allowedOnComponents?: string[] | undefined;
302
- badgeIconUrl?: string | undefined;
303
- body?: string | undefined;
304
- customPublic?: Record<string, unknown> | undefined;
305
- ttl?: number | undefined;
306
- purgeKey?: string | undefined;
307
- localeMapping?: Record<string, string> | undefined;
308
- edgehancer?: {
309
- preRequest?: string | undefined;
310
- request?: string | undefined;
311
- createAIDataResourceEdit?: string | undefined;
312
- afterAIDataResourceEdit?: string | undefined;
313
- } | undefined;
314
- uiBadgeText?: string | undefined;
315
- variants?: {
316
- unpublished?: ({
317
- headers?: {
318
- value: string;
319
- key: string;
320
- omitIfEmpty?: boolean | undefined;
321
- }[] | undefined;
322
- parameters?: {
323
- value: string;
324
- key: string;
325
- omitIfEmpty?: boolean | undefined;
326
- }[] | undefined;
327
- variables?: Record<string, {
328
- default: string;
329
- type?: string | undefined;
330
- displayName?: string | undefined;
331
- helpText?: string | undefined;
332
- order?: number | undefined;
333
- source?: string | undefined;
334
- }> | undefined;
335
- } & {
336
- url: string;
337
- }) | undefined;
338
- } | undefined;
339
- enableUnpublishedMode?: boolean | undefined;
340
- }, {
341
- id: string;
342
- displayName: string;
343
- url: string;
344
- connectorType: string;
345
- method: "GET" | "POST" | "HEAD";
346
- custom?: Record<string, unknown> | undefined;
347
- headers?: {
348
- value: string;
349
- key: string;
350
- omitIfEmpty?: boolean | undefined;
351
- }[] | undefined;
352
- parameters?: {
353
- value: string;
354
- key: string;
355
- omitIfEmpty?: boolean | undefined;
356
- }[] | undefined;
357
- variables?: Record<string, {
358
- default: string;
359
- type?: string | undefined;
360
- displayName?: string | undefined;
361
- helpText?: string | undefined;
362
- order?: number | undefined;
363
- source?: string | undefined;
364
- }> | undefined;
365
- archetype?: string | undefined;
366
- allowedOnComponents?: string[] | undefined;
367
- badgeIconUrl?: string | undefined;
368
- body?: string | undefined;
369
- customPublic?: Record<string, unknown> | undefined;
370
- ttl?: number | undefined;
371
- purgeKey?: string | undefined;
372
- localeMapping?: Record<string, string> | undefined;
373
- edgehancer?: {
374
- preRequest?: string | undefined;
375
- request?: string | undefined;
376
- createAIDataResourceEdit?: string | undefined;
377
- afterAIDataResourceEdit?: string | undefined;
378
- } | undefined;
379
- uiBadgeText?: string | undefined;
380
- variants?: {
381
- unpublished?: ({
382
- headers?: {
383
- value: string;
384
- key: string;
385
- omitIfEmpty?: boolean | undefined;
386
- }[] | undefined;
387
- parameters?: {
388
- value: string;
389
- key: string;
390
- omitIfEmpty?: boolean | undefined;
391
- }[] | undefined;
392
- variables?: Record<string, {
393
- default: string;
394
- type?: string | undefined;
395
- displayName?: string | undefined;
396
- helpText?: string | undefined;
397
- order?: number | undefined;
398
- source?: string | undefined;
399
- }> | undefined;
400
- } & {
401
- url: string;
402
- }) | undefined;
403
- } | undefined;
404
- enableUnpublishedMode?: boolean | undefined;
405
- }>;
100
+ }, z.core.$strip>;
406
101
  /** Declaration of custom edgehancer hooks on a merged data type */
407
102
  type CustomEdgehancerDefinition = z.infer<typeof customEdgehancerDefinitionSchema>;
408
103
  /**
@@ -433,7 +128,7 @@ type MergedDataType = Omit<DataType, 'dataSourceId' | 'path'> & Pick<DataSource,
433
128
  */
434
129
  uiBadgeText?: string;
435
130
  };
436
- 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]>;
131
+ declare const dataResourceSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown>, z.ZodUndefined]>;
437
132
  /** A data resource of JSON data retrieved from a data type/data source */
438
133
  type DataResource = z.infer<typeof dataResourceSchema>;
439
134
  type EdgehancerDataIssue = z.infer<typeof resolvingIssueSchema>;
@@ -442,39 +137,30 @@ declare const afterAIDataResourceEditResultSchema: z.ZodObject<{
442
137
  newValue: z.ZodRecord<z.ZodString, z.ZodString>;
443
138
  success: z.ZodBoolean;
444
139
  summary: z.ZodOptional<z.ZodString>;
445
- }, "strict", z.ZodTypeAny, {
446
- newValue: Record<string, string>;
447
- success: boolean;
448
- summary?: string | undefined;
449
- }, {
450
- newValue: Record<string, string>;
451
- success: boolean;
452
- summary?: string | undefined;
453
- }>;
140
+ }, z.core.$strict>;
454
141
  declare const afterAIDataResourceEditContextSchema: z.ZodObject<{
455
142
  /**
456
143
  * The the data type of the data resource being edited (merged with its data source)
457
144
  * NOTE: this can contain secrets, API keys, etc. Do not directly expose it to the AI agent!
458
145
  * NOTE: this does not include the current value's variables, if any
459
146
  */
460
- mergedDataType: z.ZodType<MergedDataType, z.ZodTypeDef, MergedDataType>;
147
+ mergedDataType: z.ZodCustom<MergedDataType, MergedDataType>;
461
148
  /** Which data source variant is currently active (undefined = published data) */
462
- dataSourceVariant: z.ZodOptional<z.ZodType<"unpublished", z.ZodTypeDef, "unpublished">>;
149
+ dataSourceVariant: z.ZodOptional<z.ZodCustom<"unpublished", "unpublished">>;
463
150
  /** The edit request details */
464
151
  editRequest: z.ZodObject<{
465
- /** The edit instruction from the AI agent */
466
152
  edit: z.ZodString;
467
- /** Current value of the data resource's variables (if any) */
468
153
  currentValue: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
469
- }, "strip", z.ZodTypeAny, {
470
- edit: string;
471
- currentValue?: Record<string, string> | undefined;
472
- }, {
473
- edit: string;
474
- currentValue?: Record<string, string> | undefined;
475
- }>;
154
+ }, z.core.$strip>;
476
155
  /** AI invocation context */
477
- invocationContext: z.ZodEnum<["composition", "compositionPattern", "componentPattern", "entry", "entryPattern", "general"]>;
156
+ invocationContext: z.ZodEnum<{
157
+ composition: "composition";
158
+ compositionPattern: "compositionPattern";
159
+ componentPattern: "componentPattern";
160
+ entry: "entry";
161
+ entryPattern: "entryPattern";
162
+ general: "general";
163
+ }>;
478
164
  /** User ID making the edit */
479
165
  userId: z.ZodString;
480
166
  /** Project ID */
@@ -485,244 +171,8 @@ declare const afterAIDataResourceEditContextSchema: z.ZodObject<{
485
171
  result: z.ZodObject<{
486
172
  success: z.ZodBoolean;
487
173
  summary: z.ZodOptional<z.ZodString>;
488
- }, "strip", z.ZodTypeAny, {
489
- success: boolean;
490
- summary?: string | undefined;
491
- }, {
492
- success: boolean;
493
- summary?: string | undefined;
494
- }>;
495
- }, "strict", z.ZodTypeAny, {
496
- newValue: Record<string, string>;
497
- mergedDataType: Omit<{
498
- id: string;
499
- displayName: string;
500
- dataSourceId: string;
501
- archetype?: string;
502
- allowedOnComponents?: string[];
503
- path: string;
504
- ttl?: number;
505
- purgeKey?: string;
506
- badgeIconUrl?: string;
507
- headers?: {
508
- key: string;
509
- value: string;
510
- omitIfEmpty?: boolean;
511
- }[];
512
- parameters?: {
513
- key: string;
514
- value: string;
515
- omitIfEmpty?: boolean;
516
- }[];
517
- body?: string;
518
- method: "GET" | "POST" | "HEAD";
519
- variables?: {
520
- [key: string]: {
521
- displayName?: string;
522
- helpText?: string;
523
- type?: string;
524
- default: string;
525
- order?: number;
526
- source?: string;
527
- };
528
- };
529
- custom?: {
530
- [key: string]: unknown;
531
- };
532
- }, "path" | "dataSourceId"> & Pick<{
533
- id: string;
534
- displayName: string;
535
- connectorType: string;
536
- baseUrl: string;
537
- headers?: {
538
- key: string;
539
- value: string;
540
- }[];
541
- parameters?: {
542
- key: string;
543
- value: string;
544
- }[];
545
- variables?: {
546
- [key: string]: {
547
- displayName?: string;
548
- helpText?: string;
549
- type?: string;
550
- default: string;
551
- order?: number;
552
- source?: string;
553
- };
554
- };
555
- localeMapping?: {
556
- [key: string]: string;
557
- };
558
- enableUnpublishedMode?: boolean;
559
- customPublic?: {
560
- [key: string]: unknown;
561
- };
562
- custom?: {
563
- [key: string]: unknown;
564
- };
565
- variants?: {
566
- unpublished?: {
567
- baseUrl: string;
568
- headers?: {
569
- key: string;
570
- value: string;
571
- omitIfEmpty?: boolean;
572
- }[];
573
- parameters?: {
574
- key: string;
575
- value: string;
576
- omitIfEmpty?: boolean;
577
- }[];
578
- variables?: {
579
- [key: string]: {
580
- displayName?: string;
581
- helpText?: string;
582
- type?: string;
583
- default: string;
584
- order?: number;
585
- source?: string;
586
- };
587
- };
588
- };
589
- };
590
- }, "connectorType" | "customPublic" | "localeMapping" | "enableUnpublishedMode"> & {
591
- variants?: Partial<Record<DataSourceVariantsKeys, Omit<NonNullable<_uniformdev_canvas.DataSourceVariantData>, "baseUrl"> & {
592
- url: string;
593
- }>>;
594
- url: string;
595
- edgehancer?: CustomEdgehancerDefinition;
596
- uiBadgeText?: string;
597
- };
598
- editRequest: {
599
- edit: string;
600
- currentValue?: Record<string, string> | undefined;
601
- };
602
- invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
603
- userId: string;
604
- projectId: string;
605
- result: {
606
- success: boolean;
607
- summary?: string | undefined;
608
- };
609
- dataSourceVariant?: "unpublished" | undefined;
610
- }, {
611
- newValue: Record<string, string>;
612
- mergedDataType: Omit<{
613
- id: string;
614
- displayName: string;
615
- dataSourceId: string;
616
- archetype?: string;
617
- allowedOnComponents?: string[];
618
- path: string;
619
- ttl?: number;
620
- purgeKey?: string;
621
- badgeIconUrl?: string;
622
- headers?: {
623
- key: string;
624
- value: string;
625
- omitIfEmpty?: boolean;
626
- }[];
627
- parameters?: {
628
- key: string;
629
- value: string;
630
- omitIfEmpty?: boolean;
631
- }[];
632
- body?: string;
633
- method: "GET" | "POST" | "HEAD";
634
- variables?: {
635
- [key: string]: {
636
- displayName?: string;
637
- helpText?: string;
638
- type?: string;
639
- default: string;
640
- order?: number;
641
- source?: string;
642
- };
643
- };
644
- custom?: {
645
- [key: string]: unknown;
646
- };
647
- }, "path" | "dataSourceId"> & Pick<{
648
- id: string;
649
- displayName: string;
650
- connectorType: string;
651
- baseUrl: string;
652
- headers?: {
653
- key: string;
654
- value: string;
655
- }[];
656
- parameters?: {
657
- key: string;
658
- value: string;
659
- }[];
660
- variables?: {
661
- [key: string]: {
662
- displayName?: string;
663
- helpText?: string;
664
- type?: string;
665
- default: string;
666
- order?: number;
667
- source?: string;
668
- };
669
- };
670
- localeMapping?: {
671
- [key: string]: string;
672
- };
673
- enableUnpublishedMode?: boolean;
674
- customPublic?: {
675
- [key: string]: unknown;
676
- };
677
- custom?: {
678
- [key: string]: unknown;
679
- };
680
- variants?: {
681
- unpublished?: {
682
- baseUrl: string;
683
- headers?: {
684
- key: string;
685
- value: string;
686
- omitIfEmpty?: boolean;
687
- }[];
688
- parameters?: {
689
- key: string;
690
- value: string;
691
- omitIfEmpty?: boolean;
692
- }[];
693
- variables?: {
694
- [key: string]: {
695
- displayName?: string;
696
- helpText?: string;
697
- type?: string;
698
- default: string;
699
- order?: number;
700
- source?: string;
701
- };
702
- };
703
- };
704
- };
705
- }, "connectorType" | "customPublic" | "localeMapping" | "enableUnpublishedMode"> & {
706
- variants?: Partial<Record<DataSourceVariantsKeys, Omit<NonNullable<_uniformdev_canvas.DataSourceVariantData>, "baseUrl"> & {
707
- url: string;
708
- }>>;
709
- url: string;
710
- edgehancer?: CustomEdgehancerDefinition;
711
- uiBadgeText?: string;
712
- };
713
- editRequest: {
714
- edit: string;
715
- currentValue?: Record<string, string> | undefined;
716
- };
717
- invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
718
- userId: string;
719
- projectId: string;
720
- result: {
721
- success: boolean;
722
- summary?: string | undefined;
723
- };
724
- dataSourceVariant?: "unpublished" | undefined;
725
- }>;
174
+ }, z.core.$strip>;
175
+ }, z.core.$strict>;
726
176
  type AfterAIDataResourceEditContext = z.infer<typeof afterAIDataResourceEditContextSchema>;
727
177
  type AfterAIDataResourceEditResult = z.infer<typeof afterAIDataResourceEditResultSchema>;
728
178
  /**
@@ -745,18 +195,10 @@ type AfterAIDataResourceEditResult = z.infer<typeof afterAIDataResourceEditResul
745
195
  type AfterAIDataResourceEditHookFn = (context: AfterAIDataResourceEditContext) => Promise<AfterAIDataResourceEditResult>;
746
196
 
747
197
  declare const afterAIEditResultSchema: z.ZodObject<{
748
- newValue: z.ZodUnknown;
198
+ newValue: z.ZodOptional<z.ZodUnknown>;
749
199
  success: z.ZodBoolean;
750
200
  summary: z.ZodOptional<z.ZodString>;
751
- }, "strict", z.ZodTypeAny, {
752
- success: boolean;
753
- newValue?: unknown;
754
- summary?: string | undefined;
755
- }, {
756
- success: boolean;
757
- newValue?: unknown;
758
- summary?: string | undefined;
759
- }>;
201
+ }, z.core.$strict>;
760
202
  declare const afterAIEditContextSchema: z.ZodObject<{
761
203
  editRequest: z.ZodObject<{
762
204
  edit: z.ZodString;
@@ -770,53 +212,18 @@ declare const afterAIEditContextSchema: z.ZodObject<{
770
212
  type: z.ZodString;
771
213
  guidance: z.ZodOptional<z.ZodString>;
772
214
  typeConfig: z.ZodOptional<z.ZodUnknown>;
773
- }, "strip", z.ZodTypeAny, {
774
- type: string;
775
- id: string;
776
- name: string;
777
- guidance?: string | undefined;
778
- typeConfig?: unknown;
779
- }, {
780
- type: string;
781
- id: string;
782
- name: string;
783
- guidance?: string | undefined;
784
- typeConfig?: unknown;
785
- }>;
215
+ }, z.core.$strip>;
786
216
  outputLocale: z.ZodOptional<z.ZodString>;
787
217
  documentContext: z.ZodOptional<z.ZodString>;
788
- }, "strip", z.ZodTypeAny, {
789
- edit: string;
790
- propertyDefinition: {
791
- type: string;
792
- id: string;
793
- name: string;
794
- guidance?: string | undefined;
795
- typeConfig?: unknown;
796
- };
797
- currentValue?: unknown;
798
- projectGuidance?: string | undefined;
799
- componentGuidance?: string | undefined;
800
- audienceGuidance?: string | undefined;
801
- outputLocale?: string | undefined;
802
- documentContext?: string | undefined;
803
- }, {
804
- edit: string;
805
- propertyDefinition: {
806
- type: string;
807
- id: string;
808
- name: string;
809
- guidance?: string | undefined;
810
- typeConfig?: unknown;
811
- };
812
- currentValue?: unknown;
813
- projectGuidance?: string | undefined;
814
- componentGuidance?: string | undefined;
815
- audienceGuidance?: string | undefined;
816
- outputLocale?: string | undefined;
817
- documentContext?: string | undefined;
218
+ }, z.core.$strip>;
219
+ invocationContext: z.ZodEnum<{
220
+ composition: "composition";
221
+ compositionPattern: "compositionPattern";
222
+ componentPattern: "componentPattern";
223
+ entry: "entry";
224
+ entryPattern: "entryPattern";
225
+ general: "general";
818
226
  }>;
819
- invocationContext: z.ZodEnum<["composition", "compositionPattern", "componentPattern", "entry", "entryPattern", "general"]>;
820
227
  userId: z.ZodString;
821
228
  currentLocale: z.ZodOptional<z.ZodString>;
822
229
  projectId: z.ZodString;
@@ -824,66 +231,8 @@ declare const afterAIEditContextSchema: z.ZodObject<{
824
231
  result: z.ZodObject<{
825
232
  success: z.ZodBoolean;
826
233
  summary: z.ZodOptional<z.ZodString>;
827
- }, "strip", z.ZodTypeAny, {
828
- success: boolean;
829
- summary?: string | undefined;
830
- }, {
831
- success: boolean;
832
- summary?: string | undefined;
833
- }>;
834
- }, "strict", z.ZodTypeAny, {
835
- editRequest: {
836
- edit: string;
837
- propertyDefinition: {
838
- type: string;
839
- id: string;
840
- name: string;
841
- guidance?: string | undefined;
842
- typeConfig?: unknown;
843
- };
844
- currentValue?: unknown;
845
- projectGuidance?: string | undefined;
846
- componentGuidance?: string | undefined;
847
- audienceGuidance?: string | undefined;
848
- outputLocale?: string | undefined;
849
- documentContext?: string | undefined;
850
- };
851
- invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
852
- userId: string;
853
- projectId: string;
854
- result: {
855
- success: boolean;
856
- summary?: string | undefined;
857
- };
858
- newValue?: unknown;
859
- currentLocale?: string | undefined;
860
- }, {
861
- editRequest: {
862
- edit: string;
863
- propertyDefinition: {
864
- type: string;
865
- id: string;
866
- name: string;
867
- guidance?: string | undefined;
868
- typeConfig?: unknown;
869
- };
870
- currentValue?: unknown;
871
- projectGuidance?: string | undefined;
872
- componentGuidance?: string | undefined;
873
- audienceGuidance?: string | undefined;
874
- outputLocale?: string | undefined;
875
- documentContext?: string | undefined;
876
- };
877
- invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
878
- userId: string;
879
- projectId: string;
880
- result: {
881
- success: boolean;
882
- summary?: string | undefined;
883
- };
884
- newValue?: unknown;
885
- currentLocale?: string | undefined;
886
- }>;
234
+ }, z.core.$strip>;
235
+ }, z.core.$strict>;
887
236
  type AfterAIEditContext = z.infer<typeof afterAIEditContextSchema>;
888
237
  type AfterAIEditResult = z.infer<typeof afterAIEditResultSchema>;
889
238
  /**
@@ -920,277 +269,75 @@ type RequestEdgehancerContext = {
920
269
  dataSourceVariant?: DataSourceVariantsKeys;
921
270
  };
922
271
  declare const requestEdgehancerDataResourceResolutionResultSchema: z.ZodObject<{
923
- errors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
272
+ errors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
924
273
  message: z.ZodString;
925
- subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
274
+ subType: z.ZodOptional<z.ZodEnum<{
275
+ unpublishedData: "unpublishedData";
276
+ configuration: "configuration";
277
+ }>>;
926
278
  issueReference: z.ZodOptional<z.ZodString>;
927
279
  deepLink: z.ZodOptional<z.ZodString>;
928
280
  statusCode: z.ZodOptional<z.ZodNumber>;
929
- }, "strip", z.ZodTypeAny, {
930
- message: string;
931
- subType?: "unpublishedData" | "configuration" | undefined;
932
- issueReference?: string | undefined;
933
- deepLink?: string | undefined;
934
- statusCode?: number | undefined;
935
- }, {
936
- message: string;
937
- subType?: "unpublishedData" | "configuration" | undefined;
938
- issueReference?: string | undefined;
939
- deepLink?: string | undefined;
940
- statusCode?: number | undefined;
941
- }>]>, "many">>;
942
- warnings: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
281
+ }, z.core.$strip>]>>>;
282
+ warnings: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
943
283
  message: z.ZodString;
944
- subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
284
+ subType: z.ZodOptional<z.ZodEnum<{
285
+ unpublishedData: "unpublishedData";
286
+ configuration: "configuration";
287
+ }>>;
945
288
  issueReference: z.ZodOptional<z.ZodString>;
946
289
  deepLink: z.ZodOptional<z.ZodString>;
947
290
  statusCode: z.ZodOptional<z.ZodNumber>;
948
- }, "strip", z.ZodTypeAny, {
949
- message: string;
950
- subType?: "unpublishedData" | "configuration" | undefined;
951
- issueReference?: string | undefined;
952
- deepLink?: string | undefined;
953
- statusCode?: number | undefined;
954
- }, {
955
- message: string;
956
- subType?: "unpublishedData" | "configuration" | undefined;
957
- issueReference?: string | undefined;
958
- deepLink?: string | undefined;
959
- statusCode?: number | undefined;
960
- }>]>, "many">>;
961
- infos: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
291
+ }, z.core.$strip>]>>>;
292
+ infos: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
962
293
  message: z.ZodString;
963
- subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
294
+ subType: z.ZodOptional<z.ZodEnum<{
295
+ unpublishedData: "unpublishedData";
296
+ configuration: "configuration";
297
+ }>>;
964
298
  issueReference: z.ZodOptional<z.ZodString>;
965
299
  deepLink: z.ZodOptional<z.ZodString>;
966
300
  statusCode: z.ZodOptional<z.ZodNumber>;
967
- }, "strip", z.ZodTypeAny, {
968
- message: string;
969
- subType?: "unpublishedData" | "configuration" | undefined;
970
- issueReference?: string | undefined;
971
- deepLink?: string | undefined;
972
- statusCode?: number | undefined;
973
- }, {
974
- message: string;
975
- subType?: "unpublishedData" | "configuration" | undefined;
976
- issueReference?: string | undefined;
977
- deepLink?: string | undefined;
978
- statusCode?: number | undefined;
979
- }>]>, "many">>;
980
- surrogateKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
981
- 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]>;
982
- }, "strict", z.ZodTypeAny, {
983
- result?: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodUnknown, "strip"> | undefined;
984
- errors?: (string | {
985
- message: string;
986
- subType?: "unpublishedData" | "configuration" | undefined;
987
- issueReference?: string | undefined;
988
- deepLink?: string | undefined;
989
- statusCode?: number | undefined;
990
- })[] | undefined;
991
- warnings?: (string | {
992
- message: string;
993
- subType?: "unpublishedData" | "configuration" | undefined;
994
- issueReference?: string | undefined;
995
- deepLink?: string | undefined;
996
- statusCode?: number | undefined;
997
- })[] | undefined;
998
- infos?: (string | {
999
- message: string;
1000
- subType?: "unpublishedData" | "configuration" | undefined;
1001
- issueReference?: string | undefined;
1002
- deepLink?: string | undefined;
1003
- statusCode?: number | undefined;
1004
- })[] | undefined;
1005
- surrogateKeys?: string[] | undefined;
1006
- }, {
1007
- result?: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodUnknown, "strip"> | undefined;
1008
- errors?: (string | {
1009
- message: string;
1010
- subType?: "unpublishedData" | "configuration" | undefined;
1011
- issueReference?: string | undefined;
1012
- deepLink?: string | undefined;
1013
- statusCode?: number | undefined;
1014
- })[] | undefined;
1015
- warnings?: (string | {
1016
- message: string;
1017
- subType?: "unpublishedData" | "configuration" | undefined;
1018
- issueReference?: string | undefined;
1019
- deepLink?: string | undefined;
1020
- statusCode?: number | undefined;
1021
- })[] | undefined;
1022
- infos?: (string | {
1023
- message: string;
1024
- subType?: "unpublishedData" | "configuration" | undefined;
1025
- issueReference?: string | undefined;
1026
- deepLink?: string | undefined;
1027
- statusCode?: number | undefined;
1028
- })[] | undefined;
1029
- surrogateKeys?: string[] | undefined;
1030
- }>;
301
+ }, z.core.$strip>]>>>;
302
+ surrogateKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
303
+ result: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown>, z.ZodUndefined]>>;
304
+ }, z.core.$strict>;
1031
305
  declare const requestEdgehancerResultSchema: z.ZodObject<{
1032
306
  results: z.ZodArray<z.ZodObject<{
1033
- errors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
307
+ errors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1034
308
  message: z.ZodString;
1035
- subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
309
+ subType: z.ZodOptional<z.ZodEnum<{
310
+ unpublishedData: "unpublishedData";
311
+ configuration: "configuration";
312
+ }>>;
1036
313
  issueReference: z.ZodOptional<z.ZodString>;
1037
314
  deepLink: z.ZodOptional<z.ZodString>;
1038
315
  statusCode: z.ZodOptional<z.ZodNumber>;
1039
- }, "strip", z.ZodTypeAny, {
1040
- message: string;
1041
- subType?: "unpublishedData" | "configuration" | undefined;
1042
- issueReference?: string | undefined;
1043
- deepLink?: string | undefined;
1044
- statusCode?: number | undefined;
1045
- }, {
1046
- message: string;
1047
- subType?: "unpublishedData" | "configuration" | undefined;
1048
- issueReference?: string | undefined;
1049
- deepLink?: string | undefined;
1050
- statusCode?: number | undefined;
1051
- }>]>, "many">>;
1052
- warnings: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
316
+ }, z.core.$strip>]>>>;
317
+ warnings: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1053
318
  message: z.ZodString;
1054
- subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
319
+ subType: z.ZodOptional<z.ZodEnum<{
320
+ unpublishedData: "unpublishedData";
321
+ configuration: "configuration";
322
+ }>>;
1055
323
  issueReference: z.ZodOptional<z.ZodString>;
1056
324
  deepLink: z.ZodOptional<z.ZodString>;
1057
325
  statusCode: z.ZodOptional<z.ZodNumber>;
1058
- }, "strip", z.ZodTypeAny, {
1059
- message: string;
1060
- subType?: "unpublishedData" | "configuration" | undefined;
1061
- issueReference?: string | undefined;
1062
- deepLink?: string | undefined;
1063
- statusCode?: number | undefined;
1064
- }, {
1065
- message: string;
1066
- subType?: "unpublishedData" | "configuration" | undefined;
1067
- issueReference?: string | undefined;
1068
- deepLink?: string | undefined;
1069
- statusCode?: number | undefined;
1070
- }>]>, "many">>;
1071
- infos: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
326
+ }, z.core.$strip>]>>>;
327
+ infos: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1072
328
  message: z.ZodString;
1073
- subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
329
+ subType: z.ZodOptional<z.ZodEnum<{
330
+ unpublishedData: "unpublishedData";
331
+ configuration: "configuration";
332
+ }>>;
1074
333
  issueReference: z.ZodOptional<z.ZodString>;
1075
334
  deepLink: z.ZodOptional<z.ZodString>;
1076
335
  statusCode: z.ZodOptional<z.ZodNumber>;
1077
- }, "strip", z.ZodTypeAny, {
1078
- message: string;
1079
- subType?: "unpublishedData" | "configuration" | undefined;
1080
- issueReference?: string | undefined;
1081
- deepLink?: string | undefined;
1082
- statusCode?: number | undefined;
1083
- }, {
1084
- message: string;
1085
- subType?: "unpublishedData" | "configuration" | undefined;
1086
- issueReference?: string | undefined;
1087
- deepLink?: string | undefined;
1088
- statusCode?: number | undefined;
1089
- }>]>, "many">>;
1090
- surrogateKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1091
- 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]>;
1092
- }, "strict", z.ZodTypeAny, {
1093
- result?: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodUnknown, "strip"> | undefined;
1094
- errors?: (string | {
1095
- message: string;
1096
- subType?: "unpublishedData" | "configuration" | undefined;
1097
- issueReference?: string | undefined;
1098
- deepLink?: string | undefined;
1099
- statusCode?: number | undefined;
1100
- })[] | undefined;
1101
- warnings?: (string | {
1102
- message: string;
1103
- subType?: "unpublishedData" | "configuration" | undefined;
1104
- issueReference?: string | undefined;
1105
- deepLink?: string | undefined;
1106
- statusCode?: number | undefined;
1107
- })[] | undefined;
1108
- infos?: (string | {
1109
- message: string;
1110
- subType?: "unpublishedData" | "configuration" | undefined;
1111
- issueReference?: string | undefined;
1112
- deepLink?: string | undefined;
1113
- statusCode?: number | undefined;
1114
- })[] | undefined;
1115
- surrogateKeys?: string[] | undefined;
1116
- }, {
1117
- result?: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodUnknown, "strip"> | undefined;
1118
- errors?: (string | {
1119
- message: string;
1120
- subType?: "unpublishedData" | "configuration" | undefined;
1121
- issueReference?: string | undefined;
1122
- deepLink?: string | undefined;
1123
- statusCode?: number | undefined;
1124
- })[] | undefined;
1125
- warnings?: (string | {
1126
- message: string;
1127
- subType?: "unpublishedData" | "configuration" | undefined;
1128
- issueReference?: string | undefined;
1129
- deepLink?: string | undefined;
1130
- statusCode?: number | undefined;
1131
- })[] | undefined;
1132
- infos?: (string | {
1133
- message: string;
1134
- subType?: "unpublishedData" | "configuration" | undefined;
1135
- issueReference?: string | undefined;
1136
- deepLink?: string | undefined;
1137
- statusCode?: number | undefined;
1138
- })[] | undefined;
1139
- surrogateKeys?: string[] | undefined;
1140
- }>, "many">;
1141
- }, "strict", z.ZodTypeAny, {
1142
- results: {
1143
- result?: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodUnknown, "strip"> | undefined;
1144
- errors?: (string | {
1145
- message: string;
1146
- subType?: "unpublishedData" | "configuration" | undefined;
1147
- issueReference?: string | undefined;
1148
- deepLink?: string | undefined;
1149
- statusCode?: number | undefined;
1150
- })[] | undefined;
1151
- warnings?: (string | {
1152
- message: string;
1153
- subType?: "unpublishedData" | "configuration" | undefined;
1154
- issueReference?: string | undefined;
1155
- deepLink?: string | undefined;
1156
- statusCode?: number | undefined;
1157
- })[] | undefined;
1158
- infos?: (string | {
1159
- message: string;
1160
- subType?: "unpublishedData" | "configuration" | undefined;
1161
- issueReference?: string | undefined;
1162
- deepLink?: string | undefined;
1163
- statusCode?: number | undefined;
1164
- })[] | undefined;
1165
- surrogateKeys?: string[] | undefined;
1166
- }[];
1167
- }, {
1168
- results: {
1169
- result?: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodUnknown, "strip"> | undefined;
1170
- errors?: (string | {
1171
- message: string;
1172
- subType?: "unpublishedData" | "configuration" | undefined;
1173
- issueReference?: string | undefined;
1174
- deepLink?: string | undefined;
1175
- statusCode?: number | undefined;
1176
- })[] | undefined;
1177
- warnings?: (string | {
1178
- message: string;
1179
- subType?: "unpublishedData" | "configuration" | undefined;
1180
- issueReference?: string | undefined;
1181
- deepLink?: string | undefined;
1182
- statusCode?: number | undefined;
1183
- })[] | undefined;
1184
- infos?: (string | {
1185
- message: string;
1186
- subType?: "unpublishedData" | "configuration" | undefined;
1187
- issueReference?: string | undefined;
1188
- deepLink?: string | undefined;
1189
- statusCode?: number | undefined;
1190
- })[] | undefined;
1191
- surrogateKeys?: string[] | undefined;
1192
- }[];
1193
- }>;
336
+ }, z.core.$strip>]>>>;
337
+ surrogateKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
338
+ result: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown>, z.ZodUndefined]>>;
339
+ }, z.core.$strict>>;
340
+ }, z.core.$strict>;
1194
341
  type RequestEdgehancerResult = z.infer<typeof requestEdgehancerResultSchema>;
1195
342
  type RequestEdgehancerDataResourceResolutionResult = z.infer<typeof requestEdgehancerDataResourceResolutionResultSchema>;
1196
343
  type RequestHookFn = (context: RequestEdgehancerContext) => Promise<RequestEdgehancerResult>;
@@ -1207,7 +354,6 @@ type ConvertBatchResultsToEdgehancerResultOptions<TID, TResultItem extends DataR
1207
354
  * Given a batch of data resources and their batch-fetch results, convert them into a result that can be returned from a request hook.
1208
355
  */
1209
356
  declare function convertBatchResultsToEdgehancerResult<TID, TResultItem extends DataResource>({ batch, batchFetchIds: { invalidBatchIndices, validIdToOriginalIndexMap }, batchResults, resolveIdFromBatchResultFn, knownInvalidErrorMessage, missingBatchResultErrorMessage, }: ConvertBatchResultsToEdgehancerResultOptions<TID, TResultItem>): {
1210
- result?: string | number | boolean | unknown[] | zod.objectOutputType<{}, zod.ZodUnknown, "strip"> | undefined;
1211
357
  errors?: (string | {
1212
358
  message: string;
1213
359
  subType?: "unpublishedData" | "configuration" | undefined;
@@ -1230,6 +376,9 @@ declare function convertBatchResultsToEdgehancerResult<TID, TResultItem extends
1230
376
  statusCode?: number | undefined;
1231
377
  })[] | undefined;
1232
378
  surrogateKeys?: string[] | undefined;
379
+ result?: string | number | boolean | {
380
+ [x: string]: unknown;
381
+ } | unknown[] | undefined;
1233
382
  }[];
1234
383
  type ResolveBatchIdsResult<TID> = {
1235
384
  /** The IDs that are valid that should be fetched */
@@ -1255,260 +404,33 @@ declare const createAIDataResourceEditContextSchema: z.ZodObject<{
1255
404
  * NOTE: this can contain secrets, API keys, etc. Do not directly expose it to the AI agent!
1256
405
  * NOTE: this does not include the current value's variables, if any
1257
406
  */
1258
- mergedDataType: z.ZodType<MergedDataType, z.ZodTypeDef, MergedDataType>;
407
+ mergedDataType: z.ZodCustom<MergedDataType, MergedDataType>;
1259
408
  /** Which data source variant is currently active (undefined = published data) */
1260
- dataSourceVariant: z.ZodOptional<z.ZodType<"unpublished", z.ZodTypeDef, "unpublished">>;
409
+ dataSourceVariant: z.ZodOptional<z.ZodCustom<"unpublished", "unpublished">>;
1261
410
  /** The edit request details */
1262
411
  editRequest: z.ZodObject<{
1263
- /** The edit instruction from the AI agent */
1264
412
  edit: z.ZodString;
1265
- /** Current value of the data resource's variables (if any) */
1266
413
  currentValue: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1267
- }, "strip", z.ZodTypeAny, {
1268
- edit: string;
1269
- currentValue?: Record<string, string> | undefined;
1270
- }, {
1271
- edit: string;
1272
- currentValue?: Record<string, string> | undefined;
1273
- }>;
414
+ }, z.core.$strip>;
1274
415
  /** AI invocation context */
1275
- invocationContext: z.ZodEnum<["composition", "compositionPattern", "componentPattern", "entry", "entryPattern", "general"]>;
416
+ invocationContext: z.ZodEnum<{
417
+ composition: "composition";
418
+ compositionPattern: "compositionPattern";
419
+ componentPattern: "componentPattern";
420
+ entry: "entry";
421
+ entryPattern: "entryPattern";
422
+ general: "general";
423
+ }>;
1276
424
  /** User ID making the edit */
1277
425
  userId: z.ZodString;
1278
426
  /** Project ID */
1279
427
  projectId: z.ZodString;
1280
- }, "strict", z.ZodTypeAny, {
1281
- mergedDataType: Omit<{
1282
- id: string;
1283
- displayName: string;
1284
- dataSourceId: string;
1285
- archetype?: string;
1286
- allowedOnComponents?: string[];
1287
- path: string;
1288
- ttl?: number;
1289
- purgeKey?: string;
1290
- badgeIconUrl?: string;
1291
- headers?: {
1292
- key: string;
1293
- value: string;
1294
- omitIfEmpty?: boolean;
1295
- }[];
1296
- parameters?: {
1297
- key: string;
1298
- value: string;
1299
- omitIfEmpty?: boolean;
1300
- }[];
1301
- body?: string;
1302
- method: "GET" | "POST" | "HEAD";
1303
- variables?: {
1304
- [key: string]: {
1305
- displayName?: string;
1306
- helpText?: string;
1307
- type?: string;
1308
- default: string;
1309
- order?: number;
1310
- source?: string;
1311
- };
1312
- };
1313
- custom?: {
1314
- [key: string]: unknown;
1315
- };
1316
- }, "path" | "dataSourceId"> & Pick<{
1317
- id: string;
1318
- displayName: string;
1319
- connectorType: string;
1320
- baseUrl: string;
1321
- headers?: {
1322
- key: string;
1323
- value: string;
1324
- }[];
1325
- parameters?: {
1326
- key: string;
1327
- value: string;
1328
- }[];
1329
- variables?: {
1330
- [key: string]: {
1331
- displayName?: string;
1332
- helpText?: string;
1333
- type?: string;
1334
- default: string;
1335
- order?: number;
1336
- source?: string;
1337
- };
1338
- };
1339
- localeMapping?: {
1340
- [key: string]: string;
1341
- };
1342
- enableUnpublishedMode?: boolean;
1343
- customPublic?: {
1344
- [key: string]: unknown;
1345
- };
1346
- custom?: {
1347
- [key: string]: unknown;
1348
- };
1349
- variants?: {
1350
- unpublished?: {
1351
- baseUrl: string;
1352
- headers?: {
1353
- key: string;
1354
- value: string;
1355
- omitIfEmpty?: boolean;
1356
- }[];
1357
- parameters?: {
1358
- key: string;
1359
- value: string;
1360
- omitIfEmpty?: boolean;
1361
- }[];
1362
- variables?: {
1363
- [key: string]: {
1364
- displayName?: string;
1365
- helpText?: string;
1366
- type?: string;
1367
- default: string;
1368
- order?: number;
1369
- source?: string;
1370
- };
1371
- };
1372
- };
1373
- };
1374
- }, "connectorType" | "customPublic" | "localeMapping" | "enableUnpublishedMode"> & {
1375
- variants?: Partial<Record<DataSourceVariantsKeys, Omit<NonNullable<_uniformdev_canvas.DataSourceVariantData>, "baseUrl"> & {
1376
- url: string;
1377
- }>>;
1378
- url: string;
1379
- edgehancer?: CustomEdgehancerDefinition;
1380
- uiBadgeText?: string;
1381
- };
1382
- editRequest: {
1383
- edit: string;
1384
- currentValue?: Record<string, string> | undefined;
1385
- };
1386
- invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
1387
- userId: string;
1388
- projectId: string;
1389
- dataSourceVariant?: "unpublished" | undefined;
1390
- }, {
1391
- mergedDataType: Omit<{
1392
- id: string;
1393
- displayName: string;
1394
- dataSourceId: string;
1395
- archetype?: string;
1396
- allowedOnComponents?: string[];
1397
- path: string;
1398
- ttl?: number;
1399
- purgeKey?: string;
1400
- badgeIconUrl?: string;
1401
- headers?: {
1402
- key: string;
1403
- value: string;
1404
- omitIfEmpty?: boolean;
1405
- }[];
1406
- parameters?: {
1407
- key: string;
1408
- value: string;
1409
- omitIfEmpty?: boolean;
1410
- }[];
1411
- body?: string;
1412
- method: "GET" | "POST" | "HEAD";
1413
- variables?: {
1414
- [key: string]: {
1415
- displayName?: string;
1416
- helpText?: string;
1417
- type?: string;
1418
- default: string;
1419
- order?: number;
1420
- source?: string;
1421
- };
1422
- };
1423
- custom?: {
1424
- [key: string]: unknown;
1425
- };
1426
- }, "path" | "dataSourceId"> & Pick<{
1427
- id: string;
1428
- displayName: string;
1429
- connectorType: string;
1430
- baseUrl: string;
1431
- headers?: {
1432
- key: string;
1433
- value: string;
1434
- }[];
1435
- parameters?: {
1436
- key: string;
1437
- value: string;
1438
- }[];
1439
- variables?: {
1440
- [key: string]: {
1441
- displayName?: string;
1442
- helpText?: string;
1443
- type?: string;
1444
- default: string;
1445
- order?: number;
1446
- source?: string;
1447
- };
1448
- };
1449
- localeMapping?: {
1450
- [key: string]: string;
1451
- };
1452
- enableUnpublishedMode?: boolean;
1453
- customPublic?: {
1454
- [key: string]: unknown;
1455
- };
1456
- custom?: {
1457
- [key: string]: unknown;
1458
- };
1459
- variants?: {
1460
- unpublished?: {
1461
- baseUrl: string;
1462
- headers?: {
1463
- key: string;
1464
- value: string;
1465
- omitIfEmpty?: boolean;
1466
- }[];
1467
- parameters?: {
1468
- key: string;
1469
- value: string;
1470
- omitIfEmpty?: boolean;
1471
- }[];
1472
- variables?: {
1473
- [key: string]: {
1474
- displayName?: string;
1475
- helpText?: string;
1476
- type?: string;
1477
- default: string;
1478
- order?: number;
1479
- source?: string;
1480
- };
1481
- };
1482
- };
1483
- };
1484
- }, "connectorType" | "customPublic" | "localeMapping" | "enableUnpublishedMode"> & {
1485
- variants?: Partial<Record<DataSourceVariantsKeys, Omit<NonNullable<_uniformdev_canvas.DataSourceVariantData>, "baseUrl"> & {
1486
- url: string;
1487
- }>>;
1488
- url: string;
1489
- edgehancer?: CustomEdgehancerDefinition;
1490
- uiBadgeText?: string;
1491
- };
1492
- editRequest: {
1493
- edit: string;
1494
- currentValue?: Record<string, string> | undefined;
1495
- };
1496
- invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
1497
- userId: string;
1498
- projectId: string;
1499
- dataSourceVariant?: "unpublished" | undefined;
1500
- }>;
428
+ }, z.core.$strict>;
1501
429
  type CreateAIDataResourceEditContext = z.infer<typeof createAIDataResourceEditContextSchema>;
1502
430
  declare const createAIDataResourceEditResultSchema: z.ZodObject<{
1503
431
  outputJsonSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
1504
432
  instructions: z.ZodString;
1505
- }, "strict", z.ZodTypeAny, {
1506
- outputJsonSchema: Record<string, any>;
1507
- instructions: string;
1508
- }, {
1509
- outputJsonSchema: Record<string, any>;
1510
- instructions: string;
1511
- }>;
433
+ }, z.core.$strict>;
1512
434
  type CreateAIDataResourceEditResult = z.infer<typeof createAIDataResourceEditResultSchema>;
1513
435
  /**
1514
436
  * Shape of a hook function that is invoked to create the prompt and output schema for an AI edit to a data resource.
@@ -1534,110 +456,27 @@ declare const createAIEditContextSchema: z.ZodObject<{
1534
456
  type: z.ZodString;
1535
457
  guidance: z.ZodOptional<z.ZodString>;
1536
458
  typeConfig: z.ZodOptional<z.ZodUnknown>;
1537
- }, "strip", z.ZodTypeAny, {
1538
- type: string;
1539
- id: string;
1540
- name: string;
1541
- guidance?: string | undefined;
1542
- typeConfig?: unknown;
1543
- }, {
1544
- type: string;
1545
- id: string;
1546
- name: string;
1547
- guidance?: string | undefined;
1548
- typeConfig?: unknown;
1549
- }>;
459
+ }, z.core.$strip>;
1550
460
  outputLocale: z.ZodOptional<z.ZodString>;
1551
461
  documentContext: z.ZodOptional<z.ZodString>;
1552
- }, "strip", z.ZodTypeAny, {
1553
- edit: string;
1554
- propertyDefinition: {
1555
- type: string;
1556
- id: string;
1557
- name: string;
1558
- guidance?: string | undefined;
1559
- typeConfig?: unknown;
1560
- };
1561
- currentValue?: unknown;
1562
- projectGuidance?: string | undefined;
1563
- componentGuidance?: string | undefined;
1564
- audienceGuidance?: string | undefined;
1565
- outputLocale?: string | undefined;
1566
- documentContext?: string | undefined;
1567
- }, {
1568
- edit: string;
1569
- propertyDefinition: {
1570
- type: string;
1571
- id: string;
1572
- name: string;
1573
- guidance?: string | undefined;
1574
- typeConfig?: unknown;
1575
- };
1576
- currentValue?: unknown;
1577
- projectGuidance?: string | undefined;
1578
- componentGuidance?: string | undefined;
1579
- audienceGuidance?: string | undefined;
1580
- outputLocale?: string | undefined;
1581
- documentContext?: string | undefined;
462
+ }, z.core.$strip>;
463
+ invocationContext: z.ZodEnum<{
464
+ composition: "composition";
465
+ compositionPattern: "compositionPattern";
466
+ componentPattern: "componentPattern";
467
+ entry: "entry";
468
+ entryPattern: "entryPattern";
469
+ general: "general";
1582
470
  }>;
1583
- invocationContext: z.ZodEnum<["composition", "compositionPattern", "componentPattern", "entry", "entryPattern", "general"]>;
1584
471
  userId: z.ZodString;
1585
472
  currentLocale: z.ZodOptional<z.ZodString>;
1586
473
  projectId: z.ZodString;
1587
- }, "strict", z.ZodTypeAny, {
1588
- editRequest: {
1589
- edit: string;
1590
- propertyDefinition: {
1591
- type: string;
1592
- id: string;
1593
- name: string;
1594
- guidance?: string | undefined;
1595
- typeConfig?: unknown;
1596
- };
1597
- currentValue?: unknown;
1598
- projectGuidance?: string | undefined;
1599
- componentGuidance?: string | undefined;
1600
- audienceGuidance?: string | undefined;
1601
- outputLocale?: string | undefined;
1602
- documentContext?: string | undefined;
1603
- };
1604
- invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
1605
- userId: string;
1606
- projectId: string;
1607
- currentLocale?: string | undefined;
1608
- }, {
1609
- editRequest: {
1610
- edit: string;
1611
- propertyDefinition: {
1612
- type: string;
1613
- id: string;
1614
- name: string;
1615
- guidance?: string | undefined;
1616
- typeConfig?: unknown;
1617
- };
1618
- currentValue?: unknown;
1619
- projectGuidance?: string | undefined;
1620
- componentGuidance?: string | undefined;
1621
- audienceGuidance?: string | undefined;
1622
- outputLocale?: string | undefined;
1623
- documentContext?: string | undefined;
1624
- };
1625
- invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
1626
- userId: string;
1627
- projectId: string;
1628
- currentLocale?: string | undefined;
1629
- }>;
474
+ }, z.core.$strict>;
1630
475
  type CreateAIEditContext = z.infer<typeof createAIEditContextSchema>;
1631
476
  declare const createAIEditResultSchema: z.ZodObject<{
1632
477
  outputJsonSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
1633
478
  instructions: z.ZodString;
1634
- }, "strict", z.ZodTypeAny, {
1635
- outputJsonSchema: Record<string, any>;
1636
- instructions: string;
1637
- }, {
1638
- outputJsonSchema: Record<string, any>;
1639
- instructions: string;
1640
- }>;
479
+ }, z.core.$strict>;
1641
480
  type CreateAIEditResult = z.infer<typeof createAIEditResultSchema>;
1642
481
  /**
1643
482
  * Shape of a hook function that is invoked to create the prompt and output schema for an AI edit to a custom property type.
@@ -1647,42 +486,18 @@ type CreateAIEditResult = z.infer<typeof createAIEditResultSchema>;
1647
486
  */
1648
487
  type CreateAIEditHookFn = (context: CreateAIEditContext) => Promise<CreateAIEditResult>;
1649
488
 
1650
- declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
1651
- id: z.ZodString;
1652
- displayName: z.ZodString;
1653
- archetype: z.ZodOptional<z.ZodString>;
1654
- allowedOnComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1655
- badgeIconUrl: z.ZodOptional<z.ZodString>;
1656
- connectorType: z.ZodString;
1657
- url: z.ZodString;
489
+ declare const edgehancerMergedDataTypeSchema: z.ZodObject<{
490
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1658
491
  headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1659
492
  key: z.ZodString;
1660
493
  value: z.ZodString;
1661
494
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
1662
- }, "strip", z.ZodTypeAny, {
1663
- value: string;
1664
- key: string;
1665
- omitIfEmpty?: boolean | undefined;
1666
- }, {
1667
- value: string;
1668
- key: string;
1669
- omitIfEmpty?: boolean | undefined;
1670
- }>, "many">>;
495
+ }, z.core.$strip>>>;
1671
496
  parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
1672
497
  key: z.ZodString;
1673
498
  value: z.ZodString;
1674
499
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
1675
- }, "strip", z.ZodTypeAny, {
1676
- value: string;
1677
- key: string;
1678
- omitIfEmpty?: boolean | undefined;
1679
- }, {
1680
- value: string;
1681
- key: string;
1682
- omitIfEmpty?: boolean | undefined;
1683
- }>, "many">>;
1684
- body: z.ZodOptional<z.ZodString>;
1685
- method: z.ZodEnum<["GET", "POST", "HEAD"]>;
500
+ }, z.core.$strip>>>;
1686
501
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1687
502
  displayName: z.ZodOptional<z.ZodString>;
1688
503
  type: z.ZodOptional<z.ZodString>;
@@ -1690,42 +505,19 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
1690
505
  helpText: z.ZodOptional<z.ZodString>;
1691
506
  order: z.ZodOptional<z.ZodNumber>;
1692
507
  source: z.ZodOptional<z.ZodString>;
1693
- }, "strip", z.ZodTypeAny, {
1694
- default: string;
1695
- type?: string | undefined;
1696
- displayName?: string | undefined;
1697
- helpText?: string | undefined;
1698
- order?: number | undefined;
1699
- source?: string | undefined;
1700
- }, {
1701
- default: string;
1702
- type?: string | undefined;
1703
- displayName?: string | undefined;
1704
- helpText?: string | undefined;
1705
- order?: number | undefined;
1706
- source?: string | undefined;
1707
- }>>>;
1708
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
508
+ }, z.core.$strip>>>;
509
+ url: z.ZodString;
510
+ archetype: z.ZodOptional<z.ZodString>;
511
+ connectorType: z.ZodString;
512
+ body: z.ZodOptional<z.ZodString>;
513
+ method: z.ZodEnum<{
514
+ GET: "GET";
515
+ POST: "POST";
516
+ HEAD: "HEAD";
517
+ }>;
1709
518
  customPublic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1710
519
  ttl: z.ZodOptional<z.ZodNumber>;
1711
- purgeKey: z.ZodOptional<z.ZodString>;
1712
520
  localeMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1713
- edgehancer: z.ZodOptional<z.ZodObject<{
1714
- preRequest: z.ZodOptional<z.ZodString>;
1715
- request: z.ZodOptional<z.ZodString>;
1716
- createAIDataResourceEdit: z.ZodOptional<z.ZodString>;
1717
- afterAIDataResourceEdit: z.ZodOptional<z.ZodString>;
1718
- }, "strip", z.ZodTypeAny, {
1719
- preRequest?: string | undefined;
1720
- request?: string | undefined;
1721
- createAIDataResourceEdit?: string | undefined;
1722
- afterAIDataResourceEdit?: string | undefined;
1723
- }, {
1724
- preRequest?: string | undefined;
1725
- request?: string | undefined;
1726
- createAIDataResourceEdit?: string | undefined;
1727
- afterAIDataResourceEdit?: string | undefined;
1728
- }>>;
1729
521
  uiBadgeText: z.ZodOptional<z.ZodString>;
1730
522
  variants: z.ZodOptional<z.ZodObject<{
1731
523
  unpublished: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
@@ -1733,28 +525,12 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
1733
525
  key: z.ZodString;
1734
526
  value: z.ZodString;
1735
527
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
1736
- }, "strip", z.ZodTypeAny, {
1737
- value: string;
1738
- key: string;
1739
- omitIfEmpty?: boolean | undefined;
1740
- }, {
1741
- value: string;
1742
- key: string;
1743
- omitIfEmpty?: boolean | undefined;
1744
- }>, "many">>;
528
+ }, z.core.$strip>>>;
1745
529
  parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
1746
530
  key: z.ZodString;
1747
531
  value: z.ZodString;
1748
532
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
1749
- }, "strip", z.ZodTypeAny, {
1750
- value: string;
1751
- key: string;
1752
- omitIfEmpty?: boolean | undefined;
1753
- }, {
1754
- value: string;
1755
- key: string;
1756
- omitIfEmpty?: boolean | undefined;
1757
- }>, "many">>;
533
+ }, z.core.$strip>>>;
1758
534
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1759
535
  displayName: z.ZodOptional<z.ZodString>;
1760
536
  type: z.ZodOptional<z.ZodString>;
@@ -1762,223 +538,13 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
1762
538
  helpText: z.ZodOptional<z.ZodString>;
1763
539
  order: z.ZodOptional<z.ZodNumber>;
1764
540
  source: z.ZodOptional<z.ZodString>;
1765
- }, "strip", z.ZodTypeAny, {
1766
- default: string;
1767
- type?: string | undefined;
1768
- displayName?: string | undefined;
1769
- helpText?: string | undefined;
1770
- order?: number | undefined;
1771
- source?: string | undefined;
1772
- }, {
1773
- default: string;
1774
- type?: string | undefined;
1775
- displayName?: string | undefined;
1776
- helpText?: string | undefined;
1777
- order?: number | undefined;
1778
- source?: string | undefined;
1779
- }>>>;
1780
- }, "strip", z.ZodTypeAny, {
1781
- headers?: {
1782
- value: string;
1783
- key: string;
1784
- omitIfEmpty?: boolean | undefined;
1785
- }[] | undefined;
1786
- parameters?: {
1787
- value: string;
1788
- key: string;
1789
- omitIfEmpty?: boolean | undefined;
1790
- }[] | undefined;
1791
- variables?: Record<string, {
1792
- default: string;
1793
- type?: string | undefined;
1794
- displayName?: string | undefined;
1795
- helpText?: string | undefined;
1796
- order?: number | undefined;
1797
- source?: string | undefined;
1798
- }> | undefined;
1799
- }, {
1800
- headers?: {
1801
- value: string;
1802
- key: string;
1803
- omitIfEmpty?: boolean | undefined;
1804
- }[] | undefined;
1805
- parameters?: {
1806
- value: string;
1807
- key: string;
1808
- omitIfEmpty?: boolean | undefined;
1809
- }[] | undefined;
1810
- variables?: Record<string, {
1811
- default: string;
1812
- type?: string | undefined;
1813
- displayName?: string | undefined;
1814
- helpText?: string | undefined;
1815
- order?: number | undefined;
1816
- source?: string | undefined;
1817
- }> | undefined;
1818
- }>, z.ZodObject<{
541
+ }, z.core.$strip>>>;
542
+ }, z.core.$strip>, z.ZodObject<{
1819
543
  url: z.ZodString;
1820
- }, "strip", z.ZodTypeAny, {
1821
- url: string;
1822
- }, {
1823
- url: string;
1824
- }>>>;
1825
- }, "strip", z.ZodTypeAny, {
1826
- unpublished?: ({
1827
- headers?: {
1828
- value: string;
1829
- key: string;
1830
- omitIfEmpty?: boolean | undefined;
1831
- }[] | undefined;
1832
- parameters?: {
1833
- value: string;
1834
- key: string;
1835
- omitIfEmpty?: boolean | undefined;
1836
- }[] | undefined;
1837
- variables?: Record<string, {
1838
- default: string;
1839
- type?: string | undefined;
1840
- displayName?: string | undefined;
1841
- helpText?: string | undefined;
1842
- order?: number | undefined;
1843
- source?: string | undefined;
1844
- }> | undefined;
1845
- } & {
1846
- url: string;
1847
- }) | undefined;
1848
- }, {
1849
- unpublished?: ({
1850
- headers?: {
1851
- value: string;
1852
- key: string;
1853
- omitIfEmpty?: boolean | undefined;
1854
- }[] | undefined;
1855
- parameters?: {
1856
- value: string;
1857
- key: string;
1858
- omitIfEmpty?: boolean | undefined;
1859
- }[] | undefined;
1860
- variables?: Record<string, {
1861
- default: string;
1862
- type?: string | undefined;
1863
- displayName?: string | undefined;
1864
- helpText?: string | undefined;
1865
- order?: number | undefined;
1866
- source?: string | undefined;
1867
- }> | undefined;
1868
- } & {
1869
- url: string;
1870
- }) | undefined;
1871
- }>>;
544
+ }, z.core.$strip>>>;
545
+ }, z.core.$strip>>;
1872
546
  enableUnpublishedMode: z.ZodOptional<z.ZodBoolean>;
1873
- }, "id" | "displayName" | "allowedOnComponents" | "badgeIconUrl" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
1874
- url: string;
1875
- connectorType: string;
1876
- method: "GET" | "POST" | "HEAD";
1877
- custom?: Record<string, unknown> | undefined;
1878
- headers?: {
1879
- value: string;
1880
- key: string;
1881
- omitIfEmpty?: boolean | undefined;
1882
- }[] | undefined;
1883
- parameters?: {
1884
- value: string;
1885
- key: string;
1886
- omitIfEmpty?: boolean | undefined;
1887
- }[] | undefined;
1888
- variables?: Record<string, {
1889
- default: string;
1890
- type?: string | undefined;
1891
- displayName?: string | undefined;
1892
- helpText?: string | undefined;
1893
- order?: number | undefined;
1894
- source?: string | undefined;
1895
- }> | undefined;
1896
- archetype?: string | undefined;
1897
- body?: string | undefined;
1898
- customPublic?: Record<string, unknown> | undefined;
1899
- ttl?: number | undefined;
1900
- localeMapping?: Record<string, string> | undefined;
1901
- uiBadgeText?: string | undefined;
1902
- variants?: {
1903
- unpublished?: ({
1904
- headers?: {
1905
- value: string;
1906
- key: string;
1907
- omitIfEmpty?: boolean | undefined;
1908
- }[] | undefined;
1909
- parameters?: {
1910
- value: string;
1911
- key: string;
1912
- omitIfEmpty?: boolean | undefined;
1913
- }[] | undefined;
1914
- variables?: Record<string, {
1915
- default: string;
1916
- type?: string | undefined;
1917
- displayName?: string | undefined;
1918
- helpText?: string | undefined;
1919
- order?: number | undefined;
1920
- source?: string | undefined;
1921
- }> | undefined;
1922
- } & {
1923
- url: string;
1924
- }) | undefined;
1925
- } | undefined;
1926
- enableUnpublishedMode?: boolean | undefined;
1927
- }, {
1928
- url: string;
1929
- connectorType: string;
1930
- method: "GET" | "POST" | "HEAD";
1931
- custom?: Record<string, unknown> | undefined;
1932
- headers?: {
1933
- value: string;
1934
- key: string;
1935
- omitIfEmpty?: boolean | undefined;
1936
- }[] | undefined;
1937
- parameters?: {
1938
- value: string;
1939
- key: string;
1940
- omitIfEmpty?: boolean | undefined;
1941
- }[] | undefined;
1942
- variables?: Record<string, {
1943
- default: string;
1944
- type?: string | undefined;
1945
- displayName?: string | undefined;
1946
- helpText?: string | undefined;
1947
- order?: number | undefined;
1948
- source?: string | undefined;
1949
- }> | undefined;
1950
- archetype?: string | undefined;
1951
- body?: string | undefined;
1952
- customPublic?: Record<string, unknown> | undefined;
1953
- ttl?: number | undefined;
1954
- localeMapping?: Record<string, string> | undefined;
1955
- uiBadgeText?: string | undefined;
1956
- variants?: {
1957
- unpublished?: ({
1958
- headers?: {
1959
- value: string;
1960
- key: string;
1961
- omitIfEmpty?: boolean | undefined;
1962
- }[] | undefined;
1963
- parameters?: {
1964
- value: string;
1965
- key: string;
1966
- omitIfEmpty?: boolean | undefined;
1967
- }[] | undefined;
1968
- variables?: Record<string, {
1969
- default: string;
1970
- type?: string | undefined;
1971
- displayName?: string | undefined;
1972
- helpText?: string | undefined;
1973
- order?: number | undefined;
1974
- source?: string | undefined;
1975
- }> | undefined;
1976
- } & {
1977
- url: string;
1978
- }) | undefined;
1979
- } | undefined;
1980
- enableUnpublishedMode?: boolean | undefined;
1981
- }>;
547
+ }, z.core.$strip>;
1982
548
  type EdgehancerMergedDataType = z.infer<typeof edgehancerMergedDataTypeSchema>;
1983
549
  type PreRequestEdgehancerDataResourceContext = {
1984
550
  /**
@@ -1999,99 +565,48 @@ type PreRequestEdgehancerContext = {
1999
565
  dataSourceVariant?: DataSourceVariantsKeys;
2000
566
  };
2001
567
  declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
2002
- errors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
568
+ errors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2003
569
  message: z.ZodString;
2004
- subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
570
+ subType: z.ZodOptional<z.ZodEnum<{
571
+ unpublishedData: "unpublishedData";
572
+ configuration: "configuration";
573
+ }>>;
2005
574
  issueReference: z.ZodOptional<z.ZodString>;
2006
575
  deepLink: z.ZodOptional<z.ZodString>;
2007
576
  statusCode: z.ZodOptional<z.ZodNumber>;
2008
- }, "strip", z.ZodTypeAny, {
2009
- message: string;
2010
- subType?: "unpublishedData" | "configuration" | undefined;
2011
- issueReference?: string | undefined;
2012
- deepLink?: string | undefined;
2013
- statusCode?: number | undefined;
2014
- }, {
2015
- message: string;
2016
- subType?: "unpublishedData" | "configuration" | undefined;
2017
- issueReference?: string | undefined;
2018
- deepLink?: string | undefined;
2019
- statusCode?: number | undefined;
2020
- }>]>, "many">>;
2021
- warnings: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
577
+ }, z.core.$strip>]>>>;
578
+ warnings: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2022
579
  message: z.ZodString;
2023
- subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
580
+ subType: z.ZodOptional<z.ZodEnum<{
581
+ unpublishedData: "unpublishedData";
582
+ configuration: "configuration";
583
+ }>>;
2024
584
  issueReference: z.ZodOptional<z.ZodString>;
2025
585
  deepLink: z.ZodOptional<z.ZodString>;
2026
586
  statusCode: z.ZodOptional<z.ZodNumber>;
2027
- }, "strip", z.ZodTypeAny, {
2028
- message: string;
2029
- subType?: "unpublishedData" | "configuration" | undefined;
2030
- issueReference?: string | undefined;
2031
- deepLink?: string | undefined;
2032
- statusCode?: number | undefined;
2033
- }, {
2034
- message: string;
2035
- subType?: "unpublishedData" | "configuration" | undefined;
2036
- issueReference?: string | undefined;
2037
- deepLink?: string | undefined;
2038
- statusCode?: number | undefined;
2039
- }>]>, "many">>;
2040
- infos: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
587
+ }, z.core.$strip>]>>>;
588
+ infos: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2041
589
  message: z.ZodString;
2042
- subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
590
+ subType: z.ZodOptional<z.ZodEnum<{
591
+ unpublishedData: "unpublishedData";
592
+ configuration: "configuration";
593
+ }>>;
2043
594
  issueReference: z.ZodOptional<z.ZodString>;
2044
595
  deepLink: z.ZodOptional<z.ZodString>;
2045
596
  statusCode: z.ZodOptional<z.ZodNumber>;
2046
- }, "strip", z.ZodTypeAny, {
2047
- message: string;
2048
- subType?: "unpublishedData" | "configuration" | undefined;
2049
- issueReference?: string | undefined;
2050
- deepLink?: string | undefined;
2051
- statusCode?: number | undefined;
2052
- }, {
2053
- message: string;
2054
- subType?: "unpublishedData" | "configuration" | undefined;
2055
- issueReference?: string | undefined;
2056
- deepLink?: string | undefined;
2057
- statusCode?: number | undefined;
2058
- }>]>, "many">>;
2059
- dataResource: z.ZodObject<Omit<{
2060
- id: z.ZodString;
2061
- displayName: z.ZodString;
2062
- archetype: z.ZodOptional<z.ZodString>;
2063
- allowedOnComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2064
- badgeIconUrl: z.ZodOptional<z.ZodString>;
2065
- connectorType: z.ZodString;
2066
- url: z.ZodString;
597
+ }, z.core.$strip>]>>>;
598
+ dataResource: z.ZodObject<{
599
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2067
600
  headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2068
601
  key: z.ZodString;
2069
602
  value: z.ZodString;
2070
603
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
2071
- }, "strip", z.ZodTypeAny, {
2072
- value: string;
2073
- key: string;
2074
- omitIfEmpty?: boolean | undefined;
2075
- }, {
2076
- value: string;
2077
- key: string;
2078
- omitIfEmpty?: boolean | undefined;
2079
- }>, "many">>;
604
+ }, z.core.$strip>>>;
2080
605
  parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
2081
606
  key: z.ZodString;
2082
607
  value: z.ZodString;
2083
608
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
2084
- }, "strip", z.ZodTypeAny, {
2085
- value: string;
2086
- key: string;
2087
- omitIfEmpty?: boolean | undefined;
2088
- }, {
2089
- value: string;
2090
- key: string;
2091
- omitIfEmpty?: boolean | undefined;
2092
- }>, "many">>;
2093
- body: z.ZodOptional<z.ZodString>;
2094
- method: z.ZodEnum<["GET", "POST", "HEAD"]>;
609
+ }, z.core.$strip>>>;
2095
610
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2096
611
  displayName: z.ZodOptional<z.ZodString>;
2097
612
  type: z.ZodOptional<z.ZodString>;
@@ -2099,42 +614,19 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
2099
614
  helpText: z.ZodOptional<z.ZodString>;
2100
615
  order: z.ZodOptional<z.ZodNumber>;
2101
616
  source: z.ZodOptional<z.ZodString>;
2102
- }, "strip", z.ZodTypeAny, {
2103
- default: string;
2104
- type?: string | undefined;
2105
- displayName?: string | undefined;
2106
- helpText?: string | undefined;
2107
- order?: number | undefined;
2108
- source?: string | undefined;
2109
- }, {
2110
- default: string;
2111
- type?: string | undefined;
2112
- displayName?: string | undefined;
2113
- helpText?: string | undefined;
2114
- order?: number | undefined;
2115
- source?: string | undefined;
2116
- }>>>;
2117
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
617
+ }, z.core.$strip>>>;
618
+ url: z.ZodString;
619
+ archetype: z.ZodOptional<z.ZodString>;
620
+ connectorType: z.ZodString;
621
+ body: z.ZodOptional<z.ZodString>;
622
+ method: z.ZodEnum<{
623
+ GET: "GET";
624
+ POST: "POST";
625
+ HEAD: "HEAD";
626
+ }>;
2118
627
  customPublic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2119
628
  ttl: z.ZodOptional<z.ZodNumber>;
2120
- purgeKey: z.ZodOptional<z.ZodString>;
2121
629
  localeMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2122
- edgehancer: z.ZodOptional<z.ZodObject<{
2123
- preRequest: z.ZodOptional<z.ZodString>;
2124
- request: z.ZodOptional<z.ZodString>;
2125
- createAIDataResourceEdit: z.ZodOptional<z.ZodString>;
2126
- afterAIDataResourceEdit: z.ZodOptional<z.ZodString>;
2127
- }, "strip", z.ZodTypeAny, {
2128
- preRequest?: string | undefined;
2129
- request?: string | undefined;
2130
- createAIDataResourceEdit?: string | undefined;
2131
- afterAIDataResourceEdit?: string | undefined;
2132
- }, {
2133
- preRequest?: string | undefined;
2134
- request?: string | undefined;
2135
- createAIDataResourceEdit?: string | undefined;
2136
- afterAIDataResourceEdit?: string | undefined;
2137
- }>>;
2138
630
  uiBadgeText: z.ZodOptional<z.ZodString>;
2139
631
  variants: z.ZodOptional<z.ZodObject<{
2140
632
  unpublished: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
@@ -2142,28 +634,12 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
2142
634
  key: z.ZodString;
2143
635
  value: z.ZodString;
2144
636
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
2145
- }, "strip", z.ZodTypeAny, {
2146
- value: string;
2147
- key: string;
2148
- omitIfEmpty?: boolean | undefined;
2149
- }, {
2150
- value: string;
2151
- key: string;
2152
- omitIfEmpty?: boolean | undefined;
2153
- }>, "many">>;
637
+ }, z.core.$strip>>>;
2154
638
  parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
2155
639
  key: z.ZodString;
2156
640
  value: z.ZodString;
2157
641
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
2158
- }, "strip", z.ZodTypeAny, {
2159
- value: string;
2160
- key: string;
2161
- omitIfEmpty?: boolean | undefined;
2162
- }, {
2163
- value: string;
2164
- key: string;
2165
- omitIfEmpty?: boolean | undefined;
2166
- }>, "many">>;
642
+ }, z.core.$strip>>>;
2167
643
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2168
644
  displayName: z.ZodOptional<z.ZodString>;
2169
645
  type: z.ZodOptional<z.ZodString>;
@@ -2171,473 +647,58 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
2171
647
  helpText: z.ZodOptional<z.ZodString>;
2172
648
  order: z.ZodOptional<z.ZodNumber>;
2173
649
  source: z.ZodOptional<z.ZodString>;
2174
- }, "strip", z.ZodTypeAny, {
2175
- default: string;
2176
- type?: string | undefined;
2177
- displayName?: string | undefined;
2178
- helpText?: string | undefined;
2179
- order?: number | undefined;
2180
- source?: string | undefined;
2181
- }, {
2182
- default: string;
2183
- type?: string | undefined;
2184
- displayName?: string | undefined;
2185
- helpText?: string | undefined;
2186
- order?: number | undefined;
2187
- source?: string | undefined;
2188
- }>>>;
2189
- }, "strip", z.ZodTypeAny, {
2190
- headers?: {
2191
- value: string;
2192
- key: string;
2193
- omitIfEmpty?: boolean | undefined;
2194
- }[] | undefined;
2195
- parameters?: {
2196
- value: string;
2197
- key: string;
2198
- omitIfEmpty?: boolean | undefined;
2199
- }[] | undefined;
2200
- variables?: Record<string, {
2201
- default: string;
2202
- type?: string | undefined;
2203
- displayName?: string | undefined;
2204
- helpText?: string | undefined;
2205
- order?: number | undefined;
2206
- source?: string | undefined;
2207
- }> | undefined;
2208
- }, {
2209
- headers?: {
2210
- value: string;
2211
- key: string;
2212
- omitIfEmpty?: boolean | undefined;
2213
- }[] | undefined;
2214
- parameters?: {
2215
- value: string;
2216
- key: string;
2217
- omitIfEmpty?: boolean | undefined;
2218
- }[] | undefined;
2219
- variables?: Record<string, {
2220
- default: string;
2221
- type?: string | undefined;
2222
- displayName?: string | undefined;
2223
- helpText?: string | undefined;
2224
- order?: number | undefined;
2225
- source?: string | undefined;
2226
- }> | undefined;
2227
- }>, z.ZodObject<{
650
+ }, z.core.$strip>>>;
651
+ }, z.core.$strip>, z.ZodObject<{
2228
652
  url: z.ZodString;
2229
- }, "strip", z.ZodTypeAny, {
2230
- url: string;
2231
- }, {
2232
- url: string;
2233
- }>>>;
2234
- }, "strip", z.ZodTypeAny, {
2235
- unpublished?: ({
2236
- headers?: {
2237
- value: string;
2238
- key: string;
2239
- omitIfEmpty?: boolean | undefined;
2240
- }[] | undefined;
2241
- parameters?: {
2242
- value: string;
2243
- key: string;
2244
- omitIfEmpty?: boolean | undefined;
2245
- }[] | undefined;
2246
- variables?: Record<string, {
2247
- default: string;
2248
- type?: string | undefined;
2249
- displayName?: string | undefined;
2250
- helpText?: string | undefined;
2251
- order?: number | undefined;
2252
- source?: string | undefined;
2253
- }> | undefined;
2254
- } & {
2255
- url: string;
2256
- }) | undefined;
2257
- }, {
2258
- unpublished?: ({
2259
- headers?: {
2260
- value: string;
2261
- key: string;
2262
- omitIfEmpty?: boolean | undefined;
2263
- }[] | undefined;
2264
- parameters?: {
2265
- value: string;
2266
- key: string;
2267
- omitIfEmpty?: boolean | undefined;
2268
- }[] | undefined;
2269
- variables?: Record<string, {
2270
- default: string;
2271
- type?: string | undefined;
2272
- displayName?: string | undefined;
2273
- helpText?: string | undefined;
2274
- order?: number | undefined;
2275
- source?: string | undefined;
2276
- }> | undefined;
2277
- } & {
2278
- url: string;
2279
- }) | undefined;
2280
- }>>;
653
+ }, z.core.$strip>>>;
654
+ }, z.core.$strip>>;
2281
655
  enableUnpublishedMode: z.ZodOptional<z.ZodBoolean>;
2282
- }, "id" | "displayName" | "allowedOnComponents" | "badgeIconUrl" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
2283
- url: string;
2284
- connectorType: string;
2285
- method: "GET" | "POST" | "HEAD";
2286
- custom?: Record<string, unknown> | undefined;
2287
- headers?: {
2288
- value: string;
2289
- key: string;
2290
- omitIfEmpty?: boolean | undefined;
2291
- }[] | undefined;
2292
- parameters?: {
2293
- value: string;
2294
- key: string;
2295
- omitIfEmpty?: boolean | undefined;
2296
- }[] | undefined;
2297
- variables?: Record<string, {
2298
- default: string;
2299
- type?: string | undefined;
2300
- displayName?: string | undefined;
2301
- helpText?: string | undefined;
2302
- order?: number | undefined;
2303
- source?: string | undefined;
2304
- }> | undefined;
2305
- archetype?: string | undefined;
2306
- body?: string | undefined;
2307
- customPublic?: Record<string, unknown> | undefined;
2308
- ttl?: number | undefined;
2309
- localeMapping?: Record<string, string> | undefined;
2310
- uiBadgeText?: string | undefined;
2311
- variants?: {
2312
- unpublished?: ({
2313
- headers?: {
2314
- value: string;
2315
- key: string;
2316
- omitIfEmpty?: boolean | undefined;
2317
- }[] | undefined;
2318
- parameters?: {
2319
- value: string;
2320
- key: string;
2321
- omitIfEmpty?: boolean | undefined;
2322
- }[] | undefined;
2323
- variables?: Record<string, {
2324
- default: string;
2325
- type?: string | undefined;
2326
- displayName?: string | undefined;
2327
- helpText?: string | undefined;
2328
- order?: number | undefined;
2329
- source?: string | undefined;
2330
- }> | undefined;
2331
- } & {
2332
- url: string;
2333
- }) | undefined;
2334
- } | undefined;
2335
- enableUnpublishedMode?: boolean | undefined;
2336
- }, {
2337
- url: string;
2338
- connectorType: string;
2339
- method: "GET" | "POST" | "HEAD";
2340
- custom?: Record<string, unknown> | undefined;
2341
- headers?: {
2342
- value: string;
2343
- key: string;
2344
- omitIfEmpty?: boolean | undefined;
2345
- }[] | undefined;
2346
- parameters?: {
2347
- value: string;
2348
- key: string;
2349
- omitIfEmpty?: boolean | undefined;
2350
- }[] | undefined;
2351
- variables?: Record<string, {
2352
- default: string;
2353
- type?: string | undefined;
2354
- displayName?: string | undefined;
2355
- helpText?: string | undefined;
2356
- order?: number | undefined;
2357
- source?: string | undefined;
2358
- }> | undefined;
2359
- archetype?: string | undefined;
2360
- body?: string | undefined;
2361
- customPublic?: Record<string, unknown> | undefined;
2362
- ttl?: number | undefined;
2363
- localeMapping?: Record<string, string> | undefined;
2364
- uiBadgeText?: string | undefined;
2365
- variants?: {
2366
- unpublished?: ({
2367
- headers?: {
2368
- value: string;
2369
- key: string;
2370
- omitIfEmpty?: boolean | undefined;
2371
- }[] | undefined;
2372
- parameters?: {
2373
- value: string;
2374
- key: string;
2375
- omitIfEmpty?: boolean | undefined;
2376
- }[] | undefined;
2377
- variables?: Record<string, {
2378
- default: string;
2379
- type?: string | undefined;
2380
- displayName?: string | undefined;
2381
- helpText?: string | undefined;
2382
- order?: number | undefined;
2383
- source?: string | undefined;
2384
- }> | undefined;
2385
- } & {
2386
- url: string;
2387
- }) | undefined;
2388
- } | undefined;
2389
- enableUnpublishedMode?: boolean | undefined;
2390
- }>;
2391
- }, "strict", z.ZodTypeAny, {
2392
- dataResource: {
2393
- url: string;
2394
- connectorType: string;
2395
- method: "GET" | "POST" | "HEAD";
2396
- custom?: Record<string, unknown> | undefined;
2397
- headers?: {
2398
- value: string;
2399
- key: string;
2400
- omitIfEmpty?: boolean | undefined;
2401
- }[] | undefined;
2402
- parameters?: {
2403
- value: string;
2404
- key: string;
2405
- omitIfEmpty?: boolean | undefined;
2406
- }[] | undefined;
2407
- variables?: Record<string, {
2408
- default: string;
2409
- type?: string | undefined;
2410
- displayName?: string | undefined;
2411
- helpText?: string | undefined;
2412
- order?: number | undefined;
2413
- source?: string | undefined;
2414
- }> | undefined;
2415
- archetype?: string | undefined;
2416
- body?: string | undefined;
2417
- customPublic?: Record<string, unknown> | undefined;
2418
- ttl?: number | undefined;
2419
- localeMapping?: Record<string, string> | undefined;
2420
- uiBadgeText?: string | undefined;
2421
- variants?: {
2422
- unpublished?: ({
2423
- headers?: {
2424
- value: string;
2425
- key: string;
2426
- omitIfEmpty?: boolean | undefined;
2427
- }[] | undefined;
2428
- parameters?: {
2429
- value: string;
2430
- key: string;
2431
- omitIfEmpty?: boolean | undefined;
2432
- }[] | undefined;
2433
- variables?: Record<string, {
2434
- default: string;
2435
- type?: string | undefined;
2436
- displayName?: string | undefined;
2437
- helpText?: string | undefined;
2438
- order?: number | undefined;
2439
- source?: string | undefined;
2440
- }> | undefined;
2441
- } & {
2442
- url: string;
2443
- }) | undefined;
2444
- } | undefined;
2445
- enableUnpublishedMode?: boolean | undefined;
2446
- };
2447
- errors?: (string | {
2448
- message: string;
2449
- subType?: "unpublishedData" | "configuration" | undefined;
2450
- issueReference?: string | undefined;
2451
- deepLink?: string | undefined;
2452
- statusCode?: number | undefined;
2453
- })[] | undefined;
2454
- warnings?: (string | {
2455
- message: string;
2456
- subType?: "unpublishedData" | "configuration" | undefined;
2457
- issueReference?: string | undefined;
2458
- deepLink?: string | undefined;
2459
- statusCode?: number | undefined;
2460
- })[] | undefined;
2461
- infos?: (string | {
2462
- message: string;
2463
- subType?: "unpublishedData" | "configuration" | undefined;
2464
- issueReference?: string | undefined;
2465
- deepLink?: string | undefined;
2466
- statusCode?: number | undefined;
2467
- })[] | undefined;
2468
- }, {
2469
- dataResource: {
2470
- url: string;
2471
- connectorType: string;
2472
- method: "GET" | "POST" | "HEAD";
2473
- custom?: Record<string, unknown> | undefined;
2474
- headers?: {
2475
- value: string;
2476
- key: string;
2477
- omitIfEmpty?: boolean | undefined;
2478
- }[] | undefined;
2479
- parameters?: {
2480
- value: string;
2481
- key: string;
2482
- omitIfEmpty?: boolean | undefined;
2483
- }[] | undefined;
2484
- variables?: Record<string, {
2485
- default: string;
2486
- type?: string | undefined;
2487
- displayName?: string | undefined;
2488
- helpText?: string | undefined;
2489
- order?: number | undefined;
2490
- source?: string | undefined;
2491
- }> | undefined;
2492
- archetype?: string | undefined;
2493
- body?: string | undefined;
2494
- customPublic?: Record<string, unknown> | undefined;
2495
- ttl?: number | undefined;
2496
- localeMapping?: Record<string, string> | undefined;
2497
- uiBadgeText?: string | undefined;
2498
- variants?: {
2499
- unpublished?: ({
2500
- headers?: {
2501
- value: string;
2502
- key: string;
2503
- omitIfEmpty?: boolean | undefined;
2504
- }[] | undefined;
2505
- parameters?: {
2506
- value: string;
2507
- key: string;
2508
- omitIfEmpty?: boolean | undefined;
2509
- }[] | undefined;
2510
- variables?: Record<string, {
2511
- default: string;
2512
- type?: string | undefined;
2513
- displayName?: string | undefined;
2514
- helpText?: string | undefined;
2515
- order?: number | undefined;
2516
- source?: string | undefined;
2517
- }> | undefined;
2518
- } & {
2519
- url: string;
2520
- }) | undefined;
2521
- } | undefined;
2522
- enableUnpublishedMode?: boolean | undefined;
2523
- };
2524
- errors?: (string | {
2525
- message: string;
2526
- subType?: "unpublishedData" | "configuration" | undefined;
2527
- issueReference?: string | undefined;
2528
- deepLink?: string | undefined;
2529
- statusCode?: number | undefined;
2530
- })[] | undefined;
2531
- warnings?: (string | {
2532
- message: string;
2533
- subType?: "unpublishedData" | "configuration" | undefined;
2534
- issueReference?: string | undefined;
2535
- deepLink?: string | undefined;
2536
- statusCode?: number | undefined;
2537
- })[] | undefined;
2538
- infos?: (string | {
2539
- message: string;
2540
- subType?: "unpublishedData" | "configuration" | undefined;
2541
- issueReference?: string | undefined;
2542
- deepLink?: string | undefined;
2543
- statusCode?: number | undefined;
2544
- })[] | undefined;
2545
- }>;
656
+ }, z.core.$strip>;
657
+ }, z.core.$strict>;
2546
658
  declare const preRequestEdgehancerResultSchema: z.ZodObject<{
2547
659
  dataResources: z.ZodArray<z.ZodObject<{
2548
- errors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
660
+ errors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2549
661
  message: z.ZodString;
2550
- subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
662
+ subType: z.ZodOptional<z.ZodEnum<{
663
+ unpublishedData: "unpublishedData";
664
+ configuration: "configuration";
665
+ }>>;
2551
666
  issueReference: z.ZodOptional<z.ZodString>;
2552
667
  deepLink: z.ZodOptional<z.ZodString>;
2553
668
  statusCode: z.ZodOptional<z.ZodNumber>;
2554
- }, "strip", z.ZodTypeAny, {
2555
- message: string;
2556
- subType?: "unpublishedData" | "configuration" | undefined;
2557
- issueReference?: string | undefined;
2558
- deepLink?: string | undefined;
2559
- statusCode?: number | undefined;
2560
- }, {
2561
- message: string;
2562
- subType?: "unpublishedData" | "configuration" | undefined;
2563
- issueReference?: string | undefined;
2564
- deepLink?: string | undefined;
2565
- statusCode?: number | undefined;
2566
- }>]>, "many">>;
2567
- warnings: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
669
+ }, z.core.$strip>]>>>;
670
+ warnings: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2568
671
  message: z.ZodString;
2569
- subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
672
+ subType: z.ZodOptional<z.ZodEnum<{
673
+ unpublishedData: "unpublishedData";
674
+ configuration: "configuration";
675
+ }>>;
2570
676
  issueReference: z.ZodOptional<z.ZodString>;
2571
677
  deepLink: z.ZodOptional<z.ZodString>;
2572
678
  statusCode: z.ZodOptional<z.ZodNumber>;
2573
- }, "strip", z.ZodTypeAny, {
2574
- message: string;
2575
- subType?: "unpublishedData" | "configuration" | undefined;
2576
- issueReference?: string | undefined;
2577
- deepLink?: string | undefined;
2578
- statusCode?: number | undefined;
2579
- }, {
2580
- message: string;
2581
- subType?: "unpublishedData" | "configuration" | undefined;
2582
- issueReference?: string | undefined;
2583
- deepLink?: string | undefined;
2584
- statusCode?: number | undefined;
2585
- }>]>, "many">>;
2586
- infos: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
679
+ }, z.core.$strip>]>>>;
680
+ infos: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2587
681
  message: z.ZodString;
2588
- subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
682
+ subType: z.ZodOptional<z.ZodEnum<{
683
+ unpublishedData: "unpublishedData";
684
+ configuration: "configuration";
685
+ }>>;
2589
686
  issueReference: z.ZodOptional<z.ZodString>;
2590
687
  deepLink: z.ZodOptional<z.ZodString>;
2591
688
  statusCode: z.ZodOptional<z.ZodNumber>;
2592
- }, "strip", z.ZodTypeAny, {
2593
- message: string;
2594
- subType?: "unpublishedData" | "configuration" | undefined;
2595
- issueReference?: string | undefined;
2596
- deepLink?: string | undefined;
2597
- statusCode?: number | undefined;
2598
- }, {
2599
- message: string;
2600
- subType?: "unpublishedData" | "configuration" | undefined;
2601
- issueReference?: string | undefined;
2602
- deepLink?: string | undefined;
2603
- statusCode?: number | undefined;
2604
- }>]>, "many">>;
2605
- dataResource: z.ZodObject<Omit<{
2606
- id: z.ZodString;
2607
- displayName: z.ZodString;
2608
- archetype: z.ZodOptional<z.ZodString>;
2609
- allowedOnComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2610
- badgeIconUrl: z.ZodOptional<z.ZodString>;
2611
- connectorType: z.ZodString;
2612
- url: z.ZodString;
689
+ }, z.core.$strip>]>>>;
690
+ dataResource: z.ZodObject<{
691
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2613
692
  headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2614
693
  key: z.ZodString;
2615
694
  value: z.ZodString;
2616
695
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
2617
- }, "strip", z.ZodTypeAny, {
2618
- value: string;
2619
- key: string;
2620
- omitIfEmpty?: boolean | undefined;
2621
- }, {
2622
- value: string;
2623
- key: string;
2624
- omitIfEmpty?: boolean | undefined;
2625
- }>, "many">>;
696
+ }, z.core.$strip>>>;
2626
697
  parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
2627
698
  key: z.ZodString;
2628
699
  value: z.ZodString;
2629
700
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
2630
- }, "strip", z.ZodTypeAny, {
2631
- value: string;
2632
- key: string;
2633
- omitIfEmpty?: boolean | undefined;
2634
- }, {
2635
- value: string;
2636
- key: string;
2637
- omitIfEmpty?: boolean | undefined;
2638
- }>, "many">>;
2639
- body: z.ZodOptional<z.ZodString>;
2640
- method: z.ZodEnum<["GET", "POST", "HEAD"]>;
701
+ }, z.core.$strip>>>;
2641
702
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2642
703
  displayName: z.ZodOptional<z.ZodString>;
2643
704
  type: z.ZodOptional<z.ZodString>;
@@ -2645,42 +706,19 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
2645
706
  helpText: z.ZodOptional<z.ZodString>;
2646
707
  order: z.ZodOptional<z.ZodNumber>;
2647
708
  source: z.ZodOptional<z.ZodString>;
2648
- }, "strip", z.ZodTypeAny, {
2649
- default: string;
2650
- type?: string | undefined;
2651
- displayName?: string | undefined;
2652
- helpText?: string | undefined;
2653
- order?: number | undefined;
2654
- source?: string | undefined;
2655
- }, {
2656
- default: string;
2657
- type?: string | undefined;
2658
- displayName?: string | undefined;
2659
- helpText?: string | undefined;
2660
- order?: number | undefined;
2661
- source?: string | undefined;
2662
- }>>>;
2663
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
709
+ }, z.core.$strip>>>;
710
+ url: z.ZodString;
711
+ archetype: z.ZodOptional<z.ZodString>;
712
+ connectorType: z.ZodString;
713
+ body: z.ZodOptional<z.ZodString>;
714
+ method: z.ZodEnum<{
715
+ GET: "GET";
716
+ POST: "POST";
717
+ HEAD: "HEAD";
718
+ }>;
2664
719
  customPublic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2665
720
  ttl: z.ZodOptional<z.ZodNumber>;
2666
- purgeKey: z.ZodOptional<z.ZodString>;
2667
721
  localeMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2668
- edgehancer: z.ZodOptional<z.ZodObject<{
2669
- preRequest: z.ZodOptional<z.ZodString>;
2670
- request: z.ZodOptional<z.ZodString>;
2671
- createAIDataResourceEdit: z.ZodOptional<z.ZodString>;
2672
- afterAIDataResourceEdit: z.ZodOptional<z.ZodString>;
2673
- }, "strip", z.ZodTypeAny, {
2674
- preRequest?: string | undefined;
2675
- request?: string | undefined;
2676
- createAIDataResourceEdit?: string | undefined;
2677
- afterAIDataResourceEdit?: string | undefined;
2678
- }, {
2679
- preRequest?: string | undefined;
2680
- request?: string | undefined;
2681
- createAIDataResourceEdit?: string | undefined;
2682
- afterAIDataResourceEdit?: string | undefined;
2683
- }>>;
2684
722
  uiBadgeText: z.ZodOptional<z.ZodString>;
2685
723
  variants: z.ZodOptional<z.ZodObject<{
2686
724
  unpublished: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
@@ -2688,28 +726,12 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
2688
726
  key: z.ZodString;
2689
727
  value: z.ZodString;
2690
728
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
2691
- }, "strip", z.ZodTypeAny, {
2692
- value: string;
2693
- key: string;
2694
- omitIfEmpty?: boolean | undefined;
2695
- }, {
2696
- value: string;
2697
- key: string;
2698
- omitIfEmpty?: boolean | undefined;
2699
- }>, "many">>;
729
+ }, z.core.$strip>>>;
2700
730
  parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
2701
731
  key: z.ZodString;
2702
732
  value: z.ZodString;
2703
733
  omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
2704
- }, "strip", z.ZodTypeAny, {
2705
- value: string;
2706
- key: string;
2707
- omitIfEmpty?: boolean | undefined;
2708
- }, {
2709
- value: string;
2710
- key: string;
2711
- omitIfEmpty?: boolean | undefined;
2712
- }>, "many">>;
734
+ }, z.core.$strip>>>;
2713
735
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2714
736
  displayName: z.ZodOptional<z.ZodString>;
2715
737
  type: z.ZodOptional<z.ZodString>;
@@ -2717,537 +739,15 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
2717
739
  helpText: z.ZodOptional<z.ZodString>;
2718
740
  order: z.ZodOptional<z.ZodNumber>;
2719
741
  source: z.ZodOptional<z.ZodString>;
2720
- }, "strip", z.ZodTypeAny, {
2721
- default: string;
2722
- type?: string | undefined;
2723
- displayName?: string | undefined;
2724
- helpText?: string | undefined;
2725
- order?: number | undefined;
2726
- source?: string | undefined;
2727
- }, {
2728
- default: string;
2729
- type?: string | undefined;
2730
- displayName?: string | undefined;
2731
- helpText?: string | undefined;
2732
- order?: number | undefined;
2733
- source?: string | undefined;
2734
- }>>>;
2735
- }, "strip", z.ZodTypeAny, {
2736
- headers?: {
2737
- value: string;
2738
- key: string;
2739
- omitIfEmpty?: boolean | undefined;
2740
- }[] | undefined;
2741
- parameters?: {
2742
- value: string;
2743
- key: string;
2744
- omitIfEmpty?: boolean | undefined;
2745
- }[] | undefined;
2746
- variables?: Record<string, {
2747
- default: string;
2748
- type?: string | undefined;
2749
- displayName?: string | undefined;
2750
- helpText?: string | undefined;
2751
- order?: number | undefined;
2752
- source?: string | undefined;
2753
- }> | undefined;
2754
- }, {
2755
- headers?: {
2756
- value: string;
2757
- key: string;
2758
- omitIfEmpty?: boolean | undefined;
2759
- }[] | undefined;
2760
- parameters?: {
2761
- value: string;
2762
- key: string;
2763
- omitIfEmpty?: boolean | undefined;
2764
- }[] | undefined;
2765
- variables?: Record<string, {
2766
- default: string;
2767
- type?: string | undefined;
2768
- displayName?: string | undefined;
2769
- helpText?: string | undefined;
2770
- order?: number | undefined;
2771
- source?: string | undefined;
2772
- }> | undefined;
2773
- }>, z.ZodObject<{
742
+ }, z.core.$strip>>>;
743
+ }, z.core.$strip>, z.ZodObject<{
2774
744
  url: z.ZodString;
2775
- }, "strip", z.ZodTypeAny, {
2776
- url: string;
2777
- }, {
2778
- url: string;
2779
- }>>>;
2780
- }, "strip", z.ZodTypeAny, {
2781
- unpublished?: ({
2782
- headers?: {
2783
- value: string;
2784
- key: string;
2785
- omitIfEmpty?: boolean | undefined;
2786
- }[] | undefined;
2787
- parameters?: {
2788
- value: string;
2789
- key: string;
2790
- omitIfEmpty?: boolean | undefined;
2791
- }[] | undefined;
2792
- variables?: Record<string, {
2793
- default: string;
2794
- type?: string | undefined;
2795
- displayName?: string | undefined;
2796
- helpText?: string | undefined;
2797
- order?: number | undefined;
2798
- source?: string | undefined;
2799
- }> | undefined;
2800
- } & {
2801
- url: string;
2802
- }) | undefined;
2803
- }, {
2804
- unpublished?: ({
2805
- headers?: {
2806
- value: string;
2807
- key: string;
2808
- omitIfEmpty?: boolean | undefined;
2809
- }[] | undefined;
2810
- parameters?: {
2811
- value: string;
2812
- key: string;
2813
- omitIfEmpty?: boolean | undefined;
2814
- }[] | undefined;
2815
- variables?: Record<string, {
2816
- default: string;
2817
- type?: string | undefined;
2818
- displayName?: string | undefined;
2819
- helpText?: string | undefined;
2820
- order?: number | undefined;
2821
- source?: string | undefined;
2822
- }> | undefined;
2823
- } & {
2824
- url: string;
2825
- }) | undefined;
2826
- }>>;
745
+ }, z.core.$strip>>>;
746
+ }, z.core.$strip>>;
2827
747
  enableUnpublishedMode: z.ZodOptional<z.ZodBoolean>;
2828
- }, "id" | "displayName" | "allowedOnComponents" | "badgeIconUrl" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
2829
- url: string;
2830
- connectorType: string;
2831
- method: "GET" | "POST" | "HEAD";
2832
- custom?: Record<string, unknown> | undefined;
2833
- headers?: {
2834
- value: string;
2835
- key: string;
2836
- omitIfEmpty?: boolean | undefined;
2837
- }[] | undefined;
2838
- parameters?: {
2839
- value: string;
2840
- key: string;
2841
- omitIfEmpty?: boolean | undefined;
2842
- }[] | undefined;
2843
- variables?: Record<string, {
2844
- default: string;
2845
- type?: string | undefined;
2846
- displayName?: string | undefined;
2847
- helpText?: string | undefined;
2848
- order?: number | undefined;
2849
- source?: string | undefined;
2850
- }> | undefined;
2851
- archetype?: string | undefined;
2852
- body?: string | undefined;
2853
- customPublic?: Record<string, unknown> | undefined;
2854
- ttl?: number | undefined;
2855
- localeMapping?: Record<string, string> | undefined;
2856
- uiBadgeText?: string | undefined;
2857
- variants?: {
2858
- unpublished?: ({
2859
- headers?: {
2860
- value: string;
2861
- key: string;
2862
- omitIfEmpty?: boolean | undefined;
2863
- }[] | undefined;
2864
- parameters?: {
2865
- value: string;
2866
- key: string;
2867
- omitIfEmpty?: boolean | undefined;
2868
- }[] | undefined;
2869
- variables?: Record<string, {
2870
- default: string;
2871
- type?: string | undefined;
2872
- displayName?: string | undefined;
2873
- helpText?: string | undefined;
2874
- order?: number | undefined;
2875
- source?: string | undefined;
2876
- }> | undefined;
2877
- } & {
2878
- url: string;
2879
- }) | undefined;
2880
- } | undefined;
2881
- enableUnpublishedMode?: boolean | undefined;
2882
- }, {
2883
- url: string;
2884
- connectorType: string;
2885
- method: "GET" | "POST" | "HEAD";
2886
- custom?: Record<string, unknown> | undefined;
2887
- headers?: {
2888
- value: string;
2889
- key: string;
2890
- omitIfEmpty?: boolean | undefined;
2891
- }[] | undefined;
2892
- parameters?: {
2893
- value: string;
2894
- key: string;
2895
- omitIfEmpty?: boolean | undefined;
2896
- }[] | undefined;
2897
- variables?: Record<string, {
2898
- default: string;
2899
- type?: string | undefined;
2900
- displayName?: string | undefined;
2901
- helpText?: string | undefined;
2902
- order?: number | undefined;
2903
- source?: string | undefined;
2904
- }> | undefined;
2905
- archetype?: string | undefined;
2906
- body?: string | undefined;
2907
- customPublic?: Record<string, unknown> | undefined;
2908
- ttl?: number | undefined;
2909
- localeMapping?: Record<string, string> | undefined;
2910
- uiBadgeText?: string | undefined;
2911
- variants?: {
2912
- unpublished?: ({
2913
- headers?: {
2914
- value: string;
2915
- key: string;
2916
- omitIfEmpty?: boolean | undefined;
2917
- }[] | undefined;
2918
- parameters?: {
2919
- value: string;
2920
- key: string;
2921
- omitIfEmpty?: boolean | undefined;
2922
- }[] | undefined;
2923
- variables?: Record<string, {
2924
- default: string;
2925
- type?: string | undefined;
2926
- displayName?: string | undefined;
2927
- helpText?: string | undefined;
2928
- order?: number | undefined;
2929
- source?: string | undefined;
2930
- }> | undefined;
2931
- } & {
2932
- url: string;
2933
- }) | undefined;
2934
- } | undefined;
2935
- enableUnpublishedMode?: boolean | undefined;
2936
- }>;
2937
- }, "strict", z.ZodTypeAny, {
2938
- dataResource: {
2939
- url: string;
2940
- connectorType: string;
2941
- method: "GET" | "POST" | "HEAD";
2942
- custom?: Record<string, unknown> | undefined;
2943
- headers?: {
2944
- value: string;
2945
- key: string;
2946
- omitIfEmpty?: boolean | undefined;
2947
- }[] | undefined;
2948
- parameters?: {
2949
- value: string;
2950
- key: string;
2951
- omitIfEmpty?: boolean | undefined;
2952
- }[] | undefined;
2953
- variables?: Record<string, {
2954
- default: string;
2955
- type?: string | undefined;
2956
- displayName?: string | undefined;
2957
- helpText?: string | undefined;
2958
- order?: number | undefined;
2959
- source?: string | undefined;
2960
- }> | undefined;
2961
- archetype?: string | undefined;
2962
- body?: string | undefined;
2963
- customPublic?: Record<string, unknown> | undefined;
2964
- ttl?: number | undefined;
2965
- localeMapping?: Record<string, string> | undefined;
2966
- uiBadgeText?: string | undefined;
2967
- variants?: {
2968
- unpublished?: ({
2969
- headers?: {
2970
- value: string;
2971
- key: string;
2972
- omitIfEmpty?: boolean | undefined;
2973
- }[] | undefined;
2974
- parameters?: {
2975
- value: string;
2976
- key: string;
2977
- omitIfEmpty?: boolean | undefined;
2978
- }[] | undefined;
2979
- variables?: Record<string, {
2980
- default: string;
2981
- type?: string | undefined;
2982
- displayName?: string | undefined;
2983
- helpText?: string | undefined;
2984
- order?: number | undefined;
2985
- source?: string | undefined;
2986
- }> | undefined;
2987
- } & {
2988
- url: string;
2989
- }) | undefined;
2990
- } | undefined;
2991
- enableUnpublishedMode?: boolean | undefined;
2992
- };
2993
- errors?: (string | {
2994
- message: string;
2995
- subType?: "unpublishedData" | "configuration" | undefined;
2996
- issueReference?: string | undefined;
2997
- deepLink?: string | undefined;
2998
- statusCode?: number | undefined;
2999
- })[] | undefined;
3000
- warnings?: (string | {
3001
- message: string;
3002
- subType?: "unpublishedData" | "configuration" | undefined;
3003
- issueReference?: string | undefined;
3004
- deepLink?: string | undefined;
3005
- statusCode?: number | undefined;
3006
- })[] | undefined;
3007
- infos?: (string | {
3008
- message: string;
3009
- subType?: "unpublishedData" | "configuration" | undefined;
3010
- issueReference?: string | undefined;
3011
- deepLink?: string | undefined;
3012
- statusCode?: number | undefined;
3013
- })[] | undefined;
3014
- }, {
3015
- dataResource: {
3016
- url: string;
3017
- connectorType: string;
3018
- method: "GET" | "POST" | "HEAD";
3019
- custom?: Record<string, unknown> | undefined;
3020
- headers?: {
3021
- value: string;
3022
- key: string;
3023
- omitIfEmpty?: boolean | undefined;
3024
- }[] | undefined;
3025
- parameters?: {
3026
- value: string;
3027
- key: string;
3028
- omitIfEmpty?: boolean | undefined;
3029
- }[] | undefined;
3030
- variables?: Record<string, {
3031
- default: string;
3032
- type?: string | undefined;
3033
- displayName?: string | undefined;
3034
- helpText?: string | undefined;
3035
- order?: number | undefined;
3036
- source?: string | undefined;
3037
- }> | undefined;
3038
- archetype?: string | undefined;
3039
- body?: string | undefined;
3040
- customPublic?: Record<string, unknown> | undefined;
3041
- ttl?: number | undefined;
3042
- localeMapping?: Record<string, string> | undefined;
3043
- uiBadgeText?: string | undefined;
3044
- variants?: {
3045
- unpublished?: ({
3046
- headers?: {
3047
- value: string;
3048
- key: string;
3049
- omitIfEmpty?: boolean | undefined;
3050
- }[] | undefined;
3051
- parameters?: {
3052
- value: string;
3053
- key: string;
3054
- omitIfEmpty?: boolean | undefined;
3055
- }[] | undefined;
3056
- variables?: Record<string, {
3057
- default: string;
3058
- type?: string | undefined;
3059
- displayName?: string | undefined;
3060
- helpText?: string | undefined;
3061
- order?: number | undefined;
3062
- source?: string | undefined;
3063
- }> | undefined;
3064
- } & {
3065
- url: string;
3066
- }) | undefined;
3067
- } | undefined;
3068
- enableUnpublishedMode?: boolean | undefined;
3069
- };
3070
- errors?: (string | {
3071
- message: string;
3072
- subType?: "unpublishedData" | "configuration" | undefined;
3073
- issueReference?: string | undefined;
3074
- deepLink?: string | undefined;
3075
- statusCode?: number | undefined;
3076
- })[] | undefined;
3077
- warnings?: (string | {
3078
- message: string;
3079
- subType?: "unpublishedData" | "configuration" | undefined;
3080
- issueReference?: string | undefined;
3081
- deepLink?: string | undefined;
3082
- statusCode?: number | undefined;
3083
- })[] | undefined;
3084
- infos?: (string | {
3085
- message: string;
3086
- subType?: "unpublishedData" | "configuration" | undefined;
3087
- issueReference?: string | undefined;
3088
- deepLink?: string | undefined;
3089
- statusCode?: number | undefined;
3090
- })[] | undefined;
3091
- }>, "many">;
3092
- }, "strict", z.ZodTypeAny, {
3093
- dataResources: {
3094
- dataResource: {
3095
- url: string;
3096
- connectorType: string;
3097
- method: "GET" | "POST" | "HEAD";
3098
- custom?: Record<string, unknown> | undefined;
3099
- headers?: {
3100
- value: string;
3101
- key: string;
3102
- omitIfEmpty?: boolean | undefined;
3103
- }[] | undefined;
3104
- parameters?: {
3105
- value: string;
3106
- key: string;
3107
- omitIfEmpty?: boolean | undefined;
3108
- }[] | undefined;
3109
- variables?: Record<string, {
3110
- default: string;
3111
- type?: string | undefined;
3112
- displayName?: string | undefined;
3113
- helpText?: string | undefined;
3114
- order?: number | undefined;
3115
- source?: string | undefined;
3116
- }> | undefined;
3117
- archetype?: string | undefined;
3118
- body?: string | undefined;
3119
- customPublic?: Record<string, unknown> | undefined;
3120
- ttl?: number | undefined;
3121
- localeMapping?: Record<string, string> | undefined;
3122
- uiBadgeText?: string | undefined;
3123
- variants?: {
3124
- unpublished?: ({
3125
- headers?: {
3126
- value: string;
3127
- key: string;
3128
- omitIfEmpty?: boolean | undefined;
3129
- }[] | undefined;
3130
- parameters?: {
3131
- value: string;
3132
- key: string;
3133
- omitIfEmpty?: boolean | undefined;
3134
- }[] | undefined;
3135
- variables?: Record<string, {
3136
- default: string;
3137
- type?: string | undefined;
3138
- displayName?: string | undefined;
3139
- helpText?: string | undefined;
3140
- order?: number | undefined;
3141
- source?: string | undefined;
3142
- }> | undefined;
3143
- } & {
3144
- url: string;
3145
- }) | undefined;
3146
- } | undefined;
3147
- enableUnpublishedMode?: boolean | undefined;
3148
- };
3149
- errors?: (string | {
3150
- message: string;
3151
- subType?: "unpublishedData" | "configuration" | undefined;
3152
- issueReference?: string | undefined;
3153
- deepLink?: string | undefined;
3154
- statusCode?: number | undefined;
3155
- })[] | undefined;
3156
- warnings?: (string | {
3157
- message: string;
3158
- subType?: "unpublishedData" | "configuration" | undefined;
3159
- issueReference?: string | undefined;
3160
- deepLink?: string | undefined;
3161
- statusCode?: number | undefined;
3162
- })[] | undefined;
3163
- infos?: (string | {
3164
- message: string;
3165
- subType?: "unpublishedData" | "configuration" | undefined;
3166
- issueReference?: string | undefined;
3167
- deepLink?: string | undefined;
3168
- statusCode?: number | undefined;
3169
- })[] | undefined;
3170
- }[];
3171
- }, {
3172
- dataResources: {
3173
- dataResource: {
3174
- url: string;
3175
- connectorType: string;
3176
- method: "GET" | "POST" | "HEAD";
3177
- custom?: Record<string, unknown> | undefined;
3178
- headers?: {
3179
- value: string;
3180
- key: string;
3181
- omitIfEmpty?: boolean | undefined;
3182
- }[] | undefined;
3183
- parameters?: {
3184
- value: string;
3185
- key: string;
3186
- omitIfEmpty?: boolean | undefined;
3187
- }[] | undefined;
3188
- variables?: Record<string, {
3189
- default: string;
3190
- type?: string | undefined;
3191
- displayName?: string | undefined;
3192
- helpText?: string | undefined;
3193
- order?: number | undefined;
3194
- source?: string | undefined;
3195
- }> | undefined;
3196
- archetype?: string | undefined;
3197
- body?: string | undefined;
3198
- customPublic?: Record<string, unknown> | undefined;
3199
- ttl?: number | undefined;
3200
- localeMapping?: Record<string, string> | undefined;
3201
- uiBadgeText?: string | undefined;
3202
- variants?: {
3203
- unpublished?: ({
3204
- headers?: {
3205
- value: string;
3206
- key: string;
3207
- omitIfEmpty?: boolean | undefined;
3208
- }[] | undefined;
3209
- parameters?: {
3210
- value: string;
3211
- key: string;
3212
- omitIfEmpty?: boolean | undefined;
3213
- }[] | undefined;
3214
- variables?: Record<string, {
3215
- default: string;
3216
- type?: string | undefined;
3217
- displayName?: string | undefined;
3218
- helpText?: string | undefined;
3219
- order?: number | undefined;
3220
- source?: string | undefined;
3221
- }> | undefined;
3222
- } & {
3223
- url: string;
3224
- }) | undefined;
3225
- } | undefined;
3226
- enableUnpublishedMode?: boolean | undefined;
3227
- };
3228
- errors?: (string | {
3229
- message: string;
3230
- subType?: "unpublishedData" | "configuration" | undefined;
3231
- issueReference?: string | undefined;
3232
- deepLink?: string | undefined;
3233
- statusCode?: number | undefined;
3234
- })[] | undefined;
3235
- warnings?: (string | {
3236
- message: string;
3237
- subType?: "unpublishedData" | "configuration" | undefined;
3238
- issueReference?: string | undefined;
3239
- deepLink?: string | undefined;
3240
- statusCode?: number | undefined;
3241
- })[] | undefined;
3242
- infos?: (string | {
3243
- message: string;
3244
- subType?: "unpublishedData" | "configuration" | undefined;
3245
- issueReference?: string | undefined;
3246
- deepLink?: string | undefined;
3247
- statusCode?: number | undefined;
3248
- })[] | undefined;
3249
- }[];
3250
- }>;
748
+ }, z.core.$strip>;
749
+ }, z.core.$strict>>;
750
+ }, z.core.$strict>;
3251
751
  type PreRequestEdgehancerResult = z.infer<typeof preRequestEdgehancerResultSchema>;
3252
752
  type PreRequestEdgehancerDataResourceResult = z.infer<typeof preRequestEdgehancerDataResourceResultSchema>;
3253
753
  type PreRequestHookFn = (context: PreRequestEdgehancerContext) => Promise<PreRequestEdgehancerResult>;