@dakkitor/api-contracts 1.8.0 → 1.9.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.
- package/dist/abilities/abilities.contract.d.ts +1 -1
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +1 -0
- package/dist/abilities/abilities.contract.spec.js +11 -0
- package/dist/abilities/second-agent.abilities.json +16 -0
- package/dist/actives/actives.contract.d.ts +6327 -6196
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +1148 -1046
- package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
- package/dist/auth/auth.contract.d.ts +23 -23
- package/dist/bookings/bookings.contract.d.ts +9238 -9006
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.d.ts +768 -731
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/calls-feed/calls-feed.contract.d.ts +99 -92
- package/dist/calls-feed/calls-feed.contract.d.ts.map +1 -1
- package/dist/candidate-calling/candidate-calling.contract.d.ts +13397 -0
- package/dist/candidate-calling/candidate-calling.contract.d.ts.map +1 -0
- package/dist/candidate-calling/candidate-calling.contract.js +206 -0
- package/dist/candidate-calling/candidate-calling.contract.spec.d.ts +2 -0
- package/dist/candidate-calling/candidate-calling.contract.spec.d.ts.map +1 -0
- package/dist/candidate-calling/candidate-calling.contract.spec.js +193 -0
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2738 -2634
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
- package/dist/collaborations/collaborations.contract.d.ts +2281 -2184
- package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
- package/dist/cron-executions/cron-executions.contract.d.ts +7 -7
- package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
- package/dist/cron-executions/cron-executions.contract.js +1 -0
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +2663 -2045
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/candidate-coordination.contract.js +37 -4
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +228 -228
- package/dist/curated-worker-leads/contact-history.spec.js +55 -0
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts +1928 -1928
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +36 -36
- package/dist/curated-workers/curated-workers.contract.d.ts +1195 -1195
- package/dist/dashboards/dashboard-widgets.contract.d.ts +396 -396
- package/dist/dashboards/dashboard.contract.d.ts +16 -16
- package/dist/export-jobs/export-jobs.contract.d.ts +675 -675
- package/dist/exports-events/exports-events.schemas.d.ts +4 -4
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/jobs/jobs.contract.d.ts +7903 -7645
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +72 -72
- package/dist/lead-assignments/lead-assignments.contract.d.ts +999 -928
- package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +244 -220
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
- package/dist/leads/leads.contract.d.ts +259 -259
- package/dist/notifications/notifications.contract.d.ts +67 -67
- package/dist/outreach/__tests__/outreach-claim.test.js +33 -0
- package/dist/outreach/__tests__/outreach-routes.test.js +8 -0
- package/dist/outreach/outreach.contract.d.ts +583 -162
- package/dist/outreach/outreach.contract.d.ts.map +1 -1
- package/dist/outreach/outreach.contract.js +50 -1
- package/dist/outreach/relay-hub-outreach.contract.d.ts +299 -121
- package/dist/outreach/relay-hub-outreach.contract.d.ts.map +1 -1
- package/dist/outreach/relay-hub-outreach.contract.js +10 -0
- package/dist/outreach/relay-hub-outreach.contract.spec.js +26 -0
- package/dist/outreach/relay-hub-outreach.schemas.d.ts +94 -0
- package/dist/outreach/relay-hub-outreach.schemas.d.ts.map +1 -0
- package/dist/outreach/relay-hub-outreach.schemas.js +15 -0
- package/dist/own-research/check-phone-response.spec.d.ts +2 -0
- package/dist/own-research/check-phone-response.spec.d.ts.map +1 -0
- package/dist/own-research/check-phone-response.spec.js +54 -0
- package/dist/own-research/own-research.contract.d.ts +801 -716
- package/dist/own-research/own-research.contract.d.ts.map +1 -1
- package/dist/own-research/own-research.contract.js +6 -1
- package/dist/user-access-grants/user-access-grants.contract.d.ts +179 -179
- package/dist/users/users.contract.d.ts +227 -198
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +9 -1
- package/dist/users/users.contract.spec.js +39 -0
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +124 -124
- package/dist/workers/workers.contract.d.ts +2761 -2717
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +12 -0
- package/package.json +1 -1
|
@@ -23,6 +23,113 @@ export declare const ClaimNextOutreachBodySchema: z.ZodObject<{
|
|
|
23
23
|
deviceId: string;
|
|
24
24
|
}>;
|
|
25
25
|
export type ClaimNextOutreachBody = z.infer<typeof ClaimNextOutreachBodySchema>;
|
|
26
|
+
/**
|
|
27
|
+
* Frozen authority for the agent-controlled claim lane. The Hub creates this
|
|
28
|
+
* authority when it reserves the request for an exact launch. Recruitment
|
|
29
|
+
* replays the canonical Hub-claim identity against its durable lifecycle and
|
|
30
|
+
* idempotency records before revealing a candidate phone number.
|
|
31
|
+
*
|
|
32
|
+
* `campaignId` intentionally equals `launchId`: Relay uses that stable ID as
|
|
33
|
+
* both the local campaign identity and the Hub claim idempotency key. Keeping
|
|
34
|
+
* both named fields makes that binding explicit at the cross-repo boundary.
|
|
35
|
+
*/
|
|
36
|
+
export declare const AgentClaimNextOutreachAuthoritySchema: z.ZodEffects<z.ZodObject<{
|
|
37
|
+
launchId: z.ZodString;
|
|
38
|
+
campaignId: z.ZodString;
|
|
39
|
+
jobId: z.ZodString;
|
|
40
|
+
claimedLifecycleVersion: z.ZodNumber;
|
|
41
|
+
reservationCorrelationId: z.ZodString;
|
|
42
|
+
assignedPodId: z.ZodString;
|
|
43
|
+
}, "strict", z.ZodTypeAny, {
|
|
44
|
+
launchId: string;
|
|
45
|
+
campaignId: string;
|
|
46
|
+
jobId: string;
|
|
47
|
+
claimedLifecycleVersion: number;
|
|
48
|
+
reservationCorrelationId: string;
|
|
49
|
+
assignedPodId: string;
|
|
50
|
+
}, {
|
|
51
|
+
launchId: string;
|
|
52
|
+
campaignId: string;
|
|
53
|
+
jobId: string;
|
|
54
|
+
claimedLifecycleVersion: number;
|
|
55
|
+
reservationCorrelationId: string;
|
|
56
|
+
assignedPodId: string;
|
|
57
|
+
}>, {
|
|
58
|
+
launchId: string;
|
|
59
|
+
campaignId: string;
|
|
60
|
+
jobId: string;
|
|
61
|
+
claimedLifecycleVersion: number;
|
|
62
|
+
reservationCorrelationId: string;
|
|
63
|
+
assignedPodId: string;
|
|
64
|
+
}, {
|
|
65
|
+
launchId: string;
|
|
66
|
+
campaignId: string;
|
|
67
|
+
jobId: string;
|
|
68
|
+
claimedLifecycleVersion: number;
|
|
69
|
+
reservationCorrelationId: string;
|
|
70
|
+
assignedPodId: string;
|
|
71
|
+
}>;
|
|
72
|
+
export type AgentClaimNextOutreachAuthority = z.infer<typeof AgentClaimNextOutreachAuthoritySchema>;
|
|
73
|
+
export declare const AgentClaimNextOutreachBodySchema: z.ZodObject<{
|
|
74
|
+
deviceId: z.ZodString;
|
|
75
|
+
authority: z.ZodEffects<z.ZodObject<{
|
|
76
|
+
launchId: z.ZodString;
|
|
77
|
+
campaignId: z.ZodString;
|
|
78
|
+
jobId: z.ZodString;
|
|
79
|
+
claimedLifecycleVersion: z.ZodNumber;
|
|
80
|
+
reservationCorrelationId: z.ZodString;
|
|
81
|
+
assignedPodId: z.ZodString;
|
|
82
|
+
}, "strict", z.ZodTypeAny, {
|
|
83
|
+
launchId: string;
|
|
84
|
+
campaignId: string;
|
|
85
|
+
jobId: string;
|
|
86
|
+
claimedLifecycleVersion: number;
|
|
87
|
+
reservationCorrelationId: string;
|
|
88
|
+
assignedPodId: string;
|
|
89
|
+
}, {
|
|
90
|
+
launchId: string;
|
|
91
|
+
campaignId: string;
|
|
92
|
+
jobId: string;
|
|
93
|
+
claimedLifecycleVersion: number;
|
|
94
|
+
reservationCorrelationId: string;
|
|
95
|
+
assignedPodId: string;
|
|
96
|
+
}>, {
|
|
97
|
+
launchId: string;
|
|
98
|
+
campaignId: string;
|
|
99
|
+
jobId: string;
|
|
100
|
+
claimedLifecycleVersion: number;
|
|
101
|
+
reservationCorrelationId: string;
|
|
102
|
+
assignedPodId: string;
|
|
103
|
+
}, {
|
|
104
|
+
launchId: string;
|
|
105
|
+
campaignId: string;
|
|
106
|
+
jobId: string;
|
|
107
|
+
claimedLifecycleVersion: number;
|
|
108
|
+
reservationCorrelationId: string;
|
|
109
|
+
assignedPodId: string;
|
|
110
|
+
}>;
|
|
111
|
+
}, "strict", z.ZodTypeAny, {
|
|
112
|
+
deviceId: string;
|
|
113
|
+
authority: {
|
|
114
|
+
launchId: string;
|
|
115
|
+
campaignId: string;
|
|
116
|
+
jobId: string;
|
|
117
|
+
claimedLifecycleVersion: number;
|
|
118
|
+
reservationCorrelationId: string;
|
|
119
|
+
assignedPodId: string;
|
|
120
|
+
};
|
|
121
|
+
}, {
|
|
122
|
+
deviceId: string;
|
|
123
|
+
authority: {
|
|
124
|
+
launchId: string;
|
|
125
|
+
campaignId: string;
|
|
126
|
+
jobId: string;
|
|
127
|
+
claimedLifecycleVersion: number;
|
|
128
|
+
reservationCorrelationId: string;
|
|
129
|
+
assignedPodId: string;
|
|
130
|
+
};
|
|
131
|
+
}>;
|
|
132
|
+
export type AgentClaimNextOutreachBody = z.infer<typeof AgentClaimNextOutreachBodySchema>;
|
|
26
133
|
/**
|
|
27
134
|
* An empty pool is not an error. Both outcomes are 200, discriminated on
|
|
28
135
|
* `status`, because the caller does opposite things in the two cases — wind
|
|
@@ -37,11 +144,11 @@ export declare const ClaimNextOutreachResponseSchema: z.ZodDiscriminatedUnion<"s
|
|
|
37
144
|
leaseId: z.ZodString;
|
|
38
145
|
expiresAt: z.ZodString;
|
|
39
146
|
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
expiresAt: string;
|
|
41
147
|
leaseId: string;
|
|
42
|
-
}, {
|
|
43
148
|
expiresAt: string;
|
|
149
|
+
}, {
|
|
44
150
|
leaseId: string;
|
|
151
|
+
expiresAt: string;
|
|
45
152
|
}>;
|
|
46
153
|
candidate: z.ZodObject<{
|
|
47
154
|
subjectKind: z.ZodEnum<["OWNED", "CURATED"]>;
|
|
@@ -53,23 +160,23 @@ export declare const ClaimNextOutreachResponseSchema: z.ZodDiscriminatedUnion<"s
|
|
|
53
160
|
commuteMinutes: z.ZodNumber;
|
|
54
161
|
transportMode: z.ZodEnum<["DRIVE", "PUBLIC_TRANSPORT"]>;
|
|
55
162
|
}, "strip", z.ZodTypeAny, {
|
|
56
|
-
name: string;
|
|
57
|
-
phoneNumber: string;
|
|
58
163
|
subjectKind: "OWNED" | "CURATED";
|
|
59
164
|
subjectId: string;
|
|
60
165
|
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
61
166
|
canonicalId: string;
|
|
62
|
-
commuteMinutes: number;
|
|
63
|
-
transportMode: "PUBLIC_TRANSPORT" | "DRIVE";
|
|
64
|
-
}, {
|
|
65
167
|
name: string;
|
|
66
168
|
phoneNumber: string;
|
|
169
|
+
commuteMinutes: number;
|
|
170
|
+
transportMode: "DRIVE" | "PUBLIC_TRANSPORT";
|
|
171
|
+
}, {
|
|
67
172
|
subjectKind: "OWNED" | "CURATED";
|
|
68
173
|
subjectId: string;
|
|
69
174
|
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
70
175
|
canonicalId: string;
|
|
176
|
+
name: string;
|
|
177
|
+
phoneNumber: string;
|
|
71
178
|
commuteMinutes: number;
|
|
72
|
-
transportMode: "
|
|
179
|
+
transportMode: "DRIVE" | "PUBLIC_TRANSPORT";
|
|
73
180
|
}>;
|
|
74
181
|
job: z.ZodObject<{
|
|
75
182
|
title: z.ZodString;
|
|
@@ -78,63 +185,63 @@ export declare const ClaimNextOutreachResponseSchema: z.ZodDiscriminatedUnion<"s
|
|
|
78
185
|
locationText: z.ZodNullable<z.ZodString>;
|
|
79
186
|
createdByName: z.ZodNullable<z.ZodString>;
|
|
80
187
|
}, "strip", z.ZodTypeAny, {
|
|
81
|
-
createdByName: string | null;
|
|
82
188
|
title: string;
|
|
83
189
|
trade: string | null;
|
|
84
190
|
payText: string | null;
|
|
85
191
|
locationText: string | null;
|
|
86
|
-
}, {
|
|
87
192
|
createdByName: string | null;
|
|
193
|
+
}, {
|
|
88
194
|
title: string;
|
|
89
195
|
trade: string | null;
|
|
90
196
|
payText: string | null;
|
|
91
197
|
locationText: string | null;
|
|
198
|
+
createdByName: string | null;
|
|
92
199
|
}>;
|
|
93
200
|
}, "strip", z.ZodTypeAny, {
|
|
94
201
|
status: "CLAIMED";
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
trade: string | null;
|
|
99
|
-
payText: string | null;
|
|
100
|
-
locationText: string | null;
|
|
202
|
+
lease: {
|
|
203
|
+
leaseId: string;
|
|
204
|
+
expiresAt: string;
|
|
101
205
|
};
|
|
102
206
|
candidate: {
|
|
103
|
-
name: string;
|
|
104
|
-
phoneNumber: string;
|
|
105
207
|
subjectKind: "OWNED" | "CURATED";
|
|
106
208
|
subjectId: string;
|
|
107
209
|
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
108
210
|
canonicalId: string;
|
|
211
|
+
name: string;
|
|
212
|
+
phoneNumber: string;
|
|
109
213
|
commuteMinutes: number;
|
|
110
|
-
transportMode: "
|
|
111
|
-
};
|
|
112
|
-
lease: {
|
|
113
|
-
expiresAt: string;
|
|
114
|
-
leaseId: string;
|
|
214
|
+
transportMode: "DRIVE" | "PUBLIC_TRANSPORT";
|
|
115
215
|
};
|
|
116
|
-
}, {
|
|
117
|
-
status: "CLAIMED";
|
|
118
216
|
job: {
|
|
119
|
-
createdByName: string | null;
|
|
120
217
|
title: string;
|
|
121
218
|
trade: string | null;
|
|
122
219
|
payText: string | null;
|
|
123
220
|
locationText: string | null;
|
|
221
|
+
createdByName: string | null;
|
|
222
|
+
};
|
|
223
|
+
}, {
|
|
224
|
+
status: "CLAIMED";
|
|
225
|
+
lease: {
|
|
226
|
+
leaseId: string;
|
|
227
|
+
expiresAt: string;
|
|
124
228
|
};
|
|
125
229
|
candidate: {
|
|
126
|
-
name: string;
|
|
127
|
-
phoneNumber: string;
|
|
128
230
|
subjectKind: "OWNED" | "CURATED";
|
|
129
231
|
subjectId: string;
|
|
130
232
|
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
131
233
|
canonicalId: string;
|
|
234
|
+
name: string;
|
|
235
|
+
phoneNumber: string;
|
|
132
236
|
commuteMinutes: number;
|
|
133
|
-
transportMode: "
|
|
237
|
+
transportMode: "DRIVE" | "PUBLIC_TRANSPORT";
|
|
134
238
|
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
239
|
+
job: {
|
|
240
|
+
title: string;
|
|
241
|
+
trade: string | null;
|
|
242
|
+
payText: string | null;
|
|
243
|
+
locationText: string | null;
|
|
244
|
+
createdByName: string | null;
|
|
138
245
|
};
|
|
139
246
|
}>, z.ZodObject<{
|
|
140
247
|
status: z.ZodLiteral<"POOL_EMPTY">;
|
|
@@ -200,12 +307,12 @@ export declare const ReleaseOutreachLeaseBodySchema: z.ZodObject<{
|
|
|
200
307
|
reason: z.ZodEnum<["CONTACT_SAVE_FAILED", "CHAT_OPEN_FAILED", "COMPOSE_FAILED", "OTHER"]>;
|
|
201
308
|
detail: z.ZodOptional<z.ZodString>;
|
|
202
309
|
}, "strip", z.ZodTypeAny, {
|
|
203
|
-
reason: "OTHER" | "CONTACT_SAVE_FAILED" | "CHAT_OPEN_FAILED" | "COMPOSE_FAILED";
|
|
204
310
|
deviceId: string;
|
|
311
|
+
reason: "CONTACT_SAVE_FAILED" | "CHAT_OPEN_FAILED" | "COMPOSE_FAILED" | "OTHER";
|
|
205
312
|
detail?: string | undefined;
|
|
206
313
|
}, {
|
|
207
|
-
reason: "OTHER" | "CONTACT_SAVE_FAILED" | "CHAT_OPEN_FAILED" | "COMPOSE_FAILED";
|
|
208
314
|
deviceId: string;
|
|
315
|
+
reason: "CONTACT_SAVE_FAILED" | "CHAT_OPEN_FAILED" | "COMPOSE_FAILED" | "OTHER";
|
|
209
316
|
detail?: string | undefined;
|
|
210
317
|
}>;
|
|
211
318
|
export type ReleaseOutreachLeaseBody = z.infer<typeof ReleaseOutreachLeaseBodySchema>;
|
|
@@ -219,7 +326,268 @@ export declare const ReleaseOutreachLeaseResponseSchema: z.ZodObject<{
|
|
|
219
326
|
export type ReleaseOutreachLeaseResponse = z.infer<typeof ReleaseOutreachLeaseResponseSchema>;
|
|
220
327
|
export declare const outreachContract: {
|
|
221
328
|
claimNext: {
|
|
329
|
+
metadata: {
|
|
330
|
+
tags: string[];
|
|
331
|
+
};
|
|
332
|
+
pathParams: z.ZodObject<{
|
|
333
|
+
requestId: z.ZodString;
|
|
334
|
+
}, "strip", z.ZodTypeAny, {
|
|
335
|
+
requestId: string;
|
|
336
|
+
}, {
|
|
337
|
+
requestId: string;
|
|
338
|
+
}>;
|
|
339
|
+
summary: "Claim the next eligible candidate for an outreach request";
|
|
222
340
|
description: "Derives the job from the pod-owned request. Idempotent per device: a device that already holds an active lease gets that lease back.";
|
|
341
|
+
method: "POST";
|
|
342
|
+
body: z.ZodObject<{
|
|
343
|
+
deviceId: z.ZodString;
|
|
344
|
+
}, "strip", z.ZodTypeAny, {
|
|
345
|
+
deviceId: string;
|
|
346
|
+
}, {
|
|
347
|
+
deviceId: string;
|
|
348
|
+
}>;
|
|
349
|
+
path: "/v2/outreach/requests/:requestId/claim-next";
|
|
350
|
+
responses: {
|
|
351
|
+
500: z.ZodObject<{
|
|
352
|
+
statusCode: z.ZodNumber;
|
|
353
|
+
message: z.ZodString;
|
|
354
|
+
code: z.ZodString;
|
|
355
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
356
|
+
timestamp: z.ZodString;
|
|
357
|
+
path: z.ZodString;
|
|
358
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
359
|
+
}, "strip", z.ZodTypeAny, {
|
|
360
|
+
code: string;
|
|
361
|
+
path: string;
|
|
362
|
+
message: string;
|
|
363
|
+
statusCode: number;
|
|
364
|
+
timestamp: string;
|
|
365
|
+
details?: unknown;
|
|
366
|
+
correlationId?: string | undefined;
|
|
367
|
+
}, {
|
|
368
|
+
code: string;
|
|
369
|
+
path: string;
|
|
370
|
+
message: string;
|
|
371
|
+
statusCode: number;
|
|
372
|
+
timestamp: string;
|
|
373
|
+
details?: unknown;
|
|
374
|
+
correlationId?: string | undefined;
|
|
375
|
+
}>;
|
|
376
|
+
400: z.ZodObject<{
|
|
377
|
+
statusCode: z.ZodNumber;
|
|
378
|
+
message: z.ZodString;
|
|
379
|
+
code: z.ZodString;
|
|
380
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
381
|
+
timestamp: z.ZodString;
|
|
382
|
+
path: z.ZodString;
|
|
383
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
384
|
+
}, "strip", z.ZodTypeAny, {
|
|
385
|
+
code: string;
|
|
386
|
+
path: string;
|
|
387
|
+
message: string;
|
|
388
|
+
statusCode: number;
|
|
389
|
+
timestamp: string;
|
|
390
|
+
details?: unknown;
|
|
391
|
+
correlationId?: string | undefined;
|
|
392
|
+
}, {
|
|
393
|
+
code: string;
|
|
394
|
+
path: string;
|
|
395
|
+
message: string;
|
|
396
|
+
statusCode: number;
|
|
397
|
+
timestamp: string;
|
|
398
|
+
details?: unknown;
|
|
399
|
+
correlationId?: string | undefined;
|
|
400
|
+
}>;
|
|
401
|
+
401: z.ZodObject<{
|
|
402
|
+
statusCode: z.ZodNumber;
|
|
403
|
+
message: z.ZodString;
|
|
404
|
+
code: z.ZodString;
|
|
405
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
406
|
+
timestamp: z.ZodString;
|
|
407
|
+
path: z.ZodString;
|
|
408
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
409
|
+
}, "strip", z.ZodTypeAny, {
|
|
410
|
+
code: string;
|
|
411
|
+
path: string;
|
|
412
|
+
message: string;
|
|
413
|
+
statusCode: number;
|
|
414
|
+
timestamp: string;
|
|
415
|
+
details?: unknown;
|
|
416
|
+
correlationId?: string | undefined;
|
|
417
|
+
}, {
|
|
418
|
+
code: string;
|
|
419
|
+
path: string;
|
|
420
|
+
message: string;
|
|
421
|
+
statusCode: number;
|
|
422
|
+
timestamp: string;
|
|
423
|
+
details?: unknown;
|
|
424
|
+
correlationId?: string | undefined;
|
|
425
|
+
}>;
|
|
426
|
+
403: z.ZodObject<{
|
|
427
|
+
statusCode: z.ZodNumber;
|
|
428
|
+
message: z.ZodString;
|
|
429
|
+
code: z.ZodString;
|
|
430
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
431
|
+
timestamp: z.ZodString;
|
|
432
|
+
path: z.ZodString;
|
|
433
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
434
|
+
}, "strip", z.ZodTypeAny, {
|
|
435
|
+
code: string;
|
|
436
|
+
path: string;
|
|
437
|
+
message: string;
|
|
438
|
+
statusCode: number;
|
|
439
|
+
timestamp: string;
|
|
440
|
+
details?: unknown;
|
|
441
|
+
correlationId?: string | undefined;
|
|
442
|
+
}, {
|
|
443
|
+
code: string;
|
|
444
|
+
path: string;
|
|
445
|
+
message: string;
|
|
446
|
+
statusCode: number;
|
|
447
|
+
timestamp: string;
|
|
448
|
+
details?: unknown;
|
|
449
|
+
correlationId?: string | undefined;
|
|
450
|
+
}>;
|
|
451
|
+
200: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
452
|
+
status: z.ZodLiteral<"CLAIMED">;
|
|
453
|
+
lease: z.ZodObject<{
|
|
454
|
+
leaseId: z.ZodString;
|
|
455
|
+
expiresAt: z.ZodString;
|
|
456
|
+
}, "strip", z.ZodTypeAny, {
|
|
457
|
+
leaseId: string;
|
|
458
|
+
expiresAt: string;
|
|
459
|
+
}, {
|
|
460
|
+
leaseId: string;
|
|
461
|
+
expiresAt: string;
|
|
462
|
+
}>;
|
|
463
|
+
candidate: z.ZodObject<{
|
|
464
|
+
subjectKind: z.ZodEnum<["OWNED", "CURATED"]>;
|
|
465
|
+
subjectId: z.ZodString;
|
|
466
|
+
canonicalKind: z.ZodEnum<["WORKER", "CURATED_WORKER"]>;
|
|
467
|
+
canonicalId: z.ZodString;
|
|
468
|
+
name: z.ZodString;
|
|
469
|
+
phoneNumber: z.ZodString;
|
|
470
|
+
commuteMinutes: z.ZodNumber;
|
|
471
|
+
transportMode: z.ZodEnum<["DRIVE", "PUBLIC_TRANSPORT"]>;
|
|
472
|
+
}, "strip", z.ZodTypeAny, {
|
|
473
|
+
subjectKind: "OWNED" | "CURATED";
|
|
474
|
+
subjectId: string;
|
|
475
|
+
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
476
|
+
canonicalId: string;
|
|
477
|
+
name: string;
|
|
478
|
+
phoneNumber: string;
|
|
479
|
+
commuteMinutes: number;
|
|
480
|
+
transportMode: "DRIVE" | "PUBLIC_TRANSPORT";
|
|
481
|
+
}, {
|
|
482
|
+
subjectKind: "OWNED" | "CURATED";
|
|
483
|
+
subjectId: string;
|
|
484
|
+
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
485
|
+
canonicalId: string;
|
|
486
|
+
name: string;
|
|
487
|
+
phoneNumber: string;
|
|
488
|
+
commuteMinutes: number;
|
|
489
|
+
transportMode: "DRIVE" | "PUBLIC_TRANSPORT";
|
|
490
|
+
}>;
|
|
491
|
+
job: z.ZodObject<{
|
|
492
|
+
title: z.ZodString;
|
|
493
|
+
trade: z.ZodNullable<z.ZodString>;
|
|
494
|
+
payText: z.ZodNullable<z.ZodString>;
|
|
495
|
+
locationText: z.ZodNullable<z.ZodString>;
|
|
496
|
+
createdByName: z.ZodNullable<z.ZodString>;
|
|
497
|
+
}, "strip", z.ZodTypeAny, {
|
|
498
|
+
title: string;
|
|
499
|
+
trade: string | null;
|
|
500
|
+
payText: string | null;
|
|
501
|
+
locationText: string | null;
|
|
502
|
+
createdByName: string | null;
|
|
503
|
+
}, {
|
|
504
|
+
title: string;
|
|
505
|
+
trade: string | null;
|
|
506
|
+
payText: string | null;
|
|
507
|
+
locationText: string | null;
|
|
508
|
+
createdByName: string | null;
|
|
509
|
+
}>;
|
|
510
|
+
}, "strip", z.ZodTypeAny, {
|
|
511
|
+
status: "CLAIMED";
|
|
512
|
+
lease: {
|
|
513
|
+
leaseId: string;
|
|
514
|
+
expiresAt: string;
|
|
515
|
+
};
|
|
516
|
+
candidate: {
|
|
517
|
+
subjectKind: "OWNED" | "CURATED";
|
|
518
|
+
subjectId: string;
|
|
519
|
+
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
520
|
+
canonicalId: string;
|
|
521
|
+
name: string;
|
|
522
|
+
phoneNumber: string;
|
|
523
|
+
commuteMinutes: number;
|
|
524
|
+
transportMode: "DRIVE" | "PUBLIC_TRANSPORT";
|
|
525
|
+
};
|
|
526
|
+
job: {
|
|
527
|
+
title: string;
|
|
528
|
+
trade: string | null;
|
|
529
|
+
payText: string | null;
|
|
530
|
+
locationText: string | null;
|
|
531
|
+
createdByName: string | null;
|
|
532
|
+
};
|
|
533
|
+
}, {
|
|
534
|
+
status: "CLAIMED";
|
|
535
|
+
lease: {
|
|
536
|
+
leaseId: string;
|
|
537
|
+
expiresAt: string;
|
|
538
|
+
};
|
|
539
|
+
candidate: {
|
|
540
|
+
subjectKind: "OWNED" | "CURATED";
|
|
541
|
+
subjectId: string;
|
|
542
|
+
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
543
|
+
canonicalId: string;
|
|
544
|
+
name: string;
|
|
545
|
+
phoneNumber: string;
|
|
546
|
+
commuteMinutes: number;
|
|
547
|
+
transportMode: "DRIVE" | "PUBLIC_TRANSPORT";
|
|
548
|
+
};
|
|
549
|
+
job: {
|
|
550
|
+
title: string;
|
|
551
|
+
trade: string | null;
|
|
552
|
+
payText: string | null;
|
|
553
|
+
locationText: string | null;
|
|
554
|
+
createdByName: string | null;
|
|
555
|
+
};
|
|
556
|
+
}>, z.ZodObject<{
|
|
557
|
+
status: z.ZodLiteral<"POOL_EMPTY">;
|
|
558
|
+
}, "strip", z.ZodTypeAny, {
|
|
559
|
+
status: "POOL_EMPTY";
|
|
560
|
+
}, {
|
|
561
|
+
status: "POOL_EMPTY";
|
|
562
|
+
}>]>;
|
|
563
|
+
409: z.ZodObject<{
|
|
564
|
+
statusCode: z.ZodNumber;
|
|
565
|
+
message: z.ZodString;
|
|
566
|
+
code: z.ZodString;
|
|
567
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
568
|
+
timestamp: z.ZodString;
|
|
569
|
+
path: z.ZodString;
|
|
570
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
571
|
+
}, "strip", z.ZodTypeAny, {
|
|
572
|
+
code: string;
|
|
573
|
+
path: string;
|
|
574
|
+
message: string;
|
|
575
|
+
statusCode: number;
|
|
576
|
+
timestamp: string;
|
|
577
|
+
details?: unknown;
|
|
578
|
+
correlationId?: string | undefined;
|
|
579
|
+
}, {
|
|
580
|
+
code: string;
|
|
581
|
+
path: string;
|
|
582
|
+
message: string;
|
|
583
|
+
statusCode: number;
|
|
584
|
+
timestamp: string;
|
|
585
|
+
details?: unknown;
|
|
586
|
+
correlationId?: string | undefined;
|
|
587
|
+
}>;
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
claimNextAgent: {
|
|
223
591
|
metadata: {
|
|
224
592
|
tags: string[];
|
|
225
593
|
};
|
|
@@ -230,18 +598,71 @@ export declare const outreachContract: {
|
|
|
230
598
|
}, {
|
|
231
599
|
requestId: string;
|
|
232
600
|
}>;
|
|
233
|
-
summary: "Claim
|
|
601
|
+
summary: "Claim for an exact Hub-authorized agent campaign launch";
|
|
602
|
+
description: "Validates the frozen launch, request lifecycle, reservation correlation, assigned pod and sender before claiming. Idempotent per request, pod and device.";
|
|
234
603
|
method: "POST";
|
|
235
604
|
body: z.ZodObject<{
|
|
236
605
|
deviceId: z.ZodString;
|
|
237
|
-
|
|
606
|
+
authority: z.ZodEffects<z.ZodObject<{
|
|
607
|
+
launchId: z.ZodString;
|
|
608
|
+
campaignId: z.ZodString;
|
|
609
|
+
jobId: z.ZodString;
|
|
610
|
+
claimedLifecycleVersion: z.ZodNumber;
|
|
611
|
+
reservationCorrelationId: z.ZodString;
|
|
612
|
+
assignedPodId: z.ZodString;
|
|
613
|
+
}, "strict", z.ZodTypeAny, {
|
|
614
|
+
launchId: string;
|
|
615
|
+
campaignId: string;
|
|
616
|
+
jobId: string;
|
|
617
|
+
claimedLifecycleVersion: number;
|
|
618
|
+
reservationCorrelationId: string;
|
|
619
|
+
assignedPodId: string;
|
|
620
|
+
}, {
|
|
621
|
+
launchId: string;
|
|
622
|
+
campaignId: string;
|
|
623
|
+
jobId: string;
|
|
624
|
+
claimedLifecycleVersion: number;
|
|
625
|
+
reservationCorrelationId: string;
|
|
626
|
+
assignedPodId: string;
|
|
627
|
+
}>, {
|
|
628
|
+
launchId: string;
|
|
629
|
+
campaignId: string;
|
|
630
|
+
jobId: string;
|
|
631
|
+
claimedLifecycleVersion: number;
|
|
632
|
+
reservationCorrelationId: string;
|
|
633
|
+
assignedPodId: string;
|
|
634
|
+
}, {
|
|
635
|
+
launchId: string;
|
|
636
|
+
campaignId: string;
|
|
637
|
+
jobId: string;
|
|
638
|
+
claimedLifecycleVersion: number;
|
|
639
|
+
reservationCorrelationId: string;
|
|
640
|
+
assignedPodId: string;
|
|
641
|
+
}>;
|
|
642
|
+
}, "strict", z.ZodTypeAny, {
|
|
238
643
|
deviceId: string;
|
|
644
|
+
authority: {
|
|
645
|
+
launchId: string;
|
|
646
|
+
campaignId: string;
|
|
647
|
+
jobId: string;
|
|
648
|
+
claimedLifecycleVersion: number;
|
|
649
|
+
reservationCorrelationId: string;
|
|
650
|
+
assignedPodId: string;
|
|
651
|
+
};
|
|
239
652
|
}, {
|
|
240
653
|
deviceId: string;
|
|
654
|
+
authority: {
|
|
655
|
+
launchId: string;
|
|
656
|
+
campaignId: string;
|
|
657
|
+
jobId: string;
|
|
658
|
+
claimedLifecycleVersion: number;
|
|
659
|
+
reservationCorrelationId: string;
|
|
660
|
+
assignedPodId: string;
|
|
661
|
+
};
|
|
241
662
|
}>;
|
|
242
|
-
path: "/v2/outreach/requests/:requestId/claim-next";
|
|
663
|
+
path: "/v2/outreach/requests/:requestId/agent-claim-next";
|
|
243
664
|
responses: {
|
|
244
|
-
|
|
665
|
+
500: z.ZodObject<{
|
|
245
666
|
statusCode: z.ZodNumber;
|
|
246
667
|
message: z.ZodString;
|
|
247
668
|
code: z.ZodString;
|
|
@@ -250,23 +671,23 @@ export declare const outreachContract: {
|
|
|
250
671
|
path: z.ZodString;
|
|
251
672
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
252
673
|
}, "strip", z.ZodTypeAny, {
|
|
253
|
-
message: string;
|
|
254
674
|
code: string;
|
|
255
675
|
path: string;
|
|
676
|
+
message: string;
|
|
256
677
|
statusCode: number;
|
|
257
678
|
timestamp: string;
|
|
258
679
|
details?: unknown;
|
|
259
680
|
correlationId?: string | undefined;
|
|
260
681
|
}, {
|
|
261
|
-
message: string;
|
|
262
682
|
code: string;
|
|
263
683
|
path: string;
|
|
684
|
+
message: string;
|
|
264
685
|
statusCode: number;
|
|
265
686
|
timestamp: string;
|
|
266
687
|
details?: unknown;
|
|
267
688
|
correlationId?: string | undefined;
|
|
268
689
|
}>;
|
|
269
|
-
|
|
690
|
+
400: z.ZodObject<{
|
|
270
691
|
statusCode: z.ZodNumber;
|
|
271
692
|
message: z.ZodString;
|
|
272
693
|
code: z.ZodString;
|
|
@@ -275,23 +696,23 @@ export declare const outreachContract: {
|
|
|
275
696
|
path: z.ZodString;
|
|
276
697
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
277
698
|
}, "strip", z.ZodTypeAny, {
|
|
278
|
-
message: string;
|
|
279
699
|
code: string;
|
|
280
700
|
path: string;
|
|
701
|
+
message: string;
|
|
281
702
|
statusCode: number;
|
|
282
703
|
timestamp: string;
|
|
283
704
|
details?: unknown;
|
|
284
705
|
correlationId?: string | undefined;
|
|
285
706
|
}, {
|
|
286
|
-
message: string;
|
|
287
707
|
code: string;
|
|
288
708
|
path: string;
|
|
709
|
+
message: string;
|
|
289
710
|
statusCode: number;
|
|
290
711
|
timestamp: string;
|
|
291
712
|
details?: unknown;
|
|
292
713
|
correlationId?: string | undefined;
|
|
293
714
|
}>;
|
|
294
|
-
|
|
715
|
+
401: z.ZodObject<{
|
|
295
716
|
statusCode: z.ZodNumber;
|
|
296
717
|
message: z.ZodString;
|
|
297
718
|
code: z.ZodString;
|
|
@@ -300,23 +721,23 @@ export declare const outreachContract: {
|
|
|
300
721
|
path: z.ZodString;
|
|
301
722
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
302
723
|
}, "strip", z.ZodTypeAny, {
|
|
303
|
-
message: string;
|
|
304
724
|
code: string;
|
|
305
725
|
path: string;
|
|
726
|
+
message: string;
|
|
306
727
|
statusCode: number;
|
|
307
728
|
timestamp: string;
|
|
308
729
|
details?: unknown;
|
|
309
730
|
correlationId?: string | undefined;
|
|
310
731
|
}, {
|
|
311
|
-
message: string;
|
|
312
732
|
code: string;
|
|
313
733
|
path: string;
|
|
734
|
+
message: string;
|
|
314
735
|
statusCode: number;
|
|
315
736
|
timestamp: string;
|
|
316
737
|
details?: unknown;
|
|
317
738
|
correlationId?: string | undefined;
|
|
318
739
|
}>;
|
|
319
|
-
|
|
740
|
+
403: z.ZodObject<{
|
|
320
741
|
statusCode: z.ZodNumber;
|
|
321
742
|
message: z.ZodString;
|
|
322
743
|
code: z.ZodString;
|
|
@@ -325,17 +746,17 @@ export declare const outreachContract: {
|
|
|
325
746
|
path: z.ZodString;
|
|
326
747
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
327
748
|
}, "strip", z.ZodTypeAny, {
|
|
328
|
-
message: string;
|
|
329
749
|
code: string;
|
|
330
750
|
path: string;
|
|
751
|
+
message: string;
|
|
331
752
|
statusCode: number;
|
|
332
753
|
timestamp: string;
|
|
333
754
|
details?: unknown;
|
|
334
755
|
correlationId?: string | undefined;
|
|
335
756
|
}, {
|
|
336
|
-
message: string;
|
|
337
757
|
code: string;
|
|
338
758
|
path: string;
|
|
759
|
+
message: string;
|
|
339
760
|
statusCode: number;
|
|
340
761
|
timestamp: string;
|
|
341
762
|
details?: unknown;
|
|
@@ -347,11 +768,11 @@ export declare const outreachContract: {
|
|
|
347
768
|
leaseId: z.ZodString;
|
|
348
769
|
expiresAt: z.ZodString;
|
|
349
770
|
}, "strip", z.ZodTypeAny, {
|
|
350
|
-
expiresAt: string;
|
|
351
771
|
leaseId: string;
|
|
352
|
-
}, {
|
|
353
772
|
expiresAt: string;
|
|
773
|
+
}, {
|
|
354
774
|
leaseId: string;
|
|
775
|
+
expiresAt: string;
|
|
355
776
|
}>;
|
|
356
777
|
candidate: z.ZodObject<{
|
|
357
778
|
subjectKind: z.ZodEnum<["OWNED", "CURATED"]>;
|
|
@@ -363,23 +784,23 @@ export declare const outreachContract: {
|
|
|
363
784
|
commuteMinutes: z.ZodNumber;
|
|
364
785
|
transportMode: z.ZodEnum<["DRIVE", "PUBLIC_TRANSPORT"]>;
|
|
365
786
|
}, "strip", z.ZodTypeAny, {
|
|
366
|
-
name: string;
|
|
367
|
-
phoneNumber: string;
|
|
368
787
|
subjectKind: "OWNED" | "CURATED";
|
|
369
788
|
subjectId: string;
|
|
370
789
|
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
371
790
|
canonicalId: string;
|
|
372
|
-
commuteMinutes: number;
|
|
373
|
-
transportMode: "PUBLIC_TRANSPORT" | "DRIVE";
|
|
374
|
-
}, {
|
|
375
791
|
name: string;
|
|
376
792
|
phoneNumber: string;
|
|
793
|
+
commuteMinutes: number;
|
|
794
|
+
transportMode: "DRIVE" | "PUBLIC_TRANSPORT";
|
|
795
|
+
}, {
|
|
377
796
|
subjectKind: "OWNED" | "CURATED";
|
|
378
797
|
subjectId: string;
|
|
379
798
|
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
380
799
|
canonicalId: string;
|
|
800
|
+
name: string;
|
|
801
|
+
phoneNumber: string;
|
|
381
802
|
commuteMinutes: number;
|
|
382
|
-
transportMode: "
|
|
803
|
+
transportMode: "DRIVE" | "PUBLIC_TRANSPORT";
|
|
383
804
|
}>;
|
|
384
805
|
job: z.ZodObject<{
|
|
385
806
|
title: z.ZodString;
|
|
@@ -388,63 +809,63 @@ export declare const outreachContract: {
|
|
|
388
809
|
locationText: z.ZodNullable<z.ZodString>;
|
|
389
810
|
createdByName: z.ZodNullable<z.ZodString>;
|
|
390
811
|
}, "strip", z.ZodTypeAny, {
|
|
391
|
-
createdByName: string | null;
|
|
392
812
|
title: string;
|
|
393
813
|
trade: string | null;
|
|
394
814
|
payText: string | null;
|
|
395
815
|
locationText: string | null;
|
|
396
|
-
}, {
|
|
397
816
|
createdByName: string | null;
|
|
817
|
+
}, {
|
|
398
818
|
title: string;
|
|
399
819
|
trade: string | null;
|
|
400
820
|
payText: string | null;
|
|
401
821
|
locationText: string | null;
|
|
822
|
+
createdByName: string | null;
|
|
402
823
|
}>;
|
|
403
824
|
}, "strip", z.ZodTypeAny, {
|
|
404
825
|
status: "CLAIMED";
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
trade: string | null;
|
|
409
|
-
payText: string | null;
|
|
410
|
-
locationText: string | null;
|
|
826
|
+
lease: {
|
|
827
|
+
leaseId: string;
|
|
828
|
+
expiresAt: string;
|
|
411
829
|
};
|
|
412
830
|
candidate: {
|
|
413
|
-
name: string;
|
|
414
|
-
phoneNumber: string;
|
|
415
831
|
subjectKind: "OWNED" | "CURATED";
|
|
416
832
|
subjectId: string;
|
|
417
833
|
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
418
834
|
canonicalId: string;
|
|
835
|
+
name: string;
|
|
836
|
+
phoneNumber: string;
|
|
419
837
|
commuteMinutes: number;
|
|
420
|
-
transportMode: "
|
|
421
|
-
};
|
|
422
|
-
lease: {
|
|
423
|
-
expiresAt: string;
|
|
424
|
-
leaseId: string;
|
|
838
|
+
transportMode: "DRIVE" | "PUBLIC_TRANSPORT";
|
|
425
839
|
};
|
|
426
|
-
}, {
|
|
427
|
-
status: "CLAIMED";
|
|
428
840
|
job: {
|
|
429
|
-
createdByName: string | null;
|
|
430
841
|
title: string;
|
|
431
842
|
trade: string | null;
|
|
432
843
|
payText: string | null;
|
|
433
844
|
locationText: string | null;
|
|
845
|
+
createdByName: string | null;
|
|
846
|
+
};
|
|
847
|
+
}, {
|
|
848
|
+
status: "CLAIMED";
|
|
849
|
+
lease: {
|
|
850
|
+
leaseId: string;
|
|
851
|
+
expiresAt: string;
|
|
434
852
|
};
|
|
435
853
|
candidate: {
|
|
436
|
-
name: string;
|
|
437
|
-
phoneNumber: string;
|
|
438
854
|
subjectKind: "OWNED" | "CURATED";
|
|
439
855
|
subjectId: string;
|
|
440
856
|
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
441
857
|
canonicalId: string;
|
|
858
|
+
name: string;
|
|
859
|
+
phoneNumber: string;
|
|
442
860
|
commuteMinutes: number;
|
|
443
|
-
transportMode: "
|
|
861
|
+
transportMode: "DRIVE" | "PUBLIC_TRANSPORT";
|
|
444
862
|
};
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
863
|
+
job: {
|
|
864
|
+
title: string;
|
|
865
|
+
trade: string | null;
|
|
866
|
+
payText: string | null;
|
|
867
|
+
locationText: string | null;
|
|
868
|
+
createdByName: string | null;
|
|
448
869
|
};
|
|
449
870
|
}>, z.ZodObject<{
|
|
450
871
|
status: z.ZodLiteral<"POOL_EMPTY">;
|
|
@@ -462,17 +883,17 @@ export declare const outreachContract: {
|
|
|
462
883
|
path: z.ZodString;
|
|
463
884
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
464
885
|
}, "strip", z.ZodTypeAny, {
|
|
465
|
-
message: string;
|
|
466
886
|
code: string;
|
|
467
887
|
path: string;
|
|
888
|
+
message: string;
|
|
468
889
|
statusCode: number;
|
|
469
890
|
timestamp: string;
|
|
470
891
|
details?: unknown;
|
|
471
892
|
correlationId?: string | undefined;
|
|
472
893
|
}, {
|
|
473
|
-
message: string;
|
|
474
894
|
code: string;
|
|
475
895
|
path: string;
|
|
896
|
+
message: string;
|
|
476
897
|
statusCode: number;
|
|
477
898
|
timestamp: string;
|
|
478
899
|
details?: unknown;
|
|
@@ -481,7 +902,6 @@ export declare const outreachContract: {
|
|
|
481
902
|
};
|
|
482
903
|
};
|
|
483
904
|
claimNextLegacy: {
|
|
484
|
-
description: string;
|
|
485
905
|
metadata: {
|
|
486
906
|
tags: string[];
|
|
487
907
|
};
|
|
@@ -493,6 +913,7 @@ export declare const outreachContract: {
|
|
|
493
913
|
jobId: string;
|
|
494
914
|
}>;
|
|
495
915
|
summary: "Claim the next eligible candidate for a job";
|
|
916
|
+
description: string;
|
|
496
917
|
method: "POST";
|
|
497
918
|
body: z.ZodObject<{
|
|
498
919
|
deviceId: z.ZodString;
|
|
@@ -503,7 +924,7 @@ export declare const outreachContract: {
|
|
|
503
924
|
}>;
|
|
504
925
|
path: "/v2/outreach/jobs/:jobId/claim-next";
|
|
505
926
|
responses: {
|
|
506
|
-
|
|
927
|
+
500: z.ZodObject<{
|
|
507
928
|
statusCode: z.ZodNumber;
|
|
508
929
|
message: z.ZodString;
|
|
509
930
|
code: z.ZodString;
|
|
@@ -512,23 +933,23 @@ export declare const outreachContract: {
|
|
|
512
933
|
path: z.ZodString;
|
|
513
934
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
514
935
|
}, "strip", z.ZodTypeAny, {
|
|
515
|
-
message: string;
|
|
516
936
|
code: string;
|
|
517
937
|
path: string;
|
|
938
|
+
message: string;
|
|
518
939
|
statusCode: number;
|
|
519
940
|
timestamp: string;
|
|
520
941
|
details?: unknown;
|
|
521
942
|
correlationId?: string | undefined;
|
|
522
943
|
}, {
|
|
523
|
-
message: string;
|
|
524
944
|
code: string;
|
|
525
945
|
path: string;
|
|
946
|
+
message: string;
|
|
526
947
|
statusCode: number;
|
|
527
948
|
timestamp: string;
|
|
528
949
|
details?: unknown;
|
|
529
950
|
correlationId?: string | undefined;
|
|
530
951
|
}>;
|
|
531
|
-
|
|
952
|
+
400: z.ZodObject<{
|
|
532
953
|
statusCode: z.ZodNumber;
|
|
533
954
|
message: z.ZodString;
|
|
534
955
|
code: z.ZodString;
|
|
@@ -537,23 +958,23 @@ export declare const outreachContract: {
|
|
|
537
958
|
path: z.ZodString;
|
|
538
959
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
539
960
|
}, "strip", z.ZodTypeAny, {
|
|
540
|
-
message: string;
|
|
541
961
|
code: string;
|
|
542
962
|
path: string;
|
|
963
|
+
message: string;
|
|
543
964
|
statusCode: number;
|
|
544
965
|
timestamp: string;
|
|
545
966
|
details?: unknown;
|
|
546
967
|
correlationId?: string | undefined;
|
|
547
968
|
}, {
|
|
548
|
-
message: string;
|
|
549
969
|
code: string;
|
|
550
970
|
path: string;
|
|
971
|
+
message: string;
|
|
551
972
|
statusCode: number;
|
|
552
973
|
timestamp: string;
|
|
553
974
|
details?: unknown;
|
|
554
975
|
correlationId?: string | undefined;
|
|
555
976
|
}>;
|
|
556
|
-
|
|
977
|
+
401: z.ZodObject<{
|
|
557
978
|
statusCode: z.ZodNumber;
|
|
558
979
|
message: z.ZodString;
|
|
559
980
|
code: z.ZodString;
|
|
@@ -562,23 +983,23 @@ export declare const outreachContract: {
|
|
|
562
983
|
path: z.ZodString;
|
|
563
984
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
564
985
|
}, "strip", z.ZodTypeAny, {
|
|
565
|
-
message: string;
|
|
566
986
|
code: string;
|
|
567
987
|
path: string;
|
|
988
|
+
message: string;
|
|
568
989
|
statusCode: number;
|
|
569
990
|
timestamp: string;
|
|
570
991
|
details?: unknown;
|
|
571
992
|
correlationId?: string | undefined;
|
|
572
993
|
}, {
|
|
573
|
-
message: string;
|
|
574
994
|
code: string;
|
|
575
995
|
path: string;
|
|
996
|
+
message: string;
|
|
576
997
|
statusCode: number;
|
|
577
998
|
timestamp: string;
|
|
578
999
|
details?: unknown;
|
|
579
1000
|
correlationId?: string | undefined;
|
|
580
1001
|
}>;
|
|
581
|
-
|
|
1002
|
+
403: z.ZodObject<{
|
|
582
1003
|
statusCode: z.ZodNumber;
|
|
583
1004
|
message: z.ZodString;
|
|
584
1005
|
code: z.ZodString;
|
|
@@ -587,17 +1008,17 @@ export declare const outreachContract: {
|
|
|
587
1008
|
path: z.ZodString;
|
|
588
1009
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
589
1010
|
}, "strip", z.ZodTypeAny, {
|
|
590
|
-
message: string;
|
|
591
1011
|
code: string;
|
|
592
1012
|
path: string;
|
|
1013
|
+
message: string;
|
|
593
1014
|
statusCode: number;
|
|
594
1015
|
timestamp: string;
|
|
595
1016
|
details?: unknown;
|
|
596
1017
|
correlationId?: string | undefined;
|
|
597
1018
|
}, {
|
|
598
|
-
message: string;
|
|
599
1019
|
code: string;
|
|
600
1020
|
path: string;
|
|
1021
|
+
message: string;
|
|
601
1022
|
statusCode: number;
|
|
602
1023
|
timestamp: string;
|
|
603
1024
|
details?: unknown;
|
|
@@ -609,11 +1030,11 @@ export declare const outreachContract: {
|
|
|
609
1030
|
leaseId: z.ZodString;
|
|
610
1031
|
expiresAt: z.ZodString;
|
|
611
1032
|
}, "strip", z.ZodTypeAny, {
|
|
612
|
-
expiresAt: string;
|
|
613
1033
|
leaseId: string;
|
|
614
|
-
}, {
|
|
615
1034
|
expiresAt: string;
|
|
1035
|
+
}, {
|
|
616
1036
|
leaseId: string;
|
|
1037
|
+
expiresAt: string;
|
|
617
1038
|
}>;
|
|
618
1039
|
candidate: z.ZodObject<{
|
|
619
1040
|
subjectKind: z.ZodEnum<["OWNED", "CURATED"]>;
|
|
@@ -625,23 +1046,23 @@ export declare const outreachContract: {
|
|
|
625
1046
|
commuteMinutes: z.ZodNumber;
|
|
626
1047
|
transportMode: z.ZodEnum<["DRIVE", "PUBLIC_TRANSPORT"]>;
|
|
627
1048
|
}, "strip", z.ZodTypeAny, {
|
|
628
|
-
name: string;
|
|
629
|
-
phoneNumber: string;
|
|
630
1049
|
subjectKind: "OWNED" | "CURATED";
|
|
631
1050
|
subjectId: string;
|
|
632
1051
|
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
633
1052
|
canonicalId: string;
|
|
634
|
-
commuteMinutes: number;
|
|
635
|
-
transportMode: "PUBLIC_TRANSPORT" | "DRIVE";
|
|
636
|
-
}, {
|
|
637
1053
|
name: string;
|
|
638
1054
|
phoneNumber: string;
|
|
1055
|
+
commuteMinutes: number;
|
|
1056
|
+
transportMode: "DRIVE" | "PUBLIC_TRANSPORT";
|
|
1057
|
+
}, {
|
|
639
1058
|
subjectKind: "OWNED" | "CURATED";
|
|
640
1059
|
subjectId: string;
|
|
641
1060
|
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
642
1061
|
canonicalId: string;
|
|
1062
|
+
name: string;
|
|
1063
|
+
phoneNumber: string;
|
|
643
1064
|
commuteMinutes: number;
|
|
644
|
-
transportMode: "
|
|
1065
|
+
transportMode: "DRIVE" | "PUBLIC_TRANSPORT";
|
|
645
1066
|
}>;
|
|
646
1067
|
job: z.ZodObject<{
|
|
647
1068
|
title: z.ZodString;
|
|
@@ -650,63 +1071,63 @@ export declare const outreachContract: {
|
|
|
650
1071
|
locationText: z.ZodNullable<z.ZodString>;
|
|
651
1072
|
createdByName: z.ZodNullable<z.ZodString>;
|
|
652
1073
|
}, "strip", z.ZodTypeAny, {
|
|
653
|
-
createdByName: string | null;
|
|
654
1074
|
title: string;
|
|
655
1075
|
trade: string | null;
|
|
656
1076
|
payText: string | null;
|
|
657
1077
|
locationText: string | null;
|
|
658
|
-
}, {
|
|
659
1078
|
createdByName: string | null;
|
|
1079
|
+
}, {
|
|
660
1080
|
title: string;
|
|
661
1081
|
trade: string | null;
|
|
662
1082
|
payText: string | null;
|
|
663
1083
|
locationText: string | null;
|
|
1084
|
+
createdByName: string | null;
|
|
664
1085
|
}>;
|
|
665
1086
|
}, "strip", z.ZodTypeAny, {
|
|
666
1087
|
status: "CLAIMED";
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
trade: string | null;
|
|
671
|
-
payText: string | null;
|
|
672
|
-
locationText: string | null;
|
|
1088
|
+
lease: {
|
|
1089
|
+
leaseId: string;
|
|
1090
|
+
expiresAt: string;
|
|
673
1091
|
};
|
|
674
1092
|
candidate: {
|
|
675
|
-
name: string;
|
|
676
|
-
phoneNumber: string;
|
|
677
1093
|
subjectKind: "OWNED" | "CURATED";
|
|
678
1094
|
subjectId: string;
|
|
679
1095
|
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
680
1096
|
canonicalId: string;
|
|
1097
|
+
name: string;
|
|
1098
|
+
phoneNumber: string;
|
|
681
1099
|
commuteMinutes: number;
|
|
682
|
-
transportMode: "
|
|
683
|
-
};
|
|
684
|
-
lease: {
|
|
685
|
-
expiresAt: string;
|
|
686
|
-
leaseId: string;
|
|
1100
|
+
transportMode: "DRIVE" | "PUBLIC_TRANSPORT";
|
|
687
1101
|
};
|
|
688
|
-
}, {
|
|
689
|
-
status: "CLAIMED";
|
|
690
1102
|
job: {
|
|
691
|
-
createdByName: string | null;
|
|
692
1103
|
title: string;
|
|
693
1104
|
trade: string | null;
|
|
694
1105
|
payText: string | null;
|
|
695
1106
|
locationText: string | null;
|
|
1107
|
+
createdByName: string | null;
|
|
1108
|
+
};
|
|
1109
|
+
}, {
|
|
1110
|
+
status: "CLAIMED";
|
|
1111
|
+
lease: {
|
|
1112
|
+
leaseId: string;
|
|
1113
|
+
expiresAt: string;
|
|
696
1114
|
};
|
|
697
1115
|
candidate: {
|
|
698
|
-
name: string;
|
|
699
|
-
phoneNumber: string;
|
|
700
1116
|
subjectKind: "OWNED" | "CURATED";
|
|
701
1117
|
subjectId: string;
|
|
702
1118
|
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
703
1119
|
canonicalId: string;
|
|
1120
|
+
name: string;
|
|
1121
|
+
phoneNumber: string;
|
|
704
1122
|
commuteMinutes: number;
|
|
705
|
-
transportMode: "
|
|
1123
|
+
transportMode: "DRIVE" | "PUBLIC_TRANSPORT";
|
|
706
1124
|
};
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
1125
|
+
job: {
|
|
1126
|
+
title: string;
|
|
1127
|
+
trade: string | null;
|
|
1128
|
+
payText: string | null;
|
|
1129
|
+
locationText: string | null;
|
|
1130
|
+
createdByName: string | null;
|
|
710
1131
|
};
|
|
711
1132
|
}>, z.ZodObject<{
|
|
712
1133
|
status: z.ZodLiteral<"POOL_EMPTY">;
|
|
@@ -724,17 +1145,17 @@ export declare const outreachContract: {
|
|
|
724
1145
|
path: z.ZodString;
|
|
725
1146
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
726
1147
|
}, "strip", z.ZodTypeAny, {
|
|
727
|
-
message: string;
|
|
728
1148
|
code: string;
|
|
729
1149
|
path: string;
|
|
1150
|
+
message: string;
|
|
730
1151
|
statusCode: number;
|
|
731
1152
|
timestamp: string;
|
|
732
1153
|
details?: unknown;
|
|
733
1154
|
correlationId?: string | undefined;
|
|
734
1155
|
}, {
|
|
735
|
-
message: string;
|
|
736
1156
|
code: string;
|
|
737
1157
|
path: string;
|
|
1158
|
+
message: string;
|
|
738
1159
|
statusCode: number;
|
|
739
1160
|
timestamp: string;
|
|
740
1161
|
details?: unknown;
|
|
@@ -743,7 +1164,6 @@ export declare const outreachContract: {
|
|
|
743
1164
|
};
|
|
744
1165
|
};
|
|
745
1166
|
confirmSent: {
|
|
746
|
-
description: string;
|
|
747
1167
|
metadata: {
|
|
748
1168
|
tags: string[];
|
|
749
1169
|
};
|
|
@@ -755,6 +1175,7 @@ export declare const outreachContract: {
|
|
|
755
1175
|
leaseId: string;
|
|
756
1176
|
}>;
|
|
757
1177
|
summary: "Confirm that a message was sent under a lease";
|
|
1178
|
+
description: string;
|
|
758
1179
|
method: "POST";
|
|
759
1180
|
body: z.ZodObject<{
|
|
760
1181
|
deviceId: z.ZodString;
|
|
@@ -777,7 +1198,7 @@ export declare const outreachContract: {
|
|
|
777
1198
|
}>;
|
|
778
1199
|
path: "/v2/outreach/leases/:leaseId/sent";
|
|
779
1200
|
responses: {
|
|
780
|
-
|
|
1201
|
+
500: z.ZodObject<{
|
|
781
1202
|
statusCode: z.ZodNumber;
|
|
782
1203
|
message: z.ZodString;
|
|
783
1204
|
code: z.ZodString;
|
|
@@ -786,23 +1207,23 @@ export declare const outreachContract: {
|
|
|
786
1207
|
path: z.ZodString;
|
|
787
1208
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
788
1209
|
}, "strip", z.ZodTypeAny, {
|
|
789
|
-
message: string;
|
|
790
1210
|
code: string;
|
|
791
1211
|
path: string;
|
|
1212
|
+
message: string;
|
|
792
1213
|
statusCode: number;
|
|
793
1214
|
timestamp: string;
|
|
794
1215
|
details?: unknown;
|
|
795
1216
|
correlationId?: string | undefined;
|
|
796
1217
|
}, {
|
|
797
|
-
message: string;
|
|
798
1218
|
code: string;
|
|
799
1219
|
path: string;
|
|
1220
|
+
message: string;
|
|
800
1221
|
statusCode: number;
|
|
801
1222
|
timestamp: string;
|
|
802
1223
|
details?: unknown;
|
|
803
1224
|
correlationId?: string | undefined;
|
|
804
1225
|
}>;
|
|
805
|
-
|
|
1226
|
+
400: z.ZodObject<{
|
|
806
1227
|
statusCode: z.ZodNumber;
|
|
807
1228
|
message: z.ZodString;
|
|
808
1229
|
code: z.ZodString;
|
|
@@ -811,23 +1232,23 @@ export declare const outreachContract: {
|
|
|
811
1232
|
path: z.ZodString;
|
|
812
1233
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
813
1234
|
}, "strip", z.ZodTypeAny, {
|
|
814
|
-
message: string;
|
|
815
1235
|
code: string;
|
|
816
1236
|
path: string;
|
|
1237
|
+
message: string;
|
|
817
1238
|
statusCode: number;
|
|
818
1239
|
timestamp: string;
|
|
819
1240
|
details?: unknown;
|
|
820
1241
|
correlationId?: string | undefined;
|
|
821
1242
|
}, {
|
|
822
|
-
message: string;
|
|
823
1243
|
code: string;
|
|
824
1244
|
path: string;
|
|
1245
|
+
message: string;
|
|
825
1246
|
statusCode: number;
|
|
826
1247
|
timestamp: string;
|
|
827
1248
|
details?: unknown;
|
|
828
1249
|
correlationId?: string | undefined;
|
|
829
1250
|
}>;
|
|
830
|
-
|
|
1251
|
+
401: z.ZodObject<{
|
|
831
1252
|
statusCode: z.ZodNumber;
|
|
832
1253
|
message: z.ZodString;
|
|
833
1254
|
code: z.ZodString;
|
|
@@ -836,23 +1257,23 @@ export declare const outreachContract: {
|
|
|
836
1257
|
path: z.ZodString;
|
|
837
1258
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
838
1259
|
}, "strip", z.ZodTypeAny, {
|
|
839
|
-
message: string;
|
|
840
1260
|
code: string;
|
|
841
1261
|
path: string;
|
|
1262
|
+
message: string;
|
|
842
1263
|
statusCode: number;
|
|
843
1264
|
timestamp: string;
|
|
844
1265
|
details?: unknown;
|
|
845
1266
|
correlationId?: string | undefined;
|
|
846
1267
|
}, {
|
|
847
|
-
message: string;
|
|
848
1268
|
code: string;
|
|
849
1269
|
path: string;
|
|
1270
|
+
message: string;
|
|
850
1271
|
statusCode: number;
|
|
851
1272
|
timestamp: string;
|
|
852
1273
|
details?: unknown;
|
|
853
1274
|
correlationId?: string | undefined;
|
|
854
1275
|
}>;
|
|
855
|
-
|
|
1276
|
+
403: z.ZodObject<{
|
|
856
1277
|
statusCode: z.ZodNumber;
|
|
857
1278
|
message: z.ZodString;
|
|
858
1279
|
code: z.ZodString;
|
|
@@ -861,17 +1282,17 @@ export declare const outreachContract: {
|
|
|
861
1282
|
path: z.ZodString;
|
|
862
1283
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
863
1284
|
}, "strip", z.ZodTypeAny, {
|
|
864
|
-
message: string;
|
|
865
1285
|
code: string;
|
|
866
1286
|
path: string;
|
|
1287
|
+
message: string;
|
|
867
1288
|
statusCode: number;
|
|
868
1289
|
timestamp: string;
|
|
869
1290
|
details?: unknown;
|
|
870
1291
|
correlationId?: string | undefined;
|
|
871
1292
|
}, {
|
|
872
|
-
message: string;
|
|
873
1293
|
code: string;
|
|
874
1294
|
path: string;
|
|
1295
|
+
message: string;
|
|
875
1296
|
statusCode: number;
|
|
876
1297
|
timestamp: string;
|
|
877
1298
|
details?: unknown;
|
|
@@ -896,17 +1317,17 @@ export declare const outreachContract: {
|
|
|
896
1317
|
path: z.ZodString;
|
|
897
1318
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
898
1319
|
}, "strip", z.ZodTypeAny, {
|
|
899
|
-
message: string;
|
|
900
1320
|
code: string;
|
|
901
1321
|
path: string;
|
|
1322
|
+
message: string;
|
|
902
1323
|
statusCode: number;
|
|
903
1324
|
timestamp: string;
|
|
904
1325
|
details?: unknown;
|
|
905
1326
|
correlationId?: string | undefined;
|
|
906
1327
|
}, {
|
|
907
|
-
message: string;
|
|
908
1328
|
code: string;
|
|
909
1329
|
path: string;
|
|
1330
|
+
message: string;
|
|
910
1331
|
statusCode: number;
|
|
911
1332
|
timestamp: string;
|
|
912
1333
|
details?: unknown;
|
|
@@ -915,7 +1336,6 @@ export declare const outreachContract: {
|
|
|
915
1336
|
};
|
|
916
1337
|
};
|
|
917
1338
|
release: {
|
|
918
|
-
description: string;
|
|
919
1339
|
metadata: {
|
|
920
1340
|
tags: string[];
|
|
921
1341
|
};
|
|
@@ -927,23 +1347,24 @@ export declare const outreachContract: {
|
|
|
927
1347
|
leaseId: string;
|
|
928
1348
|
}>;
|
|
929
1349
|
summary: "Return a claimed candidate to the pool unsent";
|
|
1350
|
+
description: string;
|
|
930
1351
|
method: "POST";
|
|
931
1352
|
body: z.ZodObject<{
|
|
932
1353
|
deviceId: z.ZodString;
|
|
933
1354
|
reason: z.ZodEnum<["CONTACT_SAVE_FAILED", "CHAT_OPEN_FAILED", "COMPOSE_FAILED", "OTHER"]>;
|
|
934
1355
|
detail: z.ZodOptional<z.ZodString>;
|
|
935
1356
|
}, "strip", z.ZodTypeAny, {
|
|
936
|
-
reason: "OTHER" | "CONTACT_SAVE_FAILED" | "CHAT_OPEN_FAILED" | "COMPOSE_FAILED";
|
|
937
1357
|
deviceId: string;
|
|
1358
|
+
reason: "CONTACT_SAVE_FAILED" | "CHAT_OPEN_FAILED" | "COMPOSE_FAILED" | "OTHER";
|
|
938
1359
|
detail?: string | undefined;
|
|
939
1360
|
}, {
|
|
940
|
-
reason: "OTHER" | "CONTACT_SAVE_FAILED" | "CHAT_OPEN_FAILED" | "COMPOSE_FAILED";
|
|
941
1361
|
deviceId: string;
|
|
1362
|
+
reason: "CONTACT_SAVE_FAILED" | "CHAT_OPEN_FAILED" | "COMPOSE_FAILED" | "OTHER";
|
|
942
1363
|
detail?: string | undefined;
|
|
943
1364
|
}>;
|
|
944
1365
|
path: "/v2/outreach/leases/:leaseId/release";
|
|
945
1366
|
responses: {
|
|
946
|
-
|
|
1367
|
+
500: z.ZodObject<{
|
|
947
1368
|
statusCode: z.ZodNumber;
|
|
948
1369
|
message: z.ZodString;
|
|
949
1370
|
code: z.ZodString;
|
|
@@ -952,23 +1373,23 @@ export declare const outreachContract: {
|
|
|
952
1373
|
path: z.ZodString;
|
|
953
1374
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
954
1375
|
}, "strip", z.ZodTypeAny, {
|
|
955
|
-
message: string;
|
|
956
1376
|
code: string;
|
|
957
1377
|
path: string;
|
|
1378
|
+
message: string;
|
|
958
1379
|
statusCode: number;
|
|
959
1380
|
timestamp: string;
|
|
960
1381
|
details?: unknown;
|
|
961
1382
|
correlationId?: string | undefined;
|
|
962
1383
|
}, {
|
|
963
|
-
message: string;
|
|
964
1384
|
code: string;
|
|
965
1385
|
path: string;
|
|
1386
|
+
message: string;
|
|
966
1387
|
statusCode: number;
|
|
967
1388
|
timestamp: string;
|
|
968
1389
|
details?: unknown;
|
|
969
1390
|
correlationId?: string | undefined;
|
|
970
1391
|
}>;
|
|
971
|
-
|
|
1392
|
+
400: z.ZodObject<{
|
|
972
1393
|
statusCode: z.ZodNumber;
|
|
973
1394
|
message: z.ZodString;
|
|
974
1395
|
code: z.ZodString;
|
|
@@ -977,23 +1398,23 @@ export declare const outreachContract: {
|
|
|
977
1398
|
path: z.ZodString;
|
|
978
1399
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
979
1400
|
}, "strip", z.ZodTypeAny, {
|
|
980
|
-
message: string;
|
|
981
1401
|
code: string;
|
|
982
1402
|
path: string;
|
|
1403
|
+
message: string;
|
|
983
1404
|
statusCode: number;
|
|
984
1405
|
timestamp: string;
|
|
985
1406
|
details?: unknown;
|
|
986
1407
|
correlationId?: string | undefined;
|
|
987
1408
|
}, {
|
|
988
|
-
message: string;
|
|
989
1409
|
code: string;
|
|
990
1410
|
path: string;
|
|
1411
|
+
message: string;
|
|
991
1412
|
statusCode: number;
|
|
992
1413
|
timestamp: string;
|
|
993
1414
|
details?: unknown;
|
|
994
1415
|
correlationId?: string | undefined;
|
|
995
1416
|
}>;
|
|
996
|
-
|
|
1417
|
+
401: z.ZodObject<{
|
|
997
1418
|
statusCode: z.ZodNumber;
|
|
998
1419
|
message: z.ZodString;
|
|
999
1420
|
code: z.ZodString;
|
|
@@ -1002,23 +1423,23 @@ export declare const outreachContract: {
|
|
|
1002
1423
|
path: z.ZodString;
|
|
1003
1424
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1004
1425
|
}, "strip", z.ZodTypeAny, {
|
|
1005
|
-
message: string;
|
|
1006
1426
|
code: string;
|
|
1007
1427
|
path: string;
|
|
1428
|
+
message: string;
|
|
1008
1429
|
statusCode: number;
|
|
1009
1430
|
timestamp: string;
|
|
1010
1431
|
details?: unknown;
|
|
1011
1432
|
correlationId?: string | undefined;
|
|
1012
1433
|
}, {
|
|
1013
|
-
message: string;
|
|
1014
1434
|
code: string;
|
|
1015
1435
|
path: string;
|
|
1436
|
+
message: string;
|
|
1016
1437
|
statusCode: number;
|
|
1017
1438
|
timestamp: string;
|
|
1018
1439
|
details?: unknown;
|
|
1019
1440
|
correlationId?: string | undefined;
|
|
1020
1441
|
}>;
|
|
1021
|
-
|
|
1442
|
+
403: z.ZodObject<{
|
|
1022
1443
|
statusCode: z.ZodNumber;
|
|
1023
1444
|
message: z.ZodString;
|
|
1024
1445
|
code: z.ZodString;
|
|
@@ -1027,17 +1448,17 @@ export declare const outreachContract: {
|
|
|
1027
1448
|
path: z.ZodString;
|
|
1028
1449
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1029
1450
|
}, "strip", z.ZodTypeAny, {
|
|
1030
|
-
message: string;
|
|
1031
1451
|
code: string;
|
|
1032
1452
|
path: string;
|
|
1453
|
+
message: string;
|
|
1033
1454
|
statusCode: number;
|
|
1034
1455
|
timestamp: string;
|
|
1035
1456
|
details?: unknown;
|
|
1036
1457
|
correlationId?: string | undefined;
|
|
1037
1458
|
}, {
|
|
1038
|
-
message: string;
|
|
1039
1459
|
code: string;
|
|
1040
1460
|
path: string;
|
|
1461
|
+
message: string;
|
|
1041
1462
|
statusCode: number;
|
|
1042
1463
|
timestamp: string;
|
|
1043
1464
|
details?: unknown;
|
|
@@ -1059,17 +1480,17 @@ export declare const outreachContract: {
|
|
|
1059
1480
|
path: z.ZodString;
|
|
1060
1481
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1061
1482
|
}, "strip", z.ZodTypeAny, {
|
|
1062
|
-
message: string;
|
|
1063
1483
|
code: string;
|
|
1064
1484
|
path: string;
|
|
1485
|
+
message: string;
|
|
1065
1486
|
statusCode: number;
|
|
1066
1487
|
timestamp: string;
|
|
1067
1488
|
details?: unknown;
|
|
1068
1489
|
correlationId?: string | undefined;
|
|
1069
1490
|
}, {
|
|
1070
|
-
message: string;
|
|
1071
1491
|
code: string;
|
|
1072
1492
|
path: string;
|
|
1493
|
+
message: string;
|
|
1073
1494
|
statusCode: number;
|
|
1074
1495
|
timestamp: string;
|
|
1075
1496
|
details?: unknown;
|