samva 0.3.0 → 0.5.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/AGENTS.md +1 -1
- package/README.md +5 -1
- package/dist/{categories-CsUa8ojo.js → categories-B9Nw2v_F.js} +5 -1
- package/dist/client/sdk.gen.d.ts +312 -190
- package/dist/client/types.gen.d.ts +2284 -728
- package/dist/{client-BOghX8fr.js → client-B7gEkvEq.js} +2740 -1036
- package/dist/client-attribution-B2yJBXdZ.js +9 -0
- package/dist/client-attribution.d.ts +2 -0
- package/dist/effect/api-keys.d.ts +51 -51
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/campaigns.d.ts +269 -219
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +6 -6
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contacts.d.ts +225 -225
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +308 -293
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/design.d.ts +76 -76
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +923 -213
- package/dist/effect/email.js +27 -3
- package/dist/effect/generated-metadata.d.ts +4 -0
- package/dist/effect/generated.d.ts +14948 -10919
- package/dist/effect/index.js +2 -2
- package/dist/effect/internal/client.d.ts +1 -1
- package/dist/effect/internal/operation.d.ts +31 -20
- package/dist/effect/media.d.ts +12 -12
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +243 -61
- package/dist/effect/messages.js +5 -3
- package/dist/effect/operations.d.ts +17 -17
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +162 -162
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/retry.js +1 -1
- package/dist/effect/runtime.d.ts +0 -2
- package/dist/effect/scheduled-messages.d.ts +375 -277
- package/dist/effect/scheduled-messages.js +5 -3
- package/dist/effect/templates.d.ts +1383 -1554
- package/dist/effect/templates.js +40 -30
- package/dist/effect/webhooks.d.ts +81 -47
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{normalize-BKFjbR9t.js → normalize-BiIJnycv.js} +2 -3
- package/dist/{operation-C2Q4cFJL.js → operation-B4FjN6wq.js} +113 -38
- package/dist/promises/errors.gen.d.ts +21 -2
- package/dist/promises/index.d.ts +11 -8
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-oiy7mOyu.js → promises-CP_nxUus.js} +828 -306
- package/dist/service-map.d.ts +136 -44
- package/package.json +13 -14
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const list: ((input?: {
|
|
2
|
-
readonly contactId?: string | null | undefined;
|
|
3
|
-
readonly channel?: string | null | undefined;
|
|
4
|
-
readonly limit?: string | null | undefined;
|
|
5
2
|
readonly page?: string | null | undefined;
|
|
3
|
+
readonly limit?: string | null | undefined;
|
|
6
4
|
readonly status?: string | null | undefined;
|
|
5
|
+
readonly channel?: string | null | undefined;
|
|
6
|
+
readonly contactId?: string | null | undefined;
|
|
7
7
|
readonly startDate?: string | null | undefined;
|
|
8
8
|
readonly endDate?: string | null | undefined;
|
|
9
9
|
} | undefined) => import("effect/Effect").Effect<{
|
|
@@ -16,30 +16,30 @@ export declare const list: ((input?: {
|
|
|
16
16
|
readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
17
17
|
readonly channels: readonly "email"[];
|
|
18
18
|
readonly primaryChannel: "email";
|
|
19
|
-
readonly status: "
|
|
19
|
+
readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
|
|
20
20
|
readonly statusReason: string | null;
|
|
21
21
|
readonly priority: number;
|
|
22
|
-
readonly urgency: "
|
|
23
|
-
readonly complexity: "
|
|
22
|
+
readonly urgency: "critical" | "high" | "low" | "medium";
|
|
23
|
+
readonly complexity: "complex" | "moderate" | "simple";
|
|
24
24
|
readonly metadata: {
|
|
25
|
+
readonly source?: string | null;
|
|
26
|
+
readonly tags?: readonly string[] | null;
|
|
25
27
|
readonly customFields?: {
|
|
26
28
|
readonly [x: string]: import("./generated").JsonValue;
|
|
27
29
|
} | null;
|
|
28
|
-
readonly source?: string | null;
|
|
29
|
-
readonly tags?: readonly string[] | null;
|
|
30
30
|
} | null;
|
|
31
31
|
readonly actorTracking: {
|
|
32
32
|
readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
33
33
|
readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
34
34
|
readonly actorHistory: readonly {
|
|
35
|
-
readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
|
|
36
|
-
readonly role: "initiator" | "responder" | "observer";
|
|
37
35
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
36
|
+
readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
|
|
38
37
|
readonly joinedAt: string;
|
|
39
|
-
readonly reason?: string | null;
|
|
40
38
|
readonly leftAt?: string | null;
|
|
39
|
+
readonly role: "initiator" | "observer" | "responder";
|
|
41
40
|
readonly addedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
42
41
|
readonly removedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
42
|
+
readonly reason?: string | null;
|
|
43
43
|
}[];
|
|
44
44
|
readonly primaryActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
45
45
|
};
|
|
@@ -81,7 +81,7 @@ export declare const list: ((input?: {
|
|
|
81
81
|
readonly resolvedAt: string | null;
|
|
82
82
|
readonly archivedAt: string | null;
|
|
83
83
|
readonly resolvedBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
84
|
-
readonly resolutionType: "
|
|
84
|
+
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
85
85
|
readonly resolutionNotes: string | null;
|
|
86
86
|
readonly createdAt: string;
|
|
87
87
|
readonly updatedAt: string;
|
|
@@ -93,13 +93,13 @@ export declare const list: ((input?: {
|
|
|
93
93
|
readonly total: number;
|
|
94
94
|
readonly totalPages: number;
|
|
95
95
|
};
|
|
96
|
-
}, import("./generated").
|
|
96
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
|
|
97
97
|
readonly pages: (input?: {
|
|
98
|
-
readonly contactId?: string | null | undefined;
|
|
99
|
-
readonly channel?: string | null | undefined;
|
|
100
|
-
readonly limit?: string | null | undefined;
|
|
101
98
|
readonly page?: string | null | undefined;
|
|
99
|
+
readonly limit?: string | null | undefined;
|
|
102
100
|
readonly status?: string | null | undefined;
|
|
101
|
+
readonly channel?: string | null | undefined;
|
|
102
|
+
readonly contactId?: string | null | undefined;
|
|
103
103
|
readonly startDate?: string | null | undefined;
|
|
104
104
|
readonly endDate?: string | null | undefined;
|
|
105
105
|
} | undefined) => import("effect/Stream").Stream<{
|
|
@@ -112,30 +112,30 @@ export declare const list: ((input?: {
|
|
|
112
112
|
readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
113
113
|
readonly channels: readonly "email"[];
|
|
114
114
|
readonly primaryChannel: "email";
|
|
115
|
-
readonly status: "
|
|
115
|
+
readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
|
|
116
116
|
readonly statusReason: string | null;
|
|
117
117
|
readonly priority: number;
|
|
118
|
-
readonly urgency: "
|
|
119
|
-
readonly complexity: "
|
|
118
|
+
readonly urgency: "critical" | "high" | "low" | "medium";
|
|
119
|
+
readonly complexity: "complex" | "moderate" | "simple";
|
|
120
120
|
readonly metadata: {
|
|
121
|
+
readonly source?: string | null;
|
|
122
|
+
readonly tags?: readonly string[] | null;
|
|
121
123
|
readonly customFields?: {
|
|
122
124
|
readonly [x: string]: import("./generated").JsonValue;
|
|
123
125
|
} | null;
|
|
124
|
-
readonly source?: string | null;
|
|
125
|
-
readonly tags?: readonly string[] | null;
|
|
126
126
|
} | null;
|
|
127
127
|
readonly actorTracking: {
|
|
128
128
|
readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
129
129
|
readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
130
130
|
readonly actorHistory: readonly {
|
|
131
|
-
readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
|
|
132
|
-
readonly role: "initiator" | "responder" | "observer";
|
|
133
131
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
132
|
+
readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
|
|
134
133
|
readonly joinedAt: string;
|
|
135
|
-
readonly reason?: string | null;
|
|
136
134
|
readonly leftAt?: string | null;
|
|
135
|
+
readonly role: "initiator" | "observer" | "responder";
|
|
137
136
|
readonly addedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
138
137
|
readonly removedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
138
|
+
readonly reason?: string | null;
|
|
139
139
|
}[];
|
|
140
140
|
readonly primaryActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
141
141
|
};
|
|
@@ -177,7 +177,7 @@ export declare const list: ((input?: {
|
|
|
177
177
|
readonly resolvedAt: string | null;
|
|
178
178
|
readonly archivedAt: string | null;
|
|
179
179
|
readonly resolvedBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
180
|
-
readonly resolutionType: "
|
|
180
|
+
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
181
181
|
readonly resolutionNotes: string | null;
|
|
182
182
|
readonly createdAt: string;
|
|
183
183
|
readonly updatedAt: string;
|
|
@@ -189,13 +189,13 @@ export declare const list: ((input?: {
|
|
|
189
189
|
readonly total: number;
|
|
190
190
|
readonly totalPages: number;
|
|
191
191
|
};
|
|
192
|
-
}, import("./generated").
|
|
192
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
193
193
|
readonly items: (input?: {
|
|
194
|
-
readonly contactId?: string | null | undefined;
|
|
195
|
-
readonly channel?: string | null | undefined;
|
|
196
|
-
readonly limit?: string | null | undefined;
|
|
197
194
|
readonly page?: string | null | undefined;
|
|
195
|
+
readonly limit?: string | null | undefined;
|
|
198
196
|
readonly status?: string | null | undefined;
|
|
197
|
+
readonly channel?: string | null | undefined;
|
|
198
|
+
readonly contactId?: string | null | undefined;
|
|
199
199
|
readonly startDate?: string | null | undefined;
|
|
200
200
|
readonly endDate?: string | null | undefined;
|
|
201
201
|
} | undefined) => import("effect/Stream").Stream<{
|
|
@@ -207,30 +207,30 @@ export declare const list: ((input?: {
|
|
|
207
207
|
readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
208
208
|
readonly channels: readonly "email"[];
|
|
209
209
|
readonly primaryChannel: "email";
|
|
210
|
-
readonly status: "
|
|
210
|
+
readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
|
|
211
211
|
readonly statusReason: string | null;
|
|
212
212
|
readonly priority: number;
|
|
213
|
-
readonly urgency: "
|
|
214
|
-
readonly complexity: "
|
|
213
|
+
readonly urgency: "critical" | "high" | "low" | "medium";
|
|
214
|
+
readonly complexity: "complex" | "moderate" | "simple";
|
|
215
215
|
readonly metadata: {
|
|
216
|
+
readonly source?: string | null;
|
|
217
|
+
readonly tags?: readonly string[] | null;
|
|
216
218
|
readonly customFields?: {
|
|
217
219
|
readonly [x: string]: import("./generated").JsonValue;
|
|
218
220
|
} | null;
|
|
219
|
-
readonly source?: string | null;
|
|
220
|
-
readonly tags?: readonly string[] | null;
|
|
221
221
|
} | null;
|
|
222
222
|
readonly actorTracking: {
|
|
223
223
|
readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
224
224
|
readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
225
225
|
readonly actorHistory: readonly {
|
|
226
|
-
readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
|
|
227
|
-
readonly role: "initiator" | "responder" | "observer";
|
|
228
226
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
227
|
+
readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
|
|
229
228
|
readonly joinedAt: string;
|
|
230
|
-
readonly reason?: string | null;
|
|
231
229
|
readonly leftAt?: string | null;
|
|
230
|
+
readonly role: "initiator" | "observer" | "responder";
|
|
232
231
|
readonly addedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
233
232
|
readonly removedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
233
|
+
readonly reason?: string | null;
|
|
234
234
|
}[];
|
|
235
235
|
readonly primaryActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
236
236
|
};
|
|
@@ -272,114 +272,135 @@ export declare const list: ((input?: {
|
|
|
272
272
|
readonly resolvedAt: string | null;
|
|
273
273
|
readonly archivedAt: string | null;
|
|
274
274
|
readonly resolvedBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
275
|
-
readonly resolutionType: "
|
|
275
|
+
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
276
276
|
readonly resolutionNotes: string | null;
|
|
277
277
|
readonly createdAt: string;
|
|
278
278
|
readonly updatedAt: string;
|
|
279
279
|
readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
280
|
-
}, import("./generated").
|
|
280
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
281
281
|
};
|
|
282
282
|
export declare const create: (input: {
|
|
283
|
+
readonly title?: string | null | undefined;
|
|
284
|
+
readonly description?: string | null | undefined;
|
|
285
|
+
readonly externalId?: string | null | undefined;
|
|
286
|
+
readonly parentConversationId?: string | null | undefined;
|
|
283
287
|
readonly channels: readonly string[];
|
|
284
288
|
readonly primaryChannel: string;
|
|
289
|
+
readonly status?: string | null | undefined;
|
|
290
|
+
readonly statusReason?: string | null | undefined;
|
|
285
291
|
readonly priority?: number | null | undefined;
|
|
292
|
+
readonly urgency?: string | null | undefined;
|
|
293
|
+
readonly complexity?: string | null | undefined;
|
|
286
294
|
readonly metadata?: {
|
|
295
|
+
readonly source?: string | null | undefined;
|
|
296
|
+
readonly tags?: readonly string[] | null | undefined;
|
|
287
297
|
readonly customFields?: {
|
|
288
298
|
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
289
299
|
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
290
300
|
} | null)[] | {
|
|
291
|
-
readonly [x: string]: string | number | boolean |
|
|
301
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
292
302
|
} | null)[] | {
|
|
293
|
-
readonly [x: string]: string | number | boolean |
|
|
303
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
294
304
|
} | null)[] | {
|
|
295
|
-
readonly [x: string]: string | number | boolean |
|
|
305
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
296
306
|
} | null)[] | {
|
|
297
|
-
readonly [x: string]: string | number | boolean |
|
|
307
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
298
308
|
} | null)[] | {
|
|
299
|
-
readonly [x: string]: string | number | boolean |
|
|
309
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
300
310
|
} | null)[] | {
|
|
301
|
-
readonly [x: string]: string | number | boolean |
|
|
311
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
302
312
|
} | null)[] | {
|
|
303
|
-
readonly [x: string]: string | number | boolean |
|
|
313
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
304
314
|
} | null)[] | {
|
|
305
|
-
readonly [x: string]: string | number | boolean |
|
|
315
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
306
316
|
} | null)[] | {
|
|
307
|
-
readonly [x: string]: string | number | boolean |
|
|
317
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
308
318
|
} | null)[] | {
|
|
309
|
-
readonly [x: string]: string | number | boolean |
|
|
319
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
310
320
|
} | null)[] | {
|
|
311
|
-
readonly [x: string]: string | number | boolean |
|
|
321
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
312
322
|
} | null | undefined;
|
|
313
323
|
} | null | undefined;
|
|
314
|
-
readonly source?: string | null | undefined;
|
|
315
|
-
readonly tags?: readonly string[] | null | undefined;
|
|
316
324
|
} | null | undefined;
|
|
317
|
-
readonly
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
325
|
+
readonly actorTracking?: {
|
|
326
|
+
readonly allActorIds: readonly string[];
|
|
327
|
+
readonly activeActorIds: readonly string[];
|
|
328
|
+
readonly actorHistory: readonly {
|
|
329
|
+
readonly actorId: string;
|
|
330
|
+
readonly actorType: string;
|
|
331
|
+
readonly joinedAt: string;
|
|
332
|
+
readonly leftAt?: string | null | undefined;
|
|
333
|
+
readonly role: string;
|
|
334
|
+
readonly addedBy?: string | null | undefined;
|
|
335
|
+
readonly removedBy?: string | null | undefined;
|
|
336
|
+
readonly reason?: string | null | undefined;
|
|
337
|
+
}[];
|
|
338
|
+
readonly primaryActorIds: readonly string[];
|
|
339
|
+
} | null | undefined;
|
|
340
|
+
readonly metrics?: {
|
|
341
|
+
readonly messageCount: number;
|
|
342
|
+
readonly messagesFromHuman: number;
|
|
343
|
+
readonly totalActors: number;
|
|
344
|
+
readonly contactCount: number;
|
|
345
|
+
readonly channelSwitches: number;
|
|
346
|
+
readonly channelDistribution: {
|
|
347
|
+
readonly [x: string]: number | undefined;
|
|
348
|
+
};
|
|
349
|
+
} | null | undefined;
|
|
329
350
|
readonly context?: {
|
|
330
351
|
readonly customerData?: {
|
|
331
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean |
|
|
332
|
-
readonly [x: string]: string | number | boolean |
|
|
352
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
|
|
353
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
333
354
|
} | null)[] | {
|
|
334
|
-
readonly [x: string]: string | number | boolean |
|
|
355
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
335
356
|
} | null)[] | {
|
|
336
|
-
readonly [x: string]: string | number | boolean |
|
|
357
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
337
358
|
} | null)[] | {
|
|
338
|
-
readonly [x: string]: string | number | boolean |
|
|
359
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
339
360
|
} | null)[] | {
|
|
340
|
-
readonly [x: string]: string | number | boolean |
|
|
361
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
341
362
|
} | null)[] | {
|
|
342
|
-
readonly [x: string]: string | number | boolean |
|
|
363
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
343
364
|
} | null)[] | {
|
|
344
|
-
readonly [x: string]: string | number | boolean |
|
|
365
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
345
366
|
} | null)[] | {
|
|
346
|
-
readonly [x: string]: string | number | boolean |
|
|
367
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
347
368
|
} | null)[] | {
|
|
348
|
-
readonly [x: string]: string | number | boolean |
|
|
369
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
349
370
|
} | null)[] | {
|
|
350
|
-
readonly [x: string]: string | number | boolean |
|
|
371
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
351
372
|
} | null)[] | {
|
|
352
|
-
readonly [x: string]: string | number | boolean |
|
|
373
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
353
374
|
} | null)[] | {
|
|
354
|
-
readonly [x: string]: string | number | boolean |
|
|
375
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
355
376
|
} | null | undefined;
|
|
356
377
|
} | null | undefined;
|
|
357
378
|
readonly previousConversations?: readonly string[] | null | undefined;
|
|
358
379
|
readonly sessionVariables?: {
|
|
359
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean |
|
|
360
|
-
readonly [x: string]: string | number | boolean |
|
|
380
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
|
|
381
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
361
382
|
} | null)[] | {
|
|
362
|
-
readonly [x: string]: string | number | boolean |
|
|
383
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
363
384
|
} | null)[] | {
|
|
364
|
-
readonly [x: string]: string | number | boolean |
|
|
385
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
365
386
|
} | null)[] | {
|
|
366
|
-
readonly [x: string]: string | number | boolean |
|
|
387
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
367
388
|
} | null)[] | {
|
|
368
|
-
readonly [x: string]: string | number | boolean |
|
|
389
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
369
390
|
} | null)[] | {
|
|
370
|
-
readonly [x: string]: string | number | boolean |
|
|
391
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
371
392
|
} | null)[] | {
|
|
372
|
-
readonly [x: string]: string | number | boolean |
|
|
393
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
373
394
|
} | null)[] | {
|
|
374
|
-
readonly [x: string]: string | number | boolean |
|
|
395
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
375
396
|
} | null)[] | {
|
|
376
|
-
readonly [x: string]: string | number | boolean |
|
|
397
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
377
398
|
} | null)[] | {
|
|
378
|
-
readonly [x: string]: string | number | boolean |
|
|
399
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
379
400
|
} | null)[] | {
|
|
380
|
-
readonly [x: string]: string | number | boolean |
|
|
401
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
381
402
|
} | null)[] | {
|
|
382
|
-
readonly [x: string]: string | number | boolean |
|
|
403
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
383
404
|
} | null | undefined;
|
|
384
405
|
} | null | undefined;
|
|
385
406
|
readonly workflowState?: {
|
|
@@ -387,59 +408,38 @@ export declare const create: (input: {
|
|
|
387
408
|
readonly completedSteps?: readonly string[] | null | undefined;
|
|
388
409
|
readonly pendingSteps?: readonly string[] | null | undefined;
|
|
389
410
|
readonly workflowData?: {
|
|
390
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean |
|
|
391
|
-
readonly [x: string]: string | number | boolean |
|
|
411
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
|
|
412
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
392
413
|
} | null)[] | {
|
|
393
|
-
readonly [x: string]: string | number | boolean |
|
|
414
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
394
415
|
} | null)[] | {
|
|
395
|
-
readonly [x: string]: string | number | boolean |
|
|
416
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
396
417
|
} | null)[] | {
|
|
397
|
-
readonly [x: string]: string | number | boolean |
|
|
418
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
398
419
|
} | null)[] | {
|
|
399
|
-
readonly [x: string]: string | number | boolean |
|
|
420
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
400
421
|
} | null)[] | {
|
|
401
|
-
readonly [x: string]: string | number | boolean |
|
|
422
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
402
423
|
} | null)[] | {
|
|
403
|
-
readonly [x: string]: string | number | boolean |
|
|
424
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
404
425
|
} | null)[] | {
|
|
405
|
-
readonly [x: string]: string | number | boolean |
|
|
426
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
406
427
|
} | null)[] | {
|
|
407
|
-
readonly [x: string]: string | number | boolean |
|
|
428
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
408
429
|
} | null)[] | {
|
|
409
|
-
readonly [x: string]: string | number | boolean |
|
|
430
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
410
431
|
} | null)[] | {
|
|
411
|
-
readonly [x: string]: string | number | boolean |
|
|
432
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
412
433
|
} | null)[] | {
|
|
413
|
-
readonly [x: string]: string | number | boolean |
|
|
434
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
414
435
|
} | null | undefined;
|
|
415
436
|
} | null | undefined;
|
|
416
437
|
} | null | undefined;
|
|
417
438
|
} | null | undefined;
|
|
418
|
-
readonly
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
readonly actorType: string;
|
|
423
|
-
readonly role: string;
|
|
424
|
-
readonly actorId: string;
|
|
425
|
-
readonly joinedAt: string;
|
|
426
|
-
readonly reason?: string | null | undefined;
|
|
427
|
-
readonly leftAt?: string | null | undefined;
|
|
428
|
-
readonly addedBy?: string | null | undefined;
|
|
429
|
-
readonly removedBy?: string | null | undefined;
|
|
430
|
-
}[];
|
|
431
|
-
readonly primaryActorIds: readonly string[];
|
|
432
|
-
} | null | undefined;
|
|
433
|
-
readonly metrics?: {
|
|
434
|
-
readonly messageCount: number;
|
|
435
|
-
readonly messagesFromHuman: number;
|
|
436
|
-
readonly totalActors: number;
|
|
437
|
-
readonly contactCount: number;
|
|
438
|
-
readonly channelSwitches: number;
|
|
439
|
-
readonly channelDistribution: {
|
|
440
|
-
readonly [x: string]: number | undefined;
|
|
441
|
-
};
|
|
442
|
-
} | null | undefined;
|
|
439
|
+
readonly tags?: readonly string[] | null | undefined;
|
|
440
|
+
readonly categories?: readonly string[] | null | undefined;
|
|
441
|
+
readonly isTest?: boolean | null | undefined;
|
|
442
|
+
readonly isInternal?: boolean | null | undefined;
|
|
443
443
|
readonly isPrivate?: boolean | null | undefined;
|
|
444
444
|
}) => import("effect/Effect").Effect<{
|
|
445
445
|
readonly id: string & import("effect/Brand").Brand<"ConversationId">;
|
|
@@ -450,30 +450,30 @@ export declare const create: (input: {
|
|
|
450
450
|
readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
451
451
|
readonly channels: readonly "email"[];
|
|
452
452
|
readonly primaryChannel: "email";
|
|
453
|
-
readonly status: "
|
|
453
|
+
readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
|
|
454
454
|
readonly statusReason: string | null;
|
|
455
455
|
readonly priority: number;
|
|
456
|
-
readonly urgency: "
|
|
457
|
-
readonly complexity: "
|
|
456
|
+
readonly urgency: "critical" | "high" | "low" | "medium";
|
|
457
|
+
readonly complexity: "complex" | "moderate" | "simple";
|
|
458
458
|
readonly metadata: {
|
|
459
|
+
readonly source?: string | null;
|
|
460
|
+
readonly tags?: readonly string[] | null;
|
|
459
461
|
readonly customFields?: {
|
|
460
462
|
readonly [x: string]: import("./generated").JsonValue;
|
|
461
463
|
} | null;
|
|
462
|
-
readonly source?: string | null;
|
|
463
|
-
readonly tags?: readonly string[] | null;
|
|
464
464
|
} | null;
|
|
465
465
|
readonly actorTracking: {
|
|
466
466
|
readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
467
467
|
readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
468
468
|
readonly actorHistory: readonly {
|
|
469
|
-
readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
|
|
470
|
-
readonly role: "initiator" | "responder" | "observer";
|
|
471
469
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
470
|
+
readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
|
|
472
471
|
readonly joinedAt: string;
|
|
473
|
-
readonly reason?: string | null;
|
|
474
472
|
readonly leftAt?: string | null;
|
|
473
|
+
readonly role: "initiator" | "observer" | "responder";
|
|
475
474
|
readonly addedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
476
475
|
readonly removedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
476
|
+
readonly reason?: string | null;
|
|
477
477
|
}[];
|
|
478
478
|
readonly primaryActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
479
479
|
};
|
|
@@ -515,12 +515,12 @@ export declare const create: (input: {
|
|
|
515
515
|
readonly resolvedAt: string | null;
|
|
516
516
|
readonly archivedAt: string | null;
|
|
517
517
|
readonly resolvedBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
518
|
-
readonly resolutionType: "
|
|
518
|
+
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
519
519
|
readonly resolutionNotes: string | null;
|
|
520
520
|
readonly createdAt: string;
|
|
521
521
|
readonly updatedAt: string;
|
|
522
522
|
readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
523
|
-
}, import("./generated").
|
|
523
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
524
524
|
export declare const getById: (input: {
|
|
525
525
|
readonly id: string;
|
|
526
526
|
}) => import("effect/Effect").Effect<{
|
|
@@ -532,30 +532,30 @@ export declare const getById: (input: {
|
|
|
532
532
|
readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
533
533
|
readonly channels: readonly "email"[];
|
|
534
534
|
readonly primaryChannel: "email";
|
|
535
|
-
readonly status: "
|
|
535
|
+
readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
|
|
536
536
|
readonly statusReason: string | null;
|
|
537
537
|
readonly priority: number;
|
|
538
|
-
readonly urgency: "
|
|
539
|
-
readonly complexity: "
|
|
538
|
+
readonly urgency: "critical" | "high" | "low" | "medium";
|
|
539
|
+
readonly complexity: "complex" | "moderate" | "simple";
|
|
540
540
|
readonly metadata: {
|
|
541
|
+
readonly source?: string | null;
|
|
542
|
+
readonly tags?: readonly string[] | null;
|
|
541
543
|
readonly customFields?: {
|
|
542
544
|
readonly [x: string]: import("./generated").JsonValue;
|
|
543
545
|
} | null;
|
|
544
|
-
readonly source?: string | null;
|
|
545
|
-
readonly tags?: readonly string[] | null;
|
|
546
546
|
} | null;
|
|
547
547
|
readonly actorTracking: {
|
|
548
548
|
readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
549
549
|
readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
550
550
|
readonly actorHistory: readonly {
|
|
551
|
-
readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
|
|
552
|
-
readonly role: "initiator" | "responder" | "observer";
|
|
553
551
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
552
|
+
readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
|
|
554
553
|
readonly joinedAt: string;
|
|
555
|
-
readonly reason?: string | null;
|
|
556
554
|
readonly leftAt?: string | null;
|
|
555
|
+
readonly role: "initiator" | "observer" | "responder";
|
|
557
556
|
readonly addedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
558
557
|
readonly removedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
558
|
+
readonly reason?: string | null;
|
|
559
559
|
}[];
|
|
560
560
|
readonly primaryActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
561
561
|
};
|
|
@@ -597,14 +597,14 @@ export declare const getById: (input: {
|
|
|
597
597
|
readonly resolvedAt: string | null;
|
|
598
598
|
readonly archivedAt: string | null;
|
|
599
599
|
readonly resolvedBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
600
|
-
readonly resolutionType: "
|
|
600
|
+
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
601
601
|
readonly resolutionNotes: string | null;
|
|
602
602
|
readonly createdAt: string;
|
|
603
603
|
readonly updatedAt: string;
|
|
604
604
|
readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
605
605
|
readonly participants: readonly {
|
|
606
606
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
607
|
-
readonly actorType: "
|
|
607
|
+
readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
|
|
608
608
|
readonly contact: {
|
|
609
609
|
readonly id: string;
|
|
610
610
|
readonly name: string;
|
|
@@ -617,11 +617,11 @@ export declare const getById: (input: {
|
|
|
617
617
|
}[];
|
|
618
618
|
};
|
|
619
619
|
}[];
|
|
620
|
-
}, import("./generated").
|
|
620
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
621
621
|
export declare const listMessages: ((input: {
|
|
622
622
|
readonly id: string;
|
|
623
|
-
readonly limit?: string | null | undefined;
|
|
624
623
|
readonly page?: string | null | undefined;
|
|
624
|
+
readonly limit?: string | null | undefined;
|
|
625
625
|
}) => import("effect/Effect").Effect<{
|
|
626
626
|
readonly items: readonly {
|
|
627
627
|
readonly id: string;
|
|
@@ -633,12 +633,12 @@ export declare const listMessages: ((input: {
|
|
|
633
633
|
readonly [x: string]: import("./generated").JsonValue;
|
|
634
634
|
} | null;
|
|
635
635
|
readonly channel: "email";
|
|
636
|
-
readonly direction: "
|
|
636
|
+
readonly direction: "inbound" | "outbound";
|
|
637
637
|
readonly content: import("./generated").JsonValue;
|
|
638
638
|
readonly metadata: {
|
|
639
639
|
readonly [x: string]: import("./generated").JsonValue;
|
|
640
640
|
} | null;
|
|
641
|
-
readonly status: "
|
|
641
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
642
642
|
readonly scheduledAt: string | null;
|
|
643
643
|
readonly tags: readonly string[];
|
|
644
644
|
readonly categories: readonly string[];
|
|
@@ -682,9 +682,9 @@ export declare const listMessages: ((input: {
|
|
|
682
682
|
readonly actorId: string | null;
|
|
683
683
|
readonly contactId: string | null;
|
|
684
684
|
readonly identityId: string | null;
|
|
685
|
-
readonly kind: "
|
|
685
|
+
readonly kind: "bcc" | "cc" | "to";
|
|
686
686
|
readonly address: string;
|
|
687
|
-
readonly status: "
|
|
687
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
688
688
|
readonly createdAt: string;
|
|
689
689
|
readonly updatedAt: string;
|
|
690
690
|
readonly contact: {
|
|
@@ -700,11 +700,16 @@ export declare const listMessages: ((input: {
|
|
|
700
700
|
} | null;
|
|
701
701
|
}[];
|
|
702
702
|
readonly deliveries: readonly {
|
|
703
|
+
readonly scheduling: {
|
|
704
|
+
readonly dueAt: string;
|
|
705
|
+
readonly expiresAt: string;
|
|
706
|
+
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "provider-unavailable" | "rate" | "retry" | "tenant-health" | null;
|
|
707
|
+
} | null;
|
|
703
708
|
readonly id: string;
|
|
704
709
|
readonly messageId: string;
|
|
705
710
|
readonly recipientId: string | null;
|
|
706
711
|
readonly channel: "email";
|
|
707
|
-
readonly status: "
|
|
712
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
708
713
|
readonly attemptCount: number;
|
|
709
714
|
readonly maxAttempts: number;
|
|
710
715
|
readonly queuedAt: string | null;
|
|
@@ -751,7 +756,7 @@ export declare const listMessages: ((input: {
|
|
|
751
756
|
readonly spfVerdict: string | null;
|
|
752
757
|
readonly dmarcVerdict: string | null;
|
|
753
758
|
readonly isAutoReply: boolean;
|
|
754
|
-
readonly autoReplyReason: "
|
|
759
|
+
readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
|
|
755
760
|
readonly priority: string | null;
|
|
756
761
|
readonly parsingErrors: readonly string[] | null;
|
|
757
762
|
readonly parsingDuration: number | null;
|
|
@@ -767,11 +772,11 @@ export declare const listMessages: ((input: {
|
|
|
767
772
|
readonly total: number;
|
|
768
773
|
readonly totalPages: number;
|
|
769
774
|
};
|
|
770
|
-
}, import("./generated").
|
|
775
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
|
|
771
776
|
readonly pages: (input: {
|
|
772
777
|
readonly id: string;
|
|
773
|
-
readonly limit?: string | null | undefined;
|
|
774
778
|
readonly page?: string | null | undefined;
|
|
779
|
+
readonly limit?: string | null | undefined;
|
|
775
780
|
}) => import("effect/Stream").Stream<{
|
|
776
781
|
readonly items: readonly {
|
|
777
782
|
readonly id: string;
|
|
@@ -783,12 +788,12 @@ export declare const listMessages: ((input: {
|
|
|
783
788
|
readonly [x: string]: import("./generated").JsonValue;
|
|
784
789
|
} | null;
|
|
785
790
|
readonly channel: "email";
|
|
786
|
-
readonly direction: "
|
|
791
|
+
readonly direction: "inbound" | "outbound";
|
|
787
792
|
readonly content: import("./generated").JsonValue;
|
|
788
793
|
readonly metadata: {
|
|
789
794
|
readonly [x: string]: import("./generated").JsonValue;
|
|
790
795
|
} | null;
|
|
791
|
-
readonly status: "
|
|
796
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
792
797
|
readonly scheduledAt: string | null;
|
|
793
798
|
readonly tags: readonly string[];
|
|
794
799
|
readonly categories: readonly string[];
|
|
@@ -832,9 +837,9 @@ export declare const listMessages: ((input: {
|
|
|
832
837
|
readonly actorId: string | null;
|
|
833
838
|
readonly contactId: string | null;
|
|
834
839
|
readonly identityId: string | null;
|
|
835
|
-
readonly kind: "
|
|
840
|
+
readonly kind: "bcc" | "cc" | "to";
|
|
836
841
|
readonly address: string;
|
|
837
|
-
readonly status: "
|
|
842
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
838
843
|
readonly createdAt: string;
|
|
839
844
|
readonly updatedAt: string;
|
|
840
845
|
readonly contact: {
|
|
@@ -850,11 +855,16 @@ export declare const listMessages: ((input: {
|
|
|
850
855
|
} | null;
|
|
851
856
|
}[];
|
|
852
857
|
readonly deliveries: readonly {
|
|
858
|
+
readonly scheduling: {
|
|
859
|
+
readonly dueAt: string;
|
|
860
|
+
readonly expiresAt: string;
|
|
861
|
+
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "provider-unavailable" | "rate" | "retry" | "tenant-health" | null;
|
|
862
|
+
} | null;
|
|
853
863
|
readonly id: string;
|
|
854
864
|
readonly messageId: string;
|
|
855
865
|
readonly recipientId: string | null;
|
|
856
866
|
readonly channel: "email";
|
|
857
|
-
readonly status: "
|
|
867
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
858
868
|
readonly attemptCount: number;
|
|
859
869
|
readonly maxAttempts: number;
|
|
860
870
|
readonly queuedAt: string | null;
|
|
@@ -901,7 +911,7 @@ export declare const listMessages: ((input: {
|
|
|
901
911
|
readonly spfVerdict: string | null;
|
|
902
912
|
readonly dmarcVerdict: string | null;
|
|
903
913
|
readonly isAutoReply: boolean;
|
|
904
|
-
readonly autoReplyReason: "
|
|
914
|
+
readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
|
|
905
915
|
readonly priority: string | null;
|
|
906
916
|
readonly parsingErrors: readonly string[] | null;
|
|
907
917
|
readonly parsingDuration: number | null;
|
|
@@ -917,11 +927,11 @@ export declare const listMessages: ((input: {
|
|
|
917
927
|
readonly total: number;
|
|
918
928
|
readonly totalPages: number;
|
|
919
929
|
};
|
|
920
|
-
}, import("./generated").
|
|
930
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
921
931
|
readonly items: (input: {
|
|
922
932
|
readonly id: string;
|
|
923
|
-
readonly limit?: string | null | undefined;
|
|
924
933
|
readonly page?: string | null | undefined;
|
|
934
|
+
readonly limit?: string | null | undefined;
|
|
925
935
|
}) => import("effect/Stream").Stream<{
|
|
926
936
|
readonly id: string;
|
|
927
937
|
readonly organizationId: string;
|
|
@@ -932,12 +942,12 @@ export declare const listMessages: ((input: {
|
|
|
932
942
|
readonly [x: string]: import("./generated").JsonValue;
|
|
933
943
|
} | null;
|
|
934
944
|
readonly channel: "email";
|
|
935
|
-
readonly direction: "
|
|
945
|
+
readonly direction: "inbound" | "outbound";
|
|
936
946
|
readonly content: import("./generated").JsonValue;
|
|
937
947
|
readonly metadata: {
|
|
938
948
|
readonly [x: string]: import("./generated").JsonValue;
|
|
939
949
|
} | null;
|
|
940
|
-
readonly status: "
|
|
950
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
941
951
|
readonly scheduledAt: string | null;
|
|
942
952
|
readonly tags: readonly string[];
|
|
943
953
|
readonly categories: readonly string[];
|
|
@@ -981,9 +991,9 @@ export declare const listMessages: ((input: {
|
|
|
981
991
|
readonly actorId: string | null;
|
|
982
992
|
readonly contactId: string | null;
|
|
983
993
|
readonly identityId: string | null;
|
|
984
|
-
readonly kind: "
|
|
994
|
+
readonly kind: "bcc" | "cc" | "to";
|
|
985
995
|
readonly address: string;
|
|
986
|
-
readonly status: "
|
|
996
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
987
997
|
readonly createdAt: string;
|
|
988
998
|
readonly updatedAt: string;
|
|
989
999
|
readonly contact: {
|
|
@@ -999,11 +1009,16 @@ export declare const listMessages: ((input: {
|
|
|
999
1009
|
} | null;
|
|
1000
1010
|
}[];
|
|
1001
1011
|
readonly deliveries: readonly {
|
|
1012
|
+
readonly scheduling: {
|
|
1013
|
+
readonly dueAt: string;
|
|
1014
|
+
readonly expiresAt: string;
|
|
1015
|
+
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "provider-unavailable" | "rate" | "retry" | "tenant-health" | null;
|
|
1016
|
+
} | null;
|
|
1002
1017
|
readonly id: string;
|
|
1003
1018
|
readonly messageId: string;
|
|
1004
1019
|
readonly recipientId: string | null;
|
|
1005
1020
|
readonly channel: "email";
|
|
1006
|
-
readonly status: "
|
|
1021
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
1007
1022
|
readonly attemptCount: number;
|
|
1008
1023
|
readonly maxAttempts: number;
|
|
1009
1024
|
readonly queuedAt: string | null;
|
|
@@ -1050,7 +1065,7 @@ export declare const listMessages: ((input: {
|
|
|
1050
1065
|
readonly spfVerdict: string | null;
|
|
1051
1066
|
readonly dmarcVerdict: string | null;
|
|
1052
1067
|
readonly isAutoReply: boolean;
|
|
1053
|
-
readonly autoReplyReason: "
|
|
1068
|
+
readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
|
|
1054
1069
|
readonly priority: string | null;
|
|
1055
1070
|
readonly parsingErrors: readonly string[] | null;
|
|
1056
1071
|
readonly parsingDuration: number | null;
|
|
@@ -1059,54 +1074,18 @@ export declare const listMessages: ((input: {
|
|
|
1059
1074
|
readonly createdAt: string;
|
|
1060
1075
|
readonly updatedAt: string;
|
|
1061
1076
|
}[];
|
|
1062
|
-
}, import("./generated").
|
|
1077
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
1063
1078
|
};
|
|
1064
1079
|
export declare const update: (input: {
|
|
1065
1080
|
readonly id: string;
|
|
1066
|
-
readonly
|
|
1067
|
-
readonly metadata?: {
|
|
1068
|
-
readonly customFields?: {
|
|
1069
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
1070
|
-
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
1071
|
-
} | null)[] | {
|
|
1072
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
1073
|
-
} | null)[] | {
|
|
1074
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
1075
|
-
} | null)[] | {
|
|
1076
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
1077
|
-
} | null)[] | {
|
|
1078
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
1079
|
-
} | null)[] | {
|
|
1080
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
1081
|
-
} | null)[] | {
|
|
1082
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
1083
|
-
} | null)[] | {
|
|
1084
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
1085
|
-
} | null)[] | {
|
|
1086
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
1087
|
-
} | null)[] | {
|
|
1088
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
1089
|
-
} | null)[] | {
|
|
1090
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
1091
|
-
} | null)[] | {
|
|
1092
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
1093
|
-
} | null | undefined;
|
|
1094
|
-
} | null | undefined;
|
|
1095
|
-
readonly source?: string | null | undefined;
|
|
1096
|
-
readonly tags?: readonly string[] | null | undefined;
|
|
1097
|
-
} | null | undefined;
|
|
1081
|
+
readonly title?: string | null | undefined;
|
|
1098
1082
|
readonly description?: string | null | undefined;
|
|
1099
|
-
readonly status?: string | null | undefined;
|
|
1100
|
-
readonly channels?: readonly string[] | null | undefined;
|
|
1101
|
-
readonly tags?: readonly string[] | null | undefined;
|
|
1102
|
-
readonly categories?: readonly string[] | null | undefined;
|
|
1103
1083
|
readonly externalId?: string | null | undefined;
|
|
1104
|
-
readonly isTest?: boolean | null | undefined;
|
|
1105
|
-
readonly isInternal?: boolean | null | undefined;
|
|
1106
|
-
readonly statusReason?: string | null | undefined;
|
|
1107
|
-
readonly title?: string | null | undefined;
|
|
1108
1084
|
readonly parentConversationId?: string | null | undefined;
|
|
1109
1085
|
readonly primaryChannel?: string | null | undefined;
|
|
1086
|
+
readonly status?: string | null | undefined;
|
|
1087
|
+
readonly statusReason?: string | null | undefined;
|
|
1088
|
+
readonly priority?: number | null | undefined;
|
|
1110
1089
|
readonly urgency?: string | null | undefined;
|
|
1111
1090
|
readonly complexity?: string | null | undefined;
|
|
1112
1091
|
readonly context?: {
|
|
@@ -1114,55 +1093,55 @@ export declare const update: (input: {
|
|
|
1114
1093
|
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
1115
1094
|
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
1116
1095
|
} | null)[] | {
|
|
1117
|
-
readonly [x: string]: string | number | boolean |
|
|
1096
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1118
1097
|
} | null)[] | {
|
|
1119
|
-
readonly [x: string]: string | number | boolean |
|
|
1098
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1120
1099
|
} | null)[] | {
|
|
1121
|
-
readonly [x: string]: string | number | boolean |
|
|
1100
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1122
1101
|
} | null)[] | {
|
|
1123
|
-
readonly [x: string]: string | number | boolean |
|
|
1102
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1124
1103
|
} | null)[] | {
|
|
1125
|
-
readonly [x: string]: string | number | boolean |
|
|
1104
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1126
1105
|
} | null)[] | {
|
|
1127
|
-
readonly [x: string]: string | number | boolean |
|
|
1106
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1128
1107
|
} | null)[] | {
|
|
1129
|
-
readonly [x: string]: string | number | boolean |
|
|
1108
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1130
1109
|
} | null)[] | {
|
|
1131
|
-
readonly [x: string]: string | number | boolean |
|
|
1110
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1132
1111
|
} | null)[] | {
|
|
1133
|
-
readonly [x: string]: string | number | boolean |
|
|
1112
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1134
1113
|
} | null)[] | {
|
|
1135
|
-
readonly [x: string]: string | number | boolean |
|
|
1114
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1136
1115
|
} | null)[] | {
|
|
1137
|
-
readonly [x: string]: string | number | boolean |
|
|
1116
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1138
1117
|
} | null | undefined;
|
|
1139
1118
|
} | null | undefined;
|
|
1140
1119
|
readonly previousConversations?: readonly string[] | null | undefined;
|
|
1141
1120
|
readonly sessionVariables?: {
|
|
1142
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean |
|
|
1143
|
-
readonly [x: string]: string | number | boolean |
|
|
1121
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
|
|
1122
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1144
1123
|
} | null)[] | {
|
|
1145
|
-
readonly [x: string]: string | number | boolean |
|
|
1124
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1146
1125
|
} | null)[] | {
|
|
1147
|
-
readonly [x: string]: string | number | boolean |
|
|
1126
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1148
1127
|
} | null)[] | {
|
|
1149
|
-
readonly [x: string]: string | number | boolean |
|
|
1128
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1150
1129
|
} | null)[] | {
|
|
1151
|
-
readonly [x: string]: string | number | boolean |
|
|
1130
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1152
1131
|
} | null)[] | {
|
|
1153
|
-
readonly [x: string]: string | number | boolean |
|
|
1132
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1154
1133
|
} | null)[] | {
|
|
1155
|
-
readonly [x: string]: string | number | boolean |
|
|
1134
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1156
1135
|
} | null)[] | {
|
|
1157
|
-
readonly [x: string]: string | number | boolean |
|
|
1136
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1158
1137
|
} | null)[] | {
|
|
1159
|
-
readonly [x: string]: string | number | boolean |
|
|
1138
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1160
1139
|
} | null)[] | {
|
|
1161
|
-
readonly [x: string]: string | number | boolean |
|
|
1140
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1162
1141
|
} | null)[] | {
|
|
1163
|
-
readonly [x: string]: string | number | boolean |
|
|
1142
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1164
1143
|
} | null)[] | {
|
|
1165
|
-
readonly [x: string]: string | number | boolean |
|
|
1144
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1166
1145
|
} | null | undefined;
|
|
1167
1146
|
} | null | undefined;
|
|
1168
1147
|
readonly workflowState?: {
|
|
@@ -1170,59 +1149,95 @@ export declare const update: (input: {
|
|
|
1170
1149
|
readonly completedSteps?: readonly string[] | null | undefined;
|
|
1171
1150
|
readonly pendingSteps?: readonly string[] | null | undefined;
|
|
1172
1151
|
readonly workflowData?: {
|
|
1173
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean |
|
|
1174
|
-
readonly [x: string]: string | number | boolean |
|
|
1152
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
|
|
1153
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1175
1154
|
} | null)[] | {
|
|
1176
|
-
readonly [x: string]: string | number | boolean |
|
|
1155
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1177
1156
|
} | null)[] | {
|
|
1178
|
-
readonly [x: string]: string | number | boolean |
|
|
1157
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1179
1158
|
} | null)[] | {
|
|
1180
|
-
readonly [x: string]: string | number | boolean |
|
|
1159
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1181
1160
|
} | null)[] | {
|
|
1182
|
-
readonly [x: string]: string | number | boolean |
|
|
1161
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1183
1162
|
} | null)[] | {
|
|
1184
|
-
readonly [x: string]: string | number | boolean |
|
|
1163
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1185
1164
|
} | null)[] | {
|
|
1186
|
-
readonly [x: string]: string | number | boolean |
|
|
1165
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1187
1166
|
} | null)[] | {
|
|
1188
|
-
readonly [x: string]: string | number | boolean |
|
|
1167
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1189
1168
|
} | null)[] | {
|
|
1190
|
-
readonly [x: string]: string | number | boolean |
|
|
1169
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1191
1170
|
} | null)[] | {
|
|
1192
|
-
readonly [x: string]: string | number | boolean |
|
|
1171
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1193
1172
|
} | null)[] | {
|
|
1194
|
-
readonly [x: string]: string | number | boolean |
|
|
1173
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1195
1174
|
} | null)[] | {
|
|
1196
|
-
readonly [x: string]: string | number | boolean |
|
|
1175
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1197
1176
|
} | null | undefined;
|
|
1198
1177
|
} | null | undefined;
|
|
1199
1178
|
} | null | undefined;
|
|
1200
1179
|
} | null | undefined;
|
|
1180
|
+
readonly metadata?: {
|
|
1181
|
+
readonly source?: string | null | undefined;
|
|
1182
|
+
readonly tags?: readonly string[] | null | undefined;
|
|
1183
|
+
readonly customFields?: {
|
|
1184
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
|
|
1185
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1186
|
+
} | null)[] | {
|
|
1187
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1188
|
+
} | null)[] | {
|
|
1189
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1190
|
+
} | null)[] | {
|
|
1191
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1192
|
+
} | null)[] | {
|
|
1193
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1194
|
+
} | null)[] | {
|
|
1195
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1196
|
+
} | null)[] | {
|
|
1197
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1198
|
+
} | null)[] | {
|
|
1199
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1200
|
+
} | null)[] | {
|
|
1201
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1202
|
+
} | null)[] | {
|
|
1203
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1204
|
+
} | null)[] | {
|
|
1205
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1206
|
+
} | null)[] | {
|
|
1207
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1208
|
+
} | null | undefined;
|
|
1209
|
+
} | null | undefined;
|
|
1210
|
+
} | null | undefined;
|
|
1211
|
+
readonly metrics?: {
|
|
1212
|
+
readonly messageCount: number;
|
|
1213
|
+
readonly messagesFromHuman: number;
|
|
1214
|
+
readonly totalActors: number;
|
|
1215
|
+
readonly contactCount: number;
|
|
1216
|
+
readonly channelSwitches: number;
|
|
1217
|
+
readonly channelDistribution: {
|
|
1218
|
+
readonly [x: string]: number | undefined;
|
|
1219
|
+
};
|
|
1220
|
+
} | null | undefined;
|
|
1201
1221
|
readonly actorTracking?: {
|
|
1202
1222
|
readonly allActorIds: readonly string[];
|
|
1203
1223
|
readonly activeActorIds: readonly string[];
|
|
1204
1224
|
readonly actorHistory: readonly {
|
|
1205
|
-
readonly actorType: string;
|
|
1206
|
-
readonly role: string;
|
|
1207
1225
|
readonly actorId: string;
|
|
1226
|
+
readonly actorType: string;
|
|
1208
1227
|
readonly joinedAt: string;
|
|
1209
|
-
readonly reason?: string | null | undefined;
|
|
1210
1228
|
readonly leftAt?: string | null | undefined;
|
|
1229
|
+
readonly role: string;
|
|
1211
1230
|
readonly addedBy?: string | null | undefined;
|
|
1212
1231
|
readonly removedBy?: string | null | undefined;
|
|
1232
|
+
readonly reason?: string | null | undefined;
|
|
1213
1233
|
}[];
|
|
1214
1234
|
readonly primaryActorIds: readonly string[];
|
|
1215
1235
|
} | null | undefined;
|
|
1216
|
-
readonly
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
readonly channelSwitches: number;
|
|
1222
|
-
readonly channelDistribution: {
|
|
1223
|
-
readonly [x: string]: number | undefined;
|
|
1224
|
-
};
|
|
1225
|
-
} | null | undefined;
|
|
1236
|
+
readonly channels?: readonly string[] | null | undefined;
|
|
1237
|
+
readonly tags?: readonly string[] | null | undefined;
|
|
1238
|
+
readonly categories?: readonly string[] | null | undefined;
|
|
1239
|
+
readonly isTest?: boolean | null | undefined;
|
|
1240
|
+
readonly isInternal?: boolean | null | undefined;
|
|
1226
1241
|
readonly isPrivate?: boolean | null | undefined;
|
|
1227
1242
|
}) => import("effect/Effect").Effect<{
|
|
1228
1243
|
readonly id: string & import("effect/Brand").Brand<"ConversationId">;
|
|
@@ -1233,30 +1248,30 @@ export declare const update: (input: {
|
|
|
1233
1248
|
readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1234
1249
|
readonly channels: readonly "email"[];
|
|
1235
1250
|
readonly primaryChannel: "email";
|
|
1236
|
-
readonly status: "
|
|
1251
|
+
readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
|
|
1237
1252
|
readonly statusReason: string | null;
|
|
1238
1253
|
readonly priority: number;
|
|
1239
|
-
readonly urgency: "
|
|
1240
|
-
readonly complexity: "
|
|
1254
|
+
readonly urgency: "critical" | "high" | "low" | "medium";
|
|
1255
|
+
readonly complexity: "complex" | "moderate" | "simple";
|
|
1241
1256
|
readonly metadata: {
|
|
1257
|
+
readonly source?: string | null;
|
|
1258
|
+
readonly tags?: readonly string[] | null;
|
|
1242
1259
|
readonly customFields?: {
|
|
1243
1260
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1244
1261
|
} | null;
|
|
1245
|
-
readonly source?: string | null;
|
|
1246
|
-
readonly tags?: readonly string[] | null;
|
|
1247
1262
|
} | null;
|
|
1248
1263
|
readonly actorTracking: {
|
|
1249
1264
|
readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1250
1265
|
readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1251
1266
|
readonly actorHistory: readonly {
|
|
1252
|
-
readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
|
|
1253
|
-
readonly role: "initiator" | "responder" | "observer";
|
|
1254
1267
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
1268
|
+
readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
|
|
1255
1269
|
readonly joinedAt: string;
|
|
1256
|
-
readonly reason?: string | null;
|
|
1257
1270
|
readonly leftAt?: string | null;
|
|
1271
|
+
readonly role: "initiator" | "observer" | "responder";
|
|
1258
1272
|
readonly addedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1259
1273
|
readonly removedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1274
|
+
readonly reason?: string | null;
|
|
1260
1275
|
}[];
|
|
1261
1276
|
readonly primaryActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1262
1277
|
};
|
|
@@ -1298,12 +1313,12 @@ export declare const update: (input: {
|
|
|
1298
1313
|
readonly resolvedAt: string | null;
|
|
1299
1314
|
readonly archivedAt: string | null;
|
|
1300
1315
|
readonly resolvedBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1301
|
-
readonly resolutionType: "
|
|
1316
|
+
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
1302
1317
|
readonly resolutionNotes: string | null;
|
|
1303
1318
|
readonly createdAt: string;
|
|
1304
1319
|
readonly updatedAt: string;
|
|
1305
1320
|
readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1306
|
-
}, import("./generated").
|
|
1321
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1307
1322
|
export declare const addContacts: (input: {
|
|
1308
1323
|
readonly id: string;
|
|
1309
1324
|
readonly contactIds: readonly string[];
|
|
@@ -1316,30 +1331,30 @@ export declare const addContacts: (input: {
|
|
|
1316
1331
|
readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1317
1332
|
readonly channels: readonly "email"[];
|
|
1318
1333
|
readonly primaryChannel: "email";
|
|
1319
|
-
readonly status: "
|
|
1334
|
+
readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
|
|
1320
1335
|
readonly statusReason: string | null;
|
|
1321
1336
|
readonly priority: number;
|
|
1322
|
-
readonly urgency: "
|
|
1323
|
-
readonly complexity: "
|
|
1337
|
+
readonly urgency: "critical" | "high" | "low" | "medium";
|
|
1338
|
+
readonly complexity: "complex" | "moderate" | "simple";
|
|
1324
1339
|
readonly metadata: {
|
|
1340
|
+
readonly source?: string | null;
|
|
1341
|
+
readonly tags?: readonly string[] | null;
|
|
1325
1342
|
readonly customFields?: {
|
|
1326
1343
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1327
1344
|
} | null;
|
|
1328
|
-
readonly source?: string | null;
|
|
1329
|
-
readonly tags?: readonly string[] | null;
|
|
1330
1345
|
} | null;
|
|
1331
1346
|
readonly actorTracking: {
|
|
1332
1347
|
readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1333
1348
|
readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1334
1349
|
readonly actorHistory: readonly {
|
|
1335
|
-
readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
|
|
1336
|
-
readonly role: "initiator" | "responder" | "observer";
|
|
1337
1350
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
1351
|
+
readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
|
|
1338
1352
|
readonly joinedAt: string;
|
|
1339
|
-
readonly reason?: string | null;
|
|
1340
1353
|
readonly leftAt?: string | null;
|
|
1354
|
+
readonly role: "initiator" | "observer" | "responder";
|
|
1341
1355
|
readonly addedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1342
1356
|
readonly removedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1357
|
+
readonly reason?: string | null;
|
|
1343
1358
|
}[];
|
|
1344
1359
|
readonly primaryActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1345
1360
|
};
|
|
@@ -1381,12 +1396,12 @@ export declare const addContacts: (input: {
|
|
|
1381
1396
|
readonly resolvedAt: string | null;
|
|
1382
1397
|
readonly archivedAt: string | null;
|
|
1383
1398
|
readonly resolvedBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1384
|
-
readonly resolutionType: "
|
|
1399
|
+
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
1385
1400
|
readonly resolutionNotes: string | null;
|
|
1386
1401
|
readonly createdAt: string;
|
|
1387
1402
|
readonly updatedAt: string;
|
|
1388
1403
|
readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1389
|
-
}, import("./generated").
|
|
1404
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1390
1405
|
export declare const removeContacts: (input: {
|
|
1391
1406
|
readonly id: string;
|
|
1392
1407
|
readonly contactIds: readonly string[];
|
|
@@ -1399,30 +1414,30 @@ export declare const removeContacts: (input: {
|
|
|
1399
1414
|
readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1400
1415
|
readonly channels: readonly "email"[];
|
|
1401
1416
|
readonly primaryChannel: "email";
|
|
1402
|
-
readonly status: "
|
|
1417
|
+
readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
|
|
1403
1418
|
readonly statusReason: string | null;
|
|
1404
1419
|
readonly priority: number;
|
|
1405
|
-
readonly urgency: "
|
|
1406
|
-
readonly complexity: "
|
|
1420
|
+
readonly urgency: "critical" | "high" | "low" | "medium";
|
|
1421
|
+
readonly complexity: "complex" | "moderate" | "simple";
|
|
1407
1422
|
readonly metadata: {
|
|
1423
|
+
readonly source?: string | null;
|
|
1424
|
+
readonly tags?: readonly string[] | null;
|
|
1408
1425
|
readonly customFields?: {
|
|
1409
1426
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1410
1427
|
} | null;
|
|
1411
|
-
readonly source?: string | null;
|
|
1412
|
-
readonly tags?: readonly string[] | null;
|
|
1413
1428
|
} | null;
|
|
1414
1429
|
readonly actorTracking: {
|
|
1415
1430
|
readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1416
1431
|
readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1417
1432
|
readonly actorHistory: readonly {
|
|
1418
|
-
readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
|
|
1419
|
-
readonly role: "initiator" | "responder" | "observer";
|
|
1420
1433
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
1434
|
+
readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
|
|
1421
1435
|
readonly joinedAt: string;
|
|
1422
|
-
readonly reason?: string | null;
|
|
1423
1436
|
readonly leftAt?: string | null;
|
|
1437
|
+
readonly role: "initiator" | "observer" | "responder";
|
|
1424
1438
|
readonly addedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1425
1439
|
readonly removedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1440
|
+
readonly reason?: string | null;
|
|
1426
1441
|
}[];
|
|
1427
1442
|
readonly primaryActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1428
1443
|
};
|
|
@@ -1464,9 +1479,9 @@ export declare const removeContacts: (input: {
|
|
|
1464
1479
|
readonly resolvedAt: string | null;
|
|
1465
1480
|
readonly archivedAt: string | null;
|
|
1466
1481
|
readonly resolvedBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1467
|
-
readonly resolutionType: "
|
|
1482
|
+
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
1468
1483
|
readonly resolutionNotes: string | null;
|
|
1469
1484
|
readonly createdAt: string;
|
|
1470
1485
|
readonly updatedAt: string;
|
|
1471
1486
|
readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1472
|
-
}, import("./generated").
|
|
1487
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|