samva 0.29.1 → 0.30.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 +23 -5
- package/README.md +166 -133
- package/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/client/client/client.gen.js +1 -2
- package/dist/client/client/utils.gen.js +1 -2
- package/dist/client/client.gen.js +1 -2
- package/dist/client/core/auth.gen.js +1 -2
- package/dist/client/core/bodySerializer.gen.js +1 -2
- package/dist/client/core/params.gen.js +1 -2
- package/dist/client/core/pathSerializer.gen.js +1 -2
- package/dist/client/core/serverSentEvents.gen.js +1 -2
- package/dist/client/core/utils.gen.js +1 -2
- package/dist/client/sdk.gen.d.ts +216 -191
- package/dist/client/sdk.gen.js +2392 -1153
- package/dist/client/types.gen.d.ts +766 -376
- package/dist/client-attribution.js +1 -2
- package/dist/effect/agents.d.ts +33 -11
- package/dist/effect/agents.js +1 -2
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +1 -2
- package/dist/effect/api-keys.d.ts +8 -8
- package/dist/effect/api-keys.js +1 -2
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +1 -2
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/brands.js +1 -2
- package/dist/effect/campaigns.d.ts +15 -16
- package/dist/effect/campaigns.js +1 -2
- package/dist/effect/categories.js +1 -2
- package/dist/effect/client.js +1 -2
- package/dist/effect/contact-groups.d.ts +10 -10
- package/dist/effect/contact-groups.js +1 -2
- package/dist/effect/contacts.d.ts +23 -24
- package/dist/effect/contacts.js +1 -2
- package/dist/effect/conversations.d.ts +13 -13
- package/dist/effect/conversations.js +1 -2
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +1 -2
- package/dist/effect/email.d.ts +61 -63
- package/dist/effect/email.js +1 -2
- package/dist/effect/events.d.ts +2 -4
- package/dist/effect/events.js +1 -2
- package/dist/effect/extension-installations.d.ts +9 -9
- package/dist/effect/extension-installations.js +1 -2
- package/dist/effect/extensions.d.ts +5 -5
- package/dist/effect/extensions.js +1 -2
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +1 -2
- package/dist/effect/generated/agents.d.ts +264 -22
- package/dist/effect/generated/agents.js +2 -3
- package/dist/effect/generated/analytics.js +1 -2
- package/dist/effect/generated/api-keys.js +1 -2
- package/dist/effect/generated/attachments.js +1 -2
- package/dist/effect/generated/brands.js +1 -2
- package/dist/effect/generated/campaigns.d.ts +160 -155
- package/dist/effect/generated/campaigns.js +7 -9
- package/dist/effect/generated/contact-events.js +1 -2
- package/dist/effect/generated/contact-groups.d.ts +26 -26
- package/dist/effect/generated/contact-groups.js +22 -19
- package/dist/effect/generated/contacts.d.ts +119 -90
- package/dist/effect/generated/contacts.js +32 -32
- package/dist/effect/generated/conversations.d.ts +22 -22
- package/dist/effect/generated/conversations.js +7 -8
- package/dist/effect/generated/custom-fields.d.ts +6 -6
- package/dist/effect/generated/custom-fields.js +3 -4
- package/dist/effect/generated/email.d.ts +38 -38
- package/dist/effect/generated/email.js +13 -14
- package/dist/effect/generated/events.d.ts +18 -9
- package/dist/effect/generated/events.js +8 -6
- package/dist/effect/generated/extension-installations.d.ts +2 -2
- package/dist/effect/generated/extension-installations.js +6 -3
- package/dist/effect/generated/extensions.js +1 -2
- package/dist/effect/generated/feedback.js +1 -2
- package/dist/effect/generated/index.d.ts +7 -5
- package/dist/effect/generated/journeys.js +1 -2
- package/dist/effect/generated/mailboxes.d.ts +44 -44
- package/dist/effect/generated/mailboxes.js +17 -18
- package/dist/effect/generated/media.js +1 -2
- package/dist/effect/generated/messages.d.ts +42 -42
- package/dist/effect/generated/messages.js +3 -4
- package/dist/effect/generated/namespaces.js +1 -2
- package/dist/effect/generated/{publication-domains.d.ts → newsletter-domains.d.ts} +304 -80
- package/dist/effect/generated/newsletter-domains.js +218 -0
- package/dist/effect/generated/{topic-issues.d.ts → newsletter-issues.d.ts} +330 -288
- package/dist/effect/generated/{topic-issues.js → newsletter-issues.js} +255 -246
- package/dist/effect/generated/newsletters.d.ts +741 -0
- package/dist/effect/generated/newsletters.js +143 -0
- package/dist/effect/generated/operations.js +1 -2
- package/dist/effect/generated/organizations.d.ts +9 -9
- package/dist/effect/generated/organizations.js +4 -5
- package/dist/effect/generated/scheduled-messages.d.ts +174 -169
- package/dist/effect/generated/scheduled-messages.js +7 -7
- package/dist/effect/generated/shared.d.ts +276 -208
- package/dist/effect/generated/shared.js +50 -36
- package/dist/effect/generated/subscriptions.js +1 -2
- package/dist/effect/generated/templates.d.ts +118 -67
- package/dist/effect/generated/templates.js +43 -35
- package/dist/effect/generated/topic-forms.d.ts +79 -19
- package/dist/effect/generated/topic-forms.js +13 -14
- package/dist/effect/generated/topics.d.ts +27 -65
- package/dist/effect/generated/topics.js +13 -20
- package/dist/effect/generated/webhooks.d.ts +9 -9
- package/dist/effect/generated/webhooks.js +4 -5
- package/dist/effect/generated/whoami.js +1 -2
- package/dist/effect/generated-metadata.d.ts +475 -70
- package/dist/effect/generated-metadata.js +642 -432
- package/dist/effect/index.d.ts +3 -2
- package/dist/effect/index.js +4 -3
- package/dist/effect/internal/client.d.ts +5 -0
- package/dist/effect/internal/client.js +9 -5
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/email-sender.js +4 -3
- package/dist/effect/internal/mailbox-events.js +1 -2
- package/dist/effect/internal/operation.d.ts +4 -15
- package/dist/effect/internal/operation.js +21 -33
- package/dist/effect/internal/send.js +2 -3
- package/dist/effect/journeys.d.ts +14 -14
- package/dist/effect/journeys.js +1 -2
- package/dist/effect/mailboxes.d.ts +60 -70
- package/dist/effect/mailboxes.js +1 -2
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +1 -2
- package/dist/effect/messages.d.ts +9 -9
- package/dist/effect/messages.js +1 -2
- package/dist/effect/namespaces.d.ts +8 -8
- package/dist/effect/namespaces.js +1 -2
- package/dist/effect/newsletter-domains.d.ts +71 -0
- package/dist/effect/newsletter-domains.js +18 -0
- package/dist/effect/{topic-issues.d.ts → newsletter-issues.d.ts} +11 -15
- package/dist/effect/newsletter-issues.js +32 -0
- package/dist/effect/newsletters.d.ts +22 -0
- package/dist/effect/newsletters.js +20 -0
- package/dist/effect/operations.d.ts +3 -3
- package/dist/effect/operations.js +1 -2
- package/dist/effect/organizations.d.ts +8 -10
- package/dist/effect/organizations.js +1 -2
- package/dist/effect/pagination.js +1 -2
- package/dist/effect/retry.d.ts +4 -4
- package/dist/effect/retry.js +5 -6
- package/dist/effect/runtime.js +1 -2
- package/dist/effect/scheduled-messages.d.ts +5 -6
- package/dist/effect/scheduled-messages.js +1 -2
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +1 -2
- package/dist/effect/templates.d.ts +34 -43
- package/dist/effect/templates.js +1 -2
- package/dist/effect/topic-forms.d.ts +5 -5
- package/dist/effect/topic-forms.js +1 -2
- package/dist/effect/topics.d.ts +9 -13
- package/dist/effect/topics.js +1 -2
- package/dist/effect/webhooks.d.ts +11 -11
- package/dist/effect/webhooks.js +1 -2
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/effect/whoami.js +1 -2
- package/dist/index.js +2 -2
- package/dist/inline-attachments.js +1 -2
- package/dist/mailbox/dispatch.d.ts +10 -0
- package/dist/mailbox/dispatch.js +66 -0
- package/dist/mailbox/index.d.ts +17 -0
- package/dist/mailbox/index.js +30 -0
- package/dist/mailbox/test.d.ts +25 -0
- package/dist/mailbox/test.js +174 -0
- package/dist/mailbox/types.d.ts +184 -0
- package/dist/mailbox/webhook.d.ts +10 -0
- package/dist/mailbox/webhook.js +41 -0
- package/dist/mailbox-events.js +1 -2
- package/dist/normalize.js +1 -2
- package/dist/package.js +2 -3
- package/dist/promises/client.d.ts +215 -0
- package/dist/promises/client.js +324 -0
- package/dist/promises/errors.gen.js +1 -2
- package/dist/promises/index.d.ts +2 -196
- package/dist/promises/index.js +3 -295
- package/dist/promises/request.d.ts +15 -0
- package/dist/promises/request.js +75 -0
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-policy.d.ts +3 -0
- package/dist/request-policy.js +16 -0
- package/dist/service-map.d.ts +78 -47
- package/dist/service-map.js +52 -32
- package/package.json +34 -18
- package/dist/effect/generated/publication-domains.js +0 -163
- package/dist/effect/publication-domains.d.ts +0 -14
- package/dist/effect/publication-domains.js +0 -17
- package/dist/effect/topic-issues.js +0 -33
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export declare const list: ((input: {
|
|
2
|
+
readonly id: string;
|
|
3
|
+
readonly limit?: number | null | undefined;
|
|
4
|
+
readonly cursor?: string | null | undefined;
|
|
5
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"newsletterDomainsList">) & {
|
|
6
|
+
readonly pages: (input: {
|
|
7
|
+
readonly id: string;
|
|
8
|
+
readonly limit?: number | null | undefined;
|
|
9
|
+
readonly cursor?: string | null | undefined;
|
|
10
|
+
}) => import("effect/Stream").Stream<{
|
|
11
|
+
readonly items: readonly {
|
|
12
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
13
|
+
readonly topicId: string & import("effect/Brand").Brand<"TopicId">;
|
|
14
|
+
readonly hostname: string;
|
|
15
|
+
readonly canonicalHostname: string;
|
|
16
|
+
readonly phase: "active" | "conflict" | "pending" | "removed" | "removing";
|
|
17
|
+
readonly active: boolean;
|
|
18
|
+
readonly hostnameStatus: string | null;
|
|
19
|
+
readonly sslStatus: string | null;
|
|
20
|
+
readonly cname: {
|
|
21
|
+
readonly type: "CNAME" | "TXT";
|
|
22
|
+
readonly name: string;
|
|
23
|
+
readonly value: string;
|
|
24
|
+
};
|
|
25
|
+
readonly verificationRecords: readonly {
|
|
26
|
+
readonly type: "CNAME" | "TXT";
|
|
27
|
+
readonly name: string;
|
|
28
|
+
readonly value: string;
|
|
29
|
+
}[];
|
|
30
|
+
readonly verificationErrors: readonly string[];
|
|
31
|
+
}[];
|
|
32
|
+
readonly nextCursor: string | null;
|
|
33
|
+
}, import("./errors").ConflictError | import("./errors").FlagDisabledError | 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>;
|
|
34
|
+
readonly items: (input: {
|
|
35
|
+
readonly id: string;
|
|
36
|
+
readonly limit?: number | null | undefined;
|
|
37
|
+
readonly cursor?: string | null | undefined;
|
|
38
|
+
}) => import("effect/Stream").Stream<{
|
|
39
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
40
|
+
readonly topicId: string & import("effect/Brand").Brand<"TopicId">;
|
|
41
|
+
readonly hostname: string;
|
|
42
|
+
readonly canonicalHostname: string;
|
|
43
|
+
readonly phase: "active" | "conflict" | "pending" | "removed" | "removing";
|
|
44
|
+
readonly active: boolean;
|
|
45
|
+
readonly hostnameStatus: string | null;
|
|
46
|
+
readonly sslStatus: string | null;
|
|
47
|
+
readonly cname: {
|
|
48
|
+
readonly type: "CNAME" | "TXT";
|
|
49
|
+
readonly name: string;
|
|
50
|
+
readonly value: string;
|
|
51
|
+
};
|
|
52
|
+
readonly verificationRecords: readonly {
|
|
53
|
+
readonly type: "CNAME" | "TXT";
|
|
54
|
+
readonly name: string;
|
|
55
|
+
readonly value: string;
|
|
56
|
+
}[];
|
|
57
|
+
readonly verificationErrors: readonly string[];
|
|
58
|
+
}, import("./errors").ConflictError | import("./errors").FlagDisabledError | 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>;
|
|
59
|
+
};
|
|
60
|
+
export declare const add: (input: {
|
|
61
|
+
readonly id: string;
|
|
62
|
+
readonly hostname: string;
|
|
63
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"newsletterDomainsAdd">;
|
|
64
|
+
export declare const get: (input: {
|
|
65
|
+
readonly id: string;
|
|
66
|
+
readonly hostname: string;
|
|
67
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"newsletterDomainsGet">;
|
|
68
|
+
export declare const remove: (input: {
|
|
69
|
+
readonly id: string;
|
|
70
|
+
readonly hostname: string;
|
|
71
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"newsletterDomainsRemove">;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { NewsletterDomainsGroup } from "./generated/newsletter-domains.js";
|
|
4
|
+
// src/effect/newsletter-domains.ts
|
|
5
|
+
var newsletter_domains_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
add: () => add,
|
|
7
|
+
get: () => get,
|
|
8
|
+
list: () => list,
|
|
9
|
+
remove: () => remove
|
|
10
|
+
});
|
|
11
|
+
const make = /* @__PURE__ */ forGroup(NewsletterDomainsGroup);
|
|
12
|
+
const list = /* @__PURE__ */ make("newsletterDomainsList");
|
|
13
|
+
const add = /* @__PURE__ */ make("newsletterDomainsAdd");
|
|
14
|
+
const get = /* @__PURE__ */ make("newsletterDomainsGet");
|
|
15
|
+
const remove = /* @__PURE__ */ make("newsletterDomainsRemove");
|
|
16
|
+
export { add, get, list, newsletter_domains_exports, remove };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=newsletter-domains.js.map
|
|
@@ -1,57 +1,53 @@
|
|
|
1
1
|
export declare const list: (input: {
|
|
2
2
|
readonly id: string;
|
|
3
|
-
}) => import("./internal/operation").OperationResult<"
|
|
3
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"newsletterIssuesList">;
|
|
4
4
|
export declare const open: (input: {
|
|
5
5
|
readonly id: string;
|
|
6
|
-
}) => import("./internal/operation").OperationResult<"
|
|
6
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"newsletterIssuesOpen">;
|
|
7
7
|
export declare const get: (input: {
|
|
8
8
|
readonly id: string;
|
|
9
9
|
readonly path: string;
|
|
10
10
|
readonly expectedRevision: string;
|
|
11
|
-
}) => import("./internal/operation").OperationResult<"
|
|
11
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"newsletterIssuesGet">;
|
|
12
12
|
export declare const create: (input: {
|
|
13
13
|
readonly id: string;
|
|
14
14
|
readonly path: string;
|
|
15
15
|
readonly content: string;
|
|
16
|
-
readonly idempotencyKey: string;
|
|
17
16
|
readonly expectedRevision?: string | null | undefined;
|
|
18
|
-
}) => import("./internal/operation").OperationResult<"
|
|
17
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"newsletterIssuesCreate">;
|
|
19
18
|
export declare const update: (input: {
|
|
20
19
|
readonly id: string;
|
|
21
20
|
readonly path: string;
|
|
22
21
|
readonly content: string;
|
|
23
|
-
readonly idempotencyKey: string;
|
|
24
22
|
readonly expectedRevision: string;
|
|
25
|
-
}) => import("./internal/operation").OperationResult<"
|
|
23
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"newsletterIssuesUpdate">;
|
|
26
24
|
export declare const remove: (input: {
|
|
27
25
|
readonly id: string;
|
|
28
26
|
readonly path: string;
|
|
29
|
-
readonly idempotencyKey: string;
|
|
30
27
|
readonly expectedRevision: string;
|
|
31
|
-
}) => import("./internal/operation").OperationResult<"
|
|
28
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"newsletterIssuesRemove">;
|
|
32
29
|
export declare const save: (input: {
|
|
33
30
|
readonly id: string;
|
|
34
31
|
readonly expectedRevision: string;
|
|
35
32
|
readonly expectedHead: string;
|
|
36
33
|
readonly message: string;
|
|
37
|
-
|
|
38
|
-
}) => import("./internal/operation").OperationResult<"topicIssuesSave">;
|
|
34
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"newsletterIssuesSave">;
|
|
39
35
|
export declare const check: (input: {
|
|
40
36
|
readonly id: string;
|
|
41
37
|
readonly path: string;
|
|
42
38
|
readonly expectedRevision: string;
|
|
43
|
-
}) => import("./internal/operation").OperationResult<"
|
|
39
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"newsletterIssuesCheck">;
|
|
44
40
|
export declare const render: (input: {
|
|
45
41
|
readonly id: string;
|
|
46
42
|
readonly path: string;
|
|
47
43
|
readonly expectedRevision: string;
|
|
48
44
|
readonly fixture: string;
|
|
49
45
|
readonly target: "email" | "web";
|
|
50
|
-
}) => import("./internal/operation").OperationResult<"
|
|
46
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"newsletterIssuesRender">;
|
|
51
47
|
export declare const head: (input: {
|
|
52
48
|
readonly id: string;
|
|
53
|
-
}) => import("./internal/operation").OperationResult<"
|
|
49
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"newsletterIssuesHead">;
|
|
54
50
|
export declare const history: (input: {
|
|
55
51
|
readonly id: string;
|
|
56
52
|
readonly limit?: number | null | undefined;
|
|
57
|
-
}) => import("./internal/operation").OperationResult<"
|
|
53
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"newsletterIssuesHistory">;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { NewsletterIssuesGroup } from "./generated/newsletter-issues.js";
|
|
4
|
+
// src/effect/newsletter-issues.ts
|
|
5
|
+
var newsletter_issues_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
check: () => check,
|
|
7
|
+
create: () => create,
|
|
8
|
+
get: () => get,
|
|
9
|
+
head: () => head,
|
|
10
|
+
history: () => history,
|
|
11
|
+
list: () => list,
|
|
12
|
+
open: () => open,
|
|
13
|
+
remove: () => remove,
|
|
14
|
+
render: () => render,
|
|
15
|
+
save: () => save,
|
|
16
|
+
update: () => update
|
|
17
|
+
});
|
|
18
|
+
const make = /* @__PURE__ */ forGroup(NewsletterIssuesGroup);
|
|
19
|
+
const list = /* @__PURE__ */ make("newsletterIssuesList");
|
|
20
|
+
const open = /* @__PURE__ */ make("newsletterIssuesOpen");
|
|
21
|
+
const get = /* @__PURE__ */ make("newsletterIssuesGet");
|
|
22
|
+
const create = /* @__PURE__ */ make("newsletterIssuesCreate");
|
|
23
|
+
const update = /* @__PURE__ */ make("newsletterIssuesUpdate");
|
|
24
|
+
const remove = /* @__PURE__ */ make("newsletterIssuesRemove");
|
|
25
|
+
const save = /* @__PURE__ */ make("newsletterIssuesSave");
|
|
26
|
+
const check = /* @__PURE__ */ make("newsletterIssuesCheck");
|
|
27
|
+
const render = /* @__PURE__ */ make("newsletterIssuesRender");
|
|
28
|
+
const head = /* @__PURE__ */ make("newsletterIssuesHead");
|
|
29
|
+
const history = /* @__PURE__ */ make("newsletterIssuesHistory");
|
|
30
|
+
export { check, create, get, head, history, list, newsletter_issues_exports, open, remove, render, save, update };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=newsletter-issues.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const list: (input?: {
|
|
2
|
+
readonly namespaceId?: string | null | undefined;
|
|
3
|
+
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"newslettersList">;
|
|
4
|
+
export declare const get: (input: {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"newslettersGet">;
|
|
7
|
+
export declare const create: (input?: {
|
|
8
|
+
readonly topicId?: string | null | undefined;
|
|
9
|
+
readonly name?: string | null | undefined;
|
|
10
|
+
readonly description?: string | null | undefined;
|
|
11
|
+
readonly namespaceId?: string | null | undefined;
|
|
12
|
+
readonly archiveEnabled?: boolean | null | undefined;
|
|
13
|
+
readonly publicationSlug?: string | null | undefined;
|
|
14
|
+
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"newslettersCreate">;
|
|
15
|
+
export declare const update: (input: {
|
|
16
|
+
readonly id: string;
|
|
17
|
+
readonly archiveEnabled?: boolean | null | undefined;
|
|
18
|
+
readonly publicationSlug?: string | null | undefined;
|
|
19
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"newslettersUpdate">;
|
|
20
|
+
export declare const remove: (input: {
|
|
21
|
+
readonly id: string;
|
|
22
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"newslettersRemove">;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { NewslettersGroup } from "./generated/newsletters.js";
|
|
4
|
+
// src/effect/newsletters.ts
|
|
5
|
+
var newsletters_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
create: () => create,
|
|
7
|
+
get: () => get,
|
|
8
|
+
list: () => list,
|
|
9
|
+
remove: () => remove,
|
|
10
|
+
update: () => update
|
|
11
|
+
});
|
|
12
|
+
const make = /* @__PURE__ */ forGroup(NewslettersGroup);
|
|
13
|
+
const list = /* @__PURE__ */ make("newslettersList");
|
|
14
|
+
const get = /* @__PURE__ */ make("newslettersGet");
|
|
15
|
+
const create = /* @__PURE__ */ make("newslettersCreate");
|
|
16
|
+
const update = /* @__PURE__ */ make("newslettersUpdate");
|
|
17
|
+
const remove = /* @__PURE__ */ make("newslettersRemove");
|
|
18
|
+
export { create, get, list, newsletters_exports, remove, update };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=newsletters.js.map
|
|
@@ -3,7 +3,7 @@ export declare const list: ((input?: {
|
|
|
3
3
|
readonly cursor?: string | null | undefined;
|
|
4
4
|
readonly kind?: "email-domain-provisioning" | "organization-deletion" | null | undefined;
|
|
5
5
|
readonly status?: "failed" | "pending" | "running" | "succeeded" | null | undefined;
|
|
6
|
-
} | undefined) => import("./internal/operation").OperationResult<"operationsList">) & {
|
|
6
|
+
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"operationsList">) & {
|
|
7
7
|
readonly pages: (input?: {
|
|
8
8
|
readonly limit?: number | null | undefined;
|
|
9
9
|
readonly cursor?: string | null | undefined;
|
|
@@ -66,7 +66,7 @@ export declare const list: ((input?: {
|
|
|
66
66
|
};
|
|
67
67
|
export declare const get: (input: {
|
|
68
68
|
readonly id: string;
|
|
69
|
-
}) => import("./internal/operation").OperationResult<"operationsGet">;
|
|
69
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"operationsGet">;
|
|
70
70
|
export declare const retry: (input: {
|
|
71
71
|
readonly id: string;
|
|
72
|
-
}) => import("./internal/operation").OperationResult<"operationsRetry">;
|
|
72
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"operationsRetry">;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { forGroup } from "./internal/operation.js";
|
|
3
3
|
import { OperationsGroup } from "./generated/operations.js";
|
|
4
|
-
|
|
4
|
+
// src/effect/operations.ts
|
|
5
5
|
var operations_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
get: () => get,
|
|
7
7
|
list: () => list,
|
|
@@ -11,7 +11,6 @@ const make = /* @__PURE__ */ forGroup(OperationsGroup);
|
|
|
11
11
|
const list = /* @__PURE__ */ make("operationsList");
|
|
12
12
|
const get = /* @__PURE__ */ make("operationsGet");
|
|
13
13
|
const retry = /* @__PURE__ */ make("operationsRetry");
|
|
14
|
-
//#endregion
|
|
15
14
|
export { get, list, operations_exports, retry };
|
|
16
15
|
|
|
17
16
|
//# sourceMappingURL=operations.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const create: (input: {
|
|
2
2
|
readonly name: string;
|
|
3
|
-
}) => import("./internal/operation").OperationResult<"organizationsCreate">;
|
|
4
|
-
export declare const get: (
|
|
5
|
-
export declare const getProfile: (
|
|
6
|
-
export declare const getTrustTier: (
|
|
3
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"organizationsCreate">;
|
|
4
|
+
export declare const get: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"organizationsGet">;
|
|
5
|
+
export declare const getProfile: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"organizationsGetProfile">;
|
|
6
|
+
export declare const getTrustTier: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"organizationsGetTrustTier">;
|
|
7
7
|
export declare const update: (input?: {
|
|
8
8
|
readonly name?: string | null | undefined;
|
|
9
9
|
readonly slug?: string | null | undefined;
|
|
@@ -40,15 +40,13 @@ export declare const update: (input?: {
|
|
|
40
40
|
} | null | undefined;
|
|
41
41
|
readonly replyToDefault?: readonly string[] | null | undefined;
|
|
42
42
|
readonly emailFooterEnabledDefault?: boolean | null | undefined;
|
|
43
|
-
} | undefined) => import("./internal/operation").OperationResult<"organizationsUpdate">;
|
|
44
|
-
export declare const createAvatarUpload: (
|
|
43
|
+
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"organizationsUpdate">;
|
|
44
|
+
export declare const createAvatarUpload: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"organizationsCreateAvatarUpload">;
|
|
45
45
|
export declare const getUsage: (input?: {
|
|
46
46
|
readonly after?: string | null | undefined;
|
|
47
47
|
readonly before?: string | null | undefined;
|
|
48
|
-
} | undefined) => import("./internal/operation").OperationResult<"organizationsGetUsage">;
|
|
48
|
+
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"organizationsGetUsage">;
|
|
49
49
|
declare const deleteOrganization: (input: {
|
|
50
50
|
readonly confirmationName: string;
|
|
51
|
-
}
|
|
52
|
-
readonly idempotencyKey: string;
|
|
53
|
-
}) => import("./internal/operation").OperationResult<"organizationsDelete">;
|
|
51
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"organizationsDelete">;
|
|
54
52
|
export { deleteOrganization as delete };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { forGroup } from "./internal/operation.js";
|
|
3
3
|
import { OrganizationsGroup } from "./generated/organizations.js";
|
|
4
|
-
|
|
4
|
+
// src/effect/organizations.ts
|
|
5
5
|
var organizations_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
create: () => create,
|
|
7
7
|
createAvatarUpload: () => createAvatarUpload,
|
|
@@ -21,7 +21,6 @@ const update = /* @__PURE__ */ make("organizationsUpdate");
|
|
|
21
21
|
const createAvatarUpload = /* @__PURE__ */ make("organizationsCreateAvatarUpload");
|
|
22
22
|
const getUsage = /* @__PURE__ */ make("organizationsGetUsage");
|
|
23
23
|
const deleteOrganization = /* @__PURE__ */ make("organizationsDelete");
|
|
24
|
-
//#endregion
|
|
25
24
|
export { create, createAvatarUpload, deleteOrganization as delete, get, getProfile, getTrustTier, getUsage, organizations_exports, update };
|
|
26
25
|
|
|
27
26
|
//# sourceMappingURL=organizations.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect, Option, Stream } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/effect/pagination.ts
|
|
3
3
|
/**
|
|
4
4
|
* Stream pagination for the Effect SDK.
|
|
5
5
|
*
|
|
@@ -33,7 +33,6 @@ const fetchCursorPage = (operation, input, cursor) => operation({
|
|
|
33
33
|
const streamCursorPages = (operation, input) => Stream.paginate(startCursorOf(input), (cursor) => fetchCursorPage(operation, input, cursor).pipe(Effect.map((result) => [[result], Option.fromNullishOr(result.nextCursor)])));
|
|
34
34
|
/** Stream individual items across cursor pages, fetching the next page only when pulled. */
|
|
35
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
36
|
export { streamCursorItems, streamCursorPages };
|
|
38
37
|
|
|
39
38
|
//# sourceMappingURL=pagination.js.map
|
package/dist/effect/retry.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Default-on retry for the Effect SDK.
|
|
3
3
|
*
|
|
4
|
-
* Every retry-safe operation — reads and
|
|
4
|
+
* Every retry-safe operation — reads and idempotent mutations — retries out
|
|
5
5
|
* of the box: transient failures back off with jittered exponential delay, and
|
|
6
6
|
* `429 RateLimitedError` honors the server's `retryAfterSeconds` hint (capped).
|
|
7
7
|
* Eligibility is decided by the {@link isRetryable} category predicate; the set
|
|
8
|
-
* of retry-safe operations is decided by the module adapter (GET/HEAD reads and
|
|
9
|
-
*
|
|
8
|
+
* of retry-safe operations is decided by the module adapter (GET/HEAD reads and idempotent
|
|
9
|
+
* mutations), so keyless mutating operations are never auto-retried.
|
|
10
10
|
*
|
|
11
11
|
* The policy is read from context via {@link Service} using
|
|
12
12
|
* `Effect.serviceOption`, so the default applies when the service is absent and
|
|
@@ -52,7 +52,7 @@ export declare const withRetry: <A, E, R>(effect: Effect.Effect<A, E, R>) => Eff
|
|
|
52
52
|
/**
|
|
53
53
|
* Generate a v4-shaped idempotency key through Effect's `Random` service —
|
|
54
54
|
* deterministic under a seeded/`TestClock` runtime and platform-neutral (no Web
|
|
55
|
-
* Crypto or bare `Math.random` at the call site). Facade
|
|
55
|
+
* Crypto or bare `Math.random` at the call site). Facade operations evaluate this
|
|
56
56
|
* once per logical call so the key is stable across auto-retries within the call
|
|
57
57
|
* and distinct across calls.
|
|
58
58
|
*/
|
package/dist/effect/retry.js
CHANGED
|
@@ -2,16 +2,16 @@ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
|
2
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
|
+
// src/effect/retry.ts
|
|
6
6
|
/**
|
|
7
7
|
* Default-on retry for the Effect SDK.
|
|
8
8
|
*
|
|
9
|
-
* Every retry-safe operation — reads and
|
|
9
|
+
* Every retry-safe operation — reads and idempotent mutations — retries out
|
|
10
10
|
* of the box: transient failures back off with jittered exponential delay, and
|
|
11
11
|
* `429 RateLimitedError` honors the server's `retryAfterSeconds` hint (capped).
|
|
12
12
|
* Eligibility is decided by the {@link isRetryable} category predicate; the set
|
|
13
|
-
* of retry-safe operations is decided by the module adapter (GET/HEAD reads and
|
|
14
|
-
*
|
|
13
|
+
* of retry-safe operations is decided by the module adapter (GET/HEAD reads and idempotent
|
|
14
|
+
* mutations), so keyless mutating operations are never auto-retried.
|
|
15
15
|
*
|
|
16
16
|
* The policy is read from context via {@link Service} using
|
|
17
17
|
* `Effect.serviceOption`, so the default applies when the service is absent and
|
|
@@ -91,7 +91,7 @@ const HEX = "0123456789abcdef";
|
|
|
91
91
|
/**
|
|
92
92
|
* Generate a v4-shaped idempotency key through Effect's `Random` service —
|
|
93
93
|
* deterministic under a seeded/`TestClock` runtime and platform-neutral (no Web
|
|
94
|
-
* Crypto or bare `Math.random` at the call site). Facade
|
|
94
|
+
* Crypto or bare `Math.random` at the call site). Facade operations evaluate this
|
|
95
95
|
* once per logical call so the key is stable across auto-retries within the call
|
|
96
96
|
* and distinct across calls.
|
|
97
97
|
*/
|
|
@@ -106,7 +106,6 @@ const generateIdempotencyKey = Effect.gen(function* () {
|
|
|
106
106
|
const hex = chars.join("");
|
|
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
|
-
//#endregion
|
|
110
109
|
export { Service, defaultPolicy, disabledPolicy, fromOptions, generateIdempotencyKey, layer, layerDefault, layerDisabled, retry_exports, withRetry };
|
|
111
110
|
|
|
112
111
|
//# sourceMappingURL=retry.js.map
|
package/dist/effect/runtime.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema, SchemaTransformation } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/effect/runtime.ts
|
|
3
3
|
/** Decode wire secrets to redacted values and require redacted values when encoding. */
|
|
4
4
|
const Sensitive = (schema) => Schema.RedactedFromValue(schema);
|
|
5
5
|
const SensitiveString = Sensitive(Schema.String);
|
|
@@ -19,7 +19,6 @@ const isValidAbsoluteInstant = (value) => {
|
|
|
19
19
|
return local.getUTCFullYear() === Number(year) && local.getUTCMonth() + 1 === Number(month) && local.getUTCDate() === Number(day) && local.getUTCHours() === Number(hour) && local.getUTCMinutes() === Number(minute) && local.getUTCSeconds() === Number(second) && local.getUTCMilliseconds() === millisecond;
|
|
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
|
-
//#endregion
|
|
23
22
|
export { AbsoluteInstant, SensitiveString };
|
|
24
23
|
|
|
25
24
|
//# sourceMappingURL=runtime.js.map
|
|
@@ -2,7 +2,7 @@ export declare const list: ((input?: {
|
|
|
2
2
|
readonly limit?: number | null | undefined;
|
|
3
3
|
readonly cursor?: string | null | undefined;
|
|
4
4
|
readonly status?: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending" | null | undefined;
|
|
5
|
-
} | undefined) => import("./internal/operation").OperationResult<"scheduledMessagesList">) & {
|
|
5
|
+
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"scheduledMessagesList">) & {
|
|
6
6
|
readonly pages: (input?: {
|
|
7
7
|
readonly limit?: number | null | undefined;
|
|
8
8
|
readonly cursor?: string | null | undefined;
|
|
@@ -296,15 +296,14 @@ export declare const create: (input: {
|
|
|
296
296
|
};
|
|
297
297
|
readonly scheduledFor: Date;
|
|
298
298
|
readonly timezone?: string | null | undefined;
|
|
299
|
-
readonly idempotencyKey?: string | null | undefined;
|
|
300
299
|
readonly referenceId?: string | null | undefined;
|
|
301
|
-
}) => import("./internal/operation").OperationResult<"scheduledMessagesCreate">;
|
|
300
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"scheduledMessagesCreate">;
|
|
302
301
|
export declare const get: (input: {
|
|
303
302
|
readonly id: string;
|
|
304
|
-
}) => import("./internal/operation").OperationResult<"scheduledMessagesGet">;
|
|
303
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"scheduledMessagesGet">;
|
|
305
304
|
export declare const cancel: (input: {
|
|
306
305
|
readonly id: string;
|
|
307
|
-
}) => import("./internal/operation").OperationResult<"scheduledMessagesCancel">;
|
|
306
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"scheduledMessagesCancel">;
|
|
308
307
|
export declare const resume: (input: {
|
|
309
308
|
readonly id: string;
|
|
310
309
|
readonly choice: "send_now";
|
|
@@ -312,4 +311,4 @@ export declare const resume: (input: {
|
|
|
312
311
|
readonly id: string;
|
|
313
312
|
readonly choice: "new_time";
|
|
314
313
|
readonly scheduledFor: Date;
|
|
315
|
-
}) => import("./internal/operation").OperationResult<"scheduledMessagesResume">;
|
|
314
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"scheduledMessagesResume">;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { forGroup } from "./internal/operation.js";
|
|
3
3
|
import { ScheduledMessagesGroup } from "./generated/scheduled-messages.js";
|
|
4
|
-
|
|
4
|
+
// src/effect/scheduled-messages.ts
|
|
5
5
|
var scheduled_messages_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
cancel: () => cancel,
|
|
7
7
|
create: () => create,
|
|
@@ -15,7 +15,6 @@ const create = /* @__PURE__ */ make("scheduledMessagesCreate");
|
|
|
15
15
|
const get = /* @__PURE__ */ make("scheduledMessagesGet");
|
|
16
16
|
const cancel = /* @__PURE__ */ make("scheduledMessagesCancel");
|
|
17
17
|
const resume = /* @__PURE__ */ make("scheduledMessagesResume");
|
|
18
|
-
//#endregion
|
|
19
18
|
export { cancel, create, get, list, resume, scheduled_messages_exports };
|
|
20
19
|
|
|
21
20
|
//# sourceMappingURL=scheduled-messages.js.map
|
|
@@ -8,4 +8,4 @@ export declare const subscribe: (input: {
|
|
|
8
8
|
readonly templateSlug?: string | null | undefined;
|
|
9
9
|
readonly consentIp?: string | null | undefined;
|
|
10
10
|
readonly consentSource?: string | null | undefined;
|
|
11
|
-
}) => import("./internal/operation").OperationResult<"subscriptionsSubscribe">;
|
|
11
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"subscriptionsSubscribe">;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { forGroup } from "./internal/operation.js";
|
|
3
3
|
import { SubscriptionsGroup } from "./generated/subscriptions.js";
|
|
4
|
-
|
|
4
|
+
// src/effect/subscriptions.ts
|
|
5
5
|
var subscriptions_exports = /* @__PURE__ */ __exportAll({ subscribe: () => subscribe });
|
|
6
6
|
const subscribe = /* @__PURE__ */ (/* @__PURE__ */ forGroup(SubscriptionsGroup))("subscriptionsSubscribe");
|
|
7
|
-
//#endregion
|
|
8
7
|
export { subscribe, subscriptions_exports };
|
|
9
8
|
|
|
10
9
|
//# sourceMappingURL=subscriptions.js.map
|