samva 0.46.0 → 0.46.1
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/README.md +1 -1
- package/dist/client/client/client.gen.d.ts +1 -1
- package/dist/client/client/index.d.ts +10 -10
- package/dist/client/client/types.gen.d.ts +4 -4
- package/dist/client/client/utils.gen.d.ts +2 -2
- package/dist/client/client.gen.d.ts +2 -2
- package/dist/client/core/bodySerializer.gen.d.ts +1 -1
- package/dist/client/core/serverSentEvents.gen.d.ts +1 -1
- package/dist/client/core/types.gen.d.ts +2 -2
- package/dist/client/core/utils.gen.d.ts +1 -1
- package/dist/client/sdk.gen.d.ts +2 -2
- package/dist/effect/accounts.d.ts +6 -6
- package/dist/effect/accounts.js +2 -1
- package/dist/effect/agents.d.ts +16 -16
- package/dist/effect/agents.js +2 -1
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +2 -1
- package/dist/effect/api-keys.d.ts +13 -13
- package/dist/effect/api-keys.js +2 -1
- package/dist/effect/approval-requests.d.ts +4 -4
- package/dist/effect/approval-requests.js +2 -1
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +2 -1
- package/dist/effect/brands.d.ts +7 -7
- package/dist/effect/brands.js +2 -1
- package/dist/effect/campaigns.d.ts +45 -45
- package/dist/effect/campaigns.js +2 -1
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/client.d.ts +1 -1
- package/dist/effect/contact-groups.d.ts +18 -18
- package/dist/effect/contact-groups.js +2 -1
- package/dist/effect/contacts.d.ts +33 -33
- package/dist/effect/contacts.js +3 -2
- package/dist/effect/conversations.d.ts +17 -17
- package/dist/effect/conversations.js +2 -1
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +2 -1
- package/dist/effect/descriptors/accounts.d.ts +59 -0
- package/dist/effect/descriptors/accounts.js +57 -0
- package/dist/effect/descriptors/agents.d.ts +119 -0
- package/dist/effect/descriptors/agents.js +117 -0
- package/dist/effect/descriptors/analytics.d.ts +56 -0
- package/dist/effect/descriptors/analytics.js +48 -0
- package/dist/effect/descriptors/api-keys.d.ts +80 -0
- package/dist/effect/descriptors/api-keys.js +80 -0
- package/dist/effect/descriptors/approval-requests.d.ts +41 -0
- package/dist/effect/descriptors/approval-requests.js +43 -0
- package/dist/effect/descriptors/attachments.d.ts +41 -0
- package/dist/effect/descriptors/attachments.js +43 -0
- package/dist/effect/descriptors/brands.d.ts +60 -0
- package/dist/effect/descriptors/brands.js +60 -0
- package/dist/effect/descriptors/campaigns.d.ts +148 -0
- package/dist/effect/descriptors/campaigns.js +144 -0
- package/dist/effect/descriptors/contact-groups.d.ts +99 -0
- package/dist/effect/descriptors/contact-groups.js +97 -0
- package/dist/effect/descriptors/contacts.d.ts +226 -0
- package/dist/effect/descriptors/contacts.js +214 -0
- package/dist/effect/descriptors/conversations.d.ts +130 -0
- package/dist/effect/descriptors/conversations.js +130 -0
- package/dist/effect/descriptors/custom-fields.d.ts +40 -0
- package/dist/effect/descriptors/custom-fields.js +40 -0
- package/dist/effect/descriptors/email.d.ts +607 -0
- package/dist/effect/descriptors/email.js +561 -0
- package/dist/effect/descriptors/events.d.ts +20 -0
- package/dist/effect/descriptors/events.js +20 -0
- package/dist/effect/descriptors/extension-installations.d.ts +90 -0
- package/dist/effect/descriptors/extension-installations.js +90 -0
- package/dist/effect/descriptors/extensions.d.ts +50 -0
- package/dist/effect/descriptors/extensions.js +50 -0
- package/dist/effect/descriptors/feedback.d.ts +11 -0
- package/dist/effect/descriptors/feedback.js +11 -0
- package/dist/effect/descriptors/integrations-catalog.d.ts +29 -0
- package/dist/effect/descriptors/integrations-catalog.js +27 -0
- package/dist/effect/descriptors/integrations.d.ts +70 -0
- package/dist/effect/descriptors/integrations.js +70 -0
- package/dist/effect/descriptors/journeys.d.ts +140 -0
- package/dist/effect/descriptors/journeys.js +140 -0
- package/dist/effect/descriptors/mailboxes.d.ts +724 -0
- package/dist/effect/descriptors/mailboxes.js +728 -0
- package/dist/effect/descriptors/media.d.ts +51 -0
- package/dist/effect/descriptors/media.js +53 -0
- package/dist/effect/descriptors/messages.d.ts +99 -0
- package/dist/effect/descriptors/messages.js +97 -0
- package/dist/effect/descriptors/namespaces.d.ts +110 -0
- package/dist/effect/descriptors/namespaces.js +114 -0
- package/dist/effect/descriptors/newsletter-domains.d.ts +42 -0
- package/dist/effect/descriptors/newsletter-domains.js +46 -0
- package/dist/effect/descriptors/newsletter-issues.d.ts +112 -0
- package/dist/effect/descriptors/newsletter-issues.js +116 -0
- package/dist/effect/descriptors/newsletters.d.ts +51 -0
- package/dist/effect/descriptors/newsletters.js +53 -0
- package/dist/effect/descriptors/operations.d.ts +31 -0
- package/dist/effect/descriptors/operations.js +33 -0
- package/dist/effect/descriptors/organizations.d.ts +111 -0
- package/dist/effect/descriptors/organizations.js +93 -0
- package/dist/effect/descriptors/policies.d.ts +32 -0
- package/dist/effect/descriptors/policies.js +36 -0
- package/dist/effect/descriptors/scheduled-messages.d.ts +50 -0
- package/dist/effect/descriptors/scheduled-messages.js +50 -0
- package/dist/effect/descriptors/subscriptions.d.ts +11 -0
- package/dist/effect/descriptors/subscriptions.js +11 -0
- package/dist/effect/descriptors/template-registrations.d.ts +32 -0
- package/dist/effect/descriptors/template-registrations.js +36 -0
- package/dist/effect/descriptors/template-share-links.d.ts +52 -0
- package/dist/effect/descriptors/template-share-links.js +56 -0
- package/dist/effect/descriptors/templates.d.ts +365 -0
- package/dist/effect/descriptors/templates.js +355 -0
- package/dist/effect/descriptors/topic-forms.d.ts +52 -0
- package/dist/effect/descriptors/topic-forms.js +56 -0
- package/dist/effect/descriptors/topics.d.ts +89 -0
- package/dist/effect/descriptors/topics.js +87 -0
- package/dist/effect/descriptors/webhooks.d.ts +110 -0
- package/dist/effect/descriptors/webhooks.js +110 -0
- package/dist/effect/descriptors/whats-app-flows.d.ts +99 -0
- package/dist/effect/descriptors/whats-app-flows.js +97 -0
- package/dist/effect/descriptors/whats-app-setup-links.d.ts +40 -0
- package/dist/effect/descriptors/whats-app-setup-links.js +40 -0
- package/dist/effect/descriptors/whats-app.d.ts +116 -0
- package/dist/effect/descriptors/whats-app.js +108 -0
- package/dist/effect/descriptors/whoami.d.ts +11 -0
- package/dist/effect/descriptors/whoami.js +11 -0
- package/dist/effect/email.d.ts +78 -78
- package/dist/effect/email.js +2 -1
- package/dist/effect/errors.d.ts +2 -2
- package/dist/effect/events.d.ts +3 -3
- package/dist/effect/events.js +2 -1
- package/dist/effect/extension-installations.d.ts +11 -11
- package/dist/effect/extension-installations.js +2 -1
- package/dist/effect/extensions.d.ts +9 -9
- package/dist/effect/extensions.js +2 -1
- package/dist/effect/feedback.d.ts +2 -2
- package/dist/effect/feedback.js +2 -1
- package/dist/effect/generated/accounts.d.ts +9 -9
- package/dist/effect/generated/agents.d.ts +1 -1
- package/dist/effect/generated/analytics.d.ts +1 -1
- package/dist/effect/generated/api-keys.d.ts +1 -1
- package/dist/effect/generated/approval-requests.d.ts +13 -13
- package/dist/effect/generated/attachments.d.ts +1 -1
- package/dist/effect/generated/brands.d.ts +1 -1
- package/dist/effect/generated/campaigns.d.ts +230 -230
- package/dist/effect/generated/contact-events.d.ts +4 -4
- package/dist/effect/generated/contact-groups.d.ts +1 -1
- package/dist/effect/generated/contacts.d.ts +49 -49
- package/dist/effect/generated/conversations.d.ts +1 -1
- package/dist/effect/generated/custom-fields.d.ts +1 -1
- package/dist/effect/generated/email.d.ts +1 -1
- package/dist/effect/generated/events.d.ts +12 -12
- package/dist/effect/generated/extension-installations.d.ts +1 -1
- package/dist/effect/generated/extensions.d.ts +1 -1
- package/dist/effect/generated/feedback.d.ts +1 -1
- package/dist/effect/generated/index.d.ts +87 -87
- package/dist/effect/generated/integrations-catalog.d.ts +3 -3
- package/dist/effect/generated/integrations.d.ts +15 -15
- package/dist/effect/generated/journeys.d.ts +81 -81
- package/dist/effect/generated/mailboxes.d.ts +1 -1
- package/dist/effect/generated/media.d.ts +1 -1
- package/dist/effect/generated/messages.d.ts +1 -1
- package/dist/effect/generated/namespaces.d.ts +1 -1
- package/dist/effect/generated/newsletter-domains.d.ts +1 -1
- package/dist/effect/generated/newsletter-issues.d.ts +1 -1
- package/dist/effect/generated/newsletters.d.ts +1 -1
- package/dist/effect/generated/operations.d.ts +1 -1
- package/dist/effect/generated/organizations.d.ts +1 -1
- package/dist/effect/generated/policies.d.ts +1 -1
- package/dist/effect/generated/scheduled-messages.d.ts +147 -147
- package/dist/effect/generated/shared.d.ts +1 -1
- package/dist/effect/generated/subscriptions.d.ts +1 -1
- package/dist/effect/generated/template-registrations.d.ts +1 -1
- package/dist/effect/generated/template-share-links.d.ts +1 -1
- package/dist/effect/generated/templates.d.ts +1 -1
- package/dist/effect/generated/topic-forms.d.ts +1 -1
- package/dist/effect/generated/topics.d.ts +1 -1
- package/dist/effect/generated/webhooks.d.ts +1 -1
- package/dist/effect/generated/whats-app-flows.d.ts +1 -1
- package/dist/effect/generated/whats-app-setup-links.d.ts +1 -1
- package/dist/effect/generated/whats-app.d.ts +1 -1
- package/dist/effect/generated/whoami.d.ts +1 -1
- package/dist/effect/index.d.ts +47 -47
- package/dist/effect/integrations-catalog.d.ts +3 -3
- package/dist/effect/integrations-catalog.js +2 -1
- package/dist/effect/integrations.d.ts +11 -11
- package/dist/effect/integrations.js +2 -1
- package/dist/effect/internal/client.d.ts +3 -3
- package/dist/effect/internal/email-sender.d.ts +4 -4
- package/dist/effect/internal/mailbox-events.d.ts +2 -2
- package/dist/effect/internal/operation.d.ts +24 -5
- package/dist/effect/internal/operation.js +21 -21
- package/dist/effect/internal/send.d.ts +4 -4
- package/dist/effect/journeys.d.ts +20 -20
- package/dist/effect/journeys.js +2 -1
- package/dist/effect/mailboxes.d.ts +123 -123
- package/dist/effect/mailboxes.js +2 -1
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +2 -1
- package/dist/effect/messages.d.ts +17 -17
- package/dist/effect/messages.js +2 -1
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/namespaces.js +2 -1
- package/dist/effect/newsletter-domains.d.ts +6 -6
- package/dist/effect/newsletter-domains.js +2 -1
- package/dist/effect/newsletter-issues.d.ts +11 -11
- package/dist/effect/newsletter-issues.js +2 -1
- package/dist/effect/newsletters.d.ts +5 -5
- package/dist/effect/newsletters.js +2 -1
- package/dist/effect/operations.d.ts +5 -5
- package/dist/effect/operations.js +2 -1
- package/dist/effect/organizations.d.ts +12 -12
- package/dist/effect/organizations.js +2 -1
- package/dist/effect/policies.d.ts +3 -3
- package/dist/effect/policies.js +2 -1
- package/dist/effect/scheduled-messages.d.ts +23 -23
- package/dist/effect/scheduled-messages.js +2 -1
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +2 -1
- package/dist/effect/template-registrations.d.ts +3 -3
- package/dist/effect/template-registrations.js +2 -1
- package/dist/effect/template-share-links.d.ts +5 -5
- package/dist/effect/template-share-links.js +2 -1
- package/dist/effect/templates.d.ts +46 -46
- package/dist/effect/templates.js +2 -1
- package/dist/effect/topic-forms.d.ts +5 -5
- package/dist/effect/topic-forms.js +2 -1
- package/dist/effect/topics.d.ts +11 -11
- package/dist/effect/topics.js +2 -1
- package/dist/effect/webhooks.d.ts +16 -16
- package/dist/effect/webhooks.js +2 -1
- package/dist/effect/whatsapp-flows.d.ts +10 -10
- package/dist/effect/whatsapp-flows.js +2 -1
- package/dist/effect/whatsapp-setup-links.d.ts +6 -6
- package/dist/effect/whatsapp-setup-links.js +2 -1
- package/dist/effect/whatsapp.d.ts +12 -12
- package/dist/effect/whatsapp.js +2 -1
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/effect/whoami.js +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/mailbox/dispatch.d.ts +2 -2
- package/dist/mailbox/index.d.ts +4 -4
- package/dist/mailbox/test.d.ts +2 -2
- package/dist/mailbox/types.d.ts +2 -2
- package/dist/mailbox/webhook.d.ts +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +10 -10
- package/dist/promises/errors.gen.d.ts +1 -1
- package/dist/promises/index.d.ts +5 -5
- package/dist/promises/request.d.ts +2 -2
- package/dist/promises/request.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-policy.d.ts +10 -2
- package/dist/request-policy.js +3 -5
- package/package.json +9 -9
- package/dist/service-map.js +0 -830
|
@@ -29,14 +29,14 @@ export declare const create: (input: {
|
|
|
29
29
|
};
|
|
30
30
|
}[];
|
|
31
31
|
readonly idempotencyKey: string;
|
|
32
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"approvalRequestsCreate">;
|
|
32
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"approvalRequestsCreate">;
|
|
33
33
|
export declare const get: (input: {
|
|
34
34
|
readonly id: string;
|
|
35
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"approvalRequestsGet">;
|
|
35
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"approvalRequestsGet">;
|
|
36
36
|
export declare const approve: (input: {
|
|
37
37
|
readonly id: string;
|
|
38
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"approvalRequestsApprove">;
|
|
38
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"approvalRequestsApprove">;
|
|
39
39
|
export declare const reject: (input: {
|
|
40
40
|
readonly id: string;
|
|
41
41
|
readonly reason?: string | null | undefined;
|
|
42
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"approvalRequestsReject">;
|
|
42
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"approvalRequestsReject">;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { approvalRequestsOperations } from "./descriptors/approval-requests.js";
|
|
3
4
|
import { ApprovalRequestsGroup } from "./generated/approval-requests.js";
|
|
4
5
|
// src/effect/approval-requests.ts
|
|
5
6
|
var approval_requests_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -8,7 +9,7 @@ var approval_requests_exports = /* @__PURE__ */ __exportAll({
|
|
|
8
9
|
get: () => get,
|
|
9
10
|
reject: () => reject
|
|
10
11
|
});
|
|
11
|
-
const make = /* @__PURE__ */ forGroup(ApprovalRequestsGroup);
|
|
12
|
+
const make = /* @__PURE__ */ forGroup(ApprovalRequestsGroup, approvalRequestsOperations);
|
|
12
13
|
const create = /* @__PURE__ */ make("approvalRequestsCreate");
|
|
13
14
|
const get = /* @__PURE__ */ make("approvalRequestsGet");
|
|
14
15
|
const approve = /* @__PURE__ */ make("approvalRequestsApprove");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const getById: (input: {
|
|
2
2
|
readonly id: string;
|
|
3
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"attachmentsGetById">;
|
|
3
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"attachmentsGetById">;
|
|
4
4
|
export declare const remove: (input: {
|
|
5
5
|
readonly id: string;
|
|
6
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"attachmentsRemove">;
|
|
6
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"attachmentsRemove">;
|
|
7
7
|
export declare const list: (input: {
|
|
8
8
|
readonly messageId: string;
|
|
9
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"attachmentsList">;
|
|
9
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"attachmentsList">;
|
|
10
10
|
export declare const downloadUrl: (input: {
|
|
11
11
|
readonly id: string;
|
|
12
12
|
readonly expiresIn?: number | null | undefined;
|
|
13
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"attachmentsDownloadUrl">;
|
|
13
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"attachmentsDownloadUrl">;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { attachmentsOperations } from "./descriptors/attachments.js";
|
|
3
4
|
import { AttachmentsGroup } from "./generated/attachments.js";
|
|
4
5
|
// src/effect/attachments.ts
|
|
5
6
|
var attachments_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -8,7 +9,7 @@ var attachments_exports = /* @__PURE__ */ __exportAll({
|
|
|
8
9
|
list: () => list,
|
|
9
10
|
remove: () => remove
|
|
10
11
|
});
|
|
11
|
-
const make = /* @__PURE__ */ forGroup(AttachmentsGroup);
|
|
12
|
+
const make = /* @__PURE__ */ forGroup(AttachmentsGroup, attachmentsOperations);
|
|
12
13
|
const getById = /* @__PURE__ */ make("attachmentsGetById");
|
|
13
14
|
const remove = /* @__PURE__ */ make("attachmentsRemove");
|
|
14
15
|
const list = /* @__PURE__ */ make("attachmentsList");
|
package/dist/effect/brands.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CreateBrand as CreatePayload, UpdateBrand as UpdatePayload } from "./generated/shared";
|
|
2
|
-
export declare const list: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"brandsList">;
|
|
1
|
+
export { CreateBrand as CreatePayload, UpdateBrand as UpdatePayload } from "./generated/shared.js";
|
|
2
|
+
export declare const list: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"brandsList">;
|
|
3
3
|
export declare const create: (input: {
|
|
4
4
|
readonly slug: string;
|
|
5
5
|
readonly name: string;
|
|
@@ -26,10 +26,10 @@ export declare const create: (input: {
|
|
|
26
26
|
}[] | null | undefined;
|
|
27
27
|
} | null | undefined;
|
|
28
28
|
readonly isDefault?: boolean | null | undefined;
|
|
29
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"brandsCreate">;
|
|
29
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"brandsCreate">;
|
|
30
30
|
export declare const get: (input: {
|
|
31
31
|
readonly slug: string;
|
|
32
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"brandsGet">;
|
|
32
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"brandsGet">;
|
|
33
33
|
export declare const update: (input: {
|
|
34
34
|
readonly slug: string;
|
|
35
35
|
readonly newSlug?: string | null | undefined;
|
|
@@ -56,10 +56,10 @@ export declare const update: (input: {
|
|
|
56
56
|
readonly url: string;
|
|
57
57
|
}[] | null | undefined;
|
|
58
58
|
} | null | undefined;
|
|
59
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"brandsUpdate">;
|
|
59
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"brandsUpdate">;
|
|
60
60
|
export declare const remove: (input: {
|
|
61
61
|
readonly slug: string;
|
|
62
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"brandsRemove">;
|
|
62
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"brandsRemove">;
|
|
63
63
|
export declare const setDefault: (input: {
|
|
64
64
|
readonly slug: string;
|
|
65
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"brandsSetDefault">;
|
|
65
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"brandsSetDefault">;
|
package/dist/effect/brands.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { CreateBrand, UpdateBrand } from "./generated/shared.js";
|
|
3
3
|
import { forGroup } from "./internal/operation.js";
|
|
4
|
+
import { brandsOperations } from "./descriptors/brands.js";
|
|
4
5
|
import { BrandsGroup } from "./generated/brands.js";
|
|
5
6
|
// src/effect/brands.ts
|
|
6
7
|
var brands_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -13,7 +14,7 @@ var brands_exports = /* @__PURE__ */ __exportAll({
|
|
|
13
14
|
setDefault: () => setDefault,
|
|
14
15
|
update: () => update
|
|
15
16
|
});
|
|
16
|
-
const make = /* @__PURE__ */ forGroup(BrandsGroup);
|
|
17
|
+
const make = /* @__PURE__ */ forGroup(BrandsGroup, brandsOperations);
|
|
17
18
|
const list = /* @__PURE__ */ make("brandsList");
|
|
18
19
|
const create = /* @__PURE__ */ make("brandsCreate");
|
|
19
20
|
const get = /* @__PURE__ */ make("brandsGet");
|
|
@@ -236,7 +236,7 @@ export declare const preview: (input: {
|
|
|
236
236
|
readonly groupIds?: readonly string[] | null | undefined;
|
|
237
237
|
};
|
|
238
238
|
readonly contactId?: string | null | undefined;
|
|
239
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsPreview">;
|
|
239
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"campaignsPreview">;
|
|
240
240
|
export declare const sendTest: (input: {
|
|
241
241
|
readonly content: {
|
|
242
242
|
readonly channel: "email";
|
|
@@ -475,7 +475,7 @@ export declare const sendTest: (input: {
|
|
|
475
475
|
readonly groupIds?: readonly string[] | null | undefined;
|
|
476
476
|
};
|
|
477
477
|
readonly contactId?: string | null | undefined;
|
|
478
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsSendTest">;
|
|
478
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"campaignsSendTest">;
|
|
479
479
|
export declare const create: (input: {
|
|
480
480
|
readonly name: string;
|
|
481
481
|
readonly channel: "email" | "sms" | "whatsapp";
|
|
@@ -718,12 +718,12 @@ export declare const create: (input: {
|
|
|
718
718
|
readonly policy?: {
|
|
719
719
|
readonly pageSize?: number | null | undefined;
|
|
720
720
|
} | null | undefined;
|
|
721
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsCreate">;
|
|
721
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"campaignsCreate">;
|
|
722
722
|
export declare const list: ((input?: {
|
|
723
723
|
readonly status?: "archived" | "draft" | undefined;
|
|
724
724
|
readonly limit?: number | null | undefined;
|
|
725
725
|
readonly cursor?: string | undefined;
|
|
726
|
-
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsList">) & {
|
|
726
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"campaignsList">) & {
|
|
727
727
|
readonly pages: (input?: {
|
|
728
728
|
readonly status?: "archived" | "draft" | undefined;
|
|
729
729
|
readonly limit?: number | null | undefined;
|
|
@@ -751,7 +751,7 @@ export declare const list: ((input?: {
|
|
|
751
751
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
752
752
|
readonly templateSlug?: string | null;
|
|
753
753
|
readonly templateData?: {
|
|
754
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
754
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
755
755
|
} | null;
|
|
756
756
|
readonly locale?: string;
|
|
757
757
|
readonly timeZone?: string;
|
|
@@ -781,7 +781,7 @@ export declare const list: ((input?: {
|
|
|
781
781
|
readonly replyMailboxId?: (string & import("effect/Brand").Brand<"MailboxId">) | null;
|
|
782
782
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
783
783
|
readonly metadata?: {
|
|
784
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
784
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
785
785
|
} | null;
|
|
786
786
|
} | {
|
|
787
787
|
readonly channel: "sms";
|
|
@@ -790,19 +790,19 @@ export declare const list: ((input?: {
|
|
|
790
790
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
791
791
|
readonly templateSlug?: string | null;
|
|
792
792
|
readonly templateData?: {
|
|
793
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
793
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
794
794
|
} | null;
|
|
795
795
|
};
|
|
796
796
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
797
797
|
readonly metadata?: {
|
|
798
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
798
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
799
799
|
} | null;
|
|
800
800
|
} | {
|
|
801
801
|
readonly channel: "whatsapp";
|
|
802
802
|
readonly whatsapp: {
|
|
803
803
|
readonly template: string | (string & import("effect/Brand").Brand<"TemplateId">);
|
|
804
804
|
readonly templateData?: {
|
|
805
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
805
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
806
806
|
};
|
|
807
807
|
readonly bindings?: {
|
|
808
808
|
readonly [x: string]: {
|
|
@@ -815,7 +815,7 @@ export declare const list: ((input?: {
|
|
|
815
815
|
};
|
|
816
816
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
817
817
|
readonly metadata?: {
|
|
818
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
818
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
819
819
|
} | null;
|
|
820
820
|
};
|
|
821
821
|
readonly audience: {
|
|
@@ -852,7 +852,7 @@ export declare const list: ((input?: {
|
|
|
852
852
|
readonly series: readonly number[];
|
|
853
853
|
}[];
|
|
854
854
|
readonly nextCursor: string | null;
|
|
855
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
855
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
856
856
|
readonly items: (input?: {
|
|
857
857
|
readonly status?: "archived" | "draft" | undefined;
|
|
858
858
|
readonly limit?: number | null | undefined;
|
|
@@ -879,7 +879,7 @@ export declare const list: ((input?: {
|
|
|
879
879
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
880
880
|
readonly templateSlug?: string | null;
|
|
881
881
|
readonly templateData?: {
|
|
882
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
882
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
883
883
|
} | null;
|
|
884
884
|
readonly locale?: string;
|
|
885
885
|
readonly timeZone?: string;
|
|
@@ -909,7 +909,7 @@ export declare const list: ((input?: {
|
|
|
909
909
|
readonly replyMailboxId?: (string & import("effect/Brand").Brand<"MailboxId">) | null;
|
|
910
910
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
911
911
|
readonly metadata?: {
|
|
912
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
912
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
913
913
|
} | null;
|
|
914
914
|
} | {
|
|
915
915
|
readonly channel: "sms";
|
|
@@ -918,19 +918,19 @@ export declare const list: ((input?: {
|
|
|
918
918
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
919
919
|
readonly templateSlug?: string | null;
|
|
920
920
|
readonly templateData?: {
|
|
921
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
921
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
922
922
|
} | null;
|
|
923
923
|
};
|
|
924
924
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
925
925
|
readonly metadata?: {
|
|
926
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
926
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
927
927
|
} | null;
|
|
928
928
|
} | {
|
|
929
929
|
readonly channel: "whatsapp";
|
|
930
930
|
readonly whatsapp: {
|
|
931
931
|
readonly template: string | (string & import("effect/Brand").Brand<"TemplateId">);
|
|
932
932
|
readonly templateData?: {
|
|
933
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
933
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
934
934
|
};
|
|
935
935
|
readonly bindings?: {
|
|
936
936
|
readonly [x: string]: {
|
|
@@ -943,7 +943,7 @@ export declare const list: ((input?: {
|
|
|
943
943
|
};
|
|
944
944
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
945
945
|
readonly metadata?: {
|
|
946
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
946
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
947
947
|
} | null;
|
|
948
948
|
};
|
|
949
949
|
readonly audience: {
|
|
@@ -978,11 +978,11 @@ export declare const list: ((input?: {
|
|
|
978
978
|
readonly createdAt: string;
|
|
979
979
|
readonly updatedAt: string;
|
|
980
980
|
readonly series: readonly number[];
|
|
981
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
981
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
982
982
|
};
|
|
983
983
|
export declare const get: (input: {
|
|
984
984
|
readonly id: string;
|
|
985
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsGet">;
|
|
985
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"campaignsGet">;
|
|
986
986
|
export declare const update: (input: {
|
|
987
987
|
readonly id: string;
|
|
988
988
|
readonly name?: string | null | undefined;
|
|
@@ -1225,20 +1225,20 @@ export declare const update: (input: {
|
|
|
1225
1225
|
readonly policy?: {
|
|
1226
1226
|
readonly pageSize?: number | null | undefined;
|
|
1227
1227
|
} | null | undefined;
|
|
1228
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsUpdate">;
|
|
1228
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"campaignsUpdate">;
|
|
1229
1229
|
export declare const archive: (input: {
|
|
1230
1230
|
readonly id: string;
|
|
1231
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsArchive">;
|
|
1231
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"campaignsArchive">;
|
|
1232
1232
|
export declare const scheduleRun: (input: {
|
|
1233
1233
|
readonly id: string;
|
|
1234
1234
|
readonly scheduledFor?: Date | null | undefined;
|
|
1235
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsScheduleRun">;
|
|
1235
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"campaignsScheduleRun">;
|
|
1236
1236
|
export declare const listRuns: ((input: {
|
|
1237
1237
|
readonly id: string;
|
|
1238
1238
|
readonly status?: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled" | undefined;
|
|
1239
1239
|
readonly limit?: number | null | undefined;
|
|
1240
1240
|
readonly cursor?: string | undefined;
|
|
1241
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsListRuns">) & {
|
|
1241
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"campaignsListRuns">) & {
|
|
1242
1242
|
readonly pages: (input: {
|
|
1243
1243
|
readonly id: string;
|
|
1244
1244
|
readonly status?: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled" | undefined;
|
|
@@ -1271,7 +1271,7 @@ export declare const listRuns: ((input: {
|
|
|
1271
1271
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
1272
1272
|
readonly templateSlug?: string | null;
|
|
1273
1273
|
readonly templateData?: {
|
|
1274
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1274
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1275
1275
|
} | null;
|
|
1276
1276
|
readonly locale?: string;
|
|
1277
1277
|
readonly timeZone?: string;
|
|
@@ -1301,7 +1301,7 @@ export declare const listRuns: ((input: {
|
|
|
1301
1301
|
readonly replyMailboxId?: (string & import("effect/Brand").Brand<"MailboxId">) | null;
|
|
1302
1302
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1303
1303
|
readonly metadata?: {
|
|
1304
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1304
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1305
1305
|
} | null;
|
|
1306
1306
|
} | {
|
|
1307
1307
|
readonly channel: "sms";
|
|
@@ -1310,19 +1310,19 @@ export declare const listRuns: ((input: {
|
|
|
1310
1310
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
1311
1311
|
readonly templateSlug?: string | null;
|
|
1312
1312
|
readonly templateData?: {
|
|
1313
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1313
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1314
1314
|
} | null;
|
|
1315
1315
|
};
|
|
1316
1316
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1317
1317
|
readonly metadata?: {
|
|
1318
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1318
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1319
1319
|
} | null;
|
|
1320
1320
|
} | {
|
|
1321
1321
|
readonly channel: "whatsapp";
|
|
1322
1322
|
readonly whatsapp: {
|
|
1323
1323
|
readonly template: string | (string & import("effect/Brand").Brand<"TemplateId">);
|
|
1324
1324
|
readonly templateData?: {
|
|
1325
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1325
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1326
1326
|
};
|
|
1327
1327
|
readonly bindings?: {
|
|
1328
1328
|
readonly [x: string]: {
|
|
@@ -1335,7 +1335,7 @@ export declare const listRuns: ((input: {
|
|
|
1335
1335
|
};
|
|
1336
1336
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1337
1337
|
readonly metadata?: {
|
|
1338
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1338
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1339
1339
|
} | null;
|
|
1340
1340
|
};
|
|
1341
1341
|
readonly audienceSnapshot: {
|
|
@@ -1371,7 +1371,7 @@ export declare const listRuns: ((input: {
|
|
|
1371
1371
|
readonly updatedAt: string;
|
|
1372
1372
|
}[];
|
|
1373
1373
|
readonly nextCursor: string | null;
|
|
1374
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1374
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1375
1375
|
readonly items: (input: {
|
|
1376
1376
|
readonly id: string;
|
|
1377
1377
|
readonly status?: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled" | undefined;
|
|
@@ -1403,7 +1403,7 @@ export declare const listRuns: ((input: {
|
|
|
1403
1403
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
1404
1404
|
readonly templateSlug?: string | null;
|
|
1405
1405
|
readonly templateData?: {
|
|
1406
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1406
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1407
1407
|
} | null;
|
|
1408
1408
|
readonly locale?: string;
|
|
1409
1409
|
readonly timeZone?: string;
|
|
@@ -1433,7 +1433,7 @@ export declare const listRuns: ((input: {
|
|
|
1433
1433
|
readonly replyMailboxId?: (string & import("effect/Brand").Brand<"MailboxId">) | null;
|
|
1434
1434
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1435
1435
|
readonly metadata?: {
|
|
1436
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1436
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1437
1437
|
} | null;
|
|
1438
1438
|
} | {
|
|
1439
1439
|
readonly channel: "sms";
|
|
@@ -1442,19 +1442,19 @@ export declare const listRuns: ((input: {
|
|
|
1442
1442
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
1443
1443
|
readonly templateSlug?: string | null;
|
|
1444
1444
|
readonly templateData?: {
|
|
1445
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1445
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1446
1446
|
} | null;
|
|
1447
1447
|
};
|
|
1448
1448
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1449
1449
|
readonly metadata?: {
|
|
1450
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1450
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1451
1451
|
} | null;
|
|
1452
1452
|
} | {
|
|
1453
1453
|
readonly channel: "whatsapp";
|
|
1454
1454
|
readonly whatsapp: {
|
|
1455
1455
|
readonly template: string | (string & import("effect/Brand").Brand<"TemplateId">);
|
|
1456
1456
|
readonly templateData?: {
|
|
1457
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1457
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1458
1458
|
};
|
|
1459
1459
|
readonly bindings?: {
|
|
1460
1460
|
readonly [x: string]: {
|
|
@@ -1467,7 +1467,7 @@ export declare const listRuns: ((input: {
|
|
|
1467
1467
|
};
|
|
1468
1468
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1469
1469
|
readonly metadata?: {
|
|
1470
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1470
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1471
1471
|
} | null;
|
|
1472
1472
|
};
|
|
1473
1473
|
readonly audienceSnapshot: {
|
|
@@ -1501,35 +1501,35 @@ export declare const listRuns: ((input: {
|
|
|
1501
1501
|
readonly memberRole: string;
|
|
1502
1502
|
readonly createdAt: string;
|
|
1503
1503
|
readonly updatedAt: string;
|
|
1504
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1504
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1505
1505
|
};
|
|
1506
1506
|
export declare const getRun: (input: {
|
|
1507
1507
|
readonly id: string;
|
|
1508
1508
|
readonly runId: string;
|
|
1509
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsGetRun">;
|
|
1509
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"campaignsGetRun">;
|
|
1510
1510
|
export declare const getRunReport: (input: {
|
|
1511
1511
|
readonly id: string;
|
|
1512
1512
|
readonly runId: string;
|
|
1513
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsGetRunReport">;
|
|
1513
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"campaignsGetRunReport">;
|
|
1514
1514
|
export declare const pauseRun: (input: {
|
|
1515
1515
|
readonly id: string;
|
|
1516
1516
|
readonly runId: string;
|
|
1517
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsPauseRun">;
|
|
1517
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"campaignsPauseRun">;
|
|
1518
1518
|
export declare const resumeRun: (input: {
|
|
1519
1519
|
readonly id: string;
|
|
1520
1520
|
readonly runId: string;
|
|
1521
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsResumeRun">;
|
|
1521
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"campaignsResumeRun">;
|
|
1522
1522
|
export declare const cancelRun: (input: {
|
|
1523
1523
|
readonly id: string;
|
|
1524
1524
|
readonly runId: string;
|
|
1525
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsCancelRun">;
|
|
1525
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"campaignsCancelRun">;
|
|
1526
1526
|
export declare const listRecipients: ((input: {
|
|
1527
1527
|
readonly id: string;
|
|
1528
1528
|
readonly runId: string;
|
|
1529
1529
|
readonly status?: "dispatched" | "dispatching" | "failed" | "pending" | "skipped" | undefined;
|
|
1530
1530
|
readonly limit?: number | null | undefined;
|
|
1531
1531
|
readonly cursor?: string | undefined;
|
|
1532
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsListRecipients">) & {
|
|
1532
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"campaignsListRecipients">) & {
|
|
1533
1533
|
readonly pages: (input: {
|
|
1534
1534
|
readonly id: string;
|
|
1535
1535
|
readonly runId: string;
|
|
@@ -1549,7 +1549,7 @@ export declare const listRecipients: ((input: {
|
|
|
1549
1549
|
readonly updatedAt: string;
|
|
1550
1550
|
}[];
|
|
1551
1551
|
readonly nextCursor: string | null;
|
|
1552
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1552
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1553
1553
|
readonly items: (input: {
|
|
1554
1554
|
readonly id: string;
|
|
1555
1555
|
readonly runId: string;
|
|
@@ -1566,5 +1566,5 @@ export declare const listRecipients: ((input: {
|
|
|
1566
1566
|
readonly skippedReason: "blocked" | "consent_required" | "inactive" | "missing_merge_field" | "no_identity" | "not_added" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed" | null;
|
|
1567
1567
|
readonly createdAt: string;
|
|
1568
1568
|
readonly updatedAt: string;
|
|
1569
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1569
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1570
1570
|
};
|
package/dist/effect/campaigns.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { campaignsOperations } from "./descriptors/campaigns.js";
|
|
3
4
|
import { CampaignsGroup } from "./generated/campaigns.js";
|
|
4
5
|
// src/effect/campaigns.ts
|
|
5
6
|
var campaigns_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -19,7 +20,7 @@ var campaigns_exports = /* @__PURE__ */ __exportAll({
|
|
|
19
20
|
sendTest: () => sendTest,
|
|
20
21
|
update: () => update
|
|
21
22
|
});
|
|
22
|
-
const make = /* @__PURE__ */ forGroup(CampaignsGroup);
|
|
23
|
+
const make = /* @__PURE__ */ forGroup(CampaignsGroup, campaignsOperations);
|
|
23
24
|
const preview = /* @__PURE__ */ make("campaignsPreview");
|
|
24
25
|
const sendTest = /* @__PURE__ */ make("campaignsSendTest");
|
|
25
26
|
const create = /* @__PURE__ */ make("campaignsCreate");
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
20
|
import { Effect } from "effect";
|
|
21
|
-
import type { BillingProviderError, ConflictError, ExternalServiceError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MalformedRequestError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, UnauthorizedError, ValidationError, DeliveryUnavailableError } from "./errors";
|
|
22
|
-
import { SamvaErrorMetadata } from "./generated-metadata";
|
|
21
|
+
import type { BillingProviderError, ConflictError, ExternalServiceError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MalformedRequestError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, UnauthorizedError, ValidationError, DeliveryUnavailableError } from "./errors.js";
|
|
22
|
+
import { SamvaErrorMetadata } from "./generated-metadata.js";
|
|
23
23
|
export type ErrorCategory = "auth" | "validation" | "notFound" | "conflict" | "throttling" | "billing" | "transient";
|
|
24
24
|
export declare const categoriesOf: (error: unknown) => ReadonlyArray<ErrorCategory>;
|
|
25
25
|
export declare const hasCategory: (error: unknown, category: ErrorCategory) => boolean;
|
|
@@ -32,7 +32,7 @@ type CategoryError = {
|
|
|
32
32
|
readonly billing: PaymentRequiredError;
|
|
33
33
|
readonly transient: InternalError | GatewayTimeoutError | ExternalServiceError | BillingProviderError | DeliveryUnavailableError;
|
|
34
34
|
};
|
|
35
|
-
type ErrorExports = typeof import("./errors");
|
|
35
|
+
type ErrorExports = typeof import("./errors.js");
|
|
36
36
|
type PublicError = {
|
|
37
37
|
[Key in keyof ErrorExports]: ErrorExports[Key] extends {
|
|
38
38
|
readonly prototype: infer Error;
|
package/dist/effect/client.d.ts
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* the generated OpenAPI client through {@link Service}; callers do not need to
|
|
7
7
|
* construct or thread a client object through their programs.
|
|
8
8
|
*/
|
|
9
|
-
export { type Config, type ConfigBase, type Interface, Service, layer, layerFetch, } from "./internal/client";
|
|
9
|
+
export { type Config, type ConfigBase, type Interface, Service, layer, layerFetch, } from "./internal/client.js";
|