samva 0.10.0 → 0.11.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/README.md +59 -9
- package/dist/client/sdk.gen.d.ts +1106 -215
- package/dist/client/types.gen.d.ts +11522 -6311
- package/dist/{client-mI4S99Ts.js → client-8YXjfsVc.js} +5079 -1655
- package/dist/{client-attribution-Bl4nTEsE.js → client-attribution-Ct2FKITg.js} +2 -2
- package/dist/effect/analytics.d.ts +18 -18
- package/dist/effect/analytics.js +1 -1
- package/dist/effect/api-keys.d.ts +99 -43
- package/dist/effect/api-keys.js +2 -4
- package/dist/effect/attachments.d.ts +5 -6
- package/dist/effect/attachments.js +1 -1
- package/dist/effect/brands.d.ts +4 -4
- package/dist/effect/brands.js +2 -2
- package/dist/effect/campaigns.d.ts +30 -60
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contact-groups.d.ts +29 -46
- package/dist/effect/contact-groups.js +1 -1
- package/dist/effect/contacts.d.ts +324 -726
- package/dist/effect/contacts.js +10 -2
- package/dist/effect/conversations.d.ts +575 -1130
- package/dist/effect/conversations.js +14 -2
- package/dist/effect/custom-fields.d.ts +3 -53
- package/dist/effect/custom-fields.js +1 -1
- package/dist/effect/email.d.ts +263 -297
- package/dist/effect/email.js +5 -3
- package/dist/effect/extension-installations.d.ts +218 -0
- package/dist/effect/extension-installations.js +25 -0
- package/dist/effect/extensions.d.ts +192 -0
- package/dist/effect/extensions.js +19 -0
- package/dist/effect/feedback.d.ts +12 -0
- package/dist/effect/feedback.js +13 -0
- package/dist/effect/generated.d.ts +31266 -14269
- package/dist/effect/index.d.ts +6 -1
- package/dist/effect/index.js +7 -2
- package/dist/effect/internal/client.d.ts +3 -0
- package/dist/effect/internal/mailbox-events.d.ts +11 -0
- package/dist/effect/internal/operation.d.ts +20 -374
- package/dist/effect/mailboxes.d.ts +1676 -0
- package/dist/effect/mailboxes.js +3 -0
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +171 -938
- package/dist/effect/messages.js +6 -2
- package/dist/effect/namespaces.d.ts +82 -0
- package/dist/effect/namespaces.js +19 -0
- package/dist/effect/operations.d.ts +68 -12
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +5 -4
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/pagination.d.ts +16 -21
- package/dist/effect/scheduled-messages.d.ts +13 -23
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +204 -281
- package/dist/effect/templates.js +2 -2
- package/dist/effect/unsubscribe-groups.d.ts +21 -75
- package/dist/effect/unsubscribe-groups.js +1 -1
- package/dist/effect/webhooks.d.ts +117 -39
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +3 -2
- package/dist/mailbox-events-CcWm8lO4.js +617 -0
- package/dist/mailbox-events.d.ts +175 -0
- package/dist/mailboxes-4gJMAJh4.js +147 -0
- package/dist/{operation-DQWJO4jY.js → operation-BuyvAsZ1.js} +403 -67
- package/dist/promises/errors.gen.d.ts +5 -0
- package/dist/promises/index.d.ts +23 -1
- package/dist/promises/index.js +3 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-C7D4oaHn.js → promises-CqAmI39P.js} +3242 -556
- package/dist/service-map.d.ts +458 -36
- package/package.json +22 -2
|
@@ -1,13 +1,19 @@
|
|
|
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-BuyvAsZ1.js";
|
|
3
3
|
//#region src/effect/conversations.ts
|
|
4
4
|
var conversations_exports = /* @__PURE__ */ __exportAll({
|
|
5
|
+
addCategories: () => addCategories,
|
|
6
|
+
addChannels: () => addChannels,
|
|
5
7
|
addContacts: () => addContacts,
|
|
8
|
+
addTags: () => addTags,
|
|
6
9
|
create: () => create,
|
|
7
10
|
getById: () => getById,
|
|
8
11
|
list: () => list,
|
|
9
12
|
listMessages: () => listMessages,
|
|
13
|
+
removeCategories: () => removeCategories,
|
|
14
|
+
removeChannels: () => removeChannels,
|
|
10
15
|
removeContacts: () => removeContacts,
|
|
16
|
+
removeTags: () => removeTags,
|
|
11
17
|
update: () => update
|
|
12
18
|
});
|
|
13
19
|
const list = make("conversationsList");
|
|
@@ -15,9 +21,15 @@ const create = make("conversationsCreate");
|
|
|
15
21
|
const getById = make("conversationsGetById");
|
|
16
22
|
const listMessages = make("conversationsListMessages");
|
|
17
23
|
const update = make("conversationsUpdate");
|
|
24
|
+
const addTags = make("conversationsAddTags");
|
|
25
|
+
const removeTags = make("conversationsRemoveTags");
|
|
26
|
+
const addCategories = make("conversationsAddCategories");
|
|
27
|
+
const removeCategories = make("conversationsRemoveCategories");
|
|
28
|
+
const addChannels = make("conversationsAddChannels");
|
|
29
|
+
const removeChannels = make("conversationsRemoveChannels");
|
|
18
30
|
const addContacts = make("conversationsAddContacts");
|
|
19
31
|
const removeContacts = make("conversationsRemoveContacts");
|
|
20
32
|
//#endregion
|
|
21
|
-
export { addContacts, create, getById, list, listMessages, removeContacts, conversations_exports as t, update };
|
|
33
|
+
export { addCategories, addChannels, addContacts, addTags, create, getById, list, listMessages, removeCategories, removeChannels, removeContacts, removeTags, conversations_exports as t, update };
|
|
22
34
|
|
|
23
35
|
//# sourceMappingURL=conversations.js.map
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
export declare const list: (
|
|
2
|
-
readonly page?: string | null | undefined;
|
|
3
|
-
readonly limit?: string | null | undefined;
|
|
4
|
-
} | undefined) => import("effect/Effect").Effect<{
|
|
1
|
+
export declare const list: (_?: never) => import("effect/Effect").Effect<{
|
|
5
2
|
readonly items: readonly {
|
|
6
3
|
readonly id: string & import("effect/Brand").Brand<"CustomFieldDefinitionId">;
|
|
7
4
|
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
@@ -15,54 +12,7 @@ export declare const list: ((input?: {
|
|
|
15
12
|
readonly createdAt: string;
|
|
16
13
|
readonly updatedAt: string;
|
|
17
14
|
}[];
|
|
18
|
-
|
|
19
|
-
readonly page: number;
|
|
20
|
-
readonly limit: number;
|
|
21
|
-
readonly total: number;
|
|
22
|
-
readonly totalPages: number;
|
|
23
|
-
};
|
|
24
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
|
|
25
|
-
readonly pages: (input?: {
|
|
26
|
-
readonly page?: string | null | undefined;
|
|
27
|
-
readonly limit?: string | null | undefined;
|
|
28
|
-
} | undefined) => import("effect/Stream").Stream<{
|
|
29
|
-
readonly items: readonly {
|
|
30
|
-
readonly id: string & import("effect/Brand").Brand<"CustomFieldDefinitionId">;
|
|
31
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
32
|
-
readonly key: string;
|
|
33
|
-
readonly label: string;
|
|
34
|
-
readonly type: "boolean" | "date" | "number" | "select" | "text";
|
|
35
|
-
readonly options: readonly string[] | null;
|
|
36
|
-
readonly defaultValue: string | null;
|
|
37
|
-
readonly isRequired: boolean;
|
|
38
|
-
readonly sortOrder: number;
|
|
39
|
-
readonly createdAt: string;
|
|
40
|
-
readonly updatedAt: string;
|
|
41
|
-
}[];
|
|
42
|
-
readonly pagination: {
|
|
43
|
-
readonly page: number;
|
|
44
|
-
readonly limit: number;
|
|
45
|
-
readonly total: number;
|
|
46
|
-
readonly totalPages: number;
|
|
47
|
-
};
|
|
48
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
49
|
-
readonly items: (input?: {
|
|
50
|
-
readonly page?: string | null | undefined;
|
|
51
|
-
readonly limit?: string | null | undefined;
|
|
52
|
-
} | undefined) => import("effect/Stream").Stream<{
|
|
53
|
-
readonly id: string & import("effect/Brand").Brand<"CustomFieldDefinitionId">;
|
|
54
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
55
|
-
readonly key: string;
|
|
56
|
-
readonly label: string;
|
|
57
|
-
readonly type: "boolean" | "date" | "number" | "select" | "text";
|
|
58
|
-
readonly options: readonly string[] | null;
|
|
59
|
-
readonly defaultValue: string | null;
|
|
60
|
-
readonly isRequired: boolean;
|
|
61
|
-
readonly sortOrder: number;
|
|
62
|
-
readonly createdAt: string;
|
|
63
|
-
readonly updatedAt: string;
|
|
64
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
65
|
-
};
|
|
15
|
+
}, 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>;
|
|
66
16
|
export declare const create: (input: {
|
|
67
17
|
readonly key: string;
|
|
68
18
|
readonly label: string;
|
|
@@ -108,4 +58,4 @@ export declare const remove: (input: {
|
|
|
108
58
|
readonly id: string;
|
|
109
59
|
}) => import("effect/Effect").Effect<{
|
|
110
60
|
readonly success: boolean;
|
|
111
|
-
}, 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("./client").Service>;
|
|
61
|
+
}, 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>;
|
|
@@ -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-BuyvAsZ1.js";
|
|
3
3
|
//#region src/effect/custom-fields.ts
|
|
4
4
|
var custom_fields_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
create: () => create,
|