samva 0.46.0 → 0.47.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 +13 -7
- package/README.md +107 -9
- package/dist/agent/index.d.ts +56 -0
- package/dist/agent/index.js +52 -0
- package/dist/agent/runtime.d.ts +3 -0
- package/dist/agent/runtime.js +74 -0
- package/dist/agent/test.d.ts +31 -0
- package/dist/agent/test.js +66 -0
- package/dist/agent/types.d.ts +123 -0
- 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 +41 -161
- package/dist/client/sdk.gen.js +1302 -1598
- package/dist/client/types.gen.d.ts +377 -966
- package/dist/effect/accounts.d.ts +6 -6
- package/dist/effect/accounts.js +2 -1
- package/dist/effect/agents.d.ts +355 -23
- package/dist/effect/agents.js +6 -3
- 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 +205 -205
- 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 +41 -33
- package/dist/effect/contacts.js +8 -3
- 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 +129 -0
- package/dist/effect/descriptors/agents.js +127 -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 +246 -0
- package/dist/effect/descriptors/contacts.js +234 -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/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/feedback.d.ts +2 -2
- package/dist/effect/feedback.js +2 -1
- package/dist/effect/generated/accounts.d.ts +19 -9
- package/dist/effect/generated/accounts.js +1 -0
- package/dist/effect/generated/agents.d.ts +2967 -690
- package/dist/effect/generated/agents.js +54 -13
- 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 +907 -49
- package/dist/effect/generated/contacts.js +62 -3
- 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/feedback.d.ts +1 -1
- package/dist/effect/generated/index.d.ts +84 -88
- 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 +336 -96
- package/dist/effect/generated/journeys.js +3 -1
- package/dist/effect/generated/mailboxes.d.ts +93 -95
- package/dist/effect/generated/mailboxes.js +21 -25
- 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 +408 -102
- package/dist/effect/generated/shared.js +80 -36
- package/dist/effect/generated/subscriptions.d.ts +1 -1
- package/dist/effect/generated/template-registrations.d.ts +1 -4
- package/dist/effect/generated/template-registrations.js +2 -6
- 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/generated-metadata.d.ts +18 -84
- package/dist/effect/generated-metadata.js +362 -415
- package/dist/effect/index.d.ts +45 -47
- package/dist/effect/index.js +1 -3
- 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/client.js +1 -1
- 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 +25 -22
- package/dist/effect/internal/send.d.ts +4 -4
- package/dist/effect/journeys.d.ts +46 -22
- package/dist/effect/journeys.js +2 -1
- package/dist/effect/mailboxes.d.ts +163 -163
- 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 +371 -371
- 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 +13 -13
- 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/package.js +1 -1
- package/dist/promises/client.d.ts +10 -14
- package/dist/promises/client.js +3 -7
- 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/dist/service-map.d.ts +18 -75
- package/package.json +17 -29
- package/dist/effect/extension-installations.d.ts +0 -132
- package/dist/effect/extension-installations.js +0 -28
- package/dist/effect/extensions.d.ts +0 -102
- package/dist/effect/extensions.js +0 -20
- package/dist/effect/generated/extension-installations.d.ts +0 -2761
- package/dist/effect/generated/extension-installations.js +0 -405
- package/dist/effect/generated/extensions.d.ts +0 -1037
- package/dist/effect/generated/extensions.js +0 -214
- package/dist/mailbox/dispatch.d.ts +0 -10
- package/dist/mailbox/dispatch.js +0 -66
- package/dist/mailbox/index.d.ts +0 -17
- package/dist/mailbox/index.js +0 -30
- package/dist/mailbox/test.d.ts +0 -25
- package/dist/mailbox/test.js +0 -181
- package/dist/mailbox/types.d.ts +0 -221
- package/dist/mailbox/webhook.d.ts +0 -10
- package/dist/mailbox/webhook.js +0 -41
- package/dist/service-map.js +0 -830
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";
|
|
@@ -3,7 +3,7 @@ export declare const list: ((input?: {
|
|
|
3
3
|
readonly cursor?: string | undefined;
|
|
4
4
|
readonly type?: "dynamic" | "smart" | "static" | readonly ("dynamic" | "smart" | "static")[] | undefined;
|
|
5
5
|
readonly isActive?: boolean | null | undefined;
|
|
6
|
-
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsList">) & {
|
|
6
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactGroupsList">) & {
|
|
7
7
|
readonly pages: (input?: {
|
|
8
8
|
readonly limit?: number | null | undefined;
|
|
9
9
|
readonly cursor?: string | undefined;
|
|
@@ -17,7 +17,7 @@ export declare const list: ((input?: {
|
|
|
17
17
|
readonly description: string | null;
|
|
18
18
|
readonly type: "dynamic" | "smart" | "static";
|
|
19
19
|
readonly criteria: {
|
|
20
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
20
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
21
21
|
} | null;
|
|
22
22
|
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
23
23
|
readonly icon: string | null;
|
|
@@ -29,7 +29,7 @@ export declare const list: ((input?: {
|
|
|
29
29
|
readonly updatedAt: string;
|
|
30
30
|
}[];
|
|
31
31
|
readonly nextCursor: string | null;
|
|
32
|
-
}, 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>;
|
|
32
|
+
}, 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>;
|
|
33
33
|
readonly items: (input?: {
|
|
34
34
|
readonly limit?: number | null | undefined;
|
|
35
35
|
readonly cursor?: string | undefined;
|
|
@@ -42,7 +42,7 @@ export declare const list: ((input?: {
|
|
|
42
42
|
readonly description: string | null;
|
|
43
43
|
readonly type: "dynamic" | "smart" | "static";
|
|
44
44
|
readonly criteria: {
|
|
45
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
45
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
46
46
|
} | null;
|
|
47
47
|
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
48
48
|
readonly icon: string | null;
|
|
@@ -52,7 +52,7 @@ export declare const list: ((input?: {
|
|
|
52
52
|
readonly isActive: boolean;
|
|
53
53
|
readonly createdAt: string;
|
|
54
54
|
readonly updatedAt: string;
|
|
55
|
-
}, 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>;
|
|
55
|
+
}, 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>;
|
|
56
56
|
};
|
|
57
57
|
export declare const create: (input: {
|
|
58
58
|
readonly name: string;
|
|
@@ -89,10 +89,10 @@ export declare const create: (input: {
|
|
|
89
89
|
readonly icon?: string | null | undefined;
|
|
90
90
|
readonly parentGroupId?: string | null | undefined;
|
|
91
91
|
readonly isActive?: boolean | null | undefined;
|
|
92
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsCreate">;
|
|
92
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactGroupsCreate">;
|
|
93
93
|
export declare const getById: (input: {
|
|
94
94
|
readonly id: string;
|
|
95
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsGetById">;
|
|
95
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactGroupsGetById">;
|
|
96
96
|
export declare const update: (input: {
|
|
97
97
|
readonly id: string;
|
|
98
98
|
readonly name?: string | null | undefined;
|
|
@@ -129,24 +129,24 @@ export declare const update: (input: {
|
|
|
129
129
|
readonly icon?: string | null | undefined;
|
|
130
130
|
readonly parentGroupId?: string | null | undefined;
|
|
131
131
|
readonly isActive?: boolean | null | undefined;
|
|
132
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsUpdate">;
|
|
132
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactGroupsUpdate">;
|
|
133
133
|
export declare const remove: (input: {
|
|
134
134
|
readonly id: string;
|
|
135
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsRemove">;
|
|
135
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactGroupsRemove">;
|
|
136
136
|
export declare const addMembers: (input: {
|
|
137
137
|
readonly id: string;
|
|
138
138
|
readonly contactIds: readonly string[];
|
|
139
139
|
readonly role?: "admin" | "member" | "moderator" | null | undefined;
|
|
140
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsAddMembers">;
|
|
140
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactGroupsAddMembers">;
|
|
141
141
|
export declare const removeMembers: (input: {
|
|
142
142
|
readonly id: string;
|
|
143
143
|
readonly contactIds: readonly string[];
|
|
144
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsRemoveMembers">;
|
|
144
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactGroupsRemoveMembers">;
|
|
145
145
|
export declare const getMembers: ((input: {
|
|
146
146
|
readonly id: string;
|
|
147
147
|
readonly limit?: number | null | undefined;
|
|
148
148
|
readonly cursor?: string | undefined;
|
|
149
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsGetMembers">) & {
|
|
149
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactGroupsGetMembers">) & {
|
|
150
150
|
readonly pages: (input: {
|
|
151
151
|
readonly id: string;
|
|
152
152
|
readonly limit?: number | null | undefined;
|
|
@@ -179,7 +179,7 @@ export declare const getMembers: ((input: {
|
|
|
179
179
|
readonly source: string;
|
|
180
180
|
readonly capturedAt: string;
|
|
181
181
|
readonly proof: {
|
|
182
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
182
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
183
183
|
} | null;
|
|
184
184
|
} | null;
|
|
185
185
|
}[];
|
|
@@ -187,7 +187,7 @@ export declare const getMembers: ((input: {
|
|
|
187
187
|
} | null;
|
|
188
188
|
}[];
|
|
189
189
|
readonly nextCursor: string | null;
|
|
190
|
-
}, 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>;
|
|
190
|
+
}, 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>;
|
|
191
191
|
readonly items: (input: {
|
|
192
192
|
readonly id: string;
|
|
193
193
|
readonly limit?: number | null | undefined;
|
|
@@ -219,17 +219,17 @@ export declare const getMembers: ((input: {
|
|
|
219
219
|
readonly source: string;
|
|
220
220
|
readonly capturedAt: string;
|
|
221
221
|
readonly proof: {
|
|
222
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
222
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
223
223
|
} | null;
|
|
224
224
|
} | null;
|
|
225
225
|
}[];
|
|
226
226
|
}[] | null;
|
|
227
227
|
} | null;
|
|
228
|
-
}, 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>;
|
|
228
|
+
}, 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>;
|
|
229
229
|
};
|
|
230
230
|
export declare const evaluateDynamic: (input: {
|
|
231
231
|
readonly id: string;
|
|
232
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsEvaluateDynamic">;
|
|
232
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactGroupsEvaluateDynamic">;
|
|
233
233
|
export declare const preview: (input: {
|
|
234
234
|
readonly criteria: {
|
|
235
235
|
readonly tags?: readonly string[] | null | undefined;
|
|
@@ -263,4 +263,4 @@ export declare const preview: (input: {
|
|
|
263
263
|
} | null;
|
|
264
264
|
}[] | null | undefined;
|
|
265
265
|
};
|
|
266
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsPreview">;
|
|
266
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactGroupsPreview">;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { contactGroupsOperations } from "./descriptors/contact-groups.js";
|
|
3
4
|
import { ContactGroupsGroup } from "./generated/contact-groups.js";
|
|
4
5
|
// src/effect/contact-groups.ts
|
|
5
6
|
var contact_groups_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -14,7 +15,7 @@ var contact_groups_exports = /* @__PURE__ */ __exportAll({
|
|
|
14
15
|
removeMembers: () => removeMembers,
|
|
15
16
|
update: () => update
|
|
16
17
|
});
|
|
17
|
-
const make = /* @__PURE__ */ forGroup(ContactGroupsGroup);
|
|
18
|
+
const make = /* @__PURE__ */ forGroup(ContactGroupsGroup, contactGroupsOperations);
|
|
18
19
|
const list = /* @__PURE__ */ make("contactGroupsList");
|
|
19
20
|
const create = /* @__PURE__ */ make("contactGroupsCreate");
|
|
20
21
|
const getById = /* @__PURE__ */ make("contactGroupsGetById");
|
|
@@ -9,7 +9,7 @@ export declare const list: ((input?: {
|
|
|
9
9
|
readonly customFieldValue?: string | undefined;
|
|
10
10
|
readonly after?: string | undefined;
|
|
11
11
|
readonly before?: string | undefined;
|
|
12
|
-
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsList">) & {
|
|
12
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsList">) & {
|
|
13
13
|
readonly pages: (input?: {
|
|
14
14
|
readonly limit?: number | null | undefined;
|
|
15
15
|
readonly cursor?: string | undefined;
|
|
@@ -43,7 +43,7 @@ export declare const list: ((input?: {
|
|
|
43
43
|
readonly createdAt: string;
|
|
44
44
|
}[];
|
|
45
45
|
readonly nextCursor: string | null;
|
|
46
|
-
}, 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>;
|
|
46
|
+
}, 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>;
|
|
47
47
|
readonly items: (input?: {
|
|
48
48
|
readonly limit?: number | null | undefined;
|
|
49
49
|
readonly cursor?: string | undefined;
|
|
@@ -74,7 +74,7 @@ export declare const list: ((input?: {
|
|
|
74
74
|
} | null;
|
|
75
75
|
readonly lastActiveAt: string | null;
|
|
76
76
|
readonly createdAt: string;
|
|
77
|
-
}, 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>;
|
|
77
|
+
}, 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>;
|
|
78
78
|
};
|
|
79
79
|
export declare const create: (input: {
|
|
80
80
|
readonly namespaceId?: string | null | undefined;
|
|
@@ -147,13 +147,13 @@ export declare const create: (input: {
|
|
|
147
147
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
148
148
|
} | null | undefined;
|
|
149
149
|
} | null | undefined;
|
|
150
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsCreate">;
|
|
150
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsCreate">;
|
|
151
151
|
export declare const find: (input?: {
|
|
152
152
|
readonly namespaceId?: string | null | undefined;
|
|
153
153
|
readonly email?: string | null | undefined;
|
|
154
154
|
readonly phone?: string | null | undefined;
|
|
155
155
|
readonly externalId?: string | null | undefined;
|
|
156
|
-
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsFind">;
|
|
156
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsFind">;
|
|
157
157
|
export declare const findOrCreate: (input: {
|
|
158
158
|
readonly namespaceId?: string | null | undefined;
|
|
159
159
|
readonly lookup: {
|
|
@@ -193,10 +193,10 @@ export declare const findOrCreate: (input: {
|
|
|
193
193
|
} | null | undefined;
|
|
194
194
|
readonly externalId?: string | null | undefined;
|
|
195
195
|
} | null | undefined;
|
|
196
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsFindOrCreate">;
|
|
196
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsFindOrCreate">;
|
|
197
197
|
export declare const get: (input: {
|
|
198
198
|
readonly id: string;
|
|
199
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsGet">;
|
|
199
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsGet">;
|
|
200
200
|
export declare const update: (input: {
|
|
201
201
|
readonly id: string;
|
|
202
202
|
readonly name?: string | null | undefined;
|
|
@@ -261,20 +261,28 @@ export declare const update: (input: {
|
|
|
261
261
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
262
262
|
} | null | undefined;
|
|
263
263
|
} | null | undefined;
|
|
264
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsUpdate">;
|
|
264
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsUpdate">;
|
|
265
265
|
export declare const remove: (input: {
|
|
266
266
|
readonly id: string;
|
|
267
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsRemove">;
|
|
267
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsRemove">;
|
|
268
|
+
export declare const merge: (input: {
|
|
269
|
+
readonly id: string;
|
|
270
|
+
readonly from: string;
|
|
271
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsMerge">;
|
|
272
|
+
export declare const mergeByConnection: (input: {
|
|
273
|
+
readonly id: string;
|
|
274
|
+
readonly connection: string;
|
|
275
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsMergeByConnection">;
|
|
268
276
|
export declare const addIdentity: (input: {
|
|
269
277
|
readonly id: string;
|
|
270
278
|
readonly type: "email" | "phone";
|
|
271
279
|
readonly identifier: string;
|
|
272
280
|
readonly verified?: boolean | null | undefined;
|
|
273
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsAddIdentity">;
|
|
281
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsAddIdentity">;
|
|
274
282
|
export declare const removeIdentity: (input: {
|
|
275
283
|
readonly id: string;
|
|
276
284
|
readonly identityId: string;
|
|
277
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsRemoveIdentity">;
|
|
285
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsRemoveIdentity">;
|
|
278
286
|
export declare const setConsent: (input: {
|
|
279
287
|
readonly id: string;
|
|
280
288
|
readonly identityId: string;
|
|
@@ -309,18 +317,18 @@ export declare const setConsent: (input: {
|
|
|
309
317
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
310
318
|
} | null | undefined;
|
|
311
319
|
} | null | undefined;
|
|
312
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsSetConsent">;
|
|
320
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsSetConsent">;
|
|
313
321
|
export declare const addTags: (input: {
|
|
314
322
|
readonly id: string;
|
|
315
323
|
readonly tags: readonly string[];
|
|
316
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsAddTags">;
|
|
324
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsAddTags">;
|
|
317
325
|
export declare const removeTags: (input: {
|
|
318
326
|
readonly id: string;
|
|
319
327
|
readonly tags: readonly string[];
|
|
320
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsRemoveTags">;
|
|
328
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsRemoveTags">;
|
|
321
329
|
export declare const getEngagement: (input: {
|
|
322
330
|
readonly id: string;
|
|
323
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsGetEngagement">;
|
|
331
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsGetEngagement">;
|
|
324
332
|
export declare const planImport: (input: {
|
|
325
333
|
readonly preset: "beehiiv" | "kit" | "mailchimp" | "substack";
|
|
326
334
|
readonly topicId: string;
|
|
@@ -344,7 +352,7 @@ export declare const planImport: (input: {
|
|
|
344
352
|
readonly scope: "cleaned/bounced" | "subscribed" | "suppressed" | "unsubscribed";
|
|
345
353
|
} | null | undefined;
|
|
346
354
|
})[];
|
|
347
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsPlanImport">;
|
|
355
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsPlanImport">;
|
|
348
356
|
export declare const startImport: (input: {
|
|
349
357
|
readonly mode: "new";
|
|
350
358
|
readonly input: {
|
|
@@ -376,22 +384,22 @@ export declare const startImport: (input: {
|
|
|
376
384
|
readonly mode: "resume";
|
|
377
385
|
readonly jobId: string;
|
|
378
386
|
readonly expectedGeneration: number;
|
|
379
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsStartImport">;
|
|
387
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsStartImport">;
|
|
380
388
|
export declare const getImportJob: (input: {
|
|
381
389
|
readonly id: string;
|
|
382
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsGetImportJob">;
|
|
390
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsGetImportJob">;
|
|
383
391
|
export declare const bulkDelete: (input: {
|
|
384
392
|
readonly ids: readonly string[];
|
|
385
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsBulkDelete">;
|
|
393
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsBulkDelete">;
|
|
386
394
|
export declare const bulkUpdateTags: (input: {
|
|
387
395
|
readonly ids: readonly string[];
|
|
388
396
|
readonly operation: "add" | "remove" | "set";
|
|
389
397
|
readonly tags: readonly string[];
|
|
390
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsBulkUpdateTags">;
|
|
398
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsBulkUpdateTags">;
|
|
391
399
|
export declare const bulkUpdateStatus: (input: {
|
|
392
400
|
readonly ids: readonly string[];
|
|
393
401
|
readonly status: "active" | "archived" | "blocked" | "paused";
|
|
394
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsBulkUpdateStatus">;
|
|
402
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsBulkUpdateStatus">;
|
|
395
403
|
declare const exportContacts: (input?: {
|
|
396
404
|
readonly ids?: readonly string[] | null | undefined;
|
|
397
405
|
readonly format?: "csv" | "json" | null | undefined;
|
|
@@ -400,14 +408,14 @@ declare const exportContacts: (input?: {
|
|
|
400
408
|
readonly tags?: readonly string[] | null | undefined;
|
|
401
409
|
} | null | undefined;
|
|
402
410
|
readonly fields?: readonly string[] | null | undefined;
|
|
403
|
-
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsExport">;
|
|
411
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsExport">;
|
|
404
412
|
export { exportContacts as export };
|
|
405
413
|
export declare const getActivityTimeline: ((input: {
|
|
406
414
|
readonly id: string;
|
|
407
415
|
readonly limit?: number | null | undefined;
|
|
408
416
|
readonly cursor?: string | undefined;
|
|
409
417
|
readonly channel?: "email" | "sms" | "whatsapp" | undefined;
|
|
410
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsGetActivityTimeline">) & {
|
|
418
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsGetActivityTimeline">) & {
|
|
411
419
|
readonly pages: (input: {
|
|
412
420
|
readonly id: string;
|
|
413
421
|
readonly limit?: number | null | undefined;
|
|
@@ -425,7 +433,7 @@ export declare const getActivityTimeline: ((input: {
|
|
|
425
433
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
426
434
|
}[];
|
|
427
435
|
readonly nextCursor: string | null;
|
|
428
|
-
}, 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>;
|
|
436
|
+
}, 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>;
|
|
429
437
|
readonly items: (input: {
|
|
430
438
|
readonly id: string;
|
|
431
439
|
readonly limit?: number | null | undefined;
|
|
@@ -440,13 +448,13 @@ export declare const getActivityTimeline: ((input: {
|
|
|
440
448
|
readonly snippet: string | null;
|
|
441
449
|
readonly createdAt: string;
|
|
442
450
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
443
|
-
}, 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>;
|
|
451
|
+
}, 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>;
|
|
444
452
|
};
|
|
445
453
|
export declare const getGroupMemberships: ((input: {
|
|
446
454
|
readonly id: string;
|
|
447
455
|
readonly limit?: number | null | undefined;
|
|
448
456
|
readonly cursor?: string | undefined;
|
|
449
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsGetGroupMemberships">) & {
|
|
457
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsGetGroupMemberships">) & {
|
|
450
458
|
readonly pages: (input: {
|
|
451
459
|
readonly id: string;
|
|
452
460
|
readonly limit?: number | null | undefined;
|
|
@@ -461,7 +469,7 @@ export declare const getGroupMemberships: ((input: {
|
|
|
461
469
|
readonly joinedAt: string;
|
|
462
470
|
}[];
|
|
463
471
|
readonly nextCursor: string | null;
|
|
464
|
-
}, 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>;
|
|
472
|
+
}, 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>;
|
|
465
473
|
readonly items: (input: {
|
|
466
474
|
readonly id: string;
|
|
467
475
|
readonly limit?: number | null | undefined;
|
|
@@ -473,13 +481,13 @@ export declare const getGroupMemberships: ((input: {
|
|
|
473
481
|
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
474
482
|
readonly role: string;
|
|
475
483
|
readonly joinedAt: string;
|
|
476
|
-
}, 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>;
|
|
484
|
+
}, 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>;
|
|
477
485
|
};
|
|
478
486
|
export declare const listEvents: ((input: {
|
|
479
487
|
readonly id: string;
|
|
480
488
|
readonly limit?: number | null | undefined;
|
|
481
489
|
readonly cursor?: string | undefined;
|
|
482
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactEventsListEvents">) & {
|
|
490
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactEventsListEvents">) & {
|
|
483
491
|
readonly pages: (input: {
|
|
484
492
|
readonly id: string;
|
|
485
493
|
readonly limit?: number | null | undefined;
|
|
@@ -491,13 +499,13 @@ export declare const listEvents: ((input: {
|
|
|
491
499
|
readonly name: string;
|
|
492
500
|
readonly source: "api" | "samva";
|
|
493
501
|
readonly properties: {
|
|
494
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
502
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
495
503
|
};
|
|
496
504
|
readonly occurredAt: string;
|
|
497
505
|
readonly recordedAt: string;
|
|
498
506
|
}[];
|
|
499
507
|
readonly nextCursor: string | null;
|
|
500
|
-
}, 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>;
|
|
508
|
+
}, 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>;
|
|
501
509
|
readonly items: (input: {
|
|
502
510
|
readonly id: string;
|
|
503
511
|
readonly limit?: number | null | undefined;
|
|
@@ -508,9 +516,9 @@ export declare const listEvents: ((input: {
|
|
|
508
516
|
readonly name: string;
|
|
509
517
|
readonly source: "api" | "samva";
|
|
510
518
|
readonly properties: {
|
|
511
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
519
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
512
520
|
};
|
|
513
521
|
readonly occurredAt: string;
|
|
514
522
|
readonly recordedAt: string;
|
|
515
|
-
}, 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>;
|
|
523
|
+
}, 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>;
|
|
516
524
|
};
|
package/dist/effect/contacts.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 { contactsOperations } from "./descriptors/contacts.js";
|
|
3
4
|
import { ContactEventsGroup } from "./generated/contact-events.js";
|
|
4
5
|
import { ContactsGroup } from "./generated/contacts.js";
|
|
5
6
|
// src/effect/contacts.ts
|
|
@@ -20,6 +21,8 @@ var contacts_exports = /* @__PURE__ */ __exportAll({
|
|
|
20
21
|
getImportJob: () => getImportJob,
|
|
21
22
|
list: () => list,
|
|
22
23
|
listEvents: () => listEvents,
|
|
24
|
+
merge: () => merge,
|
|
25
|
+
mergeByConnection: () => mergeByConnection,
|
|
23
26
|
planImport: () => planImport,
|
|
24
27
|
remove: () => remove,
|
|
25
28
|
removeIdentity: () => removeIdentity,
|
|
@@ -28,7 +31,7 @@ var contacts_exports = /* @__PURE__ */ __exportAll({
|
|
|
28
31
|
startImport: () => startImport,
|
|
29
32
|
update: () => update
|
|
30
33
|
});
|
|
31
|
-
const make = /* @__PURE__ */ forGroup(ContactsGroup);
|
|
34
|
+
const make = /* @__PURE__ */ forGroup(ContactsGroup, contactsOperations);
|
|
32
35
|
const list = /* @__PURE__ */ make("contactsList");
|
|
33
36
|
const create = /* @__PURE__ */ make("contactsCreate");
|
|
34
37
|
const find = /* @__PURE__ */ make("contactsFind");
|
|
@@ -36,6 +39,8 @@ const findOrCreate = /* @__PURE__ */ make("contactsFindOrCreate");
|
|
|
36
39
|
const get = /* @__PURE__ */ make("contactsGet");
|
|
37
40
|
const update = /* @__PURE__ */ make("contactsUpdate");
|
|
38
41
|
const remove = /* @__PURE__ */ make("contactsRemove");
|
|
42
|
+
const merge = /* @__PURE__ */ make("contactsMerge");
|
|
43
|
+
const mergeByConnection = /* @__PURE__ */ make("contactsMergeByConnection");
|
|
39
44
|
const addIdentity = /* @__PURE__ */ make("contactsAddIdentity");
|
|
40
45
|
const removeIdentity = /* @__PURE__ */ make("contactsRemoveIdentity");
|
|
41
46
|
const setConsent = /* @__PURE__ */ make("contactsSetConsent");
|
|
@@ -51,7 +56,7 @@ const bulkUpdateStatus = /* @__PURE__ */ make("contactsBulkUpdateStatus");
|
|
|
51
56
|
const exportContacts = /* @__PURE__ */ make("contactsExport");
|
|
52
57
|
const getActivityTimeline = /* @__PURE__ */ make("contactsGetActivityTimeline");
|
|
53
58
|
const getGroupMemberships = /* @__PURE__ */ make("contactsGetGroupMemberships");
|
|
54
|
-
const listEvents = /* @__PURE__ */ forGroup(ContactEventsGroup)("contactEventsListEvents");
|
|
55
|
-
export { addIdentity, addTags, bulkDelete, bulkUpdateStatus, bulkUpdateTags, contacts_exports, create, exportContacts as export, find, findOrCreate, get, getActivityTimeline, getEngagement, getGroupMemberships, getImportJob, list, listEvents, planImport, remove, removeIdentity, removeTags, setConsent, startImport, update };
|
|
59
|
+
const listEvents = /* @__PURE__ */ forGroup(ContactEventsGroup, contactsOperations)("contactEventsListEvents");
|
|
60
|
+
export { addIdentity, addTags, bulkDelete, bulkUpdateStatus, bulkUpdateTags, contacts_exports, create, exportContacts as export, find, findOrCreate, get, getActivityTimeline, getEngagement, getGroupMemberships, getImportJob, list, listEvents, merge, mergeByConnection, planImport, remove, removeIdentity, removeTags, setConsent, startImport, update };
|
|
56
61
|
|
|
57
62
|
//# sourceMappingURL=contacts.js.map
|