samva 0.26.0 → 0.28.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 +7 -0
- package/README.md +14 -7
- package/dist/client/sdk.gen.d.ts +322 -143
- package/dist/client/sdk.gen.js +1085 -332
- package/dist/client/types.gen.d.ts +1342 -479
- package/dist/effect/agents.d.ts +119 -0
- package/dist/effect/agents.js +29 -0
- package/dist/effect/analytics.d.ts +1 -1
- package/dist/effect/analytics.js +1 -1
- package/dist/effect/api-keys.d.ts +6 -6
- package/dist/effect/attachments.d.ts +1 -1
- package/dist/effect/brands.d.ts +2 -0
- package/dist/effect/campaigns.d.ts +275 -25
- package/dist/effect/campaigns.js +7 -1
- package/dist/effect/contact-groups.d.ts +9 -9
- package/dist/effect/contacts.d.ts +74 -81
- package/dist/effect/contacts.js +7 -3
- package/dist/effect/conversations.d.ts +14 -6
- package/dist/effect/email.d.ts +34 -34
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +3 -3
- package/dist/effect/extensions.d.ts +6 -6
- package/dist/effect/generated/agents.d.ts +6 -28
- package/dist/effect/generated/agents.js +270 -0
- package/dist/effect/generated/analytics.d.ts +3 -3
- package/dist/effect/generated/analytics.js +1 -1
- package/dist/effect/generated/api-keys.d.ts +6 -6
- package/dist/effect/generated/api-keys.js +2 -2
- package/dist/effect/generated/attachments.d.ts +3 -3
- package/dist/effect/generated/attachments.js +1 -1
- package/dist/effect/generated/brands.d.ts +16 -0
- package/dist/effect/generated/campaigns.d.ts +1181 -302
- package/dist/effect/generated/campaigns.js +169 -36
- package/dist/effect/generated/contact-events.d.ts +3 -3
- package/dist/effect/generated/contact-events.js +1 -1
- package/dist/effect/generated/contact-groups.d.ts +9 -9
- package/dist/effect/generated/contact-groups.js +7 -7
- package/dist/effect/generated/contacts.d.ts +2063 -290
- package/dist/effect/generated/contacts.js +343 -75
- package/dist/effect/generated/conversations.d.ts +14 -6
- package/dist/effect/generated/conversations.js +6 -6
- package/dist/effect/generated/email.d.ts +55 -70
- package/dist/effect/generated/email.js +18 -21
- package/dist/effect/generated/extension-installations.d.ts +3 -3
- package/dist/effect/generated/extension-installations.js +1 -1
- package/dist/effect/generated/extensions.d.ts +6 -6
- package/dist/effect/generated/extensions.js +2 -2
- package/dist/effect/generated/index.d.ts +5 -3
- package/dist/effect/generated/journeys.d.ts +9 -9
- package/dist/effect/generated/journeys.js +3 -3
- package/dist/effect/generated/mailboxes.d.ts +466 -712
- package/dist/effect/generated/mailboxes.js +22 -14
- package/dist/effect/generated/messages.d.ts +53 -29
- package/dist/effect/generated/messages.js +9 -5
- package/dist/effect/generated/namespaces.d.ts +3 -3
- package/dist/effect/generated/namespaces.js +1 -1
- package/dist/effect/generated/operations.d.ts +3 -3
- package/dist/effect/generated/operations.js +1 -1
- package/dist/effect/generated/organizations.d.ts +0 -9
- package/dist/effect/generated/organizations.js +1 -4
- package/dist/effect/generated/scheduled-messages.d.ts +69 -20
- package/dist/effect/generated/scheduled-messages.js +22 -3
- package/dist/effect/generated/shared.d.ts +431 -177
- package/dist/effect/generated/shared.js +216 -108
- package/dist/effect/generated/subscriptions.d.ts +4 -7
- package/dist/effect/generated/subscriptions.js +3 -4
- package/dist/effect/generated/templates.d.ts +71 -407
- package/dist/effect/generated/templates.js +23 -23
- package/dist/effect/generated/topic-forms.d.ts +656 -0
- package/dist/effect/generated/topic-forms.js +145 -0
- package/dist/effect/generated/{unsubscribe-groups.d.ts → topics.d.ts} +640 -435
- package/dist/effect/generated/topics.js +267 -0
- package/dist/effect/generated/webhooks.d.ts +6 -6
- package/dist/effect/generated/webhooks.js +2 -2
- package/dist/effect/generated-metadata.d.ts +78 -24
- package/dist/effect/generated-metadata.js +61 -27
- package/dist/effect/index.d.ts +3 -1
- package/dist/effect/index.js +5 -3
- package/dist/effect/internal/operation.js +4 -3
- package/dist/effect/internal/send.d.ts +4 -4
- package/dist/effect/journeys.d.ts +119 -119
- package/dist/effect/mailboxes.d.ts +137 -121
- package/dist/effect/messages.d.ts +19 -11
- package/dist/effect/namespaces.d.ts +3 -3
- package/dist/effect/operations.d.ts +3 -3
- package/dist/effect/scheduled-messages.d.ts +6 -6
- package/dist/effect/subscriptions.d.ts +1 -2
- package/dist/effect/templates.d.ts +13 -13
- package/dist/effect/topic-forms.d.ts +30 -0
- package/dist/effect/topic-forms.js +21 -0
- package/dist/effect/topics.d.ts +94 -0
- package/dist/effect/topics.js +29 -0
- package/dist/effect/webhooks.d.ts +6 -6
- package/dist/index.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/errors.gen.d.ts +65 -8
- package/dist/promises/errors.gen.js +139 -7
- package/dist/promises/index.d.ts +7 -3
- package/dist/promises/index.js +9 -5
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +117 -23
- package/dist/service-map.js +71 -10
- package/package.json +17 -9
- package/dist/effect/generated/unsubscribe-groups.js +0 -284
- package/dist/effect/unsubscribe-groups.d.ts +0 -74
- package/dist/effect/unsubscribe-groups.js +0 -29
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
export declare const list: ((input?: {
|
|
2
|
+
readonly limit?: number | null | undefined;
|
|
3
|
+
readonly cursor?: string | null | undefined;
|
|
4
|
+
} | undefined) => import("./internal/operation").OperationResult<"agentsList">) & {
|
|
5
|
+
readonly pages: (input?: {
|
|
6
|
+
readonly limit?: number | null | undefined;
|
|
7
|
+
readonly cursor?: string | null | undefined;
|
|
8
|
+
} | undefined) => import("effect/Stream").Stream<{
|
|
9
|
+
readonly items: readonly {
|
|
10
|
+
readonly id: string & import("effect/Brand").Brand<"AgentId">;
|
|
11
|
+
readonly name: string;
|
|
12
|
+
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
13
|
+
readonly publishedVersion: number | null;
|
|
14
|
+
readonly publishedAt: string | null;
|
|
15
|
+
readonly createdAt: string;
|
|
16
|
+
readonly updatedAt: string;
|
|
17
|
+
}[];
|
|
18
|
+
readonly nextCursor: string | null;
|
|
19
|
+
}, 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>;
|
|
20
|
+
readonly items: (input?: {
|
|
21
|
+
readonly limit?: number | null | undefined;
|
|
22
|
+
readonly cursor?: string | null | undefined;
|
|
23
|
+
} | undefined) => import("effect/Stream").Stream<{
|
|
24
|
+
readonly id: string & import("effect/Brand").Brand<"AgentId">;
|
|
25
|
+
readonly name: string;
|
|
26
|
+
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
27
|
+
readonly publishedVersion: number | null;
|
|
28
|
+
readonly publishedAt: string | null;
|
|
29
|
+
readonly createdAt: string;
|
|
30
|
+
readonly updatedAt: string;
|
|
31
|
+
}, 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>;
|
|
32
|
+
};
|
|
33
|
+
export declare const create: (input: {
|
|
34
|
+
readonly name: string;
|
|
35
|
+
readonly namespaceId?: string | null | undefined;
|
|
36
|
+
readonly definition?: {
|
|
37
|
+
readonly instructions: string;
|
|
38
|
+
readonly knowledge: string;
|
|
39
|
+
readonly endpointIds: readonly string[];
|
|
40
|
+
readonly integrationIds: readonly string[];
|
|
41
|
+
readonly mode: "live" | "supervised";
|
|
42
|
+
readonly model: "max" | "standard";
|
|
43
|
+
readonly workingHours: {
|
|
44
|
+
readonly timeZone: string;
|
|
45
|
+
readonly ranges: readonly {
|
|
46
|
+
readonly day: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
|
|
47
|
+
readonly opens: string;
|
|
48
|
+
readonly closes: string;
|
|
49
|
+
}[];
|
|
50
|
+
} | null;
|
|
51
|
+
readonly takeoverTimeoutMinutes: number;
|
|
52
|
+
} | null | undefined;
|
|
53
|
+
}) => import("./internal/operation").OperationResult<"agentsCreate">;
|
|
54
|
+
export declare const get: (input: {
|
|
55
|
+
readonly id: string;
|
|
56
|
+
}) => import("./internal/operation").OperationResult<"agentsGet">;
|
|
57
|
+
export declare const update: (input: {
|
|
58
|
+
readonly id: string;
|
|
59
|
+
readonly name: string;
|
|
60
|
+
}) => import("./internal/operation").OperationResult<"agentsUpdate">;
|
|
61
|
+
export declare const remove: (input: {
|
|
62
|
+
readonly id: string;
|
|
63
|
+
}) => import("./internal/operation").OperationResult<"agentsRemove">;
|
|
64
|
+
export declare const replaceDraft: (input: {
|
|
65
|
+
readonly id: string;
|
|
66
|
+
readonly revision: string;
|
|
67
|
+
readonly definition: {
|
|
68
|
+
readonly instructions: string;
|
|
69
|
+
readonly knowledge: string;
|
|
70
|
+
readonly endpointIds: readonly string[];
|
|
71
|
+
readonly integrationIds: readonly string[];
|
|
72
|
+
readonly mode: "live" | "supervised";
|
|
73
|
+
readonly model: "max" | "standard";
|
|
74
|
+
readonly workingHours: {
|
|
75
|
+
readonly timeZone: string;
|
|
76
|
+
readonly ranges: readonly {
|
|
77
|
+
readonly day: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
|
|
78
|
+
readonly opens: string;
|
|
79
|
+
readonly closes: string;
|
|
80
|
+
}[];
|
|
81
|
+
} | null;
|
|
82
|
+
readonly takeoverTimeoutMinutes: number;
|
|
83
|
+
};
|
|
84
|
+
}) => import("./internal/operation").OperationResult<"agentsReplaceDraft">;
|
|
85
|
+
export declare const publish: (input: {
|
|
86
|
+
readonly id: string;
|
|
87
|
+
readonly revision: string;
|
|
88
|
+
}) => import("./internal/operation").OperationResult<"agentsPublish">;
|
|
89
|
+
export declare const listVersions: ((input: {
|
|
90
|
+
readonly id: string;
|
|
91
|
+
readonly limit?: number | null | undefined;
|
|
92
|
+
readonly cursor?: string | null | undefined;
|
|
93
|
+
}) => import("./internal/operation").OperationResult<"agentsListVersions">) & {
|
|
94
|
+
readonly pages: (input: {
|
|
95
|
+
readonly id: string;
|
|
96
|
+
readonly limit?: number | null | undefined;
|
|
97
|
+
readonly cursor?: string | null | undefined;
|
|
98
|
+
}) => import("effect/Stream").Stream<{
|
|
99
|
+
readonly items: readonly {
|
|
100
|
+
readonly agentId: string & import("effect/Brand").Brand<"AgentId">;
|
|
101
|
+
readonly version: number;
|
|
102
|
+
readonly publishedAt: string;
|
|
103
|
+
}[];
|
|
104
|
+
readonly nextCursor: string | null;
|
|
105
|
+
}, 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>;
|
|
106
|
+
readonly items: (input: {
|
|
107
|
+
readonly id: string;
|
|
108
|
+
readonly limit?: number | null | undefined;
|
|
109
|
+
readonly cursor?: string | null | undefined;
|
|
110
|
+
}) => import("effect/Stream").Stream<{
|
|
111
|
+
readonly agentId: string & import("effect/Brand").Brand<"AgentId">;
|
|
112
|
+
readonly version: number;
|
|
113
|
+
readonly publishedAt: string;
|
|
114
|
+
}, 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>;
|
|
115
|
+
};
|
|
116
|
+
export declare const getVersion: (input: {
|
|
117
|
+
readonly id: string;
|
|
118
|
+
readonly version: string;
|
|
119
|
+
}) => import("./internal/operation").OperationResult<"agentsGetVersion">;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { AgentsGroup } from "./generated/agents.js";
|
|
3
|
+
import { forGroup } from "./internal/operation.js";
|
|
4
|
+
//#region src/effect/agents.ts
|
|
5
|
+
var agents_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
create: () => create,
|
|
7
|
+
get: () => get,
|
|
8
|
+
getVersion: () => getVersion,
|
|
9
|
+
list: () => list,
|
|
10
|
+
listVersions: () => listVersions,
|
|
11
|
+
publish: () => publish,
|
|
12
|
+
remove: () => remove,
|
|
13
|
+
replaceDraft: () => replaceDraft,
|
|
14
|
+
update: () => update
|
|
15
|
+
});
|
|
16
|
+
const make = /* @__PURE__ */ forGroup(AgentsGroup);
|
|
17
|
+
const list = /* @__PURE__ */ make("agentsList");
|
|
18
|
+
const create = /* @__PURE__ */ make("agentsCreate");
|
|
19
|
+
const get = /* @__PURE__ */ make("agentsGet");
|
|
20
|
+
const update = /* @__PURE__ */ make("agentsUpdate");
|
|
21
|
+
const remove = /* @__PURE__ */ make("agentsRemove");
|
|
22
|
+
const replaceDraft = /* @__PURE__ */ make("agentsReplaceDraft");
|
|
23
|
+
const publish = /* @__PURE__ */ make("agentsPublish");
|
|
24
|
+
const listVersions = /* @__PURE__ */ make("agentsListVersions");
|
|
25
|
+
const getVersion = /* @__PURE__ */ make("agentsGetVersion");
|
|
26
|
+
//#endregion
|
|
27
|
+
export { agents_exports, create, get, getVersion, list, listVersions, publish, remove, replaceDraft, update };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=agents.js.map
|
|
@@ -11,7 +11,7 @@ export declare const getChannelStats: (input?: {
|
|
|
11
11
|
export declare const getTopContacts: (input?: {
|
|
12
12
|
readonly after?: Date | null | undefined;
|
|
13
13
|
readonly before?: Date | null | undefined;
|
|
14
|
-
readonly limit?:
|
|
14
|
+
readonly limit?: number | null | undefined;
|
|
15
15
|
readonly sortBy?: "received" | "sent" | "total" | null | undefined;
|
|
16
16
|
} | undefined) => import("./internal/operation").OperationResult<"analyticsGetTopContacts">;
|
|
17
17
|
export declare const getHourlyDistribution: (input?: {
|
package/dist/effect/analytics.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { AnalyticsGroup } from "./generated/analytics.js";
|
|
3
2
|
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { AnalyticsGroup } from "./generated/analytics.js";
|
|
4
4
|
//#region src/effect/analytics.ts
|
|
5
5
|
var analytics_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
exportData: () => exportData,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { ApiKeysCreateRequestJson as CreatePayload, ApiKeysUpdateRequestJson as UpdatePayload, } from "./generated/api-keys";
|
|
2
2
|
export declare const list: ((input?: {
|
|
3
|
-
readonly limit?:
|
|
3
|
+
readonly limit?: number | null | undefined;
|
|
4
4
|
readonly cursor?: string | null | undefined;
|
|
5
5
|
readonly status?: "active" | "revoked" | null | undefined;
|
|
6
6
|
readonly search?: string | null | undefined;
|
|
7
7
|
} | undefined) => import("./internal/operation").OperationResult<"apiKeysList">) & {
|
|
8
8
|
readonly pages: (input?: {
|
|
9
|
-
readonly limit?:
|
|
9
|
+
readonly limit?: number | null | undefined;
|
|
10
10
|
readonly cursor?: string | null | undefined;
|
|
11
11
|
readonly status?: "active" | "revoked" | null | undefined;
|
|
12
12
|
readonly search?: string | null | undefined;
|
|
@@ -57,7 +57,7 @@ export declare const list: ((input?: {
|
|
|
57
57
|
readonly nextCursor: string | null;
|
|
58
58
|
}, 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>;
|
|
59
59
|
readonly items: (input?: {
|
|
60
|
-
readonly limit?:
|
|
60
|
+
readonly limit?: number | null | undefined;
|
|
61
61
|
readonly cursor?: string | null | undefined;
|
|
62
62
|
readonly status?: "active" | "revoked" | null | undefined;
|
|
63
63
|
readonly search?: string | null | undefined;
|
|
@@ -160,12 +160,12 @@ export declare const getStats: (input: {
|
|
|
160
160
|
}) => import("./internal/operation").OperationResult<"apiKeysGetStats">;
|
|
161
161
|
export declare const getActivity: ((input: {
|
|
162
162
|
readonly id: string;
|
|
163
|
-
readonly limit?:
|
|
163
|
+
readonly limit?: number | null | undefined;
|
|
164
164
|
readonly cursor?: string | null | undefined;
|
|
165
165
|
}) => import("./internal/operation").OperationResult<"apiKeysGetActivity">) & {
|
|
166
166
|
readonly pages: (input: {
|
|
167
167
|
readonly id: string;
|
|
168
|
-
readonly limit?:
|
|
168
|
+
readonly limit?: number | null | undefined;
|
|
169
169
|
readonly cursor?: string | null | undefined;
|
|
170
170
|
}) => import("effect/Stream").Stream<{
|
|
171
171
|
readonly items: readonly {
|
|
@@ -180,7 +180,7 @@ export declare const getActivity: ((input: {
|
|
|
180
180
|
}, 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>;
|
|
181
181
|
readonly items: (input: {
|
|
182
182
|
readonly id: string;
|
|
183
|
-
readonly limit?:
|
|
183
|
+
readonly limit?: number | null | undefined;
|
|
184
184
|
readonly cursor?: string | null | undefined;
|
|
185
185
|
}) => import("effect/Stream").Stream<{
|
|
186
186
|
readonly id: string;
|
|
@@ -9,5 +9,5 @@ export declare const remove: (input: {
|
|
|
9
9
|
}) => import("./internal/operation").OperationResult<"attachmentsRemove">;
|
|
10
10
|
export declare const downloadUrl: (input: {
|
|
11
11
|
readonly id: string;
|
|
12
|
-
readonly expiresIn?:
|
|
12
|
+
readonly expiresIn?: number | null | undefined;
|
|
13
13
|
}) => import("./internal/operation").OperationResult<"attachmentsDownloadUrl">;
|
package/dist/effect/brands.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare const create: (input: {
|
|
|
11
11
|
} | null | undefined;
|
|
12
12
|
readonly footer?: {
|
|
13
13
|
readonly companyName?: string | null | undefined;
|
|
14
|
+
readonly websiteUrl?: string | null | undefined;
|
|
14
15
|
readonly address?: {
|
|
15
16
|
readonly street1: string;
|
|
16
17
|
readonly street2?: string | null | undefined;
|
|
@@ -41,6 +42,7 @@ export declare const update: (input: {
|
|
|
41
42
|
} | null | undefined;
|
|
42
43
|
readonly footer?: {
|
|
43
44
|
readonly companyName?: string | null | undefined;
|
|
45
|
+
readonly websiteUrl?: string | null | undefined;
|
|
44
46
|
readonly address?: {
|
|
45
47
|
readonly street1: string;
|
|
46
48
|
readonly street2?: string | null | undefined;
|