@theelena/sdk 0.1.0 → 0.1.1

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.
@@ -0,0 +1,3048 @@
1
+ import { E as ElenaKeyRequestOptions, a as ElenaAgentContextV1, b as ElenaKeyPageQuery, c as ElenaAgentCategoryListV1, d as ElenaAgentCategoryResponseV1, e as ElenaAgentProductListV1, f as ElenaAgentProductResponseV1, g as ElenaAgentAssetV1, h as ElenaAgentMediaStageRequestV1, i as ElenaAgentMediaStagedV1, j as ElenaKeyTransportOptions } from './key-transport.d-Bopgxw9r.js';
2
+ export { k as ELENA_AGENT_CONTRACT_VERSION, l as ELENA_AGENT_LIMITS, m as ELENA_AGENT_TRANSPORT, n as ELENA_PUBLIC_CONNECTION_DISCOVERY_ROOT, o as ElenaAgentActionV1, p as ElenaAgentCategoryDataV1, q as ElenaAgentCategoryV1, r as ElenaAgentChangeV1, s as ElenaAgentCliAuthStatusV1, t as ElenaAgentCliLogoutV1, u as ElenaAgentErrorCodeV1, v as ElenaAgentErrorV1, w as ElenaAgentExtraGroupV1, x as ElenaAgentKeyCreateRequestV1, y as ElenaAgentKeyListV1, z as ElenaAgentKeyMetadataV1, A as ElenaAgentKeyPolicyRequestV1, B as ElenaAgentKeyReceiptV1, C as ElenaAgentKeyReplaceRequestV1, D as ElenaAgentKeyResponseV1, F as ElenaAgentKeyRevokeRequestV1, G as ElenaAgentMediaReferenceV1, H as ElenaAgentPageQueryV1, I as ElenaAgentPairingDecisionRequestV1, J as ElenaAgentPairingPollRequestV1, K as ElenaAgentPairingPollResponseV1, L as ElenaAgentPairingReviewV1, M as ElenaAgentPairingStartRequestV1, N as ElenaAgentPairingStartResponseV1, O as ElenaAgentProductDataV1, P as ElenaAgentProductV1, Q as ElenaAgentScopeV1, R as ElenaAgentTargetV1, S as ElenaAgentTransportError, T as ElenaClientAssetResponseV1, U as ElenaClientAssetV1, V as ElenaClientCatalogV1, W as ElenaClientContextV1, X as ElenaClientProductResponseV1, Y as ElenaClientProductV1, Z as ElenaKeyTransportErrorCode, _ as ElenaPublicConnectionManagementV1, $ as ElenaPublicConnectionMutationV1, a0 as ElenaPublicConnectionV1, a1 as elenaAgentAckSchema, a2 as elenaAgentActionSchema, a3 as elenaAgentAssetSchema, a4 as elenaAgentBaseUrlSchema, a5 as elenaAgentCategoryChangeSchema, a6 as elenaAgentCategoryDataSchema, a7 as elenaAgentCategoryListSchema, a8 as elenaAgentCategoryReferenceSchema, a9 as elenaAgentCategoryResponseSchema, aa as elenaAgentCategorySchema, ab as elenaAgentChangeSchema, ac as elenaAgentCliAuthStatusSchema, ad as elenaAgentCliLogoutSchema, ae as elenaAgentConfirmedPriceSchema, af as elenaAgentConnectionOriginSchema, ag as elenaAgentConnectionUrlSchema, ah as elenaAgentContextSchema, ai as elenaAgentCurrencySchema, aj as elenaAgentDescriptionSchema, ak as elenaAgentDeviceCodeSchema, al as elenaAgentDraftPriceSchema, am as elenaAgentDraftProductDataSchema, an as elenaAgentEmptyRequestSchema, ao as elenaAgentErrorCodeSchema, ap as elenaAgentErrorSchema, aq as elenaAgentExistingTargetSchema, ar as elenaAgentExternalTargetSchema, as as elenaAgentExtraGroupSchema, at as elenaAgentExtraOptionSchema, au as elenaAgentExtrasSchema, av as elenaAgentGallerySchema, aw as elenaAgentHashSchema, ax as elenaAgentHttpsUrlSchema, ay as elenaAgentIdSchema, az as elenaAgentKeyCreateRequestSchema, aA as elenaAgentKeyListSchema, aB as elenaAgentKeyMetadataSchema, aC as elenaAgentKeyPolicyRequestSchema, aD as elenaAgentKeyReceiptSchema, aE as elenaAgentKeyReplaceRequestSchema, aF as elenaAgentKeyResponseSchema, aG as elenaAgentKeyRevokeRequestSchema, aH as elenaAgentMediaReferenceSchema, aI as elenaAgentMediaStageRequestSchema, aJ as elenaAgentMediaStagedSchema, aK as elenaAgentModeSchema, aL as elenaAgentMoneySchema, aM as elenaAgentNameSchema, aN as elenaAgentNonnegativeMoneySchema, aO as elenaAgentPageQuerySchema, aP as elenaAgentPairingDecisionRequestSchema, aQ as elenaAgentPairingPollRequestSchema, aR as elenaAgentPairingPollResponseSchema, aS as elenaAgentPairingReviewSchema, aT as elenaAgentPairingStartRequestSchema, aU as elenaAgentPairingStartResponseSchema, aV as elenaAgentProductChangeSchema, aW as elenaAgentProductDataSchema, aX as elenaAgentProductListSchema, aY as elenaAgentProductResponseSchema, aZ as elenaAgentProductSchema, a_ as elenaAgentRefSchema, a$ as elenaAgentRestaurantSchema, b0 as elenaAgentRevisionSchema, b1 as elenaAgentScopeSchema, b2 as elenaAgentScopesSchema, b3 as elenaAgentSecretSchema, b4 as elenaAgentTargetSchema, b5 as elenaAgentTextSchema, b6 as elenaAgentTimestampSchema, b7 as elenaAgentUserCodeSchema, b8 as elenaAgentVersionSchema, b9 as elenaClientAssetResponseSchema, ba as elenaClientAssetSchema, bb as elenaClientCatalogSchema, bc as elenaClientCategorySchema, bd as elenaClientContextSchema, be as elenaClientKeySchema, bf as elenaClientProductResponseSchema, bg as elenaClientProductSchema, bh as elenaManagedClientKeySchema, bi as elenaManualClientKeySchema, bj as elenaPublicConnectionManagementSchema, bk as elenaPublicConnectionMetadataSchema, bl as elenaPublicConnectionMutationSchema, bm as elenaPublicConnectionSchema, bn as elenaPublicConnectionSlugSchema } from './key-transport.d-Bopgxw9r.js';
3
+ import { z } from 'zod';
4
+
5
+ declare const elenaAgentChangesSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6
+ kind: z.ZodLiteral<"category.upsert">;
7
+ ref: z.ZodString;
8
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
9
+ kind: z.ZodLiteral<"id">;
10
+ id: z.ZodUUID;
11
+ expectedVersion: z.ZodNumber;
12
+ }, z.core.$strict>, z.ZodObject<{
13
+ kind: z.ZodLiteral<"external">;
14
+ namespace: z.ZodString;
15
+ key: z.ZodString;
16
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
17
+ }, z.core.$strict>], "kind">;
18
+ data: z.ZodObject<{
19
+ name: z.ZodString;
20
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
21
+ status: z.ZodLiteral<"transcribed">;
22
+ text: z.ZodString;
23
+ }, z.core.$strict>, z.ZodObject<{
24
+ status: z.ZodLiteral<"proposed">;
25
+ text: z.ZodString;
26
+ }, z.core.$strict>], "status">>;
27
+ order: z.ZodNumber;
28
+ }, z.core.$strict>;
29
+ }, z.core.$strict>, z.ZodObject<{
30
+ kind: z.ZodLiteral<"product.upsert">;
31
+ ref: z.ZodString;
32
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
33
+ kind: z.ZodLiteral<"id">;
34
+ id: z.ZodUUID;
35
+ expectedVersion: z.ZodNumber;
36
+ }, z.core.$strict>, z.ZodObject<{
37
+ kind: z.ZodLiteral<"external">;
38
+ namespace: z.ZodString;
39
+ key: z.ZodString;
40
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
41
+ }, z.core.$strict>], "kind">;
42
+ data: z.ZodObject<{
43
+ price: z.ZodObject<{
44
+ status: z.ZodLiteral<"confirmed">;
45
+ amount: z.ZodString;
46
+ basis: z.ZodLiteral<"operator">;
47
+ }, z.core.$strict>;
48
+ type: z.ZodLiteral<"menu">;
49
+ name: z.ZodString;
50
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
51
+ status: z.ZodLiteral<"transcribed">;
52
+ text: z.ZodString;
53
+ }, z.core.$strict>, z.ZodObject<{
54
+ status: z.ZodLiteral<"proposed">;
55
+ text: z.ZodString;
56
+ }, z.core.$strict>], "status">>;
57
+ category: z.ZodDiscriminatedUnion<[z.ZodObject<{
58
+ kind: z.ZodLiteral<"id">;
59
+ id: z.ZodUUID;
60
+ expectedVersion: z.ZodNumber;
61
+ }, z.core.$strict>, z.ZodObject<{
62
+ kind: z.ZodLiteral<"ref">;
63
+ ref: z.ZodString;
64
+ }, z.core.$strict>], "kind">;
65
+ available: z.ZodBoolean;
66
+ images: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
67
+ kind: z.ZodLiteral<"existing">;
68
+ assetId: z.ZodUUID;
69
+ sha256: z.ZodString;
70
+ }, z.core.$strict>, z.ZodObject<{
71
+ kind: z.ZodLiteral<"staged">;
72
+ stagingId: z.ZodUUID;
73
+ sha256: z.ZodString;
74
+ }, z.core.$strict>], "kind">>;
75
+ extras: z.ZodObject<{
76
+ confirmed: z.ZodLiteral<true>;
77
+ groups: z.ZodArray<z.ZodObject<{
78
+ name: z.ZodString;
79
+ required: z.ZodBoolean;
80
+ minSelections: z.ZodNumber;
81
+ maxSelections: z.ZodNumber;
82
+ order: z.ZodNumber;
83
+ options: z.ZodArray<z.ZodObject<{
84
+ name: z.ZodString;
85
+ additionalPrice: z.ZodString;
86
+ order: z.ZodNumber;
87
+ }, z.core.$strict>>;
88
+ }, z.core.$strict>>;
89
+ }, z.core.$strict>;
90
+ }, z.core.$strict>;
91
+ }, z.core.$strict>], "kind">>;
92
+ declare const elenaAgentPublicationPayloadSchema: z.ZodObject<{
93
+ kind: z.ZodLiteral<"publication">;
94
+ published: z.ZodBoolean;
95
+ products: z.ZodArray<z.ZodObject<{
96
+ kind: z.ZodLiteral<"id">;
97
+ id: z.ZodUUID;
98
+ expectedVersion: z.ZodNumber;
99
+ }, z.core.$strict>>;
100
+ }, z.core.$strict>;
101
+ declare const elenaAgentOperationPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
102
+ kind: z.ZodLiteral<"catalog">;
103
+ changes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
104
+ kind: z.ZodLiteral<"category.upsert">;
105
+ ref: z.ZodString;
106
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
107
+ kind: z.ZodLiteral<"id">;
108
+ id: z.ZodUUID;
109
+ expectedVersion: z.ZodNumber;
110
+ }, z.core.$strict>, z.ZodObject<{
111
+ kind: z.ZodLiteral<"external">;
112
+ namespace: z.ZodString;
113
+ key: z.ZodString;
114
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
115
+ }, z.core.$strict>], "kind">;
116
+ data: z.ZodObject<{
117
+ name: z.ZodString;
118
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
119
+ status: z.ZodLiteral<"transcribed">;
120
+ text: z.ZodString;
121
+ }, z.core.$strict>, z.ZodObject<{
122
+ status: z.ZodLiteral<"proposed">;
123
+ text: z.ZodString;
124
+ }, z.core.$strict>], "status">>;
125
+ order: z.ZodNumber;
126
+ }, z.core.$strict>;
127
+ }, z.core.$strict>, z.ZodObject<{
128
+ kind: z.ZodLiteral<"product.upsert">;
129
+ ref: z.ZodString;
130
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
131
+ kind: z.ZodLiteral<"id">;
132
+ id: z.ZodUUID;
133
+ expectedVersion: z.ZodNumber;
134
+ }, z.core.$strict>, z.ZodObject<{
135
+ kind: z.ZodLiteral<"external">;
136
+ namespace: z.ZodString;
137
+ key: z.ZodString;
138
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
139
+ }, z.core.$strict>], "kind">;
140
+ data: z.ZodObject<{
141
+ price: z.ZodObject<{
142
+ status: z.ZodLiteral<"confirmed">;
143
+ amount: z.ZodString;
144
+ basis: z.ZodLiteral<"operator">;
145
+ }, z.core.$strict>;
146
+ type: z.ZodLiteral<"menu">;
147
+ name: z.ZodString;
148
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
149
+ status: z.ZodLiteral<"transcribed">;
150
+ text: z.ZodString;
151
+ }, z.core.$strict>, z.ZodObject<{
152
+ status: z.ZodLiteral<"proposed">;
153
+ text: z.ZodString;
154
+ }, z.core.$strict>], "status">>;
155
+ category: z.ZodDiscriminatedUnion<[z.ZodObject<{
156
+ kind: z.ZodLiteral<"id">;
157
+ id: z.ZodUUID;
158
+ expectedVersion: z.ZodNumber;
159
+ }, z.core.$strict>, z.ZodObject<{
160
+ kind: z.ZodLiteral<"ref">;
161
+ ref: z.ZodString;
162
+ }, z.core.$strict>], "kind">;
163
+ available: z.ZodBoolean;
164
+ images: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
165
+ kind: z.ZodLiteral<"existing">;
166
+ assetId: z.ZodUUID;
167
+ sha256: z.ZodString;
168
+ }, z.core.$strict>, z.ZodObject<{
169
+ kind: z.ZodLiteral<"staged">;
170
+ stagingId: z.ZodUUID;
171
+ sha256: z.ZodString;
172
+ }, z.core.$strict>], "kind">>;
173
+ extras: z.ZodObject<{
174
+ confirmed: z.ZodLiteral<true>;
175
+ groups: z.ZodArray<z.ZodObject<{
176
+ name: z.ZodString;
177
+ required: z.ZodBoolean;
178
+ minSelections: z.ZodNumber;
179
+ maxSelections: z.ZodNumber;
180
+ order: z.ZodNumber;
181
+ options: z.ZodArray<z.ZodObject<{
182
+ name: z.ZodString;
183
+ additionalPrice: z.ZodString;
184
+ order: z.ZodNumber;
185
+ }, z.core.$strict>>;
186
+ }, z.core.$strict>>;
187
+ }, z.core.$strict>;
188
+ }, z.core.$strict>;
189
+ }, z.core.$strict>], "kind">>;
190
+ }, z.core.$strict>, z.ZodObject<{
191
+ kind: z.ZodLiteral<"publication">;
192
+ published: z.ZodBoolean;
193
+ products: z.ZodArray<z.ZodObject<{
194
+ kind: z.ZodLiteral<"id">;
195
+ id: z.ZodUUID;
196
+ expectedVersion: z.ZodNumber;
197
+ }, z.core.$strict>>;
198
+ }, z.core.$strict>, z.ZodObject<{
199
+ kind: z.ZodLiteral<"import">;
200
+ importId: z.ZodUUID;
201
+ planHash: z.ZodString;
202
+ selectedRefs: z.ZodArray<z.ZodString>;
203
+ }, z.core.$strict>], "kind">;
204
+ declare const elenaAgentProposalRequestSchema: z.ZodObject<{
205
+ version: z.ZodLiteral<"1">;
206
+ idempotencyKey: z.ZodString;
207
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
208
+ kind: z.ZodLiteral<"catalog">;
209
+ changes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
210
+ kind: z.ZodLiteral<"category.upsert">;
211
+ ref: z.ZodString;
212
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
213
+ kind: z.ZodLiteral<"id">;
214
+ id: z.ZodUUID;
215
+ expectedVersion: z.ZodNumber;
216
+ }, z.core.$strict>, z.ZodObject<{
217
+ kind: z.ZodLiteral<"external">;
218
+ namespace: z.ZodString;
219
+ key: z.ZodString;
220
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
221
+ }, z.core.$strict>], "kind">;
222
+ data: z.ZodObject<{
223
+ name: z.ZodString;
224
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
225
+ status: z.ZodLiteral<"transcribed">;
226
+ text: z.ZodString;
227
+ }, z.core.$strict>, z.ZodObject<{
228
+ status: z.ZodLiteral<"proposed">;
229
+ text: z.ZodString;
230
+ }, z.core.$strict>], "status">>;
231
+ order: z.ZodNumber;
232
+ }, z.core.$strict>;
233
+ }, z.core.$strict>, z.ZodObject<{
234
+ kind: z.ZodLiteral<"product.upsert">;
235
+ ref: z.ZodString;
236
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
237
+ kind: z.ZodLiteral<"id">;
238
+ id: z.ZodUUID;
239
+ expectedVersion: z.ZodNumber;
240
+ }, z.core.$strict>, z.ZodObject<{
241
+ kind: z.ZodLiteral<"external">;
242
+ namespace: z.ZodString;
243
+ key: z.ZodString;
244
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
245
+ }, z.core.$strict>], "kind">;
246
+ data: z.ZodObject<{
247
+ price: z.ZodObject<{
248
+ status: z.ZodLiteral<"confirmed">;
249
+ amount: z.ZodString;
250
+ basis: z.ZodLiteral<"operator">;
251
+ }, z.core.$strict>;
252
+ type: z.ZodLiteral<"menu">;
253
+ name: z.ZodString;
254
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
255
+ status: z.ZodLiteral<"transcribed">;
256
+ text: z.ZodString;
257
+ }, z.core.$strict>, z.ZodObject<{
258
+ status: z.ZodLiteral<"proposed">;
259
+ text: z.ZodString;
260
+ }, z.core.$strict>], "status">>;
261
+ category: z.ZodDiscriminatedUnion<[z.ZodObject<{
262
+ kind: z.ZodLiteral<"id">;
263
+ id: z.ZodUUID;
264
+ expectedVersion: z.ZodNumber;
265
+ }, z.core.$strict>, z.ZodObject<{
266
+ kind: z.ZodLiteral<"ref">;
267
+ ref: z.ZodString;
268
+ }, z.core.$strict>], "kind">;
269
+ available: z.ZodBoolean;
270
+ images: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
271
+ kind: z.ZodLiteral<"existing">;
272
+ assetId: z.ZodUUID;
273
+ sha256: z.ZodString;
274
+ }, z.core.$strict>, z.ZodObject<{
275
+ kind: z.ZodLiteral<"staged">;
276
+ stagingId: z.ZodUUID;
277
+ sha256: z.ZodString;
278
+ }, z.core.$strict>], "kind">>;
279
+ extras: z.ZodObject<{
280
+ confirmed: z.ZodLiteral<true>;
281
+ groups: z.ZodArray<z.ZodObject<{
282
+ name: z.ZodString;
283
+ required: z.ZodBoolean;
284
+ minSelections: z.ZodNumber;
285
+ maxSelections: z.ZodNumber;
286
+ order: z.ZodNumber;
287
+ options: z.ZodArray<z.ZodObject<{
288
+ name: z.ZodString;
289
+ additionalPrice: z.ZodString;
290
+ order: z.ZodNumber;
291
+ }, z.core.$strict>>;
292
+ }, z.core.$strict>>;
293
+ }, z.core.$strict>;
294
+ }, z.core.$strict>;
295
+ }, z.core.$strict>], "kind">>;
296
+ }, z.core.$strict>, z.ZodObject<{
297
+ kind: z.ZodLiteral<"publication">;
298
+ published: z.ZodBoolean;
299
+ products: z.ZodArray<z.ZodObject<{
300
+ kind: z.ZodLiteral<"id">;
301
+ id: z.ZodUUID;
302
+ expectedVersion: z.ZodNumber;
303
+ }, z.core.$strict>>;
304
+ }, z.core.$strict>, z.ZodObject<{
305
+ kind: z.ZodLiteral<"import">;
306
+ importId: z.ZodUUID;
307
+ planHash: z.ZodString;
308
+ selectedRefs: z.ZodArray<z.ZodString>;
309
+ }, z.core.$strict>], "kind">;
310
+ }, z.core.$strict>;
311
+ declare const elenaAgentApplyRequestSchema: z.ZodObject<{
312
+ version: z.ZodLiteral<"1">;
313
+ expectedRevision: z.ZodNumber;
314
+ payloadHash: z.ZodString;
315
+ }, z.core.$strict>;
316
+ declare const elenaAgentApprovalRequestSchema: z.ZodObject<{
317
+ version: z.ZodLiteral<"1">;
318
+ expectedRevision: z.ZodNumber;
319
+ payloadHash: z.ZodString;
320
+ decision: z.ZodEnum<{
321
+ approve: "approve";
322
+ reject: "reject";
323
+ }>;
324
+ }, z.core.$strict>;
325
+ declare const elenaAgentBaseVersionSchema: z.ZodObject<{
326
+ kind: z.ZodEnum<{
327
+ product: "product";
328
+ category: "category";
329
+ credential: "credential";
330
+ }>;
331
+ id: z.ZodUUID;
332
+ revision: z.ZodNumber;
333
+ }, z.core.$strict>;
334
+ declare const elenaAgentDiffSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
335
+ kind: z.ZodLiteral<"category">;
336
+ ref: z.ZodString;
337
+ before: z.ZodNullable<z.ZodObject<{
338
+ id: z.ZodUUID;
339
+ revision: z.ZodNumber;
340
+ name: z.ZodString;
341
+ description: z.ZodNullable<z.ZodString>;
342
+ order: z.ZodNumber;
343
+ }, z.core.$strict>>;
344
+ after: z.ZodObject<{
345
+ kind: z.ZodLiteral<"category.upsert">;
346
+ ref: z.ZodString;
347
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
348
+ kind: z.ZodLiteral<"id">;
349
+ id: z.ZodUUID;
350
+ expectedVersion: z.ZodNumber;
351
+ }, z.core.$strict>, z.ZodObject<{
352
+ kind: z.ZodLiteral<"external">;
353
+ namespace: z.ZodString;
354
+ key: z.ZodString;
355
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
356
+ }, z.core.$strict>], "kind">;
357
+ data: z.ZodObject<{
358
+ name: z.ZodString;
359
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
360
+ status: z.ZodLiteral<"transcribed">;
361
+ text: z.ZodString;
362
+ }, z.core.$strict>, z.ZodObject<{
363
+ status: z.ZodLiteral<"proposed">;
364
+ text: z.ZodString;
365
+ }, z.core.$strict>], "status">>;
366
+ order: z.ZodNumber;
367
+ }, z.core.$strict>;
368
+ }, z.core.$strict>;
369
+ publicEffect: z.ZodEnum<{
370
+ none: "none";
371
+ immediate_on_apply: "immediate_on_apply";
372
+ }>;
373
+ }, z.core.$strict>, z.ZodObject<{
374
+ kind: z.ZodLiteral<"product">;
375
+ ref: z.ZodString;
376
+ before: z.ZodNullable<z.ZodObject<{
377
+ id: z.ZodUUID;
378
+ revision: z.ZodNumber;
379
+ type: z.ZodLiteral<"menu">;
380
+ name: z.ZodString;
381
+ basePrice: z.ZodString;
382
+ description: z.ZodNullable<z.ZodString>;
383
+ categoryId: z.ZodUUID;
384
+ available: z.ZodBoolean;
385
+ publishedToMenu: z.ZodBoolean;
386
+ isDraft: z.ZodBoolean;
387
+ images: z.ZodArray<z.ZodObject<{
388
+ assetId: z.ZodUUID;
389
+ sha256: z.ZodString;
390
+ }, z.core.$strict>>;
391
+ primaryImageId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
392
+ extraGroups: z.ZodArray<z.ZodObject<{
393
+ name: z.ZodString;
394
+ required: z.ZodBoolean;
395
+ minSelections: z.ZodNumber;
396
+ maxSelections: z.ZodNumber;
397
+ order: z.ZodNumber;
398
+ options: z.ZodArray<z.ZodObject<{
399
+ name: z.ZodString;
400
+ additionalPrice: z.ZodString;
401
+ order: z.ZodNumber;
402
+ }, z.core.$strict>>;
403
+ }, z.core.$strict>>;
404
+ }, z.core.$strict>>;
405
+ after: z.ZodObject<{
406
+ kind: z.ZodLiteral<"product.upsert">;
407
+ ref: z.ZodString;
408
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
409
+ kind: z.ZodLiteral<"id">;
410
+ id: z.ZodUUID;
411
+ expectedVersion: z.ZodNumber;
412
+ }, z.core.$strict>, z.ZodObject<{
413
+ kind: z.ZodLiteral<"external">;
414
+ namespace: z.ZodString;
415
+ key: z.ZodString;
416
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
417
+ }, z.core.$strict>], "kind">;
418
+ data: z.ZodObject<{
419
+ price: z.ZodObject<{
420
+ status: z.ZodLiteral<"confirmed">;
421
+ amount: z.ZodString;
422
+ basis: z.ZodLiteral<"operator">;
423
+ }, z.core.$strict>;
424
+ type: z.ZodLiteral<"menu">;
425
+ name: z.ZodString;
426
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
427
+ status: z.ZodLiteral<"transcribed">;
428
+ text: z.ZodString;
429
+ }, z.core.$strict>, z.ZodObject<{
430
+ status: z.ZodLiteral<"proposed">;
431
+ text: z.ZodString;
432
+ }, z.core.$strict>], "status">>;
433
+ category: z.ZodDiscriminatedUnion<[z.ZodObject<{
434
+ kind: z.ZodLiteral<"id">;
435
+ id: z.ZodUUID;
436
+ expectedVersion: z.ZodNumber;
437
+ }, z.core.$strict>, z.ZodObject<{
438
+ kind: z.ZodLiteral<"ref">;
439
+ ref: z.ZodString;
440
+ }, z.core.$strict>], "kind">;
441
+ available: z.ZodBoolean;
442
+ images: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
443
+ kind: z.ZodLiteral<"existing">;
444
+ assetId: z.ZodUUID;
445
+ sha256: z.ZodString;
446
+ }, z.core.$strict>, z.ZodObject<{
447
+ kind: z.ZodLiteral<"staged">;
448
+ stagingId: z.ZodUUID;
449
+ sha256: z.ZodString;
450
+ }, z.core.$strict>], "kind">>;
451
+ extras: z.ZodObject<{
452
+ confirmed: z.ZodLiteral<true>;
453
+ groups: z.ZodArray<z.ZodObject<{
454
+ name: z.ZodString;
455
+ required: z.ZodBoolean;
456
+ minSelections: z.ZodNumber;
457
+ maxSelections: z.ZodNumber;
458
+ order: z.ZodNumber;
459
+ options: z.ZodArray<z.ZodObject<{
460
+ name: z.ZodString;
461
+ additionalPrice: z.ZodString;
462
+ order: z.ZodNumber;
463
+ }, z.core.$strict>>;
464
+ }, z.core.$strict>>;
465
+ }, z.core.$strict>;
466
+ }, z.core.$strict>;
467
+ }, z.core.$strict>;
468
+ publicEffect: z.ZodEnum<{
469
+ none: "none";
470
+ immediate_on_apply: "immediate_on_apply";
471
+ }>;
472
+ }, z.core.$strict>, z.ZodObject<{
473
+ kind: z.ZodLiteral<"publication">;
474
+ ref: z.ZodString;
475
+ productId: z.ZodUUID;
476
+ before: z.ZodBoolean;
477
+ after: z.ZodBoolean;
478
+ publicEffect: z.ZodLiteral<"immediate_on_apply">;
479
+ }, z.core.$strict>], "kind">;
480
+ declare const elenaAgentItemErrorSchema: z.ZodObject<{
481
+ code: z.ZodEnum<{
482
+ INVALID_REQUEST: "INVALID_REQUEST";
483
+ UNSUPPORTED_VERSION: "UNSUPPORTED_VERSION";
484
+ CREDENTIAL_REQUIRED: "CREDENTIAL_REQUIRED";
485
+ CREDENTIAL_INVALID: "CREDENTIAL_INVALID";
486
+ CREDENTIAL_EXPIRED: "CREDENTIAL_EXPIRED";
487
+ CREDENTIAL_REVOKED: "CREDENTIAL_REVOKED";
488
+ CREDENTIAL_MIXED: "CREDENTIAL_MIXED";
489
+ CREDENTIAL_WRONG_FAMILY: "CREDENTIAL_WRONG_FAMILY";
490
+ OWNER_REQUIRED: "OWNER_REQUIRED";
491
+ ORIGIN_REJECTED: "ORIGIN_REJECTED";
492
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
493
+ APPROVAL_REJECTED: "APPROVAL_REJECTED";
494
+ APPROVAL_EXPIRED: "APPROVAL_EXPIRED";
495
+ APPROVAL_MISMATCH: "APPROVAL_MISMATCH";
496
+ SCOPE_REQUIRED: "SCOPE_REQUIRED";
497
+ MODE_READ_ONLY: "MODE_READ_ONLY";
498
+ API_ACCESS_DISABLED: "API_ACCESS_DISABLED";
499
+ RESTAURANT_NOT_APPROVED: "RESTAURANT_NOT_APPROVED";
500
+ NOT_FOUND: "NOT_FOUND";
501
+ VERSION_CONFLICT: "VERSION_CONFLICT";
502
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
503
+ INVALID_PRICE: "INVALID_PRICE";
504
+ UNCONFIRMED_DATA: "UNCONFIRMED_DATA";
505
+ REFERENCE_CONFLICT: "REFERENCE_CONFLICT";
506
+ MEDIA_INVALID: "MEDIA_INVALID";
507
+ MEDIA_EXPIRED: "MEDIA_EXPIRED";
508
+ QUOTA_EXCEEDED: "QUOTA_EXCEEDED";
509
+ RATE_LIMITED: "RATE_LIMITED";
510
+ PAIRING_PENDING: "PAIRING_PENDING";
511
+ PAIRING_DENIED: "PAIRING_DENIED";
512
+ PAIRING_EXPIRED: "PAIRING_EXPIRED";
513
+ PAIRING_CONSUMED: "PAIRING_CONSUMED";
514
+ OPERATION_TERMINAL: "OPERATION_TERMINAL";
515
+ APPLY_WINDOW_EXPIRED: "APPLY_WINDOW_EXPIRED";
516
+ DEPENDENCY_FAILED: "DEPENDENCY_FAILED";
517
+ TEMPORARY_UNAVAILABLE: "TEMPORARY_UNAVAILABLE";
518
+ INTERNAL_ERROR: "INTERNAL_ERROR";
519
+ }>;
520
+ message: z.ZodString;
521
+ retryable: z.ZodBoolean;
522
+ }, z.core.$strict>;
523
+ declare const elenaAgentResultItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
524
+ ref: z.ZodString;
525
+ status: z.ZodLiteral<"applied">;
526
+ resource: z.ZodObject<{
527
+ kind: z.ZodEnum<{
528
+ product: "product";
529
+ category: "category";
530
+ }>;
531
+ id: z.ZodUUID;
532
+ revision: z.ZodNumber;
533
+ }, z.core.$strict>;
534
+ }, z.core.$strict>, z.ZodObject<{
535
+ ref: z.ZodString;
536
+ status: z.ZodLiteral<"skipped">;
537
+ resource: z.ZodObject<{
538
+ kind: z.ZodEnum<{
539
+ product: "product";
540
+ category: "category";
541
+ }>;
542
+ id: z.ZodUUID;
543
+ revision: z.ZodNumber;
544
+ }, z.core.$strict>;
545
+ }, z.core.$strict>, z.ZodObject<{
546
+ ref: z.ZodString;
547
+ status: z.ZodLiteral<"failed">;
548
+ error: z.ZodObject<{
549
+ code: z.ZodEnum<{
550
+ INVALID_REQUEST: "INVALID_REQUEST";
551
+ UNSUPPORTED_VERSION: "UNSUPPORTED_VERSION";
552
+ CREDENTIAL_REQUIRED: "CREDENTIAL_REQUIRED";
553
+ CREDENTIAL_INVALID: "CREDENTIAL_INVALID";
554
+ CREDENTIAL_EXPIRED: "CREDENTIAL_EXPIRED";
555
+ CREDENTIAL_REVOKED: "CREDENTIAL_REVOKED";
556
+ CREDENTIAL_MIXED: "CREDENTIAL_MIXED";
557
+ CREDENTIAL_WRONG_FAMILY: "CREDENTIAL_WRONG_FAMILY";
558
+ OWNER_REQUIRED: "OWNER_REQUIRED";
559
+ ORIGIN_REJECTED: "ORIGIN_REJECTED";
560
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
561
+ APPROVAL_REJECTED: "APPROVAL_REJECTED";
562
+ APPROVAL_EXPIRED: "APPROVAL_EXPIRED";
563
+ APPROVAL_MISMATCH: "APPROVAL_MISMATCH";
564
+ SCOPE_REQUIRED: "SCOPE_REQUIRED";
565
+ MODE_READ_ONLY: "MODE_READ_ONLY";
566
+ API_ACCESS_DISABLED: "API_ACCESS_DISABLED";
567
+ RESTAURANT_NOT_APPROVED: "RESTAURANT_NOT_APPROVED";
568
+ NOT_FOUND: "NOT_FOUND";
569
+ VERSION_CONFLICT: "VERSION_CONFLICT";
570
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
571
+ INVALID_PRICE: "INVALID_PRICE";
572
+ UNCONFIRMED_DATA: "UNCONFIRMED_DATA";
573
+ REFERENCE_CONFLICT: "REFERENCE_CONFLICT";
574
+ MEDIA_INVALID: "MEDIA_INVALID";
575
+ MEDIA_EXPIRED: "MEDIA_EXPIRED";
576
+ QUOTA_EXCEEDED: "QUOTA_EXCEEDED";
577
+ RATE_LIMITED: "RATE_LIMITED";
578
+ PAIRING_PENDING: "PAIRING_PENDING";
579
+ PAIRING_DENIED: "PAIRING_DENIED";
580
+ PAIRING_EXPIRED: "PAIRING_EXPIRED";
581
+ PAIRING_CONSUMED: "PAIRING_CONSUMED";
582
+ OPERATION_TERMINAL: "OPERATION_TERMINAL";
583
+ APPLY_WINDOW_EXPIRED: "APPLY_WINDOW_EXPIRED";
584
+ DEPENDENCY_FAILED: "DEPENDENCY_FAILED";
585
+ TEMPORARY_UNAVAILABLE: "TEMPORARY_UNAVAILABLE";
586
+ INTERNAL_ERROR: "INTERNAL_ERROR";
587
+ }>;
588
+ message: z.ZodString;
589
+ retryable: z.ZodBoolean;
590
+ }, z.core.$strict>;
591
+ }, z.core.$strict>, z.ZodObject<{
592
+ ref: z.ZodString;
593
+ status: z.ZodLiteral<"blocked">;
594
+ error: z.ZodObject<{
595
+ code: z.ZodEnum<{
596
+ INVALID_REQUEST: "INVALID_REQUEST";
597
+ UNSUPPORTED_VERSION: "UNSUPPORTED_VERSION";
598
+ CREDENTIAL_REQUIRED: "CREDENTIAL_REQUIRED";
599
+ CREDENTIAL_INVALID: "CREDENTIAL_INVALID";
600
+ CREDENTIAL_EXPIRED: "CREDENTIAL_EXPIRED";
601
+ CREDENTIAL_REVOKED: "CREDENTIAL_REVOKED";
602
+ CREDENTIAL_MIXED: "CREDENTIAL_MIXED";
603
+ CREDENTIAL_WRONG_FAMILY: "CREDENTIAL_WRONG_FAMILY";
604
+ OWNER_REQUIRED: "OWNER_REQUIRED";
605
+ ORIGIN_REJECTED: "ORIGIN_REJECTED";
606
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
607
+ APPROVAL_REJECTED: "APPROVAL_REJECTED";
608
+ APPROVAL_EXPIRED: "APPROVAL_EXPIRED";
609
+ APPROVAL_MISMATCH: "APPROVAL_MISMATCH";
610
+ SCOPE_REQUIRED: "SCOPE_REQUIRED";
611
+ MODE_READ_ONLY: "MODE_READ_ONLY";
612
+ API_ACCESS_DISABLED: "API_ACCESS_DISABLED";
613
+ RESTAURANT_NOT_APPROVED: "RESTAURANT_NOT_APPROVED";
614
+ NOT_FOUND: "NOT_FOUND";
615
+ VERSION_CONFLICT: "VERSION_CONFLICT";
616
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
617
+ INVALID_PRICE: "INVALID_PRICE";
618
+ UNCONFIRMED_DATA: "UNCONFIRMED_DATA";
619
+ REFERENCE_CONFLICT: "REFERENCE_CONFLICT";
620
+ MEDIA_INVALID: "MEDIA_INVALID";
621
+ MEDIA_EXPIRED: "MEDIA_EXPIRED";
622
+ QUOTA_EXCEEDED: "QUOTA_EXCEEDED";
623
+ RATE_LIMITED: "RATE_LIMITED";
624
+ PAIRING_PENDING: "PAIRING_PENDING";
625
+ PAIRING_DENIED: "PAIRING_DENIED";
626
+ PAIRING_EXPIRED: "PAIRING_EXPIRED";
627
+ PAIRING_CONSUMED: "PAIRING_CONSUMED";
628
+ OPERATION_TERMINAL: "OPERATION_TERMINAL";
629
+ APPLY_WINDOW_EXPIRED: "APPLY_WINDOW_EXPIRED";
630
+ DEPENDENCY_FAILED: "DEPENDENCY_FAILED";
631
+ TEMPORARY_UNAVAILABLE: "TEMPORARY_UNAVAILABLE";
632
+ INTERNAL_ERROR: "INTERNAL_ERROR";
633
+ }>;
634
+ message: z.ZodString;
635
+ retryable: z.ZodBoolean;
636
+ }, z.core.$strict>;
637
+ }, z.core.$strict>], "status">;
638
+ declare const elenaAgentOperationResultSchema: z.ZodObject<{
639
+ completedAt: z.ZodISODateTime;
640
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
641
+ ref: z.ZodString;
642
+ status: z.ZodLiteral<"applied">;
643
+ resource: z.ZodObject<{
644
+ kind: z.ZodEnum<{
645
+ product: "product";
646
+ category: "category";
647
+ }>;
648
+ id: z.ZodUUID;
649
+ revision: z.ZodNumber;
650
+ }, z.core.$strict>;
651
+ }, z.core.$strict>, z.ZodObject<{
652
+ ref: z.ZodString;
653
+ status: z.ZodLiteral<"skipped">;
654
+ resource: z.ZodObject<{
655
+ kind: z.ZodEnum<{
656
+ product: "product";
657
+ category: "category";
658
+ }>;
659
+ id: z.ZodUUID;
660
+ revision: z.ZodNumber;
661
+ }, z.core.$strict>;
662
+ }, z.core.$strict>, z.ZodObject<{
663
+ ref: z.ZodString;
664
+ status: z.ZodLiteral<"failed">;
665
+ error: z.ZodObject<{
666
+ code: z.ZodEnum<{
667
+ INVALID_REQUEST: "INVALID_REQUEST";
668
+ UNSUPPORTED_VERSION: "UNSUPPORTED_VERSION";
669
+ CREDENTIAL_REQUIRED: "CREDENTIAL_REQUIRED";
670
+ CREDENTIAL_INVALID: "CREDENTIAL_INVALID";
671
+ CREDENTIAL_EXPIRED: "CREDENTIAL_EXPIRED";
672
+ CREDENTIAL_REVOKED: "CREDENTIAL_REVOKED";
673
+ CREDENTIAL_MIXED: "CREDENTIAL_MIXED";
674
+ CREDENTIAL_WRONG_FAMILY: "CREDENTIAL_WRONG_FAMILY";
675
+ OWNER_REQUIRED: "OWNER_REQUIRED";
676
+ ORIGIN_REJECTED: "ORIGIN_REJECTED";
677
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
678
+ APPROVAL_REJECTED: "APPROVAL_REJECTED";
679
+ APPROVAL_EXPIRED: "APPROVAL_EXPIRED";
680
+ APPROVAL_MISMATCH: "APPROVAL_MISMATCH";
681
+ SCOPE_REQUIRED: "SCOPE_REQUIRED";
682
+ MODE_READ_ONLY: "MODE_READ_ONLY";
683
+ API_ACCESS_DISABLED: "API_ACCESS_DISABLED";
684
+ RESTAURANT_NOT_APPROVED: "RESTAURANT_NOT_APPROVED";
685
+ NOT_FOUND: "NOT_FOUND";
686
+ VERSION_CONFLICT: "VERSION_CONFLICT";
687
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
688
+ INVALID_PRICE: "INVALID_PRICE";
689
+ UNCONFIRMED_DATA: "UNCONFIRMED_DATA";
690
+ REFERENCE_CONFLICT: "REFERENCE_CONFLICT";
691
+ MEDIA_INVALID: "MEDIA_INVALID";
692
+ MEDIA_EXPIRED: "MEDIA_EXPIRED";
693
+ QUOTA_EXCEEDED: "QUOTA_EXCEEDED";
694
+ RATE_LIMITED: "RATE_LIMITED";
695
+ PAIRING_PENDING: "PAIRING_PENDING";
696
+ PAIRING_DENIED: "PAIRING_DENIED";
697
+ PAIRING_EXPIRED: "PAIRING_EXPIRED";
698
+ PAIRING_CONSUMED: "PAIRING_CONSUMED";
699
+ OPERATION_TERMINAL: "OPERATION_TERMINAL";
700
+ APPLY_WINDOW_EXPIRED: "APPLY_WINDOW_EXPIRED";
701
+ DEPENDENCY_FAILED: "DEPENDENCY_FAILED";
702
+ TEMPORARY_UNAVAILABLE: "TEMPORARY_UNAVAILABLE";
703
+ INTERNAL_ERROR: "INTERNAL_ERROR";
704
+ }>;
705
+ message: z.ZodString;
706
+ retryable: z.ZodBoolean;
707
+ }, z.core.$strict>;
708
+ }, z.core.$strict>, z.ZodObject<{
709
+ ref: z.ZodString;
710
+ status: z.ZodLiteral<"blocked">;
711
+ error: z.ZodObject<{
712
+ code: z.ZodEnum<{
713
+ INVALID_REQUEST: "INVALID_REQUEST";
714
+ UNSUPPORTED_VERSION: "UNSUPPORTED_VERSION";
715
+ CREDENTIAL_REQUIRED: "CREDENTIAL_REQUIRED";
716
+ CREDENTIAL_INVALID: "CREDENTIAL_INVALID";
717
+ CREDENTIAL_EXPIRED: "CREDENTIAL_EXPIRED";
718
+ CREDENTIAL_REVOKED: "CREDENTIAL_REVOKED";
719
+ CREDENTIAL_MIXED: "CREDENTIAL_MIXED";
720
+ CREDENTIAL_WRONG_FAMILY: "CREDENTIAL_WRONG_FAMILY";
721
+ OWNER_REQUIRED: "OWNER_REQUIRED";
722
+ ORIGIN_REJECTED: "ORIGIN_REJECTED";
723
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
724
+ APPROVAL_REJECTED: "APPROVAL_REJECTED";
725
+ APPROVAL_EXPIRED: "APPROVAL_EXPIRED";
726
+ APPROVAL_MISMATCH: "APPROVAL_MISMATCH";
727
+ SCOPE_REQUIRED: "SCOPE_REQUIRED";
728
+ MODE_READ_ONLY: "MODE_READ_ONLY";
729
+ API_ACCESS_DISABLED: "API_ACCESS_DISABLED";
730
+ RESTAURANT_NOT_APPROVED: "RESTAURANT_NOT_APPROVED";
731
+ NOT_FOUND: "NOT_FOUND";
732
+ VERSION_CONFLICT: "VERSION_CONFLICT";
733
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
734
+ INVALID_PRICE: "INVALID_PRICE";
735
+ UNCONFIRMED_DATA: "UNCONFIRMED_DATA";
736
+ REFERENCE_CONFLICT: "REFERENCE_CONFLICT";
737
+ MEDIA_INVALID: "MEDIA_INVALID";
738
+ MEDIA_EXPIRED: "MEDIA_EXPIRED";
739
+ QUOTA_EXCEEDED: "QUOTA_EXCEEDED";
740
+ RATE_LIMITED: "RATE_LIMITED";
741
+ PAIRING_PENDING: "PAIRING_PENDING";
742
+ PAIRING_DENIED: "PAIRING_DENIED";
743
+ PAIRING_EXPIRED: "PAIRING_EXPIRED";
744
+ PAIRING_CONSUMED: "PAIRING_CONSUMED";
745
+ OPERATION_TERMINAL: "OPERATION_TERMINAL";
746
+ APPLY_WINDOW_EXPIRED: "APPLY_WINDOW_EXPIRED";
747
+ DEPENDENCY_FAILED: "DEPENDENCY_FAILED";
748
+ TEMPORARY_UNAVAILABLE: "TEMPORARY_UNAVAILABLE";
749
+ INTERNAL_ERROR: "INTERNAL_ERROR";
750
+ }>;
751
+ message: z.ZodString;
752
+ retryable: z.ZodBoolean;
753
+ }, z.core.$strict>;
754
+ }, z.core.$strict>], "status">>;
755
+ }, z.core.$strict>;
756
+ declare const elenaAgentOperationStateSchema: z.ZodEnum<{
757
+ cancelled: "cancelled";
758
+ approved: "approved";
759
+ failed: "failed";
760
+ pending: "pending";
761
+ rejected: "rejected";
762
+ expired: "expired";
763
+ applied: "applied";
764
+ applying: "applying";
765
+ partial: "partial";
766
+ }>;
767
+ declare const elenaAgentOperationSchema: z.ZodObject<{
768
+ version: z.ZodLiteral<"1">;
769
+ operationId: z.ZodUUID;
770
+ revision: z.ZodNumber;
771
+ state: z.ZodEnum<{
772
+ cancelled: "cancelled";
773
+ approved: "approved";
774
+ failed: "failed";
775
+ pending: "pending";
776
+ rejected: "rejected";
777
+ expired: "expired";
778
+ applied: "applied";
779
+ applying: "applying";
780
+ partial: "partial";
781
+ }>;
782
+ restaurantId: z.ZodUUID;
783
+ credentialId: z.ZodUUID;
784
+ credentialRevision: z.ZodNumber;
785
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
786
+ kind: z.ZodLiteral<"catalog">;
787
+ changes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
788
+ kind: z.ZodLiteral<"category.upsert">;
789
+ ref: z.ZodString;
790
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
791
+ kind: z.ZodLiteral<"id">;
792
+ id: z.ZodUUID;
793
+ expectedVersion: z.ZodNumber;
794
+ }, z.core.$strict>, z.ZodObject<{
795
+ kind: z.ZodLiteral<"external">;
796
+ namespace: z.ZodString;
797
+ key: z.ZodString;
798
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
799
+ }, z.core.$strict>], "kind">;
800
+ data: z.ZodObject<{
801
+ name: z.ZodString;
802
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
803
+ status: z.ZodLiteral<"transcribed">;
804
+ text: z.ZodString;
805
+ }, z.core.$strict>, z.ZodObject<{
806
+ status: z.ZodLiteral<"proposed">;
807
+ text: z.ZodString;
808
+ }, z.core.$strict>], "status">>;
809
+ order: z.ZodNumber;
810
+ }, z.core.$strict>;
811
+ }, z.core.$strict>, z.ZodObject<{
812
+ kind: z.ZodLiteral<"product.upsert">;
813
+ ref: z.ZodString;
814
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
815
+ kind: z.ZodLiteral<"id">;
816
+ id: z.ZodUUID;
817
+ expectedVersion: z.ZodNumber;
818
+ }, z.core.$strict>, z.ZodObject<{
819
+ kind: z.ZodLiteral<"external">;
820
+ namespace: z.ZodString;
821
+ key: z.ZodString;
822
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
823
+ }, z.core.$strict>], "kind">;
824
+ data: z.ZodObject<{
825
+ price: z.ZodObject<{
826
+ status: z.ZodLiteral<"confirmed">;
827
+ amount: z.ZodString;
828
+ basis: z.ZodLiteral<"operator">;
829
+ }, z.core.$strict>;
830
+ type: z.ZodLiteral<"menu">;
831
+ name: z.ZodString;
832
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
833
+ status: z.ZodLiteral<"transcribed">;
834
+ text: z.ZodString;
835
+ }, z.core.$strict>, z.ZodObject<{
836
+ status: z.ZodLiteral<"proposed">;
837
+ text: z.ZodString;
838
+ }, z.core.$strict>], "status">>;
839
+ category: z.ZodDiscriminatedUnion<[z.ZodObject<{
840
+ kind: z.ZodLiteral<"id">;
841
+ id: z.ZodUUID;
842
+ expectedVersion: z.ZodNumber;
843
+ }, z.core.$strict>, z.ZodObject<{
844
+ kind: z.ZodLiteral<"ref">;
845
+ ref: z.ZodString;
846
+ }, z.core.$strict>], "kind">;
847
+ available: z.ZodBoolean;
848
+ images: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
849
+ kind: z.ZodLiteral<"existing">;
850
+ assetId: z.ZodUUID;
851
+ sha256: z.ZodString;
852
+ }, z.core.$strict>, z.ZodObject<{
853
+ kind: z.ZodLiteral<"staged">;
854
+ stagingId: z.ZodUUID;
855
+ sha256: z.ZodString;
856
+ }, z.core.$strict>], "kind">>;
857
+ extras: z.ZodObject<{
858
+ confirmed: z.ZodLiteral<true>;
859
+ groups: z.ZodArray<z.ZodObject<{
860
+ name: z.ZodString;
861
+ required: z.ZodBoolean;
862
+ minSelections: z.ZodNumber;
863
+ maxSelections: z.ZodNumber;
864
+ order: z.ZodNumber;
865
+ options: z.ZodArray<z.ZodObject<{
866
+ name: z.ZodString;
867
+ additionalPrice: z.ZodString;
868
+ order: z.ZodNumber;
869
+ }, z.core.$strict>>;
870
+ }, z.core.$strict>>;
871
+ }, z.core.$strict>;
872
+ }, z.core.$strict>;
873
+ }, z.core.$strict>], "kind">>;
874
+ }, z.core.$strict>, z.ZodObject<{
875
+ kind: z.ZodLiteral<"publication">;
876
+ published: z.ZodBoolean;
877
+ products: z.ZodArray<z.ZodObject<{
878
+ kind: z.ZodLiteral<"id">;
879
+ id: z.ZodUUID;
880
+ expectedVersion: z.ZodNumber;
881
+ }, z.core.$strict>>;
882
+ }, z.core.$strict>, z.ZodObject<{
883
+ kind: z.ZodLiteral<"import">;
884
+ importId: z.ZodUUID;
885
+ planHash: z.ZodString;
886
+ selectedRefs: z.ZodArray<z.ZodString>;
887
+ }, z.core.$strict>], "kind">;
888
+ payloadHash: z.ZodString;
889
+ baseVersions: z.ZodArray<z.ZodObject<{
890
+ kind: z.ZodEnum<{
891
+ product: "product";
892
+ category: "category";
893
+ credential: "credential";
894
+ }>;
895
+ id: z.ZodUUID;
896
+ revision: z.ZodNumber;
897
+ }, z.core.$strict>>;
898
+ diff: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
899
+ kind: z.ZodLiteral<"category">;
900
+ ref: z.ZodString;
901
+ before: z.ZodNullable<z.ZodObject<{
902
+ id: z.ZodUUID;
903
+ revision: z.ZodNumber;
904
+ name: z.ZodString;
905
+ description: z.ZodNullable<z.ZodString>;
906
+ order: z.ZodNumber;
907
+ }, z.core.$strict>>;
908
+ after: z.ZodObject<{
909
+ kind: z.ZodLiteral<"category.upsert">;
910
+ ref: z.ZodString;
911
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
912
+ kind: z.ZodLiteral<"id">;
913
+ id: z.ZodUUID;
914
+ expectedVersion: z.ZodNumber;
915
+ }, z.core.$strict>, z.ZodObject<{
916
+ kind: z.ZodLiteral<"external">;
917
+ namespace: z.ZodString;
918
+ key: z.ZodString;
919
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
920
+ }, z.core.$strict>], "kind">;
921
+ data: z.ZodObject<{
922
+ name: z.ZodString;
923
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
924
+ status: z.ZodLiteral<"transcribed">;
925
+ text: z.ZodString;
926
+ }, z.core.$strict>, z.ZodObject<{
927
+ status: z.ZodLiteral<"proposed">;
928
+ text: z.ZodString;
929
+ }, z.core.$strict>], "status">>;
930
+ order: z.ZodNumber;
931
+ }, z.core.$strict>;
932
+ }, z.core.$strict>;
933
+ publicEffect: z.ZodEnum<{
934
+ none: "none";
935
+ immediate_on_apply: "immediate_on_apply";
936
+ }>;
937
+ }, z.core.$strict>, z.ZodObject<{
938
+ kind: z.ZodLiteral<"product">;
939
+ ref: z.ZodString;
940
+ before: z.ZodNullable<z.ZodObject<{
941
+ id: z.ZodUUID;
942
+ revision: z.ZodNumber;
943
+ type: z.ZodLiteral<"menu">;
944
+ name: z.ZodString;
945
+ basePrice: z.ZodString;
946
+ description: z.ZodNullable<z.ZodString>;
947
+ categoryId: z.ZodUUID;
948
+ available: z.ZodBoolean;
949
+ publishedToMenu: z.ZodBoolean;
950
+ isDraft: z.ZodBoolean;
951
+ images: z.ZodArray<z.ZodObject<{
952
+ assetId: z.ZodUUID;
953
+ sha256: z.ZodString;
954
+ }, z.core.$strict>>;
955
+ primaryImageId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
956
+ extraGroups: z.ZodArray<z.ZodObject<{
957
+ name: z.ZodString;
958
+ required: z.ZodBoolean;
959
+ minSelections: z.ZodNumber;
960
+ maxSelections: z.ZodNumber;
961
+ order: z.ZodNumber;
962
+ options: z.ZodArray<z.ZodObject<{
963
+ name: z.ZodString;
964
+ additionalPrice: z.ZodString;
965
+ order: z.ZodNumber;
966
+ }, z.core.$strict>>;
967
+ }, z.core.$strict>>;
968
+ }, z.core.$strict>>;
969
+ after: z.ZodObject<{
970
+ kind: z.ZodLiteral<"product.upsert">;
971
+ ref: z.ZodString;
972
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
973
+ kind: z.ZodLiteral<"id">;
974
+ id: z.ZodUUID;
975
+ expectedVersion: z.ZodNumber;
976
+ }, z.core.$strict>, z.ZodObject<{
977
+ kind: z.ZodLiteral<"external">;
978
+ namespace: z.ZodString;
979
+ key: z.ZodString;
980
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
981
+ }, z.core.$strict>], "kind">;
982
+ data: z.ZodObject<{
983
+ price: z.ZodObject<{
984
+ status: z.ZodLiteral<"confirmed">;
985
+ amount: z.ZodString;
986
+ basis: z.ZodLiteral<"operator">;
987
+ }, z.core.$strict>;
988
+ type: z.ZodLiteral<"menu">;
989
+ name: z.ZodString;
990
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
991
+ status: z.ZodLiteral<"transcribed">;
992
+ text: z.ZodString;
993
+ }, z.core.$strict>, z.ZodObject<{
994
+ status: z.ZodLiteral<"proposed">;
995
+ text: z.ZodString;
996
+ }, z.core.$strict>], "status">>;
997
+ category: z.ZodDiscriminatedUnion<[z.ZodObject<{
998
+ kind: z.ZodLiteral<"id">;
999
+ id: z.ZodUUID;
1000
+ expectedVersion: z.ZodNumber;
1001
+ }, z.core.$strict>, z.ZodObject<{
1002
+ kind: z.ZodLiteral<"ref">;
1003
+ ref: z.ZodString;
1004
+ }, z.core.$strict>], "kind">;
1005
+ available: z.ZodBoolean;
1006
+ images: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1007
+ kind: z.ZodLiteral<"existing">;
1008
+ assetId: z.ZodUUID;
1009
+ sha256: z.ZodString;
1010
+ }, z.core.$strict>, z.ZodObject<{
1011
+ kind: z.ZodLiteral<"staged">;
1012
+ stagingId: z.ZodUUID;
1013
+ sha256: z.ZodString;
1014
+ }, z.core.$strict>], "kind">>;
1015
+ extras: z.ZodObject<{
1016
+ confirmed: z.ZodLiteral<true>;
1017
+ groups: z.ZodArray<z.ZodObject<{
1018
+ name: z.ZodString;
1019
+ required: z.ZodBoolean;
1020
+ minSelections: z.ZodNumber;
1021
+ maxSelections: z.ZodNumber;
1022
+ order: z.ZodNumber;
1023
+ options: z.ZodArray<z.ZodObject<{
1024
+ name: z.ZodString;
1025
+ additionalPrice: z.ZodString;
1026
+ order: z.ZodNumber;
1027
+ }, z.core.$strict>>;
1028
+ }, z.core.$strict>>;
1029
+ }, z.core.$strict>;
1030
+ }, z.core.$strict>;
1031
+ }, z.core.$strict>;
1032
+ publicEffect: z.ZodEnum<{
1033
+ none: "none";
1034
+ immediate_on_apply: "immediate_on_apply";
1035
+ }>;
1036
+ }, z.core.$strict>, z.ZodObject<{
1037
+ kind: z.ZodLiteral<"publication">;
1038
+ ref: z.ZodString;
1039
+ productId: z.ZodUUID;
1040
+ before: z.ZodBoolean;
1041
+ after: z.ZodBoolean;
1042
+ publicEffect: z.ZodLiteral<"immediate_on_apply">;
1043
+ }, z.core.$strict>], "kind">>;
1044
+ approvalUrl: z.ZodURL;
1045
+ createdAt: z.ZodISODateTime;
1046
+ expiresAt: z.ZodISODateTime;
1047
+ decision: z.ZodNullable<z.ZodObject<{
1048
+ outcome: z.ZodEnum<{
1049
+ approved: "approved";
1050
+ rejected: "rejected";
1051
+ }>;
1052
+ decidedAt: z.ZodISODateTime;
1053
+ approverId: z.ZodUUID;
1054
+ payloadHash: z.ZodString;
1055
+ }, z.core.$strict>>;
1056
+ applyDeadline: z.ZodNullable<z.ZodISODateTime>;
1057
+ result: z.ZodNullable<z.ZodObject<{
1058
+ completedAt: z.ZodISODateTime;
1059
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1060
+ ref: z.ZodString;
1061
+ status: z.ZodLiteral<"applied">;
1062
+ resource: z.ZodObject<{
1063
+ kind: z.ZodEnum<{
1064
+ product: "product";
1065
+ category: "category";
1066
+ }>;
1067
+ id: z.ZodUUID;
1068
+ revision: z.ZodNumber;
1069
+ }, z.core.$strict>;
1070
+ }, z.core.$strict>, z.ZodObject<{
1071
+ ref: z.ZodString;
1072
+ status: z.ZodLiteral<"skipped">;
1073
+ resource: z.ZodObject<{
1074
+ kind: z.ZodEnum<{
1075
+ product: "product";
1076
+ category: "category";
1077
+ }>;
1078
+ id: z.ZodUUID;
1079
+ revision: z.ZodNumber;
1080
+ }, z.core.$strict>;
1081
+ }, z.core.$strict>, z.ZodObject<{
1082
+ ref: z.ZodString;
1083
+ status: z.ZodLiteral<"failed">;
1084
+ error: z.ZodObject<{
1085
+ code: z.ZodEnum<{
1086
+ INVALID_REQUEST: "INVALID_REQUEST";
1087
+ UNSUPPORTED_VERSION: "UNSUPPORTED_VERSION";
1088
+ CREDENTIAL_REQUIRED: "CREDENTIAL_REQUIRED";
1089
+ CREDENTIAL_INVALID: "CREDENTIAL_INVALID";
1090
+ CREDENTIAL_EXPIRED: "CREDENTIAL_EXPIRED";
1091
+ CREDENTIAL_REVOKED: "CREDENTIAL_REVOKED";
1092
+ CREDENTIAL_MIXED: "CREDENTIAL_MIXED";
1093
+ CREDENTIAL_WRONG_FAMILY: "CREDENTIAL_WRONG_FAMILY";
1094
+ OWNER_REQUIRED: "OWNER_REQUIRED";
1095
+ ORIGIN_REJECTED: "ORIGIN_REJECTED";
1096
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
1097
+ APPROVAL_REJECTED: "APPROVAL_REJECTED";
1098
+ APPROVAL_EXPIRED: "APPROVAL_EXPIRED";
1099
+ APPROVAL_MISMATCH: "APPROVAL_MISMATCH";
1100
+ SCOPE_REQUIRED: "SCOPE_REQUIRED";
1101
+ MODE_READ_ONLY: "MODE_READ_ONLY";
1102
+ API_ACCESS_DISABLED: "API_ACCESS_DISABLED";
1103
+ RESTAURANT_NOT_APPROVED: "RESTAURANT_NOT_APPROVED";
1104
+ NOT_FOUND: "NOT_FOUND";
1105
+ VERSION_CONFLICT: "VERSION_CONFLICT";
1106
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
1107
+ INVALID_PRICE: "INVALID_PRICE";
1108
+ UNCONFIRMED_DATA: "UNCONFIRMED_DATA";
1109
+ REFERENCE_CONFLICT: "REFERENCE_CONFLICT";
1110
+ MEDIA_INVALID: "MEDIA_INVALID";
1111
+ MEDIA_EXPIRED: "MEDIA_EXPIRED";
1112
+ QUOTA_EXCEEDED: "QUOTA_EXCEEDED";
1113
+ RATE_LIMITED: "RATE_LIMITED";
1114
+ PAIRING_PENDING: "PAIRING_PENDING";
1115
+ PAIRING_DENIED: "PAIRING_DENIED";
1116
+ PAIRING_EXPIRED: "PAIRING_EXPIRED";
1117
+ PAIRING_CONSUMED: "PAIRING_CONSUMED";
1118
+ OPERATION_TERMINAL: "OPERATION_TERMINAL";
1119
+ APPLY_WINDOW_EXPIRED: "APPLY_WINDOW_EXPIRED";
1120
+ DEPENDENCY_FAILED: "DEPENDENCY_FAILED";
1121
+ TEMPORARY_UNAVAILABLE: "TEMPORARY_UNAVAILABLE";
1122
+ INTERNAL_ERROR: "INTERNAL_ERROR";
1123
+ }>;
1124
+ message: z.ZodString;
1125
+ retryable: z.ZodBoolean;
1126
+ }, z.core.$strict>;
1127
+ }, z.core.$strict>, z.ZodObject<{
1128
+ ref: z.ZodString;
1129
+ status: z.ZodLiteral<"blocked">;
1130
+ error: z.ZodObject<{
1131
+ code: z.ZodEnum<{
1132
+ INVALID_REQUEST: "INVALID_REQUEST";
1133
+ UNSUPPORTED_VERSION: "UNSUPPORTED_VERSION";
1134
+ CREDENTIAL_REQUIRED: "CREDENTIAL_REQUIRED";
1135
+ CREDENTIAL_INVALID: "CREDENTIAL_INVALID";
1136
+ CREDENTIAL_EXPIRED: "CREDENTIAL_EXPIRED";
1137
+ CREDENTIAL_REVOKED: "CREDENTIAL_REVOKED";
1138
+ CREDENTIAL_MIXED: "CREDENTIAL_MIXED";
1139
+ CREDENTIAL_WRONG_FAMILY: "CREDENTIAL_WRONG_FAMILY";
1140
+ OWNER_REQUIRED: "OWNER_REQUIRED";
1141
+ ORIGIN_REJECTED: "ORIGIN_REJECTED";
1142
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
1143
+ APPROVAL_REJECTED: "APPROVAL_REJECTED";
1144
+ APPROVAL_EXPIRED: "APPROVAL_EXPIRED";
1145
+ APPROVAL_MISMATCH: "APPROVAL_MISMATCH";
1146
+ SCOPE_REQUIRED: "SCOPE_REQUIRED";
1147
+ MODE_READ_ONLY: "MODE_READ_ONLY";
1148
+ API_ACCESS_DISABLED: "API_ACCESS_DISABLED";
1149
+ RESTAURANT_NOT_APPROVED: "RESTAURANT_NOT_APPROVED";
1150
+ NOT_FOUND: "NOT_FOUND";
1151
+ VERSION_CONFLICT: "VERSION_CONFLICT";
1152
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
1153
+ INVALID_PRICE: "INVALID_PRICE";
1154
+ UNCONFIRMED_DATA: "UNCONFIRMED_DATA";
1155
+ REFERENCE_CONFLICT: "REFERENCE_CONFLICT";
1156
+ MEDIA_INVALID: "MEDIA_INVALID";
1157
+ MEDIA_EXPIRED: "MEDIA_EXPIRED";
1158
+ QUOTA_EXCEEDED: "QUOTA_EXCEEDED";
1159
+ RATE_LIMITED: "RATE_LIMITED";
1160
+ PAIRING_PENDING: "PAIRING_PENDING";
1161
+ PAIRING_DENIED: "PAIRING_DENIED";
1162
+ PAIRING_EXPIRED: "PAIRING_EXPIRED";
1163
+ PAIRING_CONSUMED: "PAIRING_CONSUMED";
1164
+ OPERATION_TERMINAL: "OPERATION_TERMINAL";
1165
+ APPLY_WINDOW_EXPIRED: "APPLY_WINDOW_EXPIRED";
1166
+ DEPENDENCY_FAILED: "DEPENDENCY_FAILED";
1167
+ TEMPORARY_UNAVAILABLE: "TEMPORARY_UNAVAILABLE";
1168
+ INTERNAL_ERROR: "INTERNAL_ERROR";
1169
+ }>;
1170
+ message: z.ZodString;
1171
+ retryable: z.ZodBoolean;
1172
+ }, z.core.$strict>;
1173
+ }, z.core.$strict>], "status">>;
1174
+ }, z.core.$strict>>;
1175
+ }, z.core.$strict>;
1176
+ declare const elenaAgentOperationListSchema: z.ZodObject<{
1177
+ version: z.ZodLiteral<"1">;
1178
+ operations: z.ZodArray<z.ZodObject<{
1179
+ version: z.ZodLiteral<"1">;
1180
+ operationId: z.ZodUUID;
1181
+ revision: z.ZodNumber;
1182
+ state: z.ZodEnum<{
1183
+ cancelled: "cancelled";
1184
+ approved: "approved";
1185
+ failed: "failed";
1186
+ pending: "pending";
1187
+ rejected: "rejected";
1188
+ expired: "expired";
1189
+ applied: "applied";
1190
+ applying: "applying";
1191
+ partial: "partial";
1192
+ }>;
1193
+ restaurantId: z.ZodUUID;
1194
+ credentialId: z.ZodUUID;
1195
+ credentialRevision: z.ZodNumber;
1196
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
1197
+ kind: z.ZodLiteral<"catalog">;
1198
+ changes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1199
+ kind: z.ZodLiteral<"category.upsert">;
1200
+ ref: z.ZodString;
1201
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1202
+ kind: z.ZodLiteral<"id">;
1203
+ id: z.ZodUUID;
1204
+ expectedVersion: z.ZodNumber;
1205
+ }, z.core.$strict>, z.ZodObject<{
1206
+ kind: z.ZodLiteral<"external">;
1207
+ namespace: z.ZodString;
1208
+ key: z.ZodString;
1209
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
1210
+ }, z.core.$strict>], "kind">;
1211
+ data: z.ZodObject<{
1212
+ name: z.ZodString;
1213
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1214
+ status: z.ZodLiteral<"transcribed">;
1215
+ text: z.ZodString;
1216
+ }, z.core.$strict>, z.ZodObject<{
1217
+ status: z.ZodLiteral<"proposed">;
1218
+ text: z.ZodString;
1219
+ }, z.core.$strict>], "status">>;
1220
+ order: z.ZodNumber;
1221
+ }, z.core.$strict>;
1222
+ }, z.core.$strict>, z.ZodObject<{
1223
+ kind: z.ZodLiteral<"product.upsert">;
1224
+ ref: z.ZodString;
1225
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1226
+ kind: z.ZodLiteral<"id">;
1227
+ id: z.ZodUUID;
1228
+ expectedVersion: z.ZodNumber;
1229
+ }, z.core.$strict>, z.ZodObject<{
1230
+ kind: z.ZodLiteral<"external">;
1231
+ namespace: z.ZodString;
1232
+ key: z.ZodString;
1233
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
1234
+ }, z.core.$strict>], "kind">;
1235
+ data: z.ZodObject<{
1236
+ price: z.ZodObject<{
1237
+ status: z.ZodLiteral<"confirmed">;
1238
+ amount: z.ZodString;
1239
+ basis: z.ZodLiteral<"operator">;
1240
+ }, z.core.$strict>;
1241
+ type: z.ZodLiteral<"menu">;
1242
+ name: z.ZodString;
1243
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1244
+ status: z.ZodLiteral<"transcribed">;
1245
+ text: z.ZodString;
1246
+ }, z.core.$strict>, z.ZodObject<{
1247
+ status: z.ZodLiteral<"proposed">;
1248
+ text: z.ZodString;
1249
+ }, z.core.$strict>], "status">>;
1250
+ category: z.ZodDiscriminatedUnion<[z.ZodObject<{
1251
+ kind: z.ZodLiteral<"id">;
1252
+ id: z.ZodUUID;
1253
+ expectedVersion: z.ZodNumber;
1254
+ }, z.core.$strict>, z.ZodObject<{
1255
+ kind: z.ZodLiteral<"ref">;
1256
+ ref: z.ZodString;
1257
+ }, z.core.$strict>], "kind">;
1258
+ available: z.ZodBoolean;
1259
+ images: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1260
+ kind: z.ZodLiteral<"existing">;
1261
+ assetId: z.ZodUUID;
1262
+ sha256: z.ZodString;
1263
+ }, z.core.$strict>, z.ZodObject<{
1264
+ kind: z.ZodLiteral<"staged">;
1265
+ stagingId: z.ZodUUID;
1266
+ sha256: z.ZodString;
1267
+ }, z.core.$strict>], "kind">>;
1268
+ extras: z.ZodObject<{
1269
+ confirmed: z.ZodLiteral<true>;
1270
+ groups: z.ZodArray<z.ZodObject<{
1271
+ name: z.ZodString;
1272
+ required: z.ZodBoolean;
1273
+ minSelections: z.ZodNumber;
1274
+ maxSelections: z.ZodNumber;
1275
+ order: z.ZodNumber;
1276
+ options: z.ZodArray<z.ZodObject<{
1277
+ name: z.ZodString;
1278
+ additionalPrice: z.ZodString;
1279
+ order: z.ZodNumber;
1280
+ }, z.core.$strict>>;
1281
+ }, z.core.$strict>>;
1282
+ }, z.core.$strict>;
1283
+ }, z.core.$strict>;
1284
+ }, z.core.$strict>], "kind">>;
1285
+ }, z.core.$strict>, z.ZodObject<{
1286
+ kind: z.ZodLiteral<"publication">;
1287
+ published: z.ZodBoolean;
1288
+ products: z.ZodArray<z.ZodObject<{
1289
+ kind: z.ZodLiteral<"id">;
1290
+ id: z.ZodUUID;
1291
+ expectedVersion: z.ZodNumber;
1292
+ }, z.core.$strict>>;
1293
+ }, z.core.$strict>, z.ZodObject<{
1294
+ kind: z.ZodLiteral<"import">;
1295
+ importId: z.ZodUUID;
1296
+ planHash: z.ZodString;
1297
+ selectedRefs: z.ZodArray<z.ZodString>;
1298
+ }, z.core.$strict>], "kind">;
1299
+ payloadHash: z.ZodString;
1300
+ baseVersions: z.ZodArray<z.ZodObject<{
1301
+ kind: z.ZodEnum<{
1302
+ product: "product";
1303
+ category: "category";
1304
+ credential: "credential";
1305
+ }>;
1306
+ id: z.ZodUUID;
1307
+ revision: z.ZodNumber;
1308
+ }, z.core.$strict>>;
1309
+ diff: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1310
+ kind: z.ZodLiteral<"category">;
1311
+ ref: z.ZodString;
1312
+ before: z.ZodNullable<z.ZodObject<{
1313
+ id: z.ZodUUID;
1314
+ revision: z.ZodNumber;
1315
+ name: z.ZodString;
1316
+ description: z.ZodNullable<z.ZodString>;
1317
+ order: z.ZodNumber;
1318
+ }, z.core.$strict>>;
1319
+ after: z.ZodObject<{
1320
+ kind: z.ZodLiteral<"category.upsert">;
1321
+ ref: z.ZodString;
1322
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1323
+ kind: z.ZodLiteral<"id">;
1324
+ id: z.ZodUUID;
1325
+ expectedVersion: z.ZodNumber;
1326
+ }, z.core.$strict>, z.ZodObject<{
1327
+ kind: z.ZodLiteral<"external">;
1328
+ namespace: z.ZodString;
1329
+ key: z.ZodString;
1330
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
1331
+ }, z.core.$strict>], "kind">;
1332
+ data: z.ZodObject<{
1333
+ name: z.ZodString;
1334
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1335
+ status: z.ZodLiteral<"transcribed">;
1336
+ text: z.ZodString;
1337
+ }, z.core.$strict>, z.ZodObject<{
1338
+ status: z.ZodLiteral<"proposed">;
1339
+ text: z.ZodString;
1340
+ }, z.core.$strict>], "status">>;
1341
+ order: z.ZodNumber;
1342
+ }, z.core.$strict>;
1343
+ }, z.core.$strict>;
1344
+ publicEffect: z.ZodEnum<{
1345
+ none: "none";
1346
+ immediate_on_apply: "immediate_on_apply";
1347
+ }>;
1348
+ }, z.core.$strict>, z.ZodObject<{
1349
+ kind: z.ZodLiteral<"product">;
1350
+ ref: z.ZodString;
1351
+ before: z.ZodNullable<z.ZodObject<{
1352
+ id: z.ZodUUID;
1353
+ revision: z.ZodNumber;
1354
+ type: z.ZodLiteral<"menu">;
1355
+ name: z.ZodString;
1356
+ basePrice: z.ZodString;
1357
+ description: z.ZodNullable<z.ZodString>;
1358
+ categoryId: z.ZodUUID;
1359
+ available: z.ZodBoolean;
1360
+ publishedToMenu: z.ZodBoolean;
1361
+ isDraft: z.ZodBoolean;
1362
+ images: z.ZodArray<z.ZodObject<{
1363
+ assetId: z.ZodUUID;
1364
+ sha256: z.ZodString;
1365
+ }, z.core.$strict>>;
1366
+ primaryImageId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1367
+ extraGroups: z.ZodArray<z.ZodObject<{
1368
+ name: z.ZodString;
1369
+ required: z.ZodBoolean;
1370
+ minSelections: z.ZodNumber;
1371
+ maxSelections: z.ZodNumber;
1372
+ order: z.ZodNumber;
1373
+ options: z.ZodArray<z.ZodObject<{
1374
+ name: z.ZodString;
1375
+ additionalPrice: z.ZodString;
1376
+ order: z.ZodNumber;
1377
+ }, z.core.$strict>>;
1378
+ }, z.core.$strict>>;
1379
+ }, z.core.$strict>>;
1380
+ after: z.ZodObject<{
1381
+ kind: z.ZodLiteral<"product.upsert">;
1382
+ ref: z.ZodString;
1383
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1384
+ kind: z.ZodLiteral<"id">;
1385
+ id: z.ZodUUID;
1386
+ expectedVersion: z.ZodNumber;
1387
+ }, z.core.$strict>, z.ZodObject<{
1388
+ kind: z.ZodLiteral<"external">;
1389
+ namespace: z.ZodString;
1390
+ key: z.ZodString;
1391
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
1392
+ }, z.core.$strict>], "kind">;
1393
+ data: z.ZodObject<{
1394
+ price: z.ZodObject<{
1395
+ status: z.ZodLiteral<"confirmed">;
1396
+ amount: z.ZodString;
1397
+ basis: z.ZodLiteral<"operator">;
1398
+ }, z.core.$strict>;
1399
+ type: z.ZodLiteral<"menu">;
1400
+ name: z.ZodString;
1401
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1402
+ status: z.ZodLiteral<"transcribed">;
1403
+ text: z.ZodString;
1404
+ }, z.core.$strict>, z.ZodObject<{
1405
+ status: z.ZodLiteral<"proposed">;
1406
+ text: z.ZodString;
1407
+ }, z.core.$strict>], "status">>;
1408
+ category: z.ZodDiscriminatedUnion<[z.ZodObject<{
1409
+ kind: z.ZodLiteral<"id">;
1410
+ id: z.ZodUUID;
1411
+ expectedVersion: z.ZodNumber;
1412
+ }, z.core.$strict>, z.ZodObject<{
1413
+ kind: z.ZodLiteral<"ref">;
1414
+ ref: z.ZodString;
1415
+ }, z.core.$strict>], "kind">;
1416
+ available: z.ZodBoolean;
1417
+ images: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1418
+ kind: z.ZodLiteral<"existing">;
1419
+ assetId: z.ZodUUID;
1420
+ sha256: z.ZodString;
1421
+ }, z.core.$strict>, z.ZodObject<{
1422
+ kind: z.ZodLiteral<"staged">;
1423
+ stagingId: z.ZodUUID;
1424
+ sha256: z.ZodString;
1425
+ }, z.core.$strict>], "kind">>;
1426
+ extras: z.ZodObject<{
1427
+ confirmed: z.ZodLiteral<true>;
1428
+ groups: z.ZodArray<z.ZodObject<{
1429
+ name: z.ZodString;
1430
+ required: z.ZodBoolean;
1431
+ minSelections: z.ZodNumber;
1432
+ maxSelections: z.ZodNumber;
1433
+ order: z.ZodNumber;
1434
+ options: z.ZodArray<z.ZodObject<{
1435
+ name: z.ZodString;
1436
+ additionalPrice: z.ZodString;
1437
+ order: z.ZodNumber;
1438
+ }, z.core.$strict>>;
1439
+ }, z.core.$strict>>;
1440
+ }, z.core.$strict>;
1441
+ }, z.core.$strict>;
1442
+ }, z.core.$strict>;
1443
+ publicEffect: z.ZodEnum<{
1444
+ none: "none";
1445
+ immediate_on_apply: "immediate_on_apply";
1446
+ }>;
1447
+ }, z.core.$strict>, z.ZodObject<{
1448
+ kind: z.ZodLiteral<"publication">;
1449
+ ref: z.ZodString;
1450
+ productId: z.ZodUUID;
1451
+ before: z.ZodBoolean;
1452
+ after: z.ZodBoolean;
1453
+ publicEffect: z.ZodLiteral<"immediate_on_apply">;
1454
+ }, z.core.$strict>], "kind">>;
1455
+ approvalUrl: z.ZodURL;
1456
+ createdAt: z.ZodISODateTime;
1457
+ expiresAt: z.ZodISODateTime;
1458
+ decision: z.ZodNullable<z.ZodObject<{
1459
+ outcome: z.ZodEnum<{
1460
+ approved: "approved";
1461
+ rejected: "rejected";
1462
+ }>;
1463
+ decidedAt: z.ZodISODateTime;
1464
+ approverId: z.ZodUUID;
1465
+ payloadHash: z.ZodString;
1466
+ }, z.core.$strict>>;
1467
+ applyDeadline: z.ZodNullable<z.ZodISODateTime>;
1468
+ result: z.ZodNullable<z.ZodObject<{
1469
+ completedAt: z.ZodISODateTime;
1470
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1471
+ ref: z.ZodString;
1472
+ status: z.ZodLiteral<"applied">;
1473
+ resource: z.ZodObject<{
1474
+ kind: z.ZodEnum<{
1475
+ product: "product";
1476
+ category: "category";
1477
+ }>;
1478
+ id: z.ZodUUID;
1479
+ revision: z.ZodNumber;
1480
+ }, z.core.$strict>;
1481
+ }, z.core.$strict>, z.ZodObject<{
1482
+ ref: z.ZodString;
1483
+ status: z.ZodLiteral<"skipped">;
1484
+ resource: z.ZodObject<{
1485
+ kind: z.ZodEnum<{
1486
+ product: "product";
1487
+ category: "category";
1488
+ }>;
1489
+ id: z.ZodUUID;
1490
+ revision: z.ZodNumber;
1491
+ }, z.core.$strict>;
1492
+ }, z.core.$strict>, z.ZodObject<{
1493
+ ref: z.ZodString;
1494
+ status: z.ZodLiteral<"failed">;
1495
+ error: z.ZodObject<{
1496
+ code: z.ZodEnum<{
1497
+ INVALID_REQUEST: "INVALID_REQUEST";
1498
+ UNSUPPORTED_VERSION: "UNSUPPORTED_VERSION";
1499
+ CREDENTIAL_REQUIRED: "CREDENTIAL_REQUIRED";
1500
+ CREDENTIAL_INVALID: "CREDENTIAL_INVALID";
1501
+ CREDENTIAL_EXPIRED: "CREDENTIAL_EXPIRED";
1502
+ CREDENTIAL_REVOKED: "CREDENTIAL_REVOKED";
1503
+ CREDENTIAL_MIXED: "CREDENTIAL_MIXED";
1504
+ CREDENTIAL_WRONG_FAMILY: "CREDENTIAL_WRONG_FAMILY";
1505
+ OWNER_REQUIRED: "OWNER_REQUIRED";
1506
+ ORIGIN_REJECTED: "ORIGIN_REJECTED";
1507
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
1508
+ APPROVAL_REJECTED: "APPROVAL_REJECTED";
1509
+ APPROVAL_EXPIRED: "APPROVAL_EXPIRED";
1510
+ APPROVAL_MISMATCH: "APPROVAL_MISMATCH";
1511
+ SCOPE_REQUIRED: "SCOPE_REQUIRED";
1512
+ MODE_READ_ONLY: "MODE_READ_ONLY";
1513
+ API_ACCESS_DISABLED: "API_ACCESS_DISABLED";
1514
+ RESTAURANT_NOT_APPROVED: "RESTAURANT_NOT_APPROVED";
1515
+ NOT_FOUND: "NOT_FOUND";
1516
+ VERSION_CONFLICT: "VERSION_CONFLICT";
1517
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
1518
+ INVALID_PRICE: "INVALID_PRICE";
1519
+ UNCONFIRMED_DATA: "UNCONFIRMED_DATA";
1520
+ REFERENCE_CONFLICT: "REFERENCE_CONFLICT";
1521
+ MEDIA_INVALID: "MEDIA_INVALID";
1522
+ MEDIA_EXPIRED: "MEDIA_EXPIRED";
1523
+ QUOTA_EXCEEDED: "QUOTA_EXCEEDED";
1524
+ RATE_LIMITED: "RATE_LIMITED";
1525
+ PAIRING_PENDING: "PAIRING_PENDING";
1526
+ PAIRING_DENIED: "PAIRING_DENIED";
1527
+ PAIRING_EXPIRED: "PAIRING_EXPIRED";
1528
+ PAIRING_CONSUMED: "PAIRING_CONSUMED";
1529
+ OPERATION_TERMINAL: "OPERATION_TERMINAL";
1530
+ APPLY_WINDOW_EXPIRED: "APPLY_WINDOW_EXPIRED";
1531
+ DEPENDENCY_FAILED: "DEPENDENCY_FAILED";
1532
+ TEMPORARY_UNAVAILABLE: "TEMPORARY_UNAVAILABLE";
1533
+ INTERNAL_ERROR: "INTERNAL_ERROR";
1534
+ }>;
1535
+ message: z.ZodString;
1536
+ retryable: z.ZodBoolean;
1537
+ }, z.core.$strict>;
1538
+ }, z.core.$strict>, z.ZodObject<{
1539
+ ref: z.ZodString;
1540
+ status: z.ZodLiteral<"blocked">;
1541
+ error: z.ZodObject<{
1542
+ code: z.ZodEnum<{
1543
+ INVALID_REQUEST: "INVALID_REQUEST";
1544
+ UNSUPPORTED_VERSION: "UNSUPPORTED_VERSION";
1545
+ CREDENTIAL_REQUIRED: "CREDENTIAL_REQUIRED";
1546
+ CREDENTIAL_INVALID: "CREDENTIAL_INVALID";
1547
+ CREDENTIAL_EXPIRED: "CREDENTIAL_EXPIRED";
1548
+ CREDENTIAL_REVOKED: "CREDENTIAL_REVOKED";
1549
+ CREDENTIAL_MIXED: "CREDENTIAL_MIXED";
1550
+ CREDENTIAL_WRONG_FAMILY: "CREDENTIAL_WRONG_FAMILY";
1551
+ OWNER_REQUIRED: "OWNER_REQUIRED";
1552
+ ORIGIN_REJECTED: "ORIGIN_REJECTED";
1553
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
1554
+ APPROVAL_REJECTED: "APPROVAL_REJECTED";
1555
+ APPROVAL_EXPIRED: "APPROVAL_EXPIRED";
1556
+ APPROVAL_MISMATCH: "APPROVAL_MISMATCH";
1557
+ SCOPE_REQUIRED: "SCOPE_REQUIRED";
1558
+ MODE_READ_ONLY: "MODE_READ_ONLY";
1559
+ API_ACCESS_DISABLED: "API_ACCESS_DISABLED";
1560
+ RESTAURANT_NOT_APPROVED: "RESTAURANT_NOT_APPROVED";
1561
+ NOT_FOUND: "NOT_FOUND";
1562
+ VERSION_CONFLICT: "VERSION_CONFLICT";
1563
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
1564
+ INVALID_PRICE: "INVALID_PRICE";
1565
+ UNCONFIRMED_DATA: "UNCONFIRMED_DATA";
1566
+ REFERENCE_CONFLICT: "REFERENCE_CONFLICT";
1567
+ MEDIA_INVALID: "MEDIA_INVALID";
1568
+ MEDIA_EXPIRED: "MEDIA_EXPIRED";
1569
+ QUOTA_EXCEEDED: "QUOTA_EXCEEDED";
1570
+ RATE_LIMITED: "RATE_LIMITED";
1571
+ PAIRING_PENDING: "PAIRING_PENDING";
1572
+ PAIRING_DENIED: "PAIRING_DENIED";
1573
+ PAIRING_EXPIRED: "PAIRING_EXPIRED";
1574
+ PAIRING_CONSUMED: "PAIRING_CONSUMED";
1575
+ OPERATION_TERMINAL: "OPERATION_TERMINAL";
1576
+ APPLY_WINDOW_EXPIRED: "APPLY_WINDOW_EXPIRED";
1577
+ DEPENDENCY_FAILED: "DEPENDENCY_FAILED";
1578
+ TEMPORARY_UNAVAILABLE: "TEMPORARY_UNAVAILABLE";
1579
+ INTERNAL_ERROR: "INTERNAL_ERROR";
1580
+ }>;
1581
+ message: z.ZodString;
1582
+ retryable: z.ZodBoolean;
1583
+ }, z.core.$strict>;
1584
+ }, z.core.$strict>], "status">>;
1585
+ }, z.core.$strict>>;
1586
+ }, z.core.$strict>>;
1587
+ nextCursor: z.ZodNullable<z.ZodString>;
1588
+ }, z.core.$strict>;
1589
+ declare const elenaAgentImportSourceSchema: z.ZodObject<{
1590
+ kind: z.ZodEnum<{
1591
+ manual: "manual";
1592
+ table: "table";
1593
+ image: "image";
1594
+ pdf: "pdf";
1595
+ }>;
1596
+ label: z.ZodString;
1597
+ sha256: z.ZodOptional<z.ZodString>;
1598
+ }, z.core.$strict>;
1599
+ declare const elenaAgentImportItemSchema: z.ZodObject<{
1600
+ ref: z.ZodString;
1601
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1602
+ kind: z.ZodLiteral<"id">;
1603
+ id: z.ZodUUID;
1604
+ expectedVersion: z.ZodNumber;
1605
+ }, z.core.$strict>, z.ZodObject<{
1606
+ kind: z.ZodLiteral<"external">;
1607
+ namespace: z.ZodString;
1608
+ key: z.ZodString;
1609
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
1610
+ }, z.core.$strict>], "kind">;
1611
+ data: z.ZodObject<{
1612
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
1613
+ status: z.ZodLiteral<"confirmed">;
1614
+ amount: z.ZodString;
1615
+ basis: z.ZodLiteral<"operator">;
1616
+ }, z.core.$strict>, z.ZodObject<{
1617
+ status: z.ZodLiteral<"unconfirmed">;
1618
+ reason: z.ZodEnum<{
1619
+ missing: "missing";
1620
+ illegible: "illegible";
1621
+ }>;
1622
+ rawText: z.ZodNullable<z.ZodString>;
1623
+ }, z.core.$strict>], "status">;
1624
+ type: z.ZodLiteral<"menu">;
1625
+ name: z.ZodString;
1626
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1627
+ status: z.ZodLiteral<"transcribed">;
1628
+ text: z.ZodString;
1629
+ }, z.core.$strict>, z.ZodObject<{
1630
+ status: z.ZodLiteral<"proposed">;
1631
+ text: z.ZodString;
1632
+ }, z.core.$strict>], "status">>;
1633
+ category: z.ZodDiscriminatedUnion<[z.ZodObject<{
1634
+ kind: z.ZodLiteral<"id">;
1635
+ id: z.ZodUUID;
1636
+ expectedVersion: z.ZodNumber;
1637
+ }, z.core.$strict>, z.ZodObject<{
1638
+ kind: z.ZodLiteral<"ref">;
1639
+ ref: z.ZodString;
1640
+ }, z.core.$strict>], "kind">;
1641
+ available: z.ZodBoolean;
1642
+ images: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1643
+ kind: z.ZodLiteral<"existing">;
1644
+ assetId: z.ZodUUID;
1645
+ sha256: z.ZodString;
1646
+ }, z.core.$strict>, z.ZodObject<{
1647
+ kind: z.ZodLiteral<"staged">;
1648
+ stagingId: z.ZodUUID;
1649
+ sha256: z.ZodString;
1650
+ }, z.core.$strict>], "kind">>;
1651
+ extras: z.ZodObject<{
1652
+ confirmed: z.ZodLiteral<true>;
1653
+ groups: z.ZodArray<z.ZodObject<{
1654
+ name: z.ZodString;
1655
+ required: z.ZodBoolean;
1656
+ minSelections: z.ZodNumber;
1657
+ maxSelections: z.ZodNumber;
1658
+ order: z.ZodNumber;
1659
+ options: z.ZodArray<z.ZodObject<{
1660
+ name: z.ZodString;
1661
+ additionalPrice: z.ZodString;
1662
+ order: z.ZodNumber;
1663
+ }, z.core.$strict>>;
1664
+ }, z.core.$strict>>;
1665
+ }, z.core.$strict>;
1666
+ }, z.core.$strict>;
1667
+ }, z.core.$strict>;
1668
+ declare const elenaAgentImportPreviewRequestSchema: z.ZodObject<{
1669
+ version: z.ZodLiteral<"1">;
1670
+ idempotencyKey: z.ZodString;
1671
+ currency: z.ZodLiteral<"PEN">;
1672
+ source: z.ZodObject<{
1673
+ kind: z.ZodEnum<{
1674
+ manual: "manual";
1675
+ table: "table";
1676
+ image: "image";
1677
+ pdf: "pdf";
1678
+ }>;
1679
+ label: z.ZodString;
1680
+ sha256: z.ZodOptional<z.ZodString>;
1681
+ }, z.core.$strict>;
1682
+ categories: z.ZodArray<z.ZodObject<{
1683
+ kind: z.ZodLiteral<"category.upsert">;
1684
+ ref: z.ZodString;
1685
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1686
+ kind: z.ZodLiteral<"id">;
1687
+ id: z.ZodUUID;
1688
+ expectedVersion: z.ZodNumber;
1689
+ }, z.core.$strict>, z.ZodObject<{
1690
+ kind: z.ZodLiteral<"external">;
1691
+ namespace: z.ZodString;
1692
+ key: z.ZodString;
1693
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
1694
+ }, z.core.$strict>], "kind">;
1695
+ data: z.ZodObject<{
1696
+ name: z.ZodString;
1697
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1698
+ status: z.ZodLiteral<"transcribed">;
1699
+ text: z.ZodString;
1700
+ }, z.core.$strict>, z.ZodObject<{
1701
+ status: z.ZodLiteral<"proposed">;
1702
+ text: z.ZodString;
1703
+ }, z.core.$strict>], "status">>;
1704
+ order: z.ZodNumber;
1705
+ }, z.core.$strict>;
1706
+ }, z.core.$strict>>;
1707
+ items: z.ZodArray<z.ZodObject<{
1708
+ ref: z.ZodString;
1709
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1710
+ kind: z.ZodLiteral<"id">;
1711
+ id: z.ZodUUID;
1712
+ expectedVersion: z.ZodNumber;
1713
+ }, z.core.$strict>, z.ZodObject<{
1714
+ kind: z.ZodLiteral<"external">;
1715
+ namespace: z.ZodString;
1716
+ key: z.ZodString;
1717
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
1718
+ }, z.core.$strict>], "kind">;
1719
+ data: z.ZodObject<{
1720
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
1721
+ status: z.ZodLiteral<"confirmed">;
1722
+ amount: z.ZodString;
1723
+ basis: z.ZodLiteral<"operator">;
1724
+ }, z.core.$strict>, z.ZodObject<{
1725
+ status: z.ZodLiteral<"unconfirmed">;
1726
+ reason: z.ZodEnum<{
1727
+ missing: "missing";
1728
+ illegible: "illegible";
1729
+ }>;
1730
+ rawText: z.ZodNullable<z.ZodString>;
1731
+ }, z.core.$strict>], "status">;
1732
+ type: z.ZodLiteral<"menu">;
1733
+ name: z.ZodString;
1734
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1735
+ status: z.ZodLiteral<"transcribed">;
1736
+ text: z.ZodString;
1737
+ }, z.core.$strict>, z.ZodObject<{
1738
+ status: z.ZodLiteral<"proposed">;
1739
+ text: z.ZodString;
1740
+ }, z.core.$strict>], "status">>;
1741
+ category: z.ZodDiscriminatedUnion<[z.ZodObject<{
1742
+ kind: z.ZodLiteral<"id">;
1743
+ id: z.ZodUUID;
1744
+ expectedVersion: z.ZodNumber;
1745
+ }, z.core.$strict>, z.ZodObject<{
1746
+ kind: z.ZodLiteral<"ref">;
1747
+ ref: z.ZodString;
1748
+ }, z.core.$strict>], "kind">;
1749
+ available: z.ZodBoolean;
1750
+ images: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1751
+ kind: z.ZodLiteral<"existing">;
1752
+ assetId: z.ZodUUID;
1753
+ sha256: z.ZodString;
1754
+ }, z.core.$strict>, z.ZodObject<{
1755
+ kind: z.ZodLiteral<"staged">;
1756
+ stagingId: z.ZodUUID;
1757
+ sha256: z.ZodString;
1758
+ }, z.core.$strict>], "kind">>;
1759
+ extras: z.ZodObject<{
1760
+ confirmed: z.ZodLiteral<true>;
1761
+ groups: z.ZodArray<z.ZodObject<{
1762
+ name: z.ZodString;
1763
+ required: z.ZodBoolean;
1764
+ minSelections: z.ZodNumber;
1765
+ maxSelections: z.ZodNumber;
1766
+ order: z.ZodNumber;
1767
+ options: z.ZodArray<z.ZodObject<{
1768
+ name: z.ZodString;
1769
+ additionalPrice: z.ZodString;
1770
+ order: z.ZodNumber;
1771
+ }, z.core.$strict>>;
1772
+ }, z.core.$strict>>;
1773
+ }, z.core.$strict>;
1774
+ }, z.core.$strict>;
1775
+ }, z.core.$strict>>;
1776
+ }, z.core.$strict>;
1777
+ declare const elenaAgentPreviewItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1778
+ ref: z.ZodString;
1779
+ classification: z.ZodLiteral<"create">;
1780
+ change: z.ZodDiscriminatedUnion<[z.ZodObject<{
1781
+ kind: z.ZodLiteral<"category.upsert">;
1782
+ ref: z.ZodString;
1783
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1784
+ kind: z.ZodLiteral<"id">;
1785
+ id: z.ZodUUID;
1786
+ expectedVersion: z.ZodNumber;
1787
+ }, z.core.$strict>, z.ZodObject<{
1788
+ kind: z.ZodLiteral<"external">;
1789
+ namespace: z.ZodString;
1790
+ key: z.ZodString;
1791
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
1792
+ }, z.core.$strict>], "kind">;
1793
+ data: z.ZodObject<{
1794
+ name: z.ZodString;
1795
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1796
+ status: z.ZodLiteral<"transcribed">;
1797
+ text: z.ZodString;
1798
+ }, z.core.$strict>, z.ZodObject<{
1799
+ status: z.ZodLiteral<"proposed">;
1800
+ text: z.ZodString;
1801
+ }, z.core.$strict>], "status">>;
1802
+ order: z.ZodNumber;
1803
+ }, z.core.$strict>;
1804
+ }, z.core.$strict>, z.ZodObject<{
1805
+ kind: z.ZodLiteral<"product.upsert">;
1806
+ ref: z.ZodString;
1807
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1808
+ kind: z.ZodLiteral<"id">;
1809
+ id: z.ZodUUID;
1810
+ expectedVersion: z.ZodNumber;
1811
+ }, z.core.$strict>, z.ZodObject<{
1812
+ kind: z.ZodLiteral<"external">;
1813
+ namespace: z.ZodString;
1814
+ key: z.ZodString;
1815
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
1816
+ }, z.core.$strict>], "kind">;
1817
+ data: z.ZodObject<{
1818
+ price: z.ZodObject<{
1819
+ status: z.ZodLiteral<"confirmed">;
1820
+ amount: z.ZodString;
1821
+ basis: z.ZodLiteral<"operator">;
1822
+ }, z.core.$strict>;
1823
+ type: z.ZodLiteral<"menu">;
1824
+ name: z.ZodString;
1825
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1826
+ status: z.ZodLiteral<"transcribed">;
1827
+ text: z.ZodString;
1828
+ }, z.core.$strict>, z.ZodObject<{
1829
+ status: z.ZodLiteral<"proposed">;
1830
+ text: z.ZodString;
1831
+ }, z.core.$strict>], "status">>;
1832
+ category: z.ZodDiscriminatedUnion<[z.ZodObject<{
1833
+ kind: z.ZodLiteral<"id">;
1834
+ id: z.ZodUUID;
1835
+ expectedVersion: z.ZodNumber;
1836
+ }, z.core.$strict>, z.ZodObject<{
1837
+ kind: z.ZodLiteral<"ref">;
1838
+ ref: z.ZodString;
1839
+ }, z.core.$strict>], "kind">;
1840
+ available: z.ZodBoolean;
1841
+ images: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1842
+ kind: z.ZodLiteral<"existing">;
1843
+ assetId: z.ZodUUID;
1844
+ sha256: z.ZodString;
1845
+ }, z.core.$strict>, z.ZodObject<{
1846
+ kind: z.ZodLiteral<"staged">;
1847
+ stagingId: z.ZodUUID;
1848
+ sha256: z.ZodString;
1849
+ }, z.core.$strict>], "kind">>;
1850
+ extras: z.ZodObject<{
1851
+ confirmed: z.ZodLiteral<true>;
1852
+ groups: z.ZodArray<z.ZodObject<{
1853
+ name: z.ZodString;
1854
+ required: z.ZodBoolean;
1855
+ minSelections: z.ZodNumber;
1856
+ maxSelections: z.ZodNumber;
1857
+ order: z.ZodNumber;
1858
+ options: z.ZodArray<z.ZodObject<{
1859
+ name: z.ZodString;
1860
+ additionalPrice: z.ZodString;
1861
+ order: z.ZodNumber;
1862
+ }, z.core.$strict>>;
1863
+ }, z.core.$strict>>;
1864
+ }, z.core.$strict>;
1865
+ }, z.core.$strict>;
1866
+ }, z.core.$strict>], "kind">;
1867
+ diff: z.ZodDiscriminatedUnion<[z.ZodObject<{
1868
+ kind: z.ZodLiteral<"category">;
1869
+ ref: z.ZodString;
1870
+ before: z.ZodNullable<z.ZodObject<{
1871
+ id: z.ZodUUID;
1872
+ revision: z.ZodNumber;
1873
+ name: z.ZodString;
1874
+ description: z.ZodNullable<z.ZodString>;
1875
+ order: z.ZodNumber;
1876
+ }, z.core.$strict>>;
1877
+ after: z.ZodObject<{
1878
+ kind: z.ZodLiteral<"category.upsert">;
1879
+ ref: z.ZodString;
1880
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1881
+ kind: z.ZodLiteral<"id">;
1882
+ id: z.ZodUUID;
1883
+ expectedVersion: z.ZodNumber;
1884
+ }, z.core.$strict>, z.ZodObject<{
1885
+ kind: z.ZodLiteral<"external">;
1886
+ namespace: z.ZodString;
1887
+ key: z.ZodString;
1888
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
1889
+ }, z.core.$strict>], "kind">;
1890
+ data: z.ZodObject<{
1891
+ name: z.ZodString;
1892
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1893
+ status: z.ZodLiteral<"transcribed">;
1894
+ text: z.ZodString;
1895
+ }, z.core.$strict>, z.ZodObject<{
1896
+ status: z.ZodLiteral<"proposed">;
1897
+ text: z.ZodString;
1898
+ }, z.core.$strict>], "status">>;
1899
+ order: z.ZodNumber;
1900
+ }, z.core.$strict>;
1901
+ }, z.core.$strict>;
1902
+ publicEffect: z.ZodEnum<{
1903
+ none: "none";
1904
+ immediate_on_apply: "immediate_on_apply";
1905
+ }>;
1906
+ }, z.core.$strict>, z.ZodObject<{
1907
+ kind: z.ZodLiteral<"product">;
1908
+ ref: z.ZodString;
1909
+ before: z.ZodNullable<z.ZodObject<{
1910
+ id: z.ZodUUID;
1911
+ revision: z.ZodNumber;
1912
+ type: z.ZodLiteral<"menu">;
1913
+ name: z.ZodString;
1914
+ basePrice: z.ZodString;
1915
+ description: z.ZodNullable<z.ZodString>;
1916
+ categoryId: z.ZodUUID;
1917
+ available: z.ZodBoolean;
1918
+ publishedToMenu: z.ZodBoolean;
1919
+ isDraft: z.ZodBoolean;
1920
+ images: z.ZodArray<z.ZodObject<{
1921
+ assetId: z.ZodUUID;
1922
+ sha256: z.ZodString;
1923
+ }, z.core.$strict>>;
1924
+ primaryImageId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1925
+ extraGroups: z.ZodArray<z.ZodObject<{
1926
+ name: z.ZodString;
1927
+ required: z.ZodBoolean;
1928
+ minSelections: z.ZodNumber;
1929
+ maxSelections: z.ZodNumber;
1930
+ order: z.ZodNumber;
1931
+ options: z.ZodArray<z.ZodObject<{
1932
+ name: z.ZodString;
1933
+ additionalPrice: z.ZodString;
1934
+ order: z.ZodNumber;
1935
+ }, z.core.$strict>>;
1936
+ }, z.core.$strict>>;
1937
+ }, z.core.$strict>>;
1938
+ after: z.ZodObject<{
1939
+ kind: z.ZodLiteral<"product.upsert">;
1940
+ ref: z.ZodString;
1941
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1942
+ kind: z.ZodLiteral<"id">;
1943
+ id: z.ZodUUID;
1944
+ expectedVersion: z.ZodNumber;
1945
+ }, z.core.$strict>, z.ZodObject<{
1946
+ kind: z.ZodLiteral<"external">;
1947
+ namespace: z.ZodString;
1948
+ key: z.ZodString;
1949
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
1950
+ }, z.core.$strict>], "kind">;
1951
+ data: z.ZodObject<{
1952
+ price: z.ZodObject<{
1953
+ status: z.ZodLiteral<"confirmed">;
1954
+ amount: z.ZodString;
1955
+ basis: z.ZodLiteral<"operator">;
1956
+ }, z.core.$strict>;
1957
+ type: z.ZodLiteral<"menu">;
1958
+ name: z.ZodString;
1959
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1960
+ status: z.ZodLiteral<"transcribed">;
1961
+ text: z.ZodString;
1962
+ }, z.core.$strict>, z.ZodObject<{
1963
+ status: z.ZodLiteral<"proposed">;
1964
+ text: z.ZodString;
1965
+ }, z.core.$strict>], "status">>;
1966
+ category: z.ZodDiscriminatedUnion<[z.ZodObject<{
1967
+ kind: z.ZodLiteral<"id">;
1968
+ id: z.ZodUUID;
1969
+ expectedVersion: z.ZodNumber;
1970
+ }, z.core.$strict>, z.ZodObject<{
1971
+ kind: z.ZodLiteral<"ref">;
1972
+ ref: z.ZodString;
1973
+ }, z.core.$strict>], "kind">;
1974
+ available: z.ZodBoolean;
1975
+ images: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1976
+ kind: z.ZodLiteral<"existing">;
1977
+ assetId: z.ZodUUID;
1978
+ sha256: z.ZodString;
1979
+ }, z.core.$strict>, z.ZodObject<{
1980
+ kind: z.ZodLiteral<"staged">;
1981
+ stagingId: z.ZodUUID;
1982
+ sha256: z.ZodString;
1983
+ }, z.core.$strict>], "kind">>;
1984
+ extras: z.ZodObject<{
1985
+ confirmed: z.ZodLiteral<true>;
1986
+ groups: z.ZodArray<z.ZodObject<{
1987
+ name: z.ZodString;
1988
+ required: z.ZodBoolean;
1989
+ minSelections: z.ZodNumber;
1990
+ maxSelections: z.ZodNumber;
1991
+ order: z.ZodNumber;
1992
+ options: z.ZodArray<z.ZodObject<{
1993
+ name: z.ZodString;
1994
+ additionalPrice: z.ZodString;
1995
+ order: z.ZodNumber;
1996
+ }, z.core.$strict>>;
1997
+ }, z.core.$strict>>;
1998
+ }, z.core.$strict>;
1999
+ }, z.core.$strict>;
2000
+ }, z.core.$strict>;
2001
+ publicEffect: z.ZodEnum<{
2002
+ none: "none";
2003
+ immediate_on_apply: "immediate_on_apply";
2004
+ }>;
2005
+ }, z.core.$strict>, z.ZodObject<{
2006
+ kind: z.ZodLiteral<"publication">;
2007
+ ref: z.ZodString;
2008
+ productId: z.ZodUUID;
2009
+ before: z.ZodBoolean;
2010
+ after: z.ZodBoolean;
2011
+ publicEffect: z.ZodLiteral<"immediate_on_apply">;
2012
+ }, z.core.$strict>], "kind">;
2013
+ }, z.core.$strict>, z.ZodObject<{
2014
+ ref: z.ZodString;
2015
+ classification: z.ZodLiteral<"update">;
2016
+ change: z.ZodDiscriminatedUnion<[z.ZodObject<{
2017
+ kind: z.ZodLiteral<"category.upsert">;
2018
+ ref: z.ZodString;
2019
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
2020
+ kind: z.ZodLiteral<"id">;
2021
+ id: z.ZodUUID;
2022
+ expectedVersion: z.ZodNumber;
2023
+ }, z.core.$strict>, z.ZodObject<{
2024
+ kind: z.ZodLiteral<"external">;
2025
+ namespace: z.ZodString;
2026
+ key: z.ZodString;
2027
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
2028
+ }, z.core.$strict>], "kind">;
2029
+ data: z.ZodObject<{
2030
+ name: z.ZodString;
2031
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2032
+ status: z.ZodLiteral<"transcribed">;
2033
+ text: z.ZodString;
2034
+ }, z.core.$strict>, z.ZodObject<{
2035
+ status: z.ZodLiteral<"proposed">;
2036
+ text: z.ZodString;
2037
+ }, z.core.$strict>], "status">>;
2038
+ order: z.ZodNumber;
2039
+ }, z.core.$strict>;
2040
+ }, z.core.$strict>, z.ZodObject<{
2041
+ kind: z.ZodLiteral<"product.upsert">;
2042
+ ref: z.ZodString;
2043
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
2044
+ kind: z.ZodLiteral<"id">;
2045
+ id: z.ZodUUID;
2046
+ expectedVersion: z.ZodNumber;
2047
+ }, z.core.$strict>, z.ZodObject<{
2048
+ kind: z.ZodLiteral<"external">;
2049
+ namespace: z.ZodString;
2050
+ key: z.ZodString;
2051
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
2052
+ }, z.core.$strict>], "kind">;
2053
+ data: z.ZodObject<{
2054
+ price: z.ZodObject<{
2055
+ status: z.ZodLiteral<"confirmed">;
2056
+ amount: z.ZodString;
2057
+ basis: z.ZodLiteral<"operator">;
2058
+ }, z.core.$strict>;
2059
+ type: z.ZodLiteral<"menu">;
2060
+ name: z.ZodString;
2061
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2062
+ status: z.ZodLiteral<"transcribed">;
2063
+ text: z.ZodString;
2064
+ }, z.core.$strict>, z.ZodObject<{
2065
+ status: z.ZodLiteral<"proposed">;
2066
+ text: z.ZodString;
2067
+ }, z.core.$strict>], "status">>;
2068
+ category: z.ZodDiscriminatedUnion<[z.ZodObject<{
2069
+ kind: z.ZodLiteral<"id">;
2070
+ id: z.ZodUUID;
2071
+ expectedVersion: z.ZodNumber;
2072
+ }, z.core.$strict>, z.ZodObject<{
2073
+ kind: z.ZodLiteral<"ref">;
2074
+ ref: z.ZodString;
2075
+ }, z.core.$strict>], "kind">;
2076
+ available: z.ZodBoolean;
2077
+ images: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2078
+ kind: z.ZodLiteral<"existing">;
2079
+ assetId: z.ZodUUID;
2080
+ sha256: z.ZodString;
2081
+ }, z.core.$strict>, z.ZodObject<{
2082
+ kind: z.ZodLiteral<"staged">;
2083
+ stagingId: z.ZodUUID;
2084
+ sha256: z.ZodString;
2085
+ }, z.core.$strict>], "kind">>;
2086
+ extras: z.ZodObject<{
2087
+ confirmed: z.ZodLiteral<true>;
2088
+ groups: z.ZodArray<z.ZodObject<{
2089
+ name: z.ZodString;
2090
+ required: z.ZodBoolean;
2091
+ minSelections: z.ZodNumber;
2092
+ maxSelections: z.ZodNumber;
2093
+ order: z.ZodNumber;
2094
+ options: z.ZodArray<z.ZodObject<{
2095
+ name: z.ZodString;
2096
+ additionalPrice: z.ZodString;
2097
+ order: z.ZodNumber;
2098
+ }, z.core.$strict>>;
2099
+ }, z.core.$strict>>;
2100
+ }, z.core.$strict>;
2101
+ }, z.core.$strict>;
2102
+ }, z.core.$strict>], "kind">;
2103
+ diff: z.ZodDiscriminatedUnion<[z.ZodObject<{
2104
+ kind: z.ZodLiteral<"category">;
2105
+ ref: z.ZodString;
2106
+ before: z.ZodNullable<z.ZodObject<{
2107
+ id: z.ZodUUID;
2108
+ revision: z.ZodNumber;
2109
+ name: z.ZodString;
2110
+ description: z.ZodNullable<z.ZodString>;
2111
+ order: z.ZodNumber;
2112
+ }, z.core.$strict>>;
2113
+ after: z.ZodObject<{
2114
+ kind: z.ZodLiteral<"category.upsert">;
2115
+ ref: z.ZodString;
2116
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
2117
+ kind: z.ZodLiteral<"id">;
2118
+ id: z.ZodUUID;
2119
+ expectedVersion: z.ZodNumber;
2120
+ }, z.core.$strict>, z.ZodObject<{
2121
+ kind: z.ZodLiteral<"external">;
2122
+ namespace: z.ZodString;
2123
+ key: z.ZodString;
2124
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
2125
+ }, z.core.$strict>], "kind">;
2126
+ data: z.ZodObject<{
2127
+ name: z.ZodString;
2128
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2129
+ status: z.ZodLiteral<"transcribed">;
2130
+ text: z.ZodString;
2131
+ }, z.core.$strict>, z.ZodObject<{
2132
+ status: z.ZodLiteral<"proposed">;
2133
+ text: z.ZodString;
2134
+ }, z.core.$strict>], "status">>;
2135
+ order: z.ZodNumber;
2136
+ }, z.core.$strict>;
2137
+ }, z.core.$strict>;
2138
+ publicEffect: z.ZodEnum<{
2139
+ none: "none";
2140
+ immediate_on_apply: "immediate_on_apply";
2141
+ }>;
2142
+ }, z.core.$strict>, z.ZodObject<{
2143
+ kind: z.ZodLiteral<"product">;
2144
+ ref: z.ZodString;
2145
+ before: z.ZodNullable<z.ZodObject<{
2146
+ id: z.ZodUUID;
2147
+ revision: z.ZodNumber;
2148
+ type: z.ZodLiteral<"menu">;
2149
+ name: z.ZodString;
2150
+ basePrice: z.ZodString;
2151
+ description: z.ZodNullable<z.ZodString>;
2152
+ categoryId: z.ZodUUID;
2153
+ available: z.ZodBoolean;
2154
+ publishedToMenu: z.ZodBoolean;
2155
+ isDraft: z.ZodBoolean;
2156
+ images: z.ZodArray<z.ZodObject<{
2157
+ assetId: z.ZodUUID;
2158
+ sha256: z.ZodString;
2159
+ }, z.core.$strict>>;
2160
+ primaryImageId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
2161
+ extraGroups: z.ZodArray<z.ZodObject<{
2162
+ name: z.ZodString;
2163
+ required: z.ZodBoolean;
2164
+ minSelections: z.ZodNumber;
2165
+ maxSelections: z.ZodNumber;
2166
+ order: z.ZodNumber;
2167
+ options: z.ZodArray<z.ZodObject<{
2168
+ name: z.ZodString;
2169
+ additionalPrice: z.ZodString;
2170
+ order: z.ZodNumber;
2171
+ }, z.core.$strict>>;
2172
+ }, z.core.$strict>>;
2173
+ }, z.core.$strict>>;
2174
+ after: z.ZodObject<{
2175
+ kind: z.ZodLiteral<"product.upsert">;
2176
+ ref: z.ZodString;
2177
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
2178
+ kind: z.ZodLiteral<"id">;
2179
+ id: z.ZodUUID;
2180
+ expectedVersion: z.ZodNumber;
2181
+ }, z.core.$strict>, z.ZodObject<{
2182
+ kind: z.ZodLiteral<"external">;
2183
+ namespace: z.ZodString;
2184
+ key: z.ZodString;
2185
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
2186
+ }, z.core.$strict>], "kind">;
2187
+ data: z.ZodObject<{
2188
+ price: z.ZodObject<{
2189
+ status: z.ZodLiteral<"confirmed">;
2190
+ amount: z.ZodString;
2191
+ basis: z.ZodLiteral<"operator">;
2192
+ }, z.core.$strict>;
2193
+ type: z.ZodLiteral<"menu">;
2194
+ name: z.ZodString;
2195
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2196
+ status: z.ZodLiteral<"transcribed">;
2197
+ text: z.ZodString;
2198
+ }, z.core.$strict>, z.ZodObject<{
2199
+ status: z.ZodLiteral<"proposed">;
2200
+ text: z.ZodString;
2201
+ }, z.core.$strict>], "status">>;
2202
+ category: z.ZodDiscriminatedUnion<[z.ZodObject<{
2203
+ kind: z.ZodLiteral<"id">;
2204
+ id: z.ZodUUID;
2205
+ expectedVersion: z.ZodNumber;
2206
+ }, z.core.$strict>, z.ZodObject<{
2207
+ kind: z.ZodLiteral<"ref">;
2208
+ ref: z.ZodString;
2209
+ }, z.core.$strict>], "kind">;
2210
+ available: z.ZodBoolean;
2211
+ images: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2212
+ kind: z.ZodLiteral<"existing">;
2213
+ assetId: z.ZodUUID;
2214
+ sha256: z.ZodString;
2215
+ }, z.core.$strict>, z.ZodObject<{
2216
+ kind: z.ZodLiteral<"staged">;
2217
+ stagingId: z.ZodUUID;
2218
+ sha256: z.ZodString;
2219
+ }, z.core.$strict>], "kind">>;
2220
+ extras: z.ZodObject<{
2221
+ confirmed: z.ZodLiteral<true>;
2222
+ groups: z.ZodArray<z.ZodObject<{
2223
+ name: z.ZodString;
2224
+ required: z.ZodBoolean;
2225
+ minSelections: z.ZodNumber;
2226
+ maxSelections: z.ZodNumber;
2227
+ order: z.ZodNumber;
2228
+ options: z.ZodArray<z.ZodObject<{
2229
+ name: z.ZodString;
2230
+ additionalPrice: z.ZodString;
2231
+ order: z.ZodNumber;
2232
+ }, z.core.$strict>>;
2233
+ }, z.core.$strict>>;
2234
+ }, z.core.$strict>;
2235
+ }, z.core.$strict>;
2236
+ }, z.core.$strict>;
2237
+ publicEffect: z.ZodEnum<{
2238
+ none: "none";
2239
+ immediate_on_apply: "immediate_on_apply";
2240
+ }>;
2241
+ }, z.core.$strict>, z.ZodObject<{
2242
+ kind: z.ZodLiteral<"publication">;
2243
+ ref: z.ZodString;
2244
+ productId: z.ZodUUID;
2245
+ before: z.ZodBoolean;
2246
+ after: z.ZodBoolean;
2247
+ publicEffect: z.ZodLiteral<"immediate_on_apply">;
2248
+ }, z.core.$strict>], "kind">;
2249
+ }, z.core.$strict>, z.ZodObject<{
2250
+ ref: z.ZodString;
2251
+ classification: z.ZodLiteral<"skip">;
2252
+ resource: z.ZodObject<{
2253
+ kind: z.ZodEnum<{
2254
+ product: "product";
2255
+ category: "category";
2256
+ }>;
2257
+ id: z.ZodUUID;
2258
+ revision: z.ZodNumber;
2259
+ }, z.core.$strict>;
2260
+ }, z.core.$strict>, z.ZodObject<{
2261
+ ref: z.ZodString;
2262
+ classification: z.ZodLiteral<"conflict">;
2263
+ issues: z.ZodArray<z.ZodObject<{
2264
+ code: z.ZodEnum<{
2265
+ INVALID_REQUEST: "INVALID_REQUEST";
2266
+ UNSUPPORTED_VERSION: "UNSUPPORTED_VERSION";
2267
+ CREDENTIAL_REQUIRED: "CREDENTIAL_REQUIRED";
2268
+ CREDENTIAL_INVALID: "CREDENTIAL_INVALID";
2269
+ CREDENTIAL_EXPIRED: "CREDENTIAL_EXPIRED";
2270
+ CREDENTIAL_REVOKED: "CREDENTIAL_REVOKED";
2271
+ CREDENTIAL_MIXED: "CREDENTIAL_MIXED";
2272
+ CREDENTIAL_WRONG_FAMILY: "CREDENTIAL_WRONG_FAMILY";
2273
+ OWNER_REQUIRED: "OWNER_REQUIRED";
2274
+ ORIGIN_REJECTED: "ORIGIN_REJECTED";
2275
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
2276
+ APPROVAL_REJECTED: "APPROVAL_REJECTED";
2277
+ APPROVAL_EXPIRED: "APPROVAL_EXPIRED";
2278
+ APPROVAL_MISMATCH: "APPROVAL_MISMATCH";
2279
+ SCOPE_REQUIRED: "SCOPE_REQUIRED";
2280
+ MODE_READ_ONLY: "MODE_READ_ONLY";
2281
+ API_ACCESS_DISABLED: "API_ACCESS_DISABLED";
2282
+ RESTAURANT_NOT_APPROVED: "RESTAURANT_NOT_APPROVED";
2283
+ NOT_FOUND: "NOT_FOUND";
2284
+ VERSION_CONFLICT: "VERSION_CONFLICT";
2285
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
2286
+ INVALID_PRICE: "INVALID_PRICE";
2287
+ UNCONFIRMED_DATA: "UNCONFIRMED_DATA";
2288
+ REFERENCE_CONFLICT: "REFERENCE_CONFLICT";
2289
+ MEDIA_INVALID: "MEDIA_INVALID";
2290
+ MEDIA_EXPIRED: "MEDIA_EXPIRED";
2291
+ QUOTA_EXCEEDED: "QUOTA_EXCEEDED";
2292
+ RATE_LIMITED: "RATE_LIMITED";
2293
+ PAIRING_PENDING: "PAIRING_PENDING";
2294
+ PAIRING_DENIED: "PAIRING_DENIED";
2295
+ PAIRING_EXPIRED: "PAIRING_EXPIRED";
2296
+ PAIRING_CONSUMED: "PAIRING_CONSUMED";
2297
+ OPERATION_TERMINAL: "OPERATION_TERMINAL";
2298
+ APPLY_WINDOW_EXPIRED: "APPLY_WINDOW_EXPIRED";
2299
+ DEPENDENCY_FAILED: "DEPENDENCY_FAILED";
2300
+ TEMPORARY_UNAVAILABLE: "TEMPORARY_UNAVAILABLE";
2301
+ INTERNAL_ERROR: "INTERNAL_ERROR";
2302
+ }>;
2303
+ message: z.ZodString;
2304
+ retryable: z.ZodBoolean;
2305
+ }, z.core.$strict>>;
2306
+ }, z.core.$strict>, z.ZodObject<{
2307
+ ref: z.ZodString;
2308
+ classification: z.ZodLiteral<"invalid">;
2309
+ issues: z.ZodArray<z.ZodObject<{
2310
+ code: z.ZodEnum<{
2311
+ INVALID_REQUEST: "INVALID_REQUEST";
2312
+ UNSUPPORTED_VERSION: "UNSUPPORTED_VERSION";
2313
+ CREDENTIAL_REQUIRED: "CREDENTIAL_REQUIRED";
2314
+ CREDENTIAL_INVALID: "CREDENTIAL_INVALID";
2315
+ CREDENTIAL_EXPIRED: "CREDENTIAL_EXPIRED";
2316
+ CREDENTIAL_REVOKED: "CREDENTIAL_REVOKED";
2317
+ CREDENTIAL_MIXED: "CREDENTIAL_MIXED";
2318
+ CREDENTIAL_WRONG_FAMILY: "CREDENTIAL_WRONG_FAMILY";
2319
+ OWNER_REQUIRED: "OWNER_REQUIRED";
2320
+ ORIGIN_REJECTED: "ORIGIN_REJECTED";
2321
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
2322
+ APPROVAL_REJECTED: "APPROVAL_REJECTED";
2323
+ APPROVAL_EXPIRED: "APPROVAL_EXPIRED";
2324
+ APPROVAL_MISMATCH: "APPROVAL_MISMATCH";
2325
+ SCOPE_REQUIRED: "SCOPE_REQUIRED";
2326
+ MODE_READ_ONLY: "MODE_READ_ONLY";
2327
+ API_ACCESS_DISABLED: "API_ACCESS_DISABLED";
2328
+ RESTAURANT_NOT_APPROVED: "RESTAURANT_NOT_APPROVED";
2329
+ NOT_FOUND: "NOT_FOUND";
2330
+ VERSION_CONFLICT: "VERSION_CONFLICT";
2331
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
2332
+ INVALID_PRICE: "INVALID_PRICE";
2333
+ UNCONFIRMED_DATA: "UNCONFIRMED_DATA";
2334
+ REFERENCE_CONFLICT: "REFERENCE_CONFLICT";
2335
+ MEDIA_INVALID: "MEDIA_INVALID";
2336
+ MEDIA_EXPIRED: "MEDIA_EXPIRED";
2337
+ QUOTA_EXCEEDED: "QUOTA_EXCEEDED";
2338
+ RATE_LIMITED: "RATE_LIMITED";
2339
+ PAIRING_PENDING: "PAIRING_PENDING";
2340
+ PAIRING_DENIED: "PAIRING_DENIED";
2341
+ PAIRING_EXPIRED: "PAIRING_EXPIRED";
2342
+ PAIRING_CONSUMED: "PAIRING_CONSUMED";
2343
+ OPERATION_TERMINAL: "OPERATION_TERMINAL";
2344
+ APPLY_WINDOW_EXPIRED: "APPLY_WINDOW_EXPIRED";
2345
+ DEPENDENCY_FAILED: "DEPENDENCY_FAILED";
2346
+ TEMPORARY_UNAVAILABLE: "TEMPORARY_UNAVAILABLE";
2347
+ INTERNAL_ERROR: "INTERNAL_ERROR";
2348
+ }>;
2349
+ message: z.ZodString;
2350
+ retryable: z.ZodBoolean;
2351
+ }, z.core.$strict>>;
2352
+ }, z.core.$strict>], "classification">;
2353
+ declare const elenaAgentImportPreviewSchema: z.ZodObject<{
2354
+ version: z.ZodLiteral<"1">;
2355
+ importId: z.ZodUUID;
2356
+ planHash: z.ZodString;
2357
+ createdAt: z.ZodISODateTime;
2358
+ expiresAt: z.ZodISODateTime;
2359
+ state: z.ZodEnum<{
2360
+ expired: "expired";
2361
+ ready: "ready";
2362
+ }>;
2363
+ currency: z.ZodLiteral<"PEN">;
2364
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2365
+ ref: z.ZodString;
2366
+ classification: z.ZodLiteral<"create">;
2367
+ change: z.ZodDiscriminatedUnion<[z.ZodObject<{
2368
+ kind: z.ZodLiteral<"category.upsert">;
2369
+ ref: z.ZodString;
2370
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
2371
+ kind: z.ZodLiteral<"id">;
2372
+ id: z.ZodUUID;
2373
+ expectedVersion: z.ZodNumber;
2374
+ }, z.core.$strict>, z.ZodObject<{
2375
+ kind: z.ZodLiteral<"external">;
2376
+ namespace: z.ZodString;
2377
+ key: z.ZodString;
2378
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
2379
+ }, z.core.$strict>], "kind">;
2380
+ data: z.ZodObject<{
2381
+ name: z.ZodString;
2382
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2383
+ status: z.ZodLiteral<"transcribed">;
2384
+ text: z.ZodString;
2385
+ }, z.core.$strict>, z.ZodObject<{
2386
+ status: z.ZodLiteral<"proposed">;
2387
+ text: z.ZodString;
2388
+ }, z.core.$strict>], "status">>;
2389
+ order: z.ZodNumber;
2390
+ }, z.core.$strict>;
2391
+ }, z.core.$strict>, z.ZodObject<{
2392
+ kind: z.ZodLiteral<"product.upsert">;
2393
+ ref: z.ZodString;
2394
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
2395
+ kind: z.ZodLiteral<"id">;
2396
+ id: z.ZodUUID;
2397
+ expectedVersion: z.ZodNumber;
2398
+ }, z.core.$strict>, z.ZodObject<{
2399
+ kind: z.ZodLiteral<"external">;
2400
+ namespace: z.ZodString;
2401
+ key: z.ZodString;
2402
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
2403
+ }, z.core.$strict>], "kind">;
2404
+ data: z.ZodObject<{
2405
+ price: z.ZodObject<{
2406
+ status: z.ZodLiteral<"confirmed">;
2407
+ amount: z.ZodString;
2408
+ basis: z.ZodLiteral<"operator">;
2409
+ }, z.core.$strict>;
2410
+ type: z.ZodLiteral<"menu">;
2411
+ name: z.ZodString;
2412
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2413
+ status: z.ZodLiteral<"transcribed">;
2414
+ text: z.ZodString;
2415
+ }, z.core.$strict>, z.ZodObject<{
2416
+ status: z.ZodLiteral<"proposed">;
2417
+ text: z.ZodString;
2418
+ }, z.core.$strict>], "status">>;
2419
+ category: z.ZodDiscriminatedUnion<[z.ZodObject<{
2420
+ kind: z.ZodLiteral<"id">;
2421
+ id: z.ZodUUID;
2422
+ expectedVersion: z.ZodNumber;
2423
+ }, z.core.$strict>, z.ZodObject<{
2424
+ kind: z.ZodLiteral<"ref">;
2425
+ ref: z.ZodString;
2426
+ }, z.core.$strict>], "kind">;
2427
+ available: z.ZodBoolean;
2428
+ images: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2429
+ kind: z.ZodLiteral<"existing">;
2430
+ assetId: z.ZodUUID;
2431
+ sha256: z.ZodString;
2432
+ }, z.core.$strict>, z.ZodObject<{
2433
+ kind: z.ZodLiteral<"staged">;
2434
+ stagingId: z.ZodUUID;
2435
+ sha256: z.ZodString;
2436
+ }, z.core.$strict>], "kind">>;
2437
+ extras: z.ZodObject<{
2438
+ confirmed: z.ZodLiteral<true>;
2439
+ groups: z.ZodArray<z.ZodObject<{
2440
+ name: z.ZodString;
2441
+ required: z.ZodBoolean;
2442
+ minSelections: z.ZodNumber;
2443
+ maxSelections: z.ZodNumber;
2444
+ order: z.ZodNumber;
2445
+ options: z.ZodArray<z.ZodObject<{
2446
+ name: z.ZodString;
2447
+ additionalPrice: z.ZodString;
2448
+ order: z.ZodNumber;
2449
+ }, z.core.$strict>>;
2450
+ }, z.core.$strict>>;
2451
+ }, z.core.$strict>;
2452
+ }, z.core.$strict>;
2453
+ }, z.core.$strict>], "kind">;
2454
+ diff: z.ZodDiscriminatedUnion<[z.ZodObject<{
2455
+ kind: z.ZodLiteral<"category">;
2456
+ ref: z.ZodString;
2457
+ before: z.ZodNullable<z.ZodObject<{
2458
+ id: z.ZodUUID;
2459
+ revision: z.ZodNumber;
2460
+ name: z.ZodString;
2461
+ description: z.ZodNullable<z.ZodString>;
2462
+ order: z.ZodNumber;
2463
+ }, z.core.$strict>>;
2464
+ after: z.ZodObject<{
2465
+ kind: z.ZodLiteral<"category.upsert">;
2466
+ ref: z.ZodString;
2467
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
2468
+ kind: z.ZodLiteral<"id">;
2469
+ id: z.ZodUUID;
2470
+ expectedVersion: z.ZodNumber;
2471
+ }, z.core.$strict>, z.ZodObject<{
2472
+ kind: z.ZodLiteral<"external">;
2473
+ namespace: z.ZodString;
2474
+ key: z.ZodString;
2475
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
2476
+ }, z.core.$strict>], "kind">;
2477
+ data: z.ZodObject<{
2478
+ name: z.ZodString;
2479
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2480
+ status: z.ZodLiteral<"transcribed">;
2481
+ text: z.ZodString;
2482
+ }, z.core.$strict>, z.ZodObject<{
2483
+ status: z.ZodLiteral<"proposed">;
2484
+ text: z.ZodString;
2485
+ }, z.core.$strict>], "status">>;
2486
+ order: z.ZodNumber;
2487
+ }, z.core.$strict>;
2488
+ }, z.core.$strict>;
2489
+ publicEffect: z.ZodEnum<{
2490
+ none: "none";
2491
+ immediate_on_apply: "immediate_on_apply";
2492
+ }>;
2493
+ }, z.core.$strict>, z.ZodObject<{
2494
+ kind: z.ZodLiteral<"product">;
2495
+ ref: z.ZodString;
2496
+ before: z.ZodNullable<z.ZodObject<{
2497
+ id: z.ZodUUID;
2498
+ revision: z.ZodNumber;
2499
+ type: z.ZodLiteral<"menu">;
2500
+ name: z.ZodString;
2501
+ basePrice: z.ZodString;
2502
+ description: z.ZodNullable<z.ZodString>;
2503
+ categoryId: z.ZodUUID;
2504
+ available: z.ZodBoolean;
2505
+ publishedToMenu: z.ZodBoolean;
2506
+ isDraft: z.ZodBoolean;
2507
+ images: z.ZodArray<z.ZodObject<{
2508
+ assetId: z.ZodUUID;
2509
+ sha256: z.ZodString;
2510
+ }, z.core.$strict>>;
2511
+ primaryImageId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
2512
+ extraGroups: z.ZodArray<z.ZodObject<{
2513
+ name: z.ZodString;
2514
+ required: z.ZodBoolean;
2515
+ minSelections: z.ZodNumber;
2516
+ maxSelections: z.ZodNumber;
2517
+ order: z.ZodNumber;
2518
+ options: z.ZodArray<z.ZodObject<{
2519
+ name: z.ZodString;
2520
+ additionalPrice: z.ZodString;
2521
+ order: z.ZodNumber;
2522
+ }, z.core.$strict>>;
2523
+ }, z.core.$strict>>;
2524
+ }, z.core.$strict>>;
2525
+ after: z.ZodObject<{
2526
+ kind: z.ZodLiteral<"product.upsert">;
2527
+ ref: z.ZodString;
2528
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
2529
+ kind: z.ZodLiteral<"id">;
2530
+ id: z.ZodUUID;
2531
+ expectedVersion: z.ZodNumber;
2532
+ }, z.core.$strict>, z.ZodObject<{
2533
+ kind: z.ZodLiteral<"external">;
2534
+ namespace: z.ZodString;
2535
+ key: z.ZodString;
2536
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
2537
+ }, z.core.$strict>], "kind">;
2538
+ data: z.ZodObject<{
2539
+ price: z.ZodObject<{
2540
+ status: z.ZodLiteral<"confirmed">;
2541
+ amount: z.ZodString;
2542
+ basis: z.ZodLiteral<"operator">;
2543
+ }, z.core.$strict>;
2544
+ type: z.ZodLiteral<"menu">;
2545
+ name: z.ZodString;
2546
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2547
+ status: z.ZodLiteral<"transcribed">;
2548
+ text: z.ZodString;
2549
+ }, z.core.$strict>, z.ZodObject<{
2550
+ status: z.ZodLiteral<"proposed">;
2551
+ text: z.ZodString;
2552
+ }, z.core.$strict>], "status">>;
2553
+ category: z.ZodDiscriminatedUnion<[z.ZodObject<{
2554
+ kind: z.ZodLiteral<"id">;
2555
+ id: z.ZodUUID;
2556
+ expectedVersion: z.ZodNumber;
2557
+ }, z.core.$strict>, z.ZodObject<{
2558
+ kind: z.ZodLiteral<"ref">;
2559
+ ref: z.ZodString;
2560
+ }, z.core.$strict>], "kind">;
2561
+ available: z.ZodBoolean;
2562
+ images: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2563
+ kind: z.ZodLiteral<"existing">;
2564
+ assetId: z.ZodUUID;
2565
+ sha256: z.ZodString;
2566
+ }, z.core.$strict>, z.ZodObject<{
2567
+ kind: z.ZodLiteral<"staged">;
2568
+ stagingId: z.ZodUUID;
2569
+ sha256: z.ZodString;
2570
+ }, z.core.$strict>], "kind">>;
2571
+ extras: z.ZodObject<{
2572
+ confirmed: z.ZodLiteral<true>;
2573
+ groups: z.ZodArray<z.ZodObject<{
2574
+ name: z.ZodString;
2575
+ required: z.ZodBoolean;
2576
+ minSelections: z.ZodNumber;
2577
+ maxSelections: z.ZodNumber;
2578
+ order: z.ZodNumber;
2579
+ options: z.ZodArray<z.ZodObject<{
2580
+ name: z.ZodString;
2581
+ additionalPrice: z.ZodString;
2582
+ order: z.ZodNumber;
2583
+ }, z.core.$strict>>;
2584
+ }, z.core.$strict>>;
2585
+ }, z.core.$strict>;
2586
+ }, z.core.$strict>;
2587
+ }, z.core.$strict>;
2588
+ publicEffect: z.ZodEnum<{
2589
+ none: "none";
2590
+ immediate_on_apply: "immediate_on_apply";
2591
+ }>;
2592
+ }, z.core.$strict>, z.ZodObject<{
2593
+ kind: z.ZodLiteral<"publication">;
2594
+ ref: z.ZodString;
2595
+ productId: z.ZodUUID;
2596
+ before: z.ZodBoolean;
2597
+ after: z.ZodBoolean;
2598
+ publicEffect: z.ZodLiteral<"immediate_on_apply">;
2599
+ }, z.core.$strict>], "kind">;
2600
+ }, z.core.$strict>, z.ZodObject<{
2601
+ ref: z.ZodString;
2602
+ classification: z.ZodLiteral<"update">;
2603
+ change: z.ZodDiscriminatedUnion<[z.ZodObject<{
2604
+ kind: z.ZodLiteral<"category.upsert">;
2605
+ ref: z.ZodString;
2606
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
2607
+ kind: z.ZodLiteral<"id">;
2608
+ id: z.ZodUUID;
2609
+ expectedVersion: z.ZodNumber;
2610
+ }, z.core.$strict>, z.ZodObject<{
2611
+ kind: z.ZodLiteral<"external">;
2612
+ namespace: z.ZodString;
2613
+ key: z.ZodString;
2614
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
2615
+ }, z.core.$strict>], "kind">;
2616
+ data: z.ZodObject<{
2617
+ name: z.ZodString;
2618
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2619
+ status: z.ZodLiteral<"transcribed">;
2620
+ text: z.ZodString;
2621
+ }, z.core.$strict>, z.ZodObject<{
2622
+ status: z.ZodLiteral<"proposed">;
2623
+ text: z.ZodString;
2624
+ }, z.core.$strict>], "status">>;
2625
+ order: z.ZodNumber;
2626
+ }, z.core.$strict>;
2627
+ }, z.core.$strict>, z.ZodObject<{
2628
+ kind: z.ZodLiteral<"product.upsert">;
2629
+ ref: z.ZodString;
2630
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
2631
+ kind: z.ZodLiteral<"id">;
2632
+ id: z.ZodUUID;
2633
+ expectedVersion: z.ZodNumber;
2634
+ }, z.core.$strict>, z.ZodObject<{
2635
+ kind: z.ZodLiteral<"external">;
2636
+ namespace: z.ZodString;
2637
+ key: z.ZodString;
2638
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
2639
+ }, z.core.$strict>], "kind">;
2640
+ data: z.ZodObject<{
2641
+ price: z.ZodObject<{
2642
+ status: z.ZodLiteral<"confirmed">;
2643
+ amount: z.ZodString;
2644
+ basis: z.ZodLiteral<"operator">;
2645
+ }, z.core.$strict>;
2646
+ type: z.ZodLiteral<"menu">;
2647
+ name: z.ZodString;
2648
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2649
+ status: z.ZodLiteral<"transcribed">;
2650
+ text: z.ZodString;
2651
+ }, z.core.$strict>, z.ZodObject<{
2652
+ status: z.ZodLiteral<"proposed">;
2653
+ text: z.ZodString;
2654
+ }, z.core.$strict>], "status">>;
2655
+ category: z.ZodDiscriminatedUnion<[z.ZodObject<{
2656
+ kind: z.ZodLiteral<"id">;
2657
+ id: z.ZodUUID;
2658
+ expectedVersion: z.ZodNumber;
2659
+ }, z.core.$strict>, z.ZodObject<{
2660
+ kind: z.ZodLiteral<"ref">;
2661
+ ref: z.ZodString;
2662
+ }, z.core.$strict>], "kind">;
2663
+ available: z.ZodBoolean;
2664
+ images: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2665
+ kind: z.ZodLiteral<"existing">;
2666
+ assetId: z.ZodUUID;
2667
+ sha256: z.ZodString;
2668
+ }, z.core.$strict>, z.ZodObject<{
2669
+ kind: z.ZodLiteral<"staged">;
2670
+ stagingId: z.ZodUUID;
2671
+ sha256: z.ZodString;
2672
+ }, z.core.$strict>], "kind">>;
2673
+ extras: z.ZodObject<{
2674
+ confirmed: z.ZodLiteral<true>;
2675
+ groups: z.ZodArray<z.ZodObject<{
2676
+ name: z.ZodString;
2677
+ required: z.ZodBoolean;
2678
+ minSelections: z.ZodNumber;
2679
+ maxSelections: z.ZodNumber;
2680
+ order: z.ZodNumber;
2681
+ options: z.ZodArray<z.ZodObject<{
2682
+ name: z.ZodString;
2683
+ additionalPrice: z.ZodString;
2684
+ order: z.ZodNumber;
2685
+ }, z.core.$strict>>;
2686
+ }, z.core.$strict>>;
2687
+ }, z.core.$strict>;
2688
+ }, z.core.$strict>;
2689
+ }, z.core.$strict>], "kind">;
2690
+ diff: z.ZodDiscriminatedUnion<[z.ZodObject<{
2691
+ kind: z.ZodLiteral<"category">;
2692
+ ref: z.ZodString;
2693
+ before: z.ZodNullable<z.ZodObject<{
2694
+ id: z.ZodUUID;
2695
+ revision: z.ZodNumber;
2696
+ name: z.ZodString;
2697
+ description: z.ZodNullable<z.ZodString>;
2698
+ order: z.ZodNumber;
2699
+ }, z.core.$strict>>;
2700
+ after: z.ZodObject<{
2701
+ kind: z.ZodLiteral<"category.upsert">;
2702
+ ref: z.ZodString;
2703
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
2704
+ kind: z.ZodLiteral<"id">;
2705
+ id: z.ZodUUID;
2706
+ expectedVersion: z.ZodNumber;
2707
+ }, z.core.$strict>, z.ZodObject<{
2708
+ kind: z.ZodLiteral<"external">;
2709
+ namespace: z.ZodString;
2710
+ key: z.ZodString;
2711
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
2712
+ }, z.core.$strict>], "kind">;
2713
+ data: z.ZodObject<{
2714
+ name: z.ZodString;
2715
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2716
+ status: z.ZodLiteral<"transcribed">;
2717
+ text: z.ZodString;
2718
+ }, z.core.$strict>, z.ZodObject<{
2719
+ status: z.ZodLiteral<"proposed">;
2720
+ text: z.ZodString;
2721
+ }, z.core.$strict>], "status">>;
2722
+ order: z.ZodNumber;
2723
+ }, z.core.$strict>;
2724
+ }, z.core.$strict>;
2725
+ publicEffect: z.ZodEnum<{
2726
+ none: "none";
2727
+ immediate_on_apply: "immediate_on_apply";
2728
+ }>;
2729
+ }, z.core.$strict>, z.ZodObject<{
2730
+ kind: z.ZodLiteral<"product">;
2731
+ ref: z.ZodString;
2732
+ before: z.ZodNullable<z.ZodObject<{
2733
+ id: z.ZodUUID;
2734
+ revision: z.ZodNumber;
2735
+ type: z.ZodLiteral<"menu">;
2736
+ name: z.ZodString;
2737
+ basePrice: z.ZodString;
2738
+ description: z.ZodNullable<z.ZodString>;
2739
+ categoryId: z.ZodUUID;
2740
+ available: z.ZodBoolean;
2741
+ publishedToMenu: z.ZodBoolean;
2742
+ isDraft: z.ZodBoolean;
2743
+ images: z.ZodArray<z.ZodObject<{
2744
+ assetId: z.ZodUUID;
2745
+ sha256: z.ZodString;
2746
+ }, z.core.$strict>>;
2747
+ primaryImageId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
2748
+ extraGroups: z.ZodArray<z.ZodObject<{
2749
+ name: z.ZodString;
2750
+ required: z.ZodBoolean;
2751
+ minSelections: z.ZodNumber;
2752
+ maxSelections: z.ZodNumber;
2753
+ order: z.ZodNumber;
2754
+ options: z.ZodArray<z.ZodObject<{
2755
+ name: z.ZodString;
2756
+ additionalPrice: z.ZodString;
2757
+ order: z.ZodNumber;
2758
+ }, z.core.$strict>>;
2759
+ }, z.core.$strict>>;
2760
+ }, z.core.$strict>>;
2761
+ after: z.ZodObject<{
2762
+ kind: z.ZodLiteral<"product.upsert">;
2763
+ ref: z.ZodString;
2764
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
2765
+ kind: z.ZodLiteral<"id">;
2766
+ id: z.ZodUUID;
2767
+ expectedVersion: z.ZodNumber;
2768
+ }, z.core.$strict>, z.ZodObject<{
2769
+ kind: z.ZodLiteral<"external">;
2770
+ namespace: z.ZodString;
2771
+ key: z.ZodString;
2772
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
2773
+ }, z.core.$strict>], "kind">;
2774
+ data: z.ZodObject<{
2775
+ price: z.ZodObject<{
2776
+ status: z.ZodLiteral<"confirmed">;
2777
+ amount: z.ZodString;
2778
+ basis: z.ZodLiteral<"operator">;
2779
+ }, z.core.$strict>;
2780
+ type: z.ZodLiteral<"menu">;
2781
+ name: z.ZodString;
2782
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2783
+ status: z.ZodLiteral<"transcribed">;
2784
+ text: z.ZodString;
2785
+ }, z.core.$strict>, z.ZodObject<{
2786
+ status: z.ZodLiteral<"proposed">;
2787
+ text: z.ZodString;
2788
+ }, z.core.$strict>], "status">>;
2789
+ category: z.ZodDiscriminatedUnion<[z.ZodObject<{
2790
+ kind: z.ZodLiteral<"id">;
2791
+ id: z.ZodUUID;
2792
+ expectedVersion: z.ZodNumber;
2793
+ }, z.core.$strict>, z.ZodObject<{
2794
+ kind: z.ZodLiteral<"ref">;
2795
+ ref: z.ZodString;
2796
+ }, z.core.$strict>], "kind">;
2797
+ available: z.ZodBoolean;
2798
+ images: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2799
+ kind: z.ZodLiteral<"existing">;
2800
+ assetId: z.ZodUUID;
2801
+ sha256: z.ZodString;
2802
+ }, z.core.$strict>, z.ZodObject<{
2803
+ kind: z.ZodLiteral<"staged">;
2804
+ stagingId: z.ZodUUID;
2805
+ sha256: z.ZodString;
2806
+ }, z.core.$strict>], "kind">>;
2807
+ extras: z.ZodObject<{
2808
+ confirmed: z.ZodLiteral<true>;
2809
+ groups: z.ZodArray<z.ZodObject<{
2810
+ name: z.ZodString;
2811
+ required: z.ZodBoolean;
2812
+ minSelections: z.ZodNumber;
2813
+ maxSelections: z.ZodNumber;
2814
+ order: z.ZodNumber;
2815
+ options: z.ZodArray<z.ZodObject<{
2816
+ name: z.ZodString;
2817
+ additionalPrice: z.ZodString;
2818
+ order: z.ZodNumber;
2819
+ }, z.core.$strict>>;
2820
+ }, z.core.$strict>>;
2821
+ }, z.core.$strict>;
2822
+ }, z.core.$strict>;
2823
+ }, z.core.$strict>;
2824
+ publicEffect: z.ZodEnum<{
2825
+ none: "none";
2826
+ immediate_on_apply: "immediate_on_apply";
2827
+ }>;
2828
+ }, z.core.$strict>, z.ZodObject<{
2829
+ kind: z.ZodLiteral<"publication">;
2830
+ ref: z.ZodString;
2831
+ productId: z.ZodUUID;
2832
+ before: z.ZodBoolean;
2833
+ after: z.ZodBoolean;
2834
+ publicEffect: z.ZodLiteral<"immediate_on_apply">;
2835
+ }, z.core.$strict>], "kind">;
2836
+ }, z.core.$strict>, z.ZodObject<{
2837
+ ref: z.ZodString;
2838
+ classification: z.ZodLiteral<"skip">;
2839
+ resource: z.ZodObject<{
2840
+ kind: z.ZodEnum<{
2841
+ product: "product";
2842
+ category: "category";
2843
+ }>;
2844
+ id: z.ZodUUID;
2845
+ revision: z.ZodNumber;
2846
+ }, z.core.$strict>;
2847
+ }, z.core.$strict>, z.ZodObject<{
2848
+ ref: z.ZodString;
2849
+ classification: z.ZodLiteral<"conflict">;
2850
+ issues: z.ZodArray<z.ZodObject<{
2851
+ code: z.ZodEnum<{
2852
+ INVALID_REQUEST: "INVALID_REQUEST";
2853
+ UNSUPPORTED_VERSION: "UNSUPPORTED_VERSION";
2854
+ CREDENTIAL_REQUIRED: "CREDENTIAL_REQUIRED";
2855
+ CREDENTIAL_INVALID: "CREDENTIAL_INVALID";
2856
+ CREDENTIAL_EXPIRED: "CREDENTIAL_EXPIRED";
2857
+ CREDENTIAL_REVOKED: "CREDENTIAL_REVOKED";
2858
+ CREDENTIAL_MIXED: "CREDENTIAL_MIXED";
2859
+ CREDENTIAL_WRONG_FAMILY: "CREDENTIAL_WRONG_FAMILY";
2860
+ OWNER_REQUIRED: "OWNER_REQUIRED";
2861
+ ORIGIN_REJECTED: "ORIGIN_REJECTED";
2862
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
2863
+ APPROVAL_REJECTED: "APPROVAL_REJECTED";
2864
+ APPROVAL_EXPIRED: "APPROVAL_EXPIRED";
2865
+ APPROVAL_MISMATCH: "APPROVAL_MISMATCH";
2866
+ SCOPE_REQUIRED: "SCOPE_REQUIRED";
2867
+ MODE_READ_ONLY: "MODE_READ_ONLY";
2868
+ API_ACCESS_DISABLED: "API_ACCESS_DISABLED";
2869
+ RESTAURANT_NOT_APPROVED: "RESTAURANT_NOT_APPROVED";
2870
+ NOT_FOUND: "NOT_FOUND";
2871
+ VERSION_CONFLICT: "VERSION_CONFLICT";
2872
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
2873
+ INVALID_PRICE: "INVALID_PRICE";
2874
+ UNCONFIRMED_DATA: "UNCONFIRMED_DATA";
2875
+ REFERENCE_CONFLICT: "REFERENCE_CONFLICT";
2876
+ MEDIA_INVALID: "MEDIA_INVALID";
2877
+ MEDIA_EXPIRED: "MEDIA_EXPIRED";
2878
+ QUOTA_EXCEEDED: "QUOTA_EXCEEDED";
2879
+ RATE_LIMITED: "RATE_LIMITED";
2880
+ PAIRING_PENDING: "PAIRING_PENDING";
2881
+ PAIRING_DENIED: "PAIRING_DENIED";
2882
+ PAIRING_EXPIRED: "PAIRING_EXPIRED";
2883
+ PAIRING_CONSUMED: "PAIRING_CONSUMED";
2884
+ OPERATION_TERMINAL: "OPERATION_TERMINAL";
2885
+ APPLY_WINDOW_EXPIRED: "APPLY_WINDOW_EXPIRED";
2886
+ DEPENDENCY_FAILED: "DEPENDENCY_FAILED";
2887
+ TEMPORARY_UNAVAILABLE: "TEMPORARY_UNAVAILABLE";
2888
+ INTERNAL_ERROR: "INTERNAL_ERROR";
2889
+ }>;
2890
+ message: z.ZodString;
2891
+ retryable: z.ZodBoolean;
2892
+ }, z.core.$strict>>;
2893
+ }, z.core.$strict>, z.ZodObject<{
2894
+ ref: z.ZodString;
2895
+ classification: z.ZodLiteral<"invalid">;
2896
+ issues: z.ZodArray<z.ZodObject<{
2897
+ code: z.ZodEnum<{
2898
+ INVALID_REQUEST: "INVALID_REQUEST";
2899
+ UNSUPPORTED_VERSION: "UNSUPPORTED_VERSION";
2900
+ CREDENTIAL_REQUIRED: "CREDENTIAL_REQUIRED";
2901
+ CREDENTIAL_INVALID: "CREDENTIAL_INVALID";
2902
+ CREDENTIAL_EXPIRED: "CREDENTIAL_EXPIRED";
2903
+ CREDENTIAL_REVOKED: "CREDENTIAL_REVOKED";
2904
+ CREDENTIAL_MIXED: "CREDENTIAL_MIXED";
2905
+ CREDENTIAL_WRONG_FAMILY: "CREDENTIAL_WRONG_FAMILY";
2906
+ OWNER_REQUIRED: "OWNER_REQUIRED";
2907
+ ORIGIN_REJECTED: "ORIGIN_REJECTED";
2908
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
2909
+ APPROVAL_REJECTED: "APPROVAL_REJECTED";
2910
+ APPROVAL_EXPIRED: "APPROVAL_EXPIRED";
2911
+ APPROVAL_MISMATCH: "APPROVAL_MISMATCH";
2912
+ SCOPE_REQUIRED: "SCOPE_REQUIRED";
2913
+ MODE_READ_ONLY: "MODE_READ_ONLY";
2914
+ API_ACCESS_DISABLED: "API_ACCESS_DISABLED";
2915
+ RESTAURANT_NOT_APPROVED: "RESTAURANT_NOT_APPROVED";
2916
+ NOT_FOUND: "NOT_FOUND";
2917
+ VERSION_CONFLICT: "VERSION_CONFLICT";
2918
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
2919
+ INVALID_PRICE: "INVALID_PRICE";
2920
+ UNCONFIRMED_DATA: "UNCONFIRMED_DATA";
2921
+ REFERENCE_CONFLICT: "REFERENCE_CONFLICT";
2922
+ MEDIA_INVALID: "MEDIA_INVALID";
2923
+ MEDIA_EXPIRED: "MEDIA_EXPIRED";
2924
+ QUOTA_EXCEEDED: "QUOTA_EXCEEDED";
2925
+ RATE_LIMITED: "RATE_LIMITED";
2926
+ PAIRING_PENDING: "PAIRING_PENDING";
2927
+ PAIRING_DENIED: "PAIRING_DENIED";
2928
+ PAIRING_EXPIRED: "PAIRING_EXPIRED";
2929
+ PAIRING_CONSUMED: "PAIRING_CONSUMED";
2930
+ OPERATION_TERMINAL: "OPERATION_TERMINAL";
2931
+ APPLY_WINDOW_EXPIRED: "APPLY_WINDOW_EXPIRED";
2932
+ DEPENDENCY_FAILED: "DEPENDENCY_FAILED";
2933
+ TEMPORARY_UNAVAILABLE: "TEMPORARY_UNAVAILABLE";
2934
+ INTERNAL_ERROR: "INTERNAL_ERROR";
2935
+ }>;
2936
+ message: z.ZodString;
2937
+ retryable: z.ZodBoolean;
2938
+ }, z.core.$strict>>;
2939
+ }, z.core.$strict>], "classification">>;
2940
+ summary: z.ZodObject<{
2941
+ create: z.ZodNumber;
2942
+ update: z.ZodNumber;
2943
+ skip: z.ZodNumber;
2944
+ conflict: z.ZodNumber;
2945
+ invalid: z.ZodNumber;
2946
+ }, z.core.$strict>;
2947
+ }, z.core.$strict>;
2948
+ declare const elenaAgentCatalogSampleSchema: z.ZodObject<{
2949
+ version: z.ZodLiteral<"1">;
2950
+ sample: z.ZodLiteral<true>;
2951
+ disclaimer: z.ZodString;
2952
+ source: z.ZodObject<{
2953
+ kind: z.ZodLiteral<"image">;
2954
+ label: z.ZodString;
2955
+ originalAvailable: z.ZodLiteral<false>;
2956
+ ocrAccuracyVerified: z.ZodLiteral<false>;
2957
+ }, z.core.$strict>;
2958
+ confirmation: z.ZodObject<{
2959
+ status: z.ZodLiteral<"sample_only">;
2960
+ requiresOperatorReview: z.ZodLiteral<true>;
2961
+ currency: z.ZodLiteral<"PEN">;
2962
+ }, z.core.$strict>;
2963
+ categories: z.ZodArray<z.ZodObject<{
2964
+ ref: z.ZodString;
2965
+ name: z.ZodString;
2966
+ }, z.core.$strict>>;
2967
+ items: z.ZodArray<z.ZodObject<{
2968
+ ref: z.ZodString;
2969
+ categoryRef: z.ZodString;
2970
+ name: z.ZodString;
2971
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
2972
+ status: z.ZodLiteral<"confirmed">;
2973
+ amount: z.ZodString;
2974
+ basis: z.ZodLiteral<"sample">;
2975
+ }, z.core.$strict>, z.ZodObject<{
2976
+ status: z.ZodLiteral<"unconfirmed">;
2977
+ reason: z.ZodEnum<{
2978
+ missing: "missing";
2979
+ illegible: "illegible";
2980
+ }>;
2981
+ rawText: z.ZodNullable<z.ZodString>;
2982
+ }, z.core.$strict>], "status">;
2983
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2984
+ status: z.ZodLiteral<"transcribed">;
2985
+ text: z.ZodString;
2986
+ }, z.core.$strict>, z.ZodObject<{
2987
+ status: z.ZodLiteral<"proposed">;
2988
+ text: z.ZodString;
2989
+ }, z.core.$strict>], "status">>;
2990
+ }, z.core.$strict>>;
2991
+ notes: z.ZodArray<z.ZodString>;
2992
+ }, z.core.$strict>;
2993
+ type ElenaAgentProposalRequestV1 = z.infer<typeof elenaAgentProposalRequestSchema>;
2994
+ type ElenaAgentApplyRequestV1 = z.infer<typeof elenaAgentApplyRequestSchema>;
2995
+ type ElenaAgentApprovalRequestV1 = z.infer<typeof elenaAgentApprovalRequestSchema>;
2996
+ type ElenaAgentOperationV1 = z.infer<typeof elenaAgentOperationSchema>;
2997
+ type ElenaAgentOperationPayloadV1 = z.infer<typeof elenaAgentOperationPayloadSchema>;
2998
+ type ElenaAgentOperationResultV1 = z.infer<typeof elenaAgentOperationResultSchema>;
2999
+ type ElenaAgentImportPreviewRequestV1 = z.infer<typeof elenaAgentImportPreviewRequestSchema>;
3000
+ type ElenaAgentImportPreviewV1 = z.infer<typeof elenaAgentImportPreviewSchema>;
3001
+ type ElenaAgentPreviewItemV1 = z.infer<typeof elenaAgentPreviewItemSchema>;
3002
+ type ElenaAgentCatalogSampleV1 = z.infer<typeof elenaAgentCatalogSampleSchema>;
3003
+ type ElenaAgentDiffV1 = z.infer<typeof elenaAgentDiffSchema>;
3004
+ type ElenaAgentResultItemV1 = z.infer<typeof elenaAgentResultItemSchema>;
3005
+ type ElenaAgentOperationStateV1 = z.infer<typeof elenaAgentOperationStateSchema>;
3006
+ type ElenaAgentOperationListV1 = z.infer<typeof elenaAgentOperationListSchema>;
3007
+ type ElenaAgentImportItemV1 = z.infer<typeof elenaAgentImportItemSchema>;
3008
+
3009
+ interface ElenaAgentClientOptions extends ElenaKeyTransportOptions {
3010
+ agentKey: string;
3011
+ /** Required before consuming operation responses. Never inferred from the API origin. */
3012
+ staffOrigin?: string;
3013
+ }
3014
+ interface ElenaAgentClient {
3015
+ context: {
3016
+ get(options?: ElenaKeyRequestOptions): Promise<ElenaAgentContextV1>;
3017
+ };
3018
+ catalog: {
3019
+ categories: {
3020
+ list(query?: ElenaKeyPageQuery, options?: ElenaKeyRequestOptions): Promise<ElenaAgentCategoryListV1>;
3021
+ get(id: string, options?: ElenaKeyRequestOptions): Promise<ElenaAgentCategoryResponseV1>;
3022
+ };
3023
+ products: {
3024
+ list(query?: ElenaKeyPageQuery, options?: ElenaKeyRequestOptions): Promise<ElenaAgentProductListV1>;
3025
+ get(id: string, options?: ElenaKeyRequestOptions): Promise<ElenaAgentProductResponseV1>;
3026
+ };
3027
+ };
3028
+ assets: {
3029
+ get(id: string, options?: ElenaKeyRequestOptions): Promise<ElenaAgentAssetV1>;
3030
+ };
3031
+ media: {
3032
+ stage(metadata: ElenaAgentMediaStageRequestV1, file: Blob, options?: ElenaKeyRequestOptions): Promise<ElenaAgentMediaStagedV1>;
3033
+ get(id: string, options?: ElenaKeyRequestOptions): Promise<ElenaAgentMediaStagedV1>;
3034
+ };
3035
+ imports: {
3036
+ preview(input: ElenaAgentImportPreviewRequestV1, options?: ElenaKeyRequestOptions): Promise<ElenaAgentImportPreviewV1>;
3037
+ get(id: string, options?: ElenaKeyRequestOptions): Promise<ElenaAgentImportPreviewV1>;
3038
+ };
3039
+ operations: {
3040
+ propose(input: ElenaAgentProposalRequestV1, options?: ElenaKeyRequestOptions): Promise<ElenaAgentOperationV1>;
3041
+ list(query?: ElenaKeyPageQuery, options?: ElenaKeyRequestOptions): Promise<ElenaAgentOperationListV1>;
3042
+ get(id: string, options?: ElenaKeyRequestOptions): Promise<ElenaAgentOperationV1>;
3043
+ apply(id: string, input: ElenaAgentApplyRequestV1, options?: ElenaKeyRequestOptions): Promise<ElenaAgentOperationV1>;
3044
+ };
3045
+ }
3046
+ declare function createElenaAgentClient(options: ElenaAgentClientOptions): ElenaAgentClient;
3047
+
3048
+ export { type ElenaAgentApplyRequestV1, type ElenaAgentApprovalRequestV1, ElenaAgentAssetV1, type ElenaAgentCatalogSampleV1, ElenaAgentCategoryListV1, ElenaAgentCategoryResponseV1, type ElenaAgentClient, type ElenaAgentClientOptions, ElenaAgentContextV1, type ElenaAgentDiffV1, type ElenaAgentImportItemV1, type ElenaAgentImportPreviewRequestV1, type ElenaAgentImportPreviewV1, ElenaAgentMediaStageRequestV1, ElenaAgentMediaStagedV1, type ElenaAgentOperationListV1, type ElenaAgentOperationPayloadV1, type ElenaAgentOperationResultV1, type ElenaAgentOperationStateV1, type ElenaAgentOperationV1, type ElenaAgentPreviewItemV1, ElenaAgentProductListV1, ElenaAgentProductResponseV1, type ElenaAgentProposalRequestV1, type ElenaAgentResultItemV1, ElenaKeyPageQuery, ElenaKeyRequestOptions, ElenaKeyTransportOptions, createElenaAgentClient, elenaAgentApplyRequestSchema, elenaAgentApprovalRequestSchema, elenaAgentBaseVersionSchema, elenaAgentCatalogSampleSchema, elenaAgentChangesSchema, elenaAgentDiffSchema, elenaAgentImportItemSchema, elenaAgentImportPreviewRequestSchema, elenaAgentImportPreviewSchema, elenaAgentImportSourceSchema, elenaAgentItemErrorSchema, elenaAgentOperationListSchema, elenaAgentOperationPayloadSchema, elenaAgentOperationResultSchema, elenaAgentOperationSchema, elenaAgentOperationStateSchema, elenaAgentPreviewItemSchema, elenaAgentProposalRequestSchema, elenaAgentPublicationPayloadSchema, elenaAgentResultItemSchema };