samva 0.17.0 → 0.19.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 +5 -0
- package/README.md +18 -3
- package/dist/{rolldown-runtime-D7D4PA-g.js → _virtual/_rolldown/runtime.js} +1 -1
- package/dist/client/client/client.gen.js +174 -0
- package/dist/client/client/utils.gen.js +177 -0
- package/dist/client/client.gen.js +8 -0
- package/dist/client/core/auth.gen.js +12 -0
- package/dist/client/core/bodySerializer.gen.js +6 -0
- package/dist/client/core/params.gen.js +77 -0
- package/dist/client/core/pathSerializer.gen.js +82 -0
- package/dist/client/core/serverSentEvents.gen.js +96 -0
- package/dist/client/core/utils.gen.js +78 -0
- package/dist/client/sdk.gen.d.ts +39 -23
- package/dist/{promises---Kbh-7z.js → client/sdk.gen.js} +87 -2314
- package/dist/client/types.gen.d.ts +175 -44
- package/dist/client-attribution.js +9 -0
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +23 -2
- package/dist/effect/api-keys.d.ts +12 -12
- package/dist/effect/api-keys.js +29 -2
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +19 -2
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/brands.js +26 -3
- package/dist/effect/campaigns.d.ts +18 -18
- package/dist/effect/campaigns.js +35 -2
- package/dist/effect/categories.d.ts +2 -2
- package/dist/effect/categories.js +95 -1
- package/dist/effect/client.js +3 -3
- package/dist/effect/contact-groups.d.ts +53 -17
- package/dist/effect/contact-groups.js +31 -2
- package/dist/effect/contacts.d.ts +244 -41
- package/dist/effect/contacts.js +54 -2
- package/dist/effect/conversations.d.ts +28 -28
- package/dist/effect/conversations.js +37 -2
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +19 -2
- package/dist/effect/email.d.ts +75 -75
- package/dist/effect/email.js +140 -2
- package/dist/effect/errors.d.ts +2 -0
- package/dist/effect/errors.js +3 -0
- package/dist/effect/events.d.ts +2 -2
- package/dist/effect/events.js +17 -3
- package/dist/effect/extension-installations.d.ts +23 -23
- package/dist/effect/extension-installations.js +29 -2
- package/dist/effect/extensions.d.ts +12 -12
- package/dist/effect/extensions.js +21 -2
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +14 -3
- package/dist/{analytics-CaqPRsry.js → effect/generated/analytics.js} +4 -23
- package/dist/{api-keys-Ce1Y4_Ip.js → effect/generated/api-keys.js} +4 -29
- package/dist/{attachments-DYqVIraC.js → effect/generated/attachments.js} +3 -18
- package/dist/{brands-ZwuOGIWO.js → effect/generated/brands.js} +5 -25
- package/dist/{campaigns-DZlz1E9E.js → effect/generated/campaigns.js} +4 -35
- package/dist/effect/generated/contact-events.js +37 -0
- package/dist/effect/generated/contact-groups.d.ts +33 -3
- package/dist/{contact-groups-BLbFXnjq.js → effect/generated/contact-groups.js} +3 -30
- package/dist/effect/generated/contacts.d.ts +477 -54
- package/dist/{contacts-BbsoXXB4.js → effect/generated/contacts.js} +41 -89
- package/dist/effect/generated/conversations.d.ts +25 -25
- package/dist/{conversations-_sRHueML.js → effect/generated/conversations.js} +4 -37
- package/dist/{custom-fields-BHWbwlKn.js → effect/generated/custom-fields.js} +5 -19
- package/dist/{email-R0NAA9PW.js → effect/generated/email.js} +995 -1146
- package/dist/{events-CxbTUHYT.js → effect/generated/events.js} +3 -15
- package/dist/effect/generated/extension-installations.d.ts +44 -44
- package/dist/{extension-installations-CD94LPmk.js → effect/generated/extension-installations.js} +10 -29
- package/dist/effect/generated/extensions.d.ts +10 -10
- package/dist/{extensions-BKyNQLvu.js → effect/generated/extensions.js} +5 -20
- package/dist/{feedback-Bpa09JOS.js → effect/generated/feedback.js} +3 -12
- package/dist/{journeys-CARo_BJT.js → effect/generated/journeys.js} +3 -38
- package/dist/effect/generated/mailboxes.d.ts +310 -0
- package/dist/{mailboxes-BRDn7BIK.js → effect/generated/mailboxes.js} +829 -954
- package/dist/{media-VrrtNnft.js → effect/generated/media.js} +3 -3
- package/dist/effect/generated/messages.d.ts +31 -0
- package/dist/effect/generated/messages.js +677 -0
- package/dist/{namespaces-CcvEbG-y.js → effect/generated/namespaces.js} +3 -20
- package/dist/{operations-CmB3FHwf.js → effect/generated/operations.js} +3 -16
- package/dist/effect/generated/organizations.d.ts +13 -11
- package/dist/{organizations-A-plufWc.js → effect/generated/organizations.js} +9 -26
- package/dist/{scheduled-messages-DkKZRRaN.js → effect/generated/scheduled-messages.js} +4 -21
- package/dist/effect/generated/shared.d.ts +70 -20
- package/dist/effect/generated/shared.js +1073 -0
- package/dist/{subscriptions-DEXYtMXg.js → effect/generated/subscriptions.js} +3 -9
- package/dist/{templates-DZomxsG7.js → effect/generated/templates.js} +3 -78
- package/dist/effect/generated/unsubscribe-groups.d.ts +173 -78
- package/dist/{unsubscribe-groups-Iqk4Isf9.js → effect/generated/unsubscribe-groups.js} +77 -84
- package/dist/effect/generated/webhooks.d.ts +19 -19
- package/dist/{webhooks-CPXuu8Xf.js → effect/generated/webhooks.js} +12 -34
- package/dist/{whoami-Ccz0jwlt.js → effect/generated/whoami.js} +5 -10
- package/dist/effect/generated-metadata.d.ts +7 -2
- package/dist/effect/generated-metadata.js +925 -0
- package/dist/effect/index.d.ts +1 -2
- package/dist/effect/index.js +32 -32
- package/dist/effect/internal/client.js +69 -0
- package/dist/effect/internal/email-sender.js +21 -0
- package/dist/effect/internal/mailbox-events.js +33 -0
- package/dist/effect/internal/operation.js +116 -0
- package/dist/effect/internal/send.js +56 -0
- package/dist/effect/journeys.d.ts +18 -18
- package/dist/effect/journeys.js +39 -2
- package/dist/effect/mailboxes.d.ts +314 -182
- package/dist/effect/mailboxes.js +135 -3
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +10 -10
- package/dist/effect/messages.d.ts +19 -14
- package/dist/effect/messages.js +15 -14
- package/dist/effect/namespaces.d.ts +7 -7
- package/dist/effect/namespaces.js +21 -2
- package/dist/effect/operations.d.ts +5 -5
- package/dist/effect/operations.js +17 -2
- package/dist/effect/organizations.d.ts +11 -11
- package/dist/effect/organizations.js +25 -2
- package/dist/effect/pagination.js +39 -0
- package/dist/effect/retry.js +3 -3
- package/dist/{runtime-P0l1_2-C.js → effect/runtime.js} +2 -2
- package/dist/effect/scheduled-messages.d.ts +7 -7
- package/dist/effect/scheduled-messages.js +21 -2
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +10 -2
- package/dist/effect/templates.d.ts +39 -39
- package/dist/effect/templates.js +80 -3
- package/dist/effect/unsubscribe-groups.d.ts +39 -28
- package/dist/effect/unsubscribe-groups.js +29 -2
- package/dist/effect/webhooks.d.ts +22 -22
- package/dist/effect/webhooks.js +35 -3
- package/dist/effect/whoami.d.ts +9 -9
- package/dist/effect/whoami.js +10 -2
- package/dist/index.js +4 -3
- package/dist/{inline-attachments-Bi1hDltp.js → inline-attachments.js} +13 -7
- package/dist/mailbox-events.d.ts +31 -4
- package/dist/{mailbox-events-VKR4f3qq.js → mailbox-events.js} +41 -13
- package/dist/{normalize-B79uJIeb.js → normalize.js} +2 -2
- package/dist/package.js +6 -0
- package/dist/promises/errors.gen.js +1340 -0
- package/dist/promises/index.d.ts +1 -1
- package/dist/promises/index.js +288 -3
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +9 -4
- package/dist/{operation-n_IYgNVK.js → service-map.js} +12 -150
- package/package.json +6 -2
- package/dist/categories-CA4XIQAb.js +0 -1011
- package/dist/client-DOzUrdTE.js +0 -1115
- package/dist/send-Bxc0XfGE.js +0 -722
|
@@ -5,7 +5,7 @@ export declare const create: (input: {
|
|
|
5
5
|
readonly billingAccountId: string;
|
|
6
6
|
readonly name: string;
|
|
7
7
|
readonly slug: string;
|
|
8
|
-
readonly
|
|
8
|
+
readonly defaultRegion: string | null;
|
|
9
9
|
readonly timezone: string;
|
|
10
10
|
readonly plan: string;
|
|
11
11
|
readonly isActive: boolean;
|
|
@@ -24,13 +24,13 @@ export declare const create: (input: {
|
|
|
24
24
|
readonly conversationsUsed: number;
|
|
25
25
|
readonly teamMembersUsed: number;
|
|
26
26
|
readonly messagesResetAt: string | null;
|
|
27
|
-
}, import("./
|
|
27
|
+
}, import("./errors").BillingProviderError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
28
28
|
export declare const get: (_?: never) => import("effect/Effect").Effect<{
|
|
29
29
|
readonly id: string;
|
|
30
30
|
readonly billingAccountId: string;
|
|
31
31
|
readonly name: string;
|
|
32
32
|
readonly slug: string;
|
|
33
|
-
readonly
|
|
33
|
+
readonly defaultRegion: string | null;
|
|
34
34
|
readonly timezone: string;
|
|
35
35
|
readonly plan: string;
|
|
36
36
|
readonly isActive: boolean;
|
|
@@ -49,12 +49,12 @@ export declare const get: (_?: never) => import("effect/Effect").Effect<{
|
|
|
49
49
|
readonly conversationsUsed: number;
|
|
50
50
|
readonly teamMembersUsed: number;
|
|
51
51
|
readonly messagesResetAt: string | null;
|
|
52
|
-
}, import("./
|
|
52
|
+
}, 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>;
|
|
53
53
|
export declare const getProfile: (_?: never) => import("effect/Effect").Effect<{
|
|
54
54
|
readonly id: string;
|
|
55
55
|
readonly name: string;
|
|
56
56
|
readonly nickname: string;
|
|
57
|
-
}, import("./
|
|
57
|
+
}, 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>;
|
|
58
58
|
export declare const getTrustTier: (_?: never) => import("effect/Effect").Effect<{
|
|
59
59
|
readonly tier: "established" | "probation" | "screened";
|
|
60
60
|
readonly changedAt: string;
|
|
@@ -84,11 +84,11 @@ export declare const getTrustTier: (_?: never) => import("effect/Effect").Effect
|
|
|
84
84
|
};
|
|
85
85
|
readonly blockers: readonly ("bounce_rate" | "complaints" | "held" | "too_few_delivered" | "too_recent")[];
|
|
86
86
|
} | null;
|
|
87
|
-
}, import("./
|
|
87
|
+
}, import("./errors").BillingProviderError | 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>;
|
|
88
88
|
export declare const update: (input?: {
|
|
89
89
|
readonly name?: string | null | undefined;
|
|
90
90
|
readonly slug?: string | null | undefined;
|
|
91
|
-
readonly
|
|
91
|
+
readonly defaultRegion?: string | null | undefined;
|
|
92
92
|
readonly timezone?: string | null | undefined;
|
|
93
93
|
readonly isActive?: boolean | null | undefined;
|
|
94
94
|
readonly metadata?: {
|
|
@@ -125,7 +125,7 @@ export declare const update: (input?: {
|
|
|
125
125
|
readonly billingAccountId: string;
|
|
126
126
|
readonly name: string;
|
|
127
127
|
readonly slug: string;
|
|
128
|
-
readonly
|
|
128
|
+
readonly defaultRegion: string | null;
|
|
129
129
|
readonly timezone: string;
|
|
130
130
|
readonly plan: string;
|
|
131
131
|
readonly isActive: boolean;
|
|
@@ -144,7 +144,7 @@ export declare const update: (input?: {
|
|
|
144
144
|
readonly conversationsUsed: number;
|
|
145
145
|
readonly teamMembersUsed: number;
|
|
146
146
|
readonly messagesResetAt: string | null;
|
|
147
|
-
}, import("./
|
|
147
|
+
}, 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>;
|
|
148
148
|
export declare const getUsage: (input?: {
|
|
149
149
|
readonly after?: string | null | undefined;
|
|
150
150
|
readonly before?: string | null | undefined;
|
|
@@ -163,7 +163,7 @@ export declare const getUsage: (input?: {
|
|
|
163
163
|
readonly overageEmails: number | null;
|
|
164
164
|
readonly overageCost: number | null;
|
|
165
165
|
};
|
|
166
|
-
}, import("./
|
|
166
|
+
}, 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>;
|
|
167
167
|
declare const deleteOrganization: (input: {
|
|
168
168
|
readonly confirmationName: string;
|
|
169
169
|
} & {
|
|
@@ -202,5 +202,5 @@ declare const deleteOrganization: (input: {
|
|
|
202
202
|
readonly href: string;
|
|
203
203
|
};
|
|
204
204
|
};
|
|
205
|
-
}, import("./
|
|
205
|
+
}, import("./errors").ConflictError | 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>;
|
|
206
206
|
export { deleteOrganization as delete };
|
|
@@ -1,2 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { OrganizationsGroup } from "./generated/organizations.js";
|
|
4
|
+
//#region src/effect/organizations.ts
|
|
5
|
+
var organizations_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
create: () => create,
|
|
7
|
+
delete: () => deleteOrganization,
|
|
8
|
+
get: () => get,
|
|
9
|
+
getProfile: () => getProfile,
|
|
10
|
+
getTrustTier: () => getTrustTier,
|
|
11
|
+
getUsage: () => getUsage,
|
|
12
|
+
update: () => update
|
|
13
|
+
});
|
|
14
|
+
const make = /* @__PURE__ */ forGroup(OrganizationsGroup);
|
|
15
|
+
const create = /* @__PURE__ */ make("organizationsCreate");
|
|
16
|
+
const get = /* @__PURE__ */ make("organizationsGet");
|
|
17
|
+
const getProfile = /* @__PURE__ */ make("organizationsGetProfile");
|
|
18
|
+
const getTrustTier = /* @__PURE__ */ make("organizationsGetTrustTier");
|
|
19
|
+
const update = /* @__PURE__ */ make("organizationsUpdate");
|
|
20
|
+
const getUsage = /* @__PURE__ */ make("organizationsGetUsage");
|
|
21
|
+
const deleteOrganization = /* @__PURE__ */ make("organizationsDelete");
|
|
22
|
+
//#endregion
|
|
23
|
+
export { create, deleteOrganization as delete, get, getProfile, getTrustTier, getUsage, organizations_exports, update };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=organizations.js.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Effect, Option, Stream } from "effect";
|
|
2
|
+
//#region src/effect/pagination.ts
|
|
3
|
+
/**
|
|
4
|
+
* Stream pagination for the Effect SDK.
|
|
5
|
+
*
|
|
6
|
+
* Every list operation whose success value is a page envelope gains `.pages()`
|
|
7
|
+
* and `.items()` companions on its domain operation. `.pages()` streams the raw
|
|
8
|
+
* envelopes; `.items()` flattens them into a stream of items. Every list pages
|
|
9
|
+
* by cursor, `{ items, nextCursor }`: each step passes the previous page's
|
|
10
|
+
* `nextCursor` as `cursor`, and the walk stops at a null `nextCursor`.
|
|
11
|
+
*
|
|
12
|
+
* The traversal is **lazy**: built on `Stream.paginate` (a pull-based source),
|
|
13
|
+
* so each page is fetched only as the stream is consumed — `Stream.take(n)`
|
|
14
|
+
* stops requesting further pages. Caller params (the start `cursor`,
|
|
15
|
+
* `limit`, filters) are respected; only the position is advanced per step.
|
|
16
|
+
*
|
|
17
|
+
* Retry is **not** re-applied here: the underlying domain operation is already
|
|
18
|
+
* wrapped in the ambient {@link import("./retry").Service} policy (reads are
|
|
19
|
+
* retry-safe), so each page fetch retries on its own and pagination composes
|
|
20
|
+
* with retry instead of nesting retries.
|
|
21
|
+
*/
|
|
22
|
+
/** Honor a caller-supplied start `cursor`; default to the first page otherwise. */
|
|
23
|
+
const startCursorOf = (input) => {
|
|
24
|
+
const cursor = input?.cursor;
|
|
25
|
+
return typeof cursor === "string" ? cursor : void 0;
|
|
26
|
+
};
|
|
27
|
+
/** Fetch the page at `cursor`, preserving all other caller params. */
|
|
28
|
+
const fetchCursorPage = (operation, input, cursor) => operation({
|
|
29
|
+
...input,
|
|
30
|
+
cursor
|
|
31
|
+
});
|
|
32
|
+
/** Stream the raw cursor page envelopes, one per request, from the caller's start cursor. */
|
|
33
|
+
const streamCursorPages = (operation, input) => Stream.paginate(startCursorOf(input), (cursor) => fetchCursorPage(operation, input, cursor).pipe(Effect.map((result) => [[result], Option.fromNullishOr(result.nextCursor)])));
|
|
34
|
+
/** Stream individual items across cursor pages, fetching the next page only when pulled. */
|
|
35
|
+
const streamCursorItems = (operation, input) => Stream.paginate(startCursorOf(input), (cursor) => fetchCursorPage(operation, input, cursor).pipe(Effect.map((result) => [result.items, Option.fromNullishOr(result.nextCursor)])));
|
|
36
|
+
//#endregion
|
|
37
|
+
export { streamCursorItems, streamCursorPages };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=pagination.js.map
|
package/dist/effect/retry.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { isRetryable } from "./categories.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
|
|
@@ -107,6 +107,6 @@ const generateIdempotencyKey = Effect.gen(function* () {
|
|
|
107
107
|
return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;
|
|
108
108
|
});
|
|
109
109
|
//#endregion
|
|
110
|
-
export { Service, defaultPolicy, disabledPolicy, fromOptions, generateIdempotencyKey, layer, layerDefault, layerDisabled, retry_exports
|
|
110
|
+
export { Service, defaultPolicy, disabledPolicy, fromOptions, generateIdempotencyKey, layer, layerDefault, layerDisabled, retry_exports, withRetry };
|
|
111
111
|
|
|
112
112
|
//# sourceMappingURL=retry.js.map
|
|
@@ -20,6 +20,6 @@ const isValidAbsoluteInstant = (value) => {
|
|
|
20
20
|
};
|
|
21
21
|
const AbsoluteInstant = Schema.String.check(Schema.isPattern(ABSOLUTE_ISO_INSTANT_PATTERN), Schema.makeFilter(isValidAbsoluteInstant, { message: "Invalid absolute ISO-8601 instant" })).pipe(Schema.decodeTo(Schema.Date, SchemaTransformation.dateFromString));
|
|
22
22
|
//#endregion
|
|
23
|
-
export {
|
|
23
|
+
export { AbsoluteInstant, SensitiveString };
|
|
24
24
|
|
|
25
|
-
//# sourceMappingURL=runtime
|
|
25
|
+
//# sourceMappingURL=runtime.js.map
|
|
@@ -83,7 +83,7 @@ export declare const list: ((input?: {
|
|
|
83
83
|
readonly updatedAt: string;
|
|
84
84
|
}[];
|
|
85
85
|
readonly nextCursor: string | null;
|
|
86
|
-
}, import("./
|
|
86
|
+
}, 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>) & {
|
|
87
87
|
readonly pages: (input?: {
|
|
88
88
|
readonly limit?: string | null | undefined;
|
|
89
89
|
readonly cursor?: string | null | undefined;
|
|
@@ -169,7 +169,7 @@ export declare const list: ((input?: {
|
|
|
169
169
|
readonly updatedAt: string;
|
|
170
170
|
}[];
|
|
171
171
|
readonly nextCursor: string | null;
|
|
172
|
-
}, import("./
|
|
172
|
+
}, 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>;
|
|
173
173
|
readonly items: (input?: {
|
|
174
174
|
readonly limit?: string | null | undefined;
|
|
175
175
|
readonly cursor?: string | null | undefined;
|
|
@@ -252,7 +252,7 @@ export declare const list: ((input?: {
|
|
|
252
252
|
readonly memberRole: string;
|
|
253
253
|
readonly createdAt: string;
|
|
254
254
|
readonly updatedAt: string;
|
|
255
|
-
}, import("./
|
|
255
|
+
}, 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>;
|
|
256
256
|
};
|
|
257
257
|
export declare const create: (input: {
|
|
258
258
|
readonly send: {
|
|
@@ -448,7 +448,7 @@ export declare const create: (input: {
|
|
|
448
448
|
readonly memberRole: string;
|
|
449
449
|
readonly createdAt: string;
|
|
450
450
|
readonly updatedAt: string;
|
|
451
|
-
}, import("./
|
|
451
|
+
}, import("./errors").ConflictError | import("./errors").ExternalServiceError | import("./errors").FlagDisabledError | 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>;
|
|
452
452
|
export declare const get: (input: {
|
|
453
453
|
readonly id: string;
|
|
454
454
|
}) => import("effect/Effect").Effect<{
|
|
@@ -529,7 +529,7 @@ export declare const get: (input: {
|
|
|
529
529
|
readonly memberRole: string;
|
|
530
530
|
readonly createdAt: string;
|
|
531
531
|
readonly updatedAt: string;
|
|
532
|
-
}, import("./
|
|
532
|
+
}, 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>;
|
|
533
533
|
export declare const cancel: (input: {
|
|
534
534
|
readonly id: string;
|
|
535
535
|
}) => import("effect/Effect").Effect<{
|
|
@@ -613,7 +613,7 @@ export declare const cancel: (input: {
|
|
|
613
613
|
readonly createdAt: string;
|
|
614
614
|
readonly updatedAt: string;
|
|
615
615
|
};
|
|
616
|
-
}, import("./
|
|
616
|
+
}, import("./errors").ConflictError | 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>;
|
|
617
617
|
export declare const resume: (input: {
|
|
618
618
|
readonly id: string;
|
|
619
619
|
readonly choice: "send_now";
|
|
@@ -699,4 +699,4 @@ export declare const resume: (input: {
|
|
|
699
699
|
readonly memberRole: string;
|
|
700
700
|
readonly createdAt: string;
|
|
701
701
|
readonly updatedAt: string;
|
|
702
|
-
}, import("./
|
|
702
|
+
}, import("./errors").ConflictError | import("./errors").ExternalServiceError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
@@ -1,2 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { ScheduledMessagesGroup } from "./generated/scheduled-messages.js";
|
|
4
|
+
//#region src/effect/scheduled-messages.ts
|
|
5
|
+
var scheduled_messages_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
cancel: () => cancel,
|
|
7
|
+
create: () => create,
|
|
8
|
+
get: () => get,
|
|
9
|
+
list: () => list,
|
|
10
|
+
resume: () => resume
|
|
11
|
+
});
|
|
12
|
+
const make = /* @__PURE__ */ forGroup(ScheduledMessagesGroup);
|
|
13
|
+
const list = /* @__PURE__ */ make("scheduledMessagesList");
|
|
14
|
+
const create = /* @__PURE__ */ make("scheduledMessagesCreate");
|
|
15
|
+
const get = /* @__PURE__ */ make("scheduledMessagesGet");
|
|
16
|
+
const cancel = /* @__PURE__ */ make("scheduledMessagesCancel");
|
|
17
|
+
const resume = /* @__PURE__ */ make("scheduledMessagesResume");
|
|
18
|
+
//#endregion
|
|
19
|
+
export { cancel, create, get, list, resume, scheduled_messages_exports };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=scheduled-messages.js.map
|
|
@@ -12,4 +12,4 @@ export declare const subscribe: (input: {
|
|
|
12
12
|
}) => import("effect/Effect").Effect<{
|
|
13
13
|
readonly success: boolean;
|
|
14
14
|
readonly expiresAt: string;
|
|
15
|
-
}, import("./
|
|
15
|
+
}, import("./errors").BillingProviderError | import("./errors").BrandAddressRequiredError | import("./errors").CampaignFooterRequiredError | import("./errors").ConflictError | import("./errors").DeliveryUnavailableError | import("./errors").ExternalServiceError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { SubscriptionsGroup } from "./generated/subscriptions.js";
|
|
4
|
+
//#region src/effect/subscriptions.ts
|
|
5
|
+
var subscriptions_exports = /* @__PURE__ */ __exportAll({ subscribe: () => subscribe });
|
|
6
|
+
const subscribe = /* @__PURE__ */ (/* @__PURE__ */ forGroup(SubscriptionsGroup))("subscriptionsSubscribe");
|
|
7
|
+
//#endregion
|
|
8
|
+
export { subscribe, subscriptions_exports };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=subscriptions.js.map
|