samva 0.13.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-Bcwq5jPV.js → categories-BGUBFdH9.js} +9 -1
- package/dist/client/sdk.gen.d.ts +105 -18
- package/dist/client/types.gen.d.ts +786 -118
- package/dist/{client-DYPNDvVU.js → client-CZjhOKPM.js} +694 -122
- 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 +12 -12
- 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 -9
- package/dist/effect/contact-groups.js +1 -1
- package/dist/effect/contacts.d.ts +126 -73
- 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 +26 -26
- package/dist/effect/email.js +2 -2
- package/dist/effect/extension-installations.d.ts +3 -3
- package/dist/effect/extension-installations.js +1 -1
- 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 +8 -0
- package/dist/effect/generated.d.ts +6184 -1243
- package/dist/effect/index.d.ts +2 -1
- package/dist/effect/index.js +6 -5
- package/dist/effect/internal/client.d.ts +2 -2
- package/dist/effect/internal/operation.d.ts +9 -9
- package/dist/effect/mailboxes.d.ts +1726 -109
- 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 +19 -17
- 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 +6 -6
- 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 -4
- package/dist/{inline-attachments-B56eS0MF.js → inline-attachments-BrNnSMF2.js} +2 -2
- package/dist/{mailbox-events-CsbF35vH.js → mailbox-events-VKR4f3qq.js} +6 -4
- package/dist/mailbox-events.d.ts +1 -1
- package/dist/{mailboxes-D3Kx7elM.js → mailboxes-DT02zP7q.js} +13 -5
- package/dist/{operation-B_Ty1LG-.js → operation-g8nAzmIM.js} +29 -3
- package/dist/promises/errors.gen.d.ts +26 -2
- package/dist/promises/index.d.ts +6 -4
- package/dist/promises/index.js +4 -4
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-D9FJyU0q.js → promises-BFRKhpSS.js} +941 -38
- package/dist/service-map.d.ts +35 -0
- package/package.json +7 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const getStats: (input?: {
|
|
2
2
|
readonly after?: Date | null | undefined;
|
|
3
3
|
readonly before?: Date | null | undefined;
|
|
4
|
-
readonly groupBy?:
|
|
5
|
-
readonly channel?:
|
|
4
|
+
readonly groupBy?: "day" | "month" | "week" | null | undefined;
|
|
5
|
+
readonly channel?: "email" | null | undefined;
|
|
6
6
|
} | undefined) => import("effect/Effect").Effect<{
|
|
7
7
|
readonly volumeHistory: readonly {
|
|
8
8
|
readonly date: string;
|
|
@@ -29,7 +29,7 @@ export declare const getTopContacts: (input?: {
|
|
|
29
29
|
readonly after?: Date | null | undefined;
|
|
30
30
|
readonly before?: Date | null | undefined;
|
|
31
31
|
readonly limit?: string | null | undefined;
|
|
32
|
-
readonly sortBy?:
|
|
32
|
+
readonly sortBy?: "received" | "sent" | "total" | null | undefined;
|
|
33
33
|
} | undefined) => import("effect/Effect").Effect<readonly {
|
|
34
34
|
readonly id: string;
|
|
35
35
|
readonly name: string | null;
|
|
@@ -47,7 +47,7 @@ export declare const getHourlyDistribution: (input?: {
|
|
|
47
47
|
export declare const getDeliveryMetrics: (input?: {
|
|
48
48
|
readonly after?: Date | null | undefined;
|
|
49
49
|
readonly before?: Date | null | undefined;
|
|
50
|
-
readonly channel?:
|
|
50
|
+
readonly channel?: "email" | null | undefined;
|
|
51
51
|
} | undefined) => import("effect/Effect").Effect<{
|
|
52
52
|
readonly deliveredRate: number;
|
|
53
53
|
readonly failedRate: number;
|
|
@@ -57,8 +57,8 @@ export declare const getDeliveryMetrics: (input?: {
|
|
|
57
57
|
export declare const exportData: (input: {
|
|
58
58
|
readonly after: Date;
|
|
59
59
|
readonly before: Date;
|
|
60
|
-
readonly format?:
|
|
61
|
-
readonly includeChannels?: readonly
|
|
60
|
+
readonly format?: "csv" | "json" | null | undefined;
|
|
61
|
+
readonly includeChannels?: readonly "email"[] | null | undefined;
|
|
62
62
|
}) => import("effect/Effect").Effect<{
|
|
63
63
|
readonly content: string;
|
|
64
64
|
readonly mimeType: string;
|
package/dist/effect/analytics.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/analytics.ts
|
|
4
4
|
var analytics_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
exportData: () => exportData,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const list: ((input?: {
|
|
2
2
|
readonly limit?: string | null | undefined;
|
|
3
3
|
readonly cursor?: string | null | undefined;
|
|
4
|
-
readonly status?:
|
|
4
|
+
readonly status?: "active" | "revoked" | null | undefined;
|
|
5
5
|
readonly search?: string | null | undefined;
|
|
6
6
|
} | undefined) => import("effect/Effect").Effect<{
|
|
7
7
|
readonly items: readonly {
|
|
@@ -50,7 +50,7 @@ export declare const list: ((input?: {
|
|
|
50
50
|
readonly pages: (input?: {
|
|
51
51
|
readonly limit?: string | null | undefined;
|
|
52
52
|
readonly cursor?: string | null | undefined;
|
|
53
|
-
readonly status?:
|
|
53
|
+
readonly status?: "active" | "revoked" | null | undefined;
|
|
54
54
|
readonly search?: string | null | undefined;
|
|
55
55
|
} | undefined) => import("effect/Stream").Stream<{
|
|
56
56
|
readonly items: readonly {
|
|
@@ -99,7 +99,7 @@ export declare const list: ((input?: {
|
|
|
99
99
|
readonly items: (input?: {
|
|
100
100
|
readonly limit?: string | null | undefined;
|
|
101
101
|
readonly cursor?: string | null | undefined;
|
|
102
|
-
readonly status?:
|
|
102
|
+
readonly status?: "active" | "revoked" | null | undefined;
|
|
103
103
|
readonly search?: string | null | undefined;
|
|
104
104
|
} | undefined) => import("effect/Stream").Stream<{
|
|
105
105
|
readonly id: string;
|
|
@@ -148,27 +148,27 @@ export declare const create: (input: {
|
|
|
148
148
|
readonly description?: string | null | undefined;
|
|
149
149
|
readonly expiresAt?: string | null | undefined;
|
|
150
150
|
readonly access?: {
|
|
151
|
-
readonly mode:
|
|
151
|
+
readonly mode: "full";
|
|
152
152
|
} | {
|
|
153
|
-
readonly mode:
|
|
153
|
+
readonly mode: "restricted";
|
|
154
154
|
readonly resources: {
|
|
155
|
-
readonly messages?:
|
|
156
|
-
readonly email?:
|
|
157
|
-
readonly domains?:
|
|
158
|
-
readonly phoneNumbers?:
|
|
159
|
-
readonly contacts?:
|
|
160
|
-
readonly conversations?:
|
|
161
|
-
readonly templates?:
|
|
162
|
-
readonly webhooks?:
|
|
163
|
-
readonly apiKeys?:
|
|
164
|
-
readonly organization?:
|
|
165
|
-
readonly billing?:
|
|
166
|
-
readonly analytics?:
|
|
155
|
+
readonly messages?: "read" | "write" | null | undefined;
|
|
156
|
+
readonly email?: "read" | "write" | null | undefined;
|
|
157
|
+
readonly domains?: "read" | "write" | null | undefined;
|
|
158
|
+
readonly phoneNumbers?: "read" | "write" | null | undefined;
|
|
159
|
+
readonly contacts?: "read" | "write" | null | undefined;
|
|
160
|
+
readonly conversations?: "read" | "write" | null | undefined;
|
|
161
|
+
readonly templates?: "read" | "write" | null | undefined;
|
|
162
|
+
readonly webhooks?: "read" | "write" | null | undefined;
|
|
163
|
+
readonly apiKeys?: "read" | "write" | null | undefined;
|
|
164
|
+
readonly organization?: "read" | "write" | null | undefined;
|
|
165
|
+
readonly billing?: "read" | "write" | null | undefined;
|
|
166
|
+
readonly analytics?: "read" | "write" | null | undefined;
|
|
167
167
|
};
|
|
168
168
|
readonly mailboxes?: {
|
|
169
|
-
readonly permissions: readonly
|
|
169
|
+
readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
|
|
170
170
|
readonly mailboxIds?: readonly string[] | null | undefined;
|
|
171
|
-
readonly sendMode?:
|
|
171
|
+
readonly sendMode?: "approval" | "send" | null | undefined;
|
|
172
172
|
} | null | undefined;
|
|
173
173
|
readonly namespaceId?: string | null | undefined;
|
|
174
174
|
} | null | undefined;
|
|
@@ -266,7 +266,7 @@ export declare const update: (input: {
|
|
|
266
266
|
readonly name?: string | null | undefined;
|
|
267
267
|
readonly description?: string | null | undefined;
|
|
268
268
|
readonly mailboxes?: {
|
|
269
|
-
readonly sendMode:
|
|
269
|
+
readonly sendMode: "approval" | "send";
|
|
270
270
|
} | null | undefined;
|
|
271
271
|
}) => import("effect/Effect").Effect<{
|
|
272
272
|
readonly id: string;
|
package/dist/effect/api-keys.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/api-keys.ts
|
|
4
4
|
var api_keys_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
create: () => create,
|
|
@@ -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/attachments.ts
|
|
4
4
|
var attachments_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
downloadUrl: () => downloadUrl,
|
package/dist/effect/brands.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
3
|
-
import {
|
|
2
|
+
import { n as make } from "../operation-g8nAzmIM.js";
|
|
3
|
+
import { M as UpdateBrand, u as CreateBrand } from "../client-CZjhOKPM.js";
|
|
4
4
|
//#region src/effect/brands.ts
|
|
5
5
|
var brands_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
CreatePayload: () => CreateBrand,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const list: ((input?: {
|
|
2
|
-
readonly status?:
|
|
2
|
+
readonly status?: "archived" | "draft" | null | undefined;
|
|
3
3
|
readonly limit?: string | null | undefined;
|
|
4
4
|
readonly cursor?: string | null | undefined;
|
|
5
5
|
} | undefined) => import("effect/Effect").Effect<{
|
|
@@ -80,7 +80,7 @@ export declare const list: ((input?: {
|
|
|
80
80
|
readonly nextCursor: string | null;
|
|
81
81
|
}, 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>) & {
|
|
82
82
|
readonly pages: (input?: {
|
|
83
|
-
readonly status?:
|
|
83
|
+
readonly status?: "archived" | "draft" | null | undefined;
|
|
84
84
|
readonly limit?: string | null | undefined;
|
|
85
85
|
readonly cursor?: string | null | undefined;
|
|
86
86
|
} | undefined) => import("effect/Stream").Stream<{
|
|
@@ -161,7 +161,7 @@ export declare const list: ((input?: {
|
|
|
161
161
|
readonly nextCursor: string | null;
|
|
162
162
|
}, 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>;
|
|
163
163
|
readonly items: (input?: {
|
|
164
|
-
readonly status?:
|
|
164
|
+
readonly status?: "archived" | "draft" | null | undefined;
|
|
165
165
|
readonly limit?: string | null | undefined;
|
|
166
166
|
readonly cursor?: string | null | undefined;
|
|
167
167
|
} | undefined) => import("effect/Stream").Stream<{
|
|
@@ -241,9 +241,9 @@ export declare const list: ((input?: {
|
|
|
241
241
|
};
|
|
242
242
|
export declare const create: (input: {
|
|
243
243
|
readonly name: string;
|
|
244
|
-
readonly channel:
|
|
244
|
+
readonly channel: "email";
|
|
245
245
|
readonly content: {
|
|
246
|
-
readonly channel:
|
|
246
|
+
readonly channel: "email";
|
|
247
247
|
readonly email: {
|
|
248
248
|
readonly subject?: string | null | undefined;
|
|
249
249
|
readonly html?: string | null | undefined;
|
|
@@ -565,7 +565,7 @@ export declare const update: (input: {
|
|
|
565
565
|
readonly id: string;
|
|
566
566
|
readonly name?: string | null | undefined;
|
|
567
567
|
readonly content?: {
|
|
568
|
-
readonly channel:
|
|
568
|
+
readonly channel: "email";
|
|
569
569
|
readonly email: {
|
|
570
570
|
readonly subject?: string | null | undefined;
|
|
571
571
|
readonly html?: string | null | undefined;
|
|
@@ -735,7 +735,7 @@ export declare const update: (input: {
|
|
|
735
735
|
}, import("./generated").ConflictError | import("./generated").FlagDisabledError | 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>;
|
|
736
736
|
export declare const listRuns: ((input: {
|
|
737
737
|
readonly id: string;
|
|
738
|
-
readonly status?:
|
|
738
|
+
readonly status?: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled" | null | undefined;
|
|
739
739
|
readonly limit?: string | null | undefined;
|
|
740
740
|
readonly cursor?: string | null | undefined;
|
|
741
741
|
}) => import("effect/Effect").Effect<{
|
|
@@ -814,7 +814,7 @@ export declare const listRuns: ((input: {
|
|
|
814
814
|
}, 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>) & {
|
|
815
815
|
readonly pages: (input: {
|
|
816
816
|
readonly id: string;
|
|
817
|
-
readonly status?:
|
|
817
|
+
readonly status?: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled" | null | undefined;
|
|
818
818
|
readonly limit?: string | null | undefined;
|
|
819
819
|
readonly cursor?: string | null | undefined;
|
|
820
820
|
}) => import("effect/Stream").Stream<{
|
|
@@ -893,7 +893,7 @@ export declare const listRuns: ((input: {
|
|
|
893
893
|
}, 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>;
|
|
894
894
|
readonly items: (input: {
|
|
895
895
|
readonly id: string;
|
|
896
|
-
readonly status?:
|
|
896
|
+
readonly status?: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled" | null | undefined;
|
|
897
897
|
readonly limit?: string | null | undefined;
|
|
898
898
|
readonly cursor?: string | null | undefined;
|
|
899
899
|
}) => import("effect/Stream").Stream<{
|
|
@@ -1351,7 +1351,7 @@ export declare const cancelRun: (input: {
|
|
|
1351
1351
|
export declare const listRecipients: ((input: {
|
|
1352
1352
|
readonly id: string;
|
|
1353
1353
|
readonly runId: string;
|
|
1354
|
-
readonly status?:
|
|
1354
|
+
readonly status?: "dispatched" | "dispatching" | "failed" | "pending" | "skipped" | null | undefined;
|
|
1355
1355
|
readonly limit?: string | null | undefined;
|
|
1356
1356
|
readonly cursor?: string | null | undefined;
|
|
1357
1357
|
}) => import("effect/Effect").Effect<{
|
|
@@ -1371,7 +1371,7 @@ export declare const listRecipients: ((input: {
|
|
|
1371
1371
|
readonly pages: (input: {
|
|
1372
1372
|
readonly id: string;
|
|
1373
1373
|
readonly runId: string;
|
|
1374
|
-
readonly status?:
|
|
1374
|
+
readonly status?: "dispatched" | "dispatching" | "failed" | "pending" | "skipped" | null | undefined;
|
|
1375
1375
|
readonly limit?: string | null | undefined;
|
|
1376
1376
|
readonly cursor?: string | null | undefined;
|
|
1377
1377
|
}) => import("effect/Stream").Stream<{
|
|
@@ -1391,7 +1391,7 @@ export declare const listRecipients: ((input: {
|
|
|
1391
1391
|
readonly items: (input: {
|
|
1392
1392
|
readonly id: string;
|
|
1393
1393
|
readonly runId: string;
|
|
1394
|
-
readonly status?:
|
|
1394
|
+
readonly status?: "dispatched" | "dispatching" | "failed" | "pending" | "skipped" | null | undefined;
|
|
1395
1395
|
readonly limit?: string | null | undefined;
|
|
1396
1396
|
readonly cursor?: string | null | undefined;
|
|
1397
1397
|
}) => import("effect/Stream").Stream<{
|
package/dist/effect/campaigns.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/campaigns.ts
|
|
4
4
|
var campaigns_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
archive: () => archive,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as isTransient, a as catchNotFoundError, c as catchValidationError, d as isAuthError, f as isBillingError, g as isThrottlingError, h as isRetryable, i as catchConflictError, l as categoriesOf, m as isNotFoundError, n as catchBillingError, o as catchThrottlingError, p as isConflictError, r as catchCategory, s as catchTransient, t as catchAuthError, u as hasCategory, v as isValidationError } from "../categories-
|
|
1
|
+
import { _ as isTransient, a as catchNotFoundError, c as catchValidationError, d as isAuthError, f as isBillingError, g as isThrottlingError, h as isRetryable, i as catchConflictError, l as categoriesOf, m as isNotFoundError, n as catchBillingError, o as catchThrottlingError, p as isConflictError, r as catchCategory, s as catchTransient, t as catchAuthError, u as hasCategory, v as isValidationError } from "../categories-BGUBFdH9.js";
|
|
2
2
|
export { catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError };
|
package/dist/effect/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { i as raw, n as layer, r as layerFetch, t as Service } from "../client-
|
|
2
|
+
import { i as raw, n as layer, r as layerFetch, t as Service } from "../client-CZjhOKPM.js";
|
|
3
3
|
//#region src/effect/client.ts
|
|
4
4
|
var client_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
Service: () => Service,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const list: ((input?: {
|
|
2
2
|
readonly limit?: string | null | undefined;
|
|
3
3
|
readonly cursor?: string | null | undefined;
|
|
4
|
-
readonly type?:
|
|
4
|
+
readonly type?: "dynamic" | "smart" | "static" | readonly ("dynamic" | "smart" | "static")[] | null | undefined;
|
|
5
5
|
readonly isActive?: string | null | undefined;
|
|
6
6
|
} | undefined) => import("effect/Effect").Effect<{
|
|
7
7
|
readonly items: readonly {
|
|
@@ -27,7 +27,7 @@ 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 type?:
|
|
30
|
+
readonly type?: "dynamic" | "smart" | "static" | readonly ("dynamic" | "smart" | "static")[] | null | undefined;
|
|
31
31
|
readonly isActive?: string | null | undefined;
|
|
32
32
|
} | undefined) => import("effect/Stream").Stream<{
|
|
33
33
|
readonly items: readonly {
|
|
@@ -53,7 +53,7 @@ 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 type?:
|
|
56
|
+
readonly type?: "dynamic" | "smart" | "static" | readonly ("dynamic" | "smart" | "static")[] | null | undefined;
|
|
57
57
|
readonly isActive?: string | null | undefined;
|
|
58
58
|
} | undefined) => import("effect/Stream").Stream<{
|
|
59
59
|
readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
@@ -77,7 +77,7 @@ export declare const list: ((input?: {
|
|
|
77
77
|
export declare const create: (input: {
|
|
78
78
|
readonly name: string;
|
|
79
79
|
readonly description?: string | null | undefined;
|
|
80
|
-
readonly type?:
|
|
80
|
+
readonly type?: "dynamic" | "smart" | "static" | null | undefined;
|
|
81
81
|
readonly criteria?: {
|
|
82
82
|
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 | {
|
|
83
83
|
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
@@ -105,7 +105,7 @@ export declare const create: (input: {
|
|
|
105
105
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
106
106
|
} | null | undefined;
|
|
107
107
|
} | null | undefined;
|
|
108
|
-
readonly color?:
|
|
108
|
+
readonly color?: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null | undefined;
|
|
109
109
|
readonly icon?: string | null | undefined;
|
|
110
110
|
readonly parentGroupId?: string | null | undefined;
|
|
111
111
|
readonly isActive?: boolean | null | undefined;
|
|
@@ -151,7 +151,7 @@ export declare const update: (input: {
|
|
|
151
151
|
readonly id: string;
|
|
152
152
|
readonly name?: string | null | undefined;
|
|
153
153
|
readonly description?: string | null | undefined;
|
|
154
|
-
readonly type?:
|
|
154
|
+
readonly type?: "dynamic" | "smart" | "static" | null | undefined;
|
|
155
155
|
readonly criteria?: {
|
|
156
156
|
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 | {
|
|
157
157
|
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
@@ -179,7 +179,7 @@ export declare const update: (input: {
|
|
|
179
179
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
180
180
|
} | null | undefined;
|
|
181
181
|
} | null | undefined;
|
|
182
|
-
readonly color?:
|
|
182
|
+
readonly color?: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null | undefined;
|
|
183
183
|
readonly icon?: string | null | undefined;
|
|
184
184
|
readonly parentGroupId?: string | null | undefined;
|
|
185
185
|
readonly isActive?: boolean | null | undefined;
|
|
@@ -210,7 +210,7 @@ export declare const preview: (input: {
|
|
|
210
210
|
readonly criteria: {
|
|
211
211
|
readonly tags?: readonly string[] | null | undefined;
|
|
212
212
|
readonly channels?: readonly string[] | null | undefined;
|
|
213
|
-
readonly match?:
|
|
213
|
+
readonly match?: "all" | "any" | null | undefined;
|
|
214
214
|
readonly conditions?: readonly {
|
|
215
215
|
readonly field: string;
|
|
216
216
|
readonly operator: string;
|
|
@@ -342,7 +342,7 @@ export declare const getMembers: ((input: {
|
|
|
342
342
|
export declare const addMembers: (input: {
|
|
343
343
|
readonly id: string;
|
|
344
344
|
readonly contactIds: readonly string[];
|
|
345
|
-
readonly role?:
|
|
345
|
+
readonly role?: "admin" | "member" | "moderator" | null | undefined;
|
|
346
346
|
}) => import("effect/Effect").Effect<{
|
|
347
347
|
readonly added: number;
|
|
348
348
|
readonly skipped: number;
|
|
@@ -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/contact-groups.ts
|
|
4
4
|
var contact_groups_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
addMembers: () => addMembers,
|