@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,1110 @@
1
+ import { z } from 'zod';
2
+ export declare const LabRouteSchema: z.ZodObject<{
3
+ senderLocalDeviceKey: z.ZodString;
4
+ targetLabDeviceId: z.ZodString;
5
+ targetIdentityVersion: z.ZodNumber;
6
+ renderedBodySha256: z.ZodString;
7
+ }, "strict", z.ZodTypeAny, {
8
+ senderLocalDeviceKey: string;
9
+ targetLabDeviceId: string;
10
+ targetIdentityVersion: number;
11
+ renderedBodySha256: string;
12
+ }, {
13
+ senderLocalDeviceKey: string;
14
+ targetLabDeviceId: string;
15
+ targetIdentityVersion: number;
16
+ renderedBodySha256: string;
17
+ }>;
18
+ export declare const LabRunAuthorizationRoutesSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
19
+ senderLocalDeviceKey: z.ZodString;
20
+ targetLabDeviceId: z.ZodString;
21
+ targetIdentityVersion: z.ZodNumber;
22
+ renderedBodySha256: z.ZodString;
23
+ }, "strict", z.ZodTypeAny, {
24
+ senderLocalDeviceKey: string;
25
+ targetLabDeviceId: string;
26
+ targetIdentityVersion: number;
27
+ renderedBodySha256: string;
28
+ }, {
29
+ senderLocalDeviceKey: string;
30
+ targetLabDeviceId: string;
31
+ targetIdentityVersion: number;
32
+ renderedBodySha256: string;
33
+ }>, "many">, {
34
+ senderLocalDeviceKey: string;
35
+ targetLabDeviceId: string;
36
+ targetIdentityVersion: number;
37
+ renderedBodySha256: string;
38
+ }[], {
39
+ senderLocalDeviceKey: string;
40
+ targetLabDeviceId: string;
41
+ targetIdentityVersion: number;
42
+ renderedBodySha256: string;
43
+ }[]>;
44
+ export declare const LabRunAuthorizationRequestSchema: z.ZodObject<{
45
+ campaignId: z.ZodString;
46
+ fleetRevision: z.ZodNumber;
47
+ routes: z.ZodEffects<z.ZodArray<z.ZodObject<{
48
+ senderLocalDeviceKey: z.ZodString;
49
+ targetLabDeviceId: z.ZodString;
50
+ targetIdentityVersion: z.ZodNumber;
51
+ renderedBodySha256: z.ZodString;
52
+ }, "strict", z.ZodTypeAny, {
53
+ senderLocalDeviceKey: string;
54
+ targetLabDeviceId: string;
55
+ targetIdentityVersion: number;
56
+ renderedBodySha256: string;
57
+ }, {
58
+ senderLocalDeviceKey: string;
59
+ targetLabDeviceId: string;
60
+ targetIdentityVersion: number;
61
+ renderedBodySha256: string;
62
+ }>, "many">, {
63
+ senderLocalDeviceKey: string;
64
+ targetLabDeviceId: string;
65
+ targetIdentityVersion: number;
66
+ renderedBodySha256: string;
67
+ }[], {
68
+ senderLocalDeviceKey: string;
69
+ targetLabDeviceId: string;
70
+ targetIdentityVersion: number;
71
+ renderedBodySha256: string;
72
+ }[]>;
73
+ }, "strict", z.ZodTypeAny, {
74
+ campaignId: string;
75
+ fleetRevision: number;
76
+ routes: {
77
+ senderLocalDeviceKey: string;
78
+ targetLabDeviceId: string;
79
+ targetIdentityVersion: number;
80
+ renderedBodySha256: string;
81
+ }[];
82
+ }, {
83
+ campaignId: string;
84
+ fleetRevision: number;
85
+ routes: {
86
+ senderLocalDeviceKey: string;
87
+ targetLabDeviceId: string;
88
+ targetIdentityVersion: number;
89
+ renderedBodySha256: string;
90
+ }[];
91
+ }>;
92
+ export declare const LabRunAuthorizationSchema: z.ZodObject<{
93
+ authorizationId: z.ZodString;
94
+ campaignId: z.ZodString;
95
+ fleetRevision: z.ZodNumber;
96
+ routes: z.ZodEffects<z.ZodArray<z.ZodObject<{
97
+ senderLocalDeviceKey: z.ZodString;
98
+ targetLabDeviceId: z.ZodString;
99
+ targetIdentityVersion: z.ZodNumber;
100
+ renderedBodySha256: z.ZodString;
101
+ }, "strict", z.ZodTypeAny, {
102
+ senderLocalDeviceKey: string;
103
+ targetLabDeviceId: string;
104
+ targetIdentityVersion: number;
105
+ renderedBodySha256: string;
106
+ }, {
107
+ senderLocalDeviceKey: string;
108
+ targetLabDeviceId: string;
109
+ targetIdentityVersion: number;
110
+ renderedBodySha256: string;
111
+ }>, "many">, {
112
+ senderLocalDeviceKey: string;
113
+ targetLabDeviceId: string;
114
+ targetIdentityVersion: number;
115
+ renderedBodySha256: string;
116
+ }[], {
117
+ senderLocalDeviceKey: string;
118
+ targetLabDeviceId: string;
119
+ targetIdentityVersion: number;
120
+ renderedBodySha256: string;
121
+ }[]>;
122
+ expiresAt: z.ZodString;
123
+ }, "strict", z.ZodTypeAny, {
124
+ expiresAt: string;
125
+ campaignId: string;
126
+ fleetRevision: number;
127
+ routes: {
128
+ senderLocalDeviceKey: string;
129
+ targetLabDeviceId: string;
130
+ targetIdentityVersion: number;
131
+ renderedBodySha256: string;
132
+ }[];
133
+ authorizationId: string;
134
+ }, {
135
+ expiresAt: string;
136
+ campaignId: string;
137
+ fleetRevision: number;
138
+ routes: {
139
+ senderLocalDeviceKey: string;
140
+ targetLabDeviceId: string;
141
+ targetIdentityVersion: number;
142
+ renderedBodySha256: string;
143
+ }[];
144
+ authorizationId: string;
145
+ }>;
146
+ export declare const StartLabRunResponseSchema: z.ZodObject<{
147
+ authorizationId: z.ZodString;
148
+ startedAt: z.ZodString;
149
+ }, "strict", z.ZodTypeAny, {
150
+ startedAt: string;
151
+ authorizationId: string;
152
+ }, {
153
+ startedAt: string;
154
+ authorizationId: string;
155
+ }>;
156
+ export declare const AbandonLabRunBodySchema: z.ZodObject<{
157
+ reason: z.ZodEnum<["FAILED", "CANCELED", "START_TIMEOUT"]>;
158
+ }, "strict", z.ZodTypeAny, {
159
+ reason: "FAILED" | "CANCELED" | "START_TIMEOUT";
160
+ }, {
161
+ reason: "FAILED" | "CANCELED" | "START_TIMEOUT";
162
+ }>;
163
+ export declare const AbandonLabRunResponseSchema: z.ZodObject<{
164
+ abandoned: z.ZodLiteral<true>;
165
+ }, "strict", z.ZodTypeAny, {
166
+ abandoned: true;
167
+ }, {
168
+ abandoned: true;
169
+ }>;
170
+ export declare const LabRunDeliveryEvidenceSchema: z.ZodObject<{
171
+ routeIndex: z.ZodNumber;
172
+ deliveryJournalId: z.ZodString;
173
+ evidenceSha256: z.ZodString;
174
+ }, "strict", z.ZodTypeAny, {
175
+ routeIndex: number;
176
+ deliveryJournalId: string;
177
+ evidenceSha256: string;
178
+ }, {
179
+ routeIndex: number;
180
+ deliveryJournalId: string;
181
+ evidenceSha256: string;
182
+ }>;
183
+ /**
184
+ * The service verifies that this contains exactly one item for each authorized
185
+ * route, because that count and route set are authorization-owned state.
186
+ */
187
+ export declare const CompleteLabRunBodySchema: z.ZodObject<{
188
+ evidence: z.ZodEffects<z.ZodArray<z.ZodObject<{
189
+ routeIndex: z.ZodNumber;
190
+ deliveryJournalId: z.ZodString;
191
+ evidenceSha256: z.ZodString;
192
+ }, "strict", z.ZodTypeAny, {
193
+ routeIndex: number;
194
+ deliveryJournalId: string;
195
+ evidenceSha256: string;
196
+ }, {
197
+ routeIndex: number;
198
+ deliveryJournalId: string;
199
+ evidenceSha256: string;
200
+ }>, "many">, {
201
+ routeIndex: number;
202
+ deliveryJournalId: string;
203
+ evidenceSha256: string;
204
+ }[], {
205
+ routeIndex: number;
206
+ deliveryJournalId: string;
207
+ evidenceSha256: string;
208
+ }[]>;
209
+ }, "strict", z.ZodTypeAny, {
210
+ evidence: {
211
+ routeIndex: number;
212
+ deliveryJournalId: string;
213
+ evidenceSha256: string;
214
+ }[];
215
+ }, {
216
+ evidence: {
217
+ routeIndex: number;
218
+ deliveryJournalId: string;
219
+ evidenceSha256: string;
220
+ }[];
221
+ }>;
222
+ export declare const CompleteLabRunResponseSchema: z.ZodObject<{
223
+ completed: z.ZodLiteral<true>;
224
+ completedAt: z.ZodString;
225
+ }, "strict", z.ZodTypeAny, {
226
+ completedAt: string;
227
+ completed: true;
228
+ }, {
229
+ completedAt: string;
230
+ completed: true;
231
+ }>;
232
+ export declare const LabOutreachRequestPathParamsSchema: z.ZodObject<{
233
+ id: z.ZodString;
234
+ }, "strict", z.ZodTypeAny, {
235
+ id: string;
236
+ }, {
237
+ id: string;
238
+ }>;
239
+ export declare const LabRunAuthorizationPathParamsSchema: z.ZodObject<{
240
+ id: z.ZodString;
241
+ } & {
242
+ authorizationId: z.ZodString;
243
+ }, "strict", z.ZodTypeAny, {
244
+ id: string;
245
+ authorizationId: string;
246
+ }, {
247
+ id: string;
248
+ authorizationId: string;
249
+ }>;
250
+ export declare const labOutreachContract: {
251
+ authorize: {
252
+ metadata: {
253
+ tags: string[];
254
+ };
255
+ pathParams: z.ZodObject<{
256
+ id: z.ZodString;
257
+ }, "strict", z.ZodTypeAny, {
258
+ id: string;
259
+ }, {
260
+ id: string;
261
+ }>;
262
+ summary: "Authorize a bounded Relay Lab run";
263
+ method: "POST";
264
+ body: z.ZodObject<{
265
+ campaignId: z.ZodString;
266
+ fleetRevision: z.ZodNumber;
267
+ routes: z.ZodEffects<z.ZodArray<z.ZodObject<{
268
+ senderLocalDeviceKey: z.ZodString;
269
+ targetLabDeviceId: z.ZodString;
270
+ targetIdentityVersion: z.ZodNumber;
271
+ renderedBodySha256: z.ZodString;
272
+ }, "strict", z.ZodTypeAny, {
273
+ senderLocalDeviceKey: string;
274
+ targetLabDeviceId: string;
275
+ targetIdentityVersion: number;
276
+ renderedBodySha256: string;
277
+ }, {
278
+ senderLocalDeviceKey: string;
279
+ targetLabDeviceId: string;
280
+ targetIdentityVersion: number;
281
+ renderedBodySha256: string;
282
+ }>, "many">, {
283
+ senderLocalDeviceKey: string;
284
+ targetLabDeviceId: string;
285
+ targetIdentityVersion: number;
286
+ renderedBodySha256: string;
287
+ }[], {
288
+ senderLocalDeviceKey: string;
289
+ targetLabDeviceId: string;
290
+ targetIdentityVersion: number;
291
+ renderedBodySha256: string;
292
+ }[]>;
293
+ }, "strict", z.ZodTypeAny, {
294
+ campaignId: string;
295
+ fleetRevision: number;
296
+ routes: {
297
+ senderLocalDeviceKey: string;
298
+ targetLabDeviceId: string;
299
+ targetIdentityVersion: number;
300
+ renderedBodySha256: string;
301
+ }[];
302
+ }, {
303
+ campaignId: string;
304
+ fleetRevision: number;
305
+ routes: {
306
+ senderLocalDeviceKey: string;
307
+ targetLabDeviceId: string;
308
+ targetIdentityVersion: number;
309
+ renderedBodySha256: string;
310
+ }[];
311
+ }>;
312
+ path: "/v2/outreach/requests/:id/lab-authorizations";
313
+ responses: {
314
+ 400: z.ZodObject<{
315
+ statusCode: z.ZodNumber;
316
+ message: z.ZodString;
317
+ code: z.ZodString;
318
+ details: z.ZodOptional<z.ZodUnknown>;
319
+ timestamp: z.ZodString;
320
+ path: z.ZodString;
321
+ correlationId: z.ZodOptional<z.ZodString>;
322
+ }, "strip", z.ZodTypeAny, {
323
+ code: string;
324
+ path: string;
325
+ message: string;
326
+ statusCode: number;
327
+ timestamp: string;
328
+ details?: unknown;
329
+ correlationId?: string | undefined;
330
+ }, {
331
+ code: string;
332
+ path: string;
333
+ message: string;
334
+ statusCode: number;
335
+ timestamp: string;
336
+ details?: unknown;
337
+ correlationId?: string | undefined;
338
+ }>;
339
+ 401: z.ZodObject<{
340
+ statusCode: z.ZodNumber;
341
+ message: z.ZodString;
342
+ code: z.ZodString;
343
+ details: z.ZodOptional<z.ZodUnknown>;
344
+ timestamp: z.ZodString;
345
+ path: z.ZodString;
346
+ correlationId: z.ZodOptional<z.ZodString>;
347
+ }, "strip", z.ZodTypeAny, {
348
+ code: string;
349
+ path: string;
350
+ message: string;
351
+ statusCode: number;
352
+ timestamp: string;
353
+ details?: unknown;
354
+ correlationId?: string | undefined;
355
+ }, {
356
+ code: string;
357
+ path: string;
358
+ message: string;
359
+ statusCode: number;
360
+ timestamp: string;
361
+ details?: unknown;
362
+ correlationId?: string | undefined;
363
+ }>;
364
+ 403: z.ZodObject<{
365
+ statusCode: z.ZodNumber;
366
+ message: z.ZodString;
367
+ code: z.ZodString;
368
+ details: z.ZodOptional<z.ZodUnknown>;
369
+ timestamp: z.ZodString;
370
+ path: z.ZodString;
371
+ correlationId: z.ZodOptional<z.ZodString>;
372
+ }, "strip", z.ZodTypeAny, {
373
+ code: string;
374
+ path: string;
375
+ message: string;
376
+ statusCode: number;
377
+ timestamp: string;
378
+ details?: unknown;
379
+ correlationId?: string | undefined;
380
+ }, {
381
+ code: string;
382
+ path: string;
383
+ message: string;
384
+ statusCode: number;
385
+ timestamp: string;
386
+ details?: unknown;
387
+ correlationId?: string | undefined;
388
+ }>;
389
+ 500: z.ZodObject<{
390
+ statusCode: z.ZodNumber;
391
+ message: z.ZodString;
392
+ code: z.ZodString;
393
+ details: z.ZodOptional<z.ZodUnknown>;
394
+ timestamp: z.ZodString;
395
+ path: z.ZodString;
396
+ correlationId: z.ZodOptional<z.ZodString>;
397
+ }, "strip", z.ZodTypeAny, {
398
+ code: string;
399
+ path: string;
400
+ message: string;
401
+ statusCode: number;
402
+ timestamp: string;
403
+ details?: unknown;
404
+ correlationId?: string | undefined;
405
+ }, {
406
+ code: string;
407
+ path: string;
408
+ message: string;
409
+ statusCode: number;
410
+ timestamp: string;
411
+ details?: unknown;
412
+ correlationId?: string | undefined;
413
+ }>;
414
+ 201: z.ZodObject<{
415
+ authorizationId: z.ZodString;
416
+ campaignId: z.ZodString;
417
+ fleetRevision: z.ZodNumber;
418
+ routes: z.ZodEffects<z.ZodArray<z.ZodObject<{
419
+ senderLocalDeviceKey: z.ZodString;
420
+ targetLabDeviceId: z.ZodString;
421
+ targetIdentityVersion: z.ZodNumber;
422
+ renderedBodySha256: z.ZodString;
423
+ }, "strict", z.ZodTypeAny, {
424
+ senderLocalDeviceKey: string;
425
+ targetLabDeviceId: string;
426
+ targetIdentityVersion: number;
427
+ renderedBodySha256: string;
428
+ }, {
429
+ senderLocalDeviceKey: string;
430
+ targetLabDeviceId: string;
431
+ targetIdentityVersion: number;
432
+ renderedBodySha256: string;
433
+ }>, "many">, {
434
+ senderLocalDeviceKey: string;
435
+ targetLabDeviceId: string;
436
+ targetIdentityVersion: number;
437
+ renderedBodySha256: string;
438
+ }[], {
439
+ senderLocalDeviceKey: string;
440
+ targetLabDeviceId: string;
441
+ targetIdentityVersion: number;
442
+ renderedBodySha256: string;
443
+ }[]>;
444
+ expiresAt: z.ZodString;
445
+ }, "strict", z.ZodTypeAny, {
446
+ expiresAt: string;
447
+ campaignId: string;
448
+ fleetRevision: number;
449
+ routes: {
450
+ senderLocalDeviceKey: string;
451
+ targetLabDeviceId: string;
452
+ targetIdentityVersion: number;
453
+ renderedBodySha256: string;
454
+ }[];
455
+ authorizationId: string;
456
+ }, {
457
+ expiresAt: string;
458
+ campaignId: string;
459
+ fleetRevision: number;
460
+ routes: {
461
+ senderLocalDeviceKey: string;
462
+ targetLabDeviceId: string;
463
+ targetIdentityVersion: number;
464
+ renderedBodySha256: string;
465
+ }[];
466
+ authorizationId: string;
467
+ }>;
468
+ 404: z.ZodObject<{
469
+ statusCode: z.ZodNumber;
470
+ message: z.ZodString;
471
+ code: z.ZodString;
472
+ details: z.ZodOptional<z.ZodUnknown>;
473
+ timestamp: z.ZodString;
474
+ path: z.ZodString;
475
+ correlationId: z.ZodOptional<z.ZodString>;
476
+ }, "strip", z.ZodTypeAny, {
477
+ code: string;
478
+ path: string;
479
+ message: string;
480
+ statusCode: number;
481
+ timestamp: string;
482
+ details?: unknown;
483
+ correlationId?: string | undefined;
484
+ }, {
485
+ code: string;
486
+ path: string;
487
+ message: string;
488
+ statusCode: number;
489
+ timestamp: string;
490
+ details?: unknown;
491
+ correlationId?: string | undefined;
492
+ }>;
493
+ 409: z.ZodObject<{
494
+ statusCode: z.ZodNumber;
495
+ message: z.ZodString;
496
+ code: z.ZodString;
497
+ details: z.ZodOptional<z.ZodUnknown>;
498
+ timestamp: z.ZodString;
499
+ path: z.ZodString;
500
+ correlationId: z.ZodOptional<z.ZodString>;
501
+ }, "strip", z.ZodTypeAny, {
502
+ code: string;
503
+ path: string;
504
+ message: string;
505
+ statusCode: number;
506
+ timestamp: string;
507
+ details?: unknown;
508
+ correlationId?: string | undefined;
509
+ }, {
510
+ code: string;
511
+ path: string;
512
+ message: string;
513
+ statusCode: number;
514
+ timestamp: string;
515
+ details?: unknown;
516
+ correlationId?: string | undefined;
517
+ }>;
518
+ };
519
+ };
520
+ start: {
521
+ metadata: {
522
+ tags: string[];
523
+ };
524
+ pathParams: z.ZodObject<{
525
+ id: z.ZodString;
526
+ } & {
527
+ authorizationId: z.ZodString;
528
+ }, "strict", z.ZodTypeAny, {
529
+ id: string;
530
+ authorizationId: string;
531
+ }, {
532
+ id: string;
533
+ authorizationId: string;
534
+ }>;
535
+ summary: "Mark an authorized Relay Lab run as started";
536
+ method: "POST";
537
+ body: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
538
+ path: "/v2/outreach/requests/:id/lab-authorizations/:authorizationId/start";
539
+ responses: {
540
+ 400: z.ZodObject<{
541
+ statusCode: z.ZodNumber;
542
+ message: z.ZodString;
543
+ code: z.ZodString;
544
+ details: z.ZodOptional<z.ZodUnknown>;
545
+ timestamp: z.ZodString;
546
+ path: z.ZodString;
547
+ correlationId: z.ZodOptional<z.ZodString>;
548
+ }, "strip", z.ZodTypeAny, {
549
+ code: string;
550
+ path: string;
551
+ message: string;
552
+ statusCode: number;
553
+ timestamp: string;
554
+ details?: unknown;
555
+ correlationId?: string | undefined;
556
+ }, {
557
+ code: string;
558
+ path: string;
559
+ message: string;
560
+ statusCode: number;
561
+ timestamp: string;
562
+ details?: unknown;
563
+ correlationId?: string | undefined;
564
+ }>;
565
+ 401: z.ZodObject<{
566
+ statusCode: z.ZodNumber;
567
+ message: z.ZodString;
568
+ code: z.ZodString;
569
+ details: z.ZodOptional<z.ZodUnknown>;
570
+ timestamp: z.ZodString;
571
+ path: z.ZodString;
572
+ correlationId: z.ZodOptional<z.ZodString>;
573
+ }, "strip", z.ZodTypeAny, {
574
+ code: string;
575
+ path: string;
576
+ message: string;
577
+ statusCode: number;
578
+ timestamp: string;
579
+ details?: unknown;
580
+ correlationId?: string | undefined;
581
+ }, {
582
+ code: string;
583
+ path: string;
584
+ message: string;
585
+ statusCode: number;
586
+ timestamp: string;
587
+ details?: unknown;
588
+ correlationId?: string | undefined;
589
+ }>;
590
+ 403: z.ZodObject<{
591
+ statusCode: z.ZodNumber;
592
+ message: z.ZodString;
593
+ code: z.ZodString;
594
+ details: z.ZodOptional<z.ZodUnknown>;
595
+ timestamp: z.ZodString;
596
+ path: z.ZodString;
597
+ correlationId: z.ZodOptional<z.ZodString>;
598
+ }, "strip", z.ZodTypeAny, {
599
+ code: string;
600
+ path: string;
601
+ message: string;
602
+ statusCode: number;
603
+ timestamp: string;
604
+ details?: unknown;
605
+ correlationId?: string | undefined;
606
+ }, {
607
+ code: string;
608
+ path: string;
609
+ message: string;
610
+ statusCode: number;
611
+ timestamp: string;
612
+ details?: unknown;
613
+ correlationId?: string | undefined;
614
+ }>;
615
+ 500: z.ZodObject<{
616
+ statusCode: z.ZodNumber;
617
+ message: z.ZodString;
618
+ code: z.ZodString;
619
+ details: z.ZodOptional<z.ZodUnknown>;
620
+ timestamp: z.ZodString;
621
+ path: z.ZodString;
622
+ correlationId: z.ZodOptional<z.ZodString>;
623
+ }, "strip", z.ZodTypeAny, {
624
+ code: string;
625
+ path: string;
626
+ message: string;
627
+ statusCode: number;
628
+ timestamp: string;
629
+ details?: unknown;
630
+ correlationId?: string | undefined;
631
+ }, {
632
+ code: string;
633
+ path: string;
634
+ message: string;
635
+ statusCode: number;
636
+ timestamp: string;
637
+ details?: unknown;
638
+ correlationId?: string | undefined;
639
+ }>;
640
+ 200: z.ZodObject<{
641
+ authorizationId: z.ZodString;
642
+ startedAt: z.ZodString;
643
+ }, "strict", z.ZodTypeAny, {
644
+ startedAt: string;
645
+ authorizationId: string;
646
+ }, {
647
+ startedAt: string;
648
+ authorizationId: string;
649
+ }>;
650
+ 404: z.ZodObject<{
651
+ statusCode: z.ZodNumber;
652
+ message: z.ZodString;
653
+ code: z.ZodString;
654
+ details: z.ZodOptional<z.ZodUnknown>;
655
+ timestamp: z.ZodString;
656
+ path: z.ZodString;
657
+ correlationId: z.ZodOptional<z.ZodString>;
658
+ }, "strip", z.ZodTypeAny, {
659
+ code: string;
660
+ path: string;
661
+ message: string;
662
+ statusCode: number;
663
+ timestamp: string;
664
+ details?: unknown;
665
+ correlationId?: string | undefined;
666
+ }, {
667
+ code: string;
668
+ path: string;
669
+ message: string;
670
+ statusCode: number;
671
+ timestamp: string;
672
+ details?: unknown;
673
+ correlationId?: string | undefined;
674
+ }>;
675
+ 409: z.ZodObject<{
676
+ statusCode: z.ZodNumber;
677
+ message: z.ZodString;
678
+ code: z.ZodString;
679
+ details: z.ZodOptional<z.ZodUnknown>;
680
+ timestamp: z.ZodString;
681
+ path: z.ZodString;
682
+ correlationId: z.ZodOptional<z.ZodString>;
683
+ }, "strip", z.ZodTypeAny, {
684
+ code: string;
685
+ path: string;
686
+ message: string;
687
+ statusCode: number;
688
+ timestamp: string;
689
+ details?: unknown;
690
+ correlationId?: string | undefined;
691
+ }, {
692
+ code: string;
693
+ path: string;
694
+ message: string;
695
+ statusCode: number;
696
+ timestamp: string;
697
+ details?: unknown;
698
+ correlationId?: string | undefined;
699
+ }>;
700
+ };
701
+ };
702
+ abandon: {
703
+ metadata: {
704
+ tags: string[];
705
+ };
706
+ pathParams: z.ZodObject<{
707
+ id: z.ZodString;
708
+ } & {
709
+ authorizationId: z.ZodString;
710
+ }, "strict", z.ZodTypeAny, {
711
+ id: string;
712
+ authorizationId: string;
713
+ }, {
714
+ id: string;
715
+ authorizationId: string;
716
+ }>;
717
+ summary: "Abandon an uncompleted Relay Lab run";
718
+ method: "POST";
719
+ body: z.ZodObject<{
720
+ reason: z.ZodEnum<["FAILED", "CANCELED", "START_TIMEOUT"]>;
721
+ }, "strict", z.ZodTypeAny, {
722
+ reason: "FAILED" | "CANCELED" | "START_TIMEOUT";
723
+ }, {
724
+ reason: "FAILED" | "CANCELED" | "START_TIMEOUT";
725
+ }>;
726
+ path: "/v2/outreach/requests/:id/lab-authorizations/:authorizationId/abandon";
727
+ responses: {
728
+ 400: z.ZodObject<{
729
+ statusCode: z.ZodNumber;
730
+ message: z.ZodString;
731
+ code: z.ZodString;
732
+ details: z.ZodOptional<z.ZodUnknown>;
733
+ timestamp: z.ZodString;
734
+ path: z.ZodString;
735
+ correlationId: z.ZodOptional<z.ZodString>;
736
+ }, "strip", z.ZodTypeAny, {
737
+ code: string;
738
+ path: string;
739
+ message: string;
740
+ statusCode: number;
741
+ timestamp: string;
742
+ details?: unknown;
743
+ correlationId?: string | undefined;
744
+ }, {
745
+ code: string;
746
+ path: string;
747
+ message: string;
748
+ statusCode: number;
749
+ timestamp: string;
750
+ details?: unknown;
751
+ correlationId?: string | undefined;
752
+ }>;
753
+ 401: z.ZodObject<{
754
+ statusCode: z.ZodNumber;
755
+ message: z.ZodString;
756
+ code: z.ZodString;
757
+ details: z.ZodOptional<z.ZodUnknown>;
758
+ timestamp: z.ZodString;
759
+ path: z.ZodString;
760
+ correlationId: z.ZodOptional<z.ZodString>;
761
+ }, "strip", z.ZodTypeAny, {
762
+ code: string;
763
+ path: string;
764
+ message: string;
765
+ statusCode: number;
766
+ timestamp: string;
767
+ details?: unknown;
768
+ correlationId?: string | undefined;
769
+ }, {
770
+ code: string;
771
+ path: string;
772
+ message: string;
773
+ statusCode: number;
774
+ timestamp: string;
775
+ details?: unknown;
776
+ correlationId?: string | undefined;
777
+ }>;
778
+ 403: z.ZodObject<{
779
+ statusCode: z.ZodNumber;
780
+ message: z.ZodString;
781
+ code: z.ZodString;
782
+ details: z.ZodOptional<z.ZodUnknown>;
783
+ timestamp: z.ZodString;
784
+ path: z.ZodString;
785
+ correlationId: z.ZodOptional<z.ZodString>;
786
+ }, "strip", z.ZodTypeAny, {
787
+ code: string;
788
+ path: string;
789
+ message: string;
790
+ statusCode: number;
791
+ timestamp: string;
792
+ details?: unknown;
793
+ correlationId?: string | undefined;
794
+ }, {
795
+ code: string;
796
+ path: string;
797
+ message: string;
798
+ statusCode: number;
799
+ timestamp: string;
800
+ details?: unknown;
801
+ correlationId?: string | undefined;
802
+ }>;
803
+ 500: z.ZodObject<{
804
+ statusCode: z.ZodNumber;
805
+ message: z.ZodString;
806
+ code: z.ZodString;
807
+ details: z.ZodOptional<z.ZodUnknown>;
808
+ timestamp: z.ZodString;
809
+ path: z.ZodString;
810
+ correlationId: z.ZodOptional<z.ZodString>;
811
+ }, "strip", z.ZodTypeAny, {
812
+ code: string;
813
+ path: string;
814
+ message: string;
815
+ statusCode: number;
816
+ timestamp: string;
817
+ details?: unknown;
818
+ correlationId?: string | undefined;
819
+ }, {
820
+ code: string;
821
+ path: string;
822
+ message: string;
823
+ statusCode: number;
824
+ timestamp: string;
825
+ details?: unknown;
826
+ correlationId?: string | undefined;
827
+ }>;
828
+ 200: z.ZodObject<{
829
+ abandoned: z.ZodLiteral<true>;
830
+ }, "strict", z.ZodTypeAny, {
831
+ abandoned: true;
832
+ }, {
833
+ abandoned: true;
834
+ }>;
835
+ 404: z.ZodObject<{
836
+ statusCode: z.ZodNumber;
837
+ message: z.ZodString;
838
+ code: z.ZodString;
839
+ details: z.ZodOptional<z.ZodUnknown>;
840
+ timestamp: z.ZodString;
841
+ path: z.ZodString;
842
+ correlationId: z.ZodOptional<z.ZodString>;
843
+ }, "strip", z.ZodTypeAny, {
844
+ code: string;
845
+ path: string;
846
+ message: string;
847
+ statusCode: number;
848
+ timestamp: string;
849
+ details?: unknown;
850
+ correlationId?: string | undefined;
851
+ }, {
852
+ code: string;
853
+ path: string;
854
+ message: string;
855
+ statusCode: number;
856
+ timestamp: string;
857
+ details?: unknown;
858
+ correlationId?: string | undefined;
859
+ }>;
860
+ 409: z.ZodObject<{
861
+ statusCode: z.ZodNumber;
862
+ message: z.ZodString;
863
+ code: z.ZodString;
864
+ details: z.ZodOptional<z.ZodUnknown>;
865
+ timestamp: z.ZodString;
866
+ path: z.ZodString;
867
+ correlationId: z.ZodOptional<z.ZodString>;
868
+ }, "strip", z.ZodTypeAny, {
869
+ code: string;
870
+ path: string;
871
+ message: string;
872
+ statusCode: number;
873
+ timestamp: string;
874
+ details?: unknown;
875
+ correlationId?: string | undefined;
876
+ }, {
877
+ code: string;
878
+ path: string;
879
+ message: string;
880
+ statusCode: number;
881
+ timestamp: string;
882
+ details?: unknown;
883
+ correlationId?: string | undefined;
884
+ }>;
885
+ };
886
+ };
887
+ complete: {
888
+ metadata: {
889
+ tags: string[];
890
+ };
891
+ pathParams: z.ZodObject<{
892
+ id: z.ZodString;
893
+ } & {
894
+ authorizationId: z.ZodString;
895
+ }, "strict", z.ZodTypeAny, {
896
+ id: string;
897
+ authorizationId: string;
898
+ }, {
899
+ id: string;
900
+ authorizationId: string;
901
+ }>;
902
+ summary: "Complete a Relay Lab run with delivery evidence";
903
+ method: "POST";
904
+ body: z.ZodObject<{
905
+ evidence: z.ZodEffects<z.ZodArray<z.ZodObject<{
906
+ routeIndex: z.ZodNumber;
907
+ deliveryJournalId: z.ZodString;
908
+ evidenceSha256: z.ZodString;
909
+ }, "strict", z.ZodTypeAny, {
910
+ routeIndex: number;
911
+ deliveryJournalId: string;
912
+ evidenceSha256: string;
913
+ }, {
914
+ routeIndex: number;
915
+ deliveryJournalId: string;
916
+ evidenceSha256: string;
917
+ }>, "many">, {
918
+ routeIndex: number;
919
+ deliveryJournalId: string;
920
+ evidenceSha256: string;
921
+ }[], {
922
+ routeIndex: number;
923
+ deliveryJournalId: string;
924
+ evidenceSha256: string;
925
+ }[]>;
926
+ }, "strict", z.ZodTypeAny, {
927
+ evidence: {
928
+ routeIndex: number;
929
+ deliveryJournalId: string;
930
+ evidenceSha256: string;
931
+ }[];
932
+ }, {
933
+ evidence: {
934
+ routeIndex: number;
935
+ deliveryJournalId: string;
936
+ evidenceSha256: string;
937
+ }[];
938
+ }>;
939
+ path: "/v2/outreach/requests/:id/lab-authorizations/:authorizationId/complete";
940
+ responses: {
941
+ 400: z.ZodObject<{
942
+ statusCode: z.ZodNumber;
943
+ message: z.ZodString;
944
+ code: z.ZodString;
945
+ details: z.ZodOptional<z.ZodUnknown>;
946
+ timestamp: z.ZodString;
947
+ path: z.ZodString;
948
+ correlationId: z.ZodOptional<z.ZodString>;
949
+ }, "strip", z.ZodTypeAny, {
950
+ code: string;
951
+ path: string;
952
+ message: string;
953
+ statusCode: number;
954
+ timestamp: string;
955
+ details?: unknown;
956
+ correlationId?: string | undefined;
957
+ }, {
958
+ code: string;
959
+ path: string;
960
+ message: string;
961
+ statusCode: number;
962
+ timestamp: string;
963
+ details?: unknown;
964
+ correlationId?: string | undefined;
965
+ }>;
966
+ 401: z.ZodObject<{
967
+ statusCode: z.ZodNumber;
968
+ message: z.ZodString;
969
+ code: z.ZodString;
970
+ details: z.ZodOptional<z.ZodUnknown>;
971
+ timestamp: z.ZodString;
972
+ path: z.ZodString;
973
+ correlationId: z.ZodOptional<z.ZodString>;
974
+ }, "strip", z.ZodTypeAny, {
975
+ code: string;
976
+ path: string;
977
+ message: string;
978
+ statusCode: number;
979
+ timestamp: string;
980
+ details?: unknown;
981
+ correlationId?: string | undefined;
982
+ }, {
983
+ code: string;
984
+ path: string;
985
+ message: string;
986
+ statusCode: number;
987
+ timestamp: string;
988
+ details?: unknown;
989
+ correlationId?: string | undefined;
990
+ }>;
991
+ 403: z.ZodObject<{
992
+ statusCode: z.ZodNumber;
993
+ message: z.ZodString;
994
+ code: z.ZodString;
995
+ details: z.ZodOptional<z.ZodUnknown>;
996
+ timestamp: z.ZodString;
997
+ path: z.ZodString;
998
+ correlationId: z.ZodOptional<z.ZodString>;
999
+ }, "strip", z.ZodTypeAny, {
1000
+ code: string;
1001
+ path: string;
1002
+ message: string;
1003
+ statusCode: number;
1004
+ timestamp: string;
1005
+ details?: unknown;
1006
+ correlationId?: string | undefined;
1007
+ }, {
1008
+ code: string;
1009
+ path: string;
1010
+ message: string;
1011
+ statusCode: number;
1012
+ timestamp: string;
1013
+ details?: unknown;
1014
+ correlationId?: string | undefined;
1015
+ }>;
1016
+ 500: z.ZodObject<{
1017
+ statusCode: z.ZodNumber;
1018
+ message: z.ZodString;
1019
+ code: z.ZodString;
1020
+ details: z.ZodOptional<z.ZodUnknown>;
1021
+ timestamp: z.ZodString;
1022
+ path: z.ZodString;
1023
+ correlationId: z.ZodOptional<z.ZodString>;
1024
+ }, "strip", z.ZodTypeAny, {
1025
+ code: string;
1026
+ path: string;
1027
+ message: string;
1028
+ statusCode: number;
1029
+ timestamp: string;
1030
+ details?: unknown;
1031
+ correlationId?: string | undefined;
1032
+ }, {
1033
+ code: string;
1034
+ path: string;
1035
+ message: string;
1036
+ statusCode: number;
1037
+ timestamp: string;
1038
+ details?: unknown;
1039
+ correlationId?: string | undefined;
1040
+ }>;
1041
+ 200: z.ZodObject<{
1042
+ completed: z.ZodLiteral<true>;
1043
+ completedAt: z.ZodString;
1044
+ }, "strict", z.ZodTypeAny, {
1045
+ completedAt: string;
1046
+ completed: true;
1047
+ }, {
1048
+ completedAt: string;
1049
+ completed: true;
1050
+ }>;
1051
+ 404: z.ZodObject<{
1052
+ statusCode: z.ZodNumber;
1053
+ message: z.ZodString;
1054
+ code: z.ZodString;
1055
+ details: z.ZodOptional<z.ZodUnknown>;
1056
+ timestamp: z.ZodString;
1057
+ path: z.ZodString;
1058
+ correlationId: z.ZodOptional<z.ZodString>;
1059
+ }, "strip", z.ZodTypeAny, {
1060
+ code: string;
1061
+ path: string;
1062
+ message: string;
1063
+ statusCode: number;
1064
+ timestamp: string;
1065
+ details?: unknown;
1066
+ correlationId?: string | undefined;
1067
+ }, {
1068
+ code: string;
1069
+ path: string;
1070
+ message: string;
1071
+ statusCode: number;
1072
+ timestamp: string;
1073
+ details?: unknown;
1074
+ correlationId?: string | undefined;
1075
+ }>;
1076
+ 409: z.ZodObject<{
1077
+ statusCode: z.ZodNumber;
1078
+ message: z.ZodString;
1079
+ code: z.ZodString;
1080
+ details: z.ZodOptional<z.ZodUnknown>;
1081
+ timestamp: z.ZodString;
1082
+ path: z.ZodString;
1083
+ correlationId: z.ZodOptional<z.ZodString>;
1084
+ }, "strip", z.ZodTypeAny, {
1085
+ code: string;
1086
+ path: string;
1087
+ message: string;
1088
+ statusCode: number;
1089
+ timestamp: string;
1090
+ details?: unknown;
1091
+ correlationId?: string | undefined;
1092
+ }, {
1093
+ code: string;
1094
+ path: string;
1095
+ message: string;
1096
+ statusCode: number;
1097
+ timestamp: string;
1098
+ details?: unknown;
1099
+ correlationId?: string | undefined;
1100
+ }>;
1101
+ };
1102
+ };
1103
+ };
1104
+ export type LabRoute = z.infer<typeof LabRouteSchema>;
1105
+ export type LabRunAuthorizationRequest = z.infer<typeof LabRunAuthorizationRequestSchema>;
1106
+ export type LabRunAuthorization = z.infer<typeof LabRunAuthorizationSchema>;
1107
+ export type StartLabRunResponse = z.infer<typeof StartLabRunResponseSchema>;
1108
+ export type AbandonLabRunBody = z.infer<typeof AbandonLabRunBodySchema>;
1109
+ export type CompleteLabRunBody = z.infer<typeof CompleteLabRunBodySchema>;
1110
+ //# sourceMappingURL=lab-outreach.contract.d.ts.map