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
|
@@ -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,20 @@ 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
268
|
export declare const addIdentity: (input: {
|
|
269
269
|
readonly id: string;
|
|
270
270
|
readonly type: "email" | "phone";
|
|
271
271
|
readonly identifier: string;
|
|
272
272
|
readonly verified?: boolean | null | undefined;
|
|
273
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsAddIdentity">;
|
|
273
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsAddIdentity">;
|
|
274
274
|
export declare const removeIdentity: (input: {
|
|
275
275
|
readonly id: string;
|
|
276
276
|
readonly identityId: string;
|
|
277
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsRemoveIdentity">;
|
|
277
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsRemoveIdentity">;
|
|
278
278
|
export declare const setConsent: (input: {
|
|
279
279
|
readonly id: string;
|
|
280
280
|
readonly identityId: string;
|
|
@@ -309,18 +309,18 @@ export declare const setConsent: (input: {
|
|
|
309
309
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
310
310
|
} | null | undefined;
|
|
311
311
|
} | null | undefined;
|
|
312
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsSetConsent">;
|
|
312
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsSetConsent">;
|
|
313
313
|
export declare const addTags: (input: {
|
|
314
314
|
readonly id: string;
|
|
315
315
|
readonly tags: readonly string[];
|
|
316
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsAddTags">;
|
|
316
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsAddTags">;
|
|
317
317
|
export declare const removeTags: (input: {
|
|
318
318
|
readonly id: string;
|
|
319
319
|
readonly tags: readonly string[];
|
|
320
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsRemoveTags">;
|
|
320
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsRemoveTags">;
|
|
321
321
|
export declare const getEngagement: (input: {
|
|
322
322
|
readonly id: string;
|
|
323
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsGetEngagement">;
|
|
323
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsGetEngagement">;
|
|
324
324
|
export declare const planImport: (input: {
|
|
325
325
|
readonly preset: "beehiiv" | "kit" | "mailchimp" | "substack";
|
|
326
326
|
readonly topicId: string;
|
|
@@ -344,7 +344,7 @@ export declare const planImport: (input: {
|
|
|
344
344
|
readonly scope: "cleaned/bounced" | "subscribed" | "suppressed" | "unsubscribed";
|
|
345
345
|
} | null | undefined;
|
|
346
346
|
})[];
|
|
347
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsPlanImport">;
|
|
347
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsPlanImport">;
|
|
348
348
|
export declare const startImport: (input: {
|
|
349
349
|
readonly mode: "new";
|
|
350
350
|
readonly input: {
|
|
@@ -376,22 +376,22 @@ export declare const startImport: (input: {
|
|
|
376
376
|
readonly mode: "resume";
|
|
377
377
|
readonly jobId: string;
|
|
378
378
|
readonly expectedGeneration: number;
|
|
379
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsStartImport">;
|
|
379
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsStartImport">;
|
|
380
380
|
export declare const getImportJob: (input: {
|
|
381
381
|
readonly id: string;
|
|
382
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsGetImportJob">;
|
|
382
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsGetImportJob">;
|
|
383
383
|
export declare const bulkDelete: (input: {
|
|
384
384
|
readonly ids: readonly string[];
|
|
385
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsBulkDelete">;
|
|
385
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsBulkDelete">;
|
|
386
386
|
export declare const bulkUpdateTags: (input: {
|
|
387
387
|
readonly ids: readonly string[];
|
|
388
388
|
readonly operation: "add" | "remove" | "set";
|
|
389
389
|
readonly tags: readonly string[];
|
|
390
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsBulkUpdateTags">;
|
|
390
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsBulkUpdateTags">;
|
|
391
391
|
export declare const bulkUpdateStatus: (input: {
|
|
392
392
|
readonly ids: readonly string[];
|
|
393
393
|
readonly status: "active" | "archived" | "blocked" | "paused";
|
|
394
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsBulkUpdateStatus">;
|
|
394
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsBulkUpdateStatus">;
|
|
395
395
|
declare const exportContacts: (input?: {
|
|
396
396
|
readonly ids?: readonly string[] | null | undefined;
|
|
397
397
|
readonly format?: "csv" | "json" | null | undefined;
|
|
@@ -400,14 +400,14 @@ declare const exportContacts: (input?: {
|
|
|
400
400
|
readonly tags?: readonly string[] | null | undefined;
|
|
401
401
|
} | null | undefined;
|
|
402
402
|
readonly fields?: readonly string[] | null | undefined;
|
|
403
|
-
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsExport">;
|
|
403
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsExport">;
|
|
404
404
|
export { exportContacts as export };
|
|
405
405
|
export declare const getActivityTimeline: ((input: {
|
|
406
406
|
readonly id: string;
|
|
407
407
|
readonly limit?: number | null | undefined;
|
|
408
408
|
readonly cursor?: string | undefined;
|
|
409
409
|
readonly channel?: "email" | "sms" | "whatsapp" | undefined;
|
|
410
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsGetActivityTimeline">) & {
|
|
410
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsGetActivityTimeline">) & {
|
|
411
411
|
readonly pages: (input: {
|
|
412
412
|
readonly id: string;
|
|
413
413
|
readonly limit?: number | null | undefined;
|
|
@@ -425,7 +425,7 @@ export declare const getActivityTimeline: ((input: {
|
|
|
425
425
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
426
426
|
}[];
|
|
427
427
|
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>;
|
|
428
|
+
}, 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
429
|
readonly items: (input: {
|
|
430
430
|
readonly id: string;
|
|
431
431
|
readonly limit?: number | null | undefined;
|
|
@@ -440,13 +440,13 @@ export declare const getActivityTimeline: ((input: {
|
|
|
440
440
|
readonly snippet: string | null;
|
|
441
441
|
readonly createdAt: string;
|
|
442
442
|
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>;
|
|
443
|
+
}, 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
444
|
};
|
|
445
445
|
export declare const getGroupMemberships: ((input: {
|
|
446
446
|
readonly id: string;
|
|
447
447
|
readonly limit?: number | null | undefined;
|
|
448
448
|
readonly cursor?: string | undefined;
|
|
449
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsGetGroupMemberships">) & {
|
|
449
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsGetGroupMemberships">) & {
|
|
450
450
|
readonly pages: (input: {
|
|
451
451
|
readonly id: string;
|
|
452
452
|
readonly limit?: number | null | undefined;
|
|
@@ -461,7 +461,7 @@ export declare const getGroupMemberships: ((input: {
|
|
|
461
461
|
readonly joinedAt: string;
|
|
462
462
|
}[];
|
|
463
463
|
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>;
|
|
464
|
+
}, 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
465
|
readonly items: (input: {
|
|
466
466
|
readonly id: string;
|
|
467
467
|
readonly limit?: number | null | undefined;
|
|
@@ -473,13 +473,13 @@ export declare const getGroupMemberships: ((input: {
|
|
|
473
473
|
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
474
474
|
readonly role: string;
|
|
475
475
|
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>;
|
|
476
|
+
}, 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
477
|
};
|
|
478
478
|
export declare const listEvents: ((input: {
|
|
479
479
|
readonly id: string;
|
|
480
480
|
readonly limit?: number | null | undefined;
|
|
481
481
|
readonly cursor?: string | undefined;
|
|
482
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactEventsListEvents">) & {
|
|
482
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactEventsListEvents">) & {
|
|
483
483
|
readonly pages: (input: {
|
|
484
484
|
readonly id: string;
|
|
485
485
|
readonly limit?: number | null | undefined;
|
|
@@ -491,13 +491,13 @@ export declare const listEvents: ((input: {
|
|
|
491
491
|
readonly name: string;
|
|
492
492
|
readonly source: "api" | "samva";
|
|
493
493
|
readonly properties: {
|
|
494
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
494
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
495
495
|
};
|
|
496
496
|
readonly occurredAt: string;
|
|
497
497
|
readonly recordedAt: string;
|
|
498
498
|
}[];
|
|
499
499
|
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>;
|
|
500
|
+
}, 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
501
|
readonly items: (input: {
|
|
502
502
|
readonly id: string;
|
|
503
503
|
readonly limit?: number | null | undefined;
|
|
@@ -508,9 +508,9 @@ export declare const listEvents: ((input: {
|
|
|
508
508
|
readonly name: string;
|
|
509
509
|
readonly source: "api" | "samva";
|
|
510
510
|
readonly properties: {
|
|
511
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
511
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
512
512
|
};
|
|
513
513
|
readonly occurredAt: string;
|
|
514
514
|
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>;
|
|
515
|
+
}, 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
516
|
};
|
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
|
|
@@ -28,7 +29,7 @@ var contacts_exports = /* @__PURE__ */ __exportAll({
|
|
|
28
29
|
startImport: () => startImport,
|
|
29
30
|
update: () => update
|
|
30
31
|
});
|
|
31
|
-
const make = /* @__PURE__ */ forGroup(ContactsGroup);
|
|
32
|
+
const make = /* @__PURE__ */ forGroup(ContactsGroup, contactsOperations);
|
|
32
33
|
const list = /* @__PURE__ */ make("contactsList");
|
|
33
34
|
const create = /* @__PURE__ */ make("contactsCreate");
|
|
34
35
|
const find = /* @__PURE__ */ make("contactsFind");
|
|
@@ -51,7 +52,7 @@ const bulkUpdateStatus = /* @__PURE__ */ make("contactsBulkUpdateStatus");
|
|
|
51
52
|
const exportContacts = /* @__PURE__ */ make("contactsExport");
|
|
52
53
|
const getActivityTimeline = /* @__PURE__ */ make("contactsGetActivityTimeline");
|
|
53
54
|
const getGroupMemberships = /* @__PURE__ */ make("contactsGetGroupMemberships");
|
|
54
|
-
const listEvents = /* @__PURE__ */ forGroup(ContactEventsGroup)("contactEventsListEvents");
|
|
55
|
+
const listEvents = /* @__PURE__ */ forGroup(ContactEventsGroup, contactsOperations)("contactEventsListEvents");
|
|
55
56
|
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 };
|
|
56
57
|
|
|
57
58
|
//# sourceMappingURL=contacts.js.map
|
|
@@ -8,7 +8,7 @@ export declare const list: ((input?: {
|
|
|
8
8
|
readonly mailboxId?: string | undefined;
|
|
9
9
|
readonly after?: string | undefined;
|
|
10
10
|
readonly before?: string | undefined;
|
|
11
|
-
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsList">) & {
|
|
11
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsList">) & {
|
|
12
12
|
readonly pages: (input?: {
|
|
13
13
|
readonly limit?: number | null | undefined;
|
|
14
14
|
readonly cursor?: string | undefined;
|
|
@@ -37,7 +37,7 @@ export declare const list: ((input?: {
|
|
|
37
37
|
readonly createdAt: string;
|
|
38
38
|
}[];
|
|
39
39
|
readonly nextCursor: string | null;
|
|
40
|
-
}, 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>;
|
|
40
|
+
}, 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>;
|
|
41
41
|
readonly items: (input?: {
|
|
42
42
|
readonly limit?: number | null | undefined;
|
|
43
43
|
readonly cursor?: string | undefined;
|
|
@@ -63,7 +63,7 @@ export declare const list: ((input?: {
|
|
|
63
63
|
readonly messageCount: number;
|
|
64
64
|
readonly lastActivityAt: string;
|
|
65
65
|
readonly createdAt: string;
|
|
66
|
-
}, 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>;
|
|
66
|
+
}, 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>;
|
|
67
67
|
};
|
|
68
68
|
export declare const create: (input: {
|
|
69
69
|
readonly namespaceId?: string | null | undefined;
|
|
@@ -199,10 +199,10 @@ export declare const create: (input: {
|
|
|
199
199
|
readonly isTest?: boolean | null | undefined;
|
|
200
200
|
readonly isInternal?: boolean | null | undefined;
|
|
201
201
|
readonly isPrivate?: boolean | null | undefined;
|
|
202
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsCreate">;
|
|
202
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsCreate">;
|
|
203
203
|
export declare const getById: (input: {
|
|
204
204
|
readonly id: string;
|
|
205
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsGetById">;
|
|
205
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsGetById">;
|
|
206
206
|
export declare const update: (input: {
|
|
207
207
|
readonly id: string;
|
|
208
208
|
readonly title?: string | null | undefined;
|
|
@@ -334,14 +334,14 @@ export declare const update: (input: {
|
|
|
334
334
|
readonly isTest?: boolean | null | undefined;
|
|
335
335
|
readonly isInternal?: boolean | null | undefined;
|
|
336
336
|
readonly isPrivate?: boolean | null | undefined;
|
|
337
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsUpdate">;
|
|
337
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsUpdate">;
|
|
338
338
|
export declare const listMessages: ((input: {
|
|
339
339
|
readonly id: string;
|
|
340
340
|
readonly limit?: number | null | undefined;
|
|
341
341
|
readonly cursor?: string | undefined;
|
|
342
342
|
readonly after?: string | undefined;
|
|
343
343
|
readonly before?: string | undefined;
|
|
344
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsListMessages">) & {
|
|
344
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsListMessages">) & {
|
|
345
345
|
readonly pages: (input: {
|
|
346
346
|
readonly id: string;
|
|
347
347
|
readonly limit?: number | null | undefined;
|
|
@@ -365,7 +365,7 @@ export declare const listMessages: ((input: {
|
|
|
365
365
|
readonly createdAt: string;
|
|
366
366
|
}[];
|
|
367
367
|
readonly nextCursor: string | null;
|
|
368
|
-
}, 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>;
|
|
368
|
+
}, 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>;
|
|
369
369
|
readonly items: (input: {
|
|
370
370
|
readonly id: string;
|
|
371
371
|
readonly limit?: number | null | undefined;
|
|
@@ -386,37 +386,37 @@ export declare const listMessages: ((input: {
|
|
|
386
386
|
readonly subject: string | null;
|
|
387
387
|
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
388
388
|
readonly createdAt: string;
|
|
389
|
-
}, 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>;
|
|
389
|
+
}, 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>;
|
|
390
390
|
};
|
|
391
391
|
export declare const addTags: (input: {
|
|
392
392
|
readonly id: string;
|
|
393
393
|
readonly tags: readonly string[];
|
|
394
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsAddTags">;
|
|
394
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsAddTags">;
|
|
395
395
|
export declare const removeTags: (input: {
|
|
396
396
|
readonly id: string;
|
|
397
397
|
readonly tags: readonly string[];
|
|
398
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsRemoveTags">;
|
|
398
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsRemoveTags">;
|
|
399
399
|
export declare const addCategories: (input: {
|
|
400
400
|
readonly id: string;
|
|
401
401
|
readonly categories: readonly string[];
|
|
402
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsAddCategories">;
|
|
402
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsAddCategories">;
|
|
403
403
|
export declare const removeCategories: (input: {
|
|
404
404
|
readonly id: string;
|
|
405
405
|
readonly categories: readonly string[];
|
|
406
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsRemoveCategories">;
|
|
406
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsRemoveCategories">;
|
|
407
407
|
export declare const addChannels: (input: {
|
|
408
408
|
readonly id: string;
|
|
409
409
|
readonly channels: readonly ("email" | "sms" | "whatsapp")[];
|
|
410
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsAddChannels">;
|
|
410
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsAddChannels">;
|
|
411
411
|
export declare const removeChannels: (input: {
|
|
412
412
|
readonly id: string;
|
|
413
413
|
readonly channels: readonly ("email" | "sms" | "whatsapp")[];
|
|
414
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsRemoveChannels">;
|
|
414
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsRemoveChannels">;
|
|
415
415
|
export declare const addContacts: (input: {
|
|
416
416
|
readonly id: string;
|
|
417
417
|
readonly contactIds: readonly string[];
|
|
418
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsAddContacts">;
|
|
418
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsAddContacts">;
|
|
419
419
|
export declare const removeContacts: (input: {
|
|
420
420
|
readonly id: string;
|
|
421
421
|
readonly contactIds: readonly string[];
|
|
422
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsRemoveContacts">;
|
|
422
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsRemoveContacts">;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { conversationsOperations } from "./descriptors/conversations.js";
|
|
3
4
|
import { ConversationsGroup } from "./generated/conversations.js";
|
|
4
5
|
// src/effect/conversations.ts
|
|
5
6
|
var conversations_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -17,7 +18,7 @@ var conversations_exports = /* @__PURE__ */ __exportAll({
|
|
|
17
18
|
removeTags: () => removeTags,
|
|
18
19
|
update: () => update
|
|
19
20
|
});
|
|
20
|
-
const make = /* @__PURE__ */ forGroup(ConversationsGroup);
|
|
21
|
+
const make = /* @__PURE__ */ forGroup(ConversationsGroup, conversationsOperations);
|
|
21
22
|
const list = /* @__PURE__ */ make("conversationsList");
|
|
22
23
|
const create = /* @__PURE__ */ make("conversationsCreate");
|
|
23
24
|
const getById = /* @__PURE__ */ make("conversationsGetById");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const list: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"customFieldsList">;
|
|
1
|
+
export declare const list: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"customFieldsList">;
|
|
2
2
|
export declare const create: (input: {
|
|
3
3
|
readonly key: string;
|
|
4
4
|
readonly label: string;
|
|
@@ -7,7 +7,7 @@ export declare const create: (input: {
|
|
|
7
7
|
readonly defaultValue?: string | null | undefined;
|
|
8
8
|
readonly isRequired?: boolean | null | undefined;
|
|
9
9
|
readonly sortOrder?: number | null | undefined;
|
|
10
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"customFieldsCreate">;
|
|
10
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"customFieldsCreate">;
|
|
11
11
|
export declare const update: (input: {
|
|
12
12
|
readonly id: string;
|
|
13
13
|
readonly label?: string | null | undefined;
|
|
@@ -15,7 +15,7 @@ export declare const update: (input: {
|
|
|
15
15
|
readonly defaultValue?: string | null | undefined;
|
|
16
16
|
readonly isRequired?: boolean | null | undefined;
|
|
17
17
|
readonly sortOrder?: number | null | undefined;
|
|
18
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"customFieldsUpdate">;
|
|
18
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"customFieldsUpdate">;
|
|
19
19
|
export declare const remove: (input: {
|
|
20
20
|
readonly id: string;
|
|
21
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"customFieldsRemove">;
|
|
21
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"customFieldsRemove">;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { customFieldsOperations } from "./descriptors/custom-fields.js";
|
|
3
4
|
import { CustomFieldsGroup } from "./generated/custom-fields.js";
|
|
4
5
|
// src/effect/custom-fields.ts
|
|
5
6
|
var custom_fields_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -8,7 +9,7 @@ var custom_fields_exports = /* @__PURE__ */ __exportAll({
|
|
|
8
9
|
remove: () => remove,
|
|
9
10
|
update: () => update
|
|
10
11
|
});
|
|
11
|
-
const make = /* @__PURE__ */ forGroup(CustomFieldsGroup);
|
|
12
|
+
const make = /* @__PURE__ */ forGroup(CustomFieldsGroup, customFieldsOperations);
|
|
12
13
|
const list = /* @__PURE__ */ make("customFieldsList");
|
|
13
14
|
const create = /* @__PURE__ */ make("customFieldsCreate");
|
|
14
15
|
const update = /* @__PURE__ */ make("customFieldsUpdate");
|