@selleragent/api-contract 0.1.0
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/.tsbuildinfo +1 -0
- package/dist/auth.d.ts +457 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +122 -0
- package/dist/auth.js.map +1 -0
- package/dist/commerce.d.ts +1393 -0
- package/dist/commerce.d.ts.map +1 -0
- package/dist/commerce.js +255 -0
- package/dist/commerce.js.map +1 -0
- package/dist/conversations.d.ts +1956 -0
- package/dist/conversations.d.ts.map +1 -0
- package/dist/conversations.js +234 -0
- package/dist/conversations.js.map +1 -0
- package/dist/customers.d.ts +1235 -0
- package/dist/customers.d.ts.map +1 -0
- package/dist/customers.js +214 -0
- package/dist/customers.js.map +1 -0
- package/dist/followups.d.ts +382 -0
- package/dist/followups.d.ts.map +1 -0
- package/dist/followups.js +99 -0
- package/dist/followups.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +588 -0
- package/dist/index.js.map +1 -0
- package/dist/judge-files.d.ts +873 -0
- package/dist/judge-files.d.ts.map +1 -0
- package/dist/judge-files.js +280 -0
- package/dist/judge-files.js.map +1 -0
- package/dist/operations.d.ts +23537 -0
- package/dist/operations.d.ts.map +1 -0
- package/dist/operations.js +1832 -0
- package/dist/operations.js.map +1 -0
- package/dist/ops.d.ts +4438 -0
- package/dist/ops.d.ts.map +1 -0
- package/dist/ops.js +537 -0
- package/dist/ops.js.map +1 -0
- package/dist/runtime.d.ts +1051 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +325 -0
- package/dist/runtime.js.map +1 -0
- package/dist/semantic-eval.d.ts +1234 -0
- package/dist/semantic-eval.d.ts.map +1 -0
- package/dist/semantic-eval.js +162 -0
- package/dist/semantic-eval.js.map +1 -0
- package/dist/system.d.ts +69 -0
- package/dist/system.d.ts.map +1 -0
- package/dist/system.js +52 -0
- package/dist/system.js.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK7C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAChG,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAClG,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AACxF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC1F,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC1F,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC"}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customersPatchMemoryResponseSchema = exports.memoryPatchOutcomeSchema = exports.customersPatchMemoryRequestSchema = exports.customersGetContextResponseSchema = exports.customersGetContextRequestSchema = exports.customersEnsureIdentityResponseSchema = exports.customersEnsureIdentityRequestSchema = exports.customerContextSchema = exports.customerRecordSchema = exports.memoryUpdateRecordSchema = exports.customerTimelineEventSchema = exports.customerOrderHistoryEntrySchema = exports.customerSummaryPatchSchema = exports.customerSummarySchema = exports.customerCommercialProfilePatchSchema = exports.customerCommercialProfileSchema = exports.customerProfilePatchSchema = exports.customerProfileSchema = exports.customerIdentitySchema = exports.customerIdentityLookupSchema = exports.memoryUpdateActionSchema = exports.memorySourceSchema = exports.memoryActorTypeSchema = exports.customerSummaryKindSchema = exports.customerCommunicationStyleSchema = exports.customerFollowUpToleranceSchema = exports.customerDecisionSpeedSchema = exports.customerPriceSensitivitySchema = exports.customerChannelSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.customerChannelSchema = zod_1.z.enum([
|
|
6
|
+
'telegram',
|
|
7
|
+
'telegram_business',
|
|
8
|
+
'local_playground',
|
|
9
|
+
'web_chat',
|
|
10
|
+
'manual'
|
|
11
|
+
]);
|
|
12
|
+
exports.customerPriceSensitivitySchema = zod_1.z.enum(['low', 'medium', 'high']);
|
|
13
|
+
exports.customerDecisionSpeedSchema = zod_1.z.enum(['slow', 'medium', 'fast']);
|
|
14
|
+
exports.customerFollowUpToleranceSchema = zod_1.z.enum(['low', 'medium', 'high']);
|
|
15
|
+
exports.customerCommunicationStyleSchema = zod_1.z.enum(['concise', 'balanced', 'warm']);
|
|
16
|
+
exports.customerSummaryKindSchema = zod_1.z.enum(['conversation', 'episode']);
|
|
17
|
+
exports.memoryActorTypeSchema = zod_1.z.enum(['runtime', 'operator', 'system']);
|
|
18
|
+
exports.memorySourceSchema = zod_1.z.enum([
|
|
19
|
+
'conversation_turn',
|
|
20
|
+
'operator_edit',
|
|
21
|
+
'import',
|
|
22
|
+
'system_sync',
|
|
23
|
+
'episode_close',
|
|
24
|
+
'scenario_seed'
|
|
25
|
+
]);
|
|
26
|
+
exports.memoryUpdateActionSchema = zod_1.z.enum(['applied', 'merged', 'rejected', 'noop']);
|
|
27
|
+
const optionalTextSchema = zod_1.z.string().min(1).nullable();
|
|
28
|
+
const stringListSchema = zod_1.z.array(zod_1.z.string().min(1)).default([]);
|
|
29
|
+
const jsonRecordSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).default({});
|
|
30
|
+
exports.customerIdentityLookupSchema = zod_1.z.object({
|
|
31
|
+
channel: exports.customerChannelSchema,
|
|
32
|
+
externalUserId: zod_1.z.string().min(1),
|
|
33
|
+
channelAccountId: zod_1.z.string().min(1).nullable().default(null)
|
|
34
|
+
});
|
|
35
|
+
exports.customerIdentitySchema = zod_1.z.object({
|
|
36
|
+
identityId: zod_1.z.string().uuid(),
|
|
37
|
+
customerId: zod_1.z.string().uuid(),
|
|
38
|
+
channel: exports.customerChannelSchema,
|
|
39
|
+
externalUserId: zod_1.z.string().min(1),
|
|
40
|
+
channelAccountId: zod_1.z.string().min(1).nullable(),
|
|
41
|
+
displayName: zod_1.z.string().min(1).nullable(),
|
|
42
|
+
createdAt: zod_1.z.string(),
|
|
43
|
+
updatedAt: zod_1.z.string()
|
|
44
|
+
});
|
|
45
|
+
exports.customerProfileSchema = zod_1.z.object({
|
|
46
|
+
customerId: zod_1.z.string().uuid(),
|
|
47
|
+
name: optionalTextSchema.default(null),
|
|
48
|
+
locale: optionalTextSchema.default(null),
|
|
49
|
+
language: optionalTextSchema.default(null),
|
|
50
|
+
timezone: optionalTextSchema.default(null),
|
|
51
|
+
city: optionalTextSchema.default(null),
|
|
52
|
+
country: optionalTextSchema.default(null),
|
|
53
|
+
preferredChannel: exports.customerChannelSchema.nullable().default(null),
|
|
54
|
+
stableContextFacts: stringListSchema,
|
|
55
|
+
createdAt: zod_1.z.string(),
|
|
56
|
+
updatedAt: zod_1.z.string()
|
|
57
|
+
});
|
|
58
|
+
exports.customerProfilePatchSchema = zod_1.z.object({
|
|
59
|
+
name: optionalTextSchema.optional(),
|
|
60
|
+
locale: optionalTextSchema.optional(),
|
|
61
|
+
language: optionalTextSchema.optional(),
|
|
62
|
+
timezone: optionalTextSchema.optional(),
|
|
63
|
+
city: optionalTextSchema.optional(),
|
|
64
|
+
country: optionalTextSchema.optional(),
|
|
65
|
+
preferredChannel: exports.customerChannelSchema.nullable().optional(),
|
|
66
|
+
stableContextFacts: zod_1.z.array(zod_1.z.string().min(1)).optional()
|
|
67
|
+
});
|
|
68
|
+
exports.customerCommercialProfileSchema = zod_1.z.object({
|
|
69
|
+
customerId: zod_1.z.string().uuid(),
|
|
70
|
+
productInterests: stringListSchema,
|
|
71
|
+
priceSensitivity: exports.customerPriceSensitivitySchema.nullable().default(null),
|
|
72
|
+
decisionSpeed: exports.customerDecisionSpeedSchema.nullable().default(null),
|
|
73
|
+
recurringObjections: stringListSchema,
|
|
74
|
+
followUpTolerance: exports.customerFollowUpToleranceSchema.nullable().default(null),
|
|
75
|
+
preferredCommunicationStyle: exports.customerCommunicationStyleSchema.nullable().default(null),
|
|
76
|
+
repeatCustomer: zod_1.z.boolean().default(false),
|
|
77
|
+
notes: stringListSchema,
|
|
78
|
+
createdAt: zod_1.z.string(),
|
|
79
|
+
updatedAt: zod_1.z.string()
|
|
80
|
+
});
|
|
81
|
+
exports.customerCommercialProfilePatchSchema = zod_1.z.object({
|
|
82
|
+
productInterests: zod_1.z.array(zod_1.z.string().min(1)).optional(),
|
|
83
|
+
priceSensitivity: exports.customerPriceSensitivitySchema.nullable().optional(),
|
|
84
|
+
decisionSpeed: exports.customerDecisionSpeedSchema.nullable().optional(),
|
|
85
|
+
recurringObjections: zod_1.z.array(zod_1.z.string().min(1)).optional(),
|
|
86
|
+
followUpTolerance: exports.customerFollowUpToleranceSchema.nullable().optional(),
|
|
87
|
+
preferredCommunicationStyle: exports.customerCommunicationStyleSchema.nullable().optional(),
|
|
88
|
+
repeatCustomer: zod_1.z.boolean().optional(),
|
|
89
|
+
notes: zod_1.z.array(zod_1.z.string().min(1)).optional()
|
|
90
|
+
});
|
|
91
|
+
exports.customerSummarySchema = zod_1.z.object({
|
|
92
|
+
summaryId: zod_1.z.string().uuid(),
|
|
93
|
+
customerId: zod_1.z.string().uuid(),
|
|
94
|
+
kind: exports.customerSummaryKindSchema,
|
|
95
|
+
summaryKey: zod_1.z.string().min(1),
|
|
96
|
+
title: optionalTextSchema.default(null),
|
|
97
|
+
summaryText: zod_1.z.string().min(1),
|
|
98
|
+
currentIntent: optionalTextSchema.default(null),
|
|
99
|
+
activeQuestions: stringListSchema,
|
|
100
|
+
blockers: stringListSchema,
|
|
101
|
+
nextStep: optionalTextSchema.default(null),
|
|
102
|
+
currentCartSummary: optionalTextSchema.default(null),
|
|
103
|
+
source: exports.memorySourceSchema,
|
|
104
|
+
createdAt: zod_1.z.string(),
|
|
105
|
+
updatedAt: zod_1.z.string()
|
|
106
|
+
});
|
|
107
|
+
exports.customerSummaryPatchSchema = zod_1.z.object({
|
|
108
|
+
kind: exports.customerSummaryKindSchema,
|
|
109
|
+
summaryKey: zod_1.z.string().min(1),
|
|
110
|
+
title: optionalTextSchema.optional(),
|
|
111
|
+
summaryText: zod_1.z.string().min(1),
|
|
112
|
+
currentIntent: optionalTextSchema.optional(),
|
|
113
|
+
activeQuestions: zod_1.z.array(zod_1.z.string().min(1)).optional(),
|
|
114
|
+
blockers: zod_1.z.array(zod_1.z.string().min(1)).optional(),
|
|
115
|
+
nextStep: optionalTextSchema.optional(),
|
|
116
|
+
currentCartSummary: optionalTextSchema.optional()
|
|
117
|
+
});
|
|
118
|
+
exports.customerOrderHistoryEntrySchema = zod_1.z.object({
|
|
119
|
+
orderId: zod_1.z.string().min(1),
|
|
120
|
+
title: zod_1.z.string().min(1),
|
|
121
|
+
status: zod_1.z.enum(['draft', 'paid', 'fulfilled', 'cancelled']),
|
|
122
|
+
occurredAt: zod_1.z.string(),
|
|
123
|
+
totalLabel: optionalTextSchema.default(null),
|
|
124
|
+
notes: optionalTextSchema.default(null)
|
|
125
|
+
});
|
|
126
|
+
exports.customerTimelineEventSchema = zod_1.z.object({
|
|
127
|
+
eventId: zod_1.z.string().uuid(),
|
|
128
|
+
customerId: zod_1.z.string().uuid(),
|
|
129
|
+
eventType: zod_1.z.string().min(1),
|
|
130
|
+
title: zod_1.z.string().min(1),
|
|
131
|
+
occurredAt: zod_1.z.string(),
|
|
132
|
+
payload: jsonRecordSchema
|
|
133
|
+
});
|
|
134
|
+
exports.memoryUpdateRecordSchema = zod_1.z.object({
|
|
135
|
+
updateId: zod_1.z.string().uuid(),
|
|
136
|
+
customerId: zod_1.z.string().uuid(),
|
|
137
|
+
target: zod_1.z.enum(['profile', 'commercial_profile', 'summary', 'order_history']),
|
|
138
|
+
field: zod_1.z.string().min(1),
|
|
139
|
+
actorType: exports.memoryActorTypeSchema,
|
|
140
|
+
source: exports.memorySourceSchema,
|
|
141
|
+
confidence: zod_1.z.number().min(0).max(1),
|
|
142
|
+
action: exports.memoryUpdateActionSchema,
|
|
143
|
+
reason: optionalTextSchema.default(null),
|
|
144
|
+
previousValue: zod_1.z.unknown().optional(),
|
|
145
|
+
nextValue: zod_1.z.unknown().optional(),
|
|
146
|
+
createdAt: zod_1.z.string()
|
|
147
|
+
});
|
|
148
|
+
exports.customerRecordSchema = zod_1.z.object({
|
|
149
|
+
customerId: zod_1.z.string().uuid(),
|
|
150
|
+
createdAt: zod_1.z.string(),
|
|
151
|
+
updatedAt: zod_1.z.string()
|
|
152
|
+
});
|
|
153
|
+
exports.customerContextSchema = zod_1.z.object({
|
|
154
|
+
customer: exports.customerRecordSchema,
|
|
155
|
+
identities: zod_1.z.array(exports.customerIdentitySchema),
|
|
156
|
+
profile: exports.customerProfileSchema,
|
|
157
|
+
commercialProfile: exports.customerCommercialProfileSchema,
|
|
158
|
+
summaries: zod_1.z.array(exports.customerSummarySchema),
|
|
159
|
+
orderHistory: zod_1.z.array(exports.customerOrderHistoryEntrySchema),
|
|
160
|
+
timeline: zod_1.z.array(exports.customerTimelineEventSchema),
|
|
161
|
+
memoryUpdates: zod_1.z.array(exports.memoryUpdateRecordSchema)
|
|
162
|
+
});
|
|
163
|
+
exports.customersEnsureIdentityRequestSchema = zod_1.z.object({
|
|
164
|
+
channel: exports.customerChannelSchema,
|
|
165
|
+
externalUserId: zod_1.z.string().min(1),
|
|
166
|
+
channelAccountId: zod_1.z.string().min(1).nullable().default(null),
|
|
167
|
+
displayName: zod_1.z.string().min(1).nullable().default(null),
|
|
168
|
+
profileHints: exports.customerProfilePatchSchema.default({})
|
|
169
|
+
});
|
|
170
|
+
exports.customersEnsureIdentityResponseSchema = zod_1.z.object({
|
|
171
|
+
resolution: zod_1.z.object({
|
|
172
|
+
createdCustomer: zod_1.z.boolean(),
|
|
173
|
+
createdIdentity: zod_1.z.boolean(),
|
|
174
|
+
matchedBy: zod_1.z.literal('identity')
|
|
175
|
+
}),
|
|
176
|
+
context: exports.customerContextSchema
|
|
177
|
+
});
|
|
178
|
+
exports.customersGetContextRequestSchema = zod_1.z
|
|
179
|
+
.object({
|
|
180
|
+
customerId: zod_1.z.string().uuid().optional(),
|
|
181
|
+
identity: exports.customerIdentityLookupSchema.optional()
|
|
182
|
+
})
|
|
183
|
+
.refine((input) => input.customerId !== undefined || input.identity !== undefined, {
|
|
184
|
+
message: 'Either customerId or identity must be provided.'
|
|
185
|
+
});
|
|
186
|
+
exports.customersGetContextResponseSchema = zod_1.z.object({
|
|
187
|
+
found: zod_1.z.boolean(),
|
|
188
|
+
foundBy: zod_1.z.enum(['customerId', 'identity']).nullable(),
|
|
189
|
+
context: exports.customerContextSchema.nullable()
|
|
190
|
+
});
|
|
191
|
+
exports.customersPatchMemoryRequestSchema = zod_1.z.object({
|
|
192
|
+
customerId: zod_1.z.string().uuid(),
|
|
193
|
+
actorType: exports.memoryActorTypeSchema,
|
|
194
|
+
source: exports.memorySourceSchema,
|
|
195
|
+
confidence: zod_1.z.number().min(0).max(1).default(0.5),
|
|
196
|
+
profilePatch: exports.customerProfilePatchSchema.optional(),
|
|
197
|
+
commercialPatch: exports.customerCommercialProfilePatchSchema.optional(),
|
|
198
|
+
summaryPatches: zod_1.z.array(exports.customerSummaryPatchSchema).default([]),
|
|
199
|
+
orderHistoryEntries: zod_1.z.array(exports.customerOrderHistoryEntrySchema).default([])
|
|
200
|
+
});
|
|
201
|
+
exports.memoryPatchOutcomeSchema = zod_1.z.object({
|
|
202
|
+
updateId: zod_1.z.string().uuid(),
|
|
203
|
+
target: zod_1.z.string().min(1),
|
|
204
|
+
field: zod_1.z.string().min(1),
|
|
205
|
+
action: exports.memoryUpdateActionSchema,
|
|
206
|
+
reason: optionalTextSchema.default(null)
|
|
207
|
+
});
|
|
208
|
+
exports.customersPatchMemoryResponseSchema = zod_1.z.object({
|
|
209
|
+
context: exports.customerContextSchema,
|
|
210
|
+
beforeContext: exports.customerContextSchema,
|
|
211
|
+
appliedUpdates: zod_1.z.array(exports.memoryPatchOutcomeSchema),
|
|
212
|
+
rejectedUpdates: zod_1.z.array(exports.memoryPatchOutcomeSchema)
|
|
213
|
+
});
|
|
214
|
+
//# sourceMappingURL=customers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../src/customers.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,qBAAqB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC1C,UAAU;IACV,mBAAmB;IACnB,kBAAkB;IAClB,UAAU;IACV,QAAQ;CACT,CAAC,CAAC;AAGU,QAAA,8BAA8B,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;AACnE,QAAA,2BAA2B,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;AACjE,QAAA,+BAA+B,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;AACpE,QAAA,gCAAgC,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;AAC3E,QAAA,yBAAyB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC,CAAC;AAChE,QAAA,qBAAqB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AAClE,QAAA,kBAAkB,GAAG,OAAC,CAAC,IAAI,CAAC;IACvC,mBAAmB;IACnB,eA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MAAM,CAAC;IAC/C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC3B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,MAAM,EAAE,gCAAwB;IAChC,MAAM,EAAE,kBAAkB,CAAC,OAAO,CAAC,IAAI,CAAC;CACzC,CAAC,CAAC;AAEU,QAAA,kCAAkC,GAAG,OAAC,CAAC,MAAM,CAAC;IACzD,OAAO,EAAE,6BAAqB;IAC9B,aAAa,EAAE,6BAAqB;IACpC,cAAc,EAAE,OAAC,CAAC,KAAK,CAAC,gCAAwB,CAAC;IACjD,eAAe,EAAE,OAAC,CAAC,KAAK,CAAC,gCAAwB,CAAC;CACnD,CAAC,CAAC"}
|
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const followUpGhostedClassSchema: z.ZodEnum<{
|
|
3
|
+
waiting_for_customer: "waiting_for_customer";
|
|
4
|
+
waiting_for_assets: "waiting_for_assets";
|
|
5
|
+
waiting_for_payment: "waiting_for_payment";
|
|
6
|
+
waiting_for_partner_decision: "waiting_for_partner_decision";
|
|
7
|
+
silent_dropoff: "silent_dropoff";
|
|
8
|
+
operator_followup_needed: "operator_followup_needed";
|
|
9
|
+
}>;
|
|
10
|
+
export declare const followUpTaskKindSchema: z.ZodEnum<{
|
|
11
|
+
ai_reactivation: "ai_reactivation";
|
|
12
|
+
operator_callback: "operator_callback";
|
|
13
|
+
}>;
|
|
14
|
+
export declare const followUpTaskStatusSchema: z.ZodEnum<{
|
|
15
|
+
cancelled: "cancelled";
|
|
16
|
+
pending: "pending";
|
|
17
|
+
completed: "completed";
|
|
18
|
+
}>;
|
|
19
|
+
export declare const followUpPolicyActionSchema: z.ZodEnum<{
|
|
20
|
+
schedule_ai_reactivation: "schedule_ai_reactivation";
|
|
21
|
+
schedule_operator_callback: "schedule_operator_callback";
|
|
22
|
+
no_action: "no_action";
|
|
23
|
+
}>;
|
|
24
|
+
export declare const followUpCompletionOutcomeSchema: z.ZodEnum<{
|
|
25
|
+
cancelled: "cancelled";
|
|
26
|
+
reactivated: "reactivated";
|
|
27
|
+
completed_no_response: "completed_no_response";
|
|
28
|
+
not_needed: "not_needed";
|
|
29
|
+
}>;
|
|
30
|
+
export declare const followUpActorTypeSchema: z.ZodEnum<{
|
|
31
|
+
operator: "operator";
|
|
32
|
+
system: "system";
|
|
33
|
+
scenario: "scenario";
|
|
34
|
+
}>;
|
|
35
|
+
export declare const followUpActorSchema: z.ZodObject<{
|
|
36
|
+
actorType: z.ZodEnum<{
|
|
37
|
+
operator: "operator";
|
|
38
|
+
system: "system";
|
|
39
|
+
scenario: "scenario";
|
|
40
|
+
}>;
|
|
41
|
+
operatorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export declare const followUpEvaluationSchema: z.ZodObject<{
|
|
45
|
+
conversationId: z.ZodString;
|
|
46
|
+
customerId: z.ZodString;
|
|
47
|
+
dealId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
cartId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
ghostedClass: z.ZodEnum<{
|
|
50
|
+
waiting_for_customer: "waiting_for_customer";
|
|
51
|
+
waiting_for_assets: "waiting_for_assets";
|
|
52
|
+
waiting_for_payment: "waiting_for_payment";
|
|
53
|
+
waiting_for_partner_decision: "waiting_for_partner_decision";
|
|
54
|
+
silent_dropoff: "silent_dropoff";
|
|
55
|
+
operator_followup_needed: "operator_followup_needed";
|
|
56
|
+
}>;
|
|
57
|
+
taskKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
58
|
+
ai_reactivation: "ai_reactivation";
|
|
59
|
+
operator_callback: "operator_callback";
|
|
60
|
+
}>>>;
|
|
61
|
+
policyAction: z.ZodEnum<{
|
|
62
|
+
schedule_ai_reactivation: "schedule_ai_reactivation";
|
|
63
|
+
schedule_operator_callback: "schedule_operator_callback";
|
|
64
|
+
no_action: "no_action";
|
|
65
|
+
}>;
|
|
66
|
+
silenceMinutes: z.ZodNumber;
|
|
67
|
+
suggestedDelayMinutes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
68
|
+
reason: z.ZodString;
|
|
69
|
+
suggestedMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
evaluatedAt: z.ZodString;
|
|
71
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
export declare const followUpTaskSchema: z.ZodObject<{
|
|
74
|
+
taskId: z.ZodString;
|
|
75
|
+
conversationId: z.ZodString;
|
|
76
|
+
customerId: z.ZodString;
|
|
77
|
+
dealId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
cartId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
ghostedClass: z.ZodEnum<{
|
|
80
|
+
waiting_for_customer: "waiting_for_customer";
|
|
81
|
+
waiting_for_assets: "waiting_for_assets";
|
|
82
|
+
waiting_for_payment: "waiting_for_payment";
|
|
83
|
+
waiting_for_partner_decision: "waiting_for_partner_decision";
|
|
84
|
+
silent_dropoff: "silent_dropoff";
|
|
85
|
+
operator_followup_needed: "operator_followup_needed";
|
|
86
|
+
}>;
|
|
87
|
+
taskKind: z.ZodEnum<{
|
|
88
|
+
ai_reactivation: "ai_reactivation";
|
|
89
|
+
operator_callback: "operator_callback";
|
|
90
|
+
}>;
|
|
91
|
+
status: z.ZodEnum<{
|
|
92
|
+
cancelled: "cancelled";
|
|
93
|
+
pending: "pending";
|
|
94
|
+
completed: "completed";
|
|
95
|
+
}>;
|
|
96
|
+
policyAction: z.ZodEnum<{
|
|
97
|
+
schedule_ai_reactivation: "schedule_ai_reactivation";
|
|
98
|
+
schedule_operator_callback: "schedule_operator_callback";
|
|
99
|
+
no_action: "no_action";
|
|
100
|
+
}>;
|
|
101
|
+
reason: z.ZodString;
|
|
102
|
+
suggestedMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
103
|
+
dueAt: z.ZodString;
|
|
104
|
+
lastEvaluatedAt: z.ZodString;
|
|
105
|
+
createdBy: z.ZodObject<{
|
|
106
|
+
actorType: z.ZodEnum<{
|
|
107
|
+
operator: "operator";
|
|
108
|
+
system: "system";
|
|
109
|
+
scenario: "scenario";
|
|
110
|
+
}>;
|
|
111
|
+
operatorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
112
|
+
displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
completionOutcome: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
115
|
+
cancelled: "cancelled";
|
|
116
|
+
reactivated: "reactivated";
|
|
117
|
+
completed_no_response: "completed_no_response";
|
|
118
|
+
not_needed: "not_needed";
|
|
119
|
+
}>>>;
|
|
120
|
+
completionNote: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
121
|
+
completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
122
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
123
|
+
createdAt: z.ZodString;
|
|
124
|
+
updatedAt: z.ZodString;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
export declare const followUpsEvaluateConversationRequestSchema: z.ZodObject<{
|
|
127
|
+
conversationId: z.ZodString;
|
|
128
|
+
observedSilenceMinutes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
129
|
+
requestedBy: z.ZodOptional<z.ZodObject<{
|
|
130
|
+
actorType: z.ZodEnum<{
|
|
131
|
+
operator: "operator";
|
|
132
|
+
system: "system";
|
|
133
|
+
scenario: "scenario";
|
|
134
|
+
}>;
|
|
135
|
+
operatorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
136
|
+
displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
137
|
+
}, z.core.$strip>>;
|
|
138
|
+
}, z.core.$strip>;
|
|
139
|
+
export declare const followUpsEvaluateConversationResponseSchema: z.ZodObject<{
|
|
140
|
+
evaluation: z.ZodObject<{
|
|
141
|
+
conversationId: z.ZodString;
|
|
142
|
+
customerId: z.ZodString;
|
|
143
|
+
dealId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
144
|
+
cartId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
145
|
+
ghostedClass: z.ZodEnum<{
|
|
146
|
+
waiting_for_customer: "waiting_for_customer";
|
|
147
|
+
waiting_for_assets: "waiting_for_assets";
|
|
148
|
+
waiting_for_payment: "waiting_for_payment";
|
|
149
|
+
waiting_for_partner_decision: "waiting_for_partner_decision";
|
|
150
|
+
silent_dropoff: "silent_dropoff";
|
|
151
|
+
operator_followup_needed: "operator_followup_needed";
|
|
152
|
+
}>;
|
|
153
|
+
taskKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
154
|
+
ai_reactivation: "ai_reactivation";
|
|
155
|
+
operator_callback: "operator_callback";
|
|
156
|
+
}>>>;
|
|
157
|
+
policyAction: z.ZodEnum<{
|
|
158
|
+
schedule_ai_reactivation: "schedule_ai_reactivation";
|
|
159
|
+
schedule_operator_callback: "schedule_operator_callback";
|
|
160
|
+
no_action: "no_action";
|
|
161
|
+
}>;
|
|
162
|
+
silenceMinutes: z.ZodNumber;
|
|
163
|
+
suggestedDelayMinutes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
164
|
+
reason: z.ZodString;
|
|
165
|
+
suggestedMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
166
|
+
evaluatedAt: z.ZodString;
|
|
167
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
task: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
170
|
+
taskId: z.ZodString;
|
|
171
|
+
conversationId: z.ZodString;
|
|
172
|
+
customerId: z.ZodString;
|
|
173
|
+
dealId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
174
|
+
cartId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
175
|
+
ghostedClass: z.ZodEnum<{
|
|
176
|
+
waiting_for_customer: "waiting_for_customer";
|
|
177
|
+
waiting_for_assets: "waiting_for_assets";
|
|
178
|
+
waiting_for_payment: "waiting_for_payment";
|
|
179
|
+
waiting_for_partner_decision: "waiting_for_partner_decision";
|
|
180
|
+
silent_dropoff: "silent_dropoff";
|
|
181
|
+
operator_followup_needed: "operator_followup_needed";
|
|
182
|
+
}>;
|
|
183
|
+
taskKind: z.ZodEnum<{
|
|
184
|
+
ai_reactivation: "ai_reactivation";
|
|
185
|
+
operator_callback: "operator_callback";
|
|
186
|
+
}>;
|
|
187
|
+
status: z.ZodEnum<{
|
|
188
|
+
cancelled: "cancelled";
|
|
189
|
+
pending: "pending";
|
|
190
|
+
completed: "completed";
|
|
191
|
+
}>;
|
|
192
|
+
policyAction: z.ZodEnum<{
|
|
193
|
+
schedule_ai_reactivation: "schedule_ai_reactivation";
|
|
194
|
+
schedule_operator_callback: "schedule_operator_callback";
|
|
195
|
+
no_action: "no_action";
|
|
196
|
+
}>;
|
|
197
|
+
reason: z.ZodString;
|
|
198
|
+
suggestedMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
199
|
+
dueAt: z.ZodString;
|
|
200
|
+
lastEvaluatedAt: z.ZodString;
|
|
201
|
+
createdBy: z.ZodObject<{
|
|
202
|
+
actorType: z.ZodEnum<{
|
|
203
|
+
operator: "operator";
|
|
204
|
+
system: "system";
|
|
205
|
+
scenario: "scenario";
|
|
206
|
+
}>;
|
|
207
|
+
operatorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
208
|
+
displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
209
|
+
}, z.core.$strip>;
|
|
210
|
+
completionOutcome: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
211
|
+
cancelled: "cancelled";
|
|
212
|
+
reactivated: "reactivated";
|
|
213
|
+
completed_no_response: "completed_no_response";
|
|
214
|
+
not_needed: "not_needed";
|
|
215
|
+
}>>>;
|
|
216
|
+
completionNote: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
217
|
+
completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
218
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
219
|
+
createdAt: z.ZodString;
|
|
220
|
+
updatedAt: z.ZodString;
|
|
221
|
+
}, z.core.$strip>>>;
|
|
222
|
+
taskAction: z.ZodEnum<{
|
|
223
|
+
skipped: "skipped";
|
|
224
|
+
created: "created";
|
|
225
|
+
updated: "updated";
|
|
226
|
+
}>;
|
|
227
|
+
}, z.core.$strip>;
|
|
228
|
+
export declare const followUpsListTasksRequestSchema: z.ZodObject<{
|
|
229
|
+
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
230
|
+
customerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
231
|
+
status: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
232
|
+
cancelled: "cancelled";
|
|
233
|
+
pending: "pending";
|
|
234
|
+
completed: "completed";
|
|
235
|
+
}>>>;
|
|
236
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
237
|
+
}, z.core.$strip>;
|
|
238
|
+
export declare const followUpsListTasksResponseSchema: z.ZodObject<{
|
|
239
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
240
|
+
taskId: z.ZodString;
|
|
241
|
+
conversationId: z.ZodString;
|
|
242
|
+
customerId: z.ZodString;
|
|
243
|
+
dealId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
244
|
+
cartId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
245
|
+
ghostedClass: z.ZodEnum<{
|
|
246
|
+
waiting_for_customer: "waiting_for_customer";
|
|
247
|
+
waiting_for_assets: "waiting_for_assets";
|
|
248
|
+
waiting_for_payment: "waiting_for_payment";
|
|
249
|
+
waiting_for_partner_decision: "waiting_for_partner_decision";
|
|
250
|
+
silent_dropoff: "silent_dropoff";
|
|
251
|
+
operator_followup_needed: "operator_followup_needed";
|
|
252
|
+
}>;
|
|
253
|
+
taskKind: z.ZodEnum<{
|
|
254
|
+
ai_reactivation: "ai_reactivation";
|
|
255
|
+
operator_callback: "operator_callback";
|
|
256
|
+
}>;
|
|
257
|
+
status: z.ZodEnum<{
|
|
258
|
+
cancelled: "cancelled";
|
|
259
|
+
pending: "pending";
|
|
260
|
+
completed: "completed";
|
|
261
|
+
}>;
|
|
262
|
+
policyAction: z.ZodEnum<{
|
|
263
|
+
schedule_ai_reactivation: "schedule_ai_reactivation";
|
|
264
|
+
schedule_operator_callback: "schedule_operator_callback";
|
|
265
|
+
no_action: "no_action";
|
|
266
|
+
}>;
|
|
267
|
+
reason: z.ZodString;
|
|
268
|
+
suggestedMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
269
|
+
dueAt: z.ZodString;
|
|
270
|
+
lastEvaluatedAt: z.ZodString;
|
|
271
|
+
createdBy: z.ZodObject<{
|
|
272
|
+
actorType: z.ZodEnum<{
|
|
273
|
+
operator: "operator";
|
|
274
|
+
system: "system";
|
|
275
|
+
scenario: "scenario";
|
|
276
|
+
}>;
|
|
277
|
+
operatorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
278
|
+
displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
279
|
+
}, z.core.$strip>;
|
|
280
|
+
completionOutcome: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
281
|
+
cancelled: "cancelled";
|
|
282
|
+
reactivated: "reactivated";
|
|
283
|
+
completed_no_response: "completed_no_response";
|
|
284
|
+
not_needed: "not_needed";
|
|
285
|
+
}>>>;
|
|
286
|
+
completionNote: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
287
|
+
completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
288
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
289
|
+
createdAt: z.ZodString;
|
|
290
|
+
updatedAt: z.ZodString;
|
|
291
|
+
}, z.core.$strip>>;
|
|
292
|
+
}, z.core.$strip>;
|
|
293
|
+
export declare const followUpsCompleteTaskRequestSchema: z.ZodObject<{
|
|
294
|
+
taskId: z.ZodString;
|
|
295
|
+
outcome: z.ZodEnum<{
|
|
296
|
+
cancelled: "cancelled";
|
|
297
|
+
reactivated: "reactivated";
|
|
298
|
+
completed_no_response: "completed_no_response";
|
|
299
|
+
not_needed: "not_needed";
|
|
300
|
+
}>;
|
|
301
|
+
note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
302
|
+
completedBy: z.ZodOptional<z.ZodObject<{
|
|
303
|
+
actorType: z.ZodEnum<{
|
|
304
|
+
operator: "operator";
|
|
305
|
+
system: "system";
|
|
306
|
+
scenario: "scenario";
|
|
307
|
+
}>;
|
|
308
|
+
operatorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
309
|
+
displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
310
|
+
}, z.core.$strip>>;
|
|
311
|
+
}, z.core.$strip>;
|
|
312
|
+
export declare const followUpsCompleteTaskResponseSchema: z.ZodObject<{
|
|
313
|
+
task: z.ZodObject<{
|
|
314
|
+
taskId: z.ZodString;
|
|
315
|
+
conversationId: z.ZodString;
|
|
316
|
+
customerId: z.ZodString;
|
|
317
|
+
dealId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
318
|
+
cartId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
319
|
+
ghostedClass: z.ZodEnum<{
|
|
320
|
+
waiting_for_customer: "waiting_for_customer";
|
|
321
|
+
waiting_for_assets: "waiting_for_assets";
|
|
322
|
+
waiting_for_payment: "waiting_for_payment";
|
|
323
|
+
waiting_for_partner_decision: "waiting_for_partner_decision";
|
|
324
|
+
silent_dropoff: "silent_dropoff";
|
|
325
|
+
operator_followup_needed: "operator_followup_needed";
|
|
326
|
+
}>;
|
|
327
|
+
taskKind: z.ZodEnum<{
|
|
328
|
+
ai_reactivation: "ai_reactivation";
|
|
329
|
+
operator_callback: "operator_callback";
|
|
330
|
+
}>;
|
|
331
|
+
status: z.ZodEnum<{
|
|
332
|
+
cancelled: "cancelled";
|
|
333
|
+
pending: "pending";
|
|
334
|
+
completed: "completed";
|
|
335
|
+
}>;
|
|
336
|
+
policyAction: z.ZodEnum<{
|
|
337
|
+
schedule_ai_reactivation: "schedule_ai_reactivation";
|
|
338
|
+
schedule_operator_callback: "schedule_operator_callback";
|
|
339
|
+
no_action: "no_action";
|
|
340
|
+
}>;
|
|
341
|
+
reason: z.ZodString;
|
|
342
|
+
suggestedMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
343
|
+
dueAt: z.ZodString;
|
|
344
|
+
lastEvaluatedAt: z.ZodString;
|
|
345
|
+
createdBy: z.ZodObject<{
|
|
346
|
+
actorType: z.ZodEnum<{
|
|
347
|
+
operator: "operator";
|
|
348
|
+
system: "system";
|
|
349
|
+
scenario: "scenario";
|
|
350
|
+
}>;
|
|
351
|
+
operatorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
352
|
+
displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
353
|
+
}, z.core.$strip>;
|
|
354
|
+
completionOutcome: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
355
|
+
cancelled: "cancelled";
|
|
356
|
+
reactivated: "reactivated";
|
|
357
|
+
completed_no_response: "completed_no_response";
|
|
358
|
+
not_needed: "not_needed";
|
|
359
|
+
}>>>;
|
|
360
|
+
completionNote: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
361
|
+
completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
362
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
363
|
+
createdAt: z.ZodString;
|
|
364
|
+
updatedAt: z.ZodString;
|
|
365
|
+
}, z.core.$strip>;
|
|
366
|
+
}, z.core.$strip>;
|
|
367
|
+
export type FollowUpGhostedClass = z.infer<typeof followUpGhostedClassSchema>;
|
|
368
|
+
export type FollowUpTaskKind = z.infer<typeof followUpTaskKindSchema>;
|
|
369
|
+
export type FollowUpTaskStatus = z.infer<typeof followUpTaskStatusSchema>;
|
|
370
|
+
export type FollowUpPolicyAction = z.infer<typeof followUpPolicyActionSchema>;
|
|
371
|
+
export type FollowUpCompletionOutcome = z.infer<typeof followUpCompletionOutcomeSchema>;
|
|
372
|
+
export type FollowUpActorType = z.infer<typeof followUpActorTypeSchema>;
|
|
373
|
+
export type FollowUpActor = z.infer<typeof followUpActorSchema>;
|
|
374
|
+
export type FollowUpEvaluation = z.infer<typeof followUpEvaluationSchema>;
|
|
375
|
+
export type FollowUpTask = z.infer<typeof followUpTaskSchema>;
|
|
376
|
+
export type FollowUpsEvaluateConversationInput = z.infer<typeof followUpsEvaluateConversationRequestSchema>;
|
|
377
|
+
export type FollowUpsEvaluateConversationOutput = z.infer<typeof followUpsEvaluateConversationResponseSchema>;
|
|
378
|
+
export type FollowUpsListTasksInput = z.infer<typeof followUpsListTasksRequestSchema>;
|
|
379
|
+
export type FollowUpsListTasksOutput = z.infer<typeof followUpsListTasksResponseSchema>;
|
|
380
|
+
export type FollowUpsCompleteTaskInput = z.infer<typeof followUpsCompleteTaskRequestSchema>;
|
|
381
|
+
export type FollowUpsCompleteTaskOutput = z.infer<typeof followUpsCompleteTaskResponseSchema>;
|
|
382
|
+
//# sourceMappingURL=followups.d.ts.map
|
|
@@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