@dakkitor/api-contracts 1.6.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +12 -12
  2. package/dist/curated-worker-leads/consent-queue.contract.d.ts +28 -28
  3. package/dist/index.d.ts +6 -0
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +6 -0
  6. package/dist/outreach/__tests__/outreach-requests.contract.spec.js +37 -0
  7. package/dist/outreach/lab-outreach.contract.d.ts +1110 -0
  8. package/dist/outreach/lab-outreach.contract.d.ts.map +1 -0
  9. package/dist/outreach/lab-outreach.contract.js +174 -0
  10. package/dist/outreach/lab-outreach.contract.spec.d.ts +2 -0
  11. package/dist/outreach/lab-outreach.contract.spec.d.ts.map +1 -0
  12. package/dist/outreach/lab-outreach.contract.spec.js +90 -0
  13. package/dist/outreach/outreach-requests.contract.d.ts +84 -0
  14. package/dist/outreach/outreach-requests.contract.d.ts.map +1 -1
  15. package/dist/outreach/outreach-requests.schemas.d.ts +9 -0
  16. package/dist/outreach/outreach-requests.schemas.d.ts.map +1 -1
  17. package/dist/outreach/outreach-requests.schemas.js +3 -0
  18. package/dist/outreach/outreach.contract.spec.js +3 -0
  19. package/dist/relay-pods/relay-lab-fleet.contract.d.ts +858 -0
  20. package/dist/relay-pods/relay-lab-fleet.contract.d.ts.map +1 -0
  21. package/dist/relay-pods/relay-lab-fleet.contract.js +79 -0
  22. package/dist/relay-pods/relay-lab-fleet.contract.spec.d.ts +2 -0
  23. package/dist/relay-pods/relay-lab-fleet.contract.spec.d.ts.map +1 -0
  24. package/dist/relay-pods/relay-lab-fleet.contract.spec.js +162 -0
  25. package/dist/relay-pods/relay-lab-fleet.schemas.d.ts +472 -0
  26. package/dist/relay-pods/relay-lab-fleet.schemas.d.ts.map +1 -0
  27. package/dist/relay-pods/relay-lab-fleet.schemas.js +155 -0
  28. package/package.json +1 -1
@@ -0,0 +1,858 @@
1
+ import { z } from 'zod';
2
+ export * from './relay-lab-fleet.schemas';
3
+ export declare const relayLabFleetContract: {
4
+ publishSnapshot: {
5
+ metadata: {
6
+ tags: string[];
7
+ };
8
+ summary: "Publish a Relay pod Lab-device snapshot";
9
+ method: "PUT";
10
+ body: z.ZodObject<{
11
+ generation: z.ZodNumber;
12
+ observedAt: z.ZodString;
13
+ devices: z.ZodArray<z.ZodObject<{
14
+ localDeviceKey: z.ZodString;
15
+ label: z.ZodNullable<z.ZodString>;
16
+ phoneE164: z.ZodNullable<z.ZodString>;
17
+ lifecycleStatus: z.ZodEnum<["ACTIVE", "RETIRED"]>;
18
+ connectionStatus: z.ZodEnum<["ONLINE", "OFFLINE"]>;
19
+ restrictionStatus: z.ZodEnum<["NONE", "RECOVERING", "RESTRICTED"]>;
20
+ lastSeenAt: z.ZodString;
21
+ }, "strict", z.ZodTypeAny, {
22
+ localDeviceKey: string;
23
+ label: string | null;
24
+ phoneE164: string | null;
25
+ lifecycleStatus: "ACTIVE" | "RETIRED";
26
+ connectionStatus: "ONLINE" | "OFFLINE";
27
+ restrictionStatus: "NONE" | "RECOVERING" | "RESTRICTED";
28
+ lastSeenAt: string;
29
+ }, {
30
+ localDeviceKey: string;
31
+ label: string | null;
32
+ phoneE164: string | null;
33
+ lifecycleStatus: "ACTIVE" | "RETIRED";
34
+ connectionStatus: "ONLINE" | "OFFLINE";
35
+ restrictionStatus: "NONE" | "RECOVERING" | "RESTRICTED";
36
+ lastSeenAt: string;
37
+ }>, "many">;
38
+ }, "strict", z.ZodTypeAny, {
39
+ devices: {
40
+ localDeviceKey: string;
41
+ label: string | null;
42
+ phoneE164: string | null;
43
+ lifecycleStatus: "ACTIVE" | "RETIRED";
44
+ connectionStatus: "ONLINE" | "OFFLINE";
45
+ restrictionStatus: "NONE" | "RECOVERING" | "RESTRICTED";
46
+ lastSeenAt: string;
47
+ }[];
48
+ generation: number;
49
+ observedAt: string;
50
+ }, {
51
+ devices: {
52
+ localDeviceKey: string;
53
+ label: string | null;
54
+ phoneE164: string | null;
55
+ lifecycleStatus: "ACTIVE" | "RETIRED";
56
+ connectionStatus: "ONLINE" | "OFFLINE";
57
+ restrictionStatus: "NONE" | "RECOVERING" | "RESTRICTED";
58
+ lastSeenAt: string;
59
+ }[];
60
+ generation: number;
61
+ observedAt: string;
62
+ }>;
63
+ path: "/v2/relay-pods/me/lab-devices/snapshot";
64
+ responses: {
65
+ 400: z.ZodObject<{
66
+ statusCode: z.ZodNumber;
67
+ message: z.ZodString;
68
+ code: z.ZodString;
69
+ details: z.ZodOptional<z.ZodUnknown>;
70
+ timestamp: z.ZodString;
71
+ path: z.ZodString;
72
+ correlationId: z.ZodOptional<z.ZodString>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ code: string;
75
+ path: string;
76
+ message: string;
77
+ statusCode: number;
78
+ timestamp: string;
79
+ details?: unknown;
80
+ correlationId?: string | undefined;
81
+ }, {
82
+ code: string;
83
+ path: string;
84
+ message: string;
85
+ statusCode: number;
86
+ timestamp: string;
87
+ details?: unknown;
88
+ correlationId?: string | undefined;
89
+ }>;
90
+ 401: z.ZodObject<{
91
+ statusCode: z.ZodNumber;
92
+ message: z.ZodString;
93
+ code: z.ZodString;
94
+ details: z.ZodOptional<z.ZodUnknown>;
95
+ timestamp: z.ZodString;
96
+ path: z.ZodString;
97
+ correlationId: z.ZodOptional<z.ZodString>;
98
+ }, "strip", z.ZodTypeAny, {
99
+ code: string;
100
+ path: string;
101
+ message: string;
102
+ statusCode: number;
103
+ timestamp: string;
104
+ details?: unknown;
105
+ correlationId?: string | undefined;
106
+ }, {
107
+ code: string;
108
+ path: string;
109
+ message: string;
110
+ statusCode: number;
111
+ timestamp: string;
112
+ details?: unknown;
113
+ correlationId?: string | undefined;
114
+ }>;
115
+ 403: z.ZodObject<{
116
+ statusCode: z.ZodNumber;
117
+ message: z.ZodString;
118
+ code: z.ZodString;
119
+ details: z.ZodOptional<z.ZodUnknown>;
120
+ timestamp: z.ZodString;
121
+ path: z.ZodString;
122
+ correlationId: z.ZodOptional<z.ZodString>;
123
+ }, "strip", z.ZodTypeAny, {
124
+ code: string;
125
+ path: string;
126
+ message: string;
127
+ statusCode: number;
128
+ timestamp: string;
129
+ details?: unknown;
130
+ correlationId?: string | undefined;
131
+ }, {
132
+ code: string;
133
+ path: string;
134
+ message: string;
135
+ statusCode: number;
136
+ timestamp: string;
137
+ details?: unknown;
138
+ correlationId?: string | undefined;
139
+ }>;
140
+ 500: z.ZodObject<{
141
+ statusCode: z.ZodNumber;
142
+ message: z.ZodString;
143
+ code: z.ZodString;
144
+ details: z.ZodOptional<z.ZodUnknown>;
145
+ timestamp: z.ZodString;
146
+ path: z.ZodString;
147
+ correlationId: z.ZodOptional<z.ZodString>;
148
+ }, "strip", z.ZodTypeAny, {
149
+ code: string;
150
+ path: string;
151
+ message: string;
152
+ statusCode: number;
153
+ timestamp: string;
154
+ details?: unknown;
155
+ correlationId?: string | undefined;
156
+ }, {
157
+ code: string;
158
+ path: string;
159
+ message: string;
160
+ statusCode: number;
161
+ timestamp: string;
162
+ details?: unknown;
163
+ correlationId?: string | undefined;
164
+ }>;
165
+ 200: z.ZodObject<{
166
+ acceptedGeneration: z.ZodNumber;
167
+ revision: z.ZodNumber;
168
+ }, "strict", z.ZodTypeAny, {
169
+ revision: number;
170
+ acceptedGeneration: number;
171
+ }, {
172
+ revision: number;
173
+ acceptedGeneration: number;
174
+ }>;
175
+ };
176
+ };
177
+ readFleet: {
178
+ metadata: {
179
+ tags: string[];
180
+ };
181
+ summary: "Read the current multi-pod Relay Lab fleet";
182
+ method: "GET";
183
+ path: "/v2/relay-pods/lab-fleet";
184
+ responses: {
185
+ 400: z.ZodObject<{
186
+ statusCode: z.ZodNumber;
187
+ message: z.ZodString;
188
+ code: z.ZodString;
189
+ details: z.ZodOptional<z.ZodUnknown>;
190
+ timestamp: z.ZodString;
191
+ path: z.ZodString;
192
+ correlationId: z.ZodOptional<z.ZodString>;
193
+ }, "strip", z.ZodTypeAny, {
194
+ code: string;
195
+ path: string;
196
+ message: string;
197
+ statusCode: number;
198
+ timestamp: string;
199
+ details?: unknown;
200
+ correlationId?: string | undefined;
201
+ }, {
202
+ code: string;
203
+ path: string;
204
+ message: string;
205
+ statusCode: number;
206
+ timestamp: string;
207
+ details?: unknown;
208
+ correlationId?: string | undefined;
209
+ }>;
210
+ 401: z.ZodObject<{
211
+ statusCode: z.ZodNumber;
212
+ message: z.ZodString;
213
+ code: z.ZodString;
214
+ details: z.ZodOptional<z.ZodUnknown>;
215
+ timestamp: z.ZodString;
216
+ path: z.ZodString;
217
+ correlationId: z.ZodOptional<z.ZodString>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ code: string;
220
+ path: string;
221
+ message: string;
222
+ statusCode: number;
223
+ timestamp: string;
224
+ details?: unknown;
225
+ correlationId?: string | undefined;
226
+ }, {
227
+ code: string;
228
+ path: string;
229
+ message: string;
230
+ statusCode: number;
231
+ timestamp: string;
232
+ details?: unknown;
233
+ correlationId?: string | undefined;
234
+ }>;
235
+ 403: z.ZodObject<{
236
+ statusCode: z.ZodNumber;
237
+ message: z.ZodString;
238
+ code: z.ZodString;
239
+ details: z.ZodOptional<z.ZodUnknown>;
240
+ timestamp: z.ZodString;
241
+ path: z.ZodString;
242
+ correlationId: z.ZodOptional<z.ZodString>;
243
+ }, "strip", z.ZodTypeAny, {
244
+ code: string;
245
+ path: string;
246
+ message: string;
247
+ statusCode: number;
248
+ timestamp: string;
249
+ details?: unknown;
250
+ correlationId?: string | undefined;
251
+ }, {
252
+ code: string;
253
+ path: string;
254
+ message: string;
255
+ statusCode: number;
256
+ timestamp: string;
257
+ details?: unknown;
258
+ correlationId?: string | undefined;
259
+ }>;
260
+ 500: z.ZodObject<{
261
+ statusCode: z.ZodNumber;
262
+ message: z.ZodString;
263
+ code: z.ZodString;
264
+ details: z.ZodOptional<z.ZodUnknown>;
265
+ timestamp: z.ZodString;
266
+ path: z.ZodString;
267
+ correlationId: z.ZodOptional<z.ZodString>;
268
+ }, "strip", z.ZodTypeAny, {
269
+ code: string;
270
+ path: string;
271
+ message: string;
272
+ statusCode: number;
273
+ timestamp: string;
274
+ details?: unknown;
275
+ correlationId?: string | undefined;
276
+ }, {
277
+ code: string;
278
+ path: string;
279
+ message: string;
280
+ statusCode: number;
281
+ timestamp: string;
282
+ details?: unknown;
283
+ correlationId?: string | undefined;
284
+ }>;
285
+ 200: z.ZodObject<{
286
+ revision: z.ZodNumber;
287
+ devices: z.ZodArray<z.ZodObject<{
288
+ id: z.ZodString;
289
+ podId: z.ZodString;
290
+ podSlug: z.ZodString;
291
+ podDisplayName: z.ZodString;
292
+ localDeviceKey: z.ZodString;
293
+ label: z.ZodNullable<z.ZodString>;
294
+ phoneE164: z.ZodNullable<z.ZodString>;
295
+ identityVersion: z.ZodNumber;
296
+ lifecycleStatus: z.ZodEnum<["ACTIVE", "RETIRED"]>;
297
+ enrollmentStatus: z.ZodEnum<["UNENROLLED", "ENROLLED", "REVOKED"]>;
298
+ connectionStatus: z.ZodEnum<["ONLINE", "OFFLINE"]>;
299
+ restrictionStatus: z.ZodEnum<["NONE", "RECOVERING", "RESTRICTED"]>;
300
+ identityStatus: z.ZodEnum<["INCOMPLETE", "VALID", "CONFLICT"]>;
301
+ lastSeenAt: z.ZodString;
302
+ }, "strict", z.ZodTypeAny, {
303
+ id: string;
304
+ podId: string;
305
+ podSlug: string;
306
+ podDisplayName: string;
307
+ localDeviceKey: string;
308
+ label: string | null;
309
+ phoneE164: string | null;
310
+ identityVersion: number;
311
+ lifecycleStatus: "ACTIVE" | "RETIRED";
312
+ enrollmentStatus: "UNENROLLED" | "ENROLLED" | "REVOKED";
313
+ connectionStatus: "ONLINE" | "OFFLINE";
314
+ restrictionStatus: "NONE" | "RECOVERING" | "RESTRICTED";
315
+ identityStatus: "INCOMPLETE" | "VALID" | "CONFLICT";
316
+ lastSeenAt: string;
317
+ }, {
318
+ id: string;
319
+ podId: string;
320
+ podSlug: string;
321
+ podDisplayName: string;
322
+ localDeviceKey: string;
323
+ label: string | null;
324
+ phoneE164: string | null;
325
+ identityVersion: number;
326
+ lifecycleStatus: "ACTIVE" | "RETIRED";
327
+ enrollmentStatus: "UNENROLLED" | "ENROLLED" | "REVOKED";
328
+ connectionStatus: "ONLINE" | "OFFLINE";
329
+ restrictionStatus: "NONE" | "RECOVERING" | "RESTRICTED";
330
+ identityStatus: "INCOMPLETE" | "VALID" | "CONFLICT";
331
+ lastSeenAt: string;
332
+ }>, "many">;
333
+ readiness: z.ZodArray<z.ZodObject<{
334
+ podId: z.ZodString;
335
+ podDisplayName: z.ZodString;
336
+ revision: z.ZodNumber;
337
+ requiredPairCount: z.ZodNumber;
338
+ savedPairCount: z.ZodNumber;
339
+ failedPairCount: z.ZodNumber;
340
+ missingPairs: z.ZodArray<z.ZodObject<{
341
+ ownerLocalDeviceKey: z.ZodString;
342
+ contactLabDeviceId: z.ZodString;
343
+ errorCode: z.ZodEnum<["OWNER_OFFLINE", "CONTACT_WRITE_FAILED"]>;
344
+ }, "strict", z.ZodTypeAny, {
345
+ ownerLocalDeviceKey: string;
346
+ contactLabDeviceId: string;
347
+ errorCode: "OWNER_OFFLINE" | "CONTACT_WRITE_FAILED";
348
+ }, {
349
+ ownerLocalDeviceKey: string;
350
+ contactLabDeviceId: string;
351
+ errorCode: "OWNER_OFFLINE" | "CONTACT_WRITE_FAILED";
352
+ }>, "many">;
353
+ reportedAt: z.ZodString;
354
+ expiresAt: z.ZodString;
355
+ ready: z.ZodBoolean;
356
+ }, "strict", z.ZodTypeAny, {
357
+ podId: string;
358
+ podDisplayName: string;
359
+ revision: number;
360
+ requiredPairCount: number;
361
+ savedPairCount: number;
362
+ failedPairCount: number;
363
+ missingPairs: {
364
+ ownerLocalDeviceKey: string;
365
+ contactLabDeviceId: string;
366
+ errorCode: "OWNER_OFFLINE" | "CONTACT_WRITE_FAILED";
367
+ }[];
368
+ reportedAt: string;
369
+ expiresAt: string;
370
+ ready: boolean;
371
+ }, {
372
+ podId: string;
373
+ podDisplayName: string;
374
+ revision: number;
375
+ requiredPairCount: number;
376
+ savedPairCount: number;
377
+ failedPairCount: number;
378
+ missingPairs: {
379
+ ownerLocalDeviceKey: string;
380
+ contactLabDeviceId: string;
381
+ errorCode: "OWNER_OFFLINE" | "CONTACT_WRITE_FAILED";
382
+ }[];
383
+ reportedAt: string;
384
+ expiresAt: string;
385
+ ready: boolean;
386
+ }>, "many">;
387
+ }, "strict", z.ZodTypeAny, {
388
+ revision: number;
389
+ devices: {
390
+ id: string;
391
+ podId: string;
392
+ podSlug: string;
393
+ podDisplayName: string;
394
+ localDeviceKey: string;
395
+ label: string | null;
396
+ phoneE164: string | null;
397
+ identityVersion: number;
398
+ lifecycleStatus: "ACTIVE" | "RETIRED";
399
+ enrollmentStatus: "UNENROLLED" | "ENROLLED" | "REVOKED";
400
+ connectionStatus: "ONLINE" | "OFFLINE";
401
+ restrictionStatus: "NONE" | "RECOVERING" | "RESTRICTED";
402
+ identityStatus: "INCOMPLETE" | "VALID" | "CONFLICT";
403
+ lastSeenAt: string;
404
+ }[];
405
+ readiness: {
406
+ podId: string;
407
+ podDisplayName: string;
408
+ revision: number;
409
+ requiredPairCount: number;
410
+ savedPairCount: number;
411
+ failedPairCount: number;
412
+ missingPairs: {
413
+ ownerLocalDeviceKey: string;
414
+ contactLabDeviceId: string;
415
+ errorCode: "OWNER_OFFLINE" | "CONTACT_WRITE_FAILED";
416
+ }[];
417
+ reportedAt: string;
418
+ expiresAt: string;
419
+ ready: boolean;
420
+ }[];
421
+ }, {
422
+ revision: number;
423
+ devices: {
424
+ id: string;
425
+ podId: string;
426
+ podSlug: string;
427
+ podDisplayName: string;
428
+ localDeviceKey: string;
429
+ label: string | null;
430
+ phoneE164: string | null;
431
+ identityVersion: number;
432
+ lifecycleStatus: "ACTIVE" | "RETIRED";
433
+ enrollmentStatus: "UNENROLLED" | "ENROLLED" | "REVOKED";
434
+ connectionStatus: "ONLINE" | "OFFLINE";
435
+ restrictionStatus: "NONE" | "RECOVERING" | "RESTRICTED";
436
+ identityStatus: "INCOMPLETE" | "VALID" | "CONFLICT";
437
+ lastSeenAt: string;
438
+ }[];
439
+ readiness: {
440
+ podId: string;
441
+ podDisplayName: string;
442
+ revision: number;
443
+ requiredPairCount: number;
444
+ savedPairCount: number;
445
+ failedPairCount: number;
446
+ missingPairs: {
447
+ ownerLocalDeviceKey: string;
448
+ contactLabDeviceId: string;
449
+ errorCode: "OWNER_OFFLINE" | "CONTACT_WRITE_FAILED";
450
+ }[];
451
+ reportedAt: string;
452
+ expiresAt: string;
453
+ ready: boolean;
454
+ }[];
455
+ }>;
456
+ };
457
+ };
458
+ reportReadiness: {
459
+ metadata: {
460
+ tags: string[];
461
+ };
462
+ summary: "Report pod-local Relay Lab readiness";
463
+ method: "PUT";
464
+ body: z.ZodObject<Omit<{
465
+ podId: z.ZodString;
466
+ podDisplayName: z.ZodString;
467
+ revision: z.ZodNumber;
468
+ requiredPairCount: z.ZodNumber;
469
+ savedPairCount: z.ZodNumber;
470
+ failedPairCount: z.ZodNumber;
471
+ missingPairs: z.ZodArray<z.ZodObject<{
472
+ ownerLocalDeviceKey: z.ZodString;
473
+ contactLabDeviceId: z.ZodString;
474
+ errorCode: z.ZodEnum<["OWNER_OFFLINE", "CONTACT_WRITE_FAILED"]>;
475
+ }, "strict", z.ZodTypeAny, {
476
+ ownerLocalDeviceKey: string;
477
+ contactLabDeviceId: string;
478
+ errorCode: "OWNER_OFFLINE" | "CONTACT_WRITE_FAILED";
479
+ }, {
480
+ ownerLocalDeviceKey: string;
481
+ contactLabDeviceId: string;
482
+ errorCode: "OWNER_OFFLINE" | "CONTACT_WRITE_FAILED";
483
+ }>, "many">;
484
+ reportedAt: z.ZodString;
485
+ expiresAt: z.ZodString;
486
+ ready: z.ZodBoolean;
487
+ }, "podId" | "podDisplayName" | "reportedAt" | "expiresAt" | "ready">, "strict", z.ZodTypeAny, {
488
+ revision: number;
489
+ requiredPairCount: number;
490
+ savedPairCount: number;
491
+ failedPairCount: number;
492
+ missingPairs: {
493
+ ownerLocalDeviceKey: string;
494
+ contactLabDeviceId: string;
495
+ errorCode: "OWNER_OFFLINE" | "CONTACT_WRITE_FAILED";
496
+ }[];
497
+ }, {
498
+ revision: number;
499
+ requiredPairCount: number;
500
+ savedPairCount: number;
501
+ failedPairCount: number;
502
+ missingPairs: {
503
+ ownerLocalDeviceKey: string;
504
+ contactLabDeviceId: string;
505
+ errorCode: "OWNER_OFFLINE" | "CONTACT_WRITE_FAILED";
506
+ }[];
507
+ }>;
508
+ path: "/v2/relay-pods/me/lab-readiness";
509
+ responses: {
510
+ 400: z.ZodObject<{
511
+ statusCode: z.ZodNumber;
512
+ message: z.ZodString;
513
+ code: z.ZodString;
514
+ details: z.ZodOptional<z.ZodUnknown>;
515
+ timestamp: z.ZodString;
516
+ path: z.ZodString;
517
+ correlationId: z.ZodOptional<z.ZodString>;
518
+ }, "strip", z.ZodTypeAny, {
519
+ code: string;
520
+ path: string;
521
+ message: string;
522
+ statusCode: number;
523
+ timestamp: string;
524
+ details?: unknown;
525
+ correlationId?: string | undefined;
526
+ }, {
527
+ code: string;
528
+ path: string;
529
+ message: string;
530
+ statusCode: number;
531
+ timestamp: string;
532
+ details?: unknown;
533
+ correlationId?: string | undefined;
534
+ }>;
535
+ 401: z.ZodObject<{
536
+ statusCode: z.ZodNumber;
537
+ message: z.ZodString;
538
+ code: z.ZodString;
539
+ details: z.ZodOptional<z.ZodUnknown>;
540
+ timestamp: z.ZodString;
541
+ path: z.ZodString;
542
+ correlationId: z.ZodOptional<z.ZodString>;
543
+ }, "strip", z.ZodTypeAny, {
544
+ code: string;
545
+ path: string;
546
+ message: string;
547
+ statusCode: number;
548
+ timestamp: string;
549
+ details?: unknown;
550
+ correlationId?: string | undefined;
551
+ }, {
552
+ code: string;
553
+ path: string;
554
+ message: string;
555
+ statusCode: number;
556
+ timestamp: string;
557
+ details?: unknown;
558
+ correlationId?: string | undefined;
559
+ }>;
560
+ 403: z.ZodObject<{
561
+ statusCode: z.ZodNumber;
562
+ message: z.ZodString;
563
+ code: z.ZodString;
564
+ details: z.ZodOptional<z.ZodUnknown>;
565
+ timestamp: z.ZodString;
566
+ path: z.ZodString;
567
+ correlationId: z.ZodOptional<z.ZodString>;
568
+ }, "strip", z.ZodTypeAny, {
569
+ code: string;
570
+ path: string;
571
+ message: string;
572
+ statusCode: number;
573
+ timestamp: string;
574
+ details?: unknown;
575
+ correlationId?: string | undefined;
576
+ }, {
577
+ code: string;
578
+ path: string;
579
+ message: string;
580
+ statusCode: number;
581
+ timestamp: string;
582
+ details?: unknown;
583
+ correlationId?: string | undefined;
584
+ }>;
585
+ 500: z.ZodObject<{
586
+ statusCode: z.ZodNumber;
587
+ message: z.ZodString;
588
+ code: z.ZodString;
589
+ details: z.ZodOptional<z.ZodUnknown>;
590
+ timestamp: z.ZodString;
591
+ path: z.ZodString;
592
+ correlationId: z.ZodOptional<z.ZodString>;
593
+ }, "strip", z.ZodTypeAny, {
594
+ code: string;
595
+ path: string;
596
+ message: string;
597
+ statusCode: number;
598
+ timestamp: string;
599
+ details?: unknown;
600
+ correlationId?: string | undefined;
601
+ }, {
602
+ code: string;
603
+ path: string;
604
+ message: string;
605
+ statusCode: number;
606
+ timestamp: string;
607
+ details?: unknown;
608
+ correlationId?: string | undefined;
609
+ }>;
610
+ 200: z.ZodObject<{
611
+ podId: z.ZodString;
612
+ podDisplayName: z.ZodString;
613
+ revision: z.ZodNumber;
614
+ requiredPairCount: z.ZodNumber;
615
+ savedPairCount: z.ZodNumber;
616
+ failedPairCount: z.ZodNumber;
617
+ missingPairs: z.ZodArray<z.ZodObject<{
618
+ ownerLocalDeviceKey: z.ZodString;
619
+ contactLabDeviceId: z.ZodString;
620
+ errorCode: z.ZodEnum<["OWNER_OFFLINE", "CONTACT_WRITE_FAILED"]>;
621
+ }, "strict", z.ZodTypeAny, {
622
+ ownerLocalDeviceKey: string;
623
+ contactLabDeviceId: string;
624
+ errorCode: "OWNER_OFFLINE" | "CONTACT_WRITE_FAILED";
625
+ }, {
626
+ ownerLocalDeviceKey: string;
627
+ contactLabDeviceId: string;
628
+ errorCode: "OWNER_OFFLINE" | "CONTACT_WRITE_FAILED";
629
+ }>, "many">;
630
+ reportedAt: z.ZodString;
631
+ expiresAt: z.ZodString;
632
+ ready: z.ZodBoolean;
633
+ }, "strict", z.ZodTypeAny, {
634
+ podId: string;
635
+ podDisplayName: string;
636
+ revision: number;
637
+ requiredPairCount: number;
638
+ savedPairCount: number;
639
+ failedPairCount: number;
640
+ missingPairs: {
641
+ ownerLocalDeviceKey: string;
642
+ contactLabDeviceId: string;
643
+ errorCode: "OWNER_OFFLINE" | "CONTACT_WRITE_FAILED";
644
+ }[];
645
+ reportedAt: string;
646
+ expiresAt: string;
647
+ ready: boolean;
648
+ }, {
649
+ podId: string;
650
+ podDisplayName: string;
651
+ revision: number;
652
+ requiredPairCount: number;
653
+ savedPairCount: number;
654
+ failedPairCount: number;
655
+ missingPairs: {
656
+ ownerLocalDeviceKey: string;
657
+ contactLabDeviceId: string;
658
+ errorCode: "OWNER_OFFLINE" | "CONTACT_WRITE_FAILED";
659
+ }[];
660
+ reportedAt: string;
661
+ expiresAt: string;
662
+ ready: boolean;
663
+ }>;
664
+ };
665
+ };
666
+ updateEnrollment: {
667
+ metadata: {
668
+ tags: string[];
669
+ };
670
+ pathParams: z.ZodObject<{
671
+ localDeviceKey: z.ZodString;
672
+ }, "strict", z.ZodTypeAny, {
673
+ localDeviceKey: string;
674
+ }, {
675
+ localDeviceKey: string;
676
+ }>;
677
+ summary: "Update a local Relay Lab device enrollment state";
678
+ method: "PATCH";
679
+ body: z.ZodDiscriminatedUnion<"enrollmentStatus", [z.ZodObject<{
680
+ enrollmentStatus: z.ZodLiteral<"ENROLLED">;
681
+ expectedIdentity: z.ZodObject<{
682
+ identityVersion: z.ZodNumber;
683
+ label: z.ZodEffects<z.ZodString, string, string>;
684
+ phoneE164: z.ZodString;
685
+ }, "strict", z.ZodTypeAny, {
686
+ label: string;
687
+ phoneE164: string;
688
+ identityVersion: number;
689
+ }, {
690
+ label: string;
691
+ phoneE164: string;
692
+ identityVersion: number;
693
+ }>;
694
+ }, "strict", z.ZodTypeAny, {
695
+ enrollmentStatus: "ENROLLED";
696
+ expectedIdentity: {
697
+ label: string;
698
+ phoneE164: string;
699
+ identityVersion: number;
700
+ };
701
+ }, {
702
+ enrollmentStatus: "ENROLLED";
703
+ expectedIdentity: {
704
+ label: string;
705
+ phoneE164: string;
706
+ identityVersion: number;
707
+ };
708
+ }>, z.ZodObject<{
709
+ enrollmentStatus: z.ZodLiteral<"REVOKED">;
710
+ }, "strict", z.ZodTypeAny, {
711
+ enrollmentStatus: "REVOKED";
712
+ }, {
713
+ enrollmentStatus: "REVOKED";
714
+ }>]>;
715
+ path: "/v2/relay-pods/me/lab-devices/:localDeviceKey/enrollment";
716
+ responses: {
717
+ 400: z.ZodObject<{
718
+ statusCode: z.ZodNumber;
719
+ message: z.ZodString;
720
+ code: z.ZodString;
721
+ details: z.ZodOptional<z.ZodUnknown>;
722
+ timestamp: z.ZodString;
723
+ path: z.ZodString;
724
+ correlationId: z.ZodOptional<z.ZodString>;
725
+ }, "strip", z.ZodTypeAny, {
726
+ code: string;
727
+ path: string;
728
+ message: string;
729
+ statusCode: number;
730
+ timestamp: string;
731
+ details?: unknown;
732
+ correlationId?: string | undefined;
733
+ }, {
734
+ code: string;
735
+ path: string;
736
+ message: string;
737
+ statusCode: number;
738
+ timestamp: string;
739
+ details?: unknown;
740
+ correlationId?: string | undefined;
741
+ }>;
742
+ 401: z.ZodObject<{
743
+ statusCode: z.ZodNumber;
744
+ message: z.ZodString;
745
+ code: z.ZodString;
746
+ details: z.ZodOptional<z.ZodUnknown>;
747
+ timestamp: z.ZodString;
748
+ path: z.ZodString;
749
+ correlationId: z.ZodOptional<z.ZodString>;
750
+ }, "strip", z.ZodTypeAny, {
751
+ code: string;
752
+ path: string;
753
+ message: string;
754
+ statusCode: number;
755
+ timestamp: string;
756
+ details?: unknown;
757
+ correlationId?: string | undefined;
758
+ }, {
759
+ code: string;
760
+ path: string;
761
+ message: string;
762
+ statusCode: number;
763
+ timestamp: string;
764
+ details?: unknown;
765
+ correlationId?: string | undefined;
766
+ }>;
767
+ 403: z.ZodObject<{
768
+ statusCode: z.ZodNumber;
769
+ message: z.ZodString;
770
+ code: z.ZodString;
771
+ details: z.ZodOptional<z.ZodUnknown>;
772
+ timestamp: z.ZodString;
773
+ path: z.ZodString;
774
+ correlationId: z.ZodOptional<z.ZodString>;
775
+ }, "strip", z.ZodTypeAny, {
776
+ code: string;
777
+ path: string;
778
+ message: string;
779
+ statusCode: number;
780
+ timestamp: string;
781
+ details?: unknown;
782
+ correlationId?: string | undefined;
783
+ }, {
784
+ code: string;
785
+ path: string;
786
+ message: string;
787
+ statusCode: number;
788
+ timestamp: string;
789
+ details?: unknown;
790
+ correlationId?: string | undefined;
791
+ }>;
792
+ 500: z.ZodObject<{
793
+ statusCode: z.ZodNumber;
794
+ message: z.ZodString;
795
+ code: z.ZodString;
796
+ details: z.ZodOptional<z.ZodUnknown>;
797
+ timestamp: z.ZodString;
798
+ path: z.ZodString;
799
+ correlationId: z.ZodOptional<z.ZodString>;
800
+ }, "strip", z.ZodTypeAny, {
801
+ code: string;
802
+ path: string;
803
+ message: string;
804
+ statusCode: number;
805
+ timestamp: string;
806
+ details?: unknown;
807
+ correlationId?: string | undefined;
808
+ }, {
809
+ code: string;
810
+ path: string;
811
+ message: string;
812
+ statusCode: number;
813
+ timestamp: string;
814
+ details?: unknown;
815
+ correlationId?: string | undefined;
816
+ }>;
817
+ 200: z.ZodObject<{
818
+ localDeviceKey: z.ZodString;
819
+ enrollmentStatus: z.ZodEnum<["UNENROLLED", "ENROLLED", "REVOKED"]>;
820
+ revision: z.ZodNumber;
821
+ }, "strict", z.ZodTypeAny, {
822
+ localDeviceKey: string;
823
+ enrollmentStatus: "UNENROLLED" | "ENROLLED" | "REVOKED";
824
+ revision: number;
825
+ }, {
826
+ localDeviceKey: string;
827
+ enrollmentStatus: "UNENROLLED" | "ENROLLED" | "REVOKED";
828
+ revision: number;
829
+ }>;
830
+ 404: z.ZodObject<{
831
+ statusCode: z.ZodNumber;
832
+ message: z.ZodString;
833
+ code: z.ZodString;
834
+ details: z.ZodOptional<z.ZodUnknown>;
835
+ timestamp: z.ZodString;
836
+ path: z.ZodString;
837
+ correlationId: z.ZodOptional<z.ZodString>;
838
+ }, "strip", z.ZodTypeAny, {
839
+ code: string;
840
+ path: string;
841
+ message: string;
842
+ statusCode: number;
843
+ timestamp: string;
844
+ details?: unknown;
845
+ correlationId?: string | undefined;
846
+ }, {
847
+ code: string;
848
+ path: string;
849
+ message: string;
850
+ statusCode: number;
851
+ timestamp: string;
852
+ details?: unknown;
853
+ correlationId?: string | undefined;
854
+ }>;
855
+ };
856
+ };
857
+ };
858
+ //# sourceMappingURL=relay-lab-fleet.contract.d.ts.map