samva 0.4.0 → 0.6.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 +3 -2
- package/README.md +12 -2
- package/dist/{categories-CsUa8ojo.js → categories-4u9Az4No.js} +28 -8
- package/dist/client/sdk.gen.d.ts +545 -74
- package/dist/client/types.gen.d.ts +3907 -747
- package/dist/{client-BmZK_uCt.js → client-DCM6U0-I.js} +3061 -808
- package/dist/{client-attribution-BslSOa_8.js → client-attribution-DYUSAa76.js} +2 -2
- package/dist/effect/analytics.d.ts +66 -0
- package/dist/effect/analytics.js +21 -0
- package/dist/effect/api-keys.d.ts +198 -34
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/attachments.d.ts +53 -0
- package/dist/effect/attachments.js +17 -0
- package/dist/effect/campaigns.d.ts +52 -18
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contact-groups.d.ts +375 -0
- package/dist/effect/contact-groups.js +29 -0
- package/dist/effect/contacts.d.ts +35 -19
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +191 -44
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/custom-fields.d.ts +111 -0
- package/dist/effect/custom-fields.js +17 -0
- package/dist/effect/design.d.ts +2 -2
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +931 -97
- package/dist/effect/email.js +27 -3
- package/dist/effect/generated-metadata.d.ts +16 -4
- package/dist/effect/generated.d.ts +19596 -10819
- package/dist/effect/index.d.ts +6 -1
- package/dist/effect/index.js +8 -3
- package/dist/effect/internal/operation.d.ts +124 -26
- package/dist/effect/media.d.ts +8 -8
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +473 -64
- package/dist/effect/messages.js +5 -3
- package/dist/effect/operations.d.ts +6 -6
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +7 -110
- package/dist/effect/organizations.js +2 -4
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +96 -12
- package/dist/effect/scheduled-messages.js +5 -3
- package/dist/effect/templates.d.ts +35 -295
- package/dist/effect/templates.js +3 -5
- package/dist/effect/unsubscribe-groups.d.ts +161 -0
- package/dist/effect/unsubscribe-groups.js +25 -0
- package/dist/effect/webhooks.d.ts +52 -18
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{normalize-BiIJnycv.js → normalize-B79uJIeb.js} +13 -14
- package/dist/normalize.d.ts +3 -7
- package/dist/{operation-B1knNlxk.js → operation-02YX3hY9.js} +144 -8
- package/dist/promises/errors.gen.d.ts +47 -39
- package/dist/promises/index.d.ts +19 -4
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-n1opem5V.js → promises-8MaPNAam.js} +1679 -267
- package/dist/service-map.d.ts +221 -8
- package/package.json +29 -9
package/dist/effect/messages.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { i as sendMessage, n as make } from "../operation-
|
|
2
|
+
import { i as sendMessage, n as make } from "../operation-02YX3hY9.js";
|
|
3
3
|
//#region src/effect/messages.ts
|
|
4
4
|
var messages_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
get: () => get,
|
|
@@ -8,16 +8,18 @@ var messages_exports = /* @__PURE__ */ __exportAll({
|
|
|
8
8
|
getStatus: () => getStatus,
|
|
9
9
|
list: () => list,
|
|
10
10
|
remove: () => remove,
|
|
11
|
-
send: () => send
|
|
11
|
+
send: () => send,
|
|
12
|
+
validateEmail: () => validateEmail
|
|
12
13
|
});
|
|
13
14
|
const list = make("messagesList");
|
|
14
15
|
const send = sendMessage;
|
|
16
|
+
const validateEmail = make("messagesValidateEmail");
|
|
15
17
|
const get = make("messagesGet");
|
|
16
18
|
const getEmail = make("messagesGetEmail");
|
|
17
19
|
const remove = make("messagesRemove");
|
|
18
20
|
const getStatus = make("messagesGetStatus");
|
|
19
21
|
const getEvents = make("messagesGetEvents");
|
|
20
22
|
//#endregion
|
|
21
|
-
export { get, getEmail, getEvents, getStatus, list, remove, send, messages_exports as t };
|
|
23
|
+
export { get, getEmail, getEvents, getStatus, list, remove, send, messages_exports as t, validateEmail };
|
|
22
24
|
|
|
23
25
|
//# sourceMappingURL=messages.js.map
|
|
@@ -19,7 +19,7 @@ export declare const list: (input?: {
|
|
|
19
19
|
readonly status: "failed" | "pending" | "running" | "succeeded";
|
|
20
20
|
readonly phase: "accepted" | "completed" | "deleting" | "dispatching" | "finalizing" | "provisioning";
|
|
21
21
|
readonly error: {
|
|
22
|
-
readonly code: "capacity-unavailable" | "conflict" | "internal" | "
|
|
22
|
+
readonly code: "capacity-unavailable" | "conflict" | "internal" | "rejected" | "timed-out" | "unavailable" | "validation-failed";
|
|
23
23
|
readonly message: string;
|
|
24
24
|
} | null;
|
|
25
25
|
readonly createdAt: string;
|
|
@@ -32,7 +32,7 @@ export declare const list: (input?: {
|
|
|
32
32
|
readonly limit: number;
|
|
33
33
|
readonly total: number;
|
|
34
34
|
};
|
|
35
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
35
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
36
36
|
export declare const get: (input: {
|
|
37
37
|
readonly operationId: string;
|
|
38
38
|
}) => import("effect/Effect").Effect<{
|
|
@@ -50,14 +50,14 @@ export declare const get: (input: {
|
|
|
50
50
|
readonly status: "failed" | "pending" | "running" | "succeeded";
|
|
51
51
|
readonly phase: "accepted" | "completed" | "deleting" | "dispatching" | "finalizing" | "provisioning";
|
|
52
52
|
readonly error: {
|
|
53
|
-
readonly code: "capacity-unavailable" | "conflict" | "internal" | "
|
|
53
|
+
readonly code: "capacity-unavailable" | "conflict" | "internal" | "rejected" | "timed-out" | "unavailable" | "validation-failed";
|
|
54
54
|
readonly message: string;
|
|
55
55
|
} | null;
|
|
56
56
|
readonly createdAt: string;
|
|
57
57
|
readonly updatedAt: string;
|
|
58
58
|
readonly startedAt: string | null;
|
|
59
59
|
readonly completedAt: string | null;
|
|
60
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
60
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
61
61
|
export declare const retry: (input: {
|
|
62
62
|
readonly operationId: string;
|
|
63
63
|
}) => import("effect/Effect").Effect<{
|
|
@@ -76,7 +76,7 @@ export declare const retry: (input: {
|
|
|
76
76
|
readonly status: "failed" | "pending" | "running" | "succeeded";
|
|
77
77
|
readonly phase: "accepted" | "completed" | "deleting" | "dispatching" | "finalizing" | "provisioning";
|
|
78
78
|
readonly error: {
|
|
79
|
-
readonly code: "capacity-unavailable" | "conflict" | "internal" | "
|
|
79
|
+
readonly code: "capacity-unavailable" | "conflict" | "internal" | "rejected" | "timed-out" | "unavailable" | "validation-failed";
|
|
80
80
|
readonly message: string;
|
|
81
81
|
} | null;
|
|
82
82
|
readonly createdAt: string;
|
|
@@ -94,4 +94,4 @@ export declare const retry: (input: {
|
|
|
94
94
|
readonly href: string;
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
97
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, 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-02YX3hY9.js";
|
|
3
3
|
//#region src/effect/operations.ts
|
|
4
4
|
var operations_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
get: () => get,
|
|
@@ -1,99 +1,3 @@
|
|
|
1
|
-
export declare const bootstrap: (input: {
|
|
2
|
-
readonly name: string;
|
|
3
|
-
}) => import("effect/Effect").Effect<{
|
|
4
|
-
readonly id: string;
|
|
5
|
-
readonly billingAccountId: string;
|
|
6
|
-
readonly name: string;
|
|
7
|
-
readonly slug: string;
|
|
8
|
-
readonly defaultCurrency: string;
|
|
9
|
-
readonly countryCode: string;
|
|
10
|
-
readonly timezone: string;
|
|
11
|
-
readonly billingEmail: string | null;
|
|
12
|
-
readonly plan: string;
|
|
13
|
-
readonly isActive: boolean;
|
|
14
|
-
readonly createdAt: string;
|
|
15
|
-
readonly updatedAt: string;
|
|
16
|
-
readonly metadata: {
|
|
17
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
18
|
-
} | null;
|
|
19
|
-
readonly design: {
|
|
20
|
-
readonly theme?: {
|
|
21
|
-
readonly colors?: {
|
|
22
|
-
readonly [x: string]: string;
|
|
23
|
-
} | null;
|
|
24
|
-
readonly colorsDark?: {
|
|
25
|
-
readonly [x: string]: string;
|
|
26
|
-
} | null;
|
|
27
|
-
readonly radiusPx?: {
|
|
28
|
-
readonly [x: string]: number;
|
|
29
|
-
} | null;
|
|
30
|
-
readonly fontFamilies?: {
|
|
31
|
-
readonly [x: string]: {
|
|
32
|
-
readonly source: "custom" | "google" | "system";
|
|
33
|
-
readonly family: string;
|
|
34
|
-
readonly fallback: string;
|
|
35
|
-
readonly faces?: readonly {
|
|
36
|
-
readonly weight: number;
|
|
37
|
-
readonly style: "italic" | "normal";
|
|
38
|
-
readonly src: string;
|
|
39
|
-
readonly unicodeRange?: string | null;
|
|
40
|
-
}[] | null;
|
|
41
|
-
};
|
|
42
|
-
} | null;
|
|
43
|
-
readonly fontWeights?: {
|
|
44
|
-
readonly [x: string]: number;
|
|
45
|
-
} | null;
|
|
46
|
-
readonly text?: {
|
|
47
|
-
readonly [x: string]: {
|
|
48
|
-
readonly sizePx: number;
|
|
49
|
-
readonly lineHeightPx: number;
|
|
50
|
-
};
|
|
51
|
-
} | null;
|
|
52
|
-
readonly leading?: {
|
|
53
|
-
readonly [x: string]: number;
|
|
54
|
-
} | null;
|
|
55
|
-
readonly spacingPx?: number | null;
|
|
56
|
-
readonly containerPx?: {
|
|
57
|
-
readonly [x: string]: number;
|
|
58
|
-
} | null;
|
|
59
|
-
readonly tracking?: {
|
|
60
|
-
readonly [x: string]: number;
|
|
61
|
-
} | null;
|
|
62
|
-
} | null;
|
|
63
|
-
readonly assets?: {
|
|
64
|
-
readonly logoUrl?: string | null;
|
|
65
|
-
readonly logoDarkUrl?: string | null;
|
|
66
|
-
readonly iconUrl?: string | null;
|
|
67
|
-
} | null;
|
|
68
|
-
readonly footer?: {
|
|
69
|
-
readonly companyName?: string | null;
|
|
70
|
-
readonly address?: {
|
|
71
|
-
readonly street1: string;
|
|
72
|
-
readonly street2?: string | null;
|
|
73
|
-
readonly city: string;
|
|
74
|
-
readonly region: string;
|
|
75
|
-
readonly postalCode: string;
|
|
76
|
-
readonly country: string;
|
|
77
|
-
} | null;
|
|
78
|
-
readonly socialLinks?: readonly {
|
|
79
|
-
readonly label: string;
|
|
80
|
-
readonly url: string;
|
|
81
|
-
}[] | null;
|
|
82
|
-
readonly customHtml?: string | null;
|
|
83
|
-
} | null;
|
|
84
|
-
} | null;
|
|
85
|
-
readonly replyToDefault: readonly string[] | null;
|
|
86
|
-
readonly defaultUnsubscribeGroupId: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
87
|
-
readonly emailFooterEnabledDefault: boolean | null;
|
|
88
|
-
readonly messagesUsed: number;
|
|
89
|
-
readonly messagesUsedThisMonth: number;
|
|
90
|
-
readonly emailUsed: number;
|
|
91
|
-
readonly emailUsedThisMonth: number;
|
|
92
|
-
readonly contactsUsed: number;
|
|
93
|
-
readonly conversationsUsed: number;
|
|
94
|
-
readonly teamMembersUsed: number;
|
|
95
|
-
readonly messagesResetAt: string | null;
|
|
96
|
-
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
97
1
|
export declare const create: (input: {
|
|
98
2
|
readonly name: string;
|
|
99
3
|
}) => import("effect/Effect").Effect<{
|
|
@@ -101,10 +5,8 @@ export declare const create: (input: {
|
|
|
101
5
|
readonly billingAccountId: string;
|
|
102
6
|
readonly name: string;
|
|
103
7
|
readonly slug: string;
|
|
104
|
-
readonly defaultCurrency: string;
|
|
105
8
|
readonly countryCode: string;
|
|
106
9
|
readonly timezone: string;
|
|
107
|
-
readonly billingEmail: string | null;
|
|
108
10
|
readonly plan: string;
|
|
109
11
|
readonly isActive: boolean;
|
|
110
12
|
readonly createdAt: string;
|
|
@@ -189,16 +91,14 @@ export declare const create: (input: {
|
|
|
189
91
|
readonly conversationsUsed: number;
|
|
190
92
|
readonly teamMembersUsed: number;
|
|
191
93
|
readonly messagesResetAt: string | null;
|
|
192
|
-
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
94
|
+
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
193
95
|
export declare const get: (_?: never) => import("effect/Effect").Effect<{
|
|
194
96
|
readonly id: string;
|
|
195
97
|
readonly billingAccountId: string;
|
|
196
98
|
readonly name: string;
|
|
197
99
|
readonly slug: string;
|
|
198
|
-
readonly defaultCurrency: string;
|
|
199
100
|
readonly countryCode: string;
|
|
200
101
|
readonly timezone: string;
|
|
201
|
-
readonly billingEmail: string | null;
|
|
202
102
|
readonly plan: string;
|
|
203
103
|
readonly isActive: boolean;
|
|
204
104
|
readonly createdAt: string;
|
|
@@ -283,13 +183,11 @@ export declare const get: (_?: never) => import("effect/Effect").Effect<{
|
|
|
283
183
|
readonly conversationsUsed: number;
|
|
284
184
|
readonly teamMembersUsed: number;
|
|
285
185
|
readonly messagesResetAt: string | null;
|
|
286
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
186
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
287
187
|
export declare const update: (input?: {
|
|
288
188
|
readonly name?: string | null | undefined;
|
|
289
189
|
readonly slug?: string | null | undefined;
|
|
290
|
-
readonly billingEmail?: string | null | undefined;
|
|
291
190
|
readonly countryCode?: string | null | undefined;
|
|
292
|
-
readonly currency?: string | null | undefined;
|
|
293
191
|
readonly timezone?: string | null | undefined;
|
|
294
192
|
readonly isActive?: boolean | null | undefined;
|
|
295
193
|
readonly metadata?: {
|
|
@@ -393,10 +291,8 @@ export declare const update: (input?: {
|
|
|
393
291
|
readonly billingAccountId: string;
|
|
394
292
|
readonly name: string;
|
|
395
293
|
readonly slug: string;
|
|
396
|
-
readonly defaultCurrency: string;
|
|
397
294
|
readonly countryCode: string;
|
|
398
295
|
readonly timezone: string;
|
|
399
|
-
readonly billingEmail: string | null;
|
|
400
296
|
readonly plan: string;
|
|
401
297
|
readonly isActive: boolean;
|
|
402
298
|
readonly createdAt: string;
|
|
@@ -481,7 +377,7 @@ export declare const update: (input?: {
|
|
|
481
377
|
readonly conversationsUsed: number;
|
|
482
378
|
readonly teamMembersUsed: number;
|
|
483
379
|
readonly messagesResetAt: string | null;
|
|
484
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
380
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
485
381
|
export declare const getUsage: (input?: {
|
|
486
382
|
readonly period?: string | null | undefined;
|
|
487
383
|
} | undefined) => import("effect/Effect").Effect<{
|
|
@@ -493,12 +389,13 @@ export declare const getUsage: (input?: {
|
|
|
493
389
|
};
|
|
494
390
|
readonly billing: {
|
|
495
391
|
readonly currency: string;
|
|
392
|
+
readonly planName: string | null;
|
|
496
393
|
readonly includedEmails: number | null;
|
|
497
394
|
readonly usedEmails: number | null;
|
|
498
395
|
readonly overageEmails: number | null;
|
|
499
396
|
readonly overageCost: number | null;
|
|
500
397
|
};
|
|
501
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
398
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
502
399
|
declare const deleteOrganization: (input: {
|
|
503
400
|
readonly confirmationName: string;
|
|
504
401
|
} & {
|
|
@@ -519,7 +416,7 @@ declare const deleteOrganization: (input: {
|
|
|
519
416
|
readonly status: "failed" | "pending" | "running" | "succeeded";
|
|
520
417
|
readonly phase: "accepted" | "completed" | "deleting" | "dispatching" | "finalizing" | "provisioning";
|
|
521
418
|
readonly error: {
|
|
522
|
-
readonly code: "capacity-unavailable" | "conflict" | "internal" | "
|
|
419
|
+
readonly code: "capacity-unavailable" | "conflict" | "internal" | "rejected" | "timed-out" | "unavailable" | "validation-failed";
|
|
523
420
|
readonly message: string;
|
|
524
421
|
} | null;
|
|
525
422
|
readonly createdAt: string;
|
|
@@ -537,5 +434,5 @@ declare const deleteOrganization: (input: {
|
|
|
537
434
|
readonly href: string;
|
|
538
435
|
};
|
|
539
436
|
};
|
|
540
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
437
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
541
438
|
export { deleteOrganization as delete };
|
|
@@ -1,21 +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-02YX3hY9.js";
|
|
3
3
|
//#region src/effect/organizations.ts
|
|
4
4
|
var organizations_exports = /* @__PURE__ */ __exportAll({
|
|
5
|
-
bootstrap: () => bootstrap,
|
|
6
5
|
create: () => create,
|
|
7
6
|
delete: () => deleteOrganization,
|
|
8
7
|
get: () => get,
|
|
9
8
|
getUsage: () => getUsage,
|
|
10
9
|
update: () => update
|
|
11
10
|
});
|
|
12
|
-
const bootstrap = make("organizationsBootstrap");
|
|
13
11
|
const create = make("organizationsCreate");
|
|
14
12
|
const get = make("organizationsGet");
|
|
15
13
|
const update = make("organizationsUpdate");
|
|
16
14
|
const getUsage = make("organizationsGetUsage");
|
|
17
15
|
const deleteOrganization = make("organizationsDelete");
|
|
18
16
|
//#endregion
|
|
19
|
-
export {
|
|
17
|
+
export { create, deleteOrganization as delete, get, getUsage, organizations_exports as t, update };
|
|
20
18
|
|
|
21
19
|
//# sourceMappingURL=organizations.js.map
|
package/dist/effect/retry.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { h as isRetryable } from "../categories-
|
|
2
|
+
import { h as isRetryable } from "../categories-4u9Az4No.js";
|
|
3
3
|
import { Context, Duration, Effect, Layer, Option, Random, Schedule } from "effect";
|
|
4
4
|
import * as Predicate$1 from "effect/Predicate";
|
|
5
5
|
//#region src/effect/retry.ts
|
|
@@ -5,7 +5,7 @@ export declare const list: ((input?: {
|
|
|
5
5
|
} | undefined) => import("effect/Effect").Effect<{
|
|
6
6
|
readonly items: readonly {
|
|
7
7
|
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
8
|
-
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "pending";
|
|
8
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
9
9
|
readonly scheduledFor: string;
|
|
10
10
|
readonly timezone: string;
|
|
11
11
|
readonly send: {
|
|
@@ -86,7 +86,7 @@ export declare const list: ((input?: {
|
|
|
86
86
|
readonly total: number;
|
|
87
87
|
readonly totalPages: number;
|
|
88
88
|
};
|
|
89
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
|
|
89
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
|
|
90
90
|
readonly pages: (input?: {
|
|
91
91
|
readonly status?: string | null | undefined;
|
|
92
92
|
readonly page?: string | null | undefined;
|
|
@@ -94,7 +94,7 @@ export declare const list: ((input?: {
|
|
|
94
94
|
} | undefined) => import("effect/Stream").Stream<{
|
|
95
95
|
readonly items: readonly {
|
|
96
96
|
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
97
|
-
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "pending";
|
|
97
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
98
98
|
readonly scheduledFor: string;
|
|
99
99
|
readonly timezone: string;
|
|
100
100
|
readonly send: {
|
|
@@ -175,14 +175,14 @@ export declare const list: ((input?: {
|
|
|
175
175
|
readonly total: number;
|
|
176
176
|
readonly totalPages: number;
|
|
177
177
|
};
|
|
178
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
178
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
179
179
|
readonly items: (input?: {
|
|
180
180
|
readonly status?: string | null | undefined;
|
|
181
181
|
readonly page?: string | null | undefined;
|
|
182
182
|
readonly limit?: string | null | undefined;
|
|
183
183
|
} | undefined) => import("effect/Stream").Stream<{
|
|
184
184
|
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
185
|
-
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "pending";
|
|
185
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
186
186
|
readonly scheduledFor: string;
|
|
187
187
|
readonly timezone: string;
|
|
188
188
|
readonly send: {
|
|
@@ -256,7 +256,7 @@ export declare const list: ((input?: {
|
|
|
256
256
|
readonly memberRole: string;
|
|
257
257
|
readonly createdAt: string;
|
|
258
258
|
readonly updatedAt: string;
|
|
259
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
259
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
260
260
|
};
|
|
261
261
|
export declare const create: (input: {
|
|
262
262
|
readonly send: {
|
|
@@ -374,7 +374,7 @@ export declare const create: (input: {
|
|
|
374
374
|
readonly referenceId?: string | null | undefined;
|
|
375
375
|
}) => import("effect/Effect").Effect<{
|
|
376
376
|
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
377
|
-
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "pending";
|
|
377
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
378
378
|
readonly scheduledFor: string;
|
|
379
379
|
readonly timezone: string;
|
|
380
380
|
readonly send: {
|
|
@@ -448,12 +448,12 @@ export declare const create: (input: {
|
|
|
448
448
|
readonly memberRole: string;
|
|
449
449
|
readonly createdAt: string;
|
|
450
450
|
readonly updatedAt: string;
|
|
451
|
-
}, import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
451
|
+
}, import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
452
452
|
export declare const get: (input: {
|
|
453
453
|
readonly id: string;
|
|
454
454
|
}) => import("effect/Effect").Effect<{
|
|
455
455
|
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
456
|
-
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "pending";
|
|
456
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
457
457
|
readonly scheduledFor: string;
|
|
458
458
|
readonly timezone: string;
|
|
459
459
|
readonly send: {
|
|
@@ -527,14 +527,14 @@ export declare const get: (input: {
|
|
|
527
527
|
readonly memberRole: string;
|
|
528
528
|
readonly createdAt: string;
|
|
529
529
|
readonly updatedAt: string;
|
|
530
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
530
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
531
531
|
export declare const cancel: (input: {
|
|
532
532
|
readonly id: string;
|
|
533
533
|
}) => import("effect/Effect").Effect<{
|
|
534
534
|
readonly success: boolean;
|
|
535
535
|
readonly item: {
|
|
536
536
|
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
537
|
-
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "pending";
|
|
537
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
538
538
|
readonly scheduledFor: string;
|
|
539
539
|
readonly timezone: string;
|
|
540
540
|
readonly send: {
|
|
@@ -609,4 +609,88 @@ export declare const cancel: (input: {
|
|
|
609
609
|
readonly createdAt: string;
|
|
610
610
|
readonly updatedAt: string;
|
|
611
611
|
};
|
|
612
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
612
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
613
|
+
export declare const resume: (input: {
|
|
614
|
+
readonly id: string;
|
|
615
|
+
readonly choice: string;
|
|
616
|
+
} | {
|
|
617
|
+
readonly id: string;
|
|
618
|
+
readonly choice: string;
|
|
619
|
+
readonly scheduledFor: Date;
|
|
620
|
+
}) => import("effect/Effect").Effect<{
|
|
621
|
+
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
622
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
623
|
+
readonly scheduledFor: string;
|
|
624
|
+
readonly timezone: string;
|
|
625
|
+
readonly send: {
|
|
626
|
+
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
627
|
+
readonly metadata?: {
|
|
628
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
629
|
+
} | null;
|
|
630
|
+
readonly channel: "email";
|
|
631
|
+
readonly to: readonly ({
|
|
632
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
633
|
+
} | {
|
|
634
|
+
readonly email: string;
|
|
635
|
+
readonly name?: string | null;
|
|
636
|
+
readonly displayName?: string | null;
|
|
637
|
+
})[];
|
|
638
|
+
readonly cc?: readonly ({
|
|
639
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
640
|
+
} | {
|
|
641
|
+
readonly email: string;
|
|
642
|
+
readonly name?: string | null;
|
|
643
|
+
readonly displayName?: string | null;
|
|
644
|
+
})[] | null;
|
|
645
|
+
readonly bcc?: readonly ({
|
|
646
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
647
|
+
} | {
|
|
648
|
+
readonly email: string;
|
|
649
|
+
readonly name?: string | null;
|
|
650
|
+
readonly displayName?: string | null;
|
|
651
|
+
})[] | null;
|
|
652
|
+
readonly from?: {
|
|
653
|
+
readonly email: string;
|
|
654
|
+
readonly name?: string | null;
|
|
655
|
+
} | null;
|
|
656
|
+
readonly email: {
|
|
657
|
+
readonly subject?: string | null;
|
|
658
|
+
readonly html?: string | null;
|
|
659
|
+
readonly text?: string | null;
|
|
660
|
+
readonly attachments?: readonly {
|
|
661
|
+
readonly filename: string;
|
|
662
|
+
readonly content?: string | null;
|
|
663
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
664
|
+
readonly contentType: string;
|
|
665
|
+
readonly size: number;
|
|
666
|
+
}[] | null;
|
|
667
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
668
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
669
|
+
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
670
|
+
readonly templateSlug?: string | null;
|
|
671
|
+
readonly templateData?: {
|
|
672
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
673
|
+
} | null;
|
|
674
|
+
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
675
|
+
readonly replyTo?: readonly string[] | null;
|
|
676
|
+
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
677
|
+
readonly tracking?: {
|
|
678
|
+
readonly opens?: boolean;
|
|
679
|
+
readonly clicks?: boolean;
|
|
680
|
+
};
|
|
681
|
+
readonly footer?: {
|
|
682
|
+
readonly enabled?: boolean | null;
|
|
683
|
+
};
|
|
684
|
+
};
|
|
685
|
+
};
|
|
686
|
+
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
687
|
+
readonly idempotencyKey: string | null;
|
|
688
|
+
readonly referenceId: string | null;
|
|
689
|
+
readonly failureReason: string | null;
|
|
690
|
+
readonly attempts: number;
|
|
691
|
+
readonly createdBy: string | null;
|
|
692
|
+
readonly actorEmail: string;
|
|
693
|
+
readonly memberRole: string;
|
|
694
|
+
readonly createdAt: string;
|
|
695
|
+
readonly updatedAt: string;
|
|
696
|
+
}, import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
@@ -1,17 +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-02YX3hY9.js";
|
|
3
3
|
//#region src/effect/scheduled-messages.ts
|
|
4
4
|
var scheduled_messages_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
cancel: () => cancel,
|
|
6
6
|
create: () => create,
|
|
7
7
|
get: () => get,
|
|
8
|
-
list: () => list
|
|
8
|
+
list: () => list,
|
|
9
|
+
resume: () => resume
|
|
9
10
|
});
|
|
10
11
|
const list = make("scheduledMessagesList");
|
|
11
12
|
const create = make("scheduledMessagesCreate");
|
|
12
13
|
const get = make("scheduledMessagesGet");
|
|
13
14
|
const cancel = make("scheduledMessagesCancel");
|
|
15
|
+
const resume = make("scheduledMessagesResume");
|
|
14
16
|
//#endregion
|
|
15
|
-
export { cancel, create, get, list, scheduled_messages_exports as t };
|
|
17
|
+
export { cancel, create, get, list, resume, scheduled_messages_exports as t };
|
|
16
18
|
|
|
17
19
|
//# sourceMappingURL=scheduled-messages.js.map
|