@conduit-client/model 5.67.0-dev1

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 (105) hide show
  1. package/dist/main/index.js +6 -0
  2. package/dist/main/index.js.map +1 -0
  3. package/dist/types/index.d.ts +0 -0
  4. package/dist/types/v1/__tests__/validation.spec.d.ts +1 -0
  5. package/dist/types/v1/__tests__/zod-utils.spec.d.ts +1 -0
  6. package/dist/types/v1/amf/AMFAPI.d.ts +44 -0
  7. package/dist/types/v1/amf/__tests__/AMFAPI.spec.d.ts +1 -0
  8. package/dist/types/v1/amf/__tests__/amf-api-service.spec.d.ts +1 -0
  9. package/dist/types/v1/amf/__tests__/amf-extensions-services.spec.d.ts +1 -0
  10. package/dist/types/v1/amf/__tests__/amf-extensions.spec.d.ts +1 -0
  11. package/dist/types/v1/amf/__tests__/amf-utils.spec.d.ts +1 -0
  12. package/dist/types/v1/amf/__tests__/parser.spec.d.ts +1 -0
  13. package/dist/types/v1/amf/__tests__/test-utils.d.ts +211 -0
  14. package/dist/types/v1/amf/__tests__/validation.spec.d.ts +1 -0
  15. package/dist/types/v1/amf/__tests__/version.spec.d.ts +1 -0
  16. package/dist/types/v1/amf/amf-api-service.d.ts +15 -0
  17. package/dist/types/v1/amf/amf-extensions.d.ts +2 -0
  18. package/dist/types/v1/amf/amf-utils.d.ts +36 -0
  19. package/dist/types/v1/amf/endpoints/__tests__/amf-endpoint.spec.d.ts +1 -0
  20. package/dist/types/v1/amf/endpoints/__tests__/amf-operation.spec.d.ts +1 -0
  21. package/dist/types/v1/amf/endpoints/amf-endpoint.d.ts +32 -0
  22. package/dist/types/v1/amf/endpoints/amf-operation.d.ts +4112 -0
  23. package/dist/types/v1/amf/index.d.ts +5 -0
  24. package/dist/types/v1/amf/parser.d.ts +6 -0
  25. package/dist/types/v1/amf/types/AMFAllOfType.d.ts +23 -0
  26. package/dist/types/v1/amf/types/AMFAnyType.d.ts +7 -0
  27. package/dist/types/v1/amf/types/AMFArrayType.d.ts +10 -0
  28. package/dist/types/v1/amf/types/AMFBaseType.d.ts +25 -0
  29. package/dist/types/v1/amf/types/AMFDiscriminatedObjectType.d.ts +34 -0
  30. package/dist/types/v1/amf/types/AMFEnumType.d.ts +18 -0
  31. package/dist/types/v1/amf/types/AMFNilType.d.ts +7 -0
  32. package/dist/types/v1/amf/types/AMFNotType.d.ts +18 -0
  33. package/dist/types/v1/amf/types/AMFObjectType.d.ts +14 -0
  34. package/dist/types/v1/amf/types/AMFOneOfType.d.ts +17 -0
  35. package/dist/types/v1/amf/types/AMFRefType.d.ts +10 -0
  36. package/dist/types/v1/amf/types/AMFScalarTypes.d.ts +47 -0
  37. package/dist/types/v1/amf/types/__tests__/AMFAnyType.spec.d.ts +1 -0
  38. package/dist/types/v1/amf/types/__tests__/AMFArrayType.spec.d.ts +1 -0
  39. package/dist/types/v1/amf/types/__tests__/AMFBaseType.spec.d.ts +1 -0
  40. package/dist/types/v1/amf/types/__tests__/AMFDiscriminatedObjectType.spec.d.ts +1 -0
  41. package/dist/types/v1/amf/types/__tests__/AMFEnumType.spec.d.ts +1 -0
  42. package/dist/types/v1/amf/types/__tests__/AMFNilType.spec.d.ts +1 -0
  43. package/dist/types/v1/amf/types/__tests__/AMFNotType.spec.d.ts +1 -0
  44. package/dist/types/v1/amf/types/__tests__/AMFObjectType.spec.d.ts +1 -0
  45. package/dist/types/v1/amf/types/__tests__/AMFOneOfType.spec.d.ts +1 -0
  46. package/dist/types/v1/amf/types/__tests__/AMFScalarType.spec.d.ts +1 -0
  47. package/dist/types/v1/amf/types/__tests__/annotations-schemas.spec.d.ts +1 -0
  48. package/dist/types/v1/amf/types/__tests__/factory.spec.d.ts +1 -0
  49. package/dist/types/v1/amf/types/annotations-schemas.d.ts +172 -0
  50. package/dist/types/v1/amf/types/factory.d.ts +23 -0
  51. package/dist/types/v1/amf/types/index.d.ts +16 -0
  52. package/dist/types/v1/amf/validation.d.ts +11 -0
  53. package/dist/types/v1/amf/version.d.ts +3 -0
  54. package/dist/types/v1/api/__tests__/api.spec.d.ts +1 -0
  55. package/dist/types/v1/api/__tests__/index.spec.d.ts +0 -0
  56. package/dist/types/v1/api/api.d.ts +37 -0
  57. package/dist/types/v1/api/endpoint.d.ts +162 -0
  58. package/dist/types/v1/api/index.d.ts +5 -0
  59. package/dist/types/v1/api/service-overrides.d.ts +249 -0
  60. package/dist/types/v1/api/service.d.ts +23 -0
  61. package/dist/types/v1/api/validation/bindings.d.ts +6 -0
  62. package/dist/types/v1/api/validation/endpoint/__tests__/index.spec.d.ts +1 -0
  63. package/dist/types/v1/api/validation/endpoint/index.d.ts +3 -0
  64. package/dist/types/v1/api/validation/index.d.ts +16 -0
  65. package/dist/types/v1/api/validation/operation/BodyDataValidator.d.ts +13 -0
  66. package/dist/types/v1/api/validation/operation/InvalidationValidator.d.ts +39 -0
  67. package/dist/types/v1/api/validation/operation/KeyMatchValidator.d.ts +7 -0
  68. package/dist/types/v1/api/validation/operation/KeySourceValidator.d.ts +25 -0
  69. package/dist/types/v1/api/validation/operation/NoNormalizedTypesValidator.d.ts +19 -0
  70. package/dist/types/v1/api/validation/operation/Response200Validator.d.ts +96 -0
  71. package/dist/types/v1/api/validation/operation/__tests__/BodyDataValidator.spec.d.ts +1 -0
  72. package/dist/types/v1/api/validation/operation/__tests__/InvalidationValidator.spec.d.ts +1 -0
  73. package/dist/types/v1/api/validation/operation/__tests__/KeyMatchValidator.spec.d.ts +1 -0
  74. package/dist/types/v1/api/validation/operation/__tests__/KeySourceValidator.spec.d.ts +1 -0
  75. package/dist/types/v1/api/validation/operation/__tests__/NoNormalizedTypesValidator.spec.d.ts +1 -0
  76. package/dist/types/v1/api/validation/operation/__tests__/Response200Validator.spec.d.ts +1 -0
  77. package/dist/types/v1/api/validation/operation/__tests__/index.spec.d.ts +1 -0
  78. package/dist/types/v1/api/validation/operation/__tests__/utils.spec.d.ts +1 -0
  79. package/dist/types/v1/api/validation/operation/index.d.ts +3 -0
  80. package/dist/types/v1/api/validation/operation/utils.d.ts +4 -0
  81. package/dist/types/v1/index.d.ts +3 -0
  82. package/dist/types/v1/types/Type.d.ts +106 -0
  83. package/dist/types/v1/types/TypeRegistry.d.ts +19 -0
  84. package/dist/types/v1/types/__tests__/TypeRegistry.spec.d.ts +1 -0
  85. package/dist/types/v1/types/__tests__/types-equal.spec.d.ts +1 -0
  86. package/dist/types/v1/types/__tests__/utils.spec.d.ts +1 -0
  87. package/dist/types/v1/types/index.d.ts +5 -0
  88. package/dist/types/v1/types/types-equal.d.ts +2 -0
  89. package/dist/types/v1/types/utils.d.ts +27 -0
  90. package/dist/types/v1/types/validators/__tests__/common.spec.d.ts +1 -0
  91. package/dist/types/v1/types/validators/__tests__/index.spec.d.ts +1 -0
  92. package/dist/types/v1/types/validators/common.d.ts +4 -0
  93. package/dist/types/v1/types/validators/extensions/KeyFieldReferenceValidator.d.ts +11 -0
  94. package/dist/types/v1/types/validators/extensions/KeyIsDefinedInSupportedTypeValidator.d.ts +20 -0
  95. package/dist/types/v1/types/validators/extensions/KeySourcesValidator.d.ts +25 -0
  96. package/dist/types/v1/types/validators/extensions/__tests__/KeyFieldReferenceValidator.spec.d.ts +1 -0
  97. package/dist/types/v1/types/validators/extensions/__tests__/KeyIsDefinedInSupportedTypeValidator.spec.d.ts +1 -0
  98. package/dist/types/v1/types/validators/extensions/__tests__/KeySourcesValidator.spec.d.ts +1 -0
  99. package/dist/types/v1/types/validators/extensions/index.d.ts +3 -0
  100. package/dist/types/v1/types/validators/index.d.ts +4 -0
  101. package/dist/types/v1/validation.d.ts +29 -0
  102. package/dist/types/v1/zod-utils.d.ts +2 -0
  103. package/dist/v1/index.js +7346 -0
  104. package/dist/v1/index.js.map +1 -0
  105. package/package.json +42 -0
@@ -0,0 +1,4112 @@
1
+ import { type LoggerService, type FileParserLogger } from '@conduit-client/utils';
2
+ import { z } from 'zod';
3
+ import type amf from 'amf-client-js';
4
+ import type { BaseAuraOperation, AuraOperationWithRequestBody, BaseOperation, HttpMethod, Parameter, Payload, Request, Response, CacheStrategy, ConfigSchemaType, OperationType, ErrorStrategy, Binding, BaseHttpOperation, HttpOperationWithRequestBody, BaseGraphQLOperation } from '../../api/endpoint';
5
+ import type { AMFType, AMFTypeFactory } from '../types';
6
+ import type { TypeRegistry } from '../../types';
7
+ import type { AmfEndPoint } from './amf-endpoint';
8
+ import type { API, Server } from '../../api';
9
+ 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
+ 'operation-type': "mutation" | "query" | "graphql";
34
+ schema: "default" | "flattened";
35
+ bindings: {
36
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
37
+ identifier: string;
38
+ }[];
39
+ exposeRefresh: boolean;
40
+ 'body-param'?: string | undefined;
41
+ }, {
42
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
43
+ schema?: "default" | "flattened" | undefined;
44
+ bindings?: {
45
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
46
+ identifier?: string | undefined;
47
+ }[] | undefined;
48
+ exposeRefresh?: boolean | undefined;
49
+ 'body-param'?: string | undefined;
50
+ }>>, {
51
+ 'operation-type': "mutation" | "query" | "graphql";
52
+ schema: "default" | "flattened";
53
+ bindings: {
54
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
55
+ identifier: string;
56
+ }[];
57
+ exposeRefresh: boolean;
58
+ 'body-param'?: string | undefined;
59
+ }, {
60
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
61
+ schema?: "default" | "flattened" | undefined;
62
+ bindings?: {
63
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
64
+ identifier?: string | undefined;
65
+ }[] | undefined;
66
+ exposeRefresh?: boolean | undefined;
67
+ 'body-param'?: string | undefined;
68
+ } | undefined>, {
69
+ 'operation-type': "mutation" | "query" | "graphql";
70
+ schema: "default" | "flattened";
71
+ bindings: {
72
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
73
+ identifier: string;
74
+ }[];
75
+ exposeRefresh: boolean;
76
+ 'body-param'?: string | undefined;
77
+ }, {
78
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
79
+ schema?: "default" | "flattened" | undefined;
80
+ bindings?: {
81
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
82
+ identifier?: string | undefined;
83
+ }[] | undefined;
84
+ exposeRefresh?: boolean | undefined;
85
+ 'body-param'?: string | undefined;
86
+ } | undefined>, {
87
+ 'operation-type': "mutation" | "query" | "graphql";
88
+ schema: "default" | "flattened";
89
+ bindings: {
90
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
91
+ identifier: string;
92
+ }[];
93
+ exposeRefresh: boolean;
94
+ 'body-param'?: string | undefined;
95
+ }, {
96
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
97
+ schema?: "default" | "flattened" | undefined;
98
+ bindings?: {
99
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
100
+ identifier?: string | undefined;
101
+ }[] | undefined;
102
+ exposeRefresh?: boolean | undefined;
103
+ 'body-param'?: string | undefined;
104
+ } | undefined>, {
105
+ 'operation-type': "mutation" | "query" | "graphql";
106
+ schema: "default" | "flattened";
107
+ bindings: {
108
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
109
+ identifier: string;
110
+ }[];
111
+ exposeRefresh: boolean;
112
+ 'body-param'?: string | undefined;
113
+ }, {
114
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
115
+ schema?: "default" | "flattened" | undefined;
116
+ bindings?: {
117
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
118
+ identifier?: string | undefined;
119
+ }[] | undefined;
120
+ exposeRefresh?: boolean | undefined;
121
+ 'body-param'?: string | undefined;
122
+ } | undefined>, {
123
+ 'operation-type': "mutation" | "query" | "graphql";
124
+ schema: "default" | "flattened";
125
+ bindings: {
126
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
127
+ identifier: string;
128
+ }[];
129
+ exposeRefresh: boolean;
130
+ 'body-param'?: string | undefined;
131
+ }, {
132
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
133
+ schema?: "default" | "flattened" | undefined;
134
+ bindings?: {
135
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
136
+ identifier?: string | undefined;
137
+ }[] | undefined;
138
+ exposeRefresh?: boolean | undefined;
139
+ 'body-param'?: string | undefined;
140
+ } | undefined>, {
141
+ 'operation-type': "mutation" | "query" | "graphql";
142
+ schema: "default" | "flattened";
143
+ bindings: {
144
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
145
+ identifier: string;
146
+ }[];
147
+ exposeRefresh: boolean;
148
+ 'body-param'?: string | undefined;
149
+ }, {
150
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
151
+ schema?: "default" | "flattened" | undefined;
152
+ bindings?: {
153
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
154
+ identifier?: string | undefined;
155
+ }[] | undefined;
156
+ exposeRefresh?: boolean | undefined;
157
+ 'body-param'?: string | undefined;
158
+ } | undefined>, {
159
+ 'operation-type': "mutation" | "query" | "graphql";
160
+ schema: "default" | "flattened";
161
+ bindings: {
162
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
163
+ identifier: string;
164
+ }[];
165
+ exposeRefresh: boolean;
166
+ 'body-param'?: string | undefined;
167
+ }, {
168
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
169
+ schema?: "default" | "flattened" | undefined;
170
+ bindings?: {
171
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
172
+ identifier?: string | undefined;
173
+ }[] | undefined;
174
+ exposeRefresh?: boolean | undefined;
175
+ 'body-param'?: string | undefined;
176
+ } | undefined>, {
177
+ 'operation-type': "mutation" | "query" | "graphql";
178
+ schema: "default" | "flattened";
179
+ bindings: {
180
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
181
+ identifier: string;
182
+ }[];
183
+ exposeRefresh: boolean;
184
+ 'body-param'?: string | undefined;
185
+ }, {
186
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
187
+ schema?: "default" | "flattened" | undefined;
188
+ bindings?: {
189
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
190
+ identifier?: string | undefined;
191
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
329
+ schema: "default" | "flattened";
330
+ bindings: {
331
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
332
+ identifier: string;
333
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
378
+ schema?: "default" | "flattened" | undefined;
379
+ bindings?: {
380
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
381
+ identifier?: string | undefined;
382
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
395
+ schema: "default" | "flattened";
396
+ bindings: {
397
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
398
+ identifier: string;
399
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
444
+ schema?: "default" | "flattened" | undefined;
445
+ bindings?: {
446
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
447
+ identifier?: string | undefined;
448
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
461
+ schema: "default" | "flattened";
462
+ bindings: {
463
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
464
+ identifier: string;
465
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
510
+ schema?: "default" | "flattened" | undefined;
511
+ bindings?: {
512
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
513
+ identifier?: string | undefined;
514
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
527
+ schema: "default" | "flattened";
528
+ bindings: {
529
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
530
+ identifier: string;
531
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
576
+ schema?: "default" | "flattened" | undefined;
577
+ bindings?: {
578
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
579
+ identifier?: string | undefined;
580
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
593
+ schema: "default" | "flattened";
594
+ bindings: {
595
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
596
+ identifier: string;
597
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
642
+ schema?: "default" | "flattened" | undefined;
643
+ bindings?: {
644
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
645
+ identifier?: string | undefined;
646
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
661
+ schema: "default" | "flattened";
662
+ bindings: {
663
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
664
+ identifier: string;
665
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
712
+ schema?: "default" | "flattened" | undefined;
713
+ bindings?: {
714
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
715
+ identifier?: string | undefined;
716
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
747
+ schema: "default" | "flattened";
748
+ bindings: {
749
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
750
+ identifier: string;
751
+ }[];
752
+ exposeRefresh: boolean;
753
+ 'body-param'?: string | undefined;
754
+ }, {
755
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
756
+ schema?: "default" | "flattened" | undefined;
757
+ bindings?: {
758
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
759
+ identifier?: string | undefined;
760
+ }[] | undefined;
761
+ exposeRefresh?: boolean | undefined;
762
+ 'body-param'?: string | undefined;
763
+ }>>, {
764
+ 'operation-type': "mutation" | "query" | "graphql";
765
+ schema: "default" | "flattened";
766
+ bindings: {
767
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
768
+ identifier: string;
769
+ }[];
770
+ exposeRefresh: boolean;
771
+ 'body-param'?: string | undefined;
772
+ }, {
773
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
774
+ schema?: "default" | "flattened" | undefined;
775
+ bindings?: {
776
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
777
+ identifier?: string | undefined;
778
+ }[] | undefined;
779
+ exposeRefresh?: boolean | undefined;
780
+ 'body-param'?: string | undefined;
781
+ } | undefined>, {
782
+ 'operation-type': "mutation" | "query" | "graphql";
783
+ schema: "default" | "flattened";
784
+ bindings: {
785
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
786
+ identifier: string;
787
+ }[];
788
+ exposeRefresh: boolean;
789
+ 'body-param'?: string | undefined;
790
+ }, {
791
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
792
+ schema?: "default" | "flattened" | undefined;
793
+ bindings?: {
794
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
795
+ identifier?: string | undefined;
796
+ }[] | undefined;
797
+ exposeRefresh?: boolean | undefined;
798
+ 'body-param'?: string | undefined;
799
+ } | undefined>, {
800
+ 'operation-type': "mutation" | "query" | "graphql";
801
+ schema: "default" | "flattened";
802
+ bindings: {
803
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
804
+ identifier: string;
805
+ }[];
806
+ exposeRefresh: boolean;
807
+ 'body-param'?: string | undefined;
808
+ }, {
809
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
810
+ schema?: "default" | "flattened" | undefined;
811
+ bindings?: {
812
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
813
+ identifier?: string | undefined;
814
+ }[] | undefined;
815
+ exposeRefresh?: boolean | undefined;
816
+ 'body-param'?: string | undefined;
817
+ } | undefined>, {
818
+ 'operation-type': "mutation" | "query" | "graphql";
819
+ schema: "default" | "flattened";
820
+ bindings: {
821
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
822
+ identifier: string;
823
+ }[];
824
+ exposeRefresh: boolean;
825
+ 'body-param'?: string | undefined;
826
+ }, {
827
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
828
+ schema?: "default" | "flattened" | undefined;
829
+ bindings?: {
830
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
831
+ identifier?: string | undefined;
832
+ }[] | undefined;
833
+ exposeRefresh?: boolean | undefined;
834
+ 'body-param'?: string | undefined;
835
+ } | undefined>, {
836
+ 'operation-type': "mutation" | "query" | "graphql";
837
+ schema: "default" | "flattened";
838
+ bindings: {
839
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
840
+ identifier: string;
841
+ }[];
842
+ exposeRefresh: boolean;
843
+ 'body-param'?: string | undefined;
844
+ }, {
845
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
846
+ schema?: "default" | "flattened" | undefined;
847
+ bindings?: {
848
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
849
+ identifier?: string | undefined;
850
+ }[] | undefined;
851
+ exposeRefresh?: boolean | undefined;
852
+ 'body-param'?: string | undefined;
853
+ } | undefined>, {
854
+ 'operation-type': "mutation" | "query" | "graphql";
855
+ schema: "default" | "flattened";
856
+ bindings: {
857
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
858
+ identifier: string;
859
+ }[];
860
+ exposeRefresh: boolean;
861
+ 'body-param'?: string | undefined;
862
+ }, {
863
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
864
+ schema?: "default" | "flattened" | undefined;
865
+ bindings?: {
866
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
867
+ identifier?: string | undefined;
868
+ }[] | undefined;
869
+ exposeRefresh?: boolean | undefined;
870
+ 'body-param'?: string | undefined;
871
+ } | undefined>, {
872
+ 'operation-type': "mutation" | "query" | "graphql";
873
+ schema: "default" | "flattened";
874
+ bindings: {
875
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
876
+ identifier: string;
877
+ }[];
878
+ exposeRefresh: boolean;
879
+ 'body-param'?: string | undefined;
880
+ }, {
881
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
882
+ schema?: "default" | "flattened" | undefined;
883
+ bindings?: {
884
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
885
+ identifier?: string | undefined;
886
+ }[] | undefined;
887
+ exposeRefresh?: boolean | undefined;
888
+ 'body-param'?: string | undefined;
889
+ } | undefined>, {
890
+ 'operation-type': "mutation" | "query" | "graphql";
891
+ schema: "default" | "flattened";
892
+ bindings: {
893
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
894
+ identifier: string;
895
+ }[];
896
+ exposeRefresh: boolean;
897
+ 'body-param'?: string | undefined;
898
+ }, {
899
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
900
+ schema?: "default" | "flattened" | undefined;
901
+ bindings?: {
902
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
903
+ identifier?: string | undefined;
904
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
1042
+ schema: "default" | "flattened";
1043
+ bindings: {
1044
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1045
+ identifier: string;
1046
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1091
+ schema?: "default" | "flattened" | undefined;
1092
+ bindings?: {
1093
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1094
+ identifier?: string | undefined;
1095
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
1108
+ schema: "default" | "flattened";
1109
+ bindings: {
1110
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1111
+ identifier: string;
1112
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1157
+ schema?: "default" | "flattened" | undefined;
1158
+ bindings?: {
1159
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1160
+ identifier?: string | undefined;
1161
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
1174
+ schema: "default" | "flattened";
1175
+ bindings: {
1176
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1177
+ identifier: string;
1178
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1223
+ schema?: "default" | "flattened" | undefined;
1224
+ bindings?: {
1225
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1226
+ identifier?: string | undefined;
1227
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
1240
+ schema: "default" | "flattened";
1241
+ bindings: {
1242
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1243
+ identifier: string;
1244
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1289
+ schema?: "default" | "flattened" | undefined;
1290
+ bindings?: {
1291
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1292
+ identifier?: string | undefined;
1293
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
1306
+ schema: "default" | "flattened";
1307
+ bindings: {
1308
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1309
+ identifier: string;
1310
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1355
+ schema?: "default" | "flattened" | undefined;
1356
+ bindings?: {
1357
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1358
+ identifier?: string | undefined;
1359
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
1374
+ schema: "default" | "flattened";
1375
+ bindings: {
1376
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1377
+ identifier: string;
1378
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1425
+ schema?: "default" | "flattened" | undefined;
1426
+ bindings?: {
1427
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1428
+ identifier?: string | undefined;
1429
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
1445
+ schema: "default" | "flattened";
1446
+ bindings: {
1447
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1448
+ identifier: string;
1449
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1464
+ schema?: "default" | "flattened" | undefined;
1465
+ bindings?: {
1466
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1467
+ identifier?: string | undefined;
1468
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
1499
+ schema: "default" | "flattened";
1500
+ bindings: {
1501
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1502
+ identifier: string;
1503
+ }[];
1504
+ exposeRefresh: boolean;
1505
+ 'body-param'?: string | undefined;
1506
+ }, {
1507
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1508
+ schema?: "default" | "flattened" | undefined;
1509
+ bindings?: {
1510
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1511
+ identifier?: string | undefined;
1512
+ }[] | undefined;
1513
+ exposeRefresh?: boolean | undefined;
1514
+ 'body-param'?: string | undefined;
1515
+ }>>, {
1516
+ 'operation-type': "mutation" | "query" | "graphql";
1517
+ schema: "default" | "flattened";
1518
+ bindings: {
1519
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1520
+ identifier: string;
1521
+ }[];
1522
+ exposeRefresh: boolean;
1523
+ 'body-param'?: string | undefined;
1524
+ }, {
1525
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1526
+ schema?: "default" | "flattened" | undefined;
1527
+ bindings?: {
1528
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1529
+ identifier?: string | undefined;
1530
+ }[] | undefined;
1531
+ exposeRefresh?: boolean | undefined;
1532
+ 'body-param'?: string | undefined;
1533
+ } | undefined>, {
1534
+ 'operation-type': "mutation" | "query" | "graphql";
1535
+ schema: "default" | "flattened";
1536
+ bindings: {
1537
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1538
+ identifier: string;
1539
+ }[];
1540
+ exposeRefresh: boolean;
1541
+ 'body-param'?: string | undefined;
1542
+ }, {
1543
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1544
+ schema?: "default" | "flattened" | undefined;
1545
+ bindings?: {
1546
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1547
+ identifier?: string | undefined;
1548
+ }[] | undefined;
1549
+ exposeRefresh?: boolean | undefined;
1550
+ 'body-param'?: string | undefined;
1551
+ } | undefined>, {
1552
+ 'operation-type': "mutation" | "query" | "graphql";
1553
+ schema: "default" | "flattened";
1554
+ bindings: {
1555
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1556
+ identifier: string;
1557
+ }[];
1558
+ exposeRefresh: boolean;
1559
+ 'body-param'?: string | undefined;
1560
+ }, {
1561
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1562
+ schema?: "default" | "flattened" | undefined;
1563
+ bindings?: {
1564
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1565
+ identifier?: string | undefined;
1566
+ }[] | undefined;
1567
+ exposeRefresh?: boolean | undefined;
1568
+ 'body-param'?: string | undefined;
1569
+ } | undefined>, {
1570
+ 'operation-type': "mutation" | "query" | "graphql";
1571
+ schema: "default" | "flattened";
1572
+ bindings: {
1573
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1574
+ identifier: string;
1575
+ }[];
1576
+ exposeRefresh: boolean;
1577
+ 'body-param'?: string | undefined;
1578
+ }, {
1579
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1580
+ schema?: "default" | "flattened" | undefined;
1581
+ bindings?: {
1582
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1583
+ identifier?: string | undefined;
1584
+ }[] | undefined;
1585
+ exposeRefresh?: boolean | undefined;
1586
+ 'body-param'?: string | undefined;
1587
+ } | undefined>, {
1588
+ 'operation-type': "mutation" | "query" | "graphql";
1589
+ schema: "default" | "flattened";
1590
+ bindings: {
1591
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1592
+ identifier: string;
1593
+ }[];
1594
+ exposeRefresh: boolean;
1595
+ 'body-param'?: string | undefined;
1596
+ }, {
1597
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1598
+ schema?: "default" | "flattened" | undefined;
1599
+ bindings?: {
1600
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1601
+ identifier?: string | undefined;
1602
+ }[] | undefined;
1603
+ exposeRefresh?: boolean | undefined;
1604
+ 'body-param'?: string | undefined;
1605
+ } | undefined>, {
1606
+ 'operation-type': "mutation" | "query" | "graphql";
1607
+ schema: "default" | "flattened";
1608
+ bindings: {
1609
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1610
+ identifier: string;
1611
+ }[];
1612
+ exposeRefresh: boolean;
1613
+ 'body-param'?: string | undefined;
1614
+ }, {
1615
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1616
+ schema?: "default" | "flattened" | undefined;
1617
+ bindings?: {
1618
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1619
+ identifier?: string | undefined;
1620
+ }[] | undefined;
1621
+ exposeRefresh?: boolean | undefined;
1622
+ 'body-param'?: string | undefined;
1623
+ } | undefined>, {
1624
+ 'operation-type': "mutation" | "query" | "graphql";
1625
+ schema: "default" | "flattened";
1626
+ bindings: {
1627
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1628
+ identifier: string;
1629
+ }[];
1630
+ exposeRefresh: boolean;
1631
+ 'body-param'?: string | undefined;
1632
+ }, {
1633
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1634
+ schema?: "default" | "flattened" | undefined;
1635
+ bindings?: {
1636
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1637
+ identifier?: string | undefined;
1638
+ }[] | undefined;
1639
+ exposeRefresh?: boolean | undefined;
1640
+ 'body-param'?: string | undefined;
1641
+ } | undefined>, {
1642
+ 'operation-type': "mutation" | "query" | "graphql";
1643
+ schema: "default" | "flattened";
1644
+ bindings: {
1645
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1646
+ identifier: string;
1647
+ }[];
1648
+ exposeRefresh: boolean;
1649
+ 'body-param'?: string | undefined;
1650
+ }, {
1651
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1652
+ schema?: "default" | "flattened" | undefined;
1653
+ bindings?: {
1654
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1655
+ identifier?: string | undefined;
1656
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
1794
+ schema: "default" | "flattened";
1795
+ bindings: {
1796
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1797
+ identifier: string;
1798
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1843
+ schema?: "default" | "flattened" | undefined;
1844
+ bindings?: {
1845
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1846
+ identifier?: string | undefined;
1847
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
1860
+ schema: "default" | "flattened";
1861
+ bindings: {
1862
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1863
+ identifier: string;
1864
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1909
+ schema?: "default" | "flattened" | undefined;
1910
+ bindings?: {
1911
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1912
+ identifier?: string | undefined;
1913
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
1926
+ schema: "default" | "flattened";
1927
+ bindings: {
1928
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1929
+ identifier: string;
1930
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1975
+ schema?: "default" | "flattened" | undefined;
1976
+ bindings?: {
1977
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1978
+ identifier?: string | undefined;
1979
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
1992
+ schema: "default" | "flattened";
1993
+ bindings: {
1994
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1995
+ identifier: string;
1996
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2041
+ schema?: "default" | "flattened" | undefined;
2042
+ bindings?: {
2043
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2044
+ identifier?: string | undefined;
2045
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
2058
+ schema: "default" | "flattened";
2059
+ bindings: {
2060
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2061
+ identifier: string;
2062
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2107
+ schema?: "default" | "flattened" | undefined;
2108
+ bindings?: {
2109
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2110
+ identifier?: string | undefined;
2111
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
2126
+ schema: "default" | "flattened";
2127
+ bindings: {
2128
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2129
+ identifier: string;
2130
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2177
+ schema?: "default" | "flattened" | undefined;
2178
+ bindings?: {
2179
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2180
+ identifier?: string | undefined;
2181
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
2260
+ schema: "default" | "flattened";
2261
+ bindings: {
2262
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2263
+ identifier: string;
2264
+ }[];
2265
+ exposeRefresh: boolean;
2266
+ 'body-param'?: string | undefined;
2267
+ }, {
2268
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2269
+ schema?: "default" | "flattened" | undefined;
2270
+ bindings?: {
2271
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2272
+ identifier?: string | undefined;
2273
+ }[] | undefined;
2274
+ exposeRefresh?: boolean | undefined;
2275
+ 'body-param'?: string | undefined;
2276
+ }>>, {
2277
+ 'operation-type': "mutation" | "query" | "graphql";
2278
+ schema: "default" | "flattened";
2279
+ bindings: {
2280
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2281
+ identifier: string;
2282
+ }[];
2283
+ exposeRefresh: boolean;
2284
+ 'body-param'?: string | undefined;
2285
+ }, {
2286
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2287
+ schema?: "default" | "flattened" | undefined;
2288
+ bindings?: {
2289
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2290
+ identifier?: string | undefined;
2291
+ }[] | undefined;
2292
+ exposeRefresh?: boolean | undefined;
2293
+ 'body-param'?: string | undefined;
2294
+ } | undefined>, {
2295
+ 'operation-type': "mutation" | "query" | "graphql";
2296
+ schema: "default" | "flattened";
2297
+ bindings: {
2298
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2299
+ identifier: string;
2300
+ }[];
2301
+ exposeRefresh: boolean;
2302
+ 'body-param'?: string | undefined;
2303
+ }, {
2304
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2305
+ schema?: "default" | "flattened" | undefined;
2306
+ bindings?: {
2307
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2308
+ identifier?: string | undefined;
2309
+ }[] | undefined;
2310
+ exposeRefresh?: boolean | undefined;
2311
+ 'body-param'?: string | undefined;
2312
+ } | undefined>, {
2313
+ 'operation-type': "mutation" | "query" | "graphql";
2314
+ schema: "default" | "flattened";
2315
+ bindings: {
2316
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2317
+ identifier: string;
2318
+ }[];
2319
+ exposeRefresh: boolean;
2320
+ 'body-param'?: string | undefined;
2321
+ }, {
2322
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2323
+ schema?: "default" | "flattened" | undefined;
2324
+ bindings?: {
2325
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2326
+ identifier?: string | undefined;
2327
+ }[] | undefined;
2328
+ exposeRefresh?: boolean | undefined;
2329
+ 'body-param'?: string | undefined;
2330
+ } | undefined>, {
2331
+ 'operation-type': "mutation" | "query" | "graphql";
2332
+ schema: "default" | "flattened";
2333
+ bindings: {
2334
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2335
+ identifier: string;
2336
+ }[];
2337
+ exposeRefresh: boolean;
2338
+ 'body-param'?: string | undefined;
2339
+ }, {
2340
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2341
+ schema?: "default" | "flattened" | undefined;
2342
+ bindings?: {
2343
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2344
+ identifier?: string | undefined;
2345
+ }[] | undefined;
2346
+ exposeRefresh?: boolean | undefined;
2347
+ 'body-param'?: string | undefined;
2348
+ } | undefined>, {
2349
+ 'operation-type': "mutation" | "query" | "graphql";
2350
+ schema: "default" | "flattened";
2351
+ bindings: {
2352
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2353
+ identifier: string;
2354
+ }[];
2355
+ exposeRefresh: boolean;
2356
+ 'body-param'?: string | undefined;
2357
+ }, {
2358
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2359
+ schema?: "default" | "flattened" | undefined;
2360
+ bindings?: {
2361
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2362
+ identifier?: string | undefined;
2363
+ }[] | undefined;
2364
+ exposeRefresh?: boolean | undefined;
2365
+ 'body-param'?: string | undefined;
2366
+ } | undefined>, {
2367
+ 'operation-type': "mutation" | "query" | "graphql";
2368
+ schema: "default" | "flattened";
2369
+ bindings: {
2370
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2371
+ identifier: string;
2372
+ }[];
2373
+ exposeRefresh: boolean;
2374
+ 'body-param'?: string | undefined;
2375
+ }, {
2376
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2377
+ schema?: "default" | "flattened" | undefined;
2378
+ bindings?: {
2379
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2380
+ identifier?: string | undefined;
2381
+ }[] | undefined;
2382
+ exposeRefresh?: boolean | undefined;
2383
+ 'body-param'?: string | undefined;
2384
+ } | undefined>, {
2385
+ 'operation-type': "mutation" | "query" | "graphql";
2386
+ schema: "default" | "flattened";
2387
+ bindings: {
2388
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2389
+ identifier: string;
2390
+ }[];
2391
+ exposeRefresh: boolean;
2392
+ 'body-param'?: string | undefined;
2393
+ }, {
2394
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2395
+ schema?: "default" | "flattened" | undefined;
2396
+ bindings?: {
2397
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2398
+ identifier?: string | undefined;
2399
+ }[] | undefined;
2400
+ exposeRefresh?: boolean | undefined;
2401
+ 'body-param'?: string | undefined;
2402
+ } | undefined>, {
2403
+ 'operation-type': "mutation" | "query" | "graphql";
2404
+ schema: "default" | "flattened";
2405
+ bindings: {
2406
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2407
+ identifier: string;
2408
+ }[];
2409
+ exposeRefresh: boolean;
2410
+ 'body-param'?: string | undefined;
2411
+ }, {
2412
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2413
+ schema?: "default" | "flattened" | undefined;
2414
+ bindings?: {
2415
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2416
+ identifier?: string | undefined;
2417
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
2555
+ schema: "default" | "flattened";
2556
+ bindings: {
2557
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2558
+ identifier: string;
2559
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2604
+ schema?: "default" | "flattened" | undefined;
2605
+ bindings?: {
2606
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2607
+ identifier?: string | undefined;
2608
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
2621
+ schema: "default" | "flattened";
2622
+ bindings: {
2623
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2624
+ identifier: string;
2625
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2670
+ schema?: "default" | "flattened" | undefined;
2671
+ bindings?: {
2672
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2673
+ identifier?: string | undefined;
2674
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
2687
+ schema: "default" | "flattened";
2688
+ bindings: {
2689
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2690
+ identifier: string;
2691
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2736
+ schema?: "default" | "flattened" | undefined;
2737
+ bindings?: {
2738
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2739
+ identifier?: string | undefined;
2740
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
2753
+ schema: "default" | "flattened";
2754
+ bindings: {
2755
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2756
+ identifier: string;
2757
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2802
+ schema?: "default" | "flattened" | undefined;
2803
+ bindings?: {
2804
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2805
+ identifier?: string | undefined;
2806
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
2819
+ schema: "default" | "flattened";
2820
+ bindings: {
2821
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2822
+ identifier: string;
2823
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2868
+ schema?: "default" | "flattened" | undefined;
2869
+ bindings?: {
2870
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2871
+ identifier?: string | undefined;
2872
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
2887
+ schema: "default" | "flattened";
2888
+ bindings: {
2889
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2890
+ identifier: string;
2891
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2938
+ schema?: "default" | "flattened" | undefined;
2939
+ bindings?: {
2940
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2941
+ identifier?: string | undefined;
2942
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
3053
+ schema: "default" | "flattened";
3054
+ bindings: {
3055
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3056
+ identifier: string;
3057
+ }[];
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
+ 'operation-type': "mutation" | "query" | "graphql";
3118
+ schema: "default" | "flattened";
3119
+ bindings: {
3120
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3121
+ identifier: string;
3122
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3137
+ schema?: "default" | "flattened" | undefined;
3138
+ bindings?: {
3139
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3140
+ identifier?: string | undefined;
3141
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
3188
+ schema: "default" | "flattened";
3189
+ bindings: {
3190
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3191
+ identifier: string;
3192
+ }[];
3193
+ exposeRefresh: boolean;
3194
+ 'body-param'?: string | undefined;
3195
+ }, {
3196
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3197
+ schema?: "default" | "flattened" | undefined;
3198
+ bindings?: {
3199
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3200
+ identifier?: string | undefined;
3201
+ }[] | undefined;
3202
+ exposeRefresh?: boolean | undefined;
3203
+ 'body-param'?: string | undefined;
3204
+ }>>, {
3205
+ 'operation-type': "mutation" | "query" | "graphql";
3206
+ schema: "default" | "flattened";
3207
+ bindings: {
3208
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3209
+ identifier: string;
3210
+ }[];
3211
+ exposeRefresh: boolean;
3212
+ 'body-param'?: string | undefined;
3213
+ }, {
3214
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3215
+ schema?: "default" | "flattened" | undefined;
3216
+ bindings?: {
3217
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3218
+ identifier?: string | undefined;
3219
+ }[] | undefined;
3220
+ exposeRefresh?: boolean | undefined;
3221
+ 'body-param'?: string | undefined;
3222
+ } | undefined>, {
3223
+ 'operation-type': "mutation" | "query" | "graphql";
3224
+ schema: "default" | "flattened";
3225
+ bindings: {
3226
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3227
+ identifier: string;
3228
+ }[];
3229
+ exposeRefresh: boolean;
3230
+ 'body-param'?: string | undefined;
3231
+ }, {
3232
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3233
+ schema?: "default" | "flattened" | undefined;
3234
+ bindings?: {
3235
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3236
+ identifier?: string | undefined;
3237
+ }[] | undefined;
3238
+ exposeRefresh?: boolean | undefined;
3239
+ 'body-param'?: string | undefined;
3240
+ } | undefined>, {
3241
+ 'operation-type': "mutation" | "query" | "graphql";
3242
+ schema: "default" | "flattened";
3243
+ bindings: {
3244
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3245
+ identifier: string;
3246
+ }[];
3247
+ exposeRefresh: boolean;
3248
+ 'body-param'?: string | undefined;
3249
+ }, {
3250
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3251
+ schema?: "default" | "flattened" | undefined;
3252
+ bindings?: {
3253
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3254
+ identifier?: string | undefined;
3255
+ }[] | undefined;
3256
+ exposeRefresh?: boolean | undefined;
3257
+ 'body-param'?: string | undefined;
3258
+ } | undefined>, {
3259
+ 'operation-type': "mutation" | "query" | "graphql";
3260
+ schema: "default" | "flattened";
3261
+ bindings: {
3262
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3263
+ identifier: string;
3264
+ }[];
3265
+ exposeRefresh: boolean;
3266
+ 'body-param'?: string | undefined;
3267
+ }, {
3268
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3269
+ schema?: "default" | "flattened" | undefined;
3270
+ bindings?: {
3271
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3272
+ identifier?: string | undefined;
3273
+ }[] | undefined;
3274
+ exposeRefresh?: boolean | undefined;
3275
+ 'body-param'?: string | undefined;
3276
+ } | undefined>, {
3277
+ 'operation-type': "mutation" | "query" | "graphql";
3278
+ schema: "default" | "flattened";
3279
+ bindings: {
3280
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3281
+ identifier: string;
3282
+ }[];
3283
+ exposeRefresh: boolean;
3284
+ 'body-param'?: string | undefined;
3285
+ }, {
3286
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3287
+ schema?: "default" | "flattened" | undefined;
3288
+ bindings?: {
3289
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3290
+ identifier?: string | undefined;
3291
+ }[] | undefined;
3292
+ exposeRefresh?: boolean | undefined;
3293
+ 'body-param'?: string | undefined;
3294
+ } | undefined>, {
3295
+ 'operation-type': "mutation" | "query" | "graphql";
3296
+ schema: "default" | "flattened";
3297
+ bindings: {
3298
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3299
+ identifier: string;
3300
+ }[];
3301
+ exposeRefresh: boolean;
3302
+ 'body-param'?: string | undefined;
3303
+ }, {
3304
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3305
+ schema?: "default" | "flattened" | undefined;
3306
+ bindings?: {
3307
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3308
+ identifier?: string | undefined;
3309
+ }[] | undefined;
3310
+ exposeRefresh?: boolean | undefined;
3311
+ 'body-param'?: string | undefined;
3312
+ } | undefined>, {
3313
+ 'operation-type': "mutation" | "query" | "graphql";
3314
+ schema: "default" | "flattened";
3315
+ bindings: {
3316
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3317
+ identifier: string;
3318
+ }[];
3319
+ exposeRefresh: boolean;
3320
+ 'body-param'?: string | undefined;
3321
+ }, {
3322
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3323
+ schema?: "default" | "flattened" | undefined;
3324
+ bindings?: {
3325
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3326
+ identifier?: string | undefined;
3327
+ }[] | undefined;
3328
+ exposeRefresh?: boolean | undefined;
3329
+ 'body-param'?: string | undefined;
3330
+ } | undefined>, {
3331
+ 'operation-type': "mutation" | "query" | "graphql";
3332
+ schema: "default" | "flattened";
3333
+ bindings: {
3334
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3335
+ identifier: string;
3336
+ }[];
3337
+ exposeRefresh: boolean;
3338
+ 'body-param'?: string | undefined;
3339
+ }, {
3340
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3341
+ schema?: "default" | "flattened" | undefined;
3342
+ bindings?: {
3343
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3344
+ identifier?: string | undefined;
3345
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
3483
+ schema: "default" | "flattened";
3484
+ bindings: {
3485
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3486
+ identifier: string;
3487
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3532
+ schema?: "default" | "flattened" | undefined;
3533
+ bindings?: {
3534
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3535
+ identifier?: string | undefined;
3536
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
3549
+ schema: "default" | "flattened";
3550
+ bindings: {
3551
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3552
+ identifier: string;
3553
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3598
+ schema?: "default" | "flattened" | undefined;
3599
+ bindings?: {
3600
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3601
+ identifier?: string | undefined;
3602
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
3615
+ schema: "default" | "flattened";
3616
+ bindings: {
3617
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3618
+ identifier: string;
3619
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3664
+ schema?: "default" | "flattened" | undefined;
3665
+ bindings?: {
3666
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3667
+ identifier?: string | undefined;
3668
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
3681
+ schema: "default" | "flattened";
3682
+ bindings: {
3683
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3684
+ identifier: string;
3685
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3730
+ schema?: "default" | "flattened" | undefined;
3731
+ bindings?: {
3732
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3733
+ identifier?: string | undefined;
3734
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
3747
+ schema: "default" | "flattened";
3748
+ bindings: {
3749
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3750
+ identifier: string;
3751
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3796
+ schema?: "default" | "flattened" | undefined;
3797
+ bindings?: {
3798
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3799
+ identifier?: string | undefined;
3800
+ }[] | 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
+ 'operation-type': "mutation" | "query" | "graphql";
3815
+ schema: "default" | "flattened";
3816
+ bindings: {
3817
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3818
+ identifier: string;
3819
+ }[];
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
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3866
+ schema?: "default" | "flattened" | undefined;
3867
+ bindings?: {
3868
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3869
+ identifier?: string | undefined;
3870
+ }[] | 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
+ }
4051
+ export declare abstract class AmfBaseOperation implements BaseOperation {
4052
+ protected amfOperation: amf.Operation;
4053
+ protected amfTypeFactory: AMFTypeFactory;
4054
+ protected typeRegistry: TypeRegistry<AMFType>;
4055
+ protected logger: LoggerService;
4056
+ protected fileParserLogger: FileParserLogger;
4057
+ endpoint: AmfEndPoint;
4058
+ server: Server;
4059
+ method: HttpMethod;
4060
+ operationId: string | undefined;
4061
+ requests: Request[];
4062
+ responses: Response[];
4063
+ operationType: OperationType;
4064
+ configSchemaType: ConfigSchemaType;
4065
+ errorStrategy: ErrorStrategy;
4066
+ bindings: Binding[];
4067
+ exposeRefresh: boolean;
4068
+ protected parsedCacheStrategy: CacheStrategy;
4069
+ protected operationSchemaBuilder: OperationSchemaBuilder;
4070
+ defaults: API['defaults'];
4071
+ serviceOverrides: ResolvedOperationServices;
4072
+ position: {
4073
+ line: number;
4074
+ column: number;
4075
+ };
4076
+ basePath: string;
4077
+ abstract readonly type: 'aura' | 'http';
4078
+ constructor(amfOperation: amf.Operation, amfTypeFactory: AMFTypeFactory, typeRegistry: TypeRegistry<AMFType>, logger: LoggerService, fileParserLogger: FileParserLogger, endpoint: AmfEndPoint, server: Server);
4079
+ get cacheStrategy(): CacheStrategy;
4080
+ buildPayloads(r: amf.Request | amf.Response): Payload[];
4081
+ getDefaultValue(param: amf.Parameter): any;
4082
+ buildParams(p: amf.Parameter[]): Record<string, Parameter>;
4083
+ }
4084
+ export declare class AmfHttpOperation extends AmfBaseOperation implements BaseHttpOperation {
4085
+ readonly type = "http";
4086
+ }
4087
+ export declare class AmfHttpOperationWithRequestBody extends AmfBaseOperation implements HttpOperationWithRequestBody {
4088
+ readonly type = "http";
4089
+ configBodyParam: string;
4090
+ constructor(amfOperation: amf.Operation, amfTypeFactory: AMFTypeFactory, typeRegistry: TypeRegistry<AMFType>, logger: LoggerService, fileParserLogger: FileParserLogger, endpoint: AmfEndPoint, server: Server);
4091
+ }
4092
+ export declare class AmfAuraOperation extends AmfBaseOperation implements BaseAuraOperation {
4093
+ readonly type = "aura";
4094
+ method: HttpMethod;
4095
+ aura: {
4096
+ methodName: string;
4097
+ };
4098
+ constructor(amfOperation: amf.Operation, amfTypeFactory: AMFTypeFactory, typeRegistry: TypeRegistry<AMFType>, logger: LoggerService, fileParserLogger: FileParserLogger, endpoint: AmfEndPoint, server: Server);
4099
+ }
4100
+ export declare class AmfAuraOperationWithRequestBody extends AmfBaseOperation implements AuraOperationWithRequestBody {
4101
+ readonly type = "aura";
4102
+ method: HttpMethod;
4103
+ configBodyParam: string;
4104
+ aura: {
4105
+ methodName: string;
4106
+ bodyParam: string;
4107
+ };
4108
+ constructor(amfOperation: amf.Operation, amfTypeFactory: AMFTypeFactory, typeRegistry: TypeRegistry<AMFType>, logger: LoggerService, fileParserLogger: FileParserLogger, endpoint: AmfEndPoint, server: Server);
4109
+ }
4110
+ type AmfBaseOperationConstructor = new (...args: any[]) => AmfBaseOperation & BaseOperation;
4111
+ export declare function AmfGraphQLOperationMixin<T extends AmfBaseOperationConstructor>(Base: T): T & (new (...args: any[]) => BaseGraphQLOperation);
4112
+ export {};