samva 0.17.0 → 0.19.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 +5 -0
- package/README.md +18 -3
- package/dist/{rolldown-runtime-D7D4PA-g.js → _virtual/_rolldown/runtime.js} +1 -1
- package/dist/client/client/client.gen.js +174 -0
- package/dist/client/client/utils.gen.js +177 -0
- package/dist/client/client.gen.js +8 -0
- package/dist/client/core/auth.gen.js +12 -0
- package/dist/client/core/bodySerializer.gen.js +6 -0
- package/dist/client/core/params.gen.js +77 -0
- package/dist/client/core/pathSerializer.gen.js +82 -0
- package/dist/client/core/serverSentEvents.gen.js +96 -0
- package/dist/client/core/utils.gen.js +78 -0
- package/dist/client/sdk.gen.d.ts +39 -23
- package/dist/{promises---Kbh-7z.js → client/sdk.gen.js} +87 -2314
- package/dist/client/types.gen.d.ts +175 -44
- package/dist/client-attribution.js +9 -0
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +23 -2
- package/dist/effect/api-keys.d.ts +12 -12
- package/dist/effect/api-keys.js +29 -2
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +19 -2
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/brands.js +26 -3
- package/dist/effect/campaigns.d.ts +18 -18
- package/dist/effect/campaigns.js +35 -2
- package/dist/effect/categories.d.ts +2 -2
- package/dist/effect/categories.js +95 -1
- package/dist/effect/client.js +3 -3
- package/dist/effect/contact-groups.d.ts +53 -17
- package/dist/effect/contact-groups.js +31 -2
- package/dist/effect/contacts.d.ts +244 -41
- package/dist/effect/contacts.js +54 -2
- package/dist/effect/conversations.d.ts +28 -28
- package/dist/effect/conversations.js +37 -2
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +19 -2
- package/dist/effect/email.d.ts +75 -75
- package/dist/effect/email.js +140 -2
- package/dist/effect/errors.d.ts +2 -0
- package/dist/effect/errors.js +3 -0
- package/dist/effect/events.d.ts +2 -2
- package/dist/effect/events.js +17 -3
- package/dist/effect/extension-installations.d.ts +23 -23
- package/dist/effect/extension-installations.js +29 -2
- package/dist/effect/extensions.d.ts +12 -12
- package/dist/effect/extensions.js +21 -2
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +14 -3
- package/dist/{analytics-CaqPRsry.js → effect/generated/analytics.js} +4 -23
- package/dist/{api-keys-Ce1Y4_Ip.js → effect/generated/api-keys.js} +4 -29
- package/dist/{attachments-DYqVIraC.js → effect/generated/attachments.js} +3 -18
- package/dist/{brands-ZwuOGIWO.js → effect/generated/brands.js} +5 -25
- package/dist/{campaigns-DZlz1E9E.js → effect/generated/campaigns.js} +4 -35
- package/dist/effect/generated/contact-events.js +37 -0
- package/dist/effect/generated/contact-groups.d.ts +33 -3
- package/dist/{contact-groups-BLbFXnjq.js → effect/generated/contact-groups.js} +3 -30
- package/dist/effect/generated/contacts.d.ts +477 -54
- package/dist/{contacts-BbsoXXB4.js → effect/generated/contacts.js} +41 -89
- package/dist/effect/generated/conversations.d.ts +25 -25
- package/dist/{conversations-_sRHueML.js → effect/generated/conversations.js} +4 -37
- package/dist/{custom-fields-BHWbwlKn.js → effect/generated/custom-fields.js} +5 -19
- package/dist/{email-R0NAA9PW.js → effect/generated/email.js} +995 -1146
- package/dist/{events-CxbTUHYT.js → effect/generated/events.js} +3 -15
- package/dist/effect/generated/extension-installations.d.ts +44 -44
- package/dist/{extension-installations-CD94LPmk.js → effect/generated/extension-installations.js} +10 -29
- package/dist/effect/generated/extensions.d.ts +10 -10
- package/dist/{extensions-BKyNQLvu.js → effect/generated/extensions.js} +5 -20
- package/dist/{feedback-Bpa09JOS.js → effect/generated/feedback.js} +3 -12
- package/dist/{journeys-CARo_BJT.js → effect/generated/journeys.js} +3 -38
- package/dist/effect/generated/mailboxes.d.ts +310 -0
- package/dist/{mailboxes-BRDn7BIK.js → effect/generated/mailboxes.js} +829 -954
- package/dist/{media-VrrtNnft.js → effect/generated/media.js} +3 -3
- package/dist/effect/generated/messages.d.ts +31 -0
- package/dist/effect/generated/messages.js +677 -0
- package/dist/{namespaces-CcvEbG-y.js → effect/generated/namespaces.js} +3 -20
- package/dist/{operations-CmB3FHwf.js → effect/generated/operations.js} +3 -16
- package/dist/effect/generated/organizations.d.ts +13 -11
- package/dist/{organizations-A-plufWc.js → effect/generated/organizations.js} +9 -26
- package/dist/{scheduled-messages-DkKZRRaN.js → effect/generated/scheduled-messages.js} +4 -21
- package/dist/effect/generated/shared.d.ts +70 -20
- package/dist/effect/generated/shared.js +1073 -0
- package/dist/{subscriptions-DEXYtMXg.js → effect/generated/subscriptions.js} +3 -9
- package/dist/{templates-DZomxsG7.js → effect/generated/templates.js} +3 -78
- package/dist/effect/generated/unsubscribe-groups.d.ts +173 -78
- package/dist/{unsubscribe-groups-Iqk4Isf9.js → effect/generated/unsubscribe-groups.js} +77 -84
- package/dist/effect/generated/webhooks.d.ts +19 -19
- package/dist/{webhooks-CPXuu8Xf.js → effect/generated/webhooks.js} +12 -34
- package/dist/{whoami-Ccz0jwlt.js → effect/generated/whoami.js} +5 -10
- package/dist/effect/generated-metadata.d.ts +7 -2
- package/dist/effect/generated-metadata.js +925 -0
- package/dist/effect/index.d.ts +1 -2
- package/dist/effect/index.js +32 -32
- package/dist/effect/internal/client.js +69 -0
- package/dist/effect/internal/email-sender.js +21 -0
- package/dist/effect/internal/mailbox-events.js +33 -0
- package/dist/effect/internal/operation.js +116 -0
- package/dist/effect/internal/send.js +56 -0
- package/dist/effect/journeys.d.ts +18 -18
- package/dist/effect/journeys.js +39 -2
- package/dist/effect/mailboxes.d.ts +314 -182
- package/dist/effect/mailboxes.js +135 -3
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +10 -10
- package/dist/effect/messages.d.ts +19 -14
- package/dist/effect/messages.js +15 -14
- package/dist/effect/namespaces.d.ts +7 -7
- package/dist/effect/namespaces.js +21 -2
- package/dist/effect/operations.d.ts +5 -5
- package/dist/effect/operations.js +17 -2
- package/dist/effect/organizations.d.ts +11 -11
- package/dist/effect/organizations.js +25 -2
- package/dist/effect/pagination.js +39 -0
- package/dist/effect/retry.js +3 -3
- package/dist/{runtime-P0l1_2-C.js → effect/runtime.js} +2 -2
- package/dist/effect/scheduled-messages.d.ts +7 -7
- package/dist/effect/scheduled-messages.js +21 -2
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +10 -2
- package/dist/effect/templates.d.ts +39 -39
- package/dist/effect/templates.js +80 -3
- package/dist/effect/unsubscribe-groups.d.ts +39 -28
- package/dist/effect/unsubscribe-groups.js +29 -2
- package/dist/effect/webhooks.d.ts +22 -22
- package/dist/effect/webhooks.js +35 -3
- package/dist/effect/whoami.d.ts +9 -9
- package/dist/effect/whoami.js +10 -2
- package/dist/index.js +4 -3
- package/dist/{inline-attachments-Bi1hDltp.js → inline-attachments.js} +13 -7
- package/dist/mailbox-events.d.ts +31 -4
- package/dist/{mailbox-events-VKR4f3qq.js → mailbox-events.js} +41 -13
- package/dist/{normalize-B79uJIeb.js → normalize.js} +2 -2
- package/dist/package.js +6 -0
- package/dist/promises/errors.gen.js +1340 -0
- package/dist/promises/index.d.ts +1 -1
- package/dist/promises/index.js +288 -3
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +9 -4
- package/dist/{operation-n_IYgNVK.js → service-map.js} +12 -150
- package/package.json +6 -2
- package/dist/categories-CA4XIQAb.js +0 -1011
- package/dist/client-DOzUrdTE.js +0 -1115
- package/dist/send-Bxc0XfGE.js +0 -722
package/dist/effect/contacts.js
CHANGED
|
@@ -1,2 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { ContactEventsGroup } from "./generated/contact-events.js";
|
|
4
|
+
import { ContactsGroup } from "./generated/contacts.js";
|
|
5
|
+
//#region src/effect/contacts.ts
|
|
6
|
+
var contacts_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
addIdentity: () => addIdentity,
|
|
8
|
+
addTags: () => addTags,
|
|
9
|
+
bulkDelete: () => bulkDelete,
|
|
10
|
+
bulkImport: () => bulkImport,
|
|
11
|
+
bulkUpdateStatus: () => bulkUpdateStatus,
|
|
12
|
+
bulkUpdateTags: () => bulkUpdateTags,
|
|
13
|
+
create: () => create,
|
|
14
|
+
export: () => exportContacts,
|
|
15
|
+
find: () => find,
|
|
16
|
+
findOrCreate: () => findOrCreate,
|
|
17
|
+
get: () => get,
|
|
18
|
+
getActivityTimeline: () => getActivityTimeline,
|
|
19
|
+
getEngagement: () => getEngagement,
|
|
20
|
+
getGroupMemberships: () => getGroupMemberships,
|
|
21
|
+
list: () => list,
|
|
22
|
+
listEvents: () => listEvents,
|
|
23
|
+
remove: () => remove,
|
|
24
|
+
removeIdentity: () => removeIdentity,
|
|
25
|
+
removeTags: () => removeTags,
|
|
26
|
+
setConsent: () => setConsent,
|
|
27
|
+
update: () => update
|
|
28
|
+
});
|
|
29
|
+
const make = /* @__PURE__ */ forGroup(ContactsGroup);
|
|
30
|
+
const list = /* @__PURE__ */ make("contactsList");
|
|
31
|
+
const create = /* @__PURE__ */ make("contactsCreate");
|
|
32
|
+
const find = /* @__PURE__ */ make("contactsFind");
|
|
33
|
+
const findOrCreate = /* @__PURE__ */ make("contactsFindOrCreate");
|
|
34
|
+
const get = /* @__PURE__ */ make("contactsGet");
|
|
35
|
+
const remove = /* @__PURE__ */ make("contactsRemove");
|
|
36
|
+
const update = /* @__PURE__ */ make("contactsUpdate");
|
|
37
|
+
const addIdentity = /* @__PURE__ */ make("contactsAddIdentity");
|
|
38
|
+
const removeIdentity = /* @__PURE__ */ make("contactsRemoveIdentity");
|
|
39
|
+
const setConsent = /* @__PURE__ */ make("contactsSetConsent");
|
|
40
|
+
const addTags = /* @__PURE__ */ make("contactsAddTags");
|
|
41
|
+
const removeTags = /* @__PURE__ */ make("contactsRemoveTags");
|
|
42
|
+
const getEngagement = /* @__PURE__ */ make("contactsGetEngagement");
|
|
43
|
+
const bulkImport = /* @__PURE__ */ make("contactsBulkImport");
|
|
44
|
+
const bulkDelete = /* @__PURE__ */ make("contactsBulkDelete");
|
|
45
|
+
const bulkUpdateTags = /* @__PURE__ */ make("contactsBulkUpdateTags");
|
|
46
|
+
const bulkUpdateStatus = /* @__PURE__ */ make("contactsBulkUpdateStatus");
|
|
47
|
+
const exportContacts = /* @__PURE__ */ make("contactsExport");
|
|
48
|
+
const getActivityTimeline = /* @__PURE__ */ make("contactsGetActivityTimeline");
|
|
49
|
+
const getGroupMemberships = /* @__PURE__ */ make("contactsGetGroupMemberships");
|
|
50
|
+
const listEvents = /* @__PURE__ */ forGroup(ContactEventsGroup)("contactEventsListEvents");
|
|
51
|
+
//#endregion
|
|
52
|
+
export { addIdentity, addTags, bulkDelete, bulkImport, bulkUpdateStatus, bulkUpdateTags, contacts_exports, create, exportContacts as export, find, findOrCreate, get, getActivityTimeline, getEngagement, getGroupMemberships, list, listEvents, remove, removeIdentity, removeTags, setConsent, update };
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=contacts.js.map
|
|
@@ -23,7 +23,7 @@ export declare const list: ((input?: {
|
|
|
23
23
|
readonly createdAt: string;
|
|
24
24
|
}[];
|
|
25
25
|
readonly nextCursor: string | null;
|
|
26
|
-
}, import("./
|
|
26
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
27
27
|
readonly pages: (input?: {
|
|
28
28
|
readonly limit?: string | null | undefined;
|
|
29
29
|
readonly cursor?: string | null | undefined;
|
|
@@ -49,7 +49,7 @@ export declare const list: ((input?: {
|
|
|
49
49
|
readonly createdAt: string;
|
|
50
50
|
}[];
|
|
51
51
|
readonly nextCursor: string | null;
|
|
52
|
-
}, import("./
|
|
52
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
53
53
|
readonly items: (input?: {
|
|
54
54
|
readonly limit?: string | null | undefined;
|
|
55
55
|
readonly cursor?: string | null | undefined;
|
|
@@ -72,7 +72,7 @@ export declare const list: ((input?: {
|
|
|
72
72
|
readonly messageCount: number;
|
|
73
73
|
readonly lastActivityAt: string;
|
|
74
74
|
readonly createdAt: string;
|
|
75
|
-
}, import("./
|
|
75
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
76
76
|
};
|
|
77
77
|
export declare const create: (input: {
|
|
78
78
|
readonly title?: string | null | undefined;
|
|
@@ -253,7 +253,7 @@ export declare const create: (input: {
|
|
|
253
253
|
readonly name: string;
|
|
254
254
|
readonly displayName: string | null;
|
|
255
255
|
readonly identities: readonly {
|
|
256
|
-
readonly
|
|
256
|
+
readonly type: "email" | "phone";
|
|
257
257
|
readonly identifier: string;
|
|
258
258
|
readonly verified: boolean;
|
|
259
259
|
}[];
|
|
@@ -265,7 +265,7 @@ export declare const create: (input: {
|
|
|
265
265
|
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
266
266
|
readonly resolutionNotes: string | null;
|
|
267
267
|
readonly updatedAt: string;
|
|
268
|
-
}, import("./
|
|
268
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
269
269
|
export declare const getById: (input: {
|
|
270
270
|
readonly id: string;
|
|
271
271
|
}) => import("effect/Effect").Effect<{
|
|
@@ -314,7 +314,7 @@ export declare const getById: (input: {
|
|
|
314
314
|
readonly name: string;
|
|
315
315
|
readonly displayName: string | null;
|
|
316
316
|
readonly identities: readonly {
|
|
317
|
-
readonly
|
|
317
|
+
readonly type: "email" | "phone";
|
|
318
318
|
readonly identifier: string;
|
|
319
319
|
readonly verified: boolean;
|
|
320
320
|
}[];
|
|
@@ -326,7 +326,7 @@ export declare const getById: (input: {
|
|
|
326
326
|
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
327
327
|
readonly resolutionNotes: string | null;
|
|
328
328
|
readonly updatedAt: string;
|
|
329
|
-
}, import("./
|
|
329
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
330
330
|
export declare const listMessages: ((input: {
|
|
331
331
|
readonly id: string;
|
|
332
332
|
readonly limit?: string | null | undefined;
|
|
@@ -346,7 +346,7 @@ export declare const listMessages: ((input: {
|
|
|
346
346
|
readonly createdAt: string;
|
|
347
347
|
}[];
|
|
348
348
|
readonly nextCursor: string | null;
|
|
349
|
-
}, import("./
|
|
349
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
350
350
|
readonly pages: (input: {
|
|
351
351
|
readonly id: string;
|
|
352
352
|
readonly limit?: string | null | undefined;
|
|
@@ -366,7 +366,7 @@ export declare const listMessages: ((input: {
|
|
|
366
366
|
readonly createdAt: string;
|
|
367
367
|
}[];
|
|
368
368
|
readonly nextCursor: string | null;
|
|
369
|
-
}, import("./
|
|
369
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
370
370
|
readonly items: (input: {
|
|
371
371
|
readonly id: string;
|
|
372
372
|
readonly limit?: string | null | undefined;
|
|
@@ -383,7 +383,7 @@ export declare const listMessages: ((input: {
|
|
|
383
383
|
readonly subject: string | null;
|
|
384
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
|
-
}, import("./
|
|
386
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
387
387
|
};
|
|
388
388
|
export declare const update: (input: {
|
|
389
389
|
readonly id: string;
|
|
@@ -562,7 +562,7 @@ export declare const update: (input: {
|
|
|
562
562
|
readonly name: string;
|
|
563
563
|
readonly displayName: string | null;
|
|
564
564
|
readonly identities: readonly {
|
|
565
|
-
readonly
|
|
565
|
+
readonly type: "email" | "phone";
|
|
566
566
|
readonly identifier: string;
|
|
567
567
|
readonly verified: boolean;
|
|
568
568
|
}[];
|
|
@@ -574,7 +574,7 @@ export declare const update: (input: {
|
|
|
574
574
|
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
575
575
|
readonly resolutionNotes: string | null;
|
|
576
576
|
readonly updatedAt: string;
|
|
577
|
-
}, import("./
|
|
577
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
578
578
|
export declare const addTags: (input: {
|
|
579
579
|
readonly id: string;
|
|
580
580
|
readonly tags: readonly string[];
|
|
@@ -624,7 +624,7 @@ export declare const addTags: (input: {
|
|
|
624
624
|
readonly name: string;
|
|
625
625
|
readonly displayName: string | null;
|
|
626
626
|
readonly identities: readonly {
|
|
627
|
-
readonly
|
|
627
|
+
readonly type: "email" | "phone";
|
|
628
628
|
readonly identifier: string;
|
|
629
629
|
readonly verified: boolean;
|
|
630
630
|
}[];
|
|
@@ -636,7 +636,7 @@ export declare const addTags: (input: {
|
|
|
636
636
|
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
637
637
|
readonly resolutionNotes: string | null;
|
|
638
638
|
readonly updatedAt: string;
|
|
639
|
-
}, import("./
|
|
639
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
640
640
|
export declare const removeTags: (input: {
|
|
641
641
|
readonly id: string;
|
|
642
642
|
readonly tags: readonly string[];
|
|
@@ -686,7 +686,7 @@ export declare const removeTags: (input: {
|
|
|
686
686
|
readonly name: string;
|
|
687
687
|
readonly displayName: string | null;
|
|
688
688
|
readonly identities: readonly {
|
|
689
|
-
readonly
|
|
689
|
+
readonly type: "email" | "phone";
|
|
690
690
|
readonly identifier: string;
|
|
691
691
|
readonly verified: boolean;
|
|
692
692
|
}[];
|
|
@@ -698,7 +698,7 @@ export declare const removeTags: (input: {
|
|
|
698
698
|
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
699
699
|
readonly resolutionNotes: string | null;
|
|
700
700
|
readonly updatedAt: string;
|
|
701
|
-
}, import("./
|
|
701
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
702
702
|
export declare const addCategories: (input: {
|
|
703
703
|
readonly id: string;
|
|
704
704
|
readonly categories: readonly string[];
|
|
@@ -748,7 +748,7 @@ export declare const addCategories: (input: {
|
|
|
748
748
|
readonly name: string;
|
|
749
749
|
readonly displayName: string | null;
|
|
750
750
|
readonly identities: readonly {
|
|
751
|
-
readonly
|
|
751
|
+
readonly type: "email" | "phone";
|
|
752
752
|
readonly identifier: string;
|
|
753
753
|
readonly verified: boolean;
|
|
754
754
|
}[];
|
|
@@ -760,7 +760,7 @@ export declare const addCategories: (input: {
|
|
|
760
760
|
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
761
761
|
readonly resolutionNotes: string | null;
|
|
762
762
|
readonly updatedAt: string;
|
|
763
|
-
}, import("./
|
|
763
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
764
764
|
export declare const removeCategories: (input: {
|
|
765
765
|
readonly id: string;
|
|
766
766
|
readonly categories: readonly string[];
|
|
@@ -810,7 +810,7 @@ export declare const removeCategories: (input: {
|
|
|
810
810
|
readonly name: string;
|
|
811
811
|
readonly displayName: string | null;
|
|
812
812
|
readonly identities: readonly {
|
|
813
|
-
readonly
|
|
813
|
+
readonly type: "email" | "phone";
|
|
814
814
|
readonly identifier: string;
|
|
815
815
|
readonly verified: boolean;
|
|
816
816
|
}[];
|
|
@@ -822,7 +822,7 @@ export declare const removeCategories: (input: {
|
|
|
822
822
|
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
823
823
|
readonly resolutionNotes: string | null;
|
|
824
824
|
readonly updatedAt: string;
|
|
825
|
-
}, import("./
|
|
825
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
826
826
|
export declare const addChannels: (input: {
|
|
827
827
|
readonly id: string;
|
|
828
828
|
readonly channels: readonly "email"[];
|
|
@@ -872,7 +872,7 @@ export declare const addChannels: (input: {
|
|
|
872
872
|
readonly name: string;
|
|
873
873
|
readonly displayName: string | null;
|
|
874
874
|
readonly identities: readonly {
|
|
875
|
-
readonly
|
|
875
|
+
readonly type: "email" | "phone";
|
|
876
876
|
readonly identifier: string;
|
|
877
877
|
readonly verified: boolean;
|
|
878
878
|
}[];
|
|
@@ -884,7 +884,7 @@ export declare const addChannels: (input: {
|
|
|
884
884
|
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
885
885
|
readonly resolutionNotes: string | null;
|
|
886
886
|
readonly updatedAt: string;
|
|
887
|
-
}, import("./
|
|
887
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
888
888
|
export declare const removeChannels: (input: {
|
|
889
889
|
readonly id: string;
|
|
890
890
|
readonly channels: readonly "email"[];
|
|
@@ -934,7 +934,7 @@ export declare const removeChannels: (input: {
|
|
|
934
934
|
readonly name: string;
|
|
935
935
|
readonly displayName: string | null;
|
|
936
936
|
readonly identities: readonly {
|
|
937
|
-
readonly
|
|
937
|
+
readonly type: "email" | "phone";
|
|
938
938
|
readonly identifier: string;
|
|
939
939
|
readonly verified: boolean;
|
|
940
940
|
}[];
|
|
@@ -946,7 +946,7 @@ export declare const removeChannels: (input: {
|
|
|
946
946
|
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
947
947
|
readonly resolutionNotes: string | null;
|
|
948
948
|
readonly updatedAt: string;
|
|
949
|
-
}, import("./
|
|
949
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
950
950
|
export declare const addContacts: (input: {
|
|
951
951
|
readonly id: string;
|
|
952
952
|
readonly contactIds: readonly string[];
|
|
@@ -996,7 +996,7 @@ export declare const addContacts: (input: {
|
|
|
996
996
|
readonly name: string;
|
|
997
997
|
readonly displayName: string | null;
|
|
998
998
|
readonly identities: readonly {
|
|
999
|
-
readonly
|
|
999
|
+
readonly type: "email" | "phone";
|
|
1000
1000
|
readonly identifier: string;
|
|
1001
1001
|
readonly verified: boolean;
|
|
1002
1002
|
}[];
|
|
@@ -1008,7 +1008,7 @@ export declare const addContacts: (input: {
|
|
|
1008
1008
|
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
1009
1009
|
readonly resolutionNotes: string | null;
|
|
1010
1010
|
readonly updatedAt: string;
|
|
1011
|
-
}, import("./
|
|
1011
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1012
1012
|
export declare const removeContacts: (input: {
|
|
1013
1013
|
readonly id: string;
|
|
1014
1014
|
readonly contactIds: readonly string[];
|
|
@@ -1058,7 +1058,7 @@ export declare const removeContacts: (input: {
|
|
|
1058
1058
|
readonly name: string;
|
|
1059
1059
|
readonly displayName: string | null;
|
|
1060
1060
|
readonly identities: readonly {
|
|
1061
|
-
readonly
|
|
1061
|
+
readonly type: "email" | "phone";
|
|
1062
1062
|
readonly identifier: string;
|
|
1063
1063
|
readonly verified: boolean;
|
|
1064
1064
|
}[];
|
|
@@ -1070,4 +1070,4 @@ export declare const removeContacts: (input: {
|
|
|
1070
1070
|
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
1071
1071
|
readonly resolutionNotes: string | null;
|
|
1072
1072
|
readonly updatedAt: string;
|
|
1073
|
-
}, import("./
|
|
1073
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
@@ -1,2 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { ConversationsGroup } from "./generated/conversations.js";
|
|
4
|
+
//#region src/effect/conversations.ts
|
|
5
|
+
var conversations_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
addCategories: () => addCategories,
|
|
7
|
+
addChannels: () => addChannels,
|
|
8
|
+
addContacts: () => addContacts,
|
|
9
|
+
addTags: () => addTags,
|
|
10
|
+
create: () => create,
|
|
11
|
+
getById: () => getById,
|
|
12
|
+
list: () => list,
|
|
13
|
+
listMessages: () => listMessages,
|
|
14
|
+
removeCategories: () => removeCategories,
|
|
15
|
+
removeChannels: () => removeChannels,
|
|
16
|
+
removeContacts: () => removeContacts,
|
|
17
|
+
removeTags: () => removeTags,
|
|
18
|
+
update: () => update
|
|
19
|
+
});
|
|
20
|
+
const make = /* @__PURE__ */ forGroup(ConversationsGroup);
|
|
21
|
+
const list = /* @__PURE__ */ make("conversationsList");
|
|
22
|
+
const create = /* @__PURE__ */ make("conversationsCreate");
|
|
23
|
+
const getById = /* @__PURE__ */ make("conversationsGetById");
|
|
24
|
+
const listMessages = /* @__PURE__ */ make("conversationsListMessages");
|
|
25
|
+
const update = /* @__PURE__ */ make("conversationsUpdate");
|
|
26
|
+
const addTags = /* @__PURE__ */ make("conversationsAddTags");
|
|
27
|
+
const removeTags = /* @__PURE__ */ make("conversationsRemoveTags");
|
|
28
|
+
const addCategories = /* @__PURE__ */ make("conversationsAddCategories");
|
|
29
|
+
const removeCategories = /* @__PURE__ */ make("conversationsRemoveCategories");
|
|
30
|
+
const addChannels = /* @__PURE__ */ make("conversationsAddChannels");
|
|
31
|
+
const removeChannels = /* @__PURE__ */ make("conversationsRemoveChannels");
|
|
32
|
+
const addContacts = /* @__PURE__ */ make("conversationsAddContacts");
|
|
33
|
+
const removeContacts = /* @__PURE__ */ make("conversationsRemoveContacts");
|
|
34
|
+
//#endregion
|
|
35
|
+
export { addCategories, addChannels, addContacts, addTags, conversations_exports, create, getById, list, listMessages, removeCategories, removeChannels, removeContacts, removeTags, update };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=conversations.js.map
|
|
@@ -12,7 +12,7 @@ export declare const list: (_?: never) => import("effect/Effect").Effect<{
|
|
|
12
12
|
readonly createdAt: string;
|
|
13
13
|
readonly updatedAt: string;
|
|
14
14
|
}[];
|
|
15
|
-
}, import("./
|
|
15
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
16
16
|
export declare const create: (input: {
|
|
17
17
|
readonly key: string;
|
|
18
18
|
readonly label: string;
|
|
@@ -33,7 +33,7 @@ export declare const create: (input: {
|
|
|
33
33
|
readonly sortOrder: number;
|
|
34
34
|
readonly createdAt: string;
|
|
35
35
|
readonly updatedAt: string;
|
|
36
|
-
}, import("./
|
|
36
|
+
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
37
37
|
export declare const update: (input: {
|
|
38
38
|
readonly id: string;
|
|
39
39
|
readonly label?: string | null | undefined;
|
|
@@ -53,9 +53,9 @@ export declare const update: (input: {
|
|
|
53
53
|
readonly sortOrder: number;
|
|
54
54
|
readonly createdAt: string;
|
|
55
55
|
readonly updatedAt: string;
|
|
56
|
-
}, import("./
|
|
56
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
57
57
|
export declare const remove: (input: {
|
|
58
58
|
readonly id: string;
|
|
59
59
|
}) => import("effect/Effect").Effect<{
|
|
60
60
|
readonly success: boolean;
|
|
61
|
-
}, import("./
|
|
61
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { CustomFieldsGroup } from "./generated/custom-fields.js";
|
|
4
|
+
//#region src/effect/custom-fields.ts
|
|
5
|
+
var custom_fields_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
create: () => create,
|
|
7
|
+
list: () => list,
|
|
8
|
+
remove: () => remove,
|
|
9
|
+
update: () => update
|
|
10
|
+
});
|
|
11
|
+
const make = /* @__PURE__ */ forGroup(CustomFieldsGroup);
|
|
12
|
+
const list = /* @__PURE__ */ make("customFieldsList");
|
|
13
|
+
const create = /* @__PURE__ */ make("customFieldsCreate");
|
|
14
|
+
const update = /* @__PURE__ */ make("customFieldsUpdate");
|
|
15
|
+
const remove = /* @__PURE__ */ make("customFieldsRemove");
|
|
16
|
+
//#endregion
|
|
17
|
+
export { create, custom_fields_exports, list, remove, update };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=custom-fields.js.map
|