@deliverart/sdk-js-integration-diagnostics 0.0.0-stage → 2.40.2

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,3553 @@
1
+ import { z } from 'zod';
2
+ import { AbstractApiRequest } from '@deliverart/sdk-js-core';
3
+ import { createPaginatedSchema } from '@deliverart/sdk-js-global-types';
4
+
5
+ declare const diagnosticIdSchema: z.ZodString;
6
+ declare const diagnosticCodeSchema: z.ZodString;
7
+ declare const diagnosticDateSchema: z.ZodISODateTime;
8
+ declare const diagnosticSourceSchema: z.ZodObject<{
9
+ kind: z.ZodString;
10
+ identifier: z.ZodString;
11
+ generation: z.ZodString;
12
+ }, z.core.$strip>;
13
+ declare const diagnosticResourceSchema: z.ZodObject<{
14
+ kind: z.ZodEnum<{
15
+ integration: "integration";
16
+ order: "order";
17
+ order_item: "order_item";
18
+ order_modifier: "order_modifier";
19
+ product: "product";
20
+ variant: "variant";
21
+ modifier: "modifier";
22
+ choice: "choice";
23
+ category: "category";
24
+ restaurant: "restaurant";
25
+ configuration: "configuration";
26
+ publication: "publication";
27
+ process: "process";
28
+ process_step: "process_step";
29
+ payment_method: "payment_method";
30
+ tax: "tax";
31
+ }>;
32
+ identifier: z.ZodString;
33
+ role: z.ZodEnum<{
34
+ cause: "cause";
35
+ affected: "affected";
36
+ context: "context";
37
+ }>;
38
+ name: z.ZodNullable<z.ZodString>;
39
+ parentIdentifier: z.ZodNullable<z.ZodString>;
40
+ translations: z.ZodPipe<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodNever>]>, z.ZodTransform<Record<string, string>, never[] | Record<string, string>>>;
41
+ }, z.core.$strip>;
42
+ declare const diagnosticFindingSchema: z.ZodObject<{
43
+ schemaVersion: z.ZodLiteral<1>;
44
+ code: z.ZodString;
45
+ confirmed: z.ZodBoolean;
46
+ resources: z.ZodArray<z.ZodObject<{
47
+ kind: z.ZodEnum<{
48
+ integration: "integration";
49
+ order: "order";
50
+ order_item: "order_item";
51
+ order_modifier: "order_modifier";
52
+ product: "product";
53
+ variant: "variant";
54
+ modifier: "modifier";
55
+ choice: "choice";
56
+ category: "category";
57
+ restaurant: "restaurant";
58
+ configuration: "configuration";
59
+ publication: "publication";
60
+ process: "process";
61
+ process_step: "process_step";
62
+ payment_method: "payment_method";
63
+ tax: "tax";
64
+ }>;
65
+ identifier: z.ZodString;
66
+ role: z.ZodEnum<{
67
+ cause: "cause";
68
+ affected: "affected";
69
+ context: "context";
70
+ }>;
71
+ name: z.ZodNullable<z.ZodString>;
72
+ parentIdentifier: z.ZodNullable<z.ZodString>;
73
+ translations: z.ZodPipe<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodNever>]>, z.ZodTransform<Record<string, string>, never[] | Record<string, string>>>;
74
+ }, z.core.$strip>>;
75
+ evidenceFingerprint: z.ZodString;
76
+ classifierVersion: z.ZodNumber;
77
+ }, z.core.$strip>;
78
+ declare const readableDiagnosticFindingSchema: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
79
+ schemaVersion: 1;
80
+ code: string;
81
+ confirmed: boolean;
82
+ resources: {
83
+ kind: "integration" | "order" | "order_item" | "order_modifier" | "product" | "variant" | "modifier" | "choice" | "category" | "restaurant" | "configuration" | "publication" | "process" | "process_step" | "payment_method" | "tax";
84
+ identifier: string;
85
+ role: "cause" | "affected" | "context";
86
+ name: string | null;
87
+ parentIdentifier: string | null;
88
+ translations: Record<string, string>;
89
+ }[];
90
+ evidenceFingerprint: string;
91
+ classifierVersion: number;
92
+ } | null, unknown>>;
93
+ declare const diagnosticRecoveryActionSchema: z.ZodCatch<z.ZodNullable<z.ZodEnum<{
94
+ retry: "retry";
95
+ reconcile: "reconcile";
96
+ sync_current_state: "sync_current_state";
97
+ }>>>;
98
+ declare const diagnosticRecoveryStateSchema: z.ZodEnum<{
99
+ action_required: "action_required";
100
+ automatic_recovery: "automatic_recovery";
101
+ in_progress: "in_progress";
102
+ outcome_unknown: "outcome_unknown";
103
+ succeeded: "succeeded";
104
+ superseded: "superseded";
105
+ }>;
106
+ declare const diagnosticVerificationSchema: z.ZodObject<{
107
+ scope: z.ZodLiteral<"local">;
108
+ outcome: z.ZodEnum<{
109
+ unknown: "unknown";
110
+ cause_present: "cause_present";
111
+ cause_absent: "cause_absent";
112
+ }>;
113
+ reason: z.ZodString;
114
+ checkedAt: z.ZodNullable<z.ZodISODateTime>;
115
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
116
+ fresh: z.ZodBoolean;
117
+ findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
118
+ schemaVersion: z.ZodLiteral<1>;
119
+ code: z.ZodString;
120
+ confirmed: z.ZodBoolean;
121
+ resources: z.ZodArray<z.ZodObject<{
122
+ kind: z.ZodEnum<{
123
+ integration: "integration";
124
+ order: "order";
125
+ order_item: "order_item";
126
+ order_modifier: "order_modifier";
127
+ product: "product";
128
+ variant: "variant";
129
+ modifier: "modifier";
130
+ choice: "choice";
131
+ category: "category";
132
+ restaurant: "restaurant";
133
+ configuration: "configuration";
134
+ publication: "publication";
135
+ process: "process";
136
+ process_step: "process_step";
137
+ payment_method: "payment_method";
138
+ tax: "tax";
139
+ }>;
140
+ identifier: z.ZodString;
141
+ role: z.ZodEnum<{
142
+ cause: "cause";
143
+ affected: "affected";
144
+ context: "context";
145
+ }>;
146
+ name: z.ZodNullable<z.ZodString>;
147
+ parentIdentifier: z.ZodNullable<z.ZodString>;
148
+ translations: z.ZodPipe<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodNever>]>, z.ZodTransform<Record<string, string>, never[] | Record<string, string>>>;
149
+ }, z.core.$strip>>;
150
+ evidenceFingerprint: z.ZodString;
151
+ classifierVersion: z.ZodNumber;
152
+ }, z.core.$strip>>>;
153
+ }, z.core.$strip>;
154
+ type DiagnosticFinding = z.infer<typeof diagnosticFindingSchema>;
155
+ type DiagnosticResource = z.infer<typeof diagnosticResourceSchema>;
156
+ type DiagnosticVerification = z.infer<typeof diagnosticVerificationSchema>;
157
+
158
+ type DiagnosticLocale = 'it' | 'en';
159
+ type Explanation = {
160
+ title: string;
161
+ explanation: string;
162
+ nextStep: string;
163
+ };
164
+ /** Plain text only. Rendering and application routes remain owned by the client. */
165
+ declare function describeDiagnostic(finding: DiagnosticFinding | null, locale: DiagnosticLocale): Explanation;
166
+ declare function diagnosticResourceName(resource: DiagnosticResource, locale: DiagnosticLocale, service?: string | null): string;
167
+ declare function describeVerification(verification: DiagnosticVerification, locale: DiagnosticLocale): string;
168
+
169
+ declare const diagnosticOperationActionsSchema: z.ZodObject<{
170
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
171
+ eligible: z.ZodLiteral<true>;
172
+ code: z.ZodLiteral<"recovery_available">;
173
+ action: z.ZodEnum<{
174
+ retry: "retry";
175
+ reconcile: "reconcile";
176
+ sync_current_state: "sync_current_state";
177
+ }>;
178
+ }, z.core.$strip>, z.ZodObject<{
179
+ eligible: z.ZodLiteral<false>;
180
+ code: z.ZodString;
181
+ action: z.ZodNull;
182
+ }, z.core.$strip>], "eligible">;
183
+ manualClosure: z.ZodDiscriminatedUnion<[z.ZodObject<{
184
+ eligible: z.ZodLiteral<true>;
185
+ code: z.ZodLiteral<"closure_available">;
186
+ }, z.core.$strip>, z.ZodObject<{
187
+ eligible: z.ZodLiteral<false>;
188
+ code: z.ZodString;
189
+ }, z.core.$strip>], "eligible">;
190
+ evaluatedAt: z.ZodISODateTime;
191
+ }, z.core.$strip>;
192
+ type DiagnosticOperationActions = z.infer<typeof diagnosticOperationActionsSchema>;
193
+ /** Informational availability only; previews and native execution remain authoritative. */
194
+ declare function describeDiagnosticActionAvailability(actions: DiagnosticOperationActions | null | undefined, action: 'recovery' | 'manualClosure', locale: DiagnosticLocale): string;
195
+
196
+ declare const diagnosticAssistanceQuerySchema: z.ZodObject<{
197
+ page: z.ZodOptional<z.ZodNumber>;
198
+ itemsPerPage: z.ZodOptional<z.ZodNumber>;
199
+ }, z.core.$strip>;
200
+ declare const diagnosticAssistanceRequestInputSchema: z.ZodObject<{
201
+ requestKey: z.ZodString;
202
+ note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
203
+ }, z.core.$strict>;
204
+ declare const diagnosticAssistanceReplyInputSchema: z.ZodObject<{
205
+ actionKey: z.ZodString;
206
+ revision: z.ZodNumber;
207
+ note: z.ZodString;
208
+ }, z.core.$strict>;
209
+ declare const diagnosticAssistanceUpdateInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
210
+ action: z.ZodLiteral<"note">;
211
+ audience: z.ZodDefault<z.ZodEnum<{
212
+ public: "public";
213
+ internal: "internal";
214
+ }>>;
215
+ body: z.ZodString;
216
+ actionKey: z.ZodString;
217
+ revision: z.ZodNumber;
218
+ }, z.core.$strict>, z.ZodObject<{
219
+ action: z.ZodLiteral<"wait_for_customer">;
220
+ audience: z.ZodLiteral<"public">;
221
+ body: z.ZodString;
222
+ actionKey: z.ZodString;
223
+ revision: z.ZodNumber;
224
+ }, z.core.$strict>, z.ZodObject<{
225
+ action: z.ZodEnum<{
226
+ complete: "complete";
227
+ claim: "claim";
228
+ release: "release";
229
+ }>;
230
+ actionKey: z.ZodString;
231
+ revision: z.ZodNumber;
232
+ }, z.core.$strict>], "action">;
233
+ declare const diagnosticAssistanceSummarySchema: z.ZodObject<{
234
+ id: z.ZodString;
235
+ problemId: z.ZodString;
236
+ state: z.ZodEnum<{
237
+ requested: "requested";
238
+ assigned: "assigned";
239
+ waiting_for_customer: "waiting_for_customer";
240
+ completed: "completed";
241
+ }>;
242
+ revision: z.ZodNumber;
243
+ assigned: z.ZodBoolean;
244
+ createdAt: z.ZodISODateTime;
245
+ updatedAt: z.ZodISODateTime;
246
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
247
+ }, z.core.$strip>;
248
+ declare const diagnosticAssistanceEventSchema: z.ZodObject<{
249
+ id: z.ZodString;
250
+ kind: z.ZodEnum<{
251
+ complete: "complete";
252
+ note: "note";
253
+ wait_for_customer: "wait_for_customer";
254
+ claim: "claim";
255
+ release: "release";
256
+ requested: "requested";
257
+ }>;
258
+ body: z.ZodNullable<z.ZodString>;
259
+ authorKind: z.ZodEnum<{
260
+ customer: "customer";
261
+ support: "support";
262
+ }>;
263
+ occurredAt: z.ZodISODateTime;
264
+ }, z.core.$strip>;
265
+ declare const diagnosticAssistanceSchema: z.ZodObject<{
266
+ id: z.ZodString;
267
+ problemId: z.ZodString;
268
+ state: z.ZodEnum<{
269
+ requested: "requested";
270
+ assigned: "assigned";
271
+ waiting_for_customer: "waiting_for_customer";
272
+ completed: "completed";
273
+ }>;
274
+ revision: z.ZodNumber;
275
+ assigned: z.ZodBoolean;
276
+ createdAt: z.ZodISODateTime;
277
+ updatedAt: z.ZodISODateTime;
278
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
279
+ events: z.ZodObject<{
280
+ data: z.ZodArray<z.ZodObject<{
281
+ id: z.ZodString;
282
+ kind: z.ZodEnum<{
283
+ complete: "complete";
284
+ note: "note";
285
+ wait_for_customer: "wait_for_customer";
286
+ claim: "claim";
287
+ release: "release";
288
+ requested: "requested";
289
+ }>;
290
+ body: z.ZodNullable<z.ZodString>;
291
+ authorKind: z.ZodEnum<{
292
+ customer: "customer";
293
+ support: "support";
294
+ }>;
295
+ occurredAt: z.ZodISODateTime;
296
+ }, z.core.$strip>>;
297
+ hasNextPage: z.ZodBoolean;
298
+ }, z.core.$strip>;
299
+ page: z.ZodNumber;
300
+ itemsPerPage: z.ZodNumber;
301
+ }, z.core.$strip>;
302
+ declare const diagnosticAssistanceHistorySchema: z.ZodObject<{
303
+ data: z.ZodArray<z.ZodObject<{
304
+ id: z.ZodString;
305
+ problemId: z.ZodString;
306
+ state: z.ZodEnum<{
307
+ requested: "requested";
308
+ assigned: "assigned";
309
+ waiting_for_customer: "waiting_for_customer";
310
+ completed: "completed";
311
+ }>;
312
+ revision: z.ZodNumber;
313
+ assigned: z.ZodBoolean;
314
+ createdAt: z.ZodISODateTime;
315
+ updatedAt: z.ZodISODateTime;
316
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
317
+ }, z.core.$strip>>;
318
+ hasNextPage: z.ZodBoolean;
319
+ page: z.ZodNumber;
320
+ itemsPerPage: z.ZodNumber;
321
+ id: z.ZodString;
322
+ }, z.core.$strip>;
323
+ declare const diagnosticAssistanceInternalSchema: z.ZodObject<{
324
+ events: z.ZodObject<{
325
+ data: z.ZodArray<z.ZodObject<{
326
+ id: z.ZodString;
327
+ body: z.ZodNullable<z.ZodString>;
328
+ occurredAt: z.ZodISODateTime;
329
+ kind: z.ZodLiteral<"note">;
330
+ authorKind: z.ZodLiteral<"support">;
331
+ actorId: z.ZodString;
332
+ }, z.core.$strip>>;
333
+ hasNextPage: z.ZodBoolean;
334
+ }, z.core.$strip>;
335
+ page: z.ZodNumber;
336
+ itemsPerPage: z.ZodNumber;
337
+ id: z.ZodString;
338
+ assignedTo: z.ZodNullable<z.ZodString>;
339
+ requestedBy: z.ZodString;
340
+ }, z.core.$strip>;
341
+ type DiagnosticAssistance = z.infer<typeof diagnosticAssistanceSchema>;
342
+ type DiagnosticAssistanceSummary = z.infer<typeof diagnosticAssistanceSummarySchema>;
343
+ type DiagnosticAssistanceInternal = z.infer<typeof diagnosticAssistanceInternalSchema>;
344
+ type DiagnosticAssistanceUpdateInput = z.input<typeof diagnosticAssistanceUpdateInputSchema>;
345
+ declare const diagnosticAssistanceQueueItemSchema: z.ZodObject<{
346
+ revision: z.ZodNumber;
347
+ id: z.ZodString;
348
+ problemId: z.ZodString;
349
+ createdAt: z.ZodISODateTime;
350
+ updatedAt: z.ZodISODateTime;
351
+ state: z.ZodEnum<{
352
+ requested: "requested";
353
+ assigned: "assigned";
354
+ waiting_for_customer: "waiting_for_customer";
355
+ completed: "completed";
356
+ }>;
357
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
358
+ pointOfSaleId: z.ZodString;
359
+ integrationId: z.ZodString;
360
+ code: z.ZodString;
361
+ assignedTo: z.ZodNullable<z.ZodString>;
362
+ }, z.core.$strip>;
363
+ type DiagnosticAssistanceQueueItem = z.infer<typeof diagnosticAssistanceQueueItemSchema>;
364
+
365
+ declare const diagnosticAttemptSchema: z.ZodObject<{
366
+ id: z.ZodString;
367
+ generation: z.ZodNullable<z.ZodNumber>;
368
+ number: z.ZodNullable<z.ZodNumber>;
369
+ result: z.ZodEnum<{
370
+ unknown: "unknown";
371
+ outcome_unknown: "outcome_unknown";
372
+ succeeded: "succeeded";
373
+ running: "running";
374
+ retry_scheduled: "retry_scheduled";
375
+ failed: "failed";
376
+ manual_action: "manual_action";
377
+ skipped: "skipped";
378
+ cancelled: "cancelled";
379
+ stale: "stale";
380
+ timed_out: "timed_out";
381
+ accepted: "accepted";
382
+ remote_state_matches: "remote_state_matches";
383
+ rate_limited: "rate_limited";
384
+ remote_state_differs: "remote_state_differs";
385
+ not_found: "not_found";
386
+ unavailable: "unavailable";
387
+ interrupted: "interrupted";
388
+ observation_ignored: "observation_ignored";
389
+ }>;
390
+ phase: z.ZodEnum<{
391
+ unknown: "unknown";
392
+ availability_sync: "availability_sync";
393
+ completed: "completed";
394
+ eligibility: "eligibility";
395
+ catalog_preparation: "catalog_preparation";
396
+ payload_validation: "payload_validation";
397
+ sending: "sending";
398
+ reconciling: "reconciling";
399
+ menu_submission: "menu_submission";
400
+ menu_verification: "menu_verification";
401
+ }>;
402
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
403
+ finishedAt: z.ZodNullable<z.ZodISODateTime>;
404
+ }, z.core.$strip>;
405
+ declare const diagnosticAttemptHistorySchema: z.ZodObject<{
406
+ id: z.ZodString;
407
+ supported: z.ZodBoolean;
408
+ entries: z.ZodArray<z.ZodObject<{
409
+ id: z.ZodString;
410
+ generation: z.ZodNullable<z.ZodNumber>;
411
+ number: z.ZodNullable<z.ZodNumber>;
412
+ result: z.ZodEnum<{
413
+ unknown: "unknown";
414
+ outcome_unknown: "outcome_unknown";
415
+ succeeded: "succeeded";
416
+ running: "running";
417
+ retry_scheduled: "retry_scheduled";
418
+ failed: "failed";
419
+ manual_action: "manual_action";
420
+ skipped: "skipped";
421
+ cancelled: "cancelled";
422
+ stale: "stale";
423
+ timed_out: "timed_out";
424
+ accepted: "accepted";
425
+ remote_state_matches: "remote_state_matches";
426
+ rate_limited: "rate_limited";
427
+ remote_state_differs: "remote_state_differs";
428
+ not_found: "not_found";
429
+ unavailable: "unavailable";
430
+ interrupted: "interrupted";
431
+ observation_ignored: "observation_ignored";
432
+ }>;
433
+ phase: z.ZodEnum<{
434
+ unknown: "unknown";
435
+ availability_sync: "availability_sync";
436
+ completed: "completed";
437
+ eligibility: "eligibility";
438
+ catalog_preparation: "catalog_preparation";
439
+ payload_validation: "payload_validation";
440
+ sending: "sending";
441
+ reconciling: "reconciling";
442
+ menu_submission: "menu_submission";
443
+ menu_verification: "menu_verification";
444
+ }>;
445
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
446
+ finishedAt: z.ZodNullable<z.ZodISODateTime>;
447
+ }, z.core.$strip>>;
448
+ page: z.ZodNumber;
449
+ itemsPerPage: z.ZodNumber;
450
+ hasNextPage: z.ZodBoolean;
451
+ }, z.core.$strip>;
452
+ type DiagnosticAttemptHistory = z.infer<typeof diagnosticAttemptHistorySchema>;
453
+ type DiagnosticAttempt = z.infer<typeof diagnosticAttemptSchema>;
454
+ declare function describeDiagnosticAttempt(attempt: DiagnosticAttempt, locale: DiagnosticLocale): {
455
+ title: string;
456
+ explanation: string | null;
457
+ result: string;
458
+ phase: string;
459
+ };
460
+
461
+ /** Local findings must never reuse explanations that assert historical causation. */
462
+ declare function describeLocalDiagnostic(finding: DiagnosticFinding, locale: DiagnosticLocale): {
463
+ explanation: string;
464
+ title: string;
465
+ nextStep: string;
466
+ };
467
+
468
+ declare const diagnosticOperationContextSchema: z.ZodObject<{
469
+ kind: z.ZodEnum<{
470
+ order: "order";
471
+ integration_lifecycle: "integration_lifecycle";
472
+ sync_process: "sync_process";
473
+ catalog_import: "catalog_import";
474
+ integration_issue: "integration_issue";
475
+ publication_validation: "publication_validation";
476
+ publication_receipt: "publication_receipt";
477
+ }>;
478
+ resourceId: z.ZodString;
479
+ direction: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
480
+ inbound: "inbound";
481
+ outbound: "outbound";
482
+ }>>>;
483
+ reference: z.ZodNullable<z.ZodString>;
484
+ scope: z.ZodNullable<z.ZodString>;
485
+ }, z.core.$strip>;
486
+ type DiagnosticOperationContext = z.infer<typeof diagnosticOperationContextSchema>;
487
+ declare function describeDiagnosticScope(scope: string, locale: DiagnosticLocale): string | null;
488
+ declare function describeDiagnosticOperation(context: DiagnosticOperationContext | null | undefined, locale: DiagnosticLocale, service?: string | null): string | null;
489
+
490
+ /** Administrative metadata; native evidence, actions and impact are loaded separately. */
491
+ declare const diagnosticProblemQueueItemSchema: z.ZodObject<{
492
+ id: z.ZodString;
493
+ pointOfSaleId: z.ZodString;
494
+ integrationId: z.ZodString;
495
+ code: z.ZodString;
496
+ confirmed: z.ZodBoolean;
497
+ firstSeenAt: z.ZodString;
498
+ lastSeenAt: z.ZodString;
499
+ resolvedAt: z.ZodNullable<z.ZodString>;
500
+ }, z.core.$strip>;
501
+ declare const diagnosticProblemQueueSchema: z.ZodObject<{
502
+ data: z.ZodArray<z.ZodObject<{
503
+ id: z.ZodString;
504
+ pointOfSaleId: z.ZodString;
505
+ integrationId: z.ZodString;
506
+ code: z.ZodString;
507
+ confirmed: z.ZodBoolean;
508
+ firstSeenAt: z.ZodString;
509
+ lastSeenAt: z.ZodString;
510
+ resolvedAt: z.ZodNullable<z.ZodString>;
511
+ }, z.core.$strip>>;
512
+ nextCursor: z.ZodNullable<z.ZodString>;
513
+ }, z.core.$strip>;
514
+ declare const diagnosticProblemQueueQuerySchema: z.ZodObject<{
515
+ state: z.ZodOptional<z.ZodEnum<{
516
+ open: "open";
517
+ resolved: "resolved";
518
+ all: "all";
519
+ }>>;
520
+ pointOfSaleId: z.ZodOptional<z.ZodString>;
521
+ integrationId: z.ZodOptional<z.ZodString>;
522
+ code: z.ZodOptional<z.ZodString>;
523
+ itemsPerPage: z.ZodOptional<z.ZodNumber>;
524
+ cursor: z.ZodOptional<z.ZodString>;
525
+ }, z.core.$strip>;
526
+ type DiagnosticProblemQueueItem = z.infer<typeof diagnosticProblemQueueItemSchema>;
527
+
528
+ declare const diagnosticAttentionSchema: z.ZodEnum<{
529
+ action_required: "action_required";
530
+ automatic_recovery: "automatic_recovery";
531
+ resolved: "resolved";
532
+ }>;
533
+ declare const diagnosticRecoverySummarySchema: z.ZodObject<{
534
+ attention: z.ZodEnum<{
535
+ action_required: "action_required";
536
+ automatic_recovery: "automatic_recovery";
537
+ resolved: "resolved";
538
+ }>;
539
+ total: z.ZodNumber;
540
+ succeeded: z.ZodNumber;
541
+ manuallyHandled: z.ZodNumber;
542
+ superseded: z.ZodNumber;
543
+ actionRequired: z.ZodNumber;
544
+ automaticRecovery: z.ZodNumber;
545
+ inProgress: z.ZodNumber;
546
+ outcomeUnknown: z.ZodNumber;
547
+ outstanding: z.ZodNumber;
548
+ }, z.core.$strip>;
549
+ declare const diagnosticOperationSchema: z.ZodObject<{
550
+ pointOfSaleId: z.ZodString;
551
+ integrationId: z.ZodString;
552
+ actions: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
553
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
554
+ eligible: z.ZodLiteral<true>;
555
+ code: z.ZodLiteral<"recovery_available">;
556
+ action: z.ZodEnum<{
557
+ retry: "retry";
558
+ reconcile: "reconcile";
559
+ sync_current_state: "sync_current_state";
560
+ }>;
561
+ }, z.core.$strip>, z.ZodObject<{
562
+ eligible: z.ZodLiteral<false>;
563
+ code: z.ZodString;
564
+ action: z.ZodNull;
565
+ }, z.core.$strip>], "eligible">;
566
+ manualClosure: z.ZodDiscriminatedUnion<[z.ZodObject<{
567
+ eligible: z.ZodLiteral<true>;
568
+ code: z.ZodLiteral<"closure_available">;
569
+ }, z.core.$strip>, z.ZodObject<{
570
+ eligible: z.ZodLiteral<false>;
571
+ code: z.ZodString;
572
+ }, z.core.$strip>], "eligible">;
573
+ evaluatedAt: z.ZodISODateTime;
574
+ }, z.core.$strip>>>>;
575
+ context: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
576
+ kind: z.ZodEnum<{
577
+ order: "order";
578
+ integration_lifecycle: "integration_lifecycle";
579
+ sync_process: "sync_process";
580
+ catalog_import: "catalog_import";
581
+ integration_issue: "integration_issue";
582
+ publication_validation: "publication_validation";
583
+ publication_receipt: "publication_receipt";
584
+ }>;
585
+ resourceId: z.ZodString;
586
+ direction: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
587
+ inbound: "inbound";
588
+ outbound: "outbound";
589
+ }>>>;
590
+ reference: z.ZodNullable<z.ZodString>;
591
+ scope: z.ZodNullable<z.ZodString>;
592
+ }, z.core.$strip>>>>;
593
+ id: z.ZodString;
594
+ service: z.ZodNullable<z.ZodString>;
595
+ source: z.ZodObject<{
596
+ kind: z.ZodString;
597
+ identifier: z.ZodString;
598
+ generation: z.ZodString;
599
+ }, z.core.$strip>;
600
+ recoveryState: z.ZodEnum<{
601
+ action_required: "action_required";
602
+ automatic_recovery: "automatic_recovery";
603
+ in_progress: "in_progress";
604
+ outcome_unknown: "outcome_unknown";
605
+ succeeded: "succeeded";
606
+ superseded: "superseded";
607
+ }>;
608
+ revision: z.ZodNumber;
609
+ observedAt: z.ZodISODateTime;
610
+ nextRecoveryAt: z.ZodNullable<z.ZodISODateTime>;
611
+ manuallyClosedAt: z.ZodNullable<z.ZodISODateTime>;
612
+ }, z.core.$strip>;
613
+ declare const diagnosticAffectedOperationSchema: z.ZodPipe<z.ZodObject<{
614
+ evidence: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
615
+ schemaVersion: 1;
616
+ code: string;
617
+ confirmed: boolean;
618
+ resources: {
619
+ kind: "integration" | "order" | "order_item" | "order_modifier" | "product" | "variant" | "modifier" | "choice" | "category" | "restaurant" | "configuration" | "publication" | "process" | "process_step" | "payment_method" | "tax";
620
+ identifier: string;
621
+ role: "cause" | "affected" | "context";
622
+ name: string | null;
623
+ parentIdentifier: string | null;
624
+ translations: Record<string, string>;
625
+ }[];
626
+ evidenceFingerprint: string;
627
+ classifierVersion: number;
628
+ } | null, unknown>>;
629
+ evidenceComplete: z.ZodBoolean;
630
+ evidenceSource: z.ZodNullable<z.ZodObject<{
631
+ kind: z.ZodString;
632
+ identifier: z.ZodString;
633
+ generation: z.ZodString;
634
+ }, z.core.$strip>>;
635
+ actions: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
636
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
637
+ eligible: z.ZodLiteral<true>;
638
+ code: z.ZodLiteral<"recovery_available">;
639
+ action: z.ZodEnum<{
640
+ retry: "retry";
641
+ reconcile: "reconcile";
642
+ sync_current_state: "sync_current_state";
643
+ }>;
644
+ }, z.core.$strip>, z.ZodObject<{
645
+ eligible: z.ZodLiteral<false>;
646
+ code: z.ZodString;
647
+ action: z.ZodNull;
648
+ }, z.core.$strip>], "eligible">;
649
+ manualClosure: z.ZodDiscriminatedUnion<[z.ZodObject<{
650
+ eligible: z.ZodLiteral<true>;
651
+ code: z.ZodLiteral<"closure_available">;
652
+ }, z.core.$strip>, z.ZodObject<{
653
+ eligible: z.ZodLiteral<false>;
654
+ code: z.ZodString;
655
+ }, z.core.$strip>], "eligible">;
656
+ evaluatedAt: z.ZodISODateTime;
657
+ }, z.core.$strip>>>>;
658
+ context: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
659
+ kind: z.ZodEnum<{
660
+ order: "order";
661
+ integration_lifecycle: "integration_lifecycle";
662
+ sync_process: "sync_process";
663
+ catalog_import: "catalog_import";
664
+ integration_issue: "integration_issue";
665
+ publication_validation: "publication_validation";
666
+ publication_receipt: "publication_receipt";
667
+ }>;
668
+ resourceId: z.ZodString;
669
+ direction: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
670
+ inbound: "inbound";
671
+ outbound: "outbound";
672
+ }>>>;
673
+ reference: z.ZodNullable<z.ZodString>;
674
+ scope: z.ZodNullable<z.ZodString>;
675
+ }, z.core.$strip>>>>;
676
+ id: z.ZodString;
677
+ service: z.ZodNullable<z.ZodString>;
678
+ source: z.ZodObject<{
679
+ kind: z.ZodString;
680
+ identifier: z.ZodString;
681
+ generation: z.ZodString;
682
+ }, z.core.$strip>;
683
+ recoveryState: z.ZodEnum<{
684
+ action_required: "action_required";
685
+ automatic_recovery: "automatic_recovery";
686
+ in_progress: "in_progress";
687
+ outcome_unknown: "outcome_unknown";
688
+ succeeded: "succeeded";
689
+ superseded: "superseded";
690
+ }>;
691
+ revision: z.ZodNumber;
692
+ observedAt: z.ZodISODateTime;
693
+ nextRecoveryAt: z.ZodNullable<z.ZodISODateTime>;
694
+ manuallyClosedAt: z.ZodNullable<z.ZodISODateTime>;
695
+ }, z.core.$strip>, z.ZodTransform<{
696
+ evidenceComplete: boolean;
697
+ evidence: {
698
+ schemaVersion: 1;
699
+ code: string;
700
+ confirmed: boolean;
701
+ resources: {
702
+ kind: "integration" | "order" | "order_item" | "order_modifier" | "product" | "variant" | "modifier" | "choice" | "category" | "restaurant" | "configuration" | "publication" | "process" | "process_step" | "payment_method" | "tax";
703
+ identifier: string;
704
+ role: "cause" | "affected" | "context";
705
+ name: string | null;
706
+ parentIdentifier: string | null;
707
+ translations: Record<string, string>;
708
+ }[];
709
+ evidenceFingerprint: string;
710
+ classifierVersion: number;
711
+ } | null;
712
+ evidenceSource: {
713
+ kind: string;
714
+ identifier: string;
715
+ generation: string;
716
+ } | null;
717
+ id: string;
718
+ service: string | null;
719
+ source: {
720
+ kind: string;
721
+ identifier: string;
722
+ generation: string;
723
+ };
724
+ recoveryState: "action_required" | "automatic_recovery" | "in_progress" | "outcome_unknown" | "succeeded" | "superseded";
725
+ revision: number;
726
+ observedAt: string;
727
+ nextRecoveryAt: string | null;
728
+ manuallyClosedAt: string | null;
729
+ actions?: {
730
+ recovery: {
731
+ eligible: true;
732
+ code: "recovery_available";
733
+ action: "retry" | "reconcile" | "sync_current_state";
734
+ } | {
735
+ eligible: false;
736
+ code: string;
737
+ action: null;
738
+ };
739
+ manualClosure: {
740
+ eligible: true;
741
+ code: "closure_available";
742
+ } | {
743
+ eligible: false;
744
+ code: string;
745
+ };
746
+ evaluatedAt: string;
747
+ } | null | undefined;
748
+ context?: {
749
+ kind: "order" | "integration_lifecycle" | "sync_process" | "catalog_import" | "integration_issue" | "publication_validation" | "publication_receipt";
750
+ resourceId: string;
751
+ reference: string | null;
752
+ scope: string | null;
753
+ direction?: "inbound" | "outbound" | null | undefined;
754
+ } | null | undefined;
755
+ }, {
756
+ evidence: {
757
+ schemaVersion: 1;
758
+ code: string;
759
+ confirmed: boolean;
760
+ resources: {
761
+ kind: "integration" | "order" | "order_item" | "order_modifier" | "product" | "variant" | "modifier" | "choice" | "category" | "restaurant" | "configuration" | "publication" | "process" | "process_step" | "payment_method" | "tax";
762
+ identifier: string;
763
+ role: "cause" | "affected" | "context";
764
+ name: string | null;
765
+ parentIdentifier: string | null;
766
+ translations: Record<string, string>;
767
+ }[];
768
+ evidenceFingerprint: string;
769
+ classifierVersion: number;
770
+ } | null;
771
+ evidenceComplete: boolean;
772
+ evidenceSource: {
773
+ kind: string;
774
+ identifier: string;
775
+ generation: string;
776
+ } | null;
777
+ id: string;
778
+ service: string | null;
779
+ source: {
780
+ kind: string;
781
+ identifier: string;
782
+ generation: string;
783
+ };
784
+ recoveryState: "action_required" | "automatic_recovery" | "in_progress" | "outcome_unknown" | "succeeded" | "superseded";
785
+ revision: number;
786
+ observedAt: string;
787
+ nextRecoveryAt: string | null;
788
+ manuallyClosedAt: string | null;
789
+ actions?: {
790
+ recovery: {
791
+ eligible: true;
792
+ code: "recovery_available";
793
+ action: "retry" | "reconcile" | "sync_current_state";
794
+ } | {
795
+ eligible: false;
796
+ code: string;
797
+ action: null;
798
+ };
799
+ manualClosure: {
800
+ eligible: true;
801
+ code: "closure_available";
802
+ } | {
803
+ eligible: false;
804
+ code: string;
805
+ };
806
+ evaluatedAt: string;
807
+ } | null | undefined;
808
+ context?: {
809
+ kind: "order" | "integration_lifecycle" | "sync_process" | "catalog_import" | "integration_issue" | "publication_validation" | "publication_receipt";
810
+ resourceId: string;
811
+ reference: string | null;
812
+ scope: string | null;
813
+ direction?: "inbound" | "outbound" | null | undefined;
814
+ } | null | undefined;
815
+ }>>;
816
+ declare const diagnosticProblemSchema: z.ZodObject<{
817
+ id: z.ZodString;
818
+ pointOfSaleId: z.ZodString;
819
+ integrationId: z.ZodString;
820
+ code: z.ZodString;
821
+ confirmed: z.ZodBoolean;
822
+ causeCorrectedAt: z.ZodNullable<z.ZodISODateTime>;
823
+ summary: z.ZodObject<{
824
+ attention: z.ZodEnum<{
825
+ action_required: "action_required";
826
+ automatic_recovery: "automatic_recovery";
827
+ resolved: "resolved";
828
+ }>;
829
+ total: z.ZodNumber;
830
+ succeeded: z.ZodNumber;
831
+ manuallyHandled: z.ZodNumber;
832
+ superseded: z.ZodNumber;
833
+ actionRequired: z.ZodNumber;
834
+ automaticRecovery: z.ZodNumber;
835
+ inProgress: z.ZodNumber;
836
+ outcomeUnknown: z.ZodNumber;
837
+ outstanding: z.ZodNumber;
838
+ }, z.core.$strip>;
839
+ operations: z.ZodArray<z.ZodPipe<z.ZodObject<{
840
+ evidence: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
841
+ schemaVersion: 1;
842
+ code: string;
843
+ confirmed: boolean;
844
+ resources: {
845
+ kind: "integration" | "order" | "order_item" | "order_modifier" | "product" | "variant" | "modifier" | "choice" | "category" | "restaurant" | "configuration" | "publication" | "process" | "process_step" | "payment_method" | "tax";
846
+ identifier: string;
847
+ role: "cause" | "affected" | "context";
848
+ name: string | null;
849
+ parentIdentifier: string | null;
850
+ translations: Record<string, string>;
851
+ }[];
852
+ evidenceFingerprint: string;
853
+ classifierVersion: number;
854
+ } | null, unknown>>;
855
+ evidenceComplete: z.ZodBoolean;
856
+ evidenceSource: z.ZodNullable<z.ZodObject<{
857
+ kind: z.ZodString;
858
+ identifier: z.ZodString;
859
+ generation: z.ZodString;
860
+ }, z.core.$strip>>;
861
+ actions: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
862
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
863
+ eligible: z.ZodLiteral<true>;
864
+ code: z.ZodLiteral<"recovery_available">;
865
+ action: z.ZodEnum<{
866
+ retry: "retry";
867
+ reconcile: "reconcile";
868
+ sync_current_state: "sync_current_state";
869
+ }>;
870
+ }, z.core.$strip>, z.ZodObject<{
871
+ eligible: z.ZodLiteral<false>;
872
+ code: z.ZodString;
873
+ action: z.ZodNull;
874
+ }, z.core.$strip>], "eligible">;
875
+ manualClosure: z.ZodDiscriminatedUnion<[z.ZodObject<{
876
+ eligible: z.ZodLiteral<true>;
877
+ code: z.ZodLiteral<"closure_available">;
878
+ }, z.core.$strip>, z.ZodObject<{
879
+ eligible: z.ZodLiteral<false>;
880
+ code: z.ZodString;
881
+ }, z.core.$strip>], "eligible">;
882
+ evaluatedAt: z.ZodISODateTime;
883
+ }, z.core.$strip>>>>;
884
+ context: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
885
+ kind: z.ZodEnum<{
886
+ order: "order";
887
+ integration_lifecycle: "integration_lifecycle";
888
+ sync_process: "sync_process";
889
+ catalog_import: "catalog_import";
890
+ integration_issue: "integration_issue";
891
+ publication_validation: "publication_validation";
892
+ publication_receipt: "publication_receipt";
893
+ }>;
894
+ resourceId: z.ZodString;
895
+ direction: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
896
+ inbound: "inbound";
897
+ outbound: "outbound";
898
+ }>>>;
899
+ reference: z.ZodNullable<z.ZodString>;
900
+ scope: z.ZodNullable<z.ZodString>;
901
+ }, z.core.$strip>>>>;
902
+ id: z.ZodString;
903
+ service: z.ZodNullable<z.ZodString>;
904
+ source: z.ZodObject<{
905
+ kind: z.ZodString;
906
+ identifier: z.ZodString;
907
+ generation: z.ZodString;
908
+ }, z.core.$strip>;
909
+ recoveryState: z.ZodEnum<{
910
+ action_required: "action_required";
911
+ automatic_recovery: "automatic_recovery";
912
+ in_progress: "in_progress";
913
+ outcome_unknown: "outcome_unknown";
914
+ succeeded: "succeeded";
915
+ superseded: "superseded";
916
+ }>;
917
+ revision: z.ZodNumber;
918
+ observedAt: z.ZodISODateTime;
919
+ nextRecoveryAt: z.ZodNullable<z.ZodISODateTime>;
920
+ manuallyClosedAt: z.ZodNullable<z.ZodISODateTime>;
921
+ }, z.core.$strip>, z.ZodTransform<{
922
+ evidenceComplete: boolean;
923
+ evidence: {
924
+ schemaVersion: 1;
925
+ code: string;
926
+ confirmed: boolean;
927
+ resources: {
928
+ kind: "integration" | "order" | "order_item" | "order_modifier" | "product" | "variant" | "modifier" | "choice" | "category" | "restaurant" | "configuration" | "publication" | "process" | "process_step" | "payment_method" | "tax";
929
+ identifier: string;
930
+ role: "cause" | "affected" | "context";
931
+ name: string | null;
932
+ parentIdentifier: string | null;
933
+ translations: Record<string, string>;
934
+ }[];
935
+ evidenceFingerprint: string;
936
+ classifierVersion: number;
937
+ } | null;
938
+ evidenceSource: {
939
+ kind: string;
940
+ identifier: string;
941
+ generation: string;
942
+ } | null;
943
+ id: string;
944
+ service: string | null;
945
+ source: {
946
+ kind: string;
947
+ identifier: string;
948
+ generation: string;
949
+ };
950
+ recoveryState: "action_required" | "automatic_recovery" | "in_progress" | "outcome_unknown" | "succeeded" | "superseded";
951
+ revision: number;
952
+ observedAt: string;
953
+ nextRecoveryAt: string | null;
954
+ manuallyClosedAt: string | null;
955
+ actions?: {
956
+ recovery: {
957
+ eligible: true;
958
+ code: "recovery_available";
959
+ action: "retry" | "reconcile" | "sync_current_state";
960
+ } | {
961
+ eligible: false;
962
+ code: string;
963
+ action: null;
964
+ };
965
+ manualClosure: {
966
+ eligible: true;
967
+ code: "closure_available";
968
+ } | {
969
+ eligible: false;
970
+ code: string;
971
+ };
972
+ evaluatedAt: string;
973
+ } | null | undefined;
974
+ context?: {
975
+ kind: "order" | "integration_lifecycle" | "sync_process" | "catalog_import" | "integration_issue" | "publication_validation" | "publication_receipt";
976
+ resourceId: string;
977
+ reference: string | null;
978
+ scope: string | null;
979
+ direction?: "inbound" | "outbound" | null | undefined;
980
+ } | null | undefined;
981
+ }, {
982
+ evidence: {
983
+ schemaVersion: 1;
984
+ code: string;
985
+ confirmed: boolean;
986
+ resources: {
987
+ kind: "integration" | "order" | "order_item" | "order_modifier" | "product" | "variant" | "modifier" | "choice" | "category" | "restaurant" | "configuration" | "publication" | "process" | "process_step" | "payment_method" | "tax";
988
+ identifier: string;
989
+ role: "cause" | "affected" | "context";
990
+ name: string | null;
991
+ parentIdentifier: string | null;
992
+ translations: Record<string, string>;
993
+ }[];
994
+ evidenceFingerprint: string;
995
+ classifierVersion: number;
996
+ } | null;
997
+ evidenceComplete: boolean;
998
+ evidenceSource: {
999
+ kind: string;
1000
+ identifier: string;
1001
+ generation: string;
1002
+ } | null;
1003
+ id: string;
1004
+ service: string | null;
1005
+ source: {
1006
+ kind: string;
1007
+ identifier: string;
1008
+ generation: string;
1009
+ };
1010
+ recoveryState: "action_required" | "automatic_recovery" | "in_progress" | "outcome_unknown" | "succeeded" | "superseded";
1011
+ revision: number;
1012
+ observedAt: string;
1013
+ nextRecoveryAt: string | null;
1014
+ manuallyClosedAt: string | null;
1015
+ actions?: {
1016
+ recovery: {
1017
+ eligible: true;
1018
+ code: "recovery_available";
1019
+ action: "retry" | "reconcile" | "sync_current_state";
1020
+ } | {
1021
+ eligible: false;
1022
+ code: string;
1023
+ action: null;
1024
+ };
1025
+ manualClosure: {
1026
+ eligible: true;
1027
+ code: "closure_available";
1028
+ } | {
1029
+ eligible: false;
1030
+ code: string;
1031
+ };
1032
+ evaluatedAt: string;
1033
+ } | null | undefined;
1034
+ context?: {
1035
+ kind: "order" | "integration_lifecycle" | "sync_process" | "catalog_import" | "integration_issue" | "publication_validation" | "publication_receipt";
1036
+ resourceId: string;
1037
+ reference: string | null;
1038
+ scope: string | null;
1039
+ direction?: "inbound" | "outbound" | null | undefined;
1040
+ } | null | undefined;
1041
+ }>>>;
1042
+ page: z.ZodNumber;
1043
+ itemsPerPage: z.ZodNumber;
1044
+ hasNextPage: z.ZodBoolean;
1045
+ verification: z.ZodObject<{
1046
+ scope: z.ZodLiteral<"local">;
1047
+ outcome: z.ZodEnum<{
1048
+ unknown: "unknown";
1049
+ cause_present: "cause_present";
1050
+ cause_absent: "cause_absent";
1051
+ }>;
1052
+ reason: z.ZodString;
1053
+ checkedAt: z.ZodNullable<z.ZodISODateTime>;
1054
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
1055
+ fresh: z.ZodBoolean;
1056
+ findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1057
+ schemaVersion: z.ZodLiteral<1>;
1058
+ code: z.ZodString;
1059
+ confirmed: z.ZodBoolean;
1060
+ resources: z.ZodArray<z.ZodObject<{
1061
+ kind: z.ZodEnum<{
1062
+ integration: "integration";
1063
+ order: "order";
1064
+ order_item: "order_item";
1065
+ order_modifier: "order_modifier";
1066
+ product: "product";
1067
+ variant: "variant";
1068
+ modifier: "modifier";
1069
+ choice: "choice";
1070
+ category: "category";
1071
+ restaurant: "restaurant";
1072
+ configuration: "configuration";
1073
+ publication: "publication";
1074
+ process: "process";
1075
+ process_step: "process_step";
1076
+ payment_method: "payment_method";
1077
+ tax: "tax";
1078
+ }>;
1079
+ identifier: z.ZodString;
1080
+ role: z.ZodEnum<{
1081
+ cause: "cause";
1082
+ affected: "affected";
1083
+ context: "context";
1084
+ }>;
1085
+ name: z.ZodNullable<z.ZodString>;
1086
+ parentIdentifier: z.ZodNullable<z.ZodString>;
1087
+ translations: z.ZodPipe<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodNever>]>, z.ZodTransform<Record<string, string>, never[] | Record<string, string>>>;
1088
+ }, z.core.$strip>>;
1089
+ evidenceFingerprint: z.ZodString;
1090
+ classifierVersion: z.ZodNumber;
1091
+ }, z.core.$strip>>>;
1092
+ }, z.core.$strip>;
1093
+ }, z.core.$strip>;
1094
+ declare const diagnosticProblemSummarySchema: z.ZodObject<{
1095
+ id: z.ZodString;
1096
+ pointOfSaleId: z.ZodString;
1097
+ integrationId: z.ZodString;
1098
+ code: z.ZodString;
1099
+ confirmed: z.ZodBoolean;
1100
+ summary: z.ZodObject<{
1101
+ attention: z.ZodEnum<{
1102
+ action_required: "action_required";
1103
+ automatic_recovery: "automatic_recovery";
1104
+ resolved: "resolved";
1105
+ }>;
1106
+ total: z.ZodNumber;
1107
+ succeeded: z.ZodNumber;
1108
+ manuallyHandled: z.ZodNumber;
1109
+ superseded: z.ZodNumber;
1110
+ actionRequired: z.ZodNumber;
1111
+ automaticRecovery: z.ZodNumber;
1112
+ inProgress: z.ZodNumber;
1113
+ outcomeUnknown: z.ZodNumber;
1114
+ outstanding: z.ZodNumber;
1115
+ }, z.core.$strip>;
1116
+ exampleOperation: z.ZodNullable<z.ZodPipe<z.ZodObject<{
1117
+ evidence: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
1118
+ schemaVersion: 1;
1119
+ code: string;
1120
+ confirmed: boolean;
1121
+ resources: {
1122
+ kind: "integration" | "order" | "order_item" | "order_modifier" | "product" | "variant" | "modifier" | "choice" | "category" | "restaurant" | "configuration" | "publication" | "process" | "process_step" | "payment_method" | "tax";
1123
+ identifier: string;
1124
+ role: "cause" | "affected" | "context";
1125
+ name: string | null;
1126
+ parentIdentifier: string | null;
1127
+ translations: Record<string, string>;
1128
+ }[];
1129
+ evidenceFingerprint: string;
1130
+ classifierVersion: number;
1131
+ } | null, unknown>>;
1132
+ evidenceComplete: z.ZodBoolean;
1133
+ evidenceSource: z.ZodNullable<z.ZodObject<{
1134
+ kind: z.ZodString;
1135
+ identifier: z.ZodString;
1136
+ generation: z.ZodString;
1137
+ }, z.core.$strip>>;
1138
+ actions: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1139
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
1140
+ eligible: z.ZodLiteral<true>;
1141
+ code: z.ZodLiteral<"recovery_available">;
1142
+ action: z.ZodEnum<{
1143
+ retry: "retry";
1144
+ reconcile: "reconcile";
1145
+ sync_current_state: "sync_current_state";
1146
+ }>;
1147
+ }, z.core.$strip>, z.ZodObject<{
1148
+ eligible: z.ZodLiteral<false>;
1149
+ code: z.ZodString;
1150
+ action: z.ZodNull;
1151
+ }, z.core.$strip>], "eligible">;
1152
+ manualClosure: z.ZodDiscriminatedUnion<[z.ZodObject<{
1153
+ eligible: z.ZodLiteral<true>;
1154
+ code: z.ZodLiteral<"closure_available">;
1155
+ }, z.core.$strip>, z.ZodObject<{
1156
+ eligible: z.ZodLiteral<false>;
1157
+ code: z.ZodString;
1158
+ }, z.core.$strip>], "eligible">;
1159
+ evaluatedAt: z.ZodISODateTime;
1160
+ }, z.core.$strip>>>>;
1161
+ context: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1162
+ kind: z.ZodEnum<{
1163
+ order: "order";
1164
+ integration_lifecycle: "integration_lifecycle";
1165
+ sync_process: "sync_process";
1166
+ catalog_import: "catalog_import";
1167
+ integration_issue: "integration_issue";
1168
+ publication_validation: "publication_validation";
1169
+ publication_receipt: "publication_receipt";
1170
+ }>;
1171
+ resourceId: z.ZodString;
1172
+ direction: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1173
+ inbound: "inbound";
1174
+ outbound: "outbound";
1175
+ }>>>;
1176
+ reference: z.ZodNullable<z.ZodString>;
1177
+ scope: z.ZodNullable<z.ZodString>;
1178
+ }, z.core.$strip>>>>;
1179
+ id: z.ZodString;
1180
+ service: z.ZodNullable<z.ZodString>;
1181
+ source: z.ZodObject<{
1182
+ kind: z.ZodString;
1183
+ identifier: z.ZodString;
1184
+ generation: z.ZodString;
1185
+ }, z.core.$strip>;
1186
+ recoveryState: z.ZodEnum<{
1187
+ action_required: "action_required";
1188
+ automatic_recovery: "automatic_recovery";
1189
+ in_progress: "in_progress";
1190
+ outcome_unknown: "outcome_unknown";
1191
+ succeeded: "succeeded";
1192
+ superseded: "superseded";
1193
+ }>;
1194
+ revision: z.ZodNumber;
1195
+ observedAt: z.ZodISODateTime;
1196
+ nextRecoveryAt: z.ZodNullable<z.ZodISODateTime>;
1197
+ manuallyClosedAt: z.ZodNullable<z.ZodISODateTime>;
1198
+ }, z.core.$strip>, z.ZodTransform<{
1199
+ evidenceComplete: boolean;
1200
+ evidence: {
1201
+ schemaVersion: 1;
1202
+ code: string;
1203
+ confirmed: boolean;
1204
+ resources: {
1205
+ kind: "integration" | "order" | "order_item" | "order_modifier" | "product" | "variant" | "modifier" | "choice" | "category" | "restaurant" | "configuration" | "publication" | "process" | "process_step" | "payment_method" | "tax";
1206
+ identifier: string;
1207
+ role: "cause" | "affected" | "context";
1208
+ name: string | null;
1209
+ parentIdentifier: string | null;
1210
+ translations: Record<string, string>;
1211
+ }[];
1212
+ evidenceFingerprint: string;
1213
+ classifierVersion: number;
1214
+ } | null;
1215
+ evidenceSource: {
1216
+ kind: string;
1217
+ identifier: string;
1218
+ generation: string;
1219
+ } | null;
1220
+ id: string;
1221
+ service: string | null;
1222
+ source: {
1223
+ kind: string;
1224
+ identifier: string;
1225
+ generation: string;
1226
+ };
1227
+ recoveryState: "action_required" | "automatic_recovery" | "in_progress" | "outcome_unknown" | "succeeded" | "superseded";
1228
+ revision: number;
1229
+ observedAt: string;
1230
+ nextRecoveryAt: string | null;
1231
+ manuallyClosedAt: string | null;
1232
+ actions?: {
1233
+ recovery: {
1234
+ eligible: true;
1235
+ code: "recovery_available";
1236
+ action: "retry" | "reconcile" | "sync_current_state";
1237
+ } | {
1238
+ eligible: false;
1239
+ code: string;
1240
+ action: null;
1241
+ };
1242
+ manualClosure: {
1243
+ eligible: true;
1244
+ code: "closure_available";
1245
+ } | {
1246
+ eligible: false;
1247
+ code: string;
1248
+ };
1249
+ evaluatedAt: string;
1250
+ } | null | undefined;
1251
+ context?: {
1252
+ kind: "order" | "integration_lifecycle" | "sync_process" | "catalog_import" | "integration_issue" | "publication_validation" | "publication_receipt";
1253
+ resourceId: string;
1254
+ reference: string | null;
1255
+ scope: string | null;
1256
+ direction?: "inbound" | "outbound" | null | undefined;
1257
+ } | null | undefined;
1258
+ }, {
1259
+ evidence: {
1260
+ schemaVersion: 1;
1261
+ code: string;
1262
+ confirmed: boolean;
1263
+ resources: {
1264
+ kind: "integration" | "order" | "order_item" | "order_modifier" | "product" | "variant" | "modifier" | "choice" | "category" | "restaurant" | "configuration" | "publication" | "process" | "process_step" | "payment_method" | "tax";
1265
+ identifier: string;
1266
+ role: "cause" | "affected" | "context";
1267
+ name: string | null;
1268
+ parentIdentifier: string | null;
1269
+ translations: Record<string, string>;
1270
+ }[];
1271
+ evidenceFingerprint: string;
1272
+ classifierVersion: number;
1273
+ } | null;
1274
+ evidenceComplete: boolean;
1275
+ evidenceSource: {
1276
+ kind: string;
1277
+ identifier: string;
1278
+ generation: string;
1279
+ } | null;
1280
+ id: string;
1281
+ service: string | null;
1282
+ source: {
1283
+ kind: string;
1284
+ identifier: string;
1285
+ generation: string;
1286
+ };
1287
+ recoveryState: "action_required" | "automatic_recovery" | "in_progress" | "outcome_unknown" | "succeeded" | "superseded";
1288
+ revision: number;
1289
+ observedAt: string;
1290
+ nextRecoveryAt: string | null;
1291
+ manuallyClosedAt: string | null;
1292
+ actions?: {
1293
+ recovery: {
1294
+ eligible: true;
1295
+ code: "recovery_available";
1296
+ action: "retry" | "reconcile" | "sync_current_state";
1297
+ } | {
1298
+ eligible: false;
1299
+ code: string;
1300
+ action: null;
1301
+ };
1302
+ manualClosure: {
1303
+ eligible: true;
1304
+ code: "closure_available";
1305
+ } | {
1306
+ eligible: false;
1307
+ code: string;
1308
+ };
1309
+ evaluatedAt: string;
1310
+ } | null | undefined;
1311
+ context?: {
1312
+ kind: "order" | "integration_lifecycle" | "sync_process" | "catalog_import" | "integration_issue" | "publication_validation" | "publication_receipt";
1313
+ resourceId: string;
1314
+ reference: string | null;
1315
+ scope: string | null;
1316
+ direction?: "inbound" | "outbound" | null | undefined;
1317
+ } | null | undefined;
1318
+ }>>>;
1319
+ detailPath: z.ZodString;
1320
+ }, z.core.$strip>;
1321
+ declare const diagnosticOverviewSchema: z.ZodObject<{
1322
+ pointOfSaleId: z.ZodString;
1323
+ openProblems: z.ZodNumber;
1324
+ affectedOperations: z.ZodNumber;
1325
+ outstandingOperations: z.ZodNumber;
1326
+ generatedAt: z.ZodISODateTime;
1327
+ problemAttention: z.ZodObject<{
1328
+ action_required: z.ZodNumber;
1329
+ automatic_recovery: z.ZodNumber;
1330
+ resolved: z.ZodNumber;
1331
+ }, z.core.$strip>;
1332
+ operationOutcomes: z.ZodObject<{
1333
+ action_required: z.ZodNumber;
1334
+ automatic_recovery: z.ZodNumber;
1335
+ in_progress: z.ZodNumber;
1336
+ outcome_unknown: z.ZodNumber;
1337
+ succeeded: z.ZodNumber;
1338
+ superseded: z.ZodNumber;
1339
+ manually_handled: z.ZodNumber;
1340
+ }, z.core.$strip>;
1341
+ }, z.core.$strip>;
1342
+ type DiagnosticProblem = z.infer<typeof diagnosticProblemSchema>;
1343
+ type DiagnosticProblemSummary = z.infer<typeof diagnosticProblemSummarySchema>;
1344
+ type DiagnosticAffectedOperation = z.infer<typeof diagnosticAffectedOperationSchema>;
1345
+ type DiagnosticOverview = z.infer<typeof diagnosticOverviewSchema>;
1346
+
1347
+ declare const diagnosticInvalidationSchema: z.ZodObject<{
1348
+ type: z.ZodLiteral<"update">;
1349
+ class: z.ZodLiteral<"App\\IntegrationDiagnostics\\Realtime\\DiagnosticInvalidation">;
1350
+ payload: z.ZodObject<{
1351
+ event: z.ZodLiteral<"update">;
1352
+ data: z.ZodObject<{
1353
+ pointOfSaleId: z.ZodString;
1354
+ revision: z.ZodString;
1355
+ }, z.core.$strip>;
1356
+ }, z.core.$strip>;
1357
+ }, z.core.$strip>;
1358
+ /** Invalidation only: callers must reread authorized snapshots, never increment totals. */
1359
+ declare function diagnosticInvalidationRevision(envelope: unknown, pointOfSaleId: string): string | null;
1360
+
1361
+ declare const diagnosticRecoveryInputSchema: z.ZodObject<{
1362
+ requestKey: z.ZodString;
1363
+ operations: z.ZodArray<z.ZodObject<{
1364
+ operationId: z.ZodString;
1365
+ revision: z.ZodNumber;
1366
+ }, z.core.$strict>>;
1367
+ }, z.core.$strict>;
1368
+ declare const diagnosticManualClosureInputSchema: z.ZodObject<{
1369
+ revision: z.ZodNumber;
1370
+ reason: z.ZodString;
1371
+ }, z.core.$strict>;
1372
+ declare const diagnosticRecoveryPreviewSchema: z.ZodObject<{
1373
+ id: z.ZodString;
1374
+ pointOfSaleId: z.ZodString;
1375
+ evaluatedAt: z.ZodISODateTime;
1376
+ items: z.ZodArray<z.ZodPipe<z.ZodObject<{
1377
+ operationId: z.ZodString;
1378
+ revision: z.ZodNumber;
1379
+ eligible: z.ZodBoolean;
1380
+ code: z.ZodString;
1381
+ action: z.ZodCatch<z.ZodNullable<z.ZodEnum<{
1382
+ retry: "retry";
1383
+ reconcile: "reconcile";
1384
+ sync_current_state: "sync_current_state";
1385
+ }>>>;
1386
+ }, z.core.$strip>, z.ZodTransform<{
1387
+ eligible: boolean;
1388
+ operationId: string;
1389
+ revision: number;
1390
+ code: string;
1391
+ action: "retry" | "reconcile" | "sync_current_state" | null;
1392
+ }, {
1393
+ operationId: string;
1394
+ revision: number;
1395
+ eligible: boolean;
1396
+ code: string;
1397
+ action: "retry" | "reconcile" | "sync_current_state" | null;
1398
+ }>>>;
1399
+ }, z.core.$strip>;
1400
+ declare const diagnosticRecoveryRequestSchema: z.ZodObject<{
1401
+ id: z.ZodString;
1402
+ pointOfSaleId: z.ZodString;
1403
+ requestedAt: z.ZodISODateTime;
1404
+ items: z.ZodArray<z.ZodObject<{
1405
+ id: z.ZodString;
1406
+ operationId: z.ZodString;
1407
+ expectedRevision: z.ZodNumber;
1408
+ status: z.ZodEnum<{
1409
+ running: "running";
1410
+ failed: "failed";
1411
+ unavailable: "unavailable";
1412
+ queued: "queued";
1413
+ submitted: "submitted";
1414
+ rejected: "rejected";
1415
+ }>;
1416
+ resultCode: z.ZodString;
1417
+ action: z.ZodCatch<z.ZodNullable<z.ZodEnum<{
1418
+ retry: "retry";
1419
+ reconcile: "reconcile";
1420
+ sync_current_state: "sync_current_state";
1421
+ }>>>;
1422
+ submittedSource: z.ZodNullable<z.ZodObject<{
1423
+ kind: z.ZodString;
1424
+ identifier: z.ZodString;
1425
+ generation: z.ZodString;
1426
+ }, z.core.$strip>>;
1427
+ service: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1428
+ context: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1429
+ kind: z.ZodEnum<{
1430
+ order: "order";
1431
+ integration_lifecycle: "integration_lifecycle";
1432
+ sync_process: "sync_process";
1433
+ catalog_import: "catalog_import";
1434
+ integration_issue: "integration_issue";
1435
+ publication_validation: "publication_validation";
1436
+ publication_receipt: "publication_receipt";
1437
+ }>;
1438
+ resourceId: z.ZodString;
1439
+ direction: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1440
+ inbound: "inbound";
1441
+ outbound: "outbound";
1442
+ }>>>;
1443
+ reference: z.ZodNullable<z.ZodString>;
1444
+ scope: z.ZodNullable<z.ZodString>;
1445
+ }, z.core.$strip>>>>;
1446
+ recoveryState: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1447
+ action_required: "action_required";
1448
+ automatic_recovery: "automatic_recovery";
1449
+ in_progress: "in_progress";
1450
+ outcome_unknown: "outcome_unknown";
1451
+ succeeded: "succeeded";
1452
+ superseded: "superseded";
1453
+ }>>>>;
1454
+ observedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
1455
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
1456
+ deliveryState: z.ZodNullable<z.ZodEnum<{
1457
+ pending: "pending";
1458
+ not_required: "not_required";
1459
+ attention_required: "attention_required";
1460
+ published: "published";
1461
+ }>>;
1462
+ }, z.core.$strip>>;
1463
+ }, z.core.$strip>;
1464
+ type DiagnosticRecoveryInput = z.input<typeof diagnosticRecoveryInputSchema>;
1465
+ type DiagnosticRecoveryPreview = z.infer<typeof diagnosticRecoveryPreviewSchema>;
1466
+ type DiagnosticRecoveryRequest = z.infer<typeof diagnosticRecoveryRequestSchema>;
1467
+
1468
+ /** Explain the actual native recovery boundary before the customer confirms. */
1469
+ declare function describeDiagnosticRecovery(sourceKind: string | undefined, action: string | null, locale: DiagnosticLocale): string | null;
1470
+ type RecoveryReceiptState = 'queued' | 'submitted' | 'published' | 'attention' | 'rejected' | 'unavailable';
1471
+ /** Request delivery is not the outcome of the native operation. */
1472
+ declare function describeDiagnosticRecoveryItem(item: {
1473
+ status: string;
1474
+ deliveryState: string | null;
1475
+ resultCode: string;
1476
+ }, locale: DiagnosticLocale): {
1477
+ state: RecoveryReceiptState;
1478
+ title: string;
1479
+ explanation: string;
1480
+ };
1481
+
1482
+ declare class CloseDiagnosticOperation extends AbstractApiRequest<typeof diagnosticManualClosureInputSchema, typeof diagnosticOperationSchema> {
1483
+ private readonly operationId;
1484
+ readonly method: "POST";
1485
+ readonly contentType: "application/json";
1486
+ readonly accept: "application/json";
1487
+ readonly inputSchema: z.ZodObject<{
1488
+ revision: z.ZodNumber;
1489
+ reason: z.ZodString;
1490
+ }, z.core.$strict>;
1491
+ readonly outputSchema: z.ZodObject<{
1492
+ pointOfSaleId: z.ZodString;
1493
+ integrationId: z.ZodString;
1494
+ actions: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1495
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
1496
+ eligible: z.ZodLiteral<true>;
1497
+ code: z.ZodLiteral<"recovery_available">;
1498
+ action: z.ZodEnum<{
1499
+ retry: "retry";
1500
+ reconcile: "reconcile";
1501
+ sync_current_state: "sync_current_state";
1502
+ }>;
1503
+ }, z.core.$strip>, z.ZodObject<{
1504
+ eligible: z.ZodLiteral<false>;
1505
+ code: z.ZodString;
1506
+ action: z.ZodNull;
1507
+ }, z.core.$strip>], "eligible">;
1508
+ manualClosure: z.ZodDiscriminatedUnion<[z.ZodObject<{
1509
+ eligible: z.ZodLiteral<true>;
1510
+ code: z.ZodLiteral<"closure_available">;
1511
+ }, z.core.$strip>, z.ZodObject<{
1512
+ eligible: z.ZodLiteral<false>;
1513
+ code: z.ZodString;
1514
+ }, z.core.$strip>], "eligible">;
1515
+ evaluatedAt: z.ZodISODateTime;
1516
+ }, z.core.$strip>>>>;
1517
+ context: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1518
+ kind: z.ZodEnum<{
1519
+ order: "order";
1520
+ integration_lifecycle: "integration_lifecycle";
1521
+ sync_process: "sync_process";
1522
+ catalog_import: "catalog_import";
1523
+ integration_issue: "integration_issue";
1524
+ publication_validation: "publication_validation";
1525
+ publication_receipt: "publication_receipt";
1526
+ }>;
1527
+ resourceId: z.ZodString;
1528
+ direction: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1529
+ inbound: "inbound";
1530
+ outbound: "outbound";
1531
+ }>>>;
1532
+ reference: z.ZodNullable<z.ZodString>;
1533
+ scope: z.ZodNullable<z.ZodString>;
1534
+ }, z.core.$strip>>>>;
1535
+ id: z.ZodString;
1536
+ service: z.ZodNullable<z.ZodString>;
1537
+ source: z.ZodObject<{
1538
+ kind: z.ZodString;
1539
+ identifier: z.ZodString;
1540
+ generation: z.ZodString;
1541
+ }, z.core.$strip>;
1542
+ recoveryState: z.ZodEnum<{
1543
+ action_required: "action_required";
1544
+ automatic_recovery: "automatic_recovery";
1545
+ in_progress: "in_progress";
1546
+ outcome_unknown: "outcome_unknown";
1547
+ succeeded: "succeeded";
1548
+ superseded: "superseded";
1549
+ }>;
1550
+ revision: z.ZodNumber;
1551
+ observedAt: z.ZodISODateTime;
1552
+ nextRecoveryAt: z.ZodNullable<z.ZodISODateTime>;
1553
+ manuallyClosedAt: z.ZodNullable<z.ZodISODateTime>;
1554
+ }, z.core.$strip>;
1555
+ readonly querySchema: undefined;
1556
+ readonly headersSchema: undefined;
1557
+ constructor(operationId: string, input: z.input<typeof diagnosticManualClosureInputSchema>);
1558
+ getPath(): string;
1559
+ }
1560
+
1561
+ declare const emptyInputSchema$b: z.ZodUndefined;
1562
+ declare class GetDiagnosticAssistanceDetails extends AbstractApiRequest<typeof emptyInputSchema$b, typeof diagnosticAssistanceSchema, z.infer<typeof diagnosticAssistanceQuerySchema>> {
1563
+ private readonly id;
1564
+ readonly method: "GET";
1565
+ readonly contentType: "application/json";
1566
+ readonly accept: "application/json";
1567
+ readonly inputSchema: z.ZodUndefined;
1568
+ readonly outputSchema: z.ZodObject<{
1569
+ id: z.ZodString;
1570
+ problemId: z.ZodString;
1571
+ state: z.ZodEnum<{
1572
+ requested: "requested";
1573
+ assigned: "assigned";
1574
+ waiting_for_customer: "waiting_for_customer";
1575
+ completed: "completed";
1576
+ }>;
1577
+ revision: z.ZodNumber;
1578
+ assigned: z.ZodBoolean;
1579
+ createdAt: z.ZodISODateTime;
1580
+ updatedAt: z.ZodISODateTime;
1581
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
1582
+ events: z.ZodObject<{
1583
+ data: z.ZodArray<z.ZodObject<{
1584
+ id: z.ZodString;
1585
+ kind: z.ZodEnum<{
1586
+ complete: "complete";
1587
+ note: "note";
1588
+ wait_for_customer: "wait_for_customer";
1589
+ claim: "claim";
1590
+ release: "release";
1591
+ requested: "requested";
1592
+ }>;
1593
+ body: z.ZodNullable<z.ZodString>;
1594
+ authorKind: z.ZodEnum<{
1595
+ customer: "customer";
1596
+ support: "support";
1597
+ }>;
1598
+ occurredAt: z.ZodISODateTime;
1599
+ }, z.core.$strip>>;
1600
+ hasNextPage: z.ZodBoolean;
1601
+ }, z.core.$strip>;
1602
+ page: z.ZodNumber;
1603
+ itemsPerPage: z.ZodNumber;
1604
+ }, z.core.$strip>;
1605
+ readonly querySchema: z.ZodObject<{
1606
+ page: z.ZodOptional<z.ZodNumber>;
1607
+ itemsPerPage: z.ZodOptional<z.ZodNumber>;
1608
+ }, z.core.$strip>;
1609
+ readonly headersSchema: undefined;
1610
+ constructor(id: string, options?: {
1611
+ query?: z.infer<typeof diagnosticAssistanceQuerySchema>;
1612
+ });
1613
+ getPath(): string;
1614
+ }
1615
+
1616
+ declare const emptyInputSchema$a: z.ZodUndefined;
1617
+ declare class GetDiagnosticAssistanceHistory extends AbstractApiRequest<typeof emptyInputSchema$a, typeof diagnosticAssistanceHistorySchema, z.infer<typeof diagnosticAssistanceQuerySchema>> {
1618
+ private readonly id;
1619
+ readonly method: "GET";
1620
+ readonly contentType: "application/json";
1621
+ readonly accept: "application/json";
1622
+ readonly inputSchema: z.ZodUndefined;
1623
+ readonly outputSchema: z.ZodObject<{
1624
+ data: z.ZodArray<z.ZodObject<{
1625
+ id: z.ZodString;
1626
+ problemId: z.ZodString;
1627
+ state: z.ZodEnum<{
1628
+ requested: "requested";
1629
+ assigned: "assigned";
1630
+ waiting_for_customer: "waiting_for_customer";
1631
+ completed: "completed";
1632
+ }>;
1633
+ revision: z.ZodNumber;
1634
+ assigned: z.ZodBoolean;
1635
+ createdAt: z.ZodISODateTime;
1636
+ updatedAt: z.ZodISODateTime;
1637
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
1638
+ }, z.core.$strip>>;
1639
+ hasNextPage: z.ZodBoolean;
1640
+ page: z.ZodNumber;
1641
+ itemsPerPage: z.ZodNumber;
1642
+ id: z.ZodString;
1643
+ }, z.core.$strip>;
1644
+ readonly querySchema: z.ZodObject<{
1645
+ page: z.ZodOptional<z.ZodNumber>;
1646
+ itemsPerPage: z.ZodOptional<z.ZodNumber>;
1647
+ }, z.core.$strip>;
1648
+ readonly headersSchema: undefined;
1649
+ constructor(id: string, options?: {
1650
+ query?: z.infer<typeof diagnosticAssistanceQuerySchema>;
1651
+ });
1652
+ getPath(): string;
1653
+ }
1654
+
1655
+ declare const emptyInputSchema$9: z.ZodUndefined;
1656
+ declare class GetDiagnosticAssistanceInternal extends AbstractApiRequest<typeof emptyInputSchema$9, typeof diagnosticAssistanceInternalSchema, z.infer<typeof diagnosticAssistanceQuerySchema>> {
1657
+ private readonly id;
1658
+ readonly method: "GET";
1659
+ readonly contentType: "application/json";
1660
+ readonly accept: "application/json";
1661
+ readonly inputSchema: z.ZodUndefined;
1662
+ readonly outputSchema: z.ZodObject<{
1663
+ events: z.ZodObject<{
1664
+ data: z.ZodArray<z.ZodObject<{
1665
+ id: z.ZodString;
1666
+ body: z.ZodNullable<z.ZodString>;
1667
+ occurredAt: z.ZodISODateTime;
1668
+ kind: z.ZodLiteral<"note">;
1669
+ authorKind: z.ZodLiteral<"support">;
1670
+ actorId: z.ZodString;
1671
+ }, z.core.$strip>>;
1672
+ hasNextPage: z.ZodBoolean;
1673
+ }, z.core.$strip>;
1674
+ page: z.ZodNumber;
1675
+ itemsPerPage: z.ZodNumber;
1676
+ id: z.ZodString;
1677
+ assignedTo: z.ZodNullable<z.ZodString>;
1678
+ requestedBy: z.ZodString;
1679
+ }, z.core.$strip>;
1680
+ readonly querySchema: z.ZodObject<{
1681
+ page: z.ZodOptional<z.ZodNumber>;
1682
+ itemsPerPage: z.ZodOptional<z.ZodNumber>;
1683
+ }, z.core.$strip>;
1684
+ readonly headersSchema: undefined;
1685
+ constructor(id: string, options?: {
1686
+ query?: z.infer<typeof diagnosticAssistanceQuerySchema>;
1687
+ });
1688
+ getPath(): string;
1689
+ }
1690
+
1691
+ declare const emptyInputSchema$8: z.ZodUndefined;
1692
+ declare const diagnosticAssistanceQueueQuerySchema: z.ZodObject<{
1693
+ page: z.ZodOptional<z.ZodNumber>;
1694
+ itemsPerPage: z.ZodOptional<z.ZodNumber>;
1695
+ state: z.ZodOptional<z.ZodEnum<{
1696
+ requested: "requested";
1697
+ assigned: "assigned";
1698
+ waiting_for_customer: "waiting_for_customer";
1699
+ completed: "completed";
1700
+ open: "open";
1701
+ all: "all";
1702
+ }>>;
1703
+ assignment: z.ZodOptional<z.ZodEnum<{
1704
+ all: "all";
1705
+ mine: "mine";
1706
+ unassigned: "unassigned";
1707
+ }>>;
1708
+ pointOfSaleId: z.ZodOptional<z.ZodString>;
1709
+ integrationId: z.ZodOptional<z.ZodString>;
1710
+ }, z.core.$strip>;
1711
+ declare class GetDiagnosticAssistanceQueue extends AbstractApiRequest<typeof emptyInputSchema$8, ReturnType<typeof createPaginatedSchema<typeof diagnosticAssistanceQueueItemSchema>>, z.infer<typeof diagnosticAssistanceQueueQuerySchema>> {
1712
+ readonly method: "GET";
1713
+ readonly contentType: "application/json";
1714
+ readonly accept: "application/json";
1715
+ readonly inputSchema: z.ZodUndefined;
1716
+ readonly outputSchema: z.ZodObject<{
1717
+ data: z.ZodArray<z.ZodObject<{
1718
+ revision: z.ZodNumber;
1719
+ id: z.ZodString;
1720
+ problemId: z.ZodString;
1721
+ createdAt: z.ZodISODateTime;
1722
+ updatedAt: z.ZodISODateTime;
1723
+ state: z.ZodEnum<{
1724
+ requested: "requested";
1725
+ assigned: "assigned";
1726
+ waiting_for_customer: "waiting_for_customer";
1727
+ completed: "completed";
1728
+ }>;
1729
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
1730
+ pointOfSaleId: z.ZodString;
1731
+ integrationId: z.ZodString;
1732
+ code: z.ZodString;
1733
+ assignedTo: z.ZodNullable<z.ZodString>;
1734
+ }, z.core.$strip>>;
1735
+ pagination: z.ZodObject<{
1736
+ from: z.ZodCoercedNumber<unknown>;
1737
+ to: z.ZodCoercedNumber<unknown>;
1738
+ itemsPerPage: z.ZodCoercedNumber<unknown>;
1739
+ totalItems: z.ZodCoercedNumber<unknown>;
1740
+ currentPage: z.ZodCoercedNumber<unknown>;
1741
+ lastPage: z.ZodCoercedNumber<unknown>;
1742
+ }, z.core.$strip>;
1743
+ }, z.core.$strip>;
1744
+ readonly listItemSchema: z.ZodObject<{
1745
+ revision: z.ZodNumber;
1746
+ id: z.ZodString;
1747
+ problemId: z.ZodString;
1748
+ createdAt: z.ZodISODateTime;
1749
+ updatedAt: z.ZodISODateTime;
1750
+ state: z.ZodEnum<{
1751
+ requested: "requested";
1752
+ assigned: "assigned";
1753
+ waiting_for_customer: "waiting_for_customer";
1754
+ completed: "completed";
1755
+ }>;
1756
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
1757
+ pointOfSaleId: z.ZodString;
1758
+ integrationId: z.ZodString;
1759
+ code: z.ZodString;
1760
+ assignedTo: z.ZodNullable<z.ZodString>;
1761
+ }, z.core.$strip>;
1762
+ readonly paginationDefaultEnabled = true;
1763
+ readonly querySchema: z.ZodObject<{
1764
+ page: z.ZodOptional<z.ZodNumber>;
1765
+ itemsPerPage: z.ZodOptional<z.ZodNumber>;
1766
+ state: z.ZodOptional<z.ZodEnum<{
1767
+ requested: "requested";
1768
+ assigned: "assigned";
1769
+ waiting_for_customer: "waiting_for_customer";
1770
+ completed: "completed";
1771
+ open: "open";
1772
+ all: "all";
1773
+ }>>;
1774
+ assignment: z.ZodOptional<z.ZodEnum<{
1775
+ all: "all";
1776
+ mine: "mine";
1777
+ unassigned: "unassigned";
1778
+ }>>;
1779
+ pointOfSaleId: z.ZodOptional<z.ZodString>;
1780
+ integrationId: z.ZodOptional<z.ZodString>;
1781
+ }, z.core.$strip>;
1782
+ readonly headersSchema: undefined;
1783
+ constructor(options?: {
1784
+ query?: z.infer<typeof diagnosticAssistanceQueueQuerySchema>;
1785
+ });
1786
+ getPath(): string;
1787
+ }
1788
+
1789
+ declare const empty: z.ZodUndefined;
1790
+ declare const diagnosticAttemptHistoryQuerySchema: z.ZodObject<{
1791
+ page: z.ZodOptional<z.ZodNumber>;
1792
+ itemsPerPage: z.ZodOptional<z.ZodNumber>;
1793
+ }, z.core.$strip>;
1794
+ declare class GetDiagnosticAttemptHistory extends AbstractApiRequest<typeof empty, typeof diagnosticAttemptHistorySchema, z.infer<typeof diagnosticAttemptHistoryQuerySchema>> {
1795
+ private readonly operationId;
1796
+ readonly method: "GET";
1797
+ readonly contentType: "application/json";
1798
+ readonly accept: "application/json";
1799
+ readonly inputSchema: z.ZodUndefined;
1800
+ readonly outputSchema: z.ZodObject<{
1801
+ id: z.ZodString;
1802
+ supported: z.ZodBoolean;
1803
+ entries: z.ZodArray<z.ZodObject<{
1804
+ id: z.ZodString;
1805
+ generation: z.ZodNullable<z.ZodNumber>;
1806
+ number: z.ZodNullable<z.ZodNumber>;
1807
+ result: z.ZodEnum<{
1808
+ unknown: "unknown";
1809
+ outcome_unknown: "outcome_unknown";
1810
+ succeeded: "succeeded";
1811
+ running: "running";
1812
+ retry_scheduled: "retry_scheduled";
1813
+ failed: "failed";
1814
+ manual_action: "manual_action";
1815
+ skipped: "skipped";
1816
+ cancelled: "cancelled";
1817
+ stale: "stale";
1818
+ timed_out: "timed_out";
1819
+ accepted: "accepted";
1820
+ remote_state_matches: "remote_state_matches";
1821
+ rate_limited: "rate_limited";
1822
+ remote_state_differs: "remote_state_differs";
1823
+ not_found: "not_found";
1824
+ unavailable: "unavailable";
1825
+ interrupted: "interrupted";
1826
+ observation_ignored: "observation_ignored";
1827
+ }>;
1828
+ phase: z.ZodEnum<{
1829
+ unknown: "unknown";
1830
+ availability_sync: "availability_sync";
1831
+ completed: "completed";
1832
+ eligibility: "eligibility";
1833
+ catalog_preparation: "catalog_preparation";
1834
+ payload_validation: "payload_validation";
1835
+ sending: "sending";
1836
+ reconciling: "reconciling";
1837
+ menu_submission: "menu_submission";
1838
+ menu_verification: "menu_verification";
1839
+ }>;
1840
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
1841
+ finishedAt: z.ZodNullable<z.ZodISODateTime>;
1842
+ }, z.core.$strip>>;
1843
+ page: z.ZodNumber;
1844
+ itemsPerPage: z.ZodNumber;
1845
+ hasNextPage: z.ZodBoolean;
1846
+ }, z.core.$strip>;
1847
+ readonly querySchema: z.ZodObject<{
1848
+ page: z.ZodOptional<z.ZodNumber>;
1849
+ itemsPerPage: z.ZodOptional<z.ZodNumber>;
1850
+ }, z.core.$strip>;
1851
+ readonly headersSchema: undefined;
1852
+ constructor(operationId: string, options?: {
1853
+ query?: z.infer<typeof diagnosticAttemptHistoryQuerySchema>;
1854
+ });
1855
+ getPath(): string;
1856
+ }
1857
+
1858
+ declare const emptyInputSchema$7: z.ZodUndefined;
1859
+ declare class GetDiagnosticOperationDetails extends AbstractApiRequest<typeof emptyInputSchema$7, typeof diagnosticOperationSchema> {
1860
+ private readonly operationId;
1861
+ readonly method: "GET";
1862
+ readonly contentType: "application/json";
1863
+ readonly accept: "application/json";
1864
+ readonly inputSchema: z.ZodUndefined;
1865
+ readonly outputSchema: z.ZodObject<{
1866
+ pointOfSaleId: z.ZodString;
1867
+ integrationId: z.ZodString;
1868
+ actions: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1869
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
1870
+ eligible: z.ZodLiteral<true>;
1871
+ code: z.ZodLiteral<"recovery_available">;
1872
+ action: z.ZodEnum<{
1873
+ retry: "retry";
1874
+ reconcile: "reconcile";
1875
+ sync_current_state: "sync_current_state";
1876
+ }>;
1877
+ }, z.core.$strip>, z.ZodObject<{
1878
+ eligible: z.ZodLiteral<false>;
1879
+ code: z.ZodString;
1880
+ action: z.ZodNull;
1881
+ }, z.core.$strip>], "eligible">;
1882
+ manualClosure: z.ZodDiscriminatedUnion<[z.ZodObject<{
1883
+ eligible: z.ZodLiteral<true>;
1884
+ code: z.ZodLiteral<"closure_available">;
1885
+ }, z.core.$strip>, z.ZodObject<{
1886
+ eligible: z.ZodLiteral<false>;
1887
+ code: z.ZodString;
1888
+ }, z.core.$strip>], "eligible">;
1889
+ evaluatedAt: z.ZodISODateTime;
1890
+ }, z.core.$strip>>>>;
1891
+ context: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1892
+ kind: z.ZodEnum<{
1893
+ order: "order";
1894
+ integration_lifecycle: "integration_lifecycle";
1895
+ sync_process: "sync_process";
1896
+ catalog_import: "catalog_import";
1897
+ integration_issue: "integration_issue";
1898
+ publication_validation: "publication_validation";
1899
+ publication_receipt: "publication_receipt";
1900
+ }>;
1901
+ resourceId: z.ZodString;
1902
+ direction: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1903
+ inbound: "inbound";
1904
+ outbound: "outbound";
1905
+ }>>>;
1906
+ reference: z.ZodNullable<z.ZodString>;
1907
+ scope: z.ZodNullable<z.ZodString>;
1908
+ }, z.core.$strip>>>>;
1909
+ id: z.ZodString;
1910
+ service: z.ZodNullable<z.ZodString>;
1911
+ source: z.ZodObject<{
1912
+ kind: z.ZodString;
1913
+ identifier: z.ZodString;
1914
+ generation: z.ZodString;
1915
+ }, z.core.$strip>;
1916
+ recoveryState: z.ZodEnum<{
1917
+ action_required: "action_required";
1918
+ automatic_recovery: "automatic_recovery";
1919
+ in_progress: "in_progress";
1920
+ outcome_unknown: "outcome_unknown";
1921
+ succeeded: "succeeded";
1922
+ superseded: "superseded";
1923
+ }>;
1924
+ revision: z.ZodNumber;
1925
+ observedAt: z.ZodISODateTime;
1926
+ nextRecoveryAt: z.ZodNullable<z.ZodISODateTime>;
1927
+ manuallyClosedAt: z.ZodNullable<z.ZodISODateTime>;
1928
+ }, z.core.$strip>;
1929
+ readonly querySchema: undefined;
1930
+ readonly headersSchema: undefined;
1931
+ constructor(operationId: string);
1932
+ getPath(): string;
1933
+ }
1934
+
1935
+ declare const emptyInputSchema$6: z.ZodUndefined;
1936
+ declare class GetDiagnosticOverview extends AbstractApiRequest<typeof emptyInputSchema$6, typeof diagnosticOverviewSchema> {
1937
+ private readonly posId;
1938
+ readonly method: "GET";
1939
+ readonly contentType: "application/json";
1940
+ readonly accept: "application/json";
1941
+ readonly inputSchema: z.ZodUndefined;
1942
+ readonly outputSchema: z.ZodObject<{
1943
+ pointOfSaleId: z.ZodString;
1944
+ openProblems: z.ZodNumber;
1945
+ affectedOperations: z.ZodNumber;
1946
+ outstandingOperations: z.ZodNumber;
1947
+ generatedAt: z.ZodISODateTime;
1948
+ problemAttention: z.ZodObject<{
1949
+ action_required: z.ZodNumber;
1950
+ automatic_recovery: z.ZodNumber;
1951
+ resolved: z.ZodNumber;
1952
+ }, z.core.$strip>;
1953
+ operationOutcomes: z.ZodObject<{
1954
+ action_required: z.ZodNumber;
1955
+ automatic_recovery: z.ZodNumber;
1956
+ in_progress: z.ZodNumber;
1957
+ outcome_unknown: z.ZodNumber;
1958
+ succeeded: z.ZodNumber;
1959
+ superseded: z.ZodNumber;
1960
+ manually_handled: z.ZodNumber;
1961
+ }, z.core.$strip>;
1962
+ }, z.core.$strip>;
1963
+ readonly querySchema: undefined;
1964
+ readonly headersSchema: undefined;
1965
+ constructor(posId: string);
1966
+ getPath(): string;
1967
+ }
1968
+
1969
+ declare const emptyInputSchema$5: z.ZodUndefined;
1970
+ declare const diagnosticProblemPageQuerySchema: z.ZodObject<{
1971
+ page: z.ZodOptional<z.ZodNumber>;
1972
+ itemsPerPage: z.ZodOptional<z.ZodNumber>;
1973
+ }, z.core.$strip>;
1974
+ declare class GetDiagnosticProblemDetails extends AbstractApiRequest<typeof emptyInputSchema$5, typeof diagnosticProblemSchema, z.infer<typeof diagnosticProblemPageQuerySchema>> {
1975
+ private readonly problemId;
1976
+ readonly method: "GET";
1977
+ readonly contentType: "application/json";
1978
+ readonly accept: "application/json";
1979
+ readonly inputSchema: z.ZodUndefined;
1980
+ readonly outputSchema: z.ZodObject<{
1981
+ id: z.ZodString;
1982
+ pointOfSaleId: z.ZodString;
1983
+ integrationId: z.ZodString;
1984
+ code: z.ZodString;
1985
+ confirmed: z.ZodBoolean;
1986
+ causeCorrectedAt: z.ZodNullable<z.ZodISODateTime>;
1987
+ summary: z.ZodObject<{
1988
+ attention: z.ZodEnum<{
1989
+ action_required: "action_required";
1990
+ automatic_recovery: "automatic_recovery";
1991
+ resolved: "resolved";
1992
+ }>;
1993
+ total: z.ZodNumber;
1994
+ succeeded: z.ZodNumber;
1995
+ manuallyHandled: z.ZodNumber;
1996
+ superseded: z.ZodNumber;
1997
+ actionRequired: z.ZodNumber;
1998
+ automaticRecovery: z.ZodNumber;
1999
+ inProgress: z.ZodNumber;
2000
+ outcomeUnknown: z.ZodNumber;
2001
+ outstanding: z.ZodNumber;
2002
+ }, z.core.$strip>;
2003
+ operations: z.ZodArray<z.ZodPipe<z.ZodObject<{
2004
+ evidence: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
2005
+ schemaVersion: 1;
2006
+ code: string;
2007
+ confirmed: boolean;
2008
+ resources: {
2009
+ kind: "integration" | "order" | "order_item" | "order_modifier" | "product" | "variant" | "modifier" | "choice" | "category" | "restaurant" | "configuration" | "publication" | "process" | "process_step" | "payment_method" | "tax";
2010
+ identifier: string;
2011
+ role: "cause" | "affected" | "context";
2012
+ name: string | null;
2013
+ parentIdentifier: string | null;
2014
+ translations: Record<string, string>;
2015
+ }[];
2016
+ evidenceFingerprint: string;
2017
+ classifierVersion: number;
2018
+ } | null, unknown>>;
2019
+ evidenceComplete: z.ZodBoolean;
2020
+ evidenceSource: z.ZodNullable<z.ZodObject<{
2021
+ kind: z.ZodString;
2022
+ identifier: z.ZodString;
2023
+ generation: z.ZodString;
2024
+ }, z.core.$strip>>;
2025
+ actions: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
2026
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
2027
+ eligible: z.ZodLiteral<true>;
2028
+ code: z.ZodLiteral<"recovery_available">;
2029
+ action: z.ZodEnum<{
2030
+ retry: "retry";
2031
+ reconcile: "reconcile";
2032
+ sync_current_state: "sync_current_state";
2033
+ }>;
2034
+ }, z.core.$strip>, z.ZodObject<{
2035
+ eligible: z.ZodLiteral<false>;
2036
+ code: z.ZodString;
2037
+ action: z.ZodNull;
2038
+ }, z.core.$strip>], "eligible">;
2039
+ manualClosure: z.ZodDiscriminatedUnion<[z.ZodObject<{
2040
+ eligible: z.ZodLiteral<true>;
2041
+ code: z.ZodLiteral<"closure_available">;
2042
+ }, z.core.$strip>, z.ZodObject<{
2043
+ eligible: z.ZodLiteral<false>;
2044
+ code: z.ZodString;
2045
+ }, z.core.$strip>], "eligible">;
2046
+ evaluatedAt: z.ZodISODateTime;
2047
+ }, z.core.$strip>>>>;
2048
+ context: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
2049
+ kind: z.ZodEnum<{
2050
+ order: "order";
2051
+ integration_lifecycle: "integration_lifecycle";
2052
+ sync_process: "sync_process";
2053
+ catalog_import: "catalog_import";
2054
+ integration_issue: "integration_issue";
2055
+ publication_validation: "publication_validation";
2056
+ publication_receipt: "publication_receipt";
2057
+ }>;
2058
+ resourceId: z.ZodString;
2059
+ direction: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2060
+ inbound: "inbound";
2061
+ outbound: "outbound";
2062
+ }>>>;
2063
+ reference: z.ZodNullable<z.ZodString>;
2064
+ scope: z.ZodNullable<z.ZodString>;
2065
+ }, z.core.$strip>>>>;
2066
+ id: z.ZodString;
2067
+ service: z.ZodNullable<z.ZodString>;
2068
+ source: z.ZodObject<{
2069
+ kind: z.ZodString;
2070
+ identifier: z.ZodString;
2071
+ generation: z.ZodString;
2072
+ }, z.core.$strip>;
2073
+ recoveryState: z.ZodEnum<{
2074
+ action_required: "action_required";
2075
+ automatic_recovery: "automatic_recovery";
2076
+ in_progress: "in_progress";
2077
+ outcome_unknown: "outcome_unknown";
2078
+ succeeded: "succeeded";
2079
+ superseded: "superseded";
2080
+ }>;
2081
+ revision: z.ZodNumber;
2082
+ observedAt: z.ZodISODateTime;
2083
+ nextRecoveryAt: z.ZodNullable<z.ZodISODateTime>;
2084
+ manuallyClosedAt: z.ZodNullable<z.ZodISODateTime>;
2085
+ }, z.core.$strip>, z.ZodTransform<{
2086
+ evidenceComplete: boolean;
2087
+ evidence: {
2088
+ schemaVersion: 1;
2089
+ code: string;
2090
+ confirmed: boolean;
2091
+ resources: {
2092
+ kind: "integration" | "order" | "order_item" | "order_modifier" | "product" | "variant" | "modifier" | "choice" | "category" | "restaurant" | "configuration" | "publication" | "process" | "process_step" | "payment_method" | "tax";
2093
+ identifier: string;
2094
+ role: "cause" | "affected" | "context";
2095
+ name: string | null;
2096
+ parentIdentifier: string | null;
2097
+ translations: Record<string, string>;
2098
+ }[];
2099
+ evidenceFingerprint: string;
2100
+ classifierVersion: number;
2101
+ } | null;
2102
+ evidenceSource: {
2103
+ kind: string;
2104
+ identifier: string;
2105
+ generation: string;
2106
+ } | null;
2107
+ id: string;
2108
+ service: string | null;
2109
+ source: {
2110
+ kind: string;
2111
+ identifier: string;
2112
+ generation: string;
2113
+ };
2114
+ recoveryState: "action_required" | "automatic_recovery" | "in_progress" | "outcome_unknown" | "succeeded" | "superseded";
2115
+ revision: number;
2116
+ observedAt: string;
2117
+ nextRecoveryAt: string | null;
2118
+ manuallyClosedAt: string | null;
2119
+ actions?: {
2120
+ recovery: {
2121
+ eligible: true;
2122
+ code: "recovery_available";
2123
+ action: "retry" | "reconcile" | "sync_current_state";
2124
+ } | {
2125
+ eligible: false;
2126
+ code: string;
2127
+ action: null;
2128
+ };
2129
+ manualClosure: {
2130
+ eligible: true;
2131
+ code: "closure_available";
2132
+ } | {
2133
+ eligible: false;
2134
+ code: string;
2135
+ };
2136
+ evaluatedAt: string;
2137
+ } | null | undefined;
2138
+ context?: {
2139
+ kind: "order" | "integration_lifecycle" | "sync_process" | "catalog_import" | "integration_issue" | "publication_validation" | "publication_receipt";
2140
+ resourceId: string;
2141
+ reference: string | null;
2142
+ scope: string | null;
2143
+ direction?: "inbound" | "outbound" | null | undefined;
2144
+ } | null | undefined;
2145
+ }, {
2146
+ evidence: {
2147
+ schemaVersion: 1;
2148
+ code: string;
2149
+ confirmed: boolean;
2150
+ resources: {
2151
+ kind: "integration" | "order" | "order_item" | "order_modifier" | "product" | "variant" | "modifier" | "choice" | "category" | "restaurant" | "configuration" | "publication" | "process" | "process_step" | "payment_method" | "tax";
2152
+ identifier: string;
2153
+ role: "cause" | "affected" | "context";
2154
+ name: string | null;
2155
+ parentIdentifier: string | null;
2156
+ translations: Record<string, string>;
2157
+ }[];
2158
+ evidenceFingerprint: string;
2159
+ classifierVersion: number;
2160
+ } | null;
2161
+ evidenceComplete: boolean;
2162
+ evidenceSource: {
2163
+ kind: string;
2164
+ identifier: string;
2165
+ generation: string;
2166
+ } | null;
2167
+ id: string;
2168
+ service: string | null;
2169
+ source: {
2170
+ kind: string;
2171
+ identifier: string;
2172
+ generation: string;
2173
+ };
2174
+ recoveryState: "action_required" | "automatic_recovery" | "in_progress" | "outcome_unknown" | "succeeded" | "superseded";
2175
+ revision: number;
2176
+ observedAt: string;
2177
+ nextRecoveryAt: string | null;
2178
+ manuallyClosedAt: string | null;
2179
+ actions?: {
2180
+ recovery: {
2181
+ eligible: true;
2182
+ code: "recovery_available";
2183
+ action: "retry" | "reconcile" | "sync_current_state";
2184
+ } | {
2185
+ eligible: false;
2186
+ code: string;
2187
+ action: null;
2188
+ };
2189
+ manualClosure: {
2190
+ eligible: true;
2191
+ code: "closure_available";
2192
+ } | {
2193
+ eligible: false;
2194
+ code: string;
2195
+ };
2196
+ evaluatedAt: string;
2197
+ } | null | undefined;
2198
+ context?: {
2199
+ kind: "order" | "integration_lifecycle" | "sync_process" | "catalog_import" | "integration_issue" | "publication_validation" | "publication_receipt";
2200
+ resourceId: string;
2201
+ reference: string | null;
2202
+ scope: string | null;
2203
+ direction?: "inbound" | "outbound" | null | undefined;
2204
+ } | null | undefined;
2205
+ }>>>;
2206
+ page: z.ZodNumber;
2207
+ itemsPerPage: z.ZodNumber;
2208
+ hasNextPage: z.ZodBoolean;
2209
+ verification: z.ZodObject<{
2210
+ scope: z.ZodLiteral<"local">;
2211
+ outcome: z.ZodEnum<{
2212
+ unknown: "unknown";
2213
+ cause_present: "cause_present";
2214
+ cause_absent: "cause_absent";
2215
+ }>;
2216
+ reason: z.ZodString;
2217
+ checkedAt: z.ZodNullable<z.ZodISODateTime>;
2218
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
2219
+ fresh: z.ZodBoolean;
2220
+ findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
2221
+ schemaVersion: z.ZodLiteral<1>;
2222
+ code: z.ZodString;
2223
+ confirmed: z.ZodBoolean;
2224
+ resources: z.ZodArray<z.ZodObject<{
2225
+ kind: z.ZodEnum<{
2226
+ integration: "integration";
2227
+ order: "order";
2228
+ order_item: "order_item";
2229
+ order_modifier: "order_modifier";
2230
+ product: "product";
2231
+ variant: "variant";
2232
+ modifier: "modifier";
2233
+ choice: "choice";
2234
+ category: "category";
2235
+ restaurant: "restaurant";
2236
+ configuration: "configuration";
2237
+ publication: "publication";
2238
+ process: "process";
2239
+ process_step: "process_step";
2240
+ payment_method: "payment_method";
2241
+ tax: "tax";
2242
+ }>;
2243
+ identifier: z.ZodString;
2244
+ role: z.ZodEnum<{
2245
+ cause: "cause";
2246
+ affected: "affected";
2247
+ context: "context";
2248
+ }>;
2249
+ name: z.ZodNullable<z.ZodString>;
2250
+ parentIdentifier: z.ZodNullable<z.ZodString>;
2251
+ translations: z.ZodPipe<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodNever>]>, z.ZodTransform<Record<string, string>, never[] | Record<string, string>>>;
2252
+ }, z.core.$strip>>;
2253
+ evidenceFingerprint: z.ZodString;
2254
+ classifierVersion: z.ZodNumber;
2255
+ }, z.core.$strip>>>;
2256
+ }, z.core.$strip>;
2257
+ }, z.core.$strip>;
2258
+ readonly querySchema: z.ZodObject<{
2259
+ page: z.ZodOptional<z.ZodNumber>;
2260
+ itemsPerPage: z.ZodOptional<z.ZodNumber>;
2261
+ }, z.core.$strip>;
2262
+ readonly headersSchema: undefined;
2263
+ constructor(problemId: string, options?: {
2264
+ query?: z.infer<typeof diagnosticProblemPageQuerySchema>;
2265
+ });
2266
+ getPath(): string;
2267
+ }
2268
+
2269
+ declare const emptyInputSchema$4: z.ZodUndefined;
2270
+ declare class GetDiagnosticProblemQueue extends AbstractApiRequest<typeof emptyInputSchema$4, typeof diagnosticProblemQueueSchema, z.infer<typeof diagnosticProblemQueueQuerySchema>> {
2271
+ readonly method: "GET";
2272
+ readonly contentType: "application/json";
2273
+ readonly accept: "application/json";
2274
+ readonly inputSchema: z.ZodUndefined;
2275
+ readonly outputSchema: z.ZodObject<{
2276
+ data: z.ZodArray<z.ZodObject<{
2277
+ id: z.ZodString;
2278
+ pointOfSaleId: z.ZodString;
2279
+ integrationId: z.ZodString;
2280
+ code: z.ZodString;
2281
+ confirmed: z.ZodBoolean;
2282
+ firstSeenAt: z.ZodString;
2283
+ lastSeenAt: z.ZodString;
2284
+ resolvedAt: z.ZodNullable<z.ZodString>;
2285
+ }, z.core.$strip>>;
2286
+ nextCursor: z.ZodNullable<z.ZodString>;
2287
+ }, z.core.$strip>;
2288
+ readonly querySchema: z.ZodObject<{
2289
+ state: z.ZodOptional<z.ZodEnum<{
2290
+ open: "open";
2291
+ resolved: "resolved";
2292
+ all: "all";
2293
+ }>>;
2294
+ pointOfSaleId: z.ZodOptional<z.ZodString>;
2295
+ integrationId: z.ZodOptional<z.ZodString>;
2296
+ code: z.ZodOptional<z.ZodString>;
2297
+ itemsPerPage: z.ZodOptional<z.ZodNumber>;
2298
+ cursor: z.ZodOptional<z.ZodString>;
2299
+ }, z.core.$strip>;
2300
+ readonly headersSchema: undefined;
2301
+ constructor(options?: {
2302
+ query?: z.infer<typeof diagnosticProblemQueueQuerySchema>;
2303
+ });
2304
+ getPath(): string;
2305
+ }
2306
+
2307
+ declare const emptyInputSchema$3: z.ZodUndefined;
2308
+ declare const diagnosticProblemsQuerySchema: z.ZodObject<{
2309
+ page: z.ZodOptional<z.ZodNumber>;
2310
+ itemsPerPage: z.ZodOptional<z.ZodNumber>;
2311
+ state: z.ZodOptional<z.ZodEnum<{
2312
+ open: "open";
2313
+ resolved: "resolved";
2314
+ all: "all";
2315
+ }>>;
2316
+ integrationId: z.ZodOptional<z.ZodString>;
2317
+ attention: z.ZodOptional<z.ZodEnum<{
2318
+ action_required: "action_required";
2319
+ automatic_recovery: "automatic_recovery";
2320
+ resolved: "resolved";
2321
+ }>>;
2322
+ }, z.core.$strip>;
2323
+ declare class GetDiagnosticProblems extends AbstractApiRequest<typeof emptyInputSchema$3, ReturnType<typeof createPaginatedSchema<typeof diagnosticProblemSummarySchema>>, z.infer<typeof diagnosticProblemsQuerySchema>> {
2324
+ private readonly posId;
2325
+ readonly method: "GET";
2326
+ readonly contentType: "application/json";
2327
+ readonly accept: "application/json";
2328
+ readonly inputSchema: z.ZodUndefined;
2329
+ readonly outputSchema: z.ZodObject<{
2330
+ data: z.ZodArray<z.ZodObject<{
2331
+ id: z.ZodString;
2332
+ pointOfSaleId: z.ZodString;
2333
+ integrationId: z.ZodString;
2334
+ code: z.ZodString;
2335
+ confirmed: z.ZodBoolean;
2336
+ summary: z.ZodObject<{
2337
+ attention: z.ZodEnum<{
2338
+ action_required: "action_required";
2339
+ automatic_recovery: "automatic_recovery";
2340
+ resolved: "resolved";
2341
+ }>;
2342
+ total: z.ZodNumber;
2343
+ succeeded: z.ZodNumber;
2344
+ manuallyHandled: z.ZodNumber;
2345
+ superseded: z.ZodNumber;
2346
+ actionRequired: z.ZodNumber;
2347
+ automaticRecovery: z.ZodNumber;
2348
+ inProgress: z.ZodNumber;
2349
+ outcomeUnknown: z.ZodNumber;
2350
+ outstanding: z.ZodNumber;
2351
+ }, z.core.$strip>;
2352
+ exampleOperation: z.ZodNullable<z.ZodPipe<z.ZodObject<{
2353
+ evidence: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
2354
+ schemaVersion: 1;
2355
+ code: string;
2356
+ confirmed: boolean;
2357
+ resources: {
2358
+ kind: "integration" | "order" | "order_item" | "order_modifier" | "product" | "variant" | "modifier" | "choice" | "category" | "restaurant" | "configuration" | "publication" | "process" | "process_step" | "payment_method" | "tax";
2359
+ identifier: string;
2360
+ role: "cause" | "affected" | "context";
2361
+ name: string | null;
2362
+ parentIdentifier: string | null;
2363
+ translations: Record<string, string>;
2364
+ }[];
2365
+ evidenceFingerprint: string;
2366
+ classifierVersion: number;
2367
+ } | null, unknown>>;
2368
+ evidenceComplete: z.ZodBoolean;
2369
+ evidenceSource: z.ZodNullable<z.ZodObject<{
2370
+ kind: z.ZodString;
2371
+ identifier: z.ZodString;
2372
+ generation: z.ZodString;
2373
+ }, z.core.$strip>>;
2374
+ actions: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
2375
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
2376
+ eligible: z.ZodLiteral<true>;
2377
+ code: z.ZodLiteral<"recovery_available">;
2378
+ action: z.ZodEnum<{
2379
+ retry: "retry";
2380
+ reconcile: "reconcile";
2381
+ sync_current_state: "sync_current_state";
2382
+ }>;
2383
+ }, z.core.$strip>, z.ZodObject<{
2384
+ eligible: z.ZodLiteral<false>;
2385
+ code: z.ZodString;
2386
+ action: z.ZodNull;
2387
+ }, z.core.$strip>], "eligible">;
2388
+ manualClosure: z.ZodDiscriminatedUnion<[z.ZodObject<{
2389
+ eligible: z.ZodLiteral<true>;
2390
+ code: z.ZodLiteral<"closure_available">;
2391
+ }, z.core.$strip>, z.ZodObject<{
2392
+ eligible: z.ZodLiteral<false>;
2393
+ code: z.ZodString;
2394
+ }, z.core.$strip>], "eligible">;
2395
+ evaluatedAt: z.ZodISODateTime;
2396
+ }, z.core.$strip>>>>;
2397
+ context: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
2398
+ kind: z.ZodEnum<{
2399
+ order: "order";
2400
+ integration_lifecycle: "integration_lifecycle";
2401
+ sync_process: "sync_process";
2402
+ catalog_import: "catalog_import";
2403
+ integration_issue: "integration_issue";
2404
+ publication_validation: "publication_validation";
2405
+ publication_receipt: "publication_receipt";
2406
+ }>;
2407
+ resourceId: z.ZodString;
2408
+ direction: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2409
+ inbound: "inbound";
2410
+ outbound: "outbound";
2411
+ }>>>;
2412
+ reference: z.ZodNullable<z.ZodString>;
2413
+ scope: z.ZodNullable<z.ZodString>;
2414
+ }, z.core.$strip>>>>;
2415
+ id: z.ZodString;
2416
+ service: z.ZodNullable<z.ZodString>;
2417
+ source: z.ZodObject<{
2418
+ kind: z.ZodString;
2419
+ identifier: z.ZodString;
2420
+ generation: z.ZodString;
2421
+ }, z.core.$strip>;
2422
+ recoveryState: z.ZodEnum<{
2423
+ action_required: "action_required";
2424
+ automatic_recovery: "automatic_recovery";
2425
+ in_progress: "in_progress";
2426
+ outcome_unknown: "outcome_unknown";
2427
+ succeeded: "succeeded";
2428
+ superseded: "superseded";
2429
+ }>;
2430
+ revision: z.ZodNumber;
2431
+ observedAt: z.ZodISODateTime;
2432
+ nextRecoveryAt: z.ZodNullable<z.ZodISODateTime>;
2433
+ manuallyClosedAt: z.ZodNullable<z.ZodISODateTime>;
2434
+ }, z.core.$strip>, z.ZodTransform<{
2435
+ evidenceComplete: boolean;
2436
+ evidence: {
2437
+ schemaVersion: 1;
2438
+ code: string;
2439
+ confirmed: boolean;
2440
+ resources: {
2441
+ kind: "integration" | "order" | "order_item" | "order_modifier" | "product" | "variant" | "modifier" | "choice" | "category" | "restaurant" | "configuration" | "publication" | "process" | "process_step" | "payment_method" | "tax";
2442
+ identifier: string;
2443
+ role: "cause" | "affected" | "context";
2444
+ name: string | null;
2445
+ parentIdentifier: string | null;
2446
+ translations: Record<string, string>;
2447
+ }[];
2448
+ evidenceFingerprint: string;
2449
+ classifierVersion: number;
2450
+ } | null;
2451
+ evidenceSource: {
2452
+ kind: string;
2453
+ identifier: string;
2454
+ generation: string;
2455
+ } | null;
2456
+ id: string;
2457
+ service: string | null;
2458
+ source: {
2459
+ kind: string;
2460
+ identifier: string;
2461
+ generation: string;
2462
+ };
2463
+ recoveryState: "action_required" | "automatic_recovery" | "in_progress" | "outcome_unknown" | "succeeded" | "superseded";
2464
+ revision: number;
2465
+ observedAt: string;
2466
+ nextRecoveryAt: string | null;
2467
+ manuallyClosedAt: string | null;
2468
+ actions?: {
2469
+ recovery: {
2470
+ eligible: true;
2471
+ code: "recovery_available";
2472
+ action: "retry" | "reconcile" | "sync_current_state";
2473
+ } | {
2474
+ eligible: false;
2475
+ code: string;
2476
+ action: null;
2477
+ };
2478
+ manualClosure: {
2479
+ eligible: true;
2480
+ code: "closure_available";
2481
+ } | {
2482
+ eligible: false;
2483
+ code: string;
2484
+ };
2485
+ evaluatedAt: string;
2486
+ } | null | undefined;
2487
+ context?: {
2488
+ kind: "order" | "integration_lifecycle" | "sync_process" | "catalog_import" | "integration_issue" | "publication_validation" | "publication_receipt";
2489
+ resourceId: string;
2490
+ reference: string | null;
2491
+ scope: string | null;
2492
+ direction?: "inbound" | "outbound" | null | undefined;
2493
+ } | null | undefined;
2494
+ }, {
2495
+ evidence: {
2496
+ schemaVersion: 1;
2497
+ code: string;
2498
+ confirmed: boolean;
2499
+ resources: {
2500
+ kind: "integration" | "order" | "order_item" | "order_modifier" | "product" | "variant" | "modifier" | "choice" | "category" | "restaurant" | "configuration" | "publication" | "process" | "process_step" | "payment_method" | "tax";
2501
+ identifier: string;
2502
+ role: "cause" | "affected" | "context";
2503
+ name: string | null;
2504
+ parentIdentifier: string | null;
2505
+ translations: Record<string, string>;
2506
+ }[];
2507
+ evidenceFingerprint: string;
2508
+ classifierVersion: number;
2509
+ } | null;
2510
+ evidenceComplete: boolean;
2511
+ evidenceSource: {
2512
+ kind: string;
2513
+ identifier: string;
2514
+ generation: string;
2515
+ } | null;
2516
+ id: string;
2517
+ service: string | null;
2518
+ source: {
2519
+ kind: string;
2520
+ identifier: string;
2521
+ generation: string;
2522
+ };
2523
+ recoveryState: "action_required" | "automatic_recovery" | "in_progress" | "outcome_unknown" | "succeeded" | "superseded";
2524
+ revision: number;
2525
+ observedAt: string;
2526
+ nextRecoveryAt: string | null;
2527
+ manuallyClosedAt: string | null;
2528
+ actions?: {
2529
+ recovery: {
2530
+ eligible: true;
2531
+ code: "recovery_available";
2532
+ action: "retry" | "reconcile" | "sync_current_state";
2533
+ } | {
2534
+ eligible: false;
2535
+ code: string;
2536
+ action: null;
2537
+ };
2538
+ manualClosure: {
2539
+ eligible: true;
2540
+ code: "closure_available";
2541
+ } | {
2542
+ eligible: false;
2543
+ code: string;
2544
+ };
2545
+ evaluatedAt: string;
2546
+ } | null | undefined;
2547
+ context?: {
2548
+ kind: "order" | "integration_lifecycle" | "sync_process" | "catalog_import" | "integration_issue" | "publication_validation" | "publication_receipt";
2549
+ resourceId: string;
2550
+ reference: string | null;
2551
+ scope: string | null;
2552
+ direction?: "inbound" | "outbound" | null | undefined;
2553
+ } | null | undefined;
2554
+ }>>>;
2555
+ detailPath: z.ZodString;
2556
+ }, z.core.$strip>>;
2557
+ pagination: z.ZodObject<{
2558
+ from: z.ZodCoercedNumber<unknown>;
2559
+ to: z.ZodCoercedNumber<unknown>;
2560
+ itemsPerPage: z.ZodCoercedNumber<unknown>;
2561
+ totalItems: z.ZodCoercedNumber<unknown>;
2562
+ currentPage: z.ZodCoercedNumber<unknown>;
2563
+ lastPage: z.ZodCoercedNumber<unknown>;
2564
+ }, z.core.$strip>;
2565
+ }, z.core.$strip>;
2566
+ readonly listItemSchema: z.ZodObject<{
2567
+ id: z.ZodString;
2568
+ pointOfSaleId: z.ZodString;
2569
+ integrationId: z.ZodString;
2570
+ code: z.ZodString;
2571
+ confirmed: z.ZodBoolean;
2572
+ summary: z.ZodObject<{
2573
+ attention: z.ZodEnum<{
2574
+ action_required: "action_required";
2575
+ automatic_recovery: "automatic_recovery";
2576
+ resolved: "resolved";
2577
+ }>;
2578
+ total: z.ZodNumber;
2579
+ succeeded: z.ZodNumber;
2580
+ manuallyHandled: z.ZodNumber;
2581
+ superseded: z.ZodNumber;
2582
+ actionRequired: z.ZodNumber;
2583
+ automaticRecovery: z.ZodNumber;
2584
+ inProgress: z.ZodNumber;
2585
+ outcomeUnknown: z.ZodNumber;
2586
+ outstanding: z.ZodNumber;
2587
+ }, z.core.$strip>;
2588
+ exampleOperation: z.ZodNullable<z.ZodPipe<z.ZodObject<{
2589
+ evidence: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
2590
+ schemaVersion: 1;
2591
+ code: string;
2592
+ confirmed: boolean;
2593
+ resources: {
2594
+ kind: "integration" | "order" | "order_item" | "order_modifier" | "product" | "variant" | "modifier" | "choice" | "category" | "restaurant" | "configuration" | "publication" | "process" | "process_step" | "payment_method" | "tax";
2595
+ identifier: string;
2596
+ role: "cause" | "affected" | "context";
2597
+ name: string | null;
2598
+ parentIdentifier: string | null;
2599
+ translations: Record<string, string>;
2600
+ }[];
2601
+ evidenceFingerprint: string;
2602
+ classifierVersion: number;
2603
+ } | null, unknown>>;
2604
+ evidenceComplete: z.ZodBoolean;
2605
+ evidenceSource: z.ZodNullable<z.ZodObject<{
2606
+ kind: z.ZodString;
2607
+ identifier: z.ZodString;
2608
+ generation: z.ZodString;
2609
+ }, z.core.$strip>>;
2610
+ actions: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
2611
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
2612
+ eligible: z.ZodLiteral<true>;
2613
+ code: z.ZodLiteral<"recovery_available">;
2614
+ action: z.ZodEnum<{
2615
+ retry: "retry";
2616
+ reconcile: "reconcile";
2617
+ sync_current_state: "sync_current_state";
2618
+ }>;
2619
+ }, z.core.$strip>, z.ZodObject<{
2620
+ eligible: z.ZodLiteral<false>;
2621
+ code: z.ZodString;
2622
+ action: z.ZodNull;
2623
+ }, z.core.$strip>], "eligible">;
2624
+ manualClosure: z.ZodDiscriminatedUnion<[z.ZodObject<{
2625
+ eligible: z.ZodLiteral<true>;
2626
+ code: z.ZodLiteral<"closure_available">;
2627
+ }, z.core.$strip>, z.ZodObject<{
2628
+ eligible: z.ZodLiteral<false>;
2629
+ code: z.ZodString;
2630
+ }, z.core.$strip>], "eligible">;
2631
+ evaluatedAt: z.ZodISODateTime;
2632
+ }, z.core.$strip>>>>;
2633
+ context: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
2634
+ kind: z.ZodEnum<{
2635
+ order: "order";
2636
+ integration_lifecycle: "integration_lifecycle";
2637
+ sync_process: "sync_process";
2638
+ catalog_import: "catalog_import";
2639
+ integration_issue: "integration_issue";
2640
+ publication_validation: "publication_validation";
2641
+ publication_receipt: "publication_receipt";
2642
+ }>;
2643
+ resourceId: z.ZodString;
2644
+ direction: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2645
+ inbound: "inbound";
2646
+ outbound: "outbound";
2647
+ }>>>;
2648
+ reference: z.ZodNullable<z.ZodString>;
2649
+ scope: z.ZodNullable<z.ZodString>;
2650
+ }, z.core.$strip>>>>;
2651
+ id: z.ZodString;
2652
+ service: z.ZodNullable<z.ZodString>;
2653
+ source: z.ZodObject<{
2654
+ kind: z.ZodString;
2655
+ identifier: z.ZodString;
2656
+ generation: z.ZodString;
2657
+ }, z.core.$strip>;
2658
+ recoveryState: z.ZodEnum<{
2659
+ action_required: "action_required";
2660
+ automatic_recovery: "automatic_recovery";
2661
+ in_progress: "in_progress";
2662
+ outcome_unknown: "outcome_unknown";
2663
+ succeeded: "succeeded";
2664
+ superseded: "superseded";
2665
+ }>;
2666
+ revision: z.ZodNumber;
2667
+ observedAt: z.ZodISODateTime;
2668
+ nextRecoveryAt: z.ZodNullable<z.ZodISODateTime>;
2669
+ manuallyClosedAt: z.ZodNullable<z.ZodISODateTime>;
2670
+ }, z.core.$strip>, z.ZodTransform<{
2671
+ evidenceComplete: boolean;
2672
+ evidence: {
2673
+ schemaVersion: 1;
2674
+ code: string;
2675
+ confirmed: boolean;
2676
+ resources: {
2677
+ kind: "integration" | "order" | "order_item" | "order_modifier" | "product" | "variant" | "modifier" | "choice" | "category" | "restaurant" | "configuration" | "publication" | "process" | "process_step" | "payment_method" | "tax";
2678
+ identifier: string;
2679
+ role: "cause" | "affected" | "context";
2680
+ name: string | null;
2681
+ parentIdentifier: string | null;
2682
+ translations: Record<string, string>;
2683
+ }[];
2684
+ evidenceFingerprint: string;
2685
+ classifierVersion: number;
2686
+ } | null;
2687
+ evidenceSource: {
2688
+ kind: string;
2689
+ identifier: string;
2690
+ generation: string;
2691
+ } | null;
2692
+ id: string;
2693
+ service: string | null;
2694
+ source: {
2695
+ kind: string;
2696
+ identifier: string;
2697
+ generation: string;
2698
+ };
2699
+ recoveryState: "action_required" | "automatic_recovery" | "in_progress" | "outcome_unknown" | "succeeded" | "superseded";
2700
+ revision: number;
2701
+ observedAt: string;
2702
+ nextRecoveryAt: string | null;
2703
+ manuallyClosedAt: string | null;
2704
+ actions?: {
2705
+ recovery: {
2706
+ eligible: true;
2707
+ code: "recovery_available";
2708
+ action: "retry" | "reconcile" | "sync_current_state";
2709
+ } | {
2710
+ eligible: false;
2711
+ code: string;
2712
+ action: null;
2713
+ };
2714
+ manualClosure: {
2715
+ eligible: true;
2716
+ code: "closure_available";
2717
+ } | {
2718
+ eligible: false;
2719
+ code: string;
2720
+ };
2721
+ evaluatedAt: string;
2722
+ } | null | undefined;
2723
+ context?: {
2724
+ kind: "order" | "integration_lifecycle" | "sync_process" | "catalog_import" | "integration_issue" | "publication_validation" | "publication_receipt";
2725
+ resourceId: string;
2726
+ reference: string | null;
2727
+ scope: string | null;
2728
+ direction?: "inbound" | "outbound" | null | undefined;
2729
+ } | null | undefined;
2730
+ }, {
2731
+ evidence: {
2732
+ schemaVersion: 1;
2733
+ code: string;
2734
+ confirmed: boolean;
2735
+ resources: {
2736
+ kind: "integration" | "order" | "order_item" | "order_modifier" | "product" | "variant" | "modifier" | "choice" | "category" | "restaurant" | "configuration" | "publication" | "process" | "process_step" | "payment_method" | "tax";
2737
+ identifier: string;
2738
+ role: "cause" | "affected" | "context";
2739
+ name: string | null;
2740
+ parentIdentifier: string | null;
2741
+ translations: Record<string, string>;
2742
+ }[];
2743
+ evidenceFingerprint: string;
2744
+ classifierVersion: number;
2745
+ } | null;
2746
+ evidenceComplete: boolean;
2747
+ evidenceSource: {
2748
+ kind: string;
2749
+ identifier: string;
2750
+ generation: string;
2751
+ } | null;
2752
+ id: string;
2753
+ service: string | null;
2754
+ source: {
2755
+ kind: string;
2756
+ identifier: string;
2757
+ generation: string;
2758
+ };
2759
+ recoveryState: "action_required" | "automatic_recovery" | "in_progress" | "outcome_unknown" | "succeeded" | "superseded";
2760
+ revision: number;
2761
+ observedAt: string;
2762
+ nextRecoveryAt: string | null;
2763
+ manuallyClosedAt: string | null;
2764
+ actions?: {
2765
+ recovery: {
2766
+ eligible: true;
2767
+ code: "recovery_available";
2768
+ action: "retry" | "reconcile" | "sync_current_state";
2769
+ } | {
2770
+ eligible: false;
2771
+ code: string;
2772
+ action: null;
2773
+ };
2774
+ manualClosure: {
2775
+ eligible: true;
2776
+ code: "closure_available";
2777
+ } | {
2778
+ eligible: false;
2779
+ code: string;
2780
+ };
2781
+ evaluatedAt: string;
2782
+ } | null | undefined;
2783
+ context?: {
2784
+ kind: "order" | "integration_lifecycle" | "sync_process" | "catalog_import" | "integration_issue" | "publication_validation" | "publication_receipt";
2785
+ resourceId: string;
2786
+ reference: string | null;
2787
+ scope: string | null;
2788
+ direction?: "inbound" | "outbound" | null | undefined;
2789
+ } | null | undefined;
2790
+ }>>>;
2791
+ detailPath: z.ZodString;
2792
+ }, z.core.$strip>;
2793
+ readonly paginationDefaultEnabled = true;
2794
+ readonly querySchema: z.ZodObject<{
2795
+ page: z.ZodOptional<z.ZodNumber>;
2796
+ itemsPerPage: z.ZodOptional<z.ZodNumber>;
2797
+ state: z.ZodOptional<z.ZodEnum<{
2798
+ open: "open";
2799
+ resolved: "resolved";
2800
+ all: "all";
2801
+ }>>;
2802
+ integrationId: z.ZodOptional<z.ZodString>;
2803
+ attention: z.ZodOptional<z.ZodEnum<{
2804
+ action_required: "action_required";
2805
+ automatic_recovery: "automatic_recovery";
2806
+ resolved: "resolved";
2807
+ }>>;
2808
+ }, z.core.$strip>;
2809
+ readonly headersSchema: undefined;
2810
+ constructor(posId: string, options?: {
2811
+ query?: z.infer<typeof diagnosticProblemsQuerySchema>;
2812
+ });
2813
+ getPath(): string;
2814
+ }
2815
+
2816
+ declare const emptyInputSchema$2: z.ZodUndefined;
2817
+ declare const diagnosticRecoveryHistoryItemSchema: z.ZodObject<{
2818
+ id: z.ZodString;
2819
+ pointOfSaleId: z.ZodString;
2820
+ requestedAt: z.ZodISODateTime;
2821
+ selectedOperations: z.ZodNumber;
2822
+ }, z.core.$strip>;
2823
+ declare const diagnosticRecoveryHistoryQuerySchema: z.ZodObject<{
2824
+ page: z.ZodOptional<z.ZodNumber>;
2825
+ itemsPerPage: z.ZodOptional<z.ZodNumber>;
2826
+ }, z.core.$strip>;
2827
+ type DiagnosticRecoveryHistoryItem = z.infer<typeof diagnosticRecoveryHistoryItemSchema>;
2828
+ declare class GetDiagnosticRecoveryHistory extends AbstractApiRequest<typeof emptyInputSchema$2, ReturnType<typeof createPaginatedSchema<typeof diagnosticRecoveryHistoryItemSchema>>, z.infer<typeof diagnosticRecoveryHistoryQuerySchema>> {
2829
+ private readonly posId;
2830
+ readonly method: "GET";
2831
+ readonly contentType: "application/json";
2832
+ readonly accept: "application/json";
2833
+ readonly inputSchema: z.ZodUndefined;
2834
+ readonly outputSchema: z.ZodObject<{
2835
+ data: z.ZodArray<z.ZodObject<{
2836
+ id: z.ZodString;
2837
+ pointOfSaleId: z.ZodString;
2838
+ requestedAt: z.ZodISODateTime;
2839
+ selectedOperations: z.ZodNumber;
2840
+ }, z.core.$strip>>;
2841
+ pagination: z.ZodObject<{
2842
+ from: z.ZodCoercedNumber<unknown>;
2843
+ to: z.ZodCoercedNumber<unknown>;
2844
+ itemsPerPage: z.ZodCoercedNumber<unknown>;
2845
+ totalItems: z.ZodCoercedNumber<unknown>;
2846
+ currentPage: z.ZodCoercedNumber<unknown>;
2847
+ lastPage: z.ZodCoercedNumber<unknown>;
2848
+ }, z.core.$strip>;
2849
+ }, z.core.$strip>;
2850
+ readonly listItemSchema: z.ZodObject<{
2851
+ id: z.ZodString;
2852
+ pointOfSaleId: z.ZodString;
2853
+ requestedAt: z.ZodISODateTime;
2854
+ selectedOperations: z.ZodNumber;
2855
+ }, z.core.$strip>;
2856
+ readonly paginationDefaultEnabled = true;
2857
+ readonly querySchema: z.ZodObject<{
2858
+ page: z.ZodOptional<z.ZodNumber>;
2859
+ itemsPerPage: z.ZodOptional<z.ZodNumber>;
2860
+ }, z.core.$strip>;
2861
+ readonly headersSchema: undefined;
2862
+ constructor(posId: string, options?: {
2863
+ query?: z.infer<typeof diagnosticRecoveryHistoryQuerySchema>;
2864
+ });
2865
+ getPath(): string;
2866
+ }
2867
+
2868
+ declare const emptyInputSchema$1: z.ZodUndefined;
2869
+ declare class GetDiagnosticRecoveryRequestDetails extends AbstractApiRequest<typeof emptyInputSchema$1, typeof diagnosticRecoveryRequestSchema> {
2870
+ private readonly requestId;
2871
+ readonly method: "GET";
2872
+ readonly contentType: "application/json";
2873
+ readonly accept: "application/json";
2874
+ readonly inputSchema: z.ZodUndefined;
2875
+ readonly outputSchema: z.ZodObject<{
2876
+ id: z.ZodString;
2877
+ pointOfSaleId: z.ZodString;
2878
+ requestedAt: z.ZodISODateTime;
2879
+ items: z.ZodArray<z.ZodObject<{
2880
+ id: z.ZodString;
2881
+ operationId: z.ZodString;
2882
+ expectedRevision: z.ZodNumber;
2883
+ status: z.ZodEnum<{
2884
+ running: "running";
2885
+ failed: "failed";
2886
+ unavailable: "unavailable";
2887
+ queued: "queued";
2888
+ submitted: "submitted";
2889
+ rejected: "rejected";
2890
+ }>;
2891
+ resultCode: z.ZodString;
2892
+ action: z.ZodCatch<z.ZodNullable<z.ZodEnum<{
2893
+ retry: "retry";
2894
+ reconcile: "reconcile";
2895
+ sync_current_state: "sync_current_state";
2896
+ }>>>;
2897
+ submittedSource: z.ZodNullable<z.ZodObject<{
2898
+ kind: z.ZodString;
2899
+ identifier: z.ZodString;
2900
+ generation: z.ZodString;
2901
+ }, z.core.$strip>>;
2902
+ service: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2903
+ context: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
2904
+ kind: z.ZodEnum<{
2905
+ order: "order";
2906
+ integration_lifecycle: "integration_lifecycle";
2907
+ sync_process: "sync_process";
2908
+ catalog_import: "catalog_import";
2909
+ integration_issue: "integration_issue";
2910
+ publication_validation: "publication_validation";
2911
+ publication_receipt: "publication_receipt";
2912
+ }>;
2913
+ resourceId: z.ZodString;
2914
+ direction: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2915
+ inbound: "inbound";
2916
+ outbound: "outbound";
2917
+ }>>>;
2918
+ reference: z.ZodNullable<z.ZodString>;
2919
+ scope: z.ZodNullable<z.ZodString>;
2920
+ }, z.core.$strip>>>>;
2921
+ recoveryState: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2922
+ action_required: "action_required";
2923
+ automatic_recovery: "automatic_recovery";
2924
+ in_progress: "in_progress";
2925
+ outcome_unknown: "outcome_unknown";
2926
+ succeeded: "succeeded";
2927
+ superseded: "superseded";
2928
+ }>>>>;
2929
+ observedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
2930
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
2931
+ deliveryState: z.ZodNullable<z.ZodEnum<{
2932
+ pending: "pending";
2933
+ not_required: "not_required";
2934
+ attention_required: "attention_required";
2935
+ published: "published";
2936
+ }>>;
2937
+ }, z.core.$strip>>;
2938
+ }, z.core.$strip>;
2939
+ readonly querySchema: undefined;
2940
+ readonly headersSchema: undefined;
2941
+ constructor(requestId: string);
2942
+ getPath(): string;
2943
+ }
2944
+
2945
+ declare class PreviewDiagnosticRecovery extends AbstractApiRequest<typeof diagnosticRecoveryInputSchema, typeof diagnosticRecoveryPreviewSchema> {
2946
+ private readonly posId;
2947
+ readonly method: "POST";
2948
+ readonly contentType: "application/json";
2949
+ readonly accept: "application/json";
2950
+ readonly inputSchema: z.ZodObject<{
2951
+ requestKey: z.ZodString;
2952
+ operations: z.ZodArray<z.ZodObject<{
2953
+ operationId: z.ZodString;
2954
+ revision: z.ZodNumber;
2955
+ }, z.core.$strict>>;
2956
+ }, z.core.$strict>;
2957
+ readonly outputSchema: z.ZodObject<{
2958
+ id: z.ZodString;
2959
+ pointOfSaleId: z.ZodString;
2960
+ evaluatedAt: z.ZodISODateTime;
2961
+ items: z.ZodArray<z.ZodPipe<z.ZodObject<{
2962
+ operationId: z.ZodString;
2963
+ revision: z.ZodNumber;
2964
+ eligible: z.ZodBoolean;
2965
+ code: z.ZodString;
2966
+ action: z.ZodCatch<z.ZodNullable<z.ZodEnum<{
2967
+ retry: "retry";
2968
+ reconcile: "reconcile";
2969
+ sync_current_state: "sync_current_state";
2970
+ }>>>;
2971
+ }, z.core.$strip>, z.ZodTransform<{
2972
+ eligible: boolean;
2973
+ operationId: string;
2974
+ revision: number;
2975
+ code: string;
2976
+ action: "retry" | "reconcile" | "sync_current_state" | null;
2977
+ }, {
2978
+ operationId: string;
2979
+ revision: number;
2980
+ eligible: boolean;
2981
+ code: string;
2982
+ action: "retry" | "reconcile" | "sync_current_state" | null;
2983
+ }>>>;
2984
+ }, z.core.$strip>;
2985
+ readonly querySchema: undefined;
2986
+ readonly headersSchema: undefined;
2987
+ constructor(posId: string, input: z.input<typeof diagnosticRecoveryInputSchema>);
2988
+ getPath(): string;
2989
+ }
2990
+
2991
+ declare class ReplyDiagnosticAssistance extends AbstractApiRequest<typeof diagnosticAssistanceReplyInputSchema, typeof diagnosticAssistanceSchema> {
2992
+ private readonly id;
2993
+ readonly method: "POST";
2994
+ readonly contentType: "application/json";
2995
+ readonly accept: "application/json";
2996
+ readonly inputSchema: z.ZodObject<{
2997
+ actionKey: z.ZodString;
2998
+ revision: z.ZodNumber;
2999
+ note: z.ZodString;
3000
+ }, z.core.$strict>;
3001
+ readonly outputSchema: z.ZodObject<{
3002
+ id: z.ZodString;
3003
+ problemId: z.ZodString;
3004
+ state: z.ZodEnum<{
3005
+ requested: "requested";
3006
+ assigned: "assigned";
3007
+ waiting_for_customer: "waiting_for_customer";
3008
+ completed: "completed";
3009
+ }>;
3010
+ revision: z.ZodNumber;
3011
+ assigned: z.ZodBoolean;
3012
+ createdAt: z.ZodISODateTime;
3013
+ updatedAt: z.ZodISODateTime;
3014
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
3015
+ events: z.ZodObject<{
3016
+ data: z.ZodArray<z.ZodObject<{
3017
+ id: z.ZodString;
3018
+ kind: z.ZodEnum<{
3019
+ complete: "complete";
3020
+ note: "note";
3021
+ wait_for_customer: "wait_for_customer";
3022
+ claim: "claim";
3023
+ release: "release";
3024
+ requested: "requested";
3025
+ }>;
3026
+ body: z.ZodNullable<z.ZodString>;
3027
+ authorKind: z.ZodEnum<{
3028
+ customer: "customer";
3029
+ support: "support";
3030
+ }>;
3031
+ occurredAt: z.ZodISODateTime;
3032
+ }, z.core.$strip>>;
3033
+ hasNextPage: z.ZodBoolean;
3034
+ }, z.core.$strip>;
3035
+ page: z.ZodNumber;
3036
+ itemsPerPage: z.ZodNumber;
3037
+ }, z.core.$strip>;
3038
+ readonly querySchema: undefined;
3039
+ readonly headersSchema: undefined;
3040
+ constructor(id: string, input: z.input<typeof diagnosticAssistanceReplyInputSchema>);
3041
+ getPath(): string;
3042
+ }
3043
+
3044
+ declare class RequestDiagnosticAssistance extends AbstractApiRequest<typeof diagnosticAssistanceRequestInputSchema, typeof diagnosticAssistanceSchema> {
3045
+ private readonly id;
3046
+ readonly method: "POST";
3047
+ readonly contentType: "application/json";
3048
+ readonly accept: "application/json";
3049
+ readonly inputSchema: z.ZodObject<{
3050
+ requestKey: z.ZodString;
3051
+ note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3052
+ }, z.core.$strict>;
3053
+ readonly outputSchema: z.ZodObject<{
3054
+ id: z.ZodString;
3055
+ problemId: z.ZodString;
3056
+ state: z.ZodEnum<{
3057
+ requested: "requested";
3058
+ assigned: "assigned";
3059
+ waiting_for_customer: "waiting_for_customer";
3060
+ completed: "completed";
3061
+ }>;
3062
+ revision: z.ZodNumber;
3063
+ assigned: z.ZodBoolean;
3064
+ createdAt: z.ZodISODateTime;
3065
+ updatedAt: z.ZodISODateTime;
3066
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
3067
+ events: z.ZodObject<{
3068
+ data: z.ZodArray<z.ZodObject<{
3069
+ id: z.ZodString;
3070
+ kind: z.ZodEnum<{
3071
+ complete: "complete";
3072
+ note: "note";
3073
+ wait_for_customer: "wait_for_customer";
3074
+ claim: "claim";
3075
+ release: "release";
3076
+ requested: "requested";
3077
+ }>;
3078
+ body: z.ZodNullable<z.ZodString>;
3079
+ authorKind: z.ZodEnum<{
3080
+ customer: "customer";
3081
+ support: "support";
3082
+ }>;
3083
+ occurredAt: z.ZodISODateTime;
3084
+ }, z.core.$strip>>;
3085
+ hasNextPage: z.ZodBoolean;
3086
+ }, z.core.$strip>;
3087
+ page: z.ZodNumber;
3088
+ itemsPerPage: z.ZodNumber;
3089
+ }, z.core.$strip>;
3090
+ readonly querySchema: undefined;
3091
+ readonly headersSchema: undefined;
3092
+ constructor(id: string, input: z.input<typeof diagnosticAssistanceRequestInputSchema>);
3093
+ getPath(): string;
3094
+ }
3095
+
3096
+ declare class RequestDiagnosticRecovery extends AbstractApiRequest<typeof diagnosticRecoveryInputSchema, typeof diagnosticRecoveryRequestSchema> {
3097
+ private readonly posId;
3098
+ readonly method: "POST";
3099
+ readonly contentType: "application/json";
3100
+ readonly accept: "application/json";
3101
+ readonly inputSchema: z.ZodObject<{
3102
+ requestKey: z.ZodString;
3103
+ operations: z.ZodArray<z.ZodObject<{
3104
+ operationId: z.ZodString;
3105
+ revision: z.ZodNumber;
3106
+ }, z.core.$strict>>;
3107
+ }, z.core.$strict>;
3108
+ readonly outputSchema: z.ZodObject<{
3109
+ id: z.ZodString;
3110
+ pointOfSaleId: z.ZodString;
3111
+ requestedAt: z.ZodISODateTime;
3112
+ items: z.ZodArray<z.ZodObject<{
3113
+ id: z.ZodString;
3114
+ operationId: z.ZodString;
3115
+ expectedRevision: z.ZodNumber;
3116
+ status: z.ZodEnum<{
3117
+ running: "running";
3118
+ failed: "failed";
3119
+ unavailable: "unavailable";
3120
+ queued: "queued";
3121
+ submitted: "submitted";
3122
+ rejected: "rejected";
3123
+ }>;
3124
+ resultCode: z.ZodString;
3125
+ action: z.ZodCatch<z.ZodNullable<z.ZodEnum<{
3126
+ retry: "retry";
3127
+ reconcile: "reconcile";
3128
+ sync_current_state: "sync_current_state";
3129
+ }>>>;
3130
+ submittedSource: z.ZodNullable<z.ZodObject<{
3131
+ kind: z.ZodString;
3132
+ identifier: z.ZodString;
3133
+ generation: z.ZodString;
3134
+ }, z.core.$strip>>;
3135
+ service: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3136
+ context: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
3137
+ kind: z.ZodEnum<{
3138
+ order: "order";
3139
+ integration_lifecycle: "integration_lifecycle";
3140
+ sync_process: "sync_process";
3141
+ catalog_import: "catalog_import";
3142
+ integration_issue: "integration_issue";
3143
+ publication_validation: "publication_validation";
3144
+ publication_receipt: "publication_receipt";
3145
+ }>;
3146
+ resourceId: z.ZodString;
3147
+ direction: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3148
+ inbound: "inbound";
3149
+ outbound: "outbound";
3150
+ }>>>;
3151
+ reference: z.ZodNullable<z.ZodString>;
3152
+ scope: z.ZodNullable<z.ZodString>;
3153
+ }, z.core.$strip>>>>;
3154
+ recoveryState: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3155
+ action_required: "action_required";
3156
+ automatic_recovery: "automatic_recovery";
3157
+ in_progress: "in_progress";
3158
+ outcome_unknown: "outcome_unknown";
3159
+ succeeded: "succeeded";
3160
+ superseded: "superseded";
3161
+ }>>>>;
3162
+ observedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
3163
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
3164
+ deliveryState: z.ZodNullable<z.ZodEnum<{
3165
+ pending: "pending";
3166
+ not_required: "not_required";
3167
+ attention_required: "attention_required";
3168
+ published: "published";
3169
+ }>>;
3170
+ }, z.core.$strip>>;
3171
+ }, z.core.$strip>;
3172
+ readonly querySchema: undefined;
3173
+ readonly headersSchema: undefined;
3174
+ constructor(posId: string, input: z.input<typeof diagnosticRecoveryInputSchema>);
3175
+ getPath(): string;
3176
+ }
3177
+
3178
+ declare class UpdateDiagnosticAssistance extends AbstractApiRequest<typeof diagnosticAssistanceUpdateInputSchema, typeof diagnosticAssistanceSchema> {
3179
+ private readonly id;
3180
+ readonly method: "POST";
3181
+ readonly contentType: "application/json";
3182
+ readonly accept: "application/json";
3183
+ readonly inputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3184
+ action: z.ZodLiteral<"note">;
3185
+ audience: z.ZodDefault<z.ZodEnum<{
3186
+ public: "public";
3187
+ internal: "internal";
3188
+ }>>;
3189
+ body: z.ZodString;
3190
+ actionKey: z.ZodString;
3191
+ revision: z.ZodNumber;
3192
+ }, z.core.$strict>, z.ZodObject<{
3193
+ action: z.ZodLiteral<"wait_for_customer">;
3194
+ audience: z.ZodLiteral<"public">;
3195
+ body: z.ZodString;
3196
+ actionKey: z.ZodString;
3197
+ revision: z.ZodNumber;
3198
+ }, z.core.$strict>, z.ZodObject<{
3199
+ action: z.ZodEnum<{
3200
+ complete: "complete";
3201
+ claim: "claim";
3202
+ release: "release";
3203
+ }>;
3204
+ actionKey: z.ZodString;
3205
+ revision: z.ZodNumber;
3206
+ }, z.core.$strict>], "action">;
3207
+ readonly outputSchema: z.ZodObject<{
3208
+ id: z.ZodString;
3209
+ problemId: z.ZodString;
3210
+ state: z.ZodEnum<{
3211
+ requested: "requested";
3212
+ assigned: "assigned";
3213
+ waiting_for_customer: "waiting_for_customer";
3214
+ completed: "completed";
3215
+ }>;
3216
+ revision: z.ZodNumber;
3217
+ assigned: z.ZodBoolean;
3218
+ createdAt: z.ZodISODateTime;
3219
+ updatedAt: z.ZodISODateTime;
3220
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
3221
+ events: z.ZodObject<{
3222
+ data: z.ZodArray<z.ZodObject<{
3223
+ id: z.ZodString;
3224
+ kind: z.ZodEnum<{
3225
+ complete: "complete";
3226
+ note: "note";
3227
+ wait_for_customer: "wait_for_customer";
3228
+ claim: "claim";
3229
+ release: "release";
3230
+ requested: "requested";
3231
+ }>;
3232
+ body: z.ZodNullable<z.ZodString>;
3233
+ authorKind: z.ZodEnum<{
3234
+ customer: "customer";
3235
+ support: "support";
3236
+ }>;
3237
+ occurredAt: z.ZodISODateTime;
3238
+ }, z.core.$strip>>;
3239
+ hasNextPage: z.ZodBoolean;
3240
+ }, z.core.$strip>;
3241
+ page: z.ZodNumber;
3242
+ itemsPerPage: z.ZodNumber;
3243
+ }, z.core.$strip>;
3244
+ readonly querySchema: undefined;
3245
+ readonly headersSchema: undefined;
3246
+ constructor(id: string, input: z.input<typeof diagnosticAssistanceUpdateInputSchema>);
3247
+ getPath(): string;
3248
+ }
3249
+
3250
+ declare const emptyInputSchema: z.ZodUndefined;
3251
+ declare class VerifyDiagnosticProblem extends AbstractApiRequest<typeof emptyInputSchema, typeof diagnosticProblemSchema> {
3252
+ private readonly problemId;
3253
+ readonly method: "POST";
3254
+ readonly contentType: "application/json";
3255
+ readonly accept: "application/json";
3256
+ readonly inputSchema: z.ZodUndefined;
3257
+ readonly outputSchema: z.ZodObject<{
3258
+ id: z.ZodString;
3259
+ pointOfSaleId: z.ZodString;
3260
+ integrationId: z.ZodString;
3261
+ code: z.ZodString;
3262
+ confirmed: z.ZodBoolean;
3263
+ causeCorrectedAt: z.ZodNullable<z.ZodISODateTime>;
3264
+ summary: z.ZodObject<{
3265
+ attention: z.ZodEnum<{
3266
+ action_required: "action_required";
3267
+ automatic_recovery: "automatic_recovery";
3268
+ resolved: "resolved";
3269
+ }>;
3270
+ total: z.ZodNumber;
3271
+ succeeded: z.ZodNumber;
3272
+ manuallyHandled: z.ZodNumber;
3273
+ superseded: z.ZodNumber;
3274
+ actionRequired: z.ZodNumber;
3275
+ automaticRecovery: z.ZodNumber;
3276
+ inProgress: z.ZodNumber;
3277
+ outcomeUnknown: z.ZodNumber;
3278
+ outstanding: z.ZodNumber;
3279
+ }, z.core.$strip>;
3280
+ operations: z.ZodArray<z.ZodPipe<z.ZodObject<{
3281
+ evidence: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
3282
+ schemaVersion: 1;
3283
+ code: string;
3284
+ confirmed: boolean;
3285
+ resources: {
3286
+ kind: "integration" | "order" | "order_item" | "order_modifier" | "product" | "variant" | "modifier" | "choice" | "category" | "restaurant" | "configuration" | "publication" | "process" | "process_step" | "payment_method" | "tax";
3287
+ identifier: string;
3288
+ role: "cause" | "affected" | "context";
3289
+ name: string | null;
3290
+ parentIdentifier: string | null;
3291
+ translations: Record<string, string>;
3292
+ }[];
3293
+ evidenceFingerprint: string;
3294
+ classifierVersion: number;
3295
+ } | null, unknown>>;
3296
+ evidenceComplete: z.ZodBoolean;
3297
+ evidenceSource: z.ZodNullable<z.ZodObject<{
3298
+ kind: z.ZodString;
3299
+ identifier: z.ZodString;
3300
+ generation: z.ZodString;
3301
+ }, z.core.$strip>>;
3302
+ actions: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
3303
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
3304
+ eligible: z.ZodLiteral<true>;
3305
+ code: z.ZodLiteral<"recovery_available">;
3306
+ action: z.ZodEnum<{
3307
+ retry: "retry";
3308
+ reconcile: "reconcile";
3309
+ sync_current_state: "sync_current_state";
3310
+ }>;
3311
+ }, z.core.$strip>, z.ZodObject<{
3312
+ eligible: z.ZodLiteral<false>;
3313
+ code: z.ZodString;
3314
+ action: z.ZodNull;
3315
+ }, z.core.$strip>], "eligible">;
3316
+ manualClosure: z.ZodDiscriminatedUnion<[z.ZodObject<{
3317
+ eligible: z.ZodLiteral<true>;
3318
+ code: z.ZodLiteral<"closure_available">;
3319
+ }, z.core.$strip>, z.ZodObject<{
3320
+ eligible: z.ZodLiteral<false>;
3321
+ code: z.ZodString;
3322
+ }, z.core.$strip>], "eligible">;
3323
+ evaluatedAt: z.ZodISODateTime;
3324
+ }, z.core.$strip>>>>;
3325
+ context: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
3326
+ kind: z.ZodEnum<{
3327
+ order: "order";
3328
+ integration_lifecycle: "integration_lifecycle";
3329
+ sync_process: "sync_process";
3330
+ catalog_import: "catalog_import";
3331
+ integration_issue: "integration_issue";
3332
+ publication_validation: "publication_validation";
3333
+ publication_receipt: "publication_receipt";
3334
+ }>;
3335
+ resourceId: z.ZodString;
3336
+ direction: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3337
+ inbound: "inbound";
3338
+ outbound: "outbound";
3339
+ }>>>;
3340
+ reference: z.ZodNullable<z.ZodString>;
3341
+ scope: z.ZodNullable<z.ZodString>;
3342
+ }, z.core.$strip>>>>;
3343
+ id: z.ZodString;
3344
+ service: z.ZodNullable<z.ZodString>;
3345
+ source: z.ZodObject<{
3346
+ kind: z.ZodString;
3347
+ identifier: z.ZodString;
3348
+ generation: z.ZodString;
3349
+ }, z.core.$strip>;
3350
+ recoveryState: z.ZodEnum<{
3351
+ action_required: "action_required";
3352
+ automatic_recovery: "automatic_recovery";
3353
+ in_progress: "in_progress";
3354
+ outcome_unknown: "outcome_unknown";
3355
+ succeeded: "succeeded";
3356
+ superseded: "superseded";
3357
+ }>;
3358
+ revision: z.ZodNumber;
3359
+ observedAt: z.ZodISODateTime;
3360
+ nextRecoveryAt: z.ZodNullable<z.ZodISODateTime>;
3361
+ manuallyClosedAt: z.ZodNullable<z.ZodISODateTime>;
3362
+ }, z.core.$strip>, z.ZodTransform<{
3363
+ evidenceComplete: boolean;
3364
+ evidence: {
3365
+ schemaVersion: 1;
3366
+ code: string;
3367
+ confirmed: boolean;
3368
+ resources: {
3369
+ kind: "integration" | "order" | "order_item" | "order_modifier" | "product" | "variant" | "modifier" | "choice" | "category" | "restaurant" | "configuration" | "publication" | "process" | "process_step" | "payment_method" | "tax";
3370
+ identifier: string;
3371
+ role: "cause" | "affected" | "context";
3372
+ name: string | null;
3373
+ parentIdentifier: string | null;
3374
+ translations: Record<string, string>;
3375
+ }[];
3376
+ evidenceFingerprint: string;
3377
+ classifierVersion: number;
3378
+ } | null;
3379
+ evidenceSource: {
3380
+ kind: string;
3381
+ identifier: string;
3382
+ generation: string;
3383
+ } | null;
3384
+ id: string;
3385
+ service: string | null;
3386
+ source: {
3387
+ kind: string;
3388
+ identifier: string;
3389
+ generation: string;
3390
+ };
3391
+ recoveryState: "action_required" | "automatic_recovery" | "in_progress" | "outcome_unknown" | "succeeded" | "superseded";
3392
+ revision: number;
3393
+ observedAt: string;
3394
+ nextRecoveryAt: string | null;
3395
+ manuallyClosedAt: string | null;
3396
+ actions?: {
3397
+ recovery: {
3398
+ eligible: true;
3399
+ code: "recovery_available";
3400
+ action: "retry" | "reconcile" | "sync_current_state";
3401
+ } | {
3402
+ eligible: false;
3403
+ code: string;
3404
+ action: null;
3405
+ };
3406
+ manualClosure: {
3407
+ eligible: true;
3408
+ code: "closure_available";
3409
+ } | {
3410
+ eligible: false;
3411
+ code: string;
3412
+ };
3413
+ evaluatedAt: string;
3414
+ } | null | undefined;
3415
+ context?: {
3416
+ kind: "order" | "integration_lifecycle" | "sync_process" | "catalog_import" | "integration_issue" | "publication_validation" | "publication_receipt";
3417
+ resourceId: string;
3418
+ reference: string | null;
3419
+ scope: string | null;
3420
+ direction?: "inbound" | "outbound" | null | undefined;
3421
+ } | null | undefined;
3422
+ }, {
3423
+ evidence: {
3424
+ schemaVersion: 1;
3425
+ code: string;
3426
+ confirmed: boolean;
3427
+ resources: {
3428
+ kind: "integration" | "order" | "order_item" | "order_modifier" | "product" | "variant" | "modifier" | "choice" | "category" | "restaurant" | "configuration" | "publication" | "process" | "process_step" | "payment_method" | "tax";
3429
+ identifier: string;
3430
+ role: "cause" | "affected" | "context";
3431
+ name: string | null;
3432
+ parentIdentifier: string | null;
3433
+ translations: Record<string, string>;
3434
+ }[];
3435
+ evidenceFingerprint: string;
3436
+ classifierVersion: number;
3437
+ } | null;
3438
+ evidenceComplete: boolean;
3439
+ evidenceSource: {
3440
+ kind: string;
3441
+ identifier: string;
3442
+ generation: string;
3443
+ } | null;
3444
+ id: string;
3445
+ service: string | null;
3446
+ source: {
3447
+ kind: string;
3448
+ identifier: string;
3449
+ generation: string;
3450
+ };
3451
+ recoveryState: "action_required" | "automatic_recovery" | "in_progress" | "outcome_unknown" | "succeeded" | "superseded";
3452
+ revision: number;
3453
+ observedAt: string;
3454
+ nextRecoveryAt: string | null;
3455
+ manuallyClosedAt: string | null;
3456
+ actions?: {
3457
+ recovery: {
3458
+ eligible: true;
3459
+ code: "recovery_available";
3460
+ action: "retry" | "reconcile" | "sync_current_state";
3461
+ } | {
3462
+ eligible: false;
3463
+ code: string;
3464
+ action: null;
3465
+ };
3466
+ manualClosure: {
3467
+ eligible: true;
3468
+ code: "closure_available";
3469
+ } | {
3470
+ eligible: false;
3471
+ code: string;
3472
+ };
3473
+ evaluatedAt: string;
3474
+ } | null | undefined;
3475
+ context?: {
3476
+ kind: "order" | "integration_lifecycle" | "sync_process" | "catalog_import" | "integration_issue" | "publication_validation" | "publication_receipt";
3477
+ resourceId: string;
3478
+ reference: string | null;
3479
+ scope: string | null;
3480
+ direction?: "inbound" | "outbound" | null | undefined;
3481
+ } | null | undefined;
3482
+ }>>>;
3483
+ page: z.ZodNumber;
3484
+ itemsPerPage: z.ZodNumber;
3485
+ hasNextPage: z.ZodBoolean;
3486
+ verification: z.ZodObject<{
3487
+ scope: z.ZodLiteral<"local">;
3488
+ outcome: z.ZodEnum<{
3489
+ unknown: "unknown";
3490
+ cause_present: "cause_present";
3491
+ cause_absent: "cause_absent";
3492
+ }>;
3493
+ reason: z.ZodString;
3494
+ checkedAt: z.ZodNullable<z.ZodISODateTime>;
3495
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
3496
+ fresh: z.ZodBoolean;
3497
+ findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
3498
+ schemaVersion: z.ZodLiteral<1>;
3499
+ code: z.ZodString;
3500
+ confirmed: z.ZodBoolean;
3501
+ resources: z.ZodArray<z.ZodObject<{
3502
+ kind: z.ZodEnum<{
3503
+ integration: "integration";
3504
+ order: "order";
3505
+ order_item: "order_item";
3506
+ order_modifier: "order_modifier";
3507
+ product: "product";
3508
+ variant: "variant";
3509
+ modifier: "modifier";
3510
+ choice: "choice";
3511
+ category: "category";
3512
+ restaurant: "restaurant";
3513
+ configuration: "configuration";
3514
+ publication: "publication";
3515
+ process: "process";
3516
+ process_step: "process_step";
3517
+ payment_method: "payment_method";
3518
+ tax: "tax";
3519
+ }>;
3520
+ identifier: z.ZodString;
3521
+ role: z.ZodEnum<{
3522
+ cause: "cause";
3523
+ affected: "affected";
3524
+ context: "context";
3525
+ }>;
3526
+ name: z.ZodNullable<z.ZodString>;
3527
+ parentIdentifier: z.ZodNullable<z.ZodString>;
3528
+ translations: z.ZodPipe<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodNever>]>, z.ZodTransform<Record<string, string>, never[] | Record<string, string>>>;
3529
+ }, z.core.$strip>>;
3530
+ evidenceFingerprint: z.ZodString;
3531
+ classifierVersion: z.ZodNumber;
3532
+ }, z.core.$strip>>>;
3533
+ }, z.core.$strip>;
3534
+ }, z.core.$strip>;
3535
+ readonly querySchema: undefined;
3536
+ readonly headersSchema: undefined;
3537
+ constructor(problemId: string);
3538
+ getPath(): string;
3539
+ }
3540
+
3541
+ /** Explain only recorded, unambiguous parent relationships; never infer catalog ownership from a label. */
3542
+ declare function describeDiagnosticResourcePath(resource: DiagnosticResource, resources: readonly DiagnosticResource[], locale: DiagnosticLocale, service?: string | null): string | null;
3543
+
3544
+ /** UI eligibility is provisional; preview and the worker enforce native permissions. */
3545
+ declare function canSelectDiagnosticOperation(operation: DiagnosticAffectedOperation): boolean;
3546
+ declare function canCloseDiagnosticOperation(operation: DiagnosticAffectedOperation): boolean;
3547
+ declare function diagnosticSelection(operations: DiagnosticAffectedOperation[], selected: string[], requestKey: string): DiagnosticRecoveryInput;
3548
+ declare function eligibleDiagnosticSelection(input: DiagnosticRecoveryInput, preview: DiagnosticRecoveryPreview): DiagnosticRecoveryInput;
3549
+
3550
+ /** Display only known provider brands; never echo arbitrary source metadata. */
3551
+ declare function diagnosticServiceName(service: string | null | undefined): string | null;
3552
+
3553
+ export { CloseDiagnosticOperation, type DiagnosticAffectedOperation, type DiagnosticAssistance, type DiagnosticAssistanceInternal, type DiagnosticAssistanceQueueItem, type DiagnosticAssistanceSummary, type DiagnosticAssistanceUpdateInput, type DiagnosticAttempt, type DiagnosticAttemptHistory, type DiagnosticFinding, type DiagnosticLocale, type DiagnosticOperationActions, type DiagnosticOperationContext, type DiagnosticOverview, type DiagnosticProblem, type DiagnosticProblemQueueItem, type DiagnosticProblemSummary, type DiagnosticRecoveryHistoryItem, type DiagnosticRecoveryInput, type DiagnosticRecoveryPreview, type DiagnosticRecoveryRequest, type DiagnosticResource, type DiagnosticVerification, GetDiagnosticAssistanceDetails, GetDiagnosticAssistanceHistory, GetDiagnosticAssistanceInternal, GetDiagnosticAssistanceQueue, GetDiagnosticAttemptHistory, GetDiagnosticOperationDetails, GetDiagnosticOverview, GetDiagnosticProblemDetails, GetDiagnosticProblemQueue, GetDiagnosticProblems, GetDiagnosticRecoveryHistory, GetDiagnosticRecoveryRequestDetails, PreviewDiagnosticRecovery, type RecoveryReceiptState, ReplyDiagnosticAssistance, RequestDiagnosticAssistance, RequestDiagnosticRecovery, UpdateDiagnosticAssistance, VerifyDiagnosticProblem, canCloseDiagnosticOperation, canSelectDiagnosticOperation, describeDiagnostic, describeDiagnosticActionAvailability, describeDiagnosticAttempt, describeDiagnosticOperation, describeDiagnosticRecovery, describeDiagnosticRecoveryItem, describeDiagnosticResourcePath, describeDiagnosticScope, describeLocalDiagnostic, describeVerification, diagnosticAffectedOperationSchema, diagnosticAssistanceEventSchema, diagnosticAssistanceHistorySchema, diagnosticAssistanceInternalSchema, diagnosticAssistanceQuerySchema, diagnosticAssistanceQueueItemSchema, diagnosticAssistanceQueueQuerySchema, diagnosticAssistanceReplyInputSchema, diagnosticAssistanceRequestInputSchema, diagnosticAssistanceSchema, diagnosticAssistanceSummarySchema, diagnosticAssistanceUpdateInputSchema, diagnosticAttemptHistoryQuerySchema, diagnosticAttemptHistorySchema, diagnosticAttemptSchema, diagnosticAttentionSchema, diagnosticCodeSchema, diagnosticDateSchema, diagnosticFindingSchema, diagnosticIdSchema, diagnosticInvalidationRevision, diagnosticInvalidationSchema, diagnosticManualClosureInputSchema, diagnosticOperationActionsSchema, diagnosticOperationContextSchema, diagnosticOperationSchema, diagnosticOverviewSchema, diagnosticProblemPageQuerySchema, diagnosticProblemQueueItemSchema, diagnosticProblemQueueQuerySchema, diagnosticProblemQueueSchema, diagnosticProblemSchema, diagnosticProblemSummarySchema, diagnosticProblemsQuerySchema, diagnosticRecoveryActionSchema, diagnosticRecoveryHistoryItemSchema, diagnosticRecoveryHistoryQuerySchema, diagnosticRecoveryInputSchema, diagnosticRecoveryPreviewSchema, diagnosticRecoveryRequestSchema, diagnosticRecoveryStateSchema, diagnosticRecoverySummarySchema, diagnosticResourceName, diagnosticResourceSchema, diagnosticSelection, diagnosticServiceName, diagnosticSourceSchema, diagnosticVerificationSchema, eligibleDiagnosticSelection, readableDiagnosticFindingSchema };