@conduit-client/model 3.8.0 → 3.9.0

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.
Files changed (52) hide show
  1. package/dist/types/v1/index.d.ts +1 -0
  2. package/dist/types/v1/parser/__tests__/test-utils.d.ts +37 -5
  3. package/dist/types/v1/parser/amf/endpoints/amf-operation.d.ts +1 -4042
  4. package/dist/types/v1/parser/swagger/SwaggerAPI.d.ts +50 -0
  5. package/dist/types/v1/parser/swagger/__tests__/parser.spec.d.ts +1 -0
  6. package/dist/types/v1/parser/swagger/__tests__/swagger-api-service.spec.d.ts +1 -0
  7. package/dist/types/v1/parser/swagger/__tests__/swagger-extensions.spec.d.ts +1 -0
  8. package/dist/types/v1/parser/swagger/__tests__/swagger-types.spec.d.ts +1 -0
  9. package/dist/types/v1/parser/swagger/__tests__/swagger-utils.spec.d.ts +1 -0
  10. package/dist/types/v1/parser/swagger/__tests__/validation.spec.d.ts +1 -0
  11. package/dist/types/v1/parser/swagger/__tests__/version.spec.d.ts +1 -0
  12. package/dist/types/v1/parser/swagger/endpoints/swagger-endpoint.d.ts +30 -0
  13. package/dist/types/v1/parser/swagger/endpoints/swagger-operation.d.ts +71 -0
  14. package/dist/types/v1/parser/swagger/index.d.ts +4 -0
  15. package/dist/types/v1/parser/swagger/parser.d.ts +19 -0
  16. package/dist/types/v1/parser/swagger/source-position-map.d.ts +39 -0
  17. package/dist/types/v1/parser/swagger/swagger-api-service.d.ts +8 -0
  18. package/dist/types/v1/parser/swagger/swagger-extensions.d.ts +8 -0
  19. package/dist/types/v1/parser/swagger/swagger-utils.d.ts +37 -0
  20. package/dist/types/v1/parser/swagger/types/SwaggerAllOfType.d.ts +22 -0
  21. package/dist/types/v1/parser/swagger/types/SwaggerAnyType.d.ts +7 -0
  22. package/dist/types/v1/parser/swagger/types/SwaggerArrayType.d.ts +9 -0
  23. package/dist/types/v1/parser/swagger/types/SwaggerBaseType.d.ts +26 -0
  24. package/dist/types/v1/parser/swagger/types/SwaggerDiscriminatedObjectType.d.ts +26 -0
  25. package/dist/types/v1/parser/swagger/types/SwaggerEnumType.d.ts +13 -0
  26. package/dist/types/v1/parser/swagger/types/SwaggerNilType.d.ts +7 -0
  27. package/dist/types/v1/parser/swagger/types/SwaggerNotType.d.ts +13 -0
  28. package/dist/types/v1/parser/swagger/types/SwaggerObjectType.d.ts +13 -0
  29. package/dist/types/v1/parser/swagger/types/SwaggerOneOfType.d.ts +16 -0
  30. package/dist/types/v1/parser/swagger/types/SwaggerRefType.d.ts +12 -0
  31. package/dist/types/v1/parser/swagger/types/SwaggerScalarTypes.d.ts +46 -0
  32. package/dist/types/v1/parser/swagger/types/__tests__/SwaggerAnyType.spec.d.ts +1 -0
  33. package/dist/types/v1/parser/swagger/types/__tests__/SwaggerArrayType.spec.d.ts +1 -0
  34. package/dist/types/v1/parser/swagger/types/__tests__/SwaggerBaseType.spec.d.ts +1 -0
  35. package/dist/types/v1/parser/swagger/types/__tests__/SwaggerDiscriminatedObjectType.spec.d.ts +1 -0
  36. package/dist/types/v1/parser/swagger/types/__tests__/SwaggerEnumType.spec.d.ts +1 -0
  37. package/dist/types/v1/parser/swagger/types/__tests__/SwaggerNilType.spec.d.ts +1 -0
  38. package/dist/types/v1/parser/swagger/types/__tests__/SwaggerNotType.spec.d.ts +1 -0
  39. package/dist/types/v1/parser/swagger/types/__tests__/SwaggerObjectType.spec.d.ts +1 -0
  40. package/dist/types/v1/parser/swagger/types/__tests__/SwaggerOneOfType.spec.d.ts +1 -0
  41. package/dist/types/v1/parser/swagger/types/__tests__/SwaggerScalarType.spec.d.ts +1 -0
  42. package/dist/types/v1/parser/swagger/types/factory.d.ts +22 -0
  43. package/dist/types/v1/parser/swagger/types/index.d.ts +21 -0
  44. package/dist/types/v1/parser/swagger/validation.d.ts +11 -0
  45. package/dist/types/v1/parser/swagger/version.d.ts +6 -0
  46. package/dist/types/v1/parser/zod-schemas.d.ts +4206 -0
  47. package/dist/v1/index.js +7891 -111
  48. package/dist/v1/index.js.map +1 -1
  49. package/package.json +5 -3
  50. /package/dist/types/v1/parser/{amf/__tests__/amf-extensions-services.spec.d.ts → __tests__/extensions-services.spec.d.ts} +0 -0
  51. /package/dist/types/v1/parser/{amf/endpoints/__tests__/amf-endpoint.spec.d.ts → __tests__/parser-endpoint.spec.d.ts} +0 -0
  52. /package/dist/types/v1/parser/{amf/endpoints/__tests__/amf-operation.spec.d.ts → __tests__/parser-operation.spec.d.ts} +0 -0
@@ -1,5 +1,4 @@
1
1
  import { type LoggerService, type FileParserLogger } from '@conduit-client/utils';
2
- import { z } from 'zod';
3
2
  import type amf from 'amf-client-js';
4
3
  import type { BaseAuraOperation, AuraOperationWithRequestBody, BaseOperation, HttpMethod, Parameter, Payload, Request, Response, CacheStrategy, ConfigSchemaType, OperationType, ErrorStrategy, Binding, BaseHttpOperation, HttpOperationWithRequestBody, BaseGraphQLOperation } from '../../../api/endpoint';
5
4
  import type { AMFType, AMFTypeFactory } from '../types';
@@ -7,4047 +6,7 @@ import type { TypeRegistry } from '../../../types';
7
6
  import type { AmfEndPoint } from './amf-endpoint';
8
7
  import type { API, Server } from '../../../api';
9
8
  import { type ResolvedOperationServices } from '../../../api/service-overrides';
10
- export declare class OperationSchemaBuilder {
11
- private method;
12
- private operationId;
13
- private operationCacheStrategyType;
14
- constructor(method: HttpMethod, operationId: string | undefined, operationCacheStrategyType: Pick<CacheStrategy, 'type'>);
15
- buildOperationSchema(): z.ZodObject<{
16
- onestore: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodObject<{
17
- config: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodObject<{
18
- 'operation-type': z.ZodDefault<z.ZodEnum<["query", "mutation", "graphql"]>>;
19
- schema: z.ZodDefault<z.ZodEnum<["flattened", "default"]>>;
20
- bindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
21
- type: z.ZodDefault<z.ZodEnum<["wire", "imperative", "imperative-legacy", "mutation"]>>;
22
- identifier: z.ZodDefault<z.ZodString>;
23
- }, "strip", z.ZodTypeAny, {
24
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
25
- identifier: string;
26
- }, {
27
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
28
- identifier?: string | undefined;
29
- }>, "many">>;
30
- exposeRefresh: z.ZodDefault<z.ZodBoolean>;
31
- 'body-param': z.ZodOptional<z.ZodString>;
32
- }, "strip", z.ZodTypeAny, {
33
- bindings: {
34
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
35
- identifier: string;
36
- }[];
37
- 'operation-type': "mutation" | "query" | "graphql";
38
- schema: "default" | "flattened";
39
- exposeRefresh: boolean;
40
- 'body-param'?: string | undefined;
41
- }, {
42
- bindings?: {
43
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
44
- identifier?: string | undefined;
45
- }[] | undefined;
46
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
47
- schema?: "default" | "flattened" | undefined;
48
- exposeRefresh?: boolean | undefined;
49
- 'body-param'?: string | undefined;
50
- }>>, {
51
- bindings: {
52
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
53
- identifier: string;
54
- }[];
55
- 'operation-type': "mutation" | "query" | "graphql";
56
- schema: "default" | "flattened";
57
- exposeRefresh: boolean;
58
- 'body-param'?: string | undefined;
59
- }, {
60
- bindings?: {
61
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
62
- identifier?: string | undefined;
63
- }[] | undefined;
64
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
65
- schema?: "default" | "flattened" | undefined;
66
- exposeRefresh?: boolean | undefined;
67
- 'body-param'?: string | undefined;
68
- } | undefined>, {
69
- bindings: {
70
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
71
- identifier: string;
72
- }[];
73
- 'operation-type': "mutation" | "query" | "graphql";
74
- schema: "default" | "flattened";
75
- exposeRefresh: boolean;
76
- 'body-param'?: string | undefined;
77
- }, {
78
- bindings?: {
79
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
80
- identifier?: string | undefined;
81
- }[] | undefined;
82
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
83
- schema?: "default" | "flattened" | undefined;
84
- exposeRefresh?: boolean | undefined;
85
- 'body-param'?: string | undefined;
86
- } | undefined>, {
87
- bindings: {
88
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
89
- identifier: string;
90
- }[];
91
- 'operation-type': "mutation" | "query" | "graphql";
92
- schema: "default" | "flattened";
93
- exposeRefresh: boolean;
94
- 'body-param'?: string | undefined;
95
- }, {
96
- bindings?: {
97
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
98
- identifier?: string | undefined;
99
- }[] | undefined;
100
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
101
- schema?: "default" | "flattened" | undefined;
102
- exposeRefresh?: boolean | undefined;
103
- 'body-param'?: string | undefined;
104
- } | undefined>, {
105
- bindings: {
106
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
107
- identifier: string;
108
- }[];
109
- 'operation-type': "mutation" | "query" | "graphql";
110
- schema: "default" | "flattened";
111
- exposeRefresh: boolean;
112
- 'body-param'?: string | undefined;
113
- }, {
114
- bindings?: {
115
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
116
- identifier?: string | undefined;
117
- }[] | undefined;
118
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
119
- schema?: "default" | "flattened" | undefined;
120
- exposeRefresh?: boolean | undefined;
121
- 'body-param'?: string | undefined;
122
- } | undefined>, {
123
- bindings: {
124
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
125
- identifier: string;
126
- }[];
127
- 'operation-type': "mutation" | "query" | "graphql";
128
- schema: "default" | "flattened";
129
- exposeRefresh: boolean;
130
- 'body-param'?: string | undefined;
131
- }, {
132
- bindings?: {
133
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
134
- identifier?: string | undefined;
135
- }[] | undefined;
136
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
137
- schema?: "default" | "flattened" | undefined;
138
- exposeRefresh?: boolean | undefined;
139
- 'body-param'?: string | undefined;
140
- } | undefined>, {
141
- bindings: {
142
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
143
- identifier: string;
144
- }[];
145
- 'operation-type': "mutation" | "query" | "graphql";
146
- schema: "default" | "flattened";
147
- exposeRefresh: boolean;
148
- 'body-param'?: string | undefined;
149
- }, {
150
- bindings?: {
151
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
152
- identifier?: string | undefined;
153
- }[] | undefined;
154
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
155
- schema?: "default" | "flattened" | undefined;
156
- exposeRefresh?: boolean | undefined;
157
- 'body-param'?: string | undefined;
158
- } | undefined>, {
159
- bindings: {
160
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
161
- identifier: string;
162
- }[];
163
- 'operation-type': "mutation" | "query" | "graphql";
164
- schema: "default" | "flattened";
165
- exposeRefresh: boolean;
166
- 'body-param'?: string | undefined;
167
- }, {
168
- bindings?: {
169
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
170
- identifier?: string | undefined;
171
- }[] | undefined;
172
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
173
- schema?: "default" | "flattened" | undefined;
174
- exposeRefresh?: boolean | undefined;
175
- 'body-param'?: string | undefined;
176
- } | undefined>, {
177
- bindings: {
178
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
179
- identifier: string;
180
- }[];
181
- 'operation-type': "mutation" | "query" | "graphql";
182
- schema: "default" | "flattened";
183
- exposeRefresh: boolean;
184
- 'body-param'?: string | undefined;
185
- }, {
186
- bindings?: {
187
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
188
- identifier?: string | undefined;
189
- }[] | undefined;
190
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
191
- schema?: "default" | "flattened" | undefined;
192
- exposeRefresh?: boolean | undefined;
193
- 'body-param'?: string | undefined;
194
- } | undefined>;
195
- 'cache-strategy': z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
196
- type: z.ZodLiteral<"none">;
197
- }, "strict", z.ZodTypeAny, {
198
- type: "none";
199
- }, {
200
- type: "none";
201
- }>, z.ZodObject<{
202
- type: z.ZodLiteral<"resource">;
203
- config: z.ZodObject<{
204
- 'max-age': z.ZodNumber;
205
- 'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
206
- }, "strict", z.ZodTypeAny, {
207
- 'max-age': number;
208
- 'stale-while-revalidate'?: number | undefined;
209
- }, {
210
- 'max-age': number;
211
- 'stale-while-revalidate'?: number | undefined;
212
- }>;
213
- }, "strict", z.ZodTypeAny, {
214
- type: "resource";
215
- config: {
216
- 'max-age': number;
217
- 'stale-while-revalidate'?: number | undefined;
218
- };
219
- }, {
220
- type: "resource";
221
- config: {
222
- 'max-age': number;
223
- 'stale-while-revalidate'?: number | undefined;
224
- };
225
- }>, z.ZodObject<{
226
- type: z.ZodLiteral<"normalized">;
227
- 'cache-control': z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
228
- type: z.ZodLiteral<"max-age">;
229
- 'max-age': z.ZodNumber;
230
- 'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
231
- }, "strict", z.ZodTypeAny, {
232
- 'max-age': number;
233
- type: "max-age";
234
- 'stale-while-revalidate'?: number | undefined;
235
- }, {
236
- 'max-age': number;
237
- type: "max-age";
238
- 'stale-while-revalidate'?: number | undefined;
239
- }>, z.ZodObject<{
240
- type: z.ZodLiteral<"no-cache">;
241
- }, "strip", z.ZodTypeAny, {
242
- type: "no-cache";
243
- }, {
244
- type: "no-cache";
245
- }>]>>;
246
- key: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
247
- }, "strict", z.ZodTypeAny, {
248
- type: "normalized";
249
- key?: Record<string, string> | undefined;
250
- 'cache-control'?: {
251
- 'max-age': number;
252
- type: "max-age";
253
- 'stale-while-revalidate'?: number | undefined;
254
- } | {
255
- type: "no-cache";
256
- } | undefined;
257
- }, {
258
- type: "normalized";
259
- key?: Record<string, string> | undefined;
260
- 'cache-control'?: {
261
- 'max-age': number;
262
- type: "max-age";
263
- 'stale-while-revalidate'?: number | undefined;
264
- } | {
265
- type: "no-cache";
266
- } | undefined;
267
- }>]>, {
268
- type: "none";
269
- } | {
270
- type: "resource";
271
- config: {
272
- 'max-age': number;
273
- 'stale-while-revalidate'?: number | undefined;
274
- };
275
- } | {
276
- type: "normalized";
277
- key?: Record<string, string> | undefined;
278
- 'cache-control'?: {
279
- 'max-age': number;
280
- type: "max-age";
281
- 'stale-while-revalidate'?: number | undefined;
282
- } | {
283
- type: "no-cache";
284
- } | undefined;
285
- }, unknown>;
286
- 'error-strategy': z.ZodDefault<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
287
- type: z.ZodLiteral<"stringified">;
288
- }, "strict", z.ZodTypeAny, {
289
- type: "stringified";
290
- }, {
291
- type: "stringified";
292
- }>, z.ZodObject<{
293
- type: z.ZodLiteral<"fetchResponse">;
294
- }, "strict", z.ZodTypeAny, {
295
- type: "fetchResponse";
296
- }, {
297
- type: "fetchResponse";
298
- }>]>>;
299
- services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
300
- ref: z.ZodString;
301
- }, "strict", z.ZodTypeAny, {
302
- ref: string;
303
- }, {
304
- ref: string;
305
- }>, z.ZodEffects<z.ZodObject<{
306
- version: z.ZodString;
307
- tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
308
- optional: z.ZodOptional<z.ZodBoolean>;
309
- }, "strict", z.ZodTypeAny, {
310
- version: string;
311
- tags?: Record<string, string> | undefined;
312
- optional?: boolean | undefined;
313
- }, {
314
- version: string;
315
- tags?: Record<string, string> | undefined;
316
- optional?: boolean | undefined;
317
- }>, {
318
- version: string;
319
- tags?: Record<string, string> | undefined;
320
- optional?: boolean | undefined;
321
- }, {
322
- version: string;
323
- tags?: Record<string, string> | undefined;
324
- optional?: boolean | undefined;
325
- }>]>>>;
326
- }, "strict", z.ZodTypeAny, {
327
- config: {
328
- bindings: {
329
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
330
- identifier: string;
331
- }[];
332
- 'operation-type': "mutation" | "query" | "graphql";
333
- schema: "default" | "flattened";
334
- exposeRefresh: boolean;
335
- 'body-param'?: string | undefined;
336
- };
337
- 'cache-strategy': {
338
- type: "none";
339
- } | {
340
- type: "resource";
341
- config: {
342
- 'max-age': number;
343
- 'stale-while-revalidate'?: number | undefined;
344
- };
345
- } | {
346
- type: "normalized";
347
- key?: Record<string, string> | undefined;
348
- 'cache-control'?: {
349
- 'max-age': number;
350
- type: "max-age";
351
- 'stale-while-revalidate'?: number | undefined;
352
- } | {
353
- type: "no-cache";
354
- } | undefined;
355
- };
356
- 'error-strategy': {
357
- type: "stringified";
358
- } | {
359
- type: "fetchResponse";
360
- };
361
- services?: Record<string, {
362
- ref: string;
363
- } | {
364
- version: string;
365
- tags?: Record<string, string> | undefined;
366
- optional?: boolean | undefined;
367
- }> | undefined;
368
- }, {
369
- services?: Record<string, {
370
- ref: string;
371
- } | {
372
- version: string;
373
- tags?: Record<string, string> | undefined;
374
- optional?: boolean | undefined;
375
- }> | undefined;
376
- config?: {
377
- bindings?: {
378
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
379
- identifier?: string | undefined;
380
- }[] | undefined;
381
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
382
- schema?: "default" | "flattened" | undefined;
383
- exposeRefresh?: boolean | undefined;
384
- 'body-param'?: string | undefined;
385
- } | undefined;
386
- 'cache-strategy'?: unknown;
387
- 'error-strategy'?: {
388
- type: "stringified";
389
- } | {
390
- type: "fetchResponse";
391
- } | undefined;
392
- }>>, {
393
- config: {
394
- bindings: {
395
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
396
- identifier: string;
397
- }[];
398
- 'operation-type': "mutation" | "query" | "graphql";
399
- schema: "default" | "flattened";
400
- exposeRefresh: boolean;
401
- 'body-param'?: string | undefined;
402
- };
403
- 'cache-strategy': {
404
- type: "none";
405
- } | {
406
- type: "resource";
407
- config: {
408
- 'max-age': number;
409
- 'stale-while-revalidate'?: number | undefined;
410
- };
411
- } | {
412
- type: "normalized";
413
- key?: Record<string, string> | undefined;
414
- 'cache-control'?: {
415
- 'max-age': number;
416
- type: "max-age";
417
- 'stale-while-revalidate'?: number | undefined;
418
- } | {
419
- type: "no-cache";
420
- } | undefined;
421
- };
422
- 'error-strategy': {
423
- type: "stringified";
424
- } | {
425
- type: "fetchResponse";
426
- };
427
- services?: Record<string, {
428
- ref: string;
429
- } | {
430
- version: string;
431
- tags?: Record<string, string> | undefined;
432
- optional?: boolean | undefined;
433
- }> | undefined;
434
- }, {
435
- services?: Record<string, {
436
- ref: string;
437
- } | {
438
- version: string;
439
- tags?: Record<string, string> | undefined;
440
- optional?: boolean | undefined;
441
- }> | undefined;
442
- config?: {
443
- bindings?: {
444
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
445
- identifier?: string | undefined;
446
- }[] | undefined;
447
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
448
- schema?: "default" | "flattened" | undefined;
449
- exposeRefresh?: boolean | undefined;
450
- 'body-param'?: string | undefined;
451
- } | undefined;
452
- 'cache-strategy'?: unknown;
453
- 'error-strategy'?: {
454
- type: "stringified";
455
- } | {
456
- type: "fetchResponse";
457
- } | undefined;
458
- } | undefined>, {
459
- config: {
460
- bindings: {
461
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
462
- identifier: string;
463
- }[];
464
- 'operation-type': "mutation" | "query" | "graphql";
465
- schema: "default" | "flattened";
466
- exposeRefresh: boolean;
467
- 'body-param'?: string | undefined;
468
- };
469
- 'cache-strategy': {
470
- type: "none";
471
- } | {
472
- type: "resource";
473
- config: {
474
- 'max-age': number;
475
- 'stale-while-revalidate'?: number | undefined;
476
- };
477
- } | {
478
- type: "normalized";
479
- key?: Record<string, string> | undefined;
480
- 'cache-control'?: {
481
- 'max-age': number;
482
- type: "max-age";
483
- 'stale-while-revalidate'?: number | undefined;
484
- } | {
485
- type: "no-cache";
486
- } | undefined;
487
- };
488
- 'error-strategy': {
489
- type: "stringified";
490
- } | {
491
- type: "fetchResponse";
492
- };
493
- services?: Record<string, {
494
- ref: string;
495
- } | {
496
- version: string;
497
- tags?: Record<string, string> | undefined;
498
- optional?: boolean | undefined;
499
- }> | undefined;
500
- }, {
501
- services?: Record<string, {
502
- ref: string;
503
- } | {
504
- version: string;
505
- tags?: Record<string, string> | undefined;
506
- optional?: boolean | undefined;
507
- }> | undefined;
508
- config?: {
509
- bindings?: {
510
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
511
- identifier?: string | undefined;
512
- }[] | undefined;
513
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
514
- schema?: "default" | "flattened" | undefined;
515
- exposeRefresh?: boolean | undefined;
516
- 'body-param'?: string | undefined;
517
- } | undefined;
518
- 'cache-strategy'?: unknown;
519
- 'error-strategy'?: {
520
- type: "stringified";
521
- } | {
522
- type: "fetchResponse";
523
- } | undefined;
524
- } | undefined>, {
525
- config: {
526
- bindings: {
527
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
528
- identifier: string;
529
- }[];
530
- 'operation-type': "mutation" | "query" | "graphql";
531
- schema: "default" | "flattened";
532
- exposeRefresh: boolean;
533
- 'body-param'?: string | undefined;
534
- };
535
- 'cache-strategy': {
536
- type: "none";
537
- } | {
538
- type: "resource";
539
- config: {
540
- 'max-age': number;
541
- 'stale-while-revalidate'?: number | undefined;
542
- };
543
- } | {
544
- type: "normalized";
545
- key?: Record<string, string> | undefined;
546
- 'cache-control'?: {
547
- 'max-age': number;
548
- type: "max-age";
549
- 'stale-while-revalidate'?: number | undefined;
550
- } | {
551
- type: "no-cache";
552
- } | undefined;
553
- };
554
- 'error-strategy': {
555
- type: "stringified";
556
- } | {
557
- type: "fetchResponse";
558
- };
559
- services?: Record<string, {
560
- ref: string;
561
- } | {
562
- version: string;
563
- tags?: Record<string, string> | undefined;
564
- optional?: boolean | undefined;
565
- }> | undefined;
566
- }, {
567
- services?: Record<string, {
568
- ref: string;
569
- } | {
570
- version: string;
571
- tags?: Record<string, string> | undefined;
572
- optional?: boolean | undefined;
573
- }> | undefined;
574
- config?: {
575
- bindings?: {
576
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
577
- identifier?: string | undefined;
578
- }[] | undefined;
579
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
580
- schema?: "default" | "flattened" | undefined;
581
- exposeRefresh?: boolean | undefined;
582
- 'body-param'?: string | undefined;
583
- } | undefined;
584
- 'cache-strategy'?: unknown;
585
- 'error-strategy'?: {
586
- type: "stringified";
587
- } | {
588
- type: "fetchResponse";
589
- } | undefined;
590
- } | undefined>, {
591
- config: {
592
- bindings: {
593
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
594
- identifier: string;
595
- }[];
596
- 'operation-type': "mutation" | "query" | "graphql";
597
- schema: "default" | "flattened";
598
- exposeRefresh: boolean;
599
- 'body-param'?: string | undefined;
600
- };
601
- 'cache-strategy': {
602
- type: "none";
603
- } | {
604
- type: "resource";
605
- config: {
606
- 'max-age': number;
607
- 'stale-while-revalidate'?: number | undefined;
608
- };
609
- } | {
610
- type: "normalized";
611
- key?: Record<string, string> | undefined;
612
- 'cache-control'?: {
613
- 'max-age': number;
614
- type: "max-age";
615
- 'stale-while-revalidate'?: number | undefined;
616
- } | {
617
- type: "no-cache";
618
- } | undefined;
619
- };
620
- 'error-strategy': {
621
- type: "stringified";
622
- } | {
623
- type: "fetchResponse";
624
- };
625
- services?: Record<string, {
626
- ref: string;
627
- } | {
628
- version: string;
629
- tags?: Record<string, string> | undefined;
630
- optional?: boolean | undefined;
631
- }> | undefined;
632
- }, {
633
- services?: Record<string, {
634
- ref: string;
635
- } | {
636
- version: string;
637
- tags?: Record<string, string> | undefined;
638
- optional?: boolean | undefined;
639
- }> | undefined;
640
- config?: {
641
- bindings?: {
642
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
643
- identifier?: string | undefined;
644
- }[] | undefined;
645
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
646
- schema?: "default" | "flattened" | undefined;
647
- exposeRefresh?: boolean | undefined;
648
- 'body-param'?: string | undefined;
649
- } | undefined;
650
- 'cache-strategy'?: unknown;
651
- 'error-strategy'?: {
652
- type: "stringified";
653
- } | {
654
- type: "fetchResponse";
655
- } | undefined;
656
- } | undefined>;
657
- }, "strip", z.ZodTypeAny, {
658
- onestore: {
659
- config: {
660
- bindings: {
661
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
662
- identifier: string;
663
- }[];
664
- 'operation-type': "mutation" | "query" | "graphql";
665
- schema: "default" | "flattened";
666
- exposeRefresh: boolean;
667
- 'body-param'?: string | undefined;
668
- };
669
- 'cache-strategy': {
670
- type: "none";
671
- } | {
672
- type: "resource";
673
- config: {
674
- 'max-age': number;
675
- 'stale-while-revalidate'?: number | undefined;
676
- };
677
- } | {
678
- type: "normalized";
679
- key?: Record<string, string> | undefined;
680
- 'cache-control'?: {
681
- 'max-age': number;
682
- type: "max-age";
683
- 'stale-while-revalidate'?: number | undefined;
684
- } | {
685
- type: "no-cache";
686
- } | undefined;
687
- };
688
- 'error-strategy': {
689
- type: "stringified";
690
- } | {
691
- type: "fetchResponse";
692
- };
693
- services?: Record<string, {
694
- ref: string;
695
- } | {
696
- version: string;
697
- tags?: Record<string, string> | undefined;
698
- optional?: boolean | undefined;
699
- }> | undefined;
700
- };
701
- }, {
702
- onestore?: {
703
- services?: Record<string, {
704
- ref: string;
705
- } | {
706
- version: string;
707
- tags?: Record<string, string> | undefined;
708
- optional?: boolean | undefined;
709
- }> | undefined;
710
- config?: {
711
- bindings?: {
712
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
713
- identifier?: string | undefined;
714
- }[] | undefined;
715
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
716
- schema?: "default" | "flattened" | undefined;
717
- exposeRefresh?: boolean | undefined;
718
- 'body-param'?: string | undefined;
719
- } | undefined;
720
- 'cache-strategy'?: unknown;
721
- 'error-strategy'?: {
722
- type: "stringified";
723
- } | {
724
- type: "fetchResponse";
725
- } | undefined;
726
- } | undefined;
727
- }>;
728
- buildHttpOperationSchema(): z.ZodEffects<z.ZodObject<{
729
- onestore: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodObject<{
730
- config: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodObject<{
731
- 'operation-type': z.ZodDefault<z.ZodEnum<["query", "mutation", "graphql"]>>;
732
- schema: z.ZodDefault<z.ZodEnum<["flattened", "default"]>>;
733
- bindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
734
- type: z.ZodDefault<z.ZodEnum<["wire", "imperative", "imperative-legacy", "mutation"]>>;
735
- identifier: z.ZodDefault<z.ZodString>;
736
- }, "strip", z.ZodTypeAny, {
737
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
738
- identifier: string;
739
- }, {
740
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
741
- identifier?: string | undefined;
742
- }>, "many">>;
743
- exposeRefresh: z.ZodDefault<z.ZodBoolean>;
744
- 'body-param': z.ZodOptional<z.ZodString>;
745
- }, "strip", z.ZodTypeAny, {
746
- bindings: {
747
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
748
- identifier: string;
749
- }[];
750
- 'operation-type': "mutation" | "query" | "graphql";
751
- schema: "default" | "flattened";
752
- exposeRefresh: boolean;
753
- 'body-param'?: string | undefined;
754
- }, {
755
- bindings?: {
756
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
757
- identifier?: string | undefined;
758
- }[] | undefined;
759
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
760
- schema?: "default" | "flattened" | undefined;
761
- exposeRefresh?: boolean | undefined;
762
- 'body-param'?: string | undefined;
763
- }>>, {
764
- bindings: {
765
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
766
- identifier: string;
767
- }[];
768
- 'operation-type': "mutation" | "query" | "graphql";
769
- schema: "default" | "flattened";
770
- exposeRefresh: boolean;
771
- 'body-param'?: string | undefined;
772
- }, {
773
- bindings?: {
774
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
775
- identifier?: string | undefined;
776
- }[] | undefined;
777
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
778
- schema?: "default" | "flattened" | undefined;
779
- exposeRefresh?: boolean | undefined;
780
- 'body-param'?: string | undefined;
781
- } | undefined>, {
782
- bindings: {
783
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
784
- identifier: string;
785
- }[];
786
- 'operation-type': "mutation" | "query" | "graphql";
787
- schema: "default" | "flattened";
788
- exposeRefresh: boolean;
789
- 'body-param'?: string | undefined;
790
- }, {
791
- bindings?: {
792
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
793
- identifier?: string | undefined;
794
- }[] | undefined;
795
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
796
- schema?: "default" | "flattened" | undefined;
797
- exposeRefresh?: boolean | undefined;
798
- 'body-param'?: string | undefined;
799
- } | undefined>, {
800
- bindings: {
801
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
802
- identifier: string;
803
- }[];
804
- 'operation-type': "mutation" | "query" | "graphql";
805
- schema: "default" | "flattened";
806
- exposeRefresh: boolean;
807
- 'body-param'?: string | undefined;
808
- }, {
809
- bindings?: {
810
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
811
- identifier?: string | undefined;
812
- }[] | undefined;
813
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
814
- schema?: "default" | "flattened" | undefined;
815
- exposeRefresh?: boolean | undefined;
816
- 'body-param'?: string | undefined;
817
- } | undefined>, {
818
- bindings: {
819
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
820
- identifier: string;
821
- }[];
822
- 'operation-type': "mutation" | "query" | "graphql";
823
- schema: "default" | "flattened";
824
- exposeRefresh: boolean;
825
- 'body-param'?: string | undefined;
826
- }, {
827
- bindings?: {
828
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
829
- identifier?: string | undefined;
830
- }[] | undefined;
831
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
832
- schema?: "default" | "flattened" | undefined;
833
- exposeRefresh?: boolean | undefined;
834
- 'body-param'?: string | undefined;
835
- } | undefined>, {
836
- bindings: {
837
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
838
- identifier: string;
839
- }[];
840
- 'operation-type': "mutation" | "query" | "graphql";
841
- schema: "default" | "flattened";
842
- exposeRefresh: boolean;
843
- 'body-param'?: string | undefined;
844
- }, {
845
- bindings?: {
846
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
847
- identifier?: string | undefined;
848
- }[] | undefined;
849
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
850
- schema?: "default" | "flattened" | undefined;
851
- exposeRefresh?: boolean | undefined;
852
- 'body-param'?: string | undefined;
853
- } | undefined>, {
854
- bindings: {
855
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
856
- identifier: string;
857
- }[];
858
- 'operation-type': "mutation" | "query" | "graphql";
859
- schema: "default" | "flattened";
860
- exposeRefresh: boolean;
861
- 'body-param'?: string | undefined;
862
- }, {
863
- bindings?: {
864
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
865
- identifier?: string | undefined;
866
- }[] | undefined;
867
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
868
- schema?: "default" | "flattened" | undefined;
869
- exposeRefresh?: boolean | undefined;
870
- 'body-param'?: string | undefined;
871
- } | undefined>, {
872
- bindings: {
873
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
874
- identifier: string;
875
- }[];
876
- 'operation-type': "mutation" | "query" | "graphql";
877
- schema: "default" | "flattened";
878
- exposeRefresh: boolean;
879
- 'body-param'?: string | undefined;
880
- }, {
881
- bindings?: {
882
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
883
- identifier?: string | undefined;
884
- }[] | undefined;
885
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
886
- schema?: "default" | "flattened" | undefined;
887
- exposeRefresh?: boolean | undefined;
888
- 'body-param'?: string | undefined;
889
- } | undefined>, {
890
- bindings: {
891
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
892
- identifier: string;
893
- }[];
894
- 'operation-type': "mutation" | "query" | "graphql";
895
- schema: "default" | "flattened";
896
- exposeRefresh: boolean;
897
- 'body-param'?: string | undefined;
898
- }, {
899
- bindings?: {
900
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
901
- identifier?: string | undefined;
902
- }[] | undefined;
903
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
904
- schema?: "default" | "flattened" | undefined;
905
- exposeRefresh?: boolean | undefined;
906
- 'body-param'?: string | undefined;
907
- } | undefined>;
908
- 'cache-strategy': z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
909
- type: z.ZodLiteral<"none">;
910
- }, "strict", z.ZodTypeAny, {
911
- type: "none";
912
- }, {
913
- type: "none";
914
- }>, z.ZodObject<{
915
- type: z.ZodLiteral<"resource">;
916
- config: z.ZodObject<{
917
- 'max-age': z.ZodNumber;
918
- 'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
919
- }, "strict", z.ZodTypeAny, {
920
- 'max-age': number;
921
- 'stale-while-revalidate'?: number | undefined;
922
- }, {
923
- 'max-age': number;
924
- 'stale-while-revalidate'?: number | undefined;
925
- }>;
926
- }, "strict", z.ZodTypeAny, {
927
- type: "resource";
928
- config: {
929
- 'max-age': number;
930
- 'stale-while-revalidate'?: number | undefined;
931
- };
932
- }, {
933
- type: "resource";
934
- config: {
935
- 'max-age': number;
936
- 'stale-while-revalidate'?: number | undefined;
937
- };
938
- }>, z.ZodObject<{
939
- type: z.ZodLiteral<"normalized">;
940
- 'cache-control': z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
941
- type: z.ZodLiteral<"max-age">;
942
- 'max-age': z.ZodNumber;
943
- 'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
944
- }, "strict", z.ZodTypeAny, {
945
- 'max-age': number;
946
- type: "max-age";
947
- 'stale-while-revalidate'?: number | undefined;
948
- }, {
949
- 'max-age': number;
950
- type: "max-age";
951
- 'stale-while-revalidate'?: number | undefined;
952
- }>, z.ZodObject<{
953
- type: z.ZodLiteral<"no-cache">;
954
- }, "strip", z.ZodTypeAny, {
955
- type: "no-cache";
956
- }, {
957
- type: "no-cache";
958
- }>]>>;
959
- key: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
960
- }, "strict", z.ZodTypeAny, {
961
- type: "normalized";
962
- key?: Record<string, string> | undefined;
963
- 'cache-control'?: {
964
- 'max-age': number;
965
- type: "max-age";
966
- 'stale-while-revalidate'?: number | undefined;
967
- } | {
968
- type: "no-cache";
969
- } | undefined;
970
- }, {
971
- type: "normalized";
972
- key?: Record<string, string> | undefined;
973
- 'cache-control'?: {
974
- 'max-age': number;
975
- type: "max-age";
976
- 'stale-while-revalidate'?: number | undefined;
977
- } | {
978
- type: "no-cache";
979
- } | undefined;
980
- }>]>, {
981
- type: "none";
982
- } | {
983
- type: "resource";
984
- config: {
985
- 'max-age': number;
986
- 'stale-while-revalidate'?: number | undefined;
987
- };
988
- } | {
989
- type: "normalized";
990
- key?: Record<string, string> | undefined;
991
- 'cache-control'?: {
992
- 'max-age': number;
993
- type: "max-age";
994
- 'stale-while-revalidate'?: number | undefined;
995
- } | {
996
- type: "no-cache";
997
- } | undefined;
998
- }, unknown>;
999
- 'error-strategy': z.ZodDefault<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1000
- type: z.ZodLiteral<"stringified">;
1001
- }, "strict", z.ZodTypeAny, {
1002
- type: "stringified";
1003
- }, {
1004
- type: "stringified";
1005
- }>, z.ZodObject<{
1006
- type: z.ZodLiteral<"fetchResponse">;
1007
- }, "strict", z.ZodTypeAny, {
1008
- type: "fetchResponse";
1009
- }, {
1010
- type: "fetchResponse";
1011
- }>]>>;
1012
- services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1013
- ref: z.ZodString;
1014
- }, "strict", z.ZodTypeAny, {
1015
- ref: string;
1016
- }, {
1017
- ref: string;
1018
- }>, z.ZodEffects<z.ZodObject<{
1019
- version: z.ZodString;
1020
- tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1021
- optional: z.ZodOptional<z.ZodBoolean>;
1022
- }, "strict", z.ZodTypeAny, {
1023
- version: string;
1024
- tags?: Record<string, string> | undefined;
1025
- optional?: boolean | undefined;
1026
- }, {
1027
- version: string;
1028
- tags?: Record<string, string> | undefined;
1029
- optional?: boolean | undefined;
1030
- }>, {
1031
- version: string;
1032
- tags?: Record<string, string> | undefined;
1033
- optional?: boolean | undefined;
1034
- }, {
1035
- version: string;
1036
- tags?: Record<string, string> | undefined;
1037
- optional?: boolean | undefined;
1038
- }>]>>>;
1039
- }, "strict", z.ZodTypeAny, {
1040
- config: {
1041
- bindings: {
1042
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1043
- identifier: string;
1044
- }[];
1045
- 'operation-type': "mutation" | "query" | "graphql";
1046
- schema: "default" | "flattened";
1047
- exposeRefresh: boolean;
1048
- 'body-param'?: string | undefined;
1049
- };
1050
- 'cache-strategy': {
1051
- type: "none";
1052
- } | {
1053
- type: "resource";
1054
- config: {
1055
- 'max-age': number;
1056
- 'stale-while-revalidate'?: number | undefined;
1057
- };
1058
- } | {
1059
- type: "normalized";
1060
- key?: Record<string, string> | undefined;
1061
- 'cache-control'?: {
1062
- 'max-age': number;
1063
- type: "max-age";
1064
- 'stale-while-revalidate'?: number | undefined;
1065
- } | {
1066
- type: "no-cache";
1067
- } | undefined;
1068
- };
1069
- 'error-strategy': {
1070
- type: "stringified";
1071
- } | {
1072
- type: "fetchResponse";
1073
- };
1074
- services?: Record<string, {
1075
- ref: string;
1076
- } | {
1077
- version: string;
1078
- tags?: Record<string, string> | undefined;
1079
- optional?: boolean | undefined;
1080
- }> | undefined;
1081
- }, {
1082
- services?: Record<string, {
1083
- ref: string;
1084
- } | {
1085
- version: string;
1086
- tags?: Record<string, string> | undefined;
1087
- optional?: boolean | undefined;
1088
- }> | undefined;
1089
- config?: {
1090
- bindings?: {
1091
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1092
- identifier?: string | undefined;
1093
- }[] | undefined;
1094
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1095
- schema?: "default" | "flattened" | undefined;
1096
- exposeRefresh?: boolean | undefined;
1097
- 'body-param'?: string | undefined;
1098
- } | undefined;
1099
- 'cache-strategy'?: unknown;
1100
- 'error-strategy'?: {
1101
- type: "stringified";
1102
- } | {
1103
- type: "fetchResponse";
1104
- } | undefined;
1105
- }>>, {
1106
- config: {
1107
- bindings: {
1108
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1109
- identifier: string;
1110
- }[];
1111
- 'operation-type': "mutation" | "query" | "graphql";
1112
- schema: "default" | "flattened";
1113
- exposeRefresh: boolean;
1114
- 'body-param'?: string | undefined;
1115
- };
1116
- 'cache-strategy': {
1117
- type: "none";
1118
- } | {
1119
- type: "resource";
1120
- config: {
1121
- 'max-age': number;
1122
- 'stale-while-revalidate'?: number | undefined;
1123
- };
1124
- } | {
1125
- type: "normalized";
1126
- key?: Record<string, string> | undefined;
1127
- 'cache-control'?: {
1128
- 'max-age': number;
1129
- type: "max-age";
1130
- 'stale-while-revalidate'?: number | undefined;
1131
- } | {
1132
- type: "no-cache";
1133
- } | undefined;
1134
- };
1135
- 'error-strategy': {
1136
- type: "stringified";
1137
- } | {
1138
- type: "fetchResponse";
1139
- };
1140
- services?: Record<string, {
1141
- ref: string;
1142
- } | {
1143
- version: string;
1144
- tags?: Record<string, string> | undefined;
1145
- optional?: boolean | undefined;
1146
- }> | undefined;
1147
- }, {
1148
- services?: Record<string, {
1149
- ref: string;
1150
- } | {
1151
- version: string;
1152
- tags?: Record<string, string> | undefined;
1153
- optional?: boolean | undefined;
1154
- }> | undefined;
1155
- config?: {
1156
- bindings?: {
1157
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1158
- identifier?: string | undefined;
1159
- }[] | undefined;
1160
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1161
- schema?: "default" | "flattened" | undefined;
1162
- exposeRefresh?: boolean | undefined;
1163
- 'body-param'?: string | undefined;
1164
- } | undefined;
1165
- 'cache-strategy'?: unknown;
1166
- 'error-strategy'?: {
1167
- type: "stringified";
1168
- } | {
1169
- type: "fetchResponse";
1170
- } | undefined;
1171
- } | undefined>, {
1172
- config: {
1173
- bindings: {
1174
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1175
- identifier: string;
1176
- }[];
1177
- 'operation-type': "mutation" | "query" | "graphql";
1178
- schema: "default" | "flattened";
1179
- exposeRefresh: boolean;
1180
- 'body-param'?: string | undefined;
1181
- };
1182
- 'cache-strategy': {
1183
- type: "none";
1184
- } | {
1185
- type: "resource";
1186
- config: {
1187
- 'max-age': number;
1188
- 'stale-while-revalidate'?: number | undefined;
1189
- };
1190
- } | {
1191
- type: "normalized";
1192
- key?: Record<string, string> | undefined;
1193
- 'cache-control'?: {
1194
- 'max-age': number;
1195
- type: "max-age";
1196
- 'stale-while-revalidate'?: number | undefined;
1197
- } | {
1198
- type: "no-cache";
1199
- } | undefined;
1200
- };
1201
- 'error-strategy': {
1202
- type: "stringified";
1203
- } | {
1204
- type: "fetchResponse";
1205
- };
1206
- services?: Record<string, {
1207
- ref: string;
1208
- } | {
1209
- version: string;
1210
- tags?: Record<string, string> | undefined;
1211
- optional?: boolean | undefined;
1212
- }> | undefined;
1213
- }, {
1214
- services?: Record<string, {
1215
- ref: string;
1216
- } | {
1217
- version: string;
1218
- tags?: Record<string, string> | undefined;
1219
- optional?: boolean | undefined;
1220
- }> | undefined;
1221
- config?: {
1222
- bindings?: {
1223
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1224
- identifier?: string | undefined;
1225
- }[] | undefined;
1226
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1227
- schema?: "default" | "flattened" | undefined;
1228
- exposeRefresh?: boolean | undefined;
1229
- 'body-param'?: string | undefined;
1230
- } | undefined;
1231
- 'cache-strategy'?: unknown;
1232
- 'error-strategy'?: {
1233
- type: "stringified";
1234
- } | {
1235
- type: "fetchResponse";
1236
- } | undefined;
1237
- } | undefined>, {
1238
- config: {
1239
- bindings: {
1240
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1241
- identifier: string;
1242
- }[];
1243
- 'operation-type': "mutation" | "query" | "graphql";
1244
- schema: "default" | "flattened";
1245
- exposeRefresh: boolean;
1246
- 'body-param'?: string | undefined;
1247
- };
1248
- 'cache-strategy': {
1249
- type: "none";
1250
- } | {
1251
- type: "resource";
1252
- config: {
1253
- 'max-age': number;
1254
- 'stale-while-revalidate'?: number | undefined;
1255
- };
1256
- } | {
1257
- type: "normalized";
1258
- key?: Record<string, string> | undefined;
1259
- 'cache-control'?: {
1260
- 'max-age': number;
1261
- type: "max-age";
1262
- 'stale-while-revalidate'?: number | undefined;
1263
- } | {
1264
- type: "no-cache";
1265
- } | undefined;
1266
- };
1267
- 'error-strategy': {
1268
- type: "stringified";
1269
- } | {
1270
- type: "fetchResponse";
1271
- };
1272
- services?: Record<string, {
1273
- ref: string;
1274
- } | {
1275
- version: string;
1276
- tags?: Record<string, string> | undefined;
1277
- optional?: boolean | undefined;
1278
- }> | undefined;
1279
- }, {
1280
- services?: Record<string, {
1281
- ref: string;
1282
- } | {
1283
- version: string;
1284
- tags?: Record<string, string> | undefined;
1285
- optional?: boolean | undefined;
1286
- }> | undefined;
1287
- config?: {
1288
- bindings?: {
1289
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1290
- identifier?: string | undefined;
1291
- }[] | undefined;
1292
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1293
- schema?: "default" | "flattened" | undefined;
1294
- exposeRefresh?: boolean | undefined;
1295
- 'body-param'?: string | undefined;
1296
- } | undefined;
1297
- 'cache-strategy'?: unknown;
1298
- 'error-strategy'?: {
1299
- type: "stringified";
1300
- } | {
1301
- type: "fetchResponse";
1302
- } | undefined;
1303
- } | undefined>, {
1304
- config: {
1305
- bindings: {
1306
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1307
- identifier: string;
1308
- }[];
1309
- 'operation-type': "mutation" | "query" | "graphql";
1310
- schema: "default" | "flattened";
1311
- exposeRefresh: boolean;
1312
- 'body-param'?: string | undefined;
1313
- };
1314
- 'cache-strategy': {
1315
- type: "none";
1316
- } | {
1317
- type: "resource";
1318
- config: {
1319
- 'max-age': number;
1320
- 'stale-while-revalidate'?: number | undefined;
1321
- };
1322
- } | {
1323
- type: "normalized";
1324
- key?: Record<string, string> | undefined;
1325
- 'cache-control'?: {
1326
- 'max-age': number;
1327
- type: "max-age";
1328
- 'stale-while-revalidate'?: number | undefined;
1329
- } | {
1330
- type: "no-cache";
1331
- } | undefined;
1332
- };
1333
- 'error-strategy': {
1334
- type: "stringified";
1335
- } | {
1336
- type: "fetchResponse";
1337
- };
1338
- services?: Record<string, {
1339
- ref: string;
1340
- } | {
1341
- version: string;
1342
- tags?: Record<string, string> | undefined;
1343
- optional?: boolean | undefined;
1344
- }> | undefined;
1345
- }, {
1346
- services?: Record<string, {
1347
- ref: string;
1348
- } | {
1349
- version: string;
1350
- tags?: Record<string, string> | undefined;
1351
- optional?: boolean | undefined;
1352
- }> | undefined;
1353
- config?: {
1354
- bindings?: {
1355
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1356
- identifier?: string | undefined;
1357
- }[] | undefined;
1358
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1359
- schema?: "default" | "flattened" | undefined;
1360
- exposeRefresh?: boolean | undefined;
1361
- 'body-param'?: string | undefined;
1362
- } | undefined;
1363
- 'cache-strategy'?: unknown;
1364
- 'error-strategy'?: {
1365
- type: "stringified";
1366
- } | {
1367
- type: "fetchResponse";
1368
- } | undefined;
1369
- } | undefined>;
1370
- }, "strip", z.ZodTypeAny, {
1371
- onestore: {
1372
- config: {
1373
- bindings: {
1374
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1375
- identifier: string;
1376
- }[];
1377
- 'operation-type': "mutation" | "query" | "graphql";
1378
- schema: "default" | "flattened";
1379
- exposeRefresh: boolean;
1380
- 'body-param'?: string | undefined;
1381
- };
1382
- 'cache-strategy': {
1383
- type: "none";
1384
- } | {
1385
- type: "resource";
1386
- config: {
1387
- 'max-age': number;
1388
- 'stale-while-revalidate'?: number | undefined;
1389
- };
1390
- } | {
1391
- type: "normalized";
1392
- key?: Record<string, string> | undefined;
1393
- 'cache-control'?: {
1394
- 'max-age': number;
1395
- type: "max-age";
1396
- 'stale-while-revalidate'?: number | undefined;
1397
- } | {
1398
- type: "no-cache";
1399
- } | undefined;
1400
- };
1401
- 'error-strategy': {
1402
- type: "stringified";
1403
- } | {
1404
- type: "fetchResponse";
1405
- };
1406
- services?: Record<string, {
1407
- ref: string;
1408
- } | {
1409
- version: string;
1410
- tags?: Record<string, string> | undefined;
1411
- optional?: boolean | undefined;
1412
- }> | undefined;
1413
- };
1414
- }, {
1415
- onestore?: {
1416
- services?: Record<string, {
1417
- ref: string;
1418
- } | {
1419
- version: string;
1420
- tags?: Record<string, string> | undefined;
1421
- optional?: boolean | undefined;
1422
- }> | undefined;
1423
- config?: {
1424
- bindings?: {
1425
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1426
- identifier?: string | undefined;
1427
- }[] | undefined;
1428
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1429
- schema?: "default" | "flattened" | undefined;
1430
- exposeRefresh?: boolean | undefined;
1431
- 'body-param'?: string | undefined;
1432
- } | undefined;
1433
- 'cache-strategy'?: unknown;
1434
- 'error-strategy'?: {
1435
- type: "stringified";
1436
- } | {
1437
- type: "fetchResponse";
1438
- } | undefined;
1439
- } | undefined;
1440
- }>, {
1441
- onestore: {
1442
- config: {
1443
- 'body-param': string;
1444
- bindings: {
1445
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1446
- identifier: string;
1447
- }[];
1448
- 'operation-type': "mutation" | "query" | "graphql";
1449
- schema: "default" | "flattened";
1450
- exposeRefresh: boolean;
1451
- };
1452
- };
1453
- }, {
1454
- onestore?: {
1455
- services?: Record<string, {
1456
- ref: string;
1457
- } | {
1458
- version: string;
1459
- tags?: Record<string, string> | undefined;
1460
- optional?: boolean | undefined;
1461
- }> | undefined;
1462
- config?: {
1463
- bindings?: {
1464
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1465
- identifier?: string | undefined;
1466
- }[] | undefined;
1467
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1468
- schema?: "default" | "flattened" | undefined;
1469
- exposeRefresh?: boolean | undefined;
1470
- 'body-param'?: string | undefined;
1471
- } | undefined;
1472
- 'cache-strategy'?: unknown;
1473
- 'error-strategy'?: {
1474
- type: "stringified";
1475
- } | {
1476
- type: "fetchResponse";
1477
- } | undefined;
1478
- } | undefined;
1479
- }>;
1480
- buildAuraOperationSchema(): z.ZodIntersection<z.ZodObject<{
1481
- onestore: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodObject<{
1482
- config: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodObject<{
1483
- 'operation-type': z.ZodDefault<z.ZodEnum<["query", "mutation", "graphql"]>>;
1484
- schema: z.ZodDefault<z.ZodEnum<["flattened", "default"]>>;
1485
- bindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
1486
- type: z.ZodDefault<z.ZodEnum<["wire", "imperative", "imperative-legacy", "mutation"]>>;
1487
- identifier: z.ZodDefault<z.ZodString>;
1488
- }, "strip", z.ZodTypeAny, {
1489
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1490
- identifier: string;
1491
- }, {
1492
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1493
- identifier?: string | undefined;
1494
- }>, "many">>;
1495
- exposeRefresh: z.ZodDefault<z.ZodBoolean>;
1496
- 'body-param': z.ZodOptional<z.ZodString>;
1497
- }, "strip", z.ZodTypeAny, {
1498
- bindings: {
1499
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1500
- identifier: string;
1501
- }[];
1502
- 'operation-type': "mutation" | "query" | "graphql";
1503
- schema: "default" | "flattened";
1504
- exposeRefresh: boolean;
1505
- 'body-param'?: string | undefined;
1506
- }, {
1507
- bindings?: {
1508
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1509
- identifier?: string | undefined;
1510
- }[] | undefined;
1511
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1512
- schema?: "default" | "flattened" | undefined;
1513
- exposeRefresh?: boolean | undefined;
1514
- 'body-param'?: string | undefined;
1515
- }>>, {
1516
- bindings: {
1517
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1518
- identifier: string;
1519
- }[];
1520
- 'operation-type': "mutation" | "query" | "graphql";
1521
- schema: "default" | "flattened";
1522
- exposeRefresh: boolean;
1523
- 'body-param'?: string | undefined;
1524
- }, {
1525
- bindings?: {
1526
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1527
- identifier?: string | undefined;
1528
- }[] | undefined;
1529
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1530
- schema?: "default" | "flattened" | undefined;
1531
- exposeRefresh?: boolean | undefined;
1532
- 'body-param'?: string | undefined;
1533
- } | undefined>, {
1534
- bindings: {
1535
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1536
- identifier: string;
1537
- }[];
1538
- 'operation-type': "mutation" | "query" | "graphql";
1539
- schema: "default" | "flattened";
1540
- exposeRefresh: boolean;
1541
- 'body-param'?: string | undefined;
1542
- }, {
1543
- bindings?: {
1544
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1545
- identifier?: string | undefined;
1546
- }[] | undefined;
1547
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1548
- schema?: "default" | "flattened" | undefined;
1549
- exposeRefresh?: boolean | undefined;
1550
- 'body-param'?: string | undefined;
1551
- } | undefined>, {
1552
- bindings: {
1553
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1554
- identifier: string;
1555
- }[];
1556
- 'operation-type': "mutation" | "query" | "graphql";
1557
- schema: "default" | "flattened";
1558
- exposeRefresh: boolean;
1559
- 'body-param'?: string | undefined;
1560
- }, {
1561
- bindings?: {
1562
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1563
- identifier?: string | undefined;
1564
- }[] | undefined;
1565
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1566
- schema?: "default" | "flattened" | undefined;
1567
- exposeRefresh?: boolean | undefined;
1568
- 'body-param'?: string | undefined;
1569
- } | undefined>, {
1570
- bindings: {
1571
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1572
- identifier: string;
1573
- }[];
1574
- 'operation-type': "mutation" | "query" | "graphql";
1575
- schema: "default" | "flattened";
1576
- exposeRefresh: boolean;
1577
- 'body-param'?: string | undefined;
1578
- }, {
1579
- bindings?: {
1580
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1581
- identifier?: string | undefined;
1582
- }[] | undefined;
1583
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1584
- schema?: "default" | "flattened" | undefined;
1585
- exposeRefresh?: boolean | undefined;
1586
- 'body-param'?: string | undefined;
1587
- } | undefined>, {
1588
- bindings: {
1589
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1590
- identifier: string;
1591
- }[];
1592
- 'operation-type': "mutation" | "query" | "graphql";
1593
- schema: "default" | "flattened";
1594
- exposeRefresh: boolean;
1595
- 'body-param'?: string | undefined;
1596
- }, {
1597
- bindings?: {
1598
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1599
- identifier?: string | undefined;
1600
- }[] | undefined;
1601
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1602
- schema?: "default" | "flattened" | undefined;
1603
- exposeRefresh?: boolean | undefined;
1604
- 'body-param'?: string | undefined;
1605
- } | undefined>, {
1606
- bindings: {
1607
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1608
- identifier: string;
1609
- }[];
1610
- 'operation-type': "mutation" | "query" | "graphql";
1611
- schema: "default" | "flattened";
1612
- exposeRefresh: boolean;
1613
- 'body-param'?: string | undefined;
1614
- }, {
1615
- bindings?: {
1616
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1617
- identifier?: string | undefined;
1618
- }[] | undefined;
1619
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1620
- schema?: "default" | "flattened" | undefined;
1621
- exposeRefresh?: boolean | undefined;
1622
- 'body-param'?: string | undefined;
1623
- } | undefined>, {
1624
- bindings: {
1625
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1626
- identifier: string;
1627
- }[];
1628
- 'operation-type': "mutation" | "query" | "graphql";
1629
- schema: "default" | "flattened";
1630
- exposeRefresh: boolean;
1631
- 'body-param'?: string | undefined;
1632
- }, {
1633
- bindings?: {
1634
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1635
- identifier?: string | undefined;
1636
- }[] | undefined;
1637
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1638
- schema?: "default" | "flattened" | undefined;
1639
- exposeRefresh?: boolean | undefined;
1640
- 'body-param'?: string | undefined;
1641
- } | undefined>, {
1642
- bindings: {
1643
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1644
- identifier: string;
1645
- }[];
1646
- 'operation-type': "mutation" | "query" | "graphql";
1647
- schema: "default" | "flattened";
1648
- exposeRefresh: boolean;
1649
- 'body-param'?: string | undefined;
1650
- }, {
1651
- bindings?: {
1652
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1653
- identifier?: string | undefined;
1654
- }[] | undefined;
1655
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1656
- schema?: "default" | "flattened" | undefined;
1657
- exposeRefresh?: boolean | undefined;
1658
- 'body-param'?: string | undefined;
1659
- } | undefined>;
1660
- 'cache-strategy': z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1661
- type: z.ZodLiteral<"none">;
1662
- }, "strict", z.ZodTypeAny, {
1663
- type: "none";
1664
- }, {
1665
- type: "none";
1666
- }>, z.ZodObject<{
1667
- type: z.ZodLiteral<"resource">;
1668
- config: z.ZodObject<{
1669
- 'max-age': z.ZodNumber;
1670
- 'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
1671
- }, "strict", z.ZodTypeAny, {
1672
- 'max-age': number;
1673
- 'stale-while-revalidate'?: number | undefined;
1674
- }, {
1675
- 'max-age': number;
1676
- 'stale-while-revalidate'?: number | undefined;
1677
- }>;
1678
- }, "strict", z.ZodTypeAny, {
1679
- type: "resource";
1680
- config: {
1681
- 'max-age': number;
1682
- 'stale-while-revalidate'?: number | undefined;
1683
- };
1684
- }, {
1685
- type: "resource";
1686
- config: {
1687
- 'max-age': number;
1688
- 'stale-while-revalidate'?: number | undefined;
1689
- };
1690
- }>, z.ZodObject<{
1691
- type: z.ZodLiteral<"normalized">;
1692
- 'cache-control': z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1693
- type: z.ZodLiteral<"max-age">;
1694
- 'max-age': z.ZodNumber;
1695
- 'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
1696
- }, "strict", z.ZodTypeAny, {
1697
- 'max-age': number;
1698
- type: "max-age";
1699
- 'stale-while-revalidate'?: number | undefined;
1700
- }, {
1701
- 'max-age': number;
1702
- type: "max-age";
1703
- 'stale-while-revalidate'?: number | undefined;
1704
- }>, z.ZodObject<{
1705
- type: z.ZodLiteral<"no-cache">;
1706
- }, "strip", z.ZodTypeAny, {
1707
- type: "no-cache";
1708
- }, {
1709
- type: "no-cache";
1710
- }>]>>;
1711
- key: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
1712
- }, "strict", z.ZodTypeAny, {
1713
- type: "normalized";
1714
- key?: Record<string, string> | undefined;
1715
- 'cache-control'?: {
1716
- 'max-age': number;
1717
- type: "max-age";
1718
- 'stale-while-revalidate'?: number | undefined;
1719
- } | {
1720
- type: "no-cache";
1721
- } | undefined;
1722
- }, {
1723
- type: "normalized";
1724
- key?: Record<string, string> | undefined;
1725
- 'cache-control'?: {
1726
- 'max-age': number;
1727
- type: "max-age";
1728
- 'stale-while-revalidate'?: number | undefined;
1729
- } | {
1730
- type: "no-cache";
1731
- } | undefined;
1732
- }>]>, {
1733
- type: "none";
1734
- } | {
1735
- type: "resource";
1736
- config: {
1737
- 'max-age': number;
1738
- 'stale-while-revalidate'?: number | undefined;
1739
- };
1740
- } | {
1741
- type: "normalized";
1742
- key?: Record<string, string> | undefined;
1743
- 'cache-control'?: {
1744
- 'max-age': number;
1745
- type: "max-age";
1746
- 'stale-while-revalidate'?: number | undefined;
1747
- } | {
1748
- type: "no-cache";
1749
- } | undefined;
1750
- }, unknown>;
1751
- 'error-strategy': z.ZodDefault<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1752
- type: z.ZodLiteral<"stringified">;
1753
- }, "strict", z.ZodTypeAny, {
1754
- type: "stringified";
1755
- }, {
1756
- type: "stringified";
1757
- }>, z.ZodObject<{
1758
- type: z.ZodLiteral<"fetchResponse">;
1759
- }, "strict", z.ZodTypeAny, {
1760
- type: "fetchResponse";
1761
- }, {
1762
- type: "fetchResponse";
1763
- }>]>>;
1764
- services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1765
- ref: z.ZodString;
1766
- }, "strict", z.ZodTypeAny, {
1767
- ref: string;
1768
- }, {
1769
- ref: string;
1770
- }>, z.ZodEffects<z.ZodObject<{
1771
- version: z.ZodString;
1772
- tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1773
- optional: z.ZodOptional<z.ZodBoolean>;
1774
- }, "strict", z.ZodTypeAny, {
1775
- version: string;
1776
- tags?: Record<string, string> | undefined;
1777
- optional?: boolean | undefined;
1778
- }, {
1779
- version: string;
1780
- tags?: Record<string, string> | undefined;
1781
- optional?: boolean | undefined;
1782
- }>, {
1783
- version: string;
1784
- tags?: Record<string, string> | undefined;
1785
- optional?: boolean | undefined;
1786
- }, {
1787
- version: string;
1788
- tags?: Record<string, string> | undefined;
1789
- optional?: boolean | undefined;
1790
- }>]>>>;
1791
- }, "strict", z.ZodTypeAny, {
1792
- config: {
1793
- bindings: {
1794
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1795
- identifier: string;
1796
- }[];
1797
- 'operation-type': "mutation" | "query" | "graphql";
1798
- schema: "default" | "flattened";
1799
- exposeRefresh: boolean;
1800
- 'body-param'?: string | undefined;
1801
- };
1802
- 'cache-strategy': {
1803
- type: "none";
1804
- } | {
1805
- type: "resource";
1806
- config: {
1807
- 'max-age': number;
1808
- 'stale-while-revalidate'?: number | undefined;
1809
- };
1810
- } | {
1811
- type: "normalized";
1812
- key?: Record<string, string> | undefined;
1813
- 'cache-control'?: {
1814
- 'max-age': number;
1815
- type: "max-age";
1816
- 'stale-while-revalidate'?: number | undefined;
1817
- } | {
1818
- type: "no-cache";
1819
- } | undefined;
1820
- };
1821
- 'error-strategy': {
1822
- type: "stringified";
1823
- } | {
1824
- type: "fetchResponse";
1825
- };
1826
- services?: Record<string, {
1827
- ref: string;
1828
- } | {
1829
- version: string;
1830
- tags?: Record<string, string> | undefined;
1831
- optional?: boolean | undefined;
1832
- }> | undefined;
1833
- }, {
1834
- services?: Record<string, {
1835
- ref: string;
1836
- } | {
1837
- version: string;
1838
- tags?: Record<string, string> | undefined;
1839
- optional?: boolean | undefined;
1840
- }> | undefined;
1841
- config?: {
1842
- bindings?: {
1843
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1844
- identifier?: string | undefined;
1845
- }[] | undefined;
1846
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1847
- schema?: "default" | "flattened" | undefined;
1848
- exposeRefresh?: boolean | undefined;
1849
- 'body-param'?: string | undefined;
1850
- } | undefined;
1851
- 'cache-strategy'?: unknown;
1852
- 'error-strategy'?: {
1853
- type: "stringified";
1854
- } | {
1855
- type: "fetchResponse";
1856
- } | undefined;
1857
- }>>, {
1858
- config: {
1859
- bindings: {
1860
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1861
- identifier: string;
1862
- }[];
1863
- 'operation-type': "mutation" | "query" | "graphql";
1864
- schema: "default" | "flattened";
1865
- exposeRefresh: boolean;
1866
- 'body-param'?: string | undefined;
1867
- };
1868
- 'cache-strategy': {
1869
- type: "none";
1870
- } | {
1871
- type: "resource";
1872
- config: {
1873
- 'max-age': number;
1874
- 'stale-while-revalidate'?: number | undefined;
1875
- };
1876
- } | {
1877
- type: "normalized";
1878
- key?: Record<string, string> | undefined;
1879
- 'cache-control'?: {
1880
- 'max-age': number;
1881
- type: "max-age";
1882
- 'stale-while-revalidate'?: number | undefined;
1883
- } | {
1884
- type: "no-cache";
1885
- } | undefined;
1886
- };
1887
- 'error-strategy': {
1888
- type: "stringified";
1889
- } | {
1890
- type: "fetchResponse";
1891
- };
1892
- services?: Record<string, {
1893
- ref: string;
1894
- } | {
1895
- version: string;
1896
- tags?: Record<string, string> | undefined;
1897
- optional?: boolean | undefined;
1898
- }> | undefined;
1899
- }, {
1900
- services?: Record<string, {
1901
- ref: string;
1902
- } | {
1903
- version: string;
1904
- tags?: Record<string, string> | undefined;
1905
- optional?: boolean | undefined;
1906
- }> | undefined;
1907
- config?: {
1908
- bindings?: {
1909
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1910
- identifier?: string | undefined;
1911
- }[] | undefined;
1912
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1913
- schema?: "default" | "flattened" | undefined;
1914
- exposeRefresh?: boolean | undefined;
1915
- 'body-param'?: string | undefined;
1916
- } | undefined;
1917
- 'cache-strategy'?: unknown;
1918
- 'error-strategy'?: {
1919
- type: "stringified";
1920
- } | {
1921
- type: "fetchResponse";
1922
- } | undefined;
1923
- } | undefined>, {
1924
- config: {
1925
- bindings: {
1926
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1927
- identifier: string;
1928
- }[];
1929
- 'operation-type': "mutation" | "query" | "graphql";
1930
- schema: "default" | "flattened";
1931
- exposeRefresh: boolean;
1932
- 'body-param'?: string | undefined;
1933
- };
1934
- 'cache-strategy': {
1935
- type: "none";
1936
- } | {
1937
- type: "resource";
1938
- config: {
1939
- 'max-age': number;
1940
- 'stale-while-revalidate'?: number | undefined;
1941
- };
1942
- } | {
1943
- type: "normalized";
1944
- key?: Record<string, string> | undefined;
1945
- 'cache-control'?: {
1946
- 'max-age': number;
1947
- type: "max-age";
1948
- 'stale-while-revalidate'?: number | undefined;
1949
- } | {
1950
- type: "no-cache";
1951
- } | undefined;
1952
- };
1953
- 'error-strategy': {
1954
- type: "stringified";
1955
- } | {
1956
- type: "fetchResponse";
1957
- };
1958
- services?: Record<string, {
1959
- ref: string;
1960
- } | {
1961
- version: string;
1962
- tags?: Record<string, string> | undefined;
1963
- optional?: boolean | undefined;
1964
- }> | undefined;
1965
- }, {
1966
- services?: Record<string, {
1967
- ref: string;
1968
- } | {
1969
- version: string;
1970
- tags?: Record<string, string> | undefined;
1971
- optional?: boolean | undefined;
1972
- }> | undefined;
1973
- config?: {
1974
- bindings?: {
1975
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1976
- identifier?: string | undefined;
1977
- }[] | undefined;
1978
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1979
- schema?: "default" | "flattened" | undefined;
1980
- exposeRefresh?: boolean | undefined;
1981
- 'body-param'?: string | undefined;
1982
- } | undefined;
1983
- 'cache-strategy'?: unknown;
1984
- 'error-strategy'?: {
1985
- type: "stringified";
1986
- } | {
1987
- type: "fetchResponse";
1988
- } | undefined;
1989
- } | undefined>, {
1990
- config: {
1991
- bindings: {
1992
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1993
- identifier: string;
1994
- }[];
1995
- 'operation-type': "mutation" | "query" | "graphql";
1996
- schema: "default" | "flattened";
1997
- exposeRefresh: boolean;
1998
- 'body-param'?: string | undefined;
1999
- };
2000
- 'cache-strategy': {
2001
- type: "none";
2002
- } | {
2003
- type: "resource";
2004
- config: {
2005
- 'max-age': number;
2006
- 'stale-while-revalidate'?: number | undefined;
2007
- };
2008
- } | {
2009
- type: "normalized";
2010
- key?: Record<string, string> | undefined;
2011
- 'cache-control'?: {
2012
- 'max-age': number;
2013
- type: "max-age";
2014
- 'stale-while-revalidate'?: number | undefined;
2015
- } | {
2016
- type: "no-cache";
2017
- } | undefined;
2018
- };
2019
- 'error-strategy': {
2020
- type: "stringified";
2021
- } | {
2022
- type: "fetchResponse";
2023
- };
2024
- services?: Record<string, {
2025
- ref: string;
2026
- } | {
2027
- version: string;
2028
- tags?: Record<string, string> | undefined;
2029
- optional?: boolean | undefined;
2030
- }> | undefined;
2031
- }, {
2032
- services?: Record<string, {
2033
- ref: string;
2034
- } | {
2035
- version: string;
2036
- tags?: Record<string, string> | undefined;
2037
- optional?: boolean | undefined;
2038
- }> | undefined;
2039
- config?: {
2040
- bindings?: {
2041
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2042
- identifier?: string | undefined;
2043
- }[] | undefined;
2044
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2045
- schema?: "default" | "flattened" | undefined;
2046
- exposeRefresh?: boolean | undefined;
2047
- 'body-param'?: string | undefined;
2048
- } | undefined;
2049
- 'cache-strategy'?: unknown;
2050
- 'error-strategy'?: {
2051
- type: "stringified";
2052
- } | {
2053
- type: "fetchResponse";
2054
- } | undefined;
2055
- } | undefined>, {
2056
- config: {
2057
- bindings: {
2058
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2059
- identifier: string;
2060
- }[];
2061
- 'operation-type': "mutation" | "query" | "graphql";
2062
- schema: "default" | "flattened";
2063
- exposeRefresh: boolean;
2064
- 'body-param'?: string | undefined;
2065
- };
2066
- 'cache-strategy': {
2067
- type: "none";
2068
- } | {
2069
- type: "resource";
2070
- config: {
2071
- 'max-age': number;
2072
- 'stale-while-revalidate'?: number | undefined;
2073
- };
2074
- } | {
2075
- type: "normalized";
2076
- key?: Record<string, string> | undefined;
2077
- 'cache-control'?: {
2078
- 'max-age': number;
2079
- type: "max-age";
2080
- 'stale-while-revalidate'?: number | undefined;
2081
- } | {
2082
- type: "no-cache";
2083
- } | undefined;
2084
- };
2085
- 'error-strategy': {
2086
- type: "stringified";
2087
- } | {
2088
- type: "fetchResponse";
2089
- };
2090
- services?: Record<string, {
2091
- ref: string;
2092
- } | {
2093
- version: string;
2094
- tags?: Record<string, string> | undefined;
2095
- optional?: boolean | undefined;
2096
- }> | undefined;
2097
- }, {
2098
- services?: Record<string, {
2099
- ref: string;
2100
- } | {
2101
- version: string;
2102
- tags?: Record<string, string> | undefined;
2103
- optional?: boolean | undefined;
2104
- }> | undefined;
2105
- config?: {
2106
- bindings?: {
2107
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2108
- identifier?: string | undefined;
2109
- }[] | undefined;
2110
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2111
- schema?: "default" | "flattened" | undefined;
2112
- exposeRefresh?: boolean | undefined;
2113
- 'body-param'?: string | undefined;
2114
- } | undefined;
2115
- 'cache-strategy'?: unknown;
2116
- 'error-strategy'?: {
2117
- type: "stringified";
2118
- } | {
2119
- type: "fetchResponse";
2120
- } | undefined;
2121
- } | undefined>;
2122
- }, "strip", z.ZodTypeAny, {
2123
- onestore: {
2124
- config: {
2125
- bindings: {
2126
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2127
- identifier: string;
2128
- }[];
2129
- 'operation-type': "mutation" | "query" | "graphql";
2130
- schema: "default" | "flattened";
2131
- exposeRefresh: boolean;
2132
- 'body-param'?: string | undefined;
2133
- };
2134
- 'cache-strategy': {
2135
- type: "none";
2136
- } | {
2137
- type: "resource";
2138
- config: {
2139
- 'max-age': number;
2140
- 'stale-while-revalidate'?: number | undefined;
2141
- };
2142
- } | {
2143
- type: "normalized";
2144
- key?: Record<string, string> | undefined;
2145
- 'cache-control'?: {
2146
- 'max-age': number;
2147
- type: "max-age";
2148
- 'stale-while-revalidate'?: number | undefined;
2149
- } | {
2150
- type: "no-cache";
2151
- } | undefined;
2152
- };
2153
- 'error-strategy': {
2154
- type: "stringified";
2155
- } | {
2156
- type: "fetchResponse";
2157
- };
2158
- services?: Record<string, {
2159
- ref: string;
2160
- } | {
2161
- version: string;
2162
- tags?: Record<string, string> | undefined;
2163
- optional?: boolean | undefined;
2164
- }> | undefined;
2165
- };
2166
- }, {
2167
- onestore?: {
2168
- services?: Record<string, {
2169
- ref: string;
2170
- } | {
2171
- version: string;
2172
- tags?: Record<string, string> | undefined;
2173
- optional?: boolean | undefined;
2174
- }> | undefined;
2175
- config?: {
2176
- bindings?: {
2177
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2178
- identifier?: string | undefined;
2179
- }[] | undefined;
2180
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2181
- schema?: "default" | "flattened" | undefined;
2182
- exposeRefresh?: boolean | undefined;
2183
- 'body-param'?: string | undefined;
2184
- } | undefined;
2185
- 'cache-strategy'?: unknown;
2186
- 'error-strategy'?: {
2187
- type: "stringified";
2188
- } | {
2189
- type: "fetchResponse";
2190
- } | undefined;
2191
- } | undefined;
2192
- }>, z.ZodObject<{
2193
- onestore: z.ZodObject<{
2194
- config: z.ZodObject<{
2195
- aura: z.ZodObject<{
2196
- method: z.ZodString;
2197
- }, "strip", z.ZodTypeAny, {
2198
- method: string;
2199
- }, {
2200
- method: string;
2201
- }>;
2202
- }, "strip", z.ZodTypeAny, {
2203
- aura: {
2204
- method: string;
2205
- };
2206
- }, {
2207
- aura: {
2208
- method: string;
2209
- };
2210
- }>;
2211
- }, "strip", z.ZodTypeAny, {
2212
- config: {
2213
- aura: {
2214
- method: string;
2215
- };
2216
- };
2217
- }, {
2218
- config: {
2219
- aura: {
2220
- method: string;
2221
- };
2222
- };
2223
- }>;
2224
- }, "strip", z.ZodTypeAny, {
2225
- onestore: {
2226
- config: {
2227
- aura: {
2228
- method: string;
2229
- };
2230
- };
2231
- };
2232
- }, {
2233
- onestore: {
2234
- config: {
2235
- aura: {
2236
- method: string;
2237
- };
2238
- };
2239
- };
2240
- }>>;
2241
- buildAuraOperationWithBodySchema(): z.ZodEffects<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
2242
- onestore: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodObject<{
2243
- config: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodObject<{
2244
- 'operation-type': z.ZodDefault<z.ZodEnum<["query", "mutation", "graphql"]>>;
2245
- schema: z.ZodDefault<z.ZodEnum<["flattened", "default"]>>;
2246
- bindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
2247
- type: z.ZodDefault<z.ZodEnum<["wire", "imperative", "imperative-legacy", "mutation"]>>;
2248
- identifier: z.ZodDefault<z.ZodString>;
2249
- }, "strip", z.ZodTypeAny, {
2250
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2251
- identifier: string;
2252
- }, {
2253
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2254
- identifier?: string | undefined;
2255
- }>, "many">>;
2256
- exposeRefresh: z.ZodDefault<z.ZodBoolean>;
2257
- 'body-param': z.ZodOptional<z.ZodString>;
2258
- }, "strip", z.ZodTypeAny, {
2259
- bindings: {
2260
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2261
- identifier: string;
2262
- }[];
2263
- 'operation-type': "mutation" | "query" | "graphql";
2264
- schema: "default" | "flattened";
2265
- exposeRefresh: boolean;
2266
- 'body-param'?: string | undefined;
2267
- }, {
2268
- bindings?: {
2269
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2270
- identifier?: string | undefined;
2271
- }[] | undefined;
2272
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2273
- schema?: "default" | "flattened" | undefined;
2274
- exposeRefresh?: boolean | undefined;
2275
- 'body-param'?: string | undefined;
2276
- }>>, {
2277
- bindings: {
2278
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2279
- identifier: string;
2280
- }[];
2281
- 'operation-type': "mutation" | "query" | "graphql";
2282
- schema: "default" | "flattened";
2283
- exposeRefresh: boolean;
2284
- 'body-param'?: string | undefined;
2285
- }, {
2286
- bindings?: {
2287
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2288
- identifier?: string | undefined;
2289
- }[] | undefined;
2290
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2291
- schema?: "default" | "flattened" | undefined;
2292
- exposeRefresh?: boolean | undefined;
2293
- 'body-param'?: string | undefined;
2294
- } | undefined>, {
2295
- bindings: {
2296
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2297
- identifier: string;
2298
- }[];
2299
- 'operation-type': "mutation" | "query" | "graphql";
2300
- schema: "default" | "flattened";
2301
- exposeRefresh: boolean;
2302
- 'body-param'?: string | undefined;
2303
- }, {
2304
- bindings?: {
2305
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2306
- identifier?: string | undefined;
2307
- }[] | undefined;
2308
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2309
- schema?: "default" | "flattened" | undefined;
2310
- exposeRefresh?: boolean | undefined;
2311
- 'body-param'?: string | undefined;
2312
- } | undefined>, {
2313
- bindings: {
2314
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2315
- identifier: string;
2316
- }[];
2317
- 'operation-type': "mutation" | "query" | "graphql";
2318
- schema: "default" | "flattened";
2319
- exposeRefresh: boolean;
2320
- 'body-param'?: string | undefined;
2321
- }, {
2322
- bindings?: {
2323
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2324
- identifier?: string | undefined;
2325
- }[] | undefined;
2326
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2327
- schema?: "default" | "flattened" | undefined;
2328
- exposeRefresh?: boolean | undefined;
2329
- 'body-param'?: string | undefined;
2330
- } | undefined>, {
2331
- bindings: {
2332
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2333
- identifier: string;
2334
- }[];
2335
- 'operation-type': "mutation" | "query" | "graphql";
2336
- schema: "default" | "flattened";
2337
- exposeRefresh: boolean;
2338
- 'body-param'?: string | undefined;
2339
- }, {
2340
- bindings?: {
2341
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2342
- identifier?: string | undefined;
2343
- }[] | undefined;
2344
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2345
- schema?: "default" | "flattened" | undefined;
2346
- exposeRefresh?: boolean | undefined;
2347
- 'body-param'?: string | undefined;
2348
- } | undefined>, {
2349
- bindings: {
2350
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2351
- identifier: string;
2352
- }[];
2353
- 'operation-type': "mutation" | "query" | "graphql";
2354
- schema: "default" | "flattened";
2355
- exposeRefresh: boolean;
2356
- 'body-param'?: string | undefined;
2357
- }, {
2358
- bindings?: {
2359
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2360
- identifier?: string | undefined;
2361
- }[] | undefined;
2362
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2363
- schema?: "default" | "flattened" | undefined;
2364
- exposeRefresh?: boolean | undefined;
2365
- 'body-param'?: string | undefined;
2366
- } | undefined>, {
2367
- bindings: {
2368
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2369
- identifier: string;
2370
- }[];
2371
- 'operation-type': "mutation" | "query" | "graphql";
2372
- schema: "default" | "flattened";
2373
- exposeRefresh: boolean;
2374
- 'body-param'?: string | undefined;
2375
- }, {
2376
- bindings?: {
2377
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2378
- identifier?: string | undefined;
2379
- }[] | undefined;
2380
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2381
- schema?: "default" | "flattened" | undefined;
2382
- exposeRefresh?: boolean | undefined;
2383
- 'body-param'?: string | undefined;
2384
- } | undefined>, {
2385
- bindings: {
2386
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2387
- identifier: string;
2388
- }[];
2389
- 'operation-type': "mutation" | "query" | "graphql";
2390
- schema: "default" | "flattened";
2391
- exposeRefresh: boolean;
2392
- 'body-param'?: string | undefined;
2393
- }, {
2394
- bindings?: {
2395
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2396
- identifier?: string | undefined;
2397
- }[] | undefined;
2398
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2399
- schema?: "default" | "flattened" | undefined;
2400
- exposeRefresh?: boolean | undefined;
2401
- 'body-param'?: string | undefined;
2402
- } | undefined>, {
2403
- bindings: {
2404
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2405
- identifier: string;
2406
- }[];
2407
- 'operation-type': "mutation" | "query" | "graphql";
2408
- schema: "default" | "flattened";
2409
- exposeRefresh: boolean;
2410
- 'body-param'?: string | undefined;
2411
- }, {
2412
- bindings?: {
2413
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2414
- identifier?: string | undefined;
2415
- }[] | undefined;
2416
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2417
- schema?: "default" | "flattened" | undefined;
2418
- exposeRefresh?: boolean | undefined;
2419
- 'body-param'?: string | undefined;
2420
- } | undefined>;
2421
- 'cache-strategy': z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2422
- type: z.ZodLiteral<"none">;
2423
- }, "strict", z.ZodTypeAny, {
2424
- type: "none";
2425
- }, {
2426
- type: "none";
2427
- }>, z.ZodObject<{
2428
- type: z.ZodLiteral<"resource">;
2429
- config: z.ZodObject<{
2430
- 'max-age': z.ZodNumber;
2431
- 'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
2432
- }, "strict", z.ZodTypeAny, {
2433
- 'max-age': number;
2434
- 'stale-while-revalidate'?: number | undefined;
2435
- }, {
2436
- 'max-age': number;
2437
- 'stale-while-revalidate'?: number | undefined;
2438
- }>;
2439
- }, "strict", z.ZodTypeAny, {
2440
- type: "resource";
2441
- config: {
2442
- 'max-age': number;
2443
- 'stale-while-revalidate'?: number | undefined;
2444
- };
2445
- }, {
2446
- type: "resource";
2447
- config: {
2448
- 'max-age': number;
2449
- 'stale-while-revalidate'?: number | undefined;
2450
- };
2451
- }>, z.ZodObject<{
2452
- type: z.ZodLiteral<"normalized">;
2453
- 'cache-control': z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2454
- type: z.ZodLiteral<"max-age">;
2455
- 'max-age': z.ZodNumber;
2456
- 'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
2457
- }, "strict", z.ZodTypeAny, {
2458
- 'max-age': number;
2459
- type: "max-age";
2460
- 'stale-while-revalidate'?: number | undefined;
2461
- }, {
2462
- 'max-age': number;
2463
- type: "max-age";
2464
- 'stale-while-revalidate'?: number | undefined;
2465
- }>, z.ZodObject<{
2466
- type: z.ZodLiteral<"no-cache">;
2467
- }, "strip", z.ZodTypeAny, {
2468
- type: "no-cache";
2469
- }, {
2470
- type: "no-cache";
2471
- }>]>>;
2472
- key: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
2473
- }, "strict", z.ZodTypeAny, {
2474
- type: "normalized";
2475
- key?: Record<string, string> | undefined;
2476
- 'cache-control'?: {
2477
- 'max-age': number;
2478
- type: "max-age";
2479
- 'stale-while-revalidate'?: number | undefined;
2480
- } | {
2481
- type: "no-cache";
2482
- } | undefined;
2483
- }, {
2484
- type: "normalized";
2485
- key?: Record<string, string> | undefined;
2486
- 'cache-control'?: {
2487
- 'max-age': number;
2488
- type: "max-age";
2489
- 'stale-while-revalidate'?: number | undefined;
2490
- } | {
2491
- type: "no-cache";
2492
- } | undefined;
2493
- }>]>, {
2494
- type: "none";
2495
- } | {
2496
- type: "resource";
2497
- config: {
2498
- 'max-age': number;
2499
- 'stale-while-revalidate'?: number | undefined;
2500
- };
2501
- } | {
2502
- type: "normalized";
2503
- key?: Record<string, string> | undefined;
2504
- 'cache-control'?: {
2505
- 'max-age': number;
2506
- type: "max-age";
2507
- 'stale-while-revalidate'?: number | undefined;
2508
- } | {
2509
- type: "no-cache";
2510
- } | undefined;
2511
- }, unknown>;
2512
- 'error-strategy': z.ZodDefault<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2513
- type: z.ZodLiteral<"stringified">;
2514
- }, "strict", z.ZodTypeAny, {
2515
- type: "stringified";
2516
- }, {
2517
- type: "stringified";
2518
- }>, z.ZodObject<{
2519
- type: z.ZodLiteral<"fetchResponse">;
2520
- }, "strict", z.ZodTypeAny, {
2521
- type: "fetchResponse";
2522
- }, {
2523
- type: "fetchResponse";
2524
- }>]>>;
2525
- services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
2526
- ref: z.ZodString;
2527
- }, "strict", z.ZodTypeAny, {
2528
- ref: string;
2529
- }, {
2530
- ref: string;
2531
- }>, z.ZodEffects<z.ZodObject<{
2532
- version: z.ZodString;
2533
- tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2534
- optional: z.ZodOptional<z.ZodBoolean>;
2535
- }, "strict", z.ZodTypeAny, {
2536
- version: string;
2537
- tags?: Record<string, string> | undefined;
2538
- optional?: boolean | undefined;
2539
- }, {
2540
- version: string;
2541
- tags?: Record<string, string> | undefined;
2542
- optional?: boolean | undefined;
2543
- }>, {
2544
- version: string;
2545
- tags?: Record<string, string> | undefined;
2546
- optional?: boolean | undefined;
2547
- }, {
2548
- version: string;
2549
- tags?: Record<string, string> | undefined;
2550
- optional?: boolean | undefined;
2551
- }>]>>>;
2552
- }, "strict", z.ZodTypeAny, {
2553
- config: {
2554
- bindings: {
2555
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2556
- identifier: string;
2557
- }[];
2558
- 'operation-type': "mutation" | "query" | "graphql";
2559
- schema: "default" | "flattened";
2560
- exposeRefresh: boolean;
2561
- 'body-param'?: string | undefined;
2562
- };
2563
- 'cache-strategy': {
2564
- type: "none";
2565
- } | {
2566
- type: "resource";
2567
- config: {
2568
- 'max-age': number;
2569
- 'stale-while-revalidate'?: number | undefined;
2570
- };
2571
- } | {
2572
- type: "normalized";
2573
- key?: Record<string, string> | undefined;
2574
- 'cache-control'?: {
2575
- 'max-age': number;
2576
- type: "max-age";
2577
- 'stale-while-revalidate'?: number | undefined;
2578
- } | {
2579
- type: "no-cache";
2580
- } | undefined;
2581
- };
2582
- 'error-strategy': {
2583
- type: "stringified";
2584
- } | {
2585
- type: "fetchResponse";
2586
- };
2587
- services?: Record<string, {
2588
- ref: string;
2589
- } | {
2590
- version: string;
2591
- tags?: Record<string, string> | undefined;
2592
- optional?: boolean | undefined;
2593
- }> | undefined;
2594
- }, {
2595
- services?: Record<string, {
2596
- ref: string;
2597
- } | {
2598
- version: string;
2599
- tags?: Record<string, string> | undefined;
2600
- optional?: boolean | undefined;
2601
- }> | undefined;
2602
- config?: {
2603
- bindings?: {
2604
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2605
- identifier?: string | undefined;
2606
- }[] | undefined;
2607
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2608
- schema?: "default" | "flattened" | undefined;
2609
- exposeRefresh?: boolean | undefined;
2610
- 'body-param'?: string | undefined;
2611
- } | undefined;
2612
- 'cache-strategy'?: unknown;
2613
- 'error-strategy'?: {
2614
- type: "stringified";
2615
- } | {
2616
- type: "fetchResponse";
2617
- } | undefined;
2618
- }>>, {
2619
- config: {
2620
- bindings: {
2621
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2622
- identifier: string;
2623
- }[];
2624
- 'operation-type': "mutation" | "query" | "graphql";
2625
- schema: "default" | "flattened";
2626
- exposeRefresh: boolean;
2627
- 'body-param'?: string | undefined;
2628
- };
2629
- 'cache-strategy': {
2630
- type: "none";
2631
- } | {
2632
- type: "resource";
2633
- config: {
2634
- 'max-age': number;
2635
- 'stale-while-revalidate'?: number | undefined;
2636
- };
2637
- } | {
2638
- type: "normalized";
2639
- key?: Record<string, string> | undefined;
2640
- 'cache-control'?: {
2641
- 'max-age': number;
2642
- type: "max-age";
2643
- 'stale-while-revalidate'?: number | undefined;
2644
- } | {
2645
- type: "no-cache";
2646
- } | undefined;
2647
- };
2648
- 'error-strategy': {
2649
- type: "stringified";
2650
- } | {
2651
- type: "fetchResponse";
2652
- };
2653
- services?: Record<string, {
2654
- ref: string;
2655
- } | {
2656
- version: string;
2657
- tags?: Record<string, string> | undefined;
2658
- optional?: boolean | undefined;
2659
- }> | undefined;
2660
- }, {
2661
- services?: Record<string, {
2662
- ref: string;
2663
- } | {
2664
- version: string;
2665
- tags?: Record<string, string> | undefined;
2666
- optional?: boolean | undefined;
2667
- }> | undefined;
2668
- config?: {
2669
- bindings?: {
2670
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2671
- identifier?: string | undefined;
2672
- }[] | undefined;
2673
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2674
- schema?: "default" | "flattened" | undefined;
2675
- exposeRefresh?: boolean | undefined;
2676
- 'body-param'?: string | undefined;
2677
- } | undefined;
2678
- 'cache-strategy'?: unknown;
2679
- 'error-strategy'?: {
2680
- type: "stringified";
2681
- } | {
2682
- type: "fetchResponse";
2683
- } | undefined;
2684
- } | undefined>, {
2685
- config: {
2686
- bindings: {
2687
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2688
- identifier: string;
2689
- }[];
2690
- 'operation-type': "mutation" | "query" | "graphql";
2691
- schema: "default" | "flattened";
2692
- exposeRefresh: boolean;
2693
- 'body-param'?: string | undefined;
2694
- };
2695
- 'cache-strategy': {
2696
- type: "none";
2697
- } | {
2698
- type: "resource";
2699
- config: {
2700
- 'max-age': number;
2701
- 'stale-while-revalidate'?: number | undefined;
2702
- };
2703
- } | {
2704
- type: "normalized";
2705
- key?: Record<string, string> | undefined;
2706
- 'cache-control'?: {
2707
- 'max-age': number;
2708
- type: "max-age";
2709
- 'stale-while-revalidate'?: number | undefined;
2710
- } | {
2711
- type: "no-cache";
2712
- } | undefined;
2713
- };
2714
- 'error-strategy': {
2715
- type: "stringified";
2716
- } | {
2717
- type: "fetchResponse";
2718
- };
2719
- services?: Record<string, {
2720
- ref: string;
2721
- } | {
2722
- version: string;
2723
- tags?: Record<string, string> | undefined;
2724
- optional?: boolean | undefined;
2725
- }> | undefined;
2726
- }, {
2727
- services?: Record<string, {
2728
- ref: string;
2729
- } | {
2730
- version: string;
2731
- tags?: Record<string, string> | undefined;
2732
- optional?: boolean | undefined;
2733
- }> | undefined;
2734
- config?: {
2735
- bindings?: {
2736
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2737
- identifier?: string | undefined;
2738
- }[] | undefined;
2739
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2740
- schema?: "default" | "flattened" | undefined;
2741
- exposeRefresh?: boolean | undefined;
2742
- 'body-param'?: string | undefined;
2743
- } | undefined;
2744
- 'cache-strategy'?: unknown;
2745
- 'error-strategy'?: {
2746
- type: "stringified";
2747
- } | {
2748
- type: "fetchResponse";
2749
- } | undefined;
2750
- } | undefined>, {
2751
- config: {
2752
- bindings: {
2753
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2754
- identifier: string;
2755
- }[];
2756
- 'operation-type': "mutation" | "query" | "graphql";
2757
- schema: "default" | "flattened";
2758
- exposeRefresh: boolean;
2759
- 'body-param'?: string | undefined;
2760
- };
2761
- 'cache-strategy': {
2762
- type: "none";
2763
- } | {
2764
- type: "resource";
2765
- config: {
2766
- 'max-age': number;
2767
- 'stale-while-revalidate'?: number | undefined;
2768
- };
2769
- } | {
2770
- type: "normalized";
2771
- key?: Record<string, string> | undefined;
2772
- 'cache-control'?: {
2773
- 'max-age': number;
2774
- type: "max-age";
2775
- 'stale-while-revalidate'?: number | undefined;
2776
- } | {
2777
- type: "no-cache";
2778
- } | undefined;
2779
- };
2780
- 'error-strategy': {
2781
- type: "stringified";
2782
- } | {
2783
- type: "fetchResponse";
2784
- };
2785
- services?: Record<string, {
2786
- ref: string;
2787
- } | {
2788
- version: string;
2789
- tags?: Record<string, string> | undefined;
2790
- optional?: boolean | undefined;
2791
- }> | undefined;
2792
- }, {
2793
- services?: Record<string, {
2794
- ref: string;
2795
- } | {
2796
- version: string;
2797
- tags?: Record<string, string> | undefined;
2798
- optional?: boolean | undefined;
2799
- }> | undefined;
2800
- config?: {
2801
- bindings?: {
2802
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2803
- identifier?: string | undefined;
2804
- }[] | undefined;
2805
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2806
- schema?: "default" | "flattened" | undefined;
2807
- exposeRefresh?: boolean | undefined;
2808
- 'body-param'?: string | undefined;
2809
- } | undefined;
2810
- 'cache-strategy'?: unknown;
2811
- 'error-strategy'?: {
2812
- type: "stringified";
2813
- } | {
2814
- type: "fetchResponse";
2815
- } | undefined;
2816
- } | undefined>, {
2817
- config: {
2818
- bindings: {
2819
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2820
- identifier: string;
2821
- }[];
2822
- 'operation-type': "mutation" | "query" | "graphql";
2823
- schema: "default" | "flattened";
2824
- exposeRefresh: boolean;
2825
- 'body-param'?: string | undefined;
2826
- };
2827
- 'cache-strategy': {
2828
- type: "none";
2829
- } | {
2830
- type: "resource";
2831
- config: {
2832
- 'max-age': number;
2833
- 'stale-while-revalidate'?: number | undefined;
2834
- };
2835
- } | {
2836
- type: "normalized";
2837
- key?: Record<string, string> | undefined;
2838
- 'cache-control'?: {
2839
- 'max-age': number;
2840
- type: "max-age";
2841
- 'stale-while-revalidate'?: number | undefined;
2842
- } | {
2843
- type: "no-cache";
2844
- } | undefined;
2845
- };
2846
- 'error-strategy': {
2847
- type: "stringified";
2848
- } | {
2849
- type: "fetchResponse";
2850
- };
2851
- services?: Record<string, {
2852
- ref: string;
2853
- } | {
2854
- version: string;
2855
- tags?: Record<string, string> | undefined;
2856
- optional?: boolean | undefined;
2857
- }> | undefined;
2858
- }, {
2859
- services?: Record<string, {
2860
- ref: string;
2861
- } | {
2862
- version: string;
2863
- tags?: Record<string, string> | undefined;
2864
- optional?: boolean | undefined;
2865
- }> | undefined;
2866
- config?: {
2867
- bindings?: {
2868
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2869
- identifier?: string | undefined;
2870
- }[] | undefined;
2871
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2872
- schema?: "default" | "flattened" | undefined;
2873
- exposeRefresh?: boolean | undefined;
2874
- 'body-param'?: string | undefined;
2875
- } | undefined;
2876
- 'cache-strategy'?: unknown;
2877
- 'error-strategy'?: {
2878
- type: "stringified";
2879
- } | {
2880
- type: "fetchResponse";
2881
- } | undefined;
2882
- } | undefined>;
2883
- }, "strip", z.ZodTypeAny, {
2884
- onestore: {
2885
- config: {
2886
- bindings: {
2887
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2888
- identifier: string;
2889
- }[];
2890
- 'operation-type': "mutation" | "query" | "graphql";
2891
- schema: "default" | "flattened";
2892
- exposeRefresh: boolean;
2893
- 'body-param'?: string | undefined;
2894
- };
2895
- 'cache-strategy': {
2896
- type: "none";
2897
- } | {
2898
- type: "resource";
2899
- config: {
2900
- 'max-age': number;
2901
- 'stale-while-revalidate'?: number | undefined;
2902
- };
2903
- } | {
2904
- type: "normalized";
2905
- key?: Record<string, string> | undefined;
2906
- 'cache-control'?: {
2907
- 'max-age': number;
2908
- type: "max-age";
2909
- 'stale-while-revalidate'?: number | undefined;
2910
- } | {
2911
- type: "no-cache";
2912
- } | undefined;
2913
- };
2914
- 'error-strategy': {
2915
- type: "stringified";
2916
- } | {
2917
- type: "fetchResponse";
2918
- };
2919
- services?: Record<string, {
2920
- ref: string;
2921
- } | {
2922
- version: string;
2923
- tags?: Record<string, string> | undefined;
2924
- optional?: boolean | undefined;
2925
- }> | undefined;
2926
- };
2927
- }, {
2928
- onestore?: {
2929
- services?: Record<string, {
2930
- ref: string;
2931
- } | {
2932
- version: string;
2933
- tags?: Record<string, string> | undefined;
2934
- optional?: boolean | undefined;
2935
- }> | undefined;
2936
- config?: {
2937
- bindings?: {
2938
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2939
- identifier?: string | undefined;
2940
- }[] | undefined;
2941
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2942
- schema?: "default" | "flattened" | undefined;
2943
- exposeRefresh?: boolean | undefined;
2944
- 'body-param'?: string | undefined;
2945
- } | undefined;
2946
- 'cache-strategy'?: unknown;
2947
- 'error-strategy'?: {
2948
- type: "stringified";
2949
- } | {
2950
- type: "fetchResponse";
2951
- } | undefined;
2952
- } | undefined;
2953
- }>, z.ZodObject<{
2954
- onestore: z.ZodObject<{
2955
- config: z.ZodObject<{
2956
- aura: z.ZodObject<{
2957
- method: z.ZodString;
2958
- }, "strip", z.ZodTypeAny, {
2959
- method: string;
2960
- }, {
2961
- method: string;
2962
- }>;
2963
- }, "strip", z.ZodTypeAny, {
2964
- aura: {
2965
- method: string;
2966
- };
2967
- }, {
2968
- aura: {
2969
- method: string;
2970
- };
2971
- }>;
2972
- }, "strip", z.ZodTypeAny, {
2973
- config: {
2974
- aura: {
2975
- method: string;
2976
- };
2977
- };
2978
- }, {
2979
- config: {
2980
- aura: {
2981
- method: string;
2982
- };
2983
- };
2984
- }>;
2985
- }, "strip", z.ZodTypeAny, {
2986
- onestore: {
2987
- config: {
2988
- aura: {
2989
- method: string;
2990
- };
2991
- };
2992
- };
2993
- }, {
2994
- onestore: {
2995
- config: {
2996
- aura: {
2997
- method: string;
2998
- };
2999
- };
3000
- };
3001
- }>>, z.ZodObject<{
3002
- onestore: z.ZodObject<{
3003
- config: z.ZodObject<{
3004
- aura: z.ZodObject<{
3005
- 'body-param': z.ZodOptional<z.ZodString>;
3006
- }, "strip", z.ZodTypeAny, {
3007
- 'body-param'?: string | undefined;
3008
- }, {
3009
- 'body-param'?: string | undefined;
3010
- }>;
3011
- }, "strip", z.ZodTypeAny, {
3012
- aura: {
3013
- 'body-param'?: string | undefined;
3014
- };
3015
- }, {
3016
- aura: {
3017
- 'body-param'?: string | undefined;
3018
- };
3019
- }>;
3020
- }, "strip", z.ZodTypeAny, {
3021
- config: {
3022
- aura: {
3023
- 'body-param'?: string | undefined;
3024
- };
3025
- };
3026
- }, {
3027
- config: {
3028
- aura: {
3029
- 'body-param'?: string | undefined;
3030
- };
3031
- };
3032
- }>;
3033
- }, "strip", z.ZodTypeAny, {
3034
- onestore: {
3035
- config: {
3036
- aura: {
3037
- 'body-param'?: string | undefined;
3038
- };
3039
- };
3040
- };
3041
- }, {
3042
- onestore: {
3043
- config: {
3044
- aura: {
3045
- 'body-param'?: string | undefined;
3046
- };
3047
- };
3048
- };
3049
- }>>, ({
3050
- onestore: {
3051
- config: {
3052
- bindings: {
3053
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3054
- identifier: string;
3055
- }[];
3056
- 'operation-type': "mutation" | "query" | "graphql";
3057
- schema: "default" | "flattened";
3058
- exposeRefresh: boolean;
3059
- 'body-param'?: string | undefined;
3060
- };
3061
- 'cache-strategy': {
3062
- type: "none";
3063
- } | {
3064
- type: "resource";
3065
- config: {
3066
- 'max-age': number;
3067
- 'stale-while-revalidate'?: number | undefined;
3068
- };
3069
- } | {
3070
- type: "normalized";
3071
- key?: Record<string, string> | undefined;
3072
- 'cache-control'?: {
3073
- 'max-age': number;
3074
- type: "max-age";
3075
- 'stale-while-revalidate'?: number | undefined;
3076
- } | {
3077
- type: "no-cache";
3078
- } | undefined;
3079
- };
3080
- 'error-strategy': {
3081
- type: "stringified";
3082
- } | {
3083
- type: "fetchResponse";
3084
- };
3085
- services?: Record<string, {
3086
- ref: string;
3087
- } | {
3088
- version: string;
3089
- tags?: Record<string, string> | undefined;
3090
- optional?: boolean | undefined;
3091
- }> | undefined;
3092
- };
3093
- } & {
3094
- onestore: {
3095
- config: {
3096
- aura: {
3097
- method: string;
3098
- };
3099
- };
3100
- };
3101
- } & {
3102
- onestore: {
3103
- config: {
3104
- aura: {
3105
- 'body-param'?: string | undefined;
3106
- };
3107
- };
3108
- };
3109
- }) | {
3110
- onestore: {
3111
- config: {
3112
- 'body-param': string | undefined;
3113
- aura: {
3114
- 'body-param': string | undefined;
3115
- method: string;
3116
- };
3117
- bindings: {
3118
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3119
- identifier: string;
3120
- }[];
3121
- 'operation-type': "mutation" | "query" | "graphql";
3122
- schema: "default" | "flattened";
3123
- exposeRefresh: boolean;
3124
- };
3125
- };
3126
- }, {
3127
- onestore?: {
3128
- services?: Record<string, {
3129
- ref: string;
3130
- } | {
3131
- version: string;
3132
- tags?: Record<string, string> | undefined;
3133
- optional?: boolean | undefined;
3134
- }> | undefined;
3135
- config?: {
3136
- bindings?: {
3137
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3138
- identifier?: string | undefined;
3139
- }[] | undefined;
3140
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3141
- schema?: "default" | "flattened" | undefined;
3142
- exposeRefresh?: boolean | undefined;
3143
- 'body-param'?: string | undefined;
3144
- } | undefined;
3145
- 'cache-strategy'?: unknown;
3146
- 'error-strategy'?: {
3147
- type: "stringified";
3148
- } | {
3149
- type: "fetchResponse";
3150
- } | undefined;
3151
- } | undefined;
3152
- } & {
3153
- onestore: {
3154
- config: {
3155
- aura: {
3156
- method: string;
3157
- };
3158
- };
3159
- };
3160
- } & {
3161
- onestore: {
3162
- config: {
3163
- aura: {
3164
- 'body-param'?: string | undefined;
3165
- };
3166
- };
3167
- };
3168
- }>;
3169
- buildGraphQLOperationSchema(): z.ZodIntersection<z.ZodObject<{
3170
- onestore: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodObject<{
3171
- config: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodObject<{
3172
- 'operation-type': z.ZodDefault<z.ZodEnum<["query", "mutation", "graphql"]>>;
3173
- schema: z.ZodDefault<z.ZodEnum<["flattened", "default"]>>;
3174
- bindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
3175
- type: z.ZodDefault<z.ZodEnum<["wire", "imperative", "imperative-legacy", "mutation"]>>;
3176
- identifier: z.ZodDefault<z.ZodString>;
3177
- }, "strip", z.ZodTypeAny, {
3178
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3179
- identifier: string;
3180
- }, {
3181
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3182
- identifier?: string | undefined;
3183
- }>, "many">>;
3184
- exposeRefresh: z.ZodDefault<z.ZodBoolean>;
3185
- 'body-param': z.ZodOptional<z.ZodString>;
3186
- }, "strip", z.ZodTypeAny, {
3187
- bindings: {
3188
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3189
- identifier: string;
3190
- }[];
3191
- 'operation-type': "mutation" | "query" | "graphql";
3192
- schema: "default" | "flattened";
3193
- exposeRefresh: boolean;
3194
- 'body-param'?: string | undefined;
3195
- }, {
3196
- bindings?: {
3197
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3198
- identifier?: string | undefined;
3199
- }[] | undefined;
3200
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3201
- schema?: "default" | "flattened" | undefined;
3202
- exposeRefresh?: boolean | undefined;
3203
- 'body-param'?: string | undefined;
3204
- }>>, {
3205
- bindings: {
3206
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3207
- identifier: string;
3208
- }[];
3209
- 'operation-type': "mutation" | "query" | "graphql";
3210
- schema: "default" | "flattened";
3211
- exposeRefresh: boolean;
3212
- 'body-param'?: string | undefined;
3213
- }, {
3214
- bindings?: {
3215
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3216
- identifier?: string | undefined;
3217
- }[] | undefined;
3218
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3219
- schema?: "default" | "flattened" | undefined;
3220
- exposeRefresh?: boolean | undefined;
3221
- 'body-param'?: string | undefined;
3222
- } | undefined>, {
3223
- bindings: {
3224
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3225
- identifier: string;
3226
- }[];
3227
- 'operation-type': "mutation" | "query" | "graphql";
3228
- schema: "default" | "flattened";
3229
- exposeRefresh: boolean;
3230
- 'body-param'?: string | undefined;
3231
- }, {
3232
- bindings?: {
3233
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3234
- identifier?: string | undefined;
3235
- }[] | undefined;
3236
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3237
- schema?: "default" | "flattened" | undefined;
3238
- exposeRefresh?: boolean | undefined;
3239
- 'body-param'?: string | undefined;
3240
- } | undefined>, {
3241
- bindings: {
3242
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3243
- identifier: string;
3244
- }[];
3245
- 'operation-type': "mutation" | "query" | "graphql";
3246
- schema: "default" | "flattened";
3247
- exposeRefresh: boolean;
3248
- 'body-param'?: string | undefined;
3249
- }, {
3250
- bindings?: {
3251
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3252
- identifier?: string | undefined;
3253
- }[] | undefined;
3254
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3255
- schema?: "default" | "flattened" | undefined;
3256
- exposeRefresh?: boolean | undefined;
3257
- 'body-param'?: string | undefined;
3258
- } | undefined>, {
3259
- bindings: {
3260
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3261
- identifier: string;
3262
- }[];
3263
- 'operation-type': "mutation" | "query" | "graphql";
3264
- schema: "default" | "flattened";
3265
- exposeRefresh: boolean;
3266
- 'body-param'?: string | undefined;
3267
- }, {
3268
- bindings?: {
3269
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3270
- identifier?: string | undefined;
3271
- }[] | undefined;
3272
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3273
- schema?: "default" | "flattened" | undefined;
3274
- exposeRefresh?: boolean | undefined;
3275
- 'body-param'?: string | undefined;
3276
- } | undefined>, {
3277
- bindings: {
3278
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3279
- identifier: string;
3280
- }[];
3281
- 'operation-type': "mutation" | "query" | "graphql";
3282
- schema: "default" | "flattened";
3283
- exposeRefresh: boolean;
3284
- 'body-param'?: string | undefined;
3285
- }, {
3286
- bindings?: {
3287
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3288
- identifier?: string | undefined;
3289
- }[] | undefined;
3290
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3291
- schema?: "default" | "flattened" | undefined;
3292
- exposeRefresh?: boolean | undefined;
3293
- 'body-param'?: string | undefined;
3294
- } | undefined>, {
3295
- bindings: {
3296
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3297
- identifier: string;
3298
- }[];
3299
- 'operation-type': "mutation" | "query" | "graphql";
3300
- schema: "default" | "flattened";
3301
- exposeRefresh: boolean;
3302
- 'body-param'?: string | undefined;
3303
- }, {
3304
- bindings?: {
3305
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3306
- identifier?: string | undefined;
3307
- }[] | undefined;
3308
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3309
- schema?: "default" | "flattened" | undefined;
3310
- exposeRefresh?: boolean | undefined;
3311
- 'body-param'?: string | undefined;
3312
- } | undefined>, {
3313
- bindings: {
3314
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3315
- identifier: string;
3316
- }[];
3317
- 'operation-type': "mutation" | "query" | "graphql";
3318
- schema: "default" | "flattened";
3319
- exposeRefresh: boolean;
3320
- 'body-param'?: string | undefined;
3321
- }, {
3322
- bindings?: {
3323
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3324
- identifier?: string | undefined;
3325
- }[] | undefined;
3326
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3327
- schema?: "default" | "flattened" | undefined;
3328
- exposeRefresh?: boolean | undefined;
3329
- 'body-param'?: string | undefined;
3330
- } | undefined>, {
3331
- bindings: {
3332
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3333
- identifier: string;
3334
- }[];
3335
- 'operation-type': "mutation" | "query" | "graphql";
3336
- schema: "default" | "flattened";
3337
- exposeRefresh: boolean;
3338
- 'body-param'?: string | undefined;
3339
- }, {
3340
- bindings?: {
3341
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3342
- identifier?: string | undefined;
3343
- }[] | undefined;
3344
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3345
- schema?: "default" | "flattened" | undefined;
3346
- exposeRefresh?: boolean | undefined;
3347
- 'body-param'?: string | undefined;
3348
- } | undefined>;
3349
- 'cache-strategy': z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3350
- type: z.ZodLiteral<"none">;
3351
- }, "strict", z.ZodTypeAny, {
3352
- type: "none";
3353
- }, {
3354
- type: "none";
3355
- }>, z.ZodObject<{
3356
- type: z.ZodLiteral<"resource">;
3357
- config: z.ZodObject<{
3358
- 'max-age': z.ZodNumber;
3359
- 'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
3360
- }, "strict", z.ZodTypeAny, {
3361
- 'max-age': number;
3362
- 'stale-while-revalidate'?: number | undefined;
3363
- }, {
3364
- 'max-age': number;
3365
- 'stale-while-revalidate'?: number | undefined;
3366
- }>;
3367
- }, "strict", z.ZodTypeAny, {
3368
- type: "resource";
3369
- config: {
3370
- 'max-age': number;
3371
- 'stale-while-revalidate'?: number | undefined;
3372
- };
3373
- }, {
3374
- type: "resource";
3375
- config: {
3376
- 'max-age': number;
3377
- 'stale-while-revalidate'?: number | undefined;
3378
- };
3379
- }>, z.ZodObject<{
3380
- type: z.ZodLiteral<"normalized">;
3381
- 'cache-control': z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3382
- type: z.ZodLiteral<"max-age">;
3383
- 'max-age': z.ZodNumber;
3384
- 'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
3385
- }, "strict", z.ZodTypeAny, {
3386
- 'max-age': number;
3387
- type: "max-age";
3388
- 'stale-while-revalidate'?: number | undefined;
3389
- }, {
3390
- 'max-age': number;
3391
- type: "max-age";
3392
- 'stale-while-revalidate'?: number | undefined;
3393
- }>, z.ZodObject<{
3394
- type: z.ZodLiteral<"no-cache">;
3395
- }, "strip", z.ZodTypeAny, {
3396
- type: "no-cache";
3397
- }, {
3398
- type: "no-cache";
3399
- }>]>>;
3400
- key: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
3401
- }, "strict", z.ZodTypeAny, {
3402
- type: "normalized";
3403
- key?: Record<string, string> | undefined;
3404
- 'cache-control'?: {
3405
- 'max-age': number;
3406
- type: "max-age";
3407
- 'stale-while-revalidate'?: number | undefined;
3408
- } | {
3409
- type: "no-cache";
3410
- } | undefined;
3411
- }, {
3412
- type: "normalized";
3413
- key?: Record<string, string> | undefined;
3414
- 'cache-control'?: {
3415
- 'max-age': number;
3416
- type: "max-age";
3417
- 'stale-while-revalidate'?: number | undefined;
3418
- } | {
3419
- type: "no-cache";
3420
- } | undefined;
3421
- }>]>, {
3422
- type: "none";
3423
- } | {
3424
- type: "resource";
3425
- config: {
3426
- 'max-age': number;
3427
- 'stale-while-revalidate'?: number | undefined;
3428
- };
3429
- } | {
3430
- type: "normalized";
3431
- key?: Record<string, string> | undefined;
3432
- 'cache-control'?: {
3433
- 'max-age': number;
3434
- type: "max-age";
3435
- 'stale-while-revalidate'?: number | undefined;
3436
- } | {
3437
- type: "no-cache";
3438
- } | undefined;
3439
- }, unknown>;
3440
- 'error-strategy': z.ZodDefault<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3441
- type: z.ZodLiteral<"stringified">;
3442
- }, "strict", z.ZodTypeAny, {
3443
- type: "stringified";
3444
- }, {
3445
- type: "stringified";
3446
- }>, z.ZodObject<{
3447
- type: z.ZodLiteral<"fetchResponse">;
3448
- }, "strict", z.ZodTypeAny, {
3449
- type: "fetchResponse";
3450
- }, {
3451
- type: "fetchResponse";
3452
- }>]>>;
3453
- services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
3454
- ref: z.ZodString;
3455
- }, "strict", z.ZodTypeAny, {
3456
- ref: string;
3457
- }, {
3458
- ref: string;
3459
- }>, z.ZodEffects<z.ZodObject<{
3460
- version: z.ZodString;
3461
- tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3462
- optional: z.ZodOptional<z.ZodBoolean>;
3463
- }, "strict", z.ZodTypeAny, {
3464
- version: string;
3465
- tags?: Record<string, string> | undefined;
3466
- optional?: boolean | undefined;
3467
- }, {
3468
- version: string;
3469
- tags?: Record<string, string> | undefined;
3470
- optional?: boolean | undefined;
3471
- }>, {
3472
- version: string;
3473
- tags?: Record<string, string> | undefined;
3474
- optional?: boolean | undefined;
3475
- }, {
3476
- version: string;
3477
- tags?: Record<string, string> | undefined;
3478
- optional?: boolean | undefined;
3479
- }>]>>>;
3480
- }, "strict", z.ZodTypeAny, {
3481
- config: {
3482
- bindings: {
3483
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3484
- identifier: string;
3485
- }[];
3486
- 'operation-type': "mutation" | "query" | "graphql";
3487
- schema: "default" | "flattened";
3488
- exposeRefresh: boolean;
3489
- 'body-param'?: string | undefined;
3490
- };
3491
- 'cache-strategy': {
3492
- type: "none";
3493
- } | {
3494
- type: "resource";
3495
- config: {
3496
- 'max-age': number;
3497
- 'stale-while-revalidate'?: number | undefined;
3498
- };
3499
- } | {
3500
- type: "normalized";
3501
- key?: Record<string, string> | undefined;
3502
- 'cache-control'?: {
3503
- 'max-age': number;
3504
- type: "max-age";
3505
- 'stale-while-revalidate'?: number | undefined;
3506
- } | {
3507
- type: "no-cache";
3508
- } | undefined;
3509
- };
3510
- 'error-strategy': {
3511
- type: "stringified";
3512
- } | {
3513
- type: "fetchResponse";
3514
- };
3515
- services?: Record<string, {
3516
- ref: string;
3517
- } | {
3518
- version: string;
3519
- tags?: Record<string, string> | undefined;
3520
- optional?: boolean | undefined;
3521
- }> | undefined;
3522
- }, {
3523
- services?: Record<string, {
3524
- ref: string;
3525
- } | {
3526
- version: string;
3527
- tags?: Record<string, string> | undefined;
3528
- optional?: boolean | undefined;
3529
- }> | undefined;
3530
- config?: {
3531
- bindings?: {
3532
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3533
- identifier?: string | undefined;
3534
- }[] | undefined;
3535
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3536
- schema?: "default" | "flattened" | undefined;
3537
- exposeRefresh?: boolean | undefined;
3538
- 'body-param'?: string | undefined;
3539
- } | undefined;
3540
- 'cache-strategy'?: unknown;
3541
- 'error-strategy'?: {
3542
- type: "stringified";
3543
- } | {
3544
- type: "fetchResponse";
3545
- } | undefined;
3546
- }>>, {
3547
- config: {
3548
- bindings: {
3549
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3550
- identifier: string;
3551
- }[];
3552
- 'operation-type': "mutation" | "query" | "graphql";
3553
- schema: "default" | "flattened";
3554
- exposeRefresh: boolean;
3555
- 'body-param'?: string | undefined;
3556
- };
3557
- 'cache-strategy': {
3558
- type: "none";
3559
- } | {
3560
- type: "resource";
3561
- config: {
3562
- 'max-age': number;
3563
- 'stale-while-revalidate'?: number | undefined;
3564
- };
3565
- } | {
3566
- type: "normalized";
3567
- key?: Record<string, string> | undefined;
3568
- 'cache-control'?: {
3569
- 'max-age': number;
3570
- type: "max-age";
3571
- 'stale-while-revalidate'?: number | undefined;
3572
- } | {
3573
- type: "no-cache";
3574
- } | undefined;
3575
- };
3576
- 'error-strategy': {
3577
- type: "stringified";
3578
- } | {
3579
- type: "fetchResponse";
3580
- };
3581
- services?: Record<string, {
3582
- ref: string;
3583
- } | {
3584
- version: string;
3585
- tags?: Record<string, string> | undefined;
3586
- optional?: boolean | undefined;
3587
- }> | undefined;
3588
- }, {
3589
- services?: Record<string, {
3590
- ref: string;
3591
- } | {
3592
- version: string;
3593
- tags?: Record<string, string> | undefined;
3594
- optional?: boolean | undefined;
3595
- }> | undefined;
3596
- config?: {
3597
- bindings?: {
3598
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3599
- identifier?: string | undefined;
3600
- }[] | undefined;
3601
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3602
- schema?: "default" | "flattened" | undefined;
3603
- exposeRefresh?: boolean | undefined;
3604
- 'body-param'?: string | undefined;
3605
- } | undefined;
3606
- 'cache-strategy'?: unknown;
3607
- 'error-strategy'?: {
3608
- type: "stringified";
3609
- } | {
3610
- type: "fetchResponse";
3611
- } | undefined;
3612
- } | undefined>, {
3613
- config: {
3614
- bindings: {
3615
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3616
- identifier: string;
3617
- }[];
3618
- 'operation-type': "mutation" | "query" | "graphql";
3619
- schema: "default" | "flattened";
3620
- exposeRefresh: boolean;
3621
- 'body-param'?: string | undefined;
3622
- };
3623
- 'cache-strategy': {
3624
- type: "none";
3625
- } | {
3626
- type: "resource";
3627
- config: {
3628
- 'max-age': number;
3629
- 'stale-while-revalidate'?: number | undefined;
3630
- };
3631
- } | {
3632
- type: "normalized";
3633
- key?: Record<string, string> | undefined;
3634
- 'cache-control'?: {
3635
- 'max-age': number;
3636
- type: "max-age";
3637
- 'stale-while-revalidate'?: number | undefined;
3638
- } | {
3639
- type: "no-cache";
3640
- } | undefined;
3641
- };
3642
- 'error-strategy': {
3643
- type: "stringified";
3644
- } | {
3645
- type: "fetchResponse";
3646
- };
3647
- services?: Record<string, {
3648
- ref: string;
3649
- } | {
3650
- version: string;
3651
- tags?: Record<string, string> | undefined;
3652
- optional?: boolean | undefined;
3653
- }> | undefined;
3654
- }, {
3655
- services?: Record<string, {
3656
- ref: string;
3657
- } | {
3658
- version: string;
3659
- tags?: Record<string, string> | undefined;
3660
- optional?: boolean | undefined;
3661
- }> | undefined;
3662
- config?: {
3663
- bindings?: {
3664
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3665
- identifier?: string | undefined;
3666
- }[] | undefined;
3667
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3668
- schema?: "default" | "flattened" | undefined;
3669
- exposeRefresh?: boolean | undefined;
3670
- 'body-param'?: string | undefined;
3671
- } | undefined;
3672
- 'cache-strategy'?: unknown;
3673
- 'error-strategy'?: {
3674
- type: "stringified";
3675
- } | {
3676
- type: "fetchResponse";
3677
- } | undefined;
3678
- } | undefined>, {
3679
- config: {
3680
- bindings: {
3681
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3682
- identifier: string;
3683
- }[];
3684
- 'operation-type': "mutation" | "query" | "graphql";
3685
- schema: "default" | "flattened";
3686
- exposeRefresh: boolean;
3687
- 'body-param'?: string | undefined;
3688
- };
3689
- 'cache-strategy': {
3690
- type: "none";
3691
- } | {
3692
- type: "resource";
3693
- config: {
3694
- 'max-age': number;
3695
- 'stale-while-revalidate'?: number | undefined;
3696
- };
3697
- } | {
3698
- type: "normalized";
3699
- key?: Record<string, string> | undefined;
3700
- 'cache-control'?: {
3701
- 'max-age': number;
3702
- type: "max-age";
3703
- 'stale-while-revalidate'?: number | undefined;
3704
- } | {
3705
- type: "no-cache";
3706
- } | undefined;
3707
- };
3708
- 'error-strategy': {
3709
- type: "stringified";
3710
- } | {
3711
- type: "fetchResponse";
3712
- };
3713
- services?: Record<string, {
3714
- ref: string;
3715
- } | {
3716
- version: string;
3717
- tags?: Record<string, string> | undefined;
3718
- optional?: boolean | undefined;
3719
- }> | undefined;
3720
- }, {
3721
- services?: Record<string, {
3722
- ref: string;
3723
- } | {
3724
- version: string;
3725
- tags?: Record<string, string> | undefined;
3726
- optional?: boolean | undefined;
3727
- }> | undefined;
3728
- config?: {
3729
- bindings?: {
3730
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3731
- identifier?: string | undefined;
3732
- }[] | undefined;
3733
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3734
- schema?: "default" | "flattened" | undefined;
3735
- exposeRefresh?: boolean | undefined;
3736
- 'body-param'?: string | undefined;
3737
- } | undefined;
3738
- 'cache-strategy'?: unknown;
3739
- 'error-strategy'?: {
3740
- type: "stringified";
3741
- } | {
3742
- type: "fetchResponse";
3743
- } | undefined;
3744
- } | undefined>, {
3745
- config: {
3746
- bindings: {
3747
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3748
- identifier: string;
3749
- }[];
3750
- 'operation-type': "mutation" | "query" | "graphql";
3751
- schema: "default" | "flattened";
3752
- exposeRefresh: boolean;
3753
- 'body-param'?: string | undefined;
3754
- };
3755
- 'cache-strategy': {
3756
- type: "none";
3757
- } | {
3758
- type: "resource";
3759
- config: {
3760
- 'max-age': number;
3761
- 'stale-while-revalidate'?: number | undefined;
3762
- };
3763
- } | {
3764
- type: "normalized";
3765
- key?: Record<string, string> | undefined;
3766
- 'cache-control'?: {
3767
- 'max-age': number;
3768
- type: "max-age";
3769
- 'stale-while-revalidate'?: number | undefined;
3770
- } | {
3771
- type: "no-cache";
3772
- } | undefined;
3773
- };
3774
- 'error-strategy': {
3775
- type: "stringified";
3776
- } | {
3777
- type: "fetchResponse";
3778
- };
3779
- services?: Record<string, {
3780
- ref: string;
3781
- } | {
3782
- version: string;
3783
- tags?: Record<string, string> | undefined;
3784
- optional?: boolean | undefined;
3785
- }> | undefined;
3786
- }, {
3787
- services?: Record<string, {
3788
- ref: string;
3789
- } | {
3790
- version: string;
3791
- tags?: Record<string, string> | undefined;
3792
- optional?: boolean | undefined;
3793
- }> | undefined;
3794
- config?: {
3795
- bindings?: {
3796
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3797
- identifier?: string | undefined;
3798
- }[] | undefined;
3799
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3800
- schema?: "default" | "flattened" | undefined;
3801
- exposeRefresh?: boolean | undefined;
3802
- 'body-param'?: string | undefined;
3803
- } | undefined;
3804
- 'cache-strategy'?: unknown;
3805
- 'error-strategy'?: {
3806
- type: "stringified";
3807
- } | {
3808
- type: "fetchResponse";
3809
- } | undefined;
3810
- } | undefined>;
3811
- }, "strip", z.ZodTypeAny, {
3812
- onestore: {
3813
- config: {
3814
- bindings: {
3815
- type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3816
- identifier: string;
3817
- }[];
3818
- 'operation-type': "mutation" | "query" | "graphql";
3819
- schema: "default" | "flattened";
3820
- exposeRefresh: boolean;
3821
- 'body-param'?: string | undefined;
3822
- };
3823
- 'cache-strategy': {
3824
- type: "none";
3825
- } | {
3826
- type: "resource";
3827
- config: {
3828
- 'max-age': number;
3829
- 'stale-while-revalidate'?: number | undefined;
3830
- };
3831
- } | {
3832
- type: "normalized";
3833
- key?: Record<string, string> | undefined;
3834
- 'cache-control'?: {
3835
- 'max-age': number;
3836
- type: "max-age";
3837
- 'stale-while-revalidate'?: number | undefined;
3838
- } | {
3839
- type: "no-cache";
3840
- } | undefined;
3841
- };
3842
- 'error-strategy': {
3843
- type: "stringified";
3844
- } | {
3845
- type: "fetchResponse";
3846
- };
3847
- services?: Record<string, {
3848
- ref: string;
3849
- } | {
3850
- version: string;
3851
- tags?: Record<string, string> | undefined;
3852
- optional?: boolean | undefined;
3853
- }> | undefined;
3854
- };
3855
- }, {
3856
- onestore?: {
3857
- services?: Record<string, {
3858
- ref: string;
3859
- } | {
3860
- version: string;
3861
- tags?: Record<string, string> | undefined;
3862
- optional?: boolean | undefined;
3863
- }> | undefined;
3864
- config?: {
3865
- bindings?: {
3866
- type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3867
- identifier?: string | undefined;
3868
- }[] | undefined;
3869
- 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3870
- schema?: "default" | "flattened" | undefined;
3871
- exposeRefresh?: boolean | undefined;
3872
- 'body-param'?: string | undefined;
3873
- } | undefined;
3874
- 'cache-strategy'?: unknown;
3875
- 'error-strategy'?: {
3876
- type: "stringified";
3877
- } | {
3878
- type: "fetchResponse";
3879
- } | undefined;
3880
- } | undefined;
3881
- }>, z.ZodObject<{
3882
- onestore: z.ZodObject<{
3883
- config: z.ZodObject<{
3884
- graphql: z.ZodObject<{
3885
- schema: z.ZodString;
3886
- 'type-metadata': z.ZodDefault<z.ZodArray<z.ZodObject<{
3887
- typename: z.ZodString;
3888
- 'cache-control': z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3889
- type: z.ZodLiteral<"max-age">;
3890
- 'max-age': z.ZodNumber;
3891
- 'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
3892
- }, "strict", z.ZodTypeAny, {
3893
- 'max-age': number;
3894
- type: "max-age";
3895
- 'stale-while-revalidate'?: number | undefined;
3896
- }, {
3897
- 'max-age': number;
3898
- type: "max-age";
3899
- 'stale-while-revalidate'?: number | undefined;
3900
- }>, z.ZodObject<{
3901
- type: z.ZodLiteral<"no-cache">;
3902
- }, "strip", z.ZodTypeAny, {
3903
- type: "no-cache";
3904
- }, {
3905
- type: "no-cache";
3906
- }>]>;
3907
- }, "strip", z.ZodTypeAny, {
3908
- 'cache-control': {
3909
- 'max-age': number;
3910
- type: "max-age";
3911
- 'stale-while-revalidate'?: number | undefined;
3912
- } | {
3913
- type: "no-cache";
3914
- };
3915
- typename: string;
3916
- }, {
3917
- 'cache-control': {
3918
- 'max-age': number;
3919
- type: "max-age";
3920
- 'stale-while-revalidate'?: number | undefined;
3921
- } | {
3922
- type: "no-cache";
3923
- };
3924
- typename: string;
3925
- }>, "many">>;
3926
- }, "strip", z.ZodTypeAny, {
3927
- schema: string;
3928
- 'type-metadata': {
3929
- 'cache-control': {
3930
- 'max-age': number;
3931
- type: "max-age";
3932
- 'stale-while-revalidate'?: number | undefined;
3933
- } | {
3934
- type: "no-cache";
3935
- };
3936
- typename: string;
3937
- }[];
3938
- }, {
3939
- schema: string;
3940
- 'type-metadata'?: {
3941
- 'cache-control': {
3942
- 'max-age': number;
3943
- type: "max-age";
3944
- 'stale-while-revalidate'?: number | undefined;
3945
- } | {
3946
- type: "no-cache";
3947
- };
3948
- typename: string;
3949
- }[] | undefined;
3950
- }>;
3951
- }, "strip", z.ZodTypeAny, {
3952
- graphql: {
3953
- schema: string;
3954
- 'type-metadata': {
3955
- 'cache-control': {
3956
- 'max-age': number;
3957
- type: "max-age";
3958
- 'stale-while-revalidate'?: number | undefined;
3959
- } | {
3960
- type: "no-cache";
3961
- };
3962
- typename: string;
3963
- }[];
3964
- };
3965
- }, {
3966
- graphql: {
3967
- schema: string;
3968
- 'type-metadata'?: {
3969
- 'cache-control': {
3970
- 'max-age': number;
3971
- type: "max-age";
3972
- 'stale-while-revalidate'?: number | undefined;
3973
- } | {
3974
- type: "no-cache";
3975
- };
3976
- typename: string;
3977
- }[] | undefined;
3978
- };
3979
- }>;
3980
- }, "strip", z.ZodTypeAny, {
3981
- config: {
3982
- graphql: {
3983
- schema: string;
3984
- 'type-metadata': {
3985
- 'cache-control': {
3986
- 'max-age': number;
3987
- type: "max-age";
3988
- 'stale-while-revalidate'?: number | undefined;
3989
- } | {
3990
- type: "no-cache";
3991
- };
3992
- typename: string;
3993
- }[];
3994
- };
3995
- };
3996
- }, {
3997
- config: {
3998
- graphql: {
3999
- schema: string;
4000
- 'type-metadata'?: {
4001
- 'cache-control': {
4002
- 'max-age': number;
4003
- type: "max-age";
4004
- 'stale-while-revalidate'?: number | undefined;
4005
- } | {
4006
- type: "no-cache";
4007
- };
4008
- typename: string;
4009
- }[] | undefined;
4010
- };
4011
- };
4012
- }>;
4013
- }, "strip", z.ZodTypeAny, {
4014
- onestore: {
4015
- config: {
4016
- graphql: {
4017
- schema: string;
4018
- 'type-metadata': {
4019
- 'cache-control': {
4020
- 'max-age': number;
4021
- type: "max-age";
4022
- 'stale-while-revalidate'?: number | undefined;
4023
- } | {
4024
- type: "no-cache";
4025
- };
4026
- typename: string;
4027
- }[];
4028
- };
4029
- };
4030
- };
4031
- }, {
4032
- onestore: {
4033
- config: {
4034
- graphql: {
4035
- schema: string;
4036
- 'type-metadata'?: {
4037
- 'cache-control': {
4038
- 'max-age': number;
4039
- type: "max-age";
4040
- 'stale-while-revalidate'?: number | undefined;
4041
- } | {
4042
- type: "no-cache";
4043
- };
4044
- typename: string;
4045
- }[] | undefined;
4046
- };
4047
- };
4048
- };
4049
- }>>;
4050
- }
9
+ import { OperationSchemaBuilder } from '../../zod-schemas';
4051
10
  export declare abstract class AmfBaseOperation implements BaseOperation {
4052
11
  protected amfOperation: amf.Operation;
4053
12
  protected amfTypeFactory: AMFTypeFactory;