samva 0.27.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 +12 -7
- package/dist/client/sdk.gen.d.ts +322 -143
- package/dist/client/sdk.gen.js +604 -95
- package/dist/client/types.gen.d.ts +1342 -479
- package/dist/effect/agents.d.ts +6 -8
- package/dist/effect/analytics.d.ts +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 +2 -3
- 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 +40 -40
- package/dist/effect/generated/email.js +15 -15
- 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 +172 -124
- 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 +396 -107
- package/dist/effect/generated/shared.js +170 -89
- 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 +2 -1
- package/dist/effect/index.js +4 -3
- package/dist/effect/internal/operation.js +3 -3
- package/dist/effect/internal/send.d.ts +4 -4
- package/dist/effect/journeys.d.ts +7 -7
- 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 +5 -3
- package/dist/promises/index.js +7 -5
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +74 -25
- package/dist/service-map.js +43 -12
- package/package.json +12 -8
- 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
package/dist/effect/agents.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const list: ((input?: {
|
|
2
|
-
readonly limit?:
|
|
2
|
+
readonly limit?: number | null | undefined;
|
|
3
3
|
readonly cursor?: string | null | undefined;
|
|
4
4
|
} | undefined) => import("./internal/operation").OperationResult<"agentsList">) & {
|
|
5
5
|
readonly pages: (input?: {
|
|
6
|
-
readonly limit?:
|
|
6
|
+
readonly limit?: number | null | undefined;
|
|
7
7
|
readonly cursor?: string | null | undefined;
|
|
8
8
|
} | undefined) => import("effect/Stream").Stream<{
|
|
9
9
|
readonly items: readonly {
|
|
@@ -18,7 +18,7 @@ export declare const list: ((input?: {
|
|
|
18
18
|
readonly nextCursor: string | null;
|
|
19
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
20
|
readonly items: (input?: {
|
|
21
|
-
readonly limit?:
|
|
21
|
+
readonly limit?: number | null | undefined;
|
|
22
22
|
readonly cursor?: string | null | undefined;
|
|
23
23
|
} | undefined) => import("effect/Stream").Stream<{
|
|
24
24
|
readonly id: string & import("effect/Brand").Brand<"AgentId">;
|
|
@@ -40,7 +40,6 @@ export declare const create: (input: {
|
|
|
40
40
|
readonly integrationIds: readonly string[];
|
|
41
41
|
readonly mode: "live" | "supervised";
|
|
42
42
|
readonly model: "max" | "standard";
|
|
43
|
-
readonly approvalPolicy: "none" | "toolActions";
|
|
44
43
|
readonly workingHours: {
|
|
45
44
|
readonly timeZone: string;
|
|
46
45
|
readonly ranges: readonly {
|
|
@@ -72,7 +71,6 @@ export declare const replaceDraft: (input: {
|
|
|
72
71
|
readonly integrationIds: readonly string[];
|
|
73
72
|
readonly mode: "live" | "supervised";
|
|
74
73
|
readonly model: "max" | "standard";
|
|
75
|
-
readonly approvalPolicy: "none" | "toolActions";
|
|
76
74
|
readonly workingHours: {
|
|
77
75
|
readonly timeZone: string;
|
|
78
76
|
readonly ranges: readonly {
|
|
@@ -90,12 +88,12 @@ export declare const publish: (input: {
|
|
|
90
88
|
}) => import("./internal/operation").OperationResult<"agentsPublish">;
|
|
91
89
|
export declare const listVersions: ((input: {
|
|
92
90
|
readonly id: string;
|
|
93
|
-
readonly limit?:
|
|
91
|
+
readonly limit?: number | null | undefined;
|
|
94
92
|
readonly cursor?: string | null | undefined;
|
|
95
93
|
}) => import("./internal/operation").OperationResult<"agentsListVersions">) & {
|
|
96
94
|
readonly pages: (input: {
|
|
97
95
|
readonly id: string;
|
|
98
|
-
readonly limit?:
|
|
96
|
+
readonly limit?: number | null | undefined;
|
|
99
97
|
readonly cursor?: string | null | undefined;
|
|
100
98
|
}) => import("effect/Stream").Stream<{
|
|
101
99
|
readonly items: readonly {
|
|
@@ -107,7 +105,7 @@ export declare const listVersions: ((input: {
|
|
|
107
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>;
|
|
108
106
|
readonly items: (input: {
|
|
109
107
|
readonly id: string;
|
|
110
|
-
readonly limit?:
|
|
108
|
+
readonly limit?: number | null | undefined;
|
|
111
109
|
readonly cursor?: string | null | undefined;
|
|
112
110
|
}) => import("effect/Stream").Stream<{
|
|
113
111
|
readonly agentId: string & import("effect/Brand").Brand<"AgentId">;
|
|
@@ -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?: {
|
|
@@ -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;
|