samva 0.2.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 +14 -3
- package/dist/client/sdk.gen.d.ts +321 -129
- package/dist/client/types.gen.d.ts +1818 -777
- package/dist/{client-BqkU-sFv.js → client-BmZK_uCt.js} +2699 -1839
- 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 +320 -1005
- 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 +292 -314
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +305 -437
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/design.d.ts +74 -74
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +233 -265
- package/dist/effect/email.js +2 -2
- package/dist/effect/generated.d.ts +13410 -14526
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -2
- package/dist/effect/internal/client.d.ts +1 -1
- package/dist/effect/internal/operation.d.ts +32 -129
- package/dist/effect/media.d.ts +80 -0
- package/dist/effect/media.js +19 -0
- package/dist/effect/messages.d.ts +90 -307
- 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 -180
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/runtime.d.ts +0 -2
- package/dist/effect/scheduled-messages.d.ts +242 -639
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +1376 -2033
- package/dist/effect/templates.js +40 -30
- package/dist/effect/webhooks.d.ts +53 -54
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{normalize-LkWl4HUF.js → normalize-BiIJnycv.js} +6 -15
- package/dist/normalize.d.ts +3 -33
- package/dist/{operation-Ccqh_yxb.js → operation-B1knNlxk.js} +83 -38
- package/dist/promises/index.d.ts +13 -21
- package/dist/promises/index.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-Dgv8UmCC.js → promises-n1opem5V.js} +572 -184
- package/dist/service-map.d.ts +96 -44
- package/package.json +23 -19
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const list: ((input?: {
|
|
2
|
-
readonly
|
|
3
|
-
readonly channel?: string | null | undefined;
|
|
2
|
+
readonly page?: string | null | undefined;
|
|
4
3
|
readonly limit?: string | null | undefined;
|
|
5
4
|
readonly status?: string | null | undefined;
|
|
6
|
-
readonly
|
|
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<{
|
|
@@ -14,16 +14,16 @@ export declare const list: ((input?: {
|
|
|
14
14
|
readonly description: string | null;
|
|
15
15
|
readonly externalId: string | null;
|
|
16
16
|
readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
17
|
-
readonly channels: readonly
|
|
18
|
-
readonly primaryChannel: "
|
|
19
|
-
readonly status: "
|
|
17
|
+
readonly channels: readonly "email"[];
|
|
18
|
+
readonly primaryChannel: "email";
|
|
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 tags?: readonly string[] | null;
|
|
26
25
|
readonly source?: string | null;
|
|
26
|
+
readonly tags?: readonly string[] | null;
|
|
27
27
|
readonly customFields?: {
|
|
28
28
|
readonly [x: string]: import("./generated").JsonValue;
|
|
29
29
|
} | null;
|
|
@@ -32,14 +32,14 @@ export declare const list: ((input?: {
|
|
|
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: "system" | "user" | "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("
|
|
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
|
|
99
|
-
readonly channel?: string | null | undefined;
|
|
98
|
+
readonly page?: string | null | undefined;
|
|
100
99
|
readonly limit?: string | null | undefined;
|
|
101
100
|
readonly status?: string | null | undefined;
|
|
102
|
-
readonly
|
|
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<{
|
|
@@ -110,16 +110,16 @@ export declare const list: ((input?: {
|
|
|
110
110
|
readonly description: string | null;
|
|
111
111
|
readonly externalId: string | null;
|
|
112
112
|
readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
113
|
-
readonly channels: readonly
|
|
114
|
-
readonly primaryChannel: "
|
|
115
|
-
readonly status: "
|
|
113
|
+
readonly channels: readonly "email"[];
|
|
114
|
+
readonly primaryChannel: "email";
|
|
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 tags?: readonly string[] | null;
|
|
122
121
|
readonly source?: string | null;
|
|
122
|
+
readonly tags?: readonly string[] | null;
|
|
123
123
|
readonly customFields?: {
|
|
124
124
|
readonly [x: string]: import("./generated").JsonValue;
|
|
125
125
|
} | null;
|
|
@@ -128,14 +128,14 @@ export declare const list: ((input?: {
|
|
|
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: "system" | "user" | "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("
|
|
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
|
|
195
|
-
readonly channel?: string | null | undefined;
|
|
194
|
+
readonly page?: string | null | undefined;
|
|
196
195
|
readonly limit?: string | null | undefined;
|
|
197
196
|
readonly status?: string | null | undefined;
|
|
198
|
-
readonly
|
|
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<{
|
|
@@ -205,16 +205,16 @@ export declare const list: ((input?: {
|
|
|
205
205
|
readonly description: string | null;
|
|
206
206
|
readonly externalId: string | null;
|
|
207
207
|
readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
208
|
-
readonly channels: readonly
|
|
209
|
-
readonly primaryChannel: "
|
|
210
|
-
readonly status: "
|
|
208
|
+
readonly channels: readonly "email"[];
|
|
209
|
+
readonly primaryChannel: "email";
|
|
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 tags?: readonly string[] | null;
|
|
217
216
|
readonly source?: string | null;
|
|
217
|
+
readonly tags?: readonly string[] | null;
|
|
218
218
|
readonly customFields?: {
|
|
219
219
|
readonly [x: string]: import("./generated").JsonValue;
|
|
220
220
|
} | null;
|
|
@@ -223,14 +223,14 @@ export declare const list: ((input?: {
|
|
|
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: "system" | "user" | "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,72 +272,68 @@ 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("
|
|
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?: {
|
|
287
|
-
readonly tags?: readonly string[] | null | undefined;
|
|
288
295
|
readonly source?: string | null | undefined;
|
|
296
|
+
readonly tags?: readonly string[] | null | undefined;
|
|
289
297
|
readonly customFields?: {
|
|
290
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 | {
|
|
291
299
|
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
292
300
|
} | null)[] | {
|
|
293
|
-
readonly [x: string]: string | number | boolean |
|
|
301
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
294
302
|
} | null)[] | {
|
|
295
|
-
readonly [x: string]: string | number | boolean |
|
|
303
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
296
304
|
} | null)[] | {
|
|
297
|
-
readonly [x: string]: string | number | boolean |
|
|
305
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
298
306
|
} | null)[] | {
|
|
299
|
-
readonly [x: string]: string | number | boolean |
|
|
307
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
300
308
|
} | null)[] | {
|
|
301
|
-
readonly [x: string]: string | number | boolean |
|
|
309
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
302
310
|
} | null)[] | {
|
|
303
|
-
readonly [x: string]: string | number | boolean |
|
|
311
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
304
312
|
} | null)[] | {
|
|
305
|
-
readonly [x: string]: string | number | boolean |
|
|
313
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
306
314
|
} | null)[] | {
|
|
307
|
-
readonly [x: string]: string | number | boolean |
|
|
315
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
308
316
|
} | null)[] | {
|
|
309
|
-
readonly [x: string]: string | number | boolean |
|
|
317
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
310
318
|
} | null)[] | {
|
|
311
|
-
readonly [x: string]: string | number | boolean |
|
|
319
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
312
320
|
} | null)[] | {
|
|
313
|
-
readonly [x: string]: string | number | boolean |
|
|
321
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
314
322
|
} | null | undefined;
|
|
315
323
|
} | null | undefined;
|
|
316
324
|
} | null | undefined;
|
|
317
|
-
readonly description?: string | null | undefined;
|
|
318
|
-
readonly status?: string | null | undefined;
|
|
319
|
-
readonly tags?: readonly string[] | null | undefined;
|
|
320
|
-
readonly categories?: readonly string[] | null | undefined;
|
|
321
|
-
readonly externalId?: string | null | undefined;
|
|
322
|
-
readonly isTest?: boolean | null | undefined;
|
|
323
|
-
readonly isInternal?: boolean | null | undefined;
|
|
324
|
-
readonly title?: string | null | undefined;
|
|
325
|
-
readonly parentConversationId?: string | null | undefined;
|
|
326
|
-
readonly statusReason?: string | null | undefined;
|
|
327
|
-
readonly urgency?: string | null | undefined;
|
|
328
|
-
readonly complexity?: string | null | undefined;
|
|
329
325
|
readonly actorTracking?: {
|
|
330
326
|
readonly allActorIds: readonly string[];
|
|
331
327
|
readonly activeActorIds: readonly string[];
|
|
332
328
|
readonly actorHistory: readonly {
|
|
333
|
-
readonly actorType: string;
|
|
334
|
-
readonly role: string;
|
|
335
329
|
readonly actorId: string;
|
|
330
|
+
readonly actorType: string;
|
|
336
331
|
readonly joinedAt: string;
|
|
337
|
-
readonly reason?: string | null | undefined;
|
|
338
332
|
readonly leftAt?: string | null | undefined;
|
|
333
|
+
readonly role: string;
|
|
339
334
|
readonly addedBy?: string | null | undefined;
|
|
340
335
|
readonly removedBy?: string | null | undefined;
|
|
336
|
+
readonly reason?: string | null | undefined;
|
|
341
337
|
}[];
|
|
342
338
|
readonly primaryActorIds: readonly string[];
|
|
343
339
|
} | null | undefined;
|
|
@@ -353,58 +349,58 @@ export declare const create: (input: {
|
|
|
353
349
|
} | null | undefined;
|
|
354
350
|
readonly context?: {
|
|
355
351
|
readonly customerData?: {
|
|
356
|
-
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 |
|
|
357
|
-
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;
|
|
358
354
|
} | null)[] | {
|
|
359
|
-
readonly [x: string]: string | number | boolean |
|
|
355
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
360
356
|
} | null)[] | {
|
|
361
|
-
readonly [x: string]: string | number | boolean |
|
|
357
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
362
358
|
} | null)[] | {
|
|
363
|
-
readonly [x: string]: string | number | boolean |
|
|
359
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
364
360
|
} | null)[] | {
|
|
365
|
-
readonly [x: string]: string | number | boolean |
|
|
361
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
366
362
|
} | null)[] | {
|
|
367
|
-
readonly [x: string]: string | number | boolean |
|
|
363
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
368
364
|
} | null)[] | {
|
|
369
|
-
readonly [x: string]: string | number | boolean |
|
|
365
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
370
366
|
} | null)[] | {
|
|
371
|
-
readonly [x: string]: string | number | boolean |
|
|
367
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
372
368
|
} | null)[] | {
|
|
373
|
-
readonly [x: string]: string | number | boolean |
|
|
369
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
374
370
|
} | null)[] | {
|
|
375
|
-
readonly [x: string]: string | number | boolean |
|
|
371
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
376
372
|
} | null)[] | {
|
|
377
|
-
readonly [x: string]: string | number | boolean |
|
|
373
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
378
374
|
} | null)[] | {
|
|
379
|
-
readonly [x: string]: string | number | boolean |
|
|
375
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
380
376
|
} | null | undefined;
|
|
381
377
|
} | null | undefined;
|
|
382
378
|
readonly previousConversations?: readonly string[] | null | undefined;
|
|
383
379
|
readonly sessionVariables?: {
|
|
384
|
-
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 |
|
|
385
|
-
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;
|
|
386
382
|
} | null)[] | {
|
|
387
|
-
readonly [x: string]: string | number | boolean |
|
|
383
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
388
384
|
} | null)[] | {
|
|
389
|
-
readonly [x: string]: string | number | boolean |
|
|
385
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
390
386
|
} | null)[] | {
|
|
391
|
-
readonly [x: string]: string | number | boolean |
|
|
387
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
392
388
|
} | null)[] | {
|
|
393
|
-
readonly [x: string]: string | number | boolean |
|
|
389
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
394
390
|
} | null)[] | {
|
|
395
|
-
readonly [x: string]: string | number | boolean |
|
|
391
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
396
392
|
} | null)[] | {
|
|
397
|
-
readonly [x: string]: string | number | boolean |
|
|
393
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
398
394
|
} | null)[] | {
|
|
399
|
-
readonly [x: string]: string | number | boolean |
|
|
395
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
400
396
|
} | null)[] | {
|
|
401
|
-
readonly [x: string]: string | number | boolean |
|
|
397
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
402
398
|
} | null)[] | {
|
|
403
|
-
readonly [x: string]: string | number | boolean |
|
|
399
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
404
400
|
} | null)[] | {
|
|
405
|
-
readonly [x: string]: string | number | boolean |
|
|
401
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
406
402
|
} | null)[] | {
|
|
407
|
-
readonly [x: string]: string | number | boolean |
|
|
403
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
408
404
|
} | null | undefined;
|
|
409
405
|
} | null | undefined;
|
|
410
406
|
readonly workflowState?: {
|
|
@@ -412,34 +408,38 @@ export declare const create: (input: {
|
|
|
412
408
|
readonly completedSteps?: readonly string[] | null | undefined;
|
|
413
409
|
readonly pendingSteps?: readonly string[] | null | undefined;
|
|
414
410
|
readonly workflowData?: {
|
|
415
|
-
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 |
|
|
416
|
-
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;
|
|
417
413
|
} | null)[] | {
|
|
418
|
-
readonly [x: string]: string | number | boolean |
|
|
414
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
419
415
|
} | null)[] | {
|
|
420
|
-
readonly [x: string]: string | number | boolean |
|
|
416
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
421
417
|
} | null)[] | {
|
|
422
|
-
readonly [x: string]: string | number | boolean |
|
|
418
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
423
419
|
} | null)[] | {
|
|
424
|
-
readonly [x: string]: string | number | boolean |
|
|
420
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
425
421
|
} | null)[] | {
|
|
426
|
-
readonly [x: string]: string | number | boolean |
|
|
422
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
427
423
|
} | null)[] | {
|
|
428
|
-
readonly [x: string]: string | number | boolean |
|
|
424
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
429
425
|
} | null)[] | {
|
|
430
|
-
readonly [x: string]: string | number | boolean |
|
|
426
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
431
427
|
} | null)[] | {
|
|
432
|
-
readonly [x: string]: string | number | boolean |
|
|
428
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
433
429
|
} | null)[] | {
|
|
434
|
-
readonly [x: string]: string | number | boolean |
|
|
430
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
435
431
|
} | null)[] | {
|
|
436
|
-
readonly [x: string]: string | number | boolean |
|
|
432
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
437
433
|
} | null)[] | {
|
|
438
|
-
readonly [x: string]: string | number | boolean |
|
|
434
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
439
435
|
} | null | undefined;
|
|
440
436
|
} | null | undefined;
|
|
441
437
|
} | null | undefined;
|
|
442
438
|
} | 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">;
|
|
@@ -448,16 +448,16 @@ export declare const create: (input: {
|
|
|
448
448
|
readonly description: string | null;
|
|
449
449
|
readonly externalId: string | null;
|
|
450
450
|
readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
451
|
-
readonly channels: readonly
|
|
452
|
-
readonly primaryChannel: "
|
|
453
|
-
readonly status: "
|
|
451
|
+
readonly channels: readonly "email"[];
|
|
452
|
+
readonly primaryChannel: "email";
|
|
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 tags?: readonly string[] | null;
|
|
460
459
|
readonly source?: string | null;
|
|
460
|
+
readonly tags?: readonly string[] | null;
|
|
461
461
|
readonly customFields?: {
|
|
462
462
|
readonly [x: string]: import("./generated").JsonValue;
|
|
463
463
|
} | null;
|
|
@@ -466,14 +466,14 @@ export declare const create: (input: {
|
|
|
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: "system" | "user" | "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("
|
|
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<{
|
|
@@ -530,16 +530,16 @@ export declare const getById: (input: {
|
|
|
530
530
|
readonly description: string | null;
|
|
531
531
|
readonly externalId: string | null;
|
|
532
532
|
readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
533
|
-
readonly channels: readonly
|
|
534
|
-
readonly primaryChannel: "
|
|
535
|
-
readonly status: "
|
|
533
|
+
readonly channels: readonly "email"[];
|
|
534
|
+
readonly primaryChannel: "email";
|
|
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 tags?: readonly string[] | null;
|
|
542
541
|
readonly source?: string | null;
|
|
542
|
+
readonly tags?: readonly string[] | null;
|
|
543
543
|
readonly customFields?: {
|
|
544
544
|
readonly [x: string]: import("./generated").JsonValue;
|
|
545
545
|
} | null;
|
|
@@ -548,14 +548,14 @@ export declare const getById: (input: {
|
|
|
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: "system" | "user" | "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,31 +597,31 @@ 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;
|
|
611
611
|
readonly displayName: string | null;
|
|
612
612
|
readonly type: string;
|
|
613
613
|
readonly identities: readonly {
|
|
614
|
-
readonly channel: "
|
|
614
|
+
readonly channel: "email";
|
|
615
615
|
readonly identifier: string;
|
|
616
616
|
readonly verified: boolean;
|
|
617
617
|
}[];
|
|
618
618
|
};
|
|
619
619
|
}[];
|
|
620
|
-
}, import("
|
|
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;
|
|
@@ -632,13 +632,13 @@ export declare const listMessages: ((input: {
|
|
|
632
632
|
readonly actorMetadata: {
|
|
633
633
|
readonly [x: string]: import("./generated").JsonValue;
|
|
634
634
|
} | null;
|
|
635
|
-
readonly channel: "
|
|
636
|
-
readonly direction: "
|
|
635
|
+
readonly channel: "email";
|
|
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[];
|
|
@@ -660,7 +660,7 @@ export declare const listMessages: ((input: {
|
|
|
660
660
|
readonly displayName: string | null;
|
|
661
661
|
readonly type: string;
|
|
662
662
|
readonly identities: readonly {
|
|
663
|
-
readonly channel: "
|
|
663
|
+
readonly channel: "email";
|
|
664
664
|
readonly identifier: string;
|
|
665
665
|
readonly verified: boolean;
|
|
666
666
|
}[];
|
|
@@ -671,7 +671,7 @@ export declare const listMessages: ((input: {
|
|
|
671
671
|
readonly displayName: string | null;
|
|
672
672
|
readonly type: string;
|
|
673
673
|
readonly identities: readonly {
|
|
674
|
-
readonly channel: "
|
|
674
|
+
readonly channel: "email";
|
|
675
675
|
readonly identifier: string;
|
|
676
676
|
readonly verified: boolean;
|
|
677
677
|
}[];
|
|
@@ -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: {
|
|
@@ -693,7 +693,7 @@ export declare const listMessages: ((input: {
|
|
|
693
693
|
readonly displayName: string | null;
|
|
694
694
|
readonly type: string;
|
|
695
695
|
readonly identities: readonly {
|
|
696
|
-
readonly channel: "
|
|
696
|
+
readonly channel: "email";
|
|
697
697
|
readonly identifier: string;
|
|
698
698
|
readonly verified: boolean;
|
|
699
699
|
}[];
|
|
@@ -703,8 +703,8 @@ export declare const listMessages: ((input: {
|
|
|
703
703
|
readonly id: string;
|
|
704
704
|
readonly messageId: string;
|
|
705
705
|
readonly recipientId: string | null;
|
|
706
|
-
readonly channel: "
|
|
707
|
-
readonly status: "
|
|
706
|
+
readonly channel: "email";
|
|
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;
|
|
@@ -760,50 +760,6 @@ export declare const listMessages: ((input: {
|
|
|
760
760
|
readonly createdAt: string;
|
|
761
761
|
readonly updatedAt: string;
|
|
762
762
|
}[];
|
|
763
|
-
readonly smsDeliveryDetails: readonly {
|
|
764
|
-
readonly deliveryId: string;
|
|
765
|
-
readonly fromNumber: string;
|
|
766
|
-
readonly toNumber: string;
|
|
767
|
-
readonly segmentCount: number;
|
|
768
|
-
readonly encoding: string;
|
|
769
|
-
readonly dltTemplateId: string | null;
|
|
770
|
-
readonly dltEntityId: string | null;
|
|
771
|
-
readonly dltContentId: string | null;
|
|
772
|
-
readonly carrier: string | null;
|
|
773
|
-
readonly numSegmentsReported: number | null;
|
|
774
|
-
readonly createdAt: string;
|
|
775
|
-
readonly updatedAt: string;
|
|
776
|
-
}[];
|
|
777
|
-
readonly whatsappDeliveryDetails: readonly {
|
|
778
|
-
readonly deliveryId: string;
|
|
779
|
-
readonly fromNumber: string;
|
|
780
|
-
readonly toNumber: string;
|
|
781
|
-
readonly messageType: "text" | "image" | "video" | "audio" | "document" | "location" | "contacts" | "template" | "interactive" | "sticker" | "reaction" | "order" | "button" | "system" | "unsupported";
|
|
782
|
-
readonly templateName: string | null;
|
|
783
|
-
readonly templateLanguage: string | null;
|
|
784
|
-
readonly templateCategory: string | null;
|
|
785
|
-
readonly templateParams: {
|
|
786
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
787
|
-
} | null;
|
|
788
|
-
readonly mediaUrl: string | null;
|
|
789
|
-
readonly mediaType: string | null;
|
|
790
|
-
readonly mediaS3Key: string | null;
|
|
791
|
-
readonly interactiveType: string | null;
|
|
792
|
-
readonly contextMessageId: string | null;
|
|
793
|
-
readonly conversationType: "marketing" | "utility" | "authentication" | "service" | null;
|
|
794
|
-
readonly serviceWindowId: string | null;
|
|
795
|
-
readonly freeEntryPointId: string | null;
|
|
796
|
-
readonly isBillable: boolean;
|
|
797
|
-
readonly pricing: {
|
|
798
|
-
readonly messageCost: string;
|
|
799
|
-
readonly reason: string;
|
|
800
|
-
readonly sentInServiceWindow: boolean;
|
|
801
|
-
readonly sentInFreeEntryPoint: boolean;
|
|
802
|
-
} | null;
|
|
803
|
-
readonly recipientId: string | null;
|
|
804
|
-
readonly createdAt: string;
|
|
805
|
-
readonly updatedAt: string;
|
|
806
|
-
}[];
|
|
807
763
|
}[];
|
|
808
764
|
readonly pagination: {
|
|
809
765
|
readonly page: number;
|
|
@@ -811,11 +767,11 @@ export declare const listMessages: ((input: {
|
|
|
811
767
|
readonly total: number;
|
|
812
768
|
readonly totalPages: number;
|
|
813
769
|
};
|
|
814
|
-
}, import("
|
|
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>) & {
|
|
815
771
|
readonly pages: (input: {
|
|
816
772
|
readonly id: string;
|
|
817
|
-
readonly limit?: string | null | undefined;
|
|
818
773
|
readonly page?: string | null | undefined;
|
|
774
|
+
readonly limit?: string | null | undefined;
|
|
819
775
|
}) => import("effect/Stream").Stream<{
|
|
820
776
|
readonly items: readonly {
|
|
821
777
|
readonly id: string;
|
|
@@ -826,13 +782,13 @@ export declare const listMessages: ((input: {
|
|
|
826
782
|
readonly actorMetadata: {
|
|
827
783
|
readonly [x: string]: import("./generated").JsonValue;
|
|
828
784
|
} | null;
|
|
829
|
-
readonly channel: "
|
|
830
|
-
readonly direction: "
|
|
785
|
+
readonly channel: "email";
|
|
786
|
+
readonly direction: "inbound" | "outbound";
|
|
831
787
|
readonly content: import("./generated").JsonValue;
|
|
832
788
|
readonly metadata: {
|
|
833
789
|
readonly [x: string]: import("./generated").JsonValue;
|
|
834
790
|
} | null;
|
|
835
|
-
readonly status: "
|
|
791
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
836
792
|
readonly scheduledAt: string | null;
|
|
837
793
|
readonly tags: readonly string[];
|
|
838
794
|
readonly categories: readonly string[];
|
|
@@ -854,7 +810,7 @@ export declare const listMessages: ((input: {
|
|
|
854
810
|
readonly displayName: string | null;
|
|
855
811
|
readonly type: string;
|
|
856
812
|
readonly identities: readonly {
|
|
857
|
-
readonly channel: "
|
|
813
|
+
readonly channel: "email";
|
|
858
814
|
readonly identifier: string;
|
|
859
815
|
readonly verified: boolean;
|
|
860
816
|
}[];
|
|
@@ -865,7 +821,7 @@ export declare const listMessages: ((input: {
|
|
|
865
821
|
readonly displayName: string | null;
|
|
866
822
|
readonly type: string;
|
|
867
823
|
readonly identities: readonly {
|
|
868
|
-
readonly channel: "
|
|
824
|
+
readonly channel: "email";
|
|
869
825
|
readonly identifier: string;
|
|
870
826
|
readonly verified: boolean;
|
|
871
827
|
}[];
|
|
@@ -876,9 +832,9 @@ export declare const listMessages: ((input: {
|
|
|
876
832
|
readonly actorId: string | null;
|
|
877
833
|
readonly contactId: string | null;
|
|
878
834
|
readonly identityId: string | null;
|
|
879
|
-
readonly kind: "
|
|
835
|
+
readonly kind: "bcc" | "cc" | "to";
|
|
880
836
|
readonly address: string;
|
|
881
|
-
readonly status: "
|
|
837
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
882
838
|
readonly createdAt: string;
|
|
883
839
|
readonly updatedAt: string;
|
|
884
840
|
readonly contact: {
|
|
@@ -887,7 +843,7 @@ export declare const listMessages: ((input: {
|
|
|
887
843
|
readonly displayName: string | null;
|
|
888
844
|
readonly type: string;
|
|
889
845
|
readonly identities: readonly {
|
|
890
|
-
readonly channel: "
|
|
846
|
+
readonly channel: "email";
|
|
891
847
|
readonly identifier: string;
|
|
892
848
|
readonly verified: boolean;
|
|
893
849
|
}[];
|
|
@@ -897,8 +853,8 @@ export declare const listMessages: ((input: {
|
|
|
897
853
|
readonly id: string;
|
|
898
854
|
readonly messageId: string;
|
|
899
855
|
readonly recipientId: string | null;
|
|
900
|
-
readonly channel: "
|
|
901
|
-
readonly status: "
|
|
856
|
+
readonly channel: "email";
|
|
857
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
902
858
|
readonly attemptCount: number;
|
|
903
859
|
readonly maxAttempts: number;
|
|
904
860
|
readonly queuedAt: string | null;
|
|
@@ -945,7 +901,7 @@ export declare const listMessages: ((input: {
|
|
|
945
901
|
readonly spfVerdict: string | null;
|
|
946
902
|
readonly dmarcVerdict: string | null;
|
|
947
903
|
readonly isAutoReply: boolean;
|
|
948
|
-
readonly autoReplyReason: "
|
|
904
|
+
readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
|
|
949
905
|
readonly priority: string | null;
|
|
950
906
|
readonly parsingErrors: readonly string[] | null;
|
|
951
907
|
readonly parsingDuration: number | null;
|
|
@@ -954,50 +910,6 @@ export declare const listMessages: ((input: {
|
|
|
954
910
|
readonly createdAt: string;
|
|
955
911
|
readonly updatedAt: string;
|
|
956
912
|
}[];
|
|
957
|
-
readonly smsDeliveryDetails: readonly {
|
|
958
|
-
readonly deliveryId: string;
|
|
959
|
-
readonly fromNumber: string;
|
|
960
|
-
readonly toNumber: string;
|
|
961
|
-
readonly segmentCount: number;
|
|
962
|
-
readonly encoding: string;
|
|
963
|
-
readonly dltTemplateId: string | null;
|
|
964
|
-
readonly dltEntityId: string | null;
|
|
965
|
-
readonly dltContentId: string | null;
|
|
966
|
-
readonly carrier: string | null;
|
|
967
|
-
readonly numSegmentsReported: number | null;
|
|
968
|
-
readonly createdAt: string;
|
|
969
|
-
readonly updatedAt: string;
|
|
970
|
-
}[];
|
|
971
|
-
readonly whatsappDeliveryDetails: readonly {
|
|
972
|
-
readonly deliveryId: string;
|
|
973
|
-
readonly fromNumber: string;
|
|
974
|
-
readonly toNumber: string;
|
|
975
|
-
readonly messageType: "text" | "image" | "video" | "audio" | "document" | "location" | "contacts" | "template" | "interactive" | "sticker" | "reaction" | "order" | "button" | "system" | "unsupported";
|
|
976
|
-
readonly templateName: string | null;
|
|
977
|
-
readonly templateLanguage: string | null;
|
|
978
|
-
readonly templateCategory: string | null;
|
|
979
|
-
readonly templateParams: {
|
|
980
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
981
|
-
} | null;
|
|
982
|
-
readonly mediaUrl: string | null;
|
|
983
|
-
readonly mediaType: string | null;
|
|
984
|
-
readonly mediaS3Key: string | null;
|
|
985
|
-
readonly interactiveType: string | null;
|
|
986
|
-
readonly contextMessageId: string | null;
|
|
987
|
-
readonly conversationType: "marketing" | "utility" | "authentication" | "service" | null;
|
|
988
|
-
readonly serviceWindowId: string | null;
|
|
989
|
-
readonly freeEntryPointId: string | null;
|
|
990
|
-
readonly isBillable: boolean;
|
|
991
|
-
readonly pricing: {
|
|
992
|
-
readonly messageCost: string;
|
|
993
|
-
readonly reason: string;
|
|
994
|
-
readonly sentInServiceWindow: boolean;
|
|
995
|
-
readonly sentInFreeEntryPoint: boolean;
|
|
996
|
-
} | null;
|
|
997
|
-
readonly recipientId: string | null;
|
|
998
|
-
readonly createdAt: string;
|
|
999
|
-
readonly updatedAt: string;
|
|
1000
|
-
}[];
|
|
1001
913
|
}[];
|
|
1002
914
|
readonly pagination: {
|
|
1003
915
|
readonly page: number;
|
|
@@ -1005,11 +917,11 @@ export declare const listMessages: ((input: {
|
|
|
1005
917
|
readonly total: number;
|
|
1006
918
|
readonly totalPages: number;
|
|
1007
919
|
};
|
|
1008
|
-
}, import("
|
|
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>;
|
|
1009
921
|
readonly items: (input: {
|
|
1010
922
|
readonly id: string;
|
|
1011
|
-
readonly limit?: string | null | undefined;
|
|
1012
923
|
readonly page?: string | null | undefined;
|
|
924
|
+
readonly limit?: string | null | undefined;
|
|
1013
925
|
}) => import("effect/Stream").Stream<{
|
|
1014
926
|
readonly id: string;
|
|
1015
927
|
readonly organizationId: string;
|
|
@@ -1019,13 +931,13 @@ export declare const listMessages: ((input: {
|
|
|
1019
931
|
readonly actorMetadata: {
|
|
1020
932
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1021
933
|
} | null;
|
|
1022
|
-
readonly channel: "
|
|
1023
|
-
readonly direction: "
|
|
934
|
+
readonly channel: "email";
|
|
935
|
+
readonly direction: "inbound" | "outbound";
|
|
1024
936
|
readonly content: import("./generated").JsonValue;
|
|
1025
937
|
readonly metadata: {
|
|
1026
938
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1027
939
|
} | null;
|
|
1028
|
-
readonly status: "
|
|
940
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
1029
941
|
readonly scheduledAt: string | null;
|
|
1030
942
|
readonly tags: readonly string[];
|
|
1031
943
|
readonly categories: readonly string[];
|
|
@@ -1047,7 +959,7 @@ export declare const listMessages: ((input: {
|
|
|
1047
959
|
readonly displayName: string | null;
|
|
1048
960
|
readonly type: string;
|
|
1049
961
|
readonly identities: readonly {
|
|
1050
|
-
readonly channel: "
|
|
962
|
+
readonly channel: "email";
|
|
1051
963
|
readonly identifier: string;
|
|
1052
964
|
readonly verified: boolean;
|
|
1053
965
|
}[];
|
|
@@ -1058,7 +970,7 @@ export declare const listMessages: ((input: {
|
|
|
1058
970
|
readonly displayName: string | null;
|
|
1059
971
|
readonly type: string;
|
|
1060
972
|
readonly identities: readonly {
|
|
1061
|
-
readonly channel: "
|
|
973
|
+
readonly channel: "email";
|
|
1062
974
|
readonly identifier: string;
|
|
1063
975
|
readonly verified: boolean;
|
|
1064
976
|
}[];
|
|
@@ -1069,9 +981,9 @@ export declare const listMessages: ((input: {
|
|
|
1069
981
|
readonly actorId: string | null;
|
|
1070
982
|
readonly contactId: string | null;
|
|
1071
983
|
readonly identityId: string | null;
|
|
1072
|
-
readonly kind: "
|
|
984
|
+
readonly kind: "bcc" | "cc" | "to";
|
|
1073
985
|
readonly address: string;
|
|
1074
|
-
readonly status: "
|
|
986
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
1075
987
|
readonly createdAt: string;
|
|
1076
988
|
readonly updatedAt: string;
|
|
1077
989
|
readonly contact: {
|
|
@@ -1080,7 +992,7 @@ export declare const listMessages: ((input: {
|
|
|
1080
992
|
readonly displayName: string | null;
|
|
1081
993
|
readonly type: string;
|
|
1082
994
|
readonly identities: readonly {
|
|
1083
|
-
readonly channel: "
|
|
995
|
+
readonly channel: "email";
|
|
1084
996
|
readonly identifier: string;
|
|
1085
997
|
readonly verified: boolean;
|
|
1086
998
|
}[];
|
|
@@ -1090,8 +1002,8 @@ export declare const listMessages: ((input: {
|
|
|
1090
1002
|
readonly id: string;
|
|
1091
1003
|
readonly messageId: string;
|
|
1092
1004
|
readonly recipientId: string | null;
|
|
1093
|
-
readonly channel: "
|
|
1094
|
-
readonly status: "
|
|
1005
|
+
readonly channel: "email";
|
|
1006
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
1095
1007
|
readonly attemptCount: number;
|
|
1096
1008
|
readonly maxAttempts: number;
|
|
1097
1009
|
readonly queuedAt: string | null;
|
|
@@ -1138,7 +1050,7 @@ export declare const listMessages: ((input: {
|
|
|
1138
1050
|
readonly spfVerdict: string | null;
|
|
1139
1051
|
readonly dmarcVerdict: string | null;
|
|
1140
1052
|
readonly isAutoReply: boolean;
|
|
1141
|
-
readonly autoReplyReason: "
|
|
1053
|
+
readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
|
|
1142
1054
|
readonly priority: string | null;
|
|
1143
1055
|
readonly parsingErrors: readonly string[] | null;
|
|
1144
1056
|
readonly parsingDuration: number | null;
|
|
@@ -1147,179 +1059,74 @@ export declare const listMessages: ((input: {
|
|
|
1147
1059
|
readonly createdAt: string;
|
|
1148
1060
|
readonly updatedAt: string;
|
|
1149
1061
|
}[];
|
|
1150
|
-
|
|
1151
|
-
readonly deliveryId: string;
|
|
1152
|
-
readonly fromNumber: string;
|
|
1153
|
-
readonly toNumber: string;
|
|
1154
|
-
readonly segmentCount: number;
|
|
1155
|
-
readonly encoding: string;
|
|
1156
|
-
readonly dltTemplateId: string | null;
|
|
1157
|
-
readonly dltEntityId: string | null;
|
|
1158
|
-
readonly dltContentId: string | null;
|
|
1159
|
-
readonly carrier: string | null;
|
|
1160
|
-
readonly numSegmentsReported: number | null;
|
|
1161
|
-
readonly createdAt: string;
|
|
1162
|
-
readonly updatedAt: string;
|
|
1163
|
-
}[];
|
|
1164
|
-
readonly whatsappDeliveryDetails: readonly {
|
|
1165
|
-
readonly deliveryId: string;
|
|
1166
|
-
readonly fromNumber: string;
|
|
1167
|
-
readonly toNumber: string;
|
|
1168
|
-
readonly messageType: "text" | "image" | "video" | "audio" | "document" | "location" | "contacts" | "template" | "interactive" | "sticker" | "reaction" | "order" | "button" | "system" | "unsupported";
|
|
1169
|
-
readonly templateName: string | null;
|
|
1170
|
-
readonly templateLanguage: string | null;
|
|
1171
|
-
readonly templateCategory: string | null;
|
|
1172
|
-
readonly templateParams: {
|
|
1173
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1174
|
-
} | null;
|
|
1175
|
-
readonly mediaUrl: string | null;
|
|
1176
|
-
readonly mediaType: string | null;
|
|
1177
|
-
readonly mediaS3Key: string | null;
|
|
1178
|
-
readonly interactiveType: string | null;
|
|
1179
|
-
readonly contextMessageId: string | null;
|
|
1180
|
-
readonly conversationType: "marketing" | "utility" | "authentication" | "service" | null;
|
|
1181
|
-
readonly serviceWindowId: string | null;
|
|
1182
|
-
readonly freeEntryPointId: string | null;
|
|
1183
|
-
readonly isBillable: boolean;
|
|
1184
|
-
readonly pricing: {
|
|
1185
|
-
readonly messageCost: string;
|
|
1186
|
-
readonly reason: string;
|
|
1187
|
-
readonly sentInServiceWindow: boolean;
|
|
1188
|
-
readonly sentInFreeEntryPoint: boolean;
|
|
1189
|
-
} | null;
|
|
1190
|
-
readonly recipientId: string | null;
|
|
1191
|
-
readonly createdAt: string;
|
|
1192
|
-
readonly updatedAt: string;
|
|
1193
|
-
}[];
|
|
1194
|
-
}, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
|
|
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>;
|
|
1195
1063
|
};
|
|
1196
1064
|
export declare const update: (input: {
|
|
1197
1065
|
readonly id: string;
|
|
1198
|
-
readonly
|
|
1199
|
-
readonly metadata?: {
|
|
1200
|
-
readonly tags?: readonly string[] | null | undefined;
|
|
1201
|
-
readonly source?: string | null | undefined;
|
|
1202
|
-
readonly customFields?: {
|
|
1203
|
-
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 | {
|
|
1204
|
-
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
1205
|
-
} | null)[] | {
|
|
1206
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
1207
|
-
} | null)[] | {
|
|
1208
|
-
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;
|
|
1209
|
-
} | null)[] | {
|
|
1210
|
-
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;
|
|
1211
|
-
} | null)[] | {
|
|
1212
|
-
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;
|
|
1213
|
-
} | null)[] | {
|
|
1214
|
-
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;
|
|
1215
|
-
} | null)[] | {
|
|
1216
|
-
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;
|
|
1217
|
-
} | null)[] | {
|
|
1218
|
-
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;
|
|
1219
|
-
} | null)[] | {
|
|
1220
|
-
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;
|
|
1221
|
-
} | null)[] | {
|
|
1222
|
-
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;
|
|
1223
|
-
} | null)[] | {
|
|
1224
|
-
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;
|
|
1225
|
-
} | null)[] | {
|
|
1226
|
-
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;
|
|
1227
|
-
} | null | undefined;
|
|
1228
|
-
} | null | undefined;
|
|
1229
|
-
} | null | undefined;
|
|
1066
|
+
readonly title?: string | null | undefined;
|
|
1230
1067
|
readonly description?: string | null | undefined;
|
|
1231
|
-
readonly channels?: readonly string[] | null | undefined;
|
|
1232
|
-
readonly status?: string | null | undefined;
|
|
1233
|
-
readonly tags?: readonly string[] | null | undefined;
|
|
1234
|
-
readonly categories?: readonly string[] | null | undefined;
|
|
1235
1068
|
readonly externalId?: string | null | undefined;
|
|
1236
|
-
readonly isTest?: boolean | null | undefined;
|
|
1237
|
-
readonly isInternal?: boolean | null | undefined;
|
|
1238
|
-
readonly title?: string | null | undefined;
|
|
1239
1069
|
readonly parentConversationId?: string | null | undefined;
|
|
1240
1070
|
readonly primaryChannel?: string | null | undefined;
|
|
1071
|
+
readonly status?: string | null | undefined;
|
|
1241
1072
|
readonly statusReason?: string | null | undefined;
|
|
1073
|
+
readonly priority?: number | null | undefined;
|
|
1242
1074
|
readonly urgency?: string | null | undefined;
|
|
1243
1075
|
readonly complexity?: string | null | undefined;
|
|
1244
|
-
readonly actorTracking?: {
|
|
1245
|
-
readonly allActorIds: readonly string[];
|
|
1246
|
-
readonly activeActorIds: readonly string[];
|
|
1247
|
-
readonly actorHistory: readonly {
|
|
1248
|
-
readonly actorType: string;
|
|
1249
|
-
readonly role: string;
|
|
1250
|
-
readonly actorId: string;
|
|
1251
|
-
readonly joinedAt: string;
|
|
1252
|
-
readonly reason?: string | null | undefined;
|
|
1253
|
-
readonly leftAt?: string | null | undefined;
|
|
1254
|
-
readonly addedBy?: string | null | undefined;
|
|
1255
|
-
readonly removedBy?: string | null | undefined;
|
|
1256
|
-
}[];
|
|
1257
|
-
readonly primaryActorIds: readonly string[];
|
|
1258
|
-
} | null | undefined;
|
|
1259
|
-
readonly metrics?: {
|
|
1260
|
-
readonly messageCount: number;
|
|
1261
|
-
readonly messagesFromHuman: number;
|
|
1262
|
-
readonly totalActors: number;
|
|
1263
|
-
readonly contactCount: number;
|
|
1264
|
-
readonly channelSwitches: number;
|
|
1265
|
-
readonly channelDistribution: {
|
|
1266
|
-
readonly [x: string]: number | undefined;
|
|
1267
|
-
};
|
|
1268
|
-
} | null | undefined;
|
|
1269
1076
|
readonly context?: {
|
|
1270
1077
|
readonly customerData?: {
|
|
1271
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 | {
|
|
1272
1079
|
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
1273
1080
|
} | null)[] | {
|
|
1274
|
-
readonly [x: string]: string | number | boolean |
|
|
1081
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1275
1082
|
} | null)[] | {
|
|
1276
|
-
readonly [x: string]: string | number | boolean |
|
|
1083
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1277
1084
|
} | null)[] | {
|
|
1278
|
-
readonly [x: string]: string | number | boolean |
|
|
1085
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1279
1086
|
} | null)[] | {
|
|
1280
|
-
readonly [x: string]: string | number | boolean |
|
|
1087
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1281
1088
|
} | null)[] | {
|
|
1282
|
-
readonly [x: string]: string | number | boolean |
|
|
1089
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1283
1090
|
} | null)[] | {
|
|
1284
|
-
readonly [x: string]: string | number | boolean |
|
|
1091
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1285
1092
|
} | null)[] | {
|
|
1286
|
-
readonly [x: string]: string | number | boolean |
|
|
1093
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1287
1094
|
} | null)[] | {
|
|
1288
|
-
readonly [x: string]: string | number | boolean |
|
|
1095
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1289
1096
|
} | null)[] | {
|
|
1290
|
-
readonly [x: string]: string | number | boolean |
|
|
1097
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1291
1098
|
} | null)[] | {
|
|
1292
|
-
readonly [x: string]: string | number | boolean |
|
|
1099
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1293
1100
|
} | null)[] | {
|
|
1294
|
-
readonly [x: string]: string | number | boolean |
|
|
1101
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1295
1102
|
} | null | undefined;
|
|
1296
1103
|
} | null | undefined;
|
|
1297
1104
|
readonly previousConversations?: readonly string[] | null | undefined;
|
|
1298
1105
|
readonly sessionVariables?: {
|
|
1299
|
-
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 |
|
|
1300
|
-
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;
|
|
1301
1108
|
} | null)[] | {
|
|
1302
|
-
readonly [x: string]: string | number | boolean |
|
|
1109
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1303
1110
|
} | null)[] | {
|
|
1304
|
-
readonly [x: string]: string | number | boolean |
|
|
1111
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1305
1112
|
} | null)[] | {
|
|
1306
|
-
readonly [x: string]: string | number | boolean |
|
|
1113
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1307
1114
|
} | null)[] | {
|
|
1308
|
-
readonly [x: string]: string | number | boolean |
|
|
1115
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1309
1116
|
} | null)[] | {
|
|
1310
|
-
readonly [x: string]: string | number | boolean |
|
|
1117
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1311
1118
|
} | null)[] | {
|
|
1312
|
-
readonly [x: string]: string | number | boolean |
|
|
1119
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1313
1120
|
} | null)[] | {
|
|
1314
|
-
readonly [x: string]: string | number | boolean |
|
|
1121
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1315
1122
|
} | null)[] | {
|
|
1316
|
-
readonly [x: string]: string | number | boolean |
|
|
1123
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1317
1124
|
} | null)[] | {
|
|
1318
|
-
readonly [x: string]: string | number | boolean |
|
|
1125
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1319
1126
|
} | null)[] | {
|
|
1320
|
-
readonly [x: string]: string | number | boolean |
|
|
1127
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1321
1128
|
} | null)[] | {
|
|
1322
|
-
readonly [x: string]: string | number | boolean |
|
|
1129
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1323
1130
|
} | null | undefined;
|
|
1324
1131
|
} | null | undefined;
|
|
1325
1132
|
readonly workflowState?: {
|
|
@@ -1327,34 +1134,95 @@ export declare const update: (input: {
|
|
|
1327
1134
|
readonly completedSteps?: readonly string[] | null | undefined;
|
|
1328
1135
|
readonly pendingSteps?: readonly string[] | null | undefined;
|
|
1329
1136
|
readonly workflowData?: {
|
|
1330
|
-
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 |
|
|
1331
|
-
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;
|
|
1332
1139
|
} | null)[] | {
|
|
1333
|
-
readonly [x: string]: string | number | boolean |
|
|
1140
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1334
1141
|
} | null)[] | {
|
|
1335
|
-
readonly [x: string]: string | number | boolean |
|
|
1142
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1336
1143
|
} | null)[] | {
|
|
1337
|
-
readonly [x: string]: string | number | boolean |
|
|
1144
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1338
1145
|
} | null)[] | {
|
|
1339
|
-
readonly [x: string]: string | number | boolean |
|
|
1146
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1340
1147
|
} | null)[] | {
|
|
1341
|
-
readonly [x: string]: string | number | boolean |
|
|
1148
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1342
1149
|
} | null)[] | {
|
|
1343
|
-
readonly [x: string]: string | number | boolean |
|
|
1150
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1344
1151
|
} | null)[] | {
|
|
1345
|
-
readonly [x: string]: string | number | boolean |
|
|
1152
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1346
1153
|
} | null)[] | {
|
|
1347
|
-
readonly [x: string]: string | number | boolean |
|
|
1154
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1348
1155
|
} | null)[] | {
|
|
1349
|
-
readonly [x: string]: string | number | boolean |
|
|
1156
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1350
1157
|
} | null)[] | {
|
|
1351
|
-
readonly [x: string]: string | number | boolean |
|
|
1158
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1352
1159
|
} | null)[] | {
|
|
1353
|
-
readonly [x: string]: string | number | boolean |
|
|
1160
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1354
1161
|
} | null | undefined;
|
|
1355
1162
|
} | null | undefined;
|
|
1356
1163
|
} | null | undefined;
|
|
1357
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;
|
|
1206
|
+
readonly actorTracking?: {
|
|
1207
|
+
readonly allActorIds: readonly string[];
|
|
1208
|
+
readonly activeActorIds: readonly string[];
|
|
1209
|
+
readonly actorHistory: readonly {
|
|
1210
|
+
readonly actorId: string;
|
|
1211
|
+
readonly actorType: string;
|
|
1212
|
+
readonly joinedAt: string;
|
|
1213
|
+
readonly leftAt?: string | null | undefined;
|
|
1214
|
+
readonly role: string;
|
|
1215
|
+
readonly addedBy?: string | null | undefined;
|
|
1216
|
+
readonly removedBy?: string | null | undefined;
|
|
1217
|
+
readonly reason?: string | null | undefined;
|
|
1218
|
+
}[];
|
|
1219
|
+
readonly primaryActorIds: readonly string[];
|
|
1220
|
+
} | 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;
|
|
1358
1226
|
readonly isPrivate?: boolean | null | undefined;
|
|
1359
1227
|
}) => import("effect/Effect").Effect<{
|
|
1360
1228
|
readonly id: string & import("effect/Brand").Brand<"ConversationId">;
|
|
@@ -1363,16 +1231,16 @@ export declare const update: (input: {
|
|
|
1363
1231
|
readonly description: string | null;
|
|
1364
1232
|
readonly externalId: string | null;
|
|
1365
1233
|
readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1366
|
-
readonly channels: readonly
|
|
1367
|
-
readonly primaryChannel: "
|
|
1368
|
-
readonly status: "
|
|
1234
|
+
readonly channels: readonly "email"[];
|
|
1235
|
+
readonly primaryChannel: "email";
|
|
1236
|
+
readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
|
|
1369
1237
|
readonly statusReason: string | null;
|
|
1370
1238
|
readonly priority: number;
|
|
1371
|
-
readonly urgency: "
|
|
1372
|
-
readonly complexity: "
|
|
1239
|
+
readonly urgency: "critical" | "high" | "low" | "medium";
|
|
1240
|
+
readonly complexity: "complex" | "moderate" | "simple";
|
|
1373
1241
|
readonly metadata: {
|
|
1374
|
-
readonly tags?: readonly string[] | null;
|
|
1375
1242
|
readonly source?: string | null;
|
|
1243
|
+
readonly tags?: readonly string[] | null;
|
|
1376
1244
|
readonly customFields?: {
|
|
1377
1245
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1378
1246
|
} | null;
|
|
@@ -1381,14 +1249,14 @@ export declare const update: (input: {
|
|
|
1381
1249
|
readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1382
1250
|
readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1383
1251
|
readonly actorHistory: readonly {
|
|
1384
|
-
readonly actorType: "system" | "user" | "contact" | "sender_identity" | "agent";
|
|
1385
|
-
readonly role: "initiator" | "responder" | "observer";
|
|
1386
1252
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
1253
|
+
readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
|
|
1387
1254
|
readonly joinedAt: string;
|
|
1388
|
-
readonly reason?: string | null;
|
|
1389
1255
|
readonly leftAt?: string | null;
|
|
1256
|
+
readonly role: "initiator" | "observer" | "responder";
|
|
1390
1257
|
readonly addedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1391
1258
|
readonly removedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1259
|
+
readonly reason?: string | null;
|
|
1392
1260
|
}[];
|
|
1393
1261
|
readonly primaryActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1394
1262
|
};
|
|
@@ -1430,12 +1298,12 @@ export declare const update: (input: {
|
|
|
1430
1298
|
readonly resolvedAt: string | null;
|
|
1431
1299
|
readonly archivedAt: string | null;
|
|
1432
1300
|
readonly resolvedBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1433
|
-
readonly resolutionType: "
|
|
1301
|
+
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
1434
1302
|
readonly resolutionNotes: string | null;
|
|
1435
1303
|
readonly createdAt: string;
|
|
1436
1304
|
readonly updatedAt: string;
|
|
1437
1305
|
readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1438
|
-
}, import("
|
|
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>;
|
|
1439
1307
|
export declare const addContacts: (input: {
|
|
1440
1308
|
readonly id: string;
|
|
1441
1309
|
readonly contactIds: readonly string[];
|
|
@@ -1446,16 +1314,16 @@ export declare const addContacts: (input: {
|
|
|
1446
1314
|
readonly description: string | null;
|
|
1447
1315
|
readonly externalId: string | null;
|
|
1448
1316
|
readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1449
|
-
readonly channels: readonly
|
|
1450
|
-
readonly primaryChannel: "
|
|
1451
|
-
readonly status: "
|
|
1317
|
+
readonly channels: readonly "email"[];
|
|
1318
|
+
readonly primaryChannel: "email";
|
|
1319
|
+
readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
|
|
1452
1320
|
readonly statusReason: string | null;
|
|
1453
1321
|
readonly priority: number;
|
|
1454
|
-
readonly urgency: "
|
|
1455
|
-
readonly complexity: "
|
|
1322
|
+
readonly urgency: "critical" | "high" | "low" | "medium";
|
|
1323
|
+
readonly complexity: "complex" | "moderate" | "simple";
|
|
1456
1324
|
readonly metadata: {
|
|
1457
|
-
readonly tags?: readonly string[] | null;
|
|
1458
1325
|
readonly source?: string | null;
|
|
1326
|
+
readonly tags?: readonly string[] | null;
|
|
1459
1327
|
readonly customFields?: {
|
|
1460
1328
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1461
1329
|
} | null;
|
|
@@ -1464,14 +1332,14 @@ export declare const addContacts: (input: {
|
|
|
1464
1332
|
readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1465
1333
|
readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1466
1334
|
readonly actorHistory: readonly {
|
|
1467
|
-
readonly actorType: "system" | "user" | "contact" | "sender_identity" | "agent";
|
|
1468
|
-
readonly role: "initiator" | "responder" | "observer";
|
|
1469
1335
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
1336
|
+
readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
|
|
1470
1337
|
readonly joinedAt: string;
|
|
1471
|
-
readonly reason?: string | null;
|
|
1472
1338
|
readonly leftAt?: string | null;
|
|
1339
|
+
readonly role: "initiator" | "observer" | "responder";
|
|
1473
1340
|
readonly addedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1474
1341
|
readonly removedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1342
|
+
readonly reason?: string | null;
|
|
1475
1343
|
}[];
|
|
1476
1344
|
readonly primaryActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1477
1345
|
};
|
|
@@ -1513,12 +1381,12 @@ export declare const addContacts: (input: {
|
|
|
1513
1381
|
readonly resolvedAt: string | null;
|
|
1514
1382
|
readonly archivedAt: string | null;
|
|
1515
1383
|
readonly resolvedBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1516
|
-
readonly resolutionType: "
|
|
1384
|
+
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
1517
1385
|
readonly resolutionNotes: string | null;
|
|
1518
1386
|
readonly createdAt: string;
|
|
1519
1387
|
readonly updatedAt: string;
|
|
1520
1388
|
readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1521
|
-
}, import("
|
|
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>;
|
|
1522
1390
|
export declare const removeContacts: (input: {
|
|
1523
1391
|
readonly id: string;
|
|
1524
1392
|
readonly contactIds: readonly string[];
|
|
@@ -1529,16 +1397,16 @@ export declare const removeContacts: (input: {
|
|
|
1529
1397
|
readonly description: string | null;
|
|
1530
1398
|
readonly externalId: string | null;
|
|
1531
1399
|
readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1532
|
-
readonly channels: readonly
|
|
1533
|
-
readonly primaryChannel: "
|
|
1534
|
-
readonly status: "
|
|
1400
|
+
readonly channels: readonly "email"[];
|
|
1401
|
+
readonly primaryChannel: "email";
|
|
1402
|
+
readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
|
|
1535
1403
|
readonly statusReason: string | null;
|
|
1536
1404
|
readonly priority: number;
|
|
1537
|
-
readonly urgency: "
|
|
1538
|
-
readonly complexity: "
|
|
1405
|
+
readonly urgency: "critical" | "high" | "low" | "medium";
|
|
1406
|
+
readonly complexity: "complex" | "moderate" | "simple";
|
|
1539
1407
|
readonly metadata: {
|
|
1540
|
-
readonly tags?: readonly string[] | null;
|
|
1541
1408
|
readonly source?: string | null;
|
|
1409
|
+
readonly tags?: readonly string[] | null;
|
|
1542
1410
|
readonly customFields?: {
|
|
1543
1411
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1544
1412
|
} | null;
|
|
@@ -1547,14 +1415,14 @@ export declare const removeContacts: (input: {
|
|
|
1547
1415
|
readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1548
1416
|
readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1549
1417
|
readonly actorHistory: readonly {
|
|
1550
|
-
readonly actorType: "system" | "user" | "contact" | "sender_identity" | "agent";
|
|
1551
|
-
readonly role: "initiator" | "responder" | "observer";
|
|
1552
1418
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
1419
|
+
readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
|
|
1553
1420
|
readonly joinedAt: string;
|
|
1554
|
-
readonly reason?: string | null;
|
|
1555
1421
|
readonly leftAt?: string | null;
|
|
1422
|
+
readonly role: "initiator" | "observer" | "responder";
|
|
1556
1423
|
readonly addedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1557
1424
|
readonly removedBy?: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1425
|
+
readonly reason?: string | null;
|
|
1558
1426
|
}[];
|
|
1559
1427
|
readonly primaryActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1560
1428
|
};
|
|
@@ -1596,9 +1464,9 @@ export declare const removeContacts: (input: {
|
|
|
1596
1464
|
readonly resolvedAt: string | null;
|
|
1597
1465
|
readonly archivedAt: string | null;
|
|
1598
1466
|
readonly resolvedBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1599
|
-
readonly resolutionType: "
|
|
1467
|
+
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
1600
1468
|
readonly resolutionNotes: string | null;
|
|
1601
1469
|
readonly createdAt: string;
|
|
1602
1470
|
readonly updatedAt: string;
|
|
1603
1471
|
readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
1604
|
-
}, import("
|
|
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>;
|