@uniformdev/mesh-edgehancer-sdk 20.50.2-alpha.9 → 20.50.2-alpha.96

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