samva 0.12.0 → 0.14.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 +9 -0
- package/README.md +51 -6
- package/dist/{categories-DvsHUJtX.js → categories-BGUBFdH9.js} +13 -1
- package/dist/client/sdk.gen.d.ts +130 -32
- package/dist/client/types.gen.d.ts +979 -168
- package/dist/{client-Cj1bqIEe.js → client-CZjhOKPM.js} +898 -177
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +1 -1
- package/dist/effect/api-keys.d.ts +20 -20
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/attachments.js +1 -1
- package/dist/effect/brands.js +2 -2
- package/dist/effect/campaigns.d.ts +13 -13
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contact-groups.d.ts +9 -12
- package/dist/effect/contact-groups.js +1 -1
- package/dist/effect/contacts.d.ts +161 -76
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +20 -20
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/custom-fields.d.ts +1 -1
- package/dist/effect/custom-fields.js +1 -1
- package/dist/effect/email.d.ts +27 -27
- package/dist/effect/email.js +2 -2
- package/dist/effect/extension-installations.d.ts +68 -2
- package/dist/effect/extension-installations.js +5 -3
- package/dist/effect/extensions.d.ts +3 -3
- package/dist/effect/extensions.js +1 -1
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +2 -2
- package/dist/effect/generated-metadata.d.ts +12 -0
- package/dist/effect/generated.d.ts +6502 -906
- package/dist/effect/index.d.ts +3 -1
- package/dist/effect/index.js +6 -4
- package/dist/effect/internal/client.d.ts +16 -2
- package/dist/effect/internal/operation.d.ts +14 -11
- package/dist/effect/mailboxes.d.ts +1725 -108
- package/dist/effect/mailboxes.js +3 -3
- package/dist/effect/media.d.ts +1 -1
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +21 -19
- package/dist/effect/messages.js +1 -1
- package/dist/effect/namespaces.js +1 -1
- package/dist/effect/operations.d.ts +6 -6
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +30 -0
- package/dist/effect/organizations.js +4 -2
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +7 -7
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/subscriptions.d.ts +15 -0
- package/dist/effect/subscriptions.js +9 -0
- package/dist/effect/templates.d.ts +52 -14
- package/dist/effect/templates.js +5 -3
- package/dist/effect/unsubscribe-groups.d.ts +1 -1
- package/dist/effect/unsubscribe-groups.js +1 -1
- package/dist/effect/webhooks.d.ts +15 -15
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +4 -3
- package/dist/inline-attachments-BrNnSMF2.js +121 -0
- package/dist/inline-attachments.d.ts +65 -0
- package/dist/{mailbox-events-CsbF35vH.js → mailbox-events-VKR4f3qq.js} +6 -4
- package/dist/mailbox-events.d.ts +1 -1
- package/dist/{mailboxes-BtcktcNB.js → mailboxes-DT02zP7q.js} +13 -5
- package/dist/{operation-BEghYyLu.js → operation-g8nAzmIM.js} +63 -3
- package/dist/promises/errors.gen.d.ts +38 -2
- package/dist/promises/index.d.ts +7 -4
- package/dist/promises/index.js +4 -3
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-BzrwhHEW.js → promises-BFRKhpSS.js} +1070 -49
- package/dist/service-map.d.ts +40 -0
- package/package.json +7 -2
- package/dist/client-attribution-BTWYSXxo.js +0 -9
|
@@ -2,7 +2,10 @@ export declare const list: ((input?: {
|
|
|
2
2
|
readonly limit?: string | null | undefined;
|
|
3
3
|
readonly cursor?: string | null | undefined;
|
|
4
4
|
readonly search?: string | null | undefined;
|
|
5
|
-
readonly status?:
|
|
5
|
+
readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
|
|
6
|
+
readonly fields?: string | null | undefined;
|
|
7
|
+
readonly customField?: string | null | undefined;
|
|
8
|
+
readonly customFieldValue?: string | null | undefined;
|
|
6
9
|
readonly after?: string | null | undefined;
|
|
7
10
|
readonly before?: string | null | undefined;
|
|
8
11
|
} | undefined) => import("effect/Effect").Effect<{
|
|
@@ -19,6 +22,9 @@ export declare const list: ((input?: {
|
|
|
19
22
|
readonly name: string;
|
|
20
23
|
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
21
24
|
}[];
|
|
25
|
+
readonly customFields?: {
|
|
26
|
+
readonly [x: string]: string | number | boolean | null;
|
|
27
|
+
} | null;
|
|
22
28
|
readonly lastActiveAt: string | null;
|
|
23
29
|
readonly createdAt: string;
|
|
24
30
|
}[];
|
|
@@ -28,7 +34,10 @@ export declare const list: ((input?: {
|
|
|
28
34
|
readonly limit?: string | null | undefined;
|
|
29
35
|
readonly cursor?: string | null | undefined;
|
|
30
36
|
readonly search?: string | null | undefined;
|
|
31
|
-
readonly status?:
|
|
37
|
+
readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
|
|
38
|
+
readonly fields?: string | null | undefined;
|
|
39
|
+
readonly customField?: string | null | undefined;
|
|
40
|
+
readonly customFieldValue?: string | null | undefined;
|
|
32
41
|
readonly after?: string | null | undefined;
|
|
33
42
|
readonly before?: string | null | undefined;
|
|
34
43
|
} | undefined) => import("effect/Stream").Stream<{
|
|
@@ -45,6 +54,9 @@ export declare const list: ((input?: {
|
|
|
45
54
|
readonly name: string;
|
|
46
55
|
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
47
56
|
}[];
|
|
57
|
+
readonly customFields?: {
|
|
58
|
+
readonly [x: string]: string | number | boolean | null;
|
|
59
|
+
} | null;
|
|
48
60
|
readonly lastActiveAt: string | null;
|
|
49
61
|
readonly createdAt: string;
|
|
50
62
|
}[];
|
|
@@ -54,7 +66,10 @@ export declare const list: ((input?: {
|
|
|
54
66
|
readonly limit?: string | null | undefined;
|
|
55
67
|
readonly cursor?: string | null | undefined;
|
|
56
68
|
readonly search?: string | null | undefined;
|
|
57
|
-
readonly status?:
|
|
69
|
+
readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
|
|
70
|
+
readonly fields?: string | null | undefined;
|
|
71
|
+
readonly customField?: string | null | undefined;
|
|
72
|
+
readonly customFieldValue?: string | null | undefined;
|
|
58
73
|
readonly after?: string | null | undefined;
|
|
59
74
|
readonly before?: string | null | undefined;
|
|
60
75
|
} | undefined) => import("effect/Stream").Stream<{
|
|
@@ -70,6 +85,9 @@ export declare const list: ((input?: {
|
|
|
70
85
|
readonly name: string;
|
|
71
86
|
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
72
87
|
}[];
|
|
88
|
+
readonly customFields?: {
|
|
89
|
+
readonly [x: string]: string | number | boolean | null;
|
|
90
|
+
} | null;
|
|
73
91
|
readonly lastActiveAt: string | null;
|
|
74
92
|
readonly createdAt: string;
|
|
75
93
|
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
@@ -79,7 +97,7 @@ export declare const create: (input: {
|
|
|
79
97
|
readonly displayName?: string | null | undefined;
|
|
80
98
|
readonly avatar?: string | null | undefined;
|
|
81
99
|
readonly identities?: readonly {
|
|
82
|
-
readonly channel:
|
|
100
|
+
readonly channel: "email";
|
|
83
101
|
readonly identifier: string;
|
|
84
102
|
readonly verified?: boolean | null | undefined;
|
|
85
103
|
}[] | null | undefined;
|
|
@@ -97,10 +115,10 @@ export declare const create: (input: {
|
|
|
97
115
|
readonly customFields?: {
|
|
98
116
|
readonly [x: string]: string | number | boolean | null | undefined;
|
|
99
117
|
} | null | undefined;
|
|
100
|
-
readonly source?:
|
|
118
|
+
readonly source?: "api" | "form" | "import" | "manual" | null | undefined;
|
|
101
119
|
} | null | undefined;
|
|
102
120
|
readonly preferences?: {
|
|
103
|
-
readonly preferredChannels?: readonly
|
|
121
|
+
readonly preferredChannels?: readonly "email"[] | null | undefined;
|
|
104
122
|
readonly language?: string | null | undefined;
|
|
105
123
|
readonly timezone?: string | null | undefined;
|
|
106
124
|
readonly notifications?: {
|
|
@@ -112,7 +130,7 @@ export declare const create: (input: {
|
|
|
112
130
|
} | null | undefined;
|
|
113
131
|
} | null | undefined;
|
|
114
132
|
readonly tags?: readonly string[] | null | undefined;
|
|
115
|
-
readonly status?:
|
|
133
|
+
readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
|
|
116
134
|
readonly statusReason?: string | null | undefined;
|
|
117
135
|
readonly externalId?: string | null | undefined;
|
|
118
136
|
readonly metadata?: {
|
|
@@ -244,60 +262,95 @@ export declare const find: (input?: {
|
|
|
244
262
|
readonly createdAt: string;
|
|
245
263
|
readonly updatedAt: string;
|
|
246
264
|
} | null, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
247
|
-
export declare const findOrCreate: (input
|
|
248
|
-
readonly
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
readonly
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
readonly
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
265
|
+
export declare const findOrCreate: (input: {
|
|
266
|
+
readonly lookup: {
|
|
267
|
+
readonly type: "email";
|
|
268
|
+
readonly value: string;
|
|
269
|
+
} | {
|
|
270
|
+
readonly type: "phone";
|
|
271
|
+
readonly value: string;
|
|
272
|
+
} | {
|
|
273
|
+
readonly type: "externalId";
|
|
274
|
+
readonly value: string;
|
|
275
|
+
};
|
|
276
|
+
readonly create?: {
|
|
277
|
+
readonly name?: string | null | undefined;
|
|
278
|
+
readonly displayName?: string | null | undefined;
|
|
279
|
+
readonly avatar?: string | null | undefined;
|
|
280
|
+
readonly identities?: readonly {
|
|
281
|
+
readonly channel: "email";
|
|
282
|
+
readonly identifier: string;
|
|
283
|
+
readonly verified?: boolean | null | undefined;
|
|
284
|
+
}[] | null | undefined;
|
|
285
|
+
readonly profile?: {
|
|
286
|
+
readonly firstName?: string | null | undefined;
|
|
287
|
+
readonly lastName?: string | null | undefined;
|
|
288
|
+
readonly company?: string | null | undefined;
|
|
289
|
+
readonly jobTitle?: string | null | undefined;
|
|
290
|
+
readonly location?: {
|
|
291
|
+
readonly country: string;
|
|
292
|
+
readonly state: string;
|
|
293
|
+
readonly city: string;
|
|
294
|
+
readonly timezone: string;
|
|
295
|
+
} | null | undefined;
|
|
296
|
+
readonly customFields?: {
|
|
297
|
+
readonly [x: string]: string | number | boolean | null | undefined;
|
|
298
|
+
} | null | undefined;
|
|
299
|
+
readonly source?: "api" | "form" | "import" | "manual" | null | undefined;
|
|
300
|
+
} | null | undefined;
|
|
301
|
+
readonly externalId?: string | null | undefined;
|
|
302
|
+
} | null | undefined;
|
|
303
|
+
}) => import("effect/Effect").Effect<{
|
|
304
|
+
readonly contact: {
|
|
305
|
+
readonly id: string & import("effect/Brand").Brand<"ContactId">;
|
|
306
|
+
readonly name: string;
|
|
307
|
+
readonly displayName: string | null;
|
|
308
|
+
readonly avatar: string | null;
|
|
309
|
+
readonly status: "active" | "archived" | "blocked" | "paused";
|
|
310
|
+
readonly statusReason: string | null;
|
|
311
|
+
readonly externalId: string | null;
|
|
312
|
+
readonly identities: readonly {
|
|
313
|
+
readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
|
|
314
|
+
readonly channel: "email";
|
|
315
|
+
readonly identifier: string;
|
|
316
|
+
readonly verified: boolean;
|
|
317
|
+
}[];
|
|
318
|
+
readonly profile: {
|
|
319
|
+
readonly firstName?: string | null;
|
|
320
|
+
readonly lastName?: string | null;
|
|
321
|
+
readonly company?: string | null;
|
|
322
|
+
readonly jobTitle?: string | null;
|
|
323
|
+
readonly location?: {
|
|
324
|
+
readonly country: string;
|
|
325
|
+
readonly state: string;
|
|
326
|
+
readonly city: string;
|
|
327
|
+
readonly timezone: string;
|
|
328
|
+
} | null;
|
|
329
|
+
readonly customFields?: {
|
|
330
|
+
readonly [x: string]: string | number | boolean | null;
|
|
331
|
+
} | null;
|
|
332
|
+
readonly source?: "api" | "form" | "import" | "manual" | null;
|
|
280
333
|
} | null;
|
|
281
|
-
readonly
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
readonly end: string;
|
|
334
|
+
readonly preferences: {
|
|
335
|
+
readonly preferredChannels?: readonly "email"[] | null;
|
|
336
|
+
readonly language?: string | null;
|
|
337
|
+
readonly timezone?: string | null;
|
|
338
|
+
readonly notifications?: {
|
|
339
|
+
readonly email?: boolean | null;
|
|
340
|
+
readonly quiet_hours?: {
|
|
341
|
+
readonly start: string;
|
|
342
|
+
readonly end: string;
|
|
343
|
+
} | null;
|
|
292
344
|
} | null;
|
|
293
345
|
} | null;
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
346
|
+
readonly tags: readonly string[];
|
|
347
|
+
readonly metadata: {
|
|
348
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
349
|
+
} | null;
|
|
350
|
+
readonly createdAt: string;
|
|
351
|
+
readonly updatedAt: string;
|
|
352
|
+
};
|
|
353
|
+
readonly created: boolean;
|
|
301
354
|
}, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
302
355
|
export declare const get: (input: {
|
|
303
356
|
readonly id: string;
|
|
@@ -376,7 +429,7 @@ export declare const update: (input: {
|
|
|
376
429
|
} | null | undefined;
|
|
377
430
|
} | null | undefined;
|
|
378
431
|
readonly preferences?: {
|
|
379
|
-
readonly preferredChannels?: readonly
|
|
432
|
+
readonly preferredChannels?: readonly "email"[] | null | undefined;
|
|
380
433
|
readonly language?: string | null | undefined;
|
|
381
434
|
readonly timezone?: string | null | undefined;
|
|
382
435
|
readonly notifications?: {
|
|
@@ -387,7 +440,7 @@ export declare const update: (input: {
|
|
|
387
440
|
} | null | undefined;
|
|
388
441
|
} | null | undefined;
|
|
389
442
|
} | null | undefined;
|
|
390
|
-
readonly status?:
|
|
443
|
+
readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
|
|
391
444
|
readonly statusReason?: string | null | undefined;
|
|
392
445
|
readonly externalId?: string | null | undefined;
|
|
393
446
|
readonly metadata?: {
|
|
@@ -468,7 +521,7 @@ export declare const update: (input: {
|
|
|
468
521
|
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
469
522
|
export declare const addIdentity: (input: {
|
|
470
523
|
readonly id: string;
|
|
471
|
-
readonly channel:
|
|
524
|
+
readonly channel: "email";
|
|
472
525
|
readonly identifier: string;
|
|
473
526
|
readonly verified?: boolean | null | undefined;
|
|
474
527
|
}) => import("effect/Effect").Effect<{
|
|
@@ -691,14 +744,46 @@ export declare const getEngagement: (input: {
|
|
|
691
744
|
export declare const bulkImport: (input: {
|
|
692
745
|
readonly contacts: readonly {
|
|
693
746
|
readonly name: string;
|
|
694
|
-
readonly
|
|
695
|
-
readonly
|
|
747
|
+
readonly displayName?: string | null | undefined;
|
|
748
|
+
readonly avatar?: string | null | undefined;
|
|
749
|
+
readonly identities?: readonly {
|
|
750
|
+
readonly channel: "email";
|
|
751
|
+
readonly identifier: string;
|
|
752
|
+
readonly verified?: boolean | null | undefined;
|
|
753
|
+
}[] | null | undefined;
|
|
754
|
+
readonly profile?: {
|
|
755
|
+
readonly firstName?: string | null | undefined;
|
|
756
|
+
readonly lastName?: string | null | undefined;
|
|
757
|
+
readonly company?: string | null | undefined;
|
|
758
|
+
readonly jobTitle?: string | null | undefined;
|
|
759
|
+
readonly location?: {
|
|
760
|
+
readonly country: string;
|
|
761
|
+
readonly state: string;
|
|
762
|
+
readonly city: string;
|
|
763
|
+
readonly timezone: string;
|
|
764
|
+
} | null | undefined;
|
|
765
|
+
readonly customFields?: {
|
|
766
|
+
readonly [x: string]: string | number | boolean | null | undefined;
|
|
767
|
+
} | null | undefined;
|
|
768
|
+
readonly source?: "api" | "form" | "import" | "manual" | null | undefined;
|
|
769
|
+
} | null | undefined;
|
|
770
|
+
readonly preferences?: {
|
|
771
|
+
readonly preferredChannels?: readonly "email"[] | null | undefined;
|
|
772
|
+
readonly language?: string | null | undefined;
|
|
773
|
+
readonly timezone?: string | null | undefined;
|
|
774
|
+
readonly notifications?: {
|
|
775
|
+
readonly email?: boolean | null | undefined;
|
|
776
|
+
readonly quiet_hours?: {
|
|
777
|
+
readonly start: string;
|
|
778
|
+
readonly end: string;
|
|
779
|
+
} | null | undefined;
|
|
780
|
+
} | null | undefined;
|
|
781
|
+
} | null | undefined;
|
|
696
782
|
readonly tags?: readonly string[] | null | undefined;
|
|
697
|
-
readonly
|
|
698
|
-
readonly
|
|
699
|
-
readonly
|
|
700
|
-
readonly
|
|
701
|
-
readonly customFields?: {
|
|
783
|
+
readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
|
|
784
|
+
readonly statusReason?: string | null | undefined;
|
|
785
|
+
readonly externalId?: string | null | undefined;
|
|
786
|
+
readonly metadata?: {
|
|
702
787
|
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 | {
|
|
703
788
|
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
704
789
|
} | null)[] | {
|
|
@@ -724,7 +809,7 @@ export declare const bulkImport: (input: {
|
|
|
724
809
|
} | null | undefined;
|
|
725
810
|
} | null | undefined;
|
|
726
811
|
}[];
|
|
727
|
-
readonly
|
|
812
|
+
readonly onConflict?: "skip" | "update" | null | undefined;
|
|
728
813
|
}) => import("effect/Effect").Effect<{
|
|
729
814
|
readonly total: number;
|
|
730
815
|
readonly created: number;
|
|
@@ -746,7 +831,7 @@ export declare const bulkDelete: (input: {
|
|
|
746
831
|
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
747
832
|
export declare const bulkUpdateTags: (input: {
|
|
748
833
|
readonly ids: readonly string[];
|
|
749
|
-
readonly operation:
|
|
834
|
+
readonly operation: "add" | "remove" | "set";
|
|
750
835
|
readonly tags: readonly string[];
|
|
751
836
|
}) => import("effect/Effect").Effect<{
|
|
752
837
|
readonly updated: number;
|
|
@@ -754,16 +839,16 @@ export declare const bulkUpdateTags: (input: {
|
|
|
754
839
|
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
755
840
|
export declare const bulkUpdateStatus: (input: {
|
|
756
841
|
readonly ids: readonly string[];
|
|
757
|
-
readonly status:
|
|
842
|
+
readonly status: "active" | "archived" | "blocked" | "paused";
|
|
758
843
|
}) => import("effect/Effect").Effect<{
|
|
759
844
|
readonly updated: number;
|
|
760
845
|
readonly failed: number;
|
|
761
846
|
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
762
847
|
declare const exportContacts: (input?: {
|
|
763
848
|
readonly ids?: readonly string[] | null | undefined;
|
|
764
|
-
readonly format?:
|
|
849
|
+
readonly format?: "csv" | "json" | null | undefined;
|
|
765
850
|
readonly filters?: {
|
|
766
|
-
readonly status?:
|
|
851
|
+
readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
|
|
767
852
|
readonly tags?: readonly string[] | null | undefined;
|
|
768
853
|
} | null | undefined;
|
|
769
854
|
readonly fields?: readonly string[] | null | undefined;
|
|
@@ -777,7 +862,7 @@ export declare const getActivityTimeline: ((input: {
|
|
|
777
862
|
readonly id: string;
|
|
778
863
|
readonly limit?: string | null | undefined;
|
|
779
864
|
readonly cursor?: string | null | undefined;
|
|
780
|
-
readonly channel?:
|
|
865
|
+
readonly channel?: "email" | null | undefined;
|
|
781
866
|
}) => import("effect/Effect").Effect<{
|
|
782
867
|
readonly items: readonly {
|
|
783
868
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
@@ -795,7 +880,7 @@ export declare const getActivityTimeline: ((input: {
|
|
|
795
880
|
readonly id: string;
|
|
796
881
|
readonly limit?: string | null | undefined;
|
|
797
882
|
readonly cursor?: string | null | undefined;
|
|
798
|
-
readonly channel?:
|
|
883
|
+
readonly channel?: "email" | null | undefined;
|
|
799
884
|
}) => import("effect/Stream").Stream<{
|
|
800
885
|
readonly items: readonly {
|
|
801
886
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
@@ -813,7 +898,7 @@ export declare const getActivityTimeline: ((input: {
|
|
|
813
898
|
readonly id: string;
|
|
814
899
|
readonly limit?: string | null | undefined;
|
|
815
900
|
readonly cursor?: string | null | undefined;
|
|
816
|
-
readonly channel?:
|
|
901
|
+
readonly channel?: "email" | null | undefined;
|
|
817
902
|
}) => import("effect/Stream").Stream<{
|
|
818
903
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
819
904
|
readonly channel: string;
|
package/dist/effect/contacts.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-g8nAzmIM.js";
|
|
3
3
|
//#region src/effect/contacts.ts
|
|
4
4
|
var contacts_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
addIdentity: () => addIdentity,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const list: ((input?: {
|
|
2
2
|
readonly limit?: string | null | undefined;
|
|
3
3
|
readonly cursor?: string | null | undefined;
|
|
4
|
-
readonly status?:
|
|
5
|
-
readonly channel?:
|
|
4
|
+
readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
|
|
5
|
+
readonly channel?: "email" | null | undefined;
|
|
6
6
|
readonly contactId?: string | null | undefined;
|
|
7
7
|
readonly after?: string | null | undefined;
|
|
8
8
|
readonly before?: string | null | undefined;
|
|
@@ -27,8 +27,8 @@ export declare const list: ((input?: {
|
|
|
27
27
|
readonly pages: (input?: {
|
|
28
28
|
readonly limit?: string | null | undefined;
|
|
29
29
|
readonly cursor?: string | null | undefined;
|
|
30
|
-
readonly status?:
|
|
31
|
-
readonly channel?:
|
|
30
|
+
readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
|
|
31
|
+
readonly channel?: "email" | null | undefined;
|
|
32
32
|
readonly contactId?: string | null | undefined;
|
|
33
33
|
readonly after?: string | null | undefined;
|
|
34
34
|
readonly before?: string | null | undefined;
|
|
@@ -53,8 +53,8 @@ export declare const list: ((input?: {
|
|
|
53
53
|
readonly items: (input?: {
|
|
54
54
|
readonly limit?: string | null | undefined;
|
|
55
55
|
readonly cursor?: string | null | undefined;
|
|
56
|
-
readonly status?:
|
|
57
|
-
readonly channel?:
|
|
56
|
+
readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
|
|
57
|
+
readonly channel?: "email" | null | undefined;
|
|
58
58
|
readonly contactId?: string | null | undefined;
|
|
59
59
|
readonly after?: string | null | undefined;
|
|
60
60
|
readonly before?: string | null | undefined;
|
|
@@ -79,13 +79,13 @@ export declare const create: (input: {
|
|
|
79
79
|
readonly description?: string | null | undefined;
|
|
80
80
|
readonly externalId?: string | null | undefined;
|
|
81
81
|
readonly parentConversationId?: string | null | undefined;
|
|
82
|
-
readonly channels: readonly
|
|
83
|
-
readonly primaryChannel:
|
|
84
|
-
readonly status?:
|
|
82
|
+
readonly channels: readonly "email"[];
|
|
83
|
+
readonly primaryChannel: "email";
|
|
84
|
+
readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
|
|
85
85
|
readonly statusReason?: string | null | undefined;
|
|
86
86
|
readonly priority?: number | null | undefined;
|
|
87
|
-
readonly urgency?:
|
|
88
|
-
readonly complexity?:
|
|
87
|
+
readonly urgency?: "critical" | "high" | "low" | "medium" | null | undefined;
|
|
88
|
+
readonly complexity?: "complex" | "moderate" | "simple" | null | undefined;
|
|
89
89
|
readonly metadata?: {
|
|
90
90
|
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 | {
|
|
91
91
|
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
@@ -342,7 +342,7 @@ export declare const listMessages: ((input: {
|
|
|
342
342
|
readonly from: string | null;
|
|
343
343
|
readonly to: readonly string[];
|
|
344
344
|
readonly subject: string | null;
|
|
345
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
345
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
346
346
|
readonly createdAt: string;
|
|
347
347
|
}[];
|
|
348
348
|
readonly nextCursor: string | null;
|
|
@@ -362,7 +362,7 @@ export declare const listMessages: ((input: {
|
|
|
362
362
|
readonly from: string | null;
|
|
363
363
|
readonly to: readonly string[];
|
|
364
364
|
readonly subject: string | null;
|
|
365
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
365
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
366
366
|
readonly createdAt: string;
|
|
367
367
|
}[];
|
|
368
368
|
readonly nextCursor: string | null;
|
|
@@ -381,7 +381,7 @@ export declare const listMessages: ((input: {
|
|
|
381
381
|
readonly from: string | null;
|
|
382
382
|
readonly to: readonly string[];
|
|
383
383
|
readonly subject: string | null;
|
|
384
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
384
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
385
385
|
readonly createdAt: string;
|
|
386
386
|
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
387
387
|
};
|
|
@@ -391,12 +391,12 @@ export declare const update: (input: {
|
|
|
391
391
|
readonly description?: string | null | undefined;
|
|
392
392
|
readonly externalId?: string | null | undefined;
|
|
393
393
|
readonly parentConversationId?: string | null | undefined;
|
|
394
|
-
readonly primaryChannel?:
|
|
395
|
-
readonly status?:
|
|
394
|
+
readonly primaryChannel?: "email" | null | undefined;
|
|
395
|
+
readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
|
|
396
396
|
readonly statusReason?: string | null | undefined;
|
|
397
397
|
readonly priority?: number | null | undefined;
|
|
398
|
-
readonly urgency?:
|
|
399
|
-
readonly complexity?:
|
|
398
|
+
readonly urgency?: "critical" | "high" | "low" | "medium" | null | undefined;
|
|
399
|
+
readonly complexity?: "complex" | "moderate" | "simple" | null | undefined;
|
|
400
400
|
readonly context?: {
|
|
401
401
|
readonly customerData?: {
|
|
402
402
|
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 | {
|
|
@@ -825,7 +825,7 @@ export declare const removeCategories: (input: {
|
|
|
825
825
|
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
826
826
|
export declare const addChannels: (input: {
|
|
827
827
|
readonly id: string;
|
|
828
|
-
readonly channels: readonly
|
|
828
|
+
readonly channels: readonly "email"[];
|
|
829
829
|
}) => import("effect/Effect").Effect<{
|
|
830
830
|
readonly id: string & import("effect/Brand").Brand<"ConversationId">;
|
|
831
831
|
readonly title: string | null;
|
|
@@ -887,7 +887,7 @@ export declare const addChannels: (input: {
|
|
|
887
887
|
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
888
888
|
export declare const removeChannels: (input: {
|
|
889
889
|
readonly id: string;
|
|
890
|
-
readonly channels: readonly
|
|
890
|
+
readonly channels: readonly "email"[];
|
|
891
891
|
}) => import("effect/Effect").Effect<{
|
|
892
892
|
readonly id: string & import("effect/Brand").Brand<"ConversationId">;
|
|
893
893
|
readonly title: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-g8nAzmIM.js";
|
|
3
3
|
//#region src/effect/conversations.ts
|
|
4
4
|
var conversations_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
addCategories: () => addCategories,
|
|
@@ -16,7 +16,7 @@ export declare const list: (_?: never) => import("effect/Effect").Effect<{
|
|
|
16
16
|
export declare const create: (input: {
|
|
17
17
|
readonly key: string;
|
|
18
18
|
readonly label: string;
|
|
19
|
-
readonly type:
|
|
19
|
+
readonly type: "boolean" | "date" | "number" | "select" | "text";
|
|
20
20
|
readonly options?: readonly string[] | null | undefined;
|
|
21
21
|
readonly defaultValue?: string | null | undefined;
|
|
22
22
|
readonly isRequired?: boolean | null | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-g8nAzmIM.js";
|
|
3
3
|
//#region src/effect/custom-fields.ts
|
|
4
4
|
var custom_fields_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
create: () => create,
|