samva 0.3.0 → 0.4.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/client/sdk.gen.d.ts +167 -184
- package/dist/client/types.gen.d.ts +1362 -662
- package/dist/{client-BOghX8fr.js → client-BmZK_uCt.js} +1797 -935
- package/dist/client-attribution-BslSOa_8.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 +253 -219
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +6 -6
- 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 +293 -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 +225 -213
- package/dist/effect/email.js +2 -2
- package/dist/effect/generated.d.ts +12174 -11888
- package/dist/effect/index.js +1 -1
- package/dist/effect/internal/client.d.ts +1 -1
- package/dist/effect/internal/operation.d.ts +20 -19
- package/dist/effect/media.d.ts +9 -9
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +64 -61
- package/dist/effect/messages.js +1 -1
- 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/runtime.d.ts +0 -2
- package/dist/effect/scheduled-messages.d.ts +290 -276
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +1371 -1554
- package/dist/effect/templates.js +40 -30
- package/dist/effect/webhooks.d.ts +47 -47
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{normalize-BKFjbR9t.js → normalize-BiIJnycv.js} +2 -3
- package/dist/{operation-C2Q4cFJL.js → operation-B1knNlxk.js} +65 -38
- package/dist/promises/index.d.ts +10 -8
- package/dist/promises/index.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-oiy7mOyu.js → promises-n1opem5V.js} +293 -262
- package/dist/service-map.d.ts +70 -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: {
|
|
@@ -704,7 +704,7 @@ export declare const listMessages: ((input: {
|
|
|
704
704
|
readonly messageId: string;
|
|
705
705
|
readonly recipientId: string | null;
|
|
706
706
|
readonly channel: "email";
|
|
707
|
-
readonly status: "
|
|
707
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
708
708
|
readonly attemptCount: number;
|
|
709
709
|
readonly maxAttempts: number;
|
|
710
710
|
readonly queuedAt: string | null;
|
|
@@ -751,7 +751,7 @@ export declare const listMessages: ((input: {
|
|
|
751
751
|
readonly spfVerdict: string | null;
|
|
752
752
|
readonly dmarcVerdict: string | null;
|
|
753
753
|
readonly isAutoReply: boolean;
|
|
754
|
-
readonly autoReplyReason: "
|
|
754
|
+
readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
|
|
755
755
|
readonly priority: string | null;
|
|
756
756
|
readonly parsingErrors: readonly string[] | null;
|
|
757
757
|
readonly parsingDuration: number | null;
|
|
@@ -767,11 +767,11 @@ export declare const listMessages: ((input: {
|
|
|
767
767
|
readonly total: number;
|
|
768
768
|
readonly totalPages: number;
|
|
769
769
|
};
|
|
770
|
-
}, import("./generated").
|
|
770
|
+
}, 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
771
|
readonly pages: (input: {
|
|
772
772
|
readonly id: string;
|
|
773
|
-
readonly limit?: string | null | undefined;
|
|
774
773
|
readonly page?: string | null | undefined;
|
|
774
|
+
readonly limit?: string | null | undefined;
|
|
775
775
|
}) => import("effect/Stream").Stream<{
|
|
776
776
|
readonly items: readonly {
|
|
777
777
|
readonly id: string;
|
|
@@ -783,12 +783,12 @@ export declare const listMessages: ((input: {
|
|
|
783
783
|
readonly [x: string]: import("./generated").JsonValue;
|
|
784
784
|
} | null;
|
|
785
785
|
readonly channel: "email";
|
|
786
|
-
readonly direction: "
|
|
786
|
+
readonly direction: "inbound" | "outbound";
|
|
787
787
|
readonly content: import("./generated").JsonValue;
|
|
788
788
|
readonly metadata: {
|
|
789
789
|
readonly [x: string]: import("./generated").JsonValue;
|
|
790
790
|
} | null;
|
|
791
|
-
readonly status: "
|
|
791
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
792
792
|
readonly scheduledAt: string | null;
|
|
793
793
|
readonly tags: readonly string[];
|
|
794
794
|
readonly categories: readonly string[];
|
|
@@ -832,9 +832,9 @@ export declare const listMessages: ((input: {
|
|
|
832
832
|
readonly actorId: string | null;
|
|
833
833
|
readonly contactId: string | null;
|
|
834
834
|
readonly identityId: string | null;
|
|
835
|
-
readonly kind: "
|
|
835
|
+
readonly kind: "bcc" | "cc" | "to";
|
|
836
836
|
readonly address: string;
|
|
837
|
-
readonly status: "
|
|
837
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
838
838
|
readonly createdAt: string;
|
|
839
839
|
readonly updatedAt: string;
|
|
840
840
|
readonly contact: {
|
|
@@ -854,7 +854,7 @@ export declare const listMessages: ((input: {
|
|
|
854
854
|
readonly messageId: string;
|
|
855
855
|
readonly recipientId: string | null;
|
|
856
856
|
readonly channel: "email";
|
|
857
|
-
readonly status: "
|
|
857
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
858
858
|
readonly attemptCount: number;
|
|
859
859
|
readonly maxAttempts: number;
|
|
860
860
|
readonly queuedAt: string | null;
|
|
@@ -901,7 +901,7 @@ export declare const listMessages: ((input: {
|
|
|
901
901
|
readonly spfVerdict: string | null;
|
|
902
902
|
readonly dmarcVerdict: string | null;
|
|
903
903
|
readonly isAutoReply: boolean;
|
|
904
|
-
readonly autoReplyReason: "
|
|
904
|
+
readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
|
|
905
905
|
readonly priority: string | null;
|
|
906
906
|
readonly parsingErrors: readonly string[] | null;
|
|
907
907
|
readonly parsingDuration: number | null;
|
|
@@ -917,11 +917,11 @@ export declare const listMessages: ((input: {
|
|
|
917
917
|
readonly total: number;
|
|
918
918
|
readonly totalPages: number;
|
|
919
919
|
};
|
|
920
|
-
}, import("./generated").
|
|
920
|
+
}, 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
921
|
readonly items: (input: {
|
|
922
922
|
readonly id: string;
|
|
923
|
-
readonly limit?: string | null | undefined;
|
|
924
923
|
readonly page?: string | null | undefined;
|
|
924
|
+
readonly limit?: string | null | undefined;
|
|
925
925
|
}) => import("effect/Stream").Stream<{
|
|
926
926
|
readonly id: string;
|
|
927
927
|
readonly organizationId: string;
|
|
@@ -932,12 +932,12 @@ export declare const listMessages: ((input: {
|
|
|
932
932
|
readonly [x: string]: import("./generated").JsonValue;
|
|
933
933
|
} | null;
|
|
934
934
|
readonly channel: "email";
|
|
935
|
-
readonly direction: "
|
|
935
|
+
readonly direction: "inbound" | "outbound";
|
|
936
936
|
readonly content: import("./generated").JsonValue;
|
|
937
937
|
readonly metadata: {
|
|
938
938
|
readonly [x: string]: import("./generated").JsonValue;
|
|
939
939
|
} | null;
|
|
940
|
-
readonly status: "
|
|
940
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
941
941
|
readonly scheduledAt: string | null;
|
|
942
942
|
readonly tags: readonly string[];
|
|
943
943
|
readonly categories: readonly string[];
|
|
@@ -981,9 +981,9 @@ export declare const listMessages: ((input: {
|
|
|
981
981
|
readonly actorId: string | null;
|
|
982
982
|
readonly contactId: string | null;
|
|
983
983
|
readonly identityId: string | null;
|
|
984
|
-
readonly kind: "
|
|
984
|
+
readonly kind: "bcc" | "cc" | "to";
|
|
985
985
|
readonly address: string;
|
|
986
|
-
readonly status: "
|
|
986
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
987
987
|
readonly createdAt: string;
|
|
988
988
|
readonly updatedAt: string;
|
|
989
989
|
readonly contact: {
|
|
@@ -1003,7 +1003,7 @@ export declare const listMessages: ((input: {
|
|
|
1003
1003
|
readonly messageId: string;
|
|
1004
1004
|
readonly recipientId: string | null;
|
|
1005
1005
|
readonly channel: "email";
|
|
1006
|
-
readonly status: "
|
|
1006
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
1007
1007
|
readonly attemptCount: number;
|
|
1008
1008
|
readonly maxAttempts: number;
|
|
1009
1009
|
readonly queuedAt: string | null;
|
|
@@ -1050,7 +1050,7 @@ export declare const listMessages: ((input: {
|
|
|
1050
1050
|
readonly spfVerdict: string | null;
|
|
1051
1051
|
readonly dmarcVerdict: string | null;
|
|
1052
1052
|
readonly isAutoReply: boolean;
|
|
1053
|
-
readonly autoReplyReason: "
|
|
1053
|
+
readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
|
|
1054
1054
|
readonly priority: string | null;
|
|
1055
1055
|
readonly parsingErrors: readonly string[] | null;
|
|
1056
1056
|
readonly parsingDuration: number | null;
|
|
@@ -1059,54 +1059,18 @@ export declare const listMessages: ((input: {
|
|
|
1059
1059
|
readonly createdAt: string;
|
|
1060
1060
|
readonly updatedAt: string;
|
|
1061
1061
|
}[];
|
|
1062
|
-
}, import("./generated").
|
|
1062
|
+
}, 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
1063
|
};
|
|
1064
1064
|
export declare const update: (input: {
|
|
1065
1065
|
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;
|
|
1066
|
+
readonly title?: string | null | undefined;
|
|
1098
1067
|
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
1068
|
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
1069
|
readonly parentConversationId?: string | null | undefined;
|
|
1109
1070
|
readonly primaryChannel?: string | null | undefined;
|
|
1071
|
+
readonly status?: string | null | undefined;
|
|
1072
|
+
readonly statusReason?: string | null | undefined;
|
|
1073
|
+
readonly priority?: number | null | undefined;
|
|
1110
1074
|
readonly urgency?: string | null | undefined;
|
|
1111
1075
|
readonly complexity?: string | null | undefined;
|
|
1112
1076
|
readonly context?: {
|
|
@@ -1114,55 +1078,55 @@ export declare const update: (input: {
|
|
|
1114
1078
|
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
1079
|
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
1116
1080
|
} | null)[] | {
|
|
1117
|
-
readonly [x: string]: string | number | boolean |
|
|
1081
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1118
1082
|
} | null)[] | {
|
|
1119
|
-
readonly [x: string]: string | number | boolean |
|
|
1083
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1120
1084
|
} | null)[] | {
|
|
1121
|
-
readonly [x: string]: string | number | boolean |
|
|
1085
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1122
1086
|
} | null)[] | {
|
|
1123
|
-
readonly [x: string]: string | number | boolean |
|
|
1087
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1124
1088
|
} | null)[] | {
|
|
1125
|
-
readonly [x: string]: string | number | boolean |
|
|
1089
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1126
1090
|
} | null)[] | {
|
|
1127
|
-
readonly [x: string]: string | number | boolean |
|
|
1091
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1128
1092
|
} | null)[] | {
|
|
1129
|
-
readonly [x: string]: string | number | boolean |
|
|
1093
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1130
1094
|
} | null)[] | {
|
|
1131
|
-
readonly [x: string]: string | number | boolean |
|
|
1095
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1132
1096
|
} | null)[] | {
|
|
1133
|
-
readonly [x: string]: string | number | boolean |
|
|
1097
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1134
1098
|
} | null)[] | {
|
|
1135
|
-
readonly [x: string]: string | number | boolean |
|
|
1099
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1136
1100
|
} | null)[] | {
|
|
1137
|
-
readonly [x: string]: string | number | boolean |
|
|
1101
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1138
1102
|
} | null | undefined;
|
|
1139
1103
|
} | null | undefined;
|
|
1140
1104
|
readonly previousConversations?: readonly string[] | null | undefined;
|
|
1141
1105
|
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 |
|
|
1106
|
+
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 | {
|
|
1107
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1144
1108
|
} | null)[] | {
|
|
1145
|
-
readonly [x: string]: string | number | boolean |
|
|
1109
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1146
1110
|
} | null)[] | {
|
|
1147
|
-
readonly [x: string]: string | number | boolean |
|
|
1111
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1148
1112
|
} | null)[] | {
|
|
1149
|
-
readonly [x: string]: string | number | boolean |
|
|
1113
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1150
1114
|
} | null)[] | {
|
|
1151
|
-
readonly [x: string]: string | number | boolean |
|
|
1115
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1152
1116
|
} | null)[] | {
|
|
1153
|
-
readonly [x: string]: string | number | boolean |
|
|
1117
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1154
1118
|
} | null)[] | {
|
|
1155
|
-
readonly [x: string]: string | number | boolean |
|
|
1119
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1156
1120
|
} | null)[] | {
|
|
1157
|
-
readonly [x: string]: string | number | boolean |
|
|
1121
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1158
1122
|
} | null)[] | {
|
|
1159
|
-
readonly [x: string]: string | number | boolean |
|
|
1123
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1160
1124
|
} | null)[] | {
|
|
1161
|
-
readonly [x: string]: string | number | boolean |
|
|
1125
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1162
1126
|
} | null)[] | {
|
|
1163
|
-
readonly [x: string]: string | number | boolean |
|
|
1127
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1164
1128
|
} | null)[] | {
|
|
1165
|
-
readonly [x: string]: string | number | boolean |
|
|
1129
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1166
1130
|
} | null | undefined;
|
|
1167
1131
|
} | null | undefined;
|
|
1168
1132
|
readonly workflowState?: {
|
|
@@ -1170,59 +1134,95 @@ export declare const update: (input: {
|
|
|
1170
1134
|
readonly completedSteps?: readonly string[] | null | undefined;
|
|
1171
1135
|
readonly pendingSteps?: readonly string[] | null | undefined;
|
|
1172
1136
|
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 |
|
|
1137
|
+
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 | {
|
|
1138
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1175
1139
|
} | null)[] | {
|
|
1176
|
-
readonly [x: string]: string | number | boolean |
|
|
1140
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1177
1141
|
} | null)[] | {
|
|
1178
|
-
readonly [x: string]: string | number | boolean |
|
|
1142
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1179
1143
|
} | null)[] | {
|
|
1180
|
-
readonly [x: string]: string | number | boolean |
|
|
1144
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1181
1145
|
} | null)[] | {
|
|
1182
|
-
readonly [x: string]: string | number | boolean |
|
|
1146
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1183
1147
|
} | null)[] | {
|
|
1184
|
-
readonly [x: string]: string | number | boolean |
|
|
1148
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1185
1149
|
} | null)[] | {
|
|
1186
|
-
readonly [x: string]: string | number | boolean |
|
|
1150
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1187
1151
|
} | null)[] | {
|
|
1188
|
-
readonly [x: string]: string | number | boolean |
|
|
1152
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1189
1153
|
} | null)[] | {
|
|
1190
|
-
readonly [x: string]: string | number | boolean |
|
|
1154
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1191
1155
|
} | null)[] | {
|
|
1192
|
-
readonly [x: string]: string | number | boolean |
|
|
1156
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1193
1157
|
} | null)[] | {
|
|
1194
|
-
readonly [x: string]: string | number | boolean |
|
|
1158
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1195
1159
|
} | null)[] | {
|
|
1196
|
-
readonly [x: string]: string | number | boolean |
|
|
1160
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1197
1161
|
} | null | undefined;
|
|
1198
1162
|
} | null | undefined;
|
|
1199
1163
|
} | null | undefined;
|
|
1200
1164
|
} | null | undefined;
|
|
1165
|
+
readonly metadata?: {
|
|
1166
|
+
readonly source?: string | null | undefined;
|
|
1167
|
+
readonly tags?: readonly string[] | null | undefined;
|
|
1168
|
+
readonly customFields?: {
|
|
1169
|
+
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 | {
|
|
1170
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1171
|
+
} | null)[] | {
|
|
1172
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1173
|
+
} | null)[] | {
|
|
1174
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1175
|
+
} | null)[] | {
|
|
1176
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1177
|
+
} | null)[] | {
|
|
1178
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1179
|
+
} | null)[] | {
|
|
1180
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1181
|
+
} | null)[] | {
|
|
1182
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1183
|
+
} | null)[] | {
|
|
1184
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1185
|
+
} | null)[] | {
|
|
1186
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1187
|
+
} | null)[] | {
|
|
1188
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1189
|
+
} | null)[] | {
|
|
1190
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1191
|
+
} | null)[] | {
|
|
1192
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1193
|
+
} | null | undefined;
|
|
1194
|
+
} | null | undefined;
|
|
1195
|
+
} | null | undefined;
|
|
1196
|
+
readonly metrics?: {
|
|
1197
|
+
readonly messageCount: number;
|
|
1198
|
+
readonly messagesFromHuman: number;
|
|
1199
|
+
readonly totalActors: number;
|
|
1200
|
+
readonly contactCount: number;
|
|
1201
|
+
readonly channelSwitches: number;
|
|
1202
|
+
readonly channelDistribution: {
|
|
1203
|
+
readonly [x: string]: number | undefined;
|
|
1204
|
+
};
|
|
1205
|
+
} | null | undefined;
|
|
1201
1206
|
readonly actorTracking?: {
|
|
1202
1207
|
readonly allActorIds: readonly string[];
|
|
1203
1208
|
readonly activeActorIds: readonly string[];
|
|
1204
1209
|
readonly actorHistory: readonly {
|
|
1205
|
-
readonly actorType: string;
|
|
1206
|
-
readonly role: string;
|
|
1207
1210
|
readonly actorId: string;
|
|
1211
|
+
readonly actorType: string;
|
|
1208
1212
|
readonly joinedAt: string;
|
|
1209
|
-
readonly reason?: string | null | undefined;
|
|
1210
1213
|
readonly leftAt?: string | null | undefined;
|
|
1214
|
+
readonly role: string;
|
|
1211
1215
|
readonly addedBy?: string | null | undefined;
|
|
1212
1216
|
readonly removedBy?: string | null | undefined;
|
|
1217
|
+
readonly reason?: string | null | undefined;
|
|
1213
1218
|
}[];
|
|
1214
1219
|
readonly primaryActorIds: readonly string[];
|
|
1215
1220
|
} | 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;
|
|
1221
|
+
readonly channels?: readonly string[] | null | undefined;
|
|
1222
|
+
readonly tags?: readonly string[] | null | undefined;
|
|
1223
|
+
readonly categories?: readonly string[] | null | undefined;
|
|
1224
|
+
readonly isTest?: boolean | null | undefined;
|
|
1225
|
+
readonly isInternal?: boolean | null | undefined;
|
|
1226
1226
|
readonly isPrivate?: boolean | null | undefined;
|
|
1227
1227
|
}) => import("effect/Effect").Effect<{
|
|
1228
1228
|
readonly id: string & import("effect/Brand").Brand<"ConversationId">;
|
|
@@ -1233,30 +1233,30 @@ export declare const update: (input: {
|
|
|
1233
1233
|
readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1234
1234
|
readonly channels: readonly "email"[];
|
|
1235
1235
|
readonly primaryChannel: "email";
|
|
1236
|
-
readonly status: "
|
|
1236
|
+
readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
|
|
1237
1237
|
readonly statusReason: string | null;
|
|
1238
1238
|
readonly priority: number;
|
|
1239
|
-
readonly urgency: "
|
|
1240
|
-
readonly complexity: "
|
|
1239
|
+
readonly urgency: "critical" | "high" | "low" | "medium";
|
|
1240
|
+
readonly complexity: "complex" | "moderate" | "simple";
|
|
1241
1241
|
readonly metadata: {
|
|
1242
|
+
readonly source?: string | null;
|
|
1243
|
+
readonly tags?: readonly string[] | null;
|
|
1242
1244
|
readonly customFields?: {
|
|
1243
1245
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1244
1246
|
} | null;
|
|
1245
|
-
readonly source?: string | null;
|
|
1246
|
-
readonly tags?: readonly string[] | null;
|
|
1247
1247
|
} | null;
|
|
1248
1248
|
readonly actorTracking: {
|
|
1249
1249
|
readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1250
1250
|
readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1251
1251
|
readonly actorHistory: readonly {
|
|
1252
|
-
readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
|
|
1253
|
-
readonly role: "initiator" | "responder" | "observer";
|
|
1254
1252
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
1253
|
+
readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
|
|
1255
1254
|
readonly joinedAt: string;
|
|
1256
|
-
readonly reason?: string | null;
|
|
1257
1255
|
readonly leftAt?: string | null;
|
|
1256
|
+
readonly role: "initiator" | "observer" | "responder";
|
|
1258
1257
|
readonly addedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1259
1258
|
readonly removedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1259
|
+
readonly reason?: string | null;
|
|
1260
1260
|
}[];
|
|
1261
1261
|
readonly primaryActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1262
1262
|
};
|
|
@@ -1298,12 +1298,12 @@ export declare const update: (input: {
|
|
|
1298
1298
|
readonly resolvedAt: string | null;
|
|
1299
1299
|
readonly archivedAt: string | null;
|
|
1300
1300
|
readonly resolvedBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1301
|
-
readonly resolutionType: "
|
|
1301
|
+
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
1302
1302
|
readonly resolutionNotes: string | null;
|
|
1303
1303
|
readonly createdAt: string;
|
|
1304
1304
|
readonly updatedAt: string;
|
|
1305
1305
|
readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1306
|
-
}, import("./generated").
|
|
1306
|
+
}, 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
1307
|
export declare const addContacts: (input: {
|
|
1308
1308
|
readonly id: string;
|
|
1309
1309
|
readonly contactIds: readonly string[];
|
|
@@ -1316,30 +1316,30 @@ export declare const addContacts: (input: {
|
|
|
1316
1316
|
readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1317
1317
|
readonly channels: readonly "email"[];
|
|
1318
1318
|
readonly primaryChannel: "email";
|
|
1319
|
-
readonly status: "
|
|
1319
|
+
readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
|
|
1320
1320
|
readonly statusReason: string | null;
|
|
1321
1321
|
readonly priority: number;
|
|
1322
|
-
readonly urgency: "
|
|
1323
|
-
readonly complexity: "
|
|
1322
|
+
readonly urgency: "critical" | "high" | "low" | "medium";
|
|
1323
|
+
readonly complexity: "complex" | "moderate" | "simple";
|
|
1324
1324
|
readonly metadata: {
|
|
1325
|
+
readonly source?: string | null;
|
|
1326
|
+
readonly tags?: readonly string[] | null;
|
|
1325
1327
|
readonly customFields?: {
|
|
1326
1328
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1327
1329
|
} | null;
|
|
1328
|
-
readonly source?: string | null;
|
|
1329
|
-
readonly tags?: readonly string[] | null;
|
|
1330
1330
|
} | null;
|
|
1331
1331
|
readonly actorTracking: {
|
|
1332
1332
|
readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1333
1333
|
readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1334
1334
|
readonly actorHistory: readonly {
|
|
1335
|
-
readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
|
|
1336
|
-
readonly role: "initiator" | "responder" | "observer";
|
|
1337
1335
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
1336
|
+
readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
|
|
1338
1337
|
readonly joinedAt: string;
|
|
1339
|
-
readonly reason?: string | null;
|
|
1340
1338
|
readonly leftAt?: string | null;
|
|
1339
|
+
readonly role: "initiator" | "observer" | "responder";
|
|
1341
1340
|
readonly addedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1342
1341
|
readonly removedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1342
|
+
readonly reason?: string | null;
|
|
1343
1343
|
}[];
|
|
1344
1344
|
readonly primaryActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1345
1345
|
};
|
|
@@ -1381,12 +1381,12 @@ export declare const addContacts: (input: {
|
|
|
1381
1381
|
readonly resolvedAt: string | null;
|
|
1382
1382
|
readonly archivedAt: string | null;
|
|
1383
1383
|
readonly resolvedBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1384
|
-
readonly resolutionType: "
|
|
1384
|
+
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
1385
1385
|
readonly resolutionNotes: string | null;
|
|
1386
1386
|
readonly createdAt: string;
|
|
1387
1387
|
readonly updatedAt: string;
|
|
1388
1388
|
readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1389
|
-
}, import("./generated").
|
|
1389
|
+
}, 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
1390
|
export declare const removeContacts: (input: {
|
|
1391
1391
|
readonly id: string;
|
|
1392
1392
|
readonly contactIds: readonly string[];
|
|
@@ -1399,30 +1399,30 @@ export declare const removeContacts: (input: {
|
|
|
1399
1399
|
readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1400
1400
|
readonly channels: readonly "email"[];
|
|
1401
1401
|
readonly primaryChannel: "email";
|
|
1402
|
-
readonly status: "
|
|
1402
|
+
readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
|
|
1403
1403
|
readonly statusReason: string | null;
|
|
1404
1404
|
readonly priority: number;
|
|
1405
|
-
readonly urgency: "
|
|
1406
|
-
readonly complexity: "
|
|
1405
|
+
readonly urgency: "critical" | "high" | "low" | "medium";
|
|
1406
|
+
readonly complexity: "complex" | "moderate" | "simple";
|
|
1407
1407
|
readonly metadata: {
|
|
1408
|
+
readonly source?: string | null;
|
|
1409
|
+
readonly tags?: readonly string[] | null;
|
|
1408
1410
|
readonly customFields?: {
|
|
1409
1411
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1410
1412
|
} | null;
|
|
1411
|
-
readonly source?: string | null;
|
|
1412
|
-
readonly tags?: readonly string[] | null;
|
|
1413
1413
|
} | null;
|
|
1414
1414
|
readonly actorTracking: {
|
|
1415
1415
|
readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1416
1416
|
readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1417
1417
|
readonly actorHistory: readonly {
|
|
1418
|
-
readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
|
|
1419
|
-
readonly role: "initiator" | "responder" | "observer";
|
|
1420
1418
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
1419
|
+
readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
|
|
1421
1420
|
readonly joinedAt: string;
|
|
1422
|
-
readonly reason?: string | null;
|
|
1423
1421
|
readonly leftAt?: string | null;
|
|
1422
|
+
readonly role: "initiator" | "observer" | "responder";
|
|
1424
1423
|
readonly addedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1425
1424
|
readonly removedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1425
|
+
readonly reason?: string | null;
|
|
1426
1426
|
}[];
|
|
1427
1427
|
readonly primaryActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1428
1428
|
};
|
|
@@ -1464,9 +1464,9 @@ export declare const removeContacts: (input: {
|
|
|
1464
1464
|
readonly resolvedAt: string | null;
|
|
1465
1465
|
readonly archivedAt: string | null;
|
|
1466
1466
|
readonly resolvedBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1467
|
-
readonly resolutionType: "
|
|
1467
|
+
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
1468
1468
|
readonly resolutionNotes: string | null;
|
|
1469
1469
|
readonly createdAt: string;
|
|
1470
1470
|
readonly updatedAt: string;
|
|
1471
1471
|
readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1472
|
-
}, import("./generated").
|
|
1472
|
+
}, 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>;
|