samva 0.56.0 → 0.56.2
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 +2 -2
- package/README.md +9 -8
- package/dist/agent/index.js +0 -2
- package/dist/agent/runtime.js +0 -2
- package/dist/agent/test.js +0 -2
- package/dist/client/client/client.gen.js +0 -2
- package/dist/client/client/utils.gen.js +0 -2
- package/dist/client/client.gen.js +0 -2
- package/dist/client/core/auth.gen.js +0 -2
- package/dist/client/core/bodySerializer.gen.js +0 -2
- package/dist/client/core/params.gen.js +0 -2
- package/dist/client/core/pathSerializer.gen.js +0 -2
- package/dist/client/core/serverSentEvents.gen.js +0 -2
- package/dist/client/core/utils.gen.js +0 -2
- package/dist/client/sdk.gen.js +0 -2
- package/dist/client-attribution.js +0 -2
- package/dist/effect/accounts.js +9 -12
- package/dist/effect/agents.js +16 -19
- package/dist/effect/analytics.js +9 -12
- package/dist/effect/api-keys.js +11 -14
- package/dist/effect/approval-requests.js +7 -10
- package/dist/effect/attachments.js +7 -10
- package/dist/effect/brands.js +9 -12
- package/dist/effect/campaigns.js +18 -21
- package/dist/effect/categories.js +0 -2
- package/dist/effect/client.js +0 -2
- package/dist/effect/contact-groups.js +13 -16
- package/dist/effect/contacts.js +29 -32
- package/dist/effect/conversations.js +16 -19
- package/dist/effect/custom-fields.js +7 -10
- package/dist/effect/descriptors/accounts.d.ts +50 -52
- package/dist/effect/descriptors/accounts.js +50 -54
- package/dist/effect/descriptors/agents.d.ts +113 -115
- package/dist/effect/descriptors/agents.js +120 -124
- package/dist/effect/descriptors/analytics.d.ts +47 -49
- package/dist/effect/descriptors/analytics.js +42 -46
- package/dist/effect/descriptors/api-keys.d.ts +69 -71
- package/dist/effect/descriptors/api-keys.js +73 -77
- package/dist/effect/descriptors/approval-requests.d.ts +34 -36
- package/dist/effect/descriptors/approval-requests.js +36 -40
- package/dist/effect/descriptors/attachments.d.ts +34 -36
- package/dist/effect/descriptors/attachments.js +36 -40
- package/dist/effect/descriptors/brands.d.ts +51 -53
- package/dist/effect/descriptors/brands.js +53 -57
- package/dist/effect/descriptors/campaigns.d.ts +130 -132
- package/dist/effect/descriptors/campaigns.js +137 -141
- package/dist/effect/descriptors/contact-groups.d.ts +86 -88
- package/dist/effect/descriptors/contact-groups.js +90 -94
- package/dist/effect/descriptors/contacts.d.ts +242 -244
- package/dist/effect/descriptors/contacts.js +227 -231
- package/dist/effect/descriptors/conversations.d.ts +114 -116
- package/dist/effect/descriptors/conversations.js +123 -127
- package/dist/effect/descriptors/custom-fields.d.ts +33 -35
- package/dist/effect/descriptors/custom-fields.js +33 -37
- package/dist/effect/descriptors/email.d.ts +623 -625
- package/dist/effect/descriptors/email.js +562 -580
- package/dist/effect/descriptors/events.d.ts +15 -17
- package/dist/effect/descriptors/events.js +14 -18
- package/dist/effect/descriptors/feedback.d.ts +7 -9
- package/dist/effect/descriptors/feedback.js +3 -5
- package/dist/effect/descriptors/integrations-catalog.d.ts +159 -161
- package/dist/effect/descriptors/integrations-catalog.js +142 -146
- package/dist/effect/descriptors/integrations.d.ts +60 -62
- package/dist/effect/descriptors/integrations.js +63 -67
- package/dist/effect/descriptors/journeys.d.ts +123 -125
- package/dist/effect/descriptors/journeys.js +133 -137
- package/dist/effect/descriptors/logs.d.ts +16 -18
- package/dist/effect/descriptors/logs.js +16 -20
- package/dist/effect/descriptors/mailboxes.d.ts +780 -782
- package/dist/effect/descriptors/mailboxes.js +795 -799
- package/dist/effect/descriptors/media.d.ts +43 -45
- package/dist/effect/descriptors/media.js +46 -50
- package/dist/effect/descriptors/messages.d.ts +86 -88
- package/dist/effect/descriptors/messages.js +83 -94
- package/dist/effect/descriptors/namespaces.d.ts +96 -98
- package/dist/effect/descriptors/namespaces.js +107 -111
- package/dist/effect/descriptors/newsletter-domains.d.ts +35 -37
- package/dist/effect/descriptors/newsletter-domains.js +39 -43
- package/dist/effect/descriptors/newsletter-issues.d.ts +98 -100
- package/dist/effect/descriptors/newsletter-issues.js +109 -113
- package/dist/effect/descriptors/newsletters.d.ts +43 -45
- package/dist/effect/descriptors/newsletters.js +46 -50
- package/dist/effect/descriptors/operations.d.ts +25 -27
- package/dist/effect/descriptors/operations.js +26 -30
- package/dist/effect/descriptors/organizations.d.ts +96 -98
- package/dist/effect/descriptors/organizations.js +86 -90
- package/dist/effect/descriptors/phone-numbers.d.ts +41 -43
- package/dist/effect/descriptors/phone-numbers.js +40 -44
- package/dist/effect/descriptors/policies.d.ts +26 -28
- package/dist/effect/descriptors/policies.js +29 -33
- package/dist/effect/descriptors/scheduled-messages.d.ts +42 -44
- package/dist/effect/descriptors/scheduled-messages.js +43 -47
- package/dist/effect/descriptors/subscriptions.d.ts +7 -9
- package/dist/effect/descriptors/subscriptions.js +3 -5
- package/dist/effect/descriptors/template-registrations.d.ts +26 -28
- package/dist/effect/descriptors/template-registrations.js +29 -33
- package/dist/effect/descriptors/template-share-links.d.ts +44 -46
- package/dist/effect/descriptors/template-share-links.js +49 -53
- package/dist/effect/descriptors/templates.d.ts +361 -363
- package/dist/effect/descriptors/templates.js +348 -352
- package/dist/effect/descriptors/topic-forms.d.ts +44 -46
- package/dist/effect/descriptors/topic-forms.js +49 -53
- package/dist/effect/descriptors/topics.d.ts +77 -79
- package/dist/effect/descriptors/topics.js +80 -84
- package/dist/effect/descriptors/webhooks.d.ts +96 -98
- package/dist/effect/descriptors/webhooks.js +103 -107
- package/dist/effect/descriptors/whats-app-flows.d.ts +86 -88
- package/dist/effect/descriptors/whats-app-flows.js +90 -94
- package/dist/effect/descriptors/whats-app-setup-links.d.ts +33 -35
- package/dist/effect/descriptors/whats-app-setup-links.js +33 -37
- package/dist/effect/descriptors/whats-app.d.ts +110 -112
- package/dist/effect/descriptors/whats-app.js +111 -115
- package/dist/effect/descriptors/whoami.d.ts +7 -9
- package/dist/effect/descriptors/whoami.js +3 -5
- package/dist/effect/email.js +66 -69
- package/dist/effect/events.js +5 -8
- package/dist/effect/feedback.js +4 -6
- package/dist/effect/generated/accounts.d.ts +144 -142
- package/dist/effect/generated/accounts.js +14 -11
- package/dist/effect/generated/agents.d.ts +1502 -1493
- package/dist/effect/generated/agents.js +28 -18
- package/dist/effect/generated/analytics.d.ts +55 -53
- package/dist/effect/generated/analytics.js +14 -11
- package/dist/effect/generated/api-keys.d.ts +216 -212
- package/dist/effect/generated/api-keys.js +18 -13
- package/dist/effect/generated/approval-requests.d.ts +60 -60
- package/dist/effect/generated/approval-requests.js +10 -9
- package/dist/effect/generated/attachments.d.ts +32 -32
- package/dist/effect/generated/attachments.js +10 -9
- package/dist/effect/generated/brands.d.ts +179 -177
- package/dist/effect/generated/brands.js +14 -11
- package/dist/effect/generated/campaigns.d.ts +1083 -1072
- package/dist/effect/generated/campaigns.js +32 -20
- package/dist/effect/generated/contact-events.d.ts +3 -6
- package/dist/effect/generated/contact-events.js +4 -6
- package/dist/effect/generated/contact-groups.d.ts +186 -180
- package/dist/effect/generated/contact-groups.js +22 -15
- package/dist/effect/generated/contacts.d.ts +1565 -1545
- package/dist/effect/generated/contacts.js +50 -29
- package/dist/effect/generated/conversations.d.ts +340 -331
- package/dist/effect/generated/conversations.js +28 -18
- package/dist/effect/generated/custom-fields.d.ts +63 -63
- package/dist/effect/generated/custom-fields.js +10 -9
- package/dist/effect/generated/email.d.ts +2731 -2671
- package/dist/effect/generated/email.js +130 -69
- package/dist/effect/generated/events.d.ts +160 -162
- package/dist/effect/generated/events.js +6 -7
- package/dist/effect/generated/feedback.d.ts +3 -6
- package/dist/effect/generated/feedback.js +4 -6
- package/dist/effect/generated/index.d.ts +174 -45
- package/dist/effect/generated/integrations-catalog.d.ts +459 -446
- package/dist/effect/generated/integrations-catalog.js +36 -22
- package/dist/effect/generated/integrations.d.ts +155 -152
- package/dist/effect/generated/integrations.js +16 -12
- package/dist/effect/generated/journeys.d.ts +864 -854
- package/dist/effect/generated/journeys.js +30 -19
- package/dist/effect/generated/logs.d.ts +147 -149
- package/dist/effect/generated/logs.js +6 -7
- package/dist/effect/generated/mailboxes.d.ts +7271 -7196
- package/dist/effect/generated/mailboxes.js +160 -84
- package/dist/effect/generated/media.d.ts +77 -76
- package/dist/effect/generated/media.js +12 -10
- package/dist/effect/generated/messages.d.ts +1092 -1086
- package/dist/effect/generated/messages.js +22 -15
- package/dist/effect/generated/namespaces.d.ts +184 -177
- package/dist/effect/generated/namespaces.js +24 -16
- package/dist/effect/generated/newsletter-domains.d.ts +57 -57
- package/dist/effect/generated/newsletter-domains.js +10 -9
- package/dist/effect/generated/newsletter-issues.d.ts +225 -218
- package/dist/effect/generated/newsletter-issues.js +24 -16
- package/dist/effect/generated/newsletters.d.ts +46 -45
- package/dist/effect/generated/newsletters.js +12 -10
- package/dist/effect/generated/operations.d.ts +79 -80
- package/dist/effect/generated/operations.js +8 -8
- package/dist/effect/generated/organizations.d.ts +438 -430
- package/dist/effect/generated/organizations.js +26 -17
- package/dist/effect/generated/phone-numbers.d.ts +87 -86
- package/dist/effect/generated/phone-numbers.js +12 -10
- package/dist/effect/generated/policies.d.ts +64 -65
- package/dist/effect/generated/policies.js +8 -8
- package/dist/effect/generated/scheduled-messages.d.ts +66 -65
- package/dist/effect/generated/scheduled-messages.js +12 -10
- package/dist/effect/generated/shared.d.ts +33 -33
- package/dist/effect/generated/shared.js +61 -63
- package/dist/effect/generated/subscriptions.d.ts +3 -6
- package/dist/effect/generated/subscriptions.js +4 -6
- package/dist/effect/generated/template-registrations.d.ts +135 -136
- package/dist/effect/generated/template-registrations.js +8 -8
- package/dist/effect/generated/template-share-links.d.ts +25 -24
- package/dist/effect/generated/template-share-links.js +12 -10
- package/dist/effect/generated/templates.d.ts +2678 -2645
- package/dist/effect/generated/templates.js +76 -42
- package/dist/effect/generated/topic-forms.d.ts +47 -46
- package/dist/effect/generated/topic-forms.js +12 -10
- package/dist/effect/generated/topics.d.ts +204 -199
- package/dist/effect/generated/topics.js +20 -14
- package/dist/effect/generated/webhooks.d.ts +268 -261
- package/dist/effect/generated/webhooks.js +24 -16
- package/dist/effect/generated/whats-app-flows.d.ts +250 -244
- package/dist/effect/generated/whats-app-flows.js +22 -15
- package/dist/effect/generated/whats-app-setup-links.d.ts +107 -107
- package/dist/effect/generated/whats-app-setup-links.js +10 -9
- package/dist/effect/generated/whats-app.d.ts +439 -430
- package/dist/effect/generated/whats-app.js +28 -18
- package/dist/effect/generated/whoami.d.ts +3 -6
- package/dist/effect/generated/whoami.js +4 -6
- package/dist/effect/generated-metadata.js +0 -2
- package/dist/effect/integrations-catalog.js +20 -23
- package/dist/effect/integrations.js +10 -13
- package/dist/effect/internal/client.d.ts +2 -1
- package/dist/effect/internal/client.js +3 -5
- package/dist/effect/internal/email-sender.js +5 -6
- package/dist/effect/internal/log-events.js +0 -2
- package/dist/effect/internal/mailbox-events.js +0 -2
- package/dist/effect/internal/operation.d.ts +11 -7
- package/dist/effect/internal/operation.js +17 -14
- package/dist/effect/internal/send.js +11 -10
- package/dist/effect/internal/timeout.js +0 -2
- package/dist/effect/journeys.js +17 -20
- package/dist/effect/logs.js +5 -8
- package/dist/effect/mailboxes.js +82 -85
- package/dist/effect/media.js +8 -11
- package/dist/effect/messages.js +12 -15
- package/dist/effect/namespaces.js +14 -17
- package/dist/effect/newsletter-domains.js +7 -10
- package/dist/effect/newsletter-issues.js +14 -17
- package/dist/effect/newsletters.js +8 -11
- package/dist/effect/operations.js +6 -9
- package/dist/effect/organizations.js +15 -18
- package/dist/effect/pagination.js +0 -2
- package/dist/effect/phone-numbers.js +8 -11
- package/dist/effect/policies.js +6 -9
- package/dist/effect/retry.js +0 -2
- package/dist/effect/runtime.js +3 -5
- package/dist/effect/scheduled-messages.js +8 -11
- package/dist/effect/subscriptions.js +4 -6
- package/dist/effect/template-registrations.js +6 -9
- package/dist/effect/template-share-links.js +8 -11
- package/dist/effect/templates.js +40 -43
- package/dist/effect/topic-forms.js +8 -11
- package/dist/effect/topics.js +12 -15
- package/dist/effect/webhooks.js +14 -17
- package/dist/effect/whatsapp-flows.js +13 -16
- package/dist/effect/whatsapp-setup-links.js +7 -10
- package/dist/effect/whatsapp.js +16 -19
- package/dist/effect/whoami.js +4 -6
- package/dist/inline-attachments.js +0 -2
- package/dist/mailbox-events.js +0 -2
- package/dist/normalize.js +0 -2
- package/dist/package.json.js +1 -3
- package/dist/promises/client.js +0 -2
- package/dist/promises/errors.gen.js +0 -2
- package/dist/promises/request.js +0 -2
- package/dist/request-id.js +0 -2
- package/dist/request-policy.js +0 -2
- package/package.json +3 -2
package/AGENTS.md
CHANGED
|
@@ -15,8 +15,8 @@ long-lived process, build it once in a module-scope `ManagedRuntime`.
|
|
|
15
15
|
|
|
16
16
|
Import error constructors from `samva/effect/errors` for `instanceof` or schema decoding; they are
|
|
17
17
|
the same constructors the operations use. This entry avoids domain modules, though native imports
|
|
18
|
-
still initialize shared schemas. Bundlers
|
|
19
|
-
|
|
18
|
+
still initialize shared schemas. Bundlers keep only the operations a program imports, with their
|
|
19
|
+
endpoints and the schemas those reach; the rest of each domain is discarded.
|
|
20
20
|
|
|
21
21
|
Treat exported request and response types as the API contract. Do not import package-internal files
|
|
22
22
|
or generated implementation paths; use only the subpaths declared in `package.json`.
|
package/README.md
CHANGED
|
@@ -229,14 +229,15 @@ const message = await Effect.runPromise(program);
|
|
|
229
229
|
### Serverless Runtimes
|
|
230
230
|
|
|
231
231
|
Each `samva/effect/<domain>` entrypoint loads only that domain's part of the API, so a Cloudflare
|
|
232
|
-
Worker or Lambda function pays at startup only for the domains it imports. A bundler
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
loads every domain on a native import; prefer focused entrypoints in
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
232
|
+
Worker or Lambda function pays at startup only for the domains it imports. A bundler goes further
|
|
233
|
+
and keeps only the operations you import, with their endpoints and the schemas those reach:
|
|
234
|
+
importing only `Mailboxes.list` leaves every other mailbox operation out, and `Email.send` keeps the
|
|
235
|
+
message send and media upload endpoints it calls, which handle oversized inline attachments. The
|
|
236
|
+
`samva/effect` barrel loads every domain on a native import; prefer focused entrypoints in
|
|
237
|
+
serverless code.
|
|
238
|
+
|
|
239
|
+
`Client.layerFetch` does no work until the first call, and the first call to an operation prepares
|
|
240
|
+
only that operation, so providing the Layer costs little. In a Cloudflare Worker, provide it per request and
|
|
240
241
|
pass the request's abort signal, so no request waits on work another request started:
|
|
241
242
|
|
|
242
243
|
```typescript
|
package/dist/agent/index.js
CHANGED
package/dist/agent/runtime.js
CHANGED
package/dist/agent/test.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
// src/client/core/bodySerializer.gen.ts
|
|
2
2
|
const jsonBodySerializer = { bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value) };
|
|
3
3
|
export { jsonBodySerializer };
|
|
4
|
-
|
|
5
|
-
//# sourceMappingURL=bodySerializer.gen.js.map
|
|
@@ -77,5 +77,3 @@ const serializeObjectParam = ({ allowReserved, explode, name, style, value, valu
|
|
|
77
77
|
return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
|
|
78
78
|
};
|
|
79
79
|
export { separatorArrayExplode, separatorArrayNoExplode, separatorObjectExplode, serializeArrayParam, serializeObjectParam, serializePrimitiveParam };
|
|
80
|
-
|
|
81
|
-
//# sourceMappingURL=pathSerializer.gen.js.map
|
package/dist/client/sdk.gen.js
CHANGED
|
@@ -16723,5 +16723,3 @@ Object.assign(TemplateRegistrations.list, { operation: "templateRegistrationsLis
|
|
|
16723
16723
|
Object.assign(TemplateRegistrations.submit, { operation: "templateRegistrationsSubmit" });
|
|
16724
16724
|
Object.assign(TemplateRegistrations.get, { operation: "templateRegistrationsGet" });
|
|
16725
16725
|
export { Accounts, Agents, Analytics, ApiKeys, ApprovalRequests, Attachments, Brands, Campaigns, ContactEvents, ContactGroups, Contacts, Conversations, CustomFields, Domains, Email, Events, Feedback, IntegrationCatalog, Integrations, Issues, Journeys, Logs, Mailboxes, Media, Messages, Namespaces, Newsletters, Operations, Organizations, PhoneNumbers, Policies, ScheduledMessages, Subscriptions, TemplateRegistrations, TemplateShareLinks, Templates, TopicForms, Topics, Webhooks, Whatsapp, WhatsappFlows, WhatsappSetupLinks, Whoami };
|
|
16726
|
-
|
|
16727
|
-
//# sourceMappingURL=sdk.gen.js.map
|
package/dist/effect/accounts.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { accountsCheck, accountsConnect, accountsGet, accountsList, accountsListContactConnections, accountsRemove } from "./descriptors/accounts.js";
|
|
3
|
+
import { AccountsCheckEndpoint, AccountsConnectEndpoint, AccountsGetEndpoint, AccountsListContactConnectionsEndpoint, AccountsListEndpoint, AccountsRemoveEndpoint } from "./generated/accounts.js";
|
|
4
|
+
import { operation } from "./internal/operation.js";
|
|
5
5
|
// src/effect/accounts.ts
|
|
6
6
|
var accounts_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
check: () => check,
|
|
@@ -11,13 +11,10 @@ var accounts_exports = /* @__PURE__ */ __exportAll({
|
|
|
11
11
|
listContactConnections: () => listContactConnections,
|
|
12
12
|
remove: () => remove
|
|
13
13
|
});
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const connect = /* @__PURE__ */ make("accountsConnect");
|
|
14
|
+
const listContactConnections = /* @__PURE__ */ operation("accountsListContactConnections", AccountsListContactConnectionsEndpoint, accountsListContactConnections);
|
|
15
|
+
const list = /* @__PURE__ */ operation("accountsList", AccountsListEndpoint, accountsList);
|
|
16
|
+
const get = /* @__PURE__ */ operation("accountsGet", AccountsGetEndpoint, accountsGet);
|
|
17
|
+
const remove = /* @__PURE__ */ operation("accountsRemove", AccountsRemoveEndpoint, accountsRemove);
|
|
18
|
+
const check = /* @__PURE__ */ operation("accountsCheck", AccountsCheckEndpoint, accountsCheck);
|
|
19
|
+
const connect = /* @__PURE__ */ operation("accountsConnect", AccountsConnectEndpoint, accountsConnect);
|
|
21
20
|
export { accounts_exports, check, connect, get, list, listContactConnections, remove };
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=accounts.js.map
|
package/dist/effect/agents.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { agentsContinueOnStandard, agentsCreate, agentsGet, agentsGetVersion, agentsList, agentsListModels, agentsListVersions, agentsPublish, agentsPublishVersion, agentsRemove, agentsReplaceDraft, agentsRerunTests, agentsUpdate } from "./descriptors/agents.js";
|
|
3
|
+
import { AgentsContinueOnStandardEndpoint, AgentsCreateEndpoint, AgentsGetEndpoint, AgentsGetVersionEndpoint, AgentsListEndpoint, AgentsListModelsEndpoint, AgentsListVersionsEndpoint, AgentsPublishEndpoint, AgentsPublishVersionEndpoint, AgentsRemoveEndpoint, AgentsReplaceDraftEndpoint, AgentsRerunTestsEndpoint, AgentsUpdateEndpoint } from "./generated/agents.js";
|
|
4
|
+
import { operation } from "./internal/operation.js";
|
|
5
5
|
// src/effect/agents.ts
|
|
6
6
|
var agents_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
continueOnStandard: () => continueOnStandard,
|
|
@@ -18,20 +18,17 @@ var agents_exports = /* @__PURE__ */ __exportAll({
|
|
|
18
18
|
rerunTests: () => rerunTests,
|
|
19
19
|
update: () => update
|
|
20
20
|
});
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const getVersion = /* @__PURE__ */ make("agentsGetVersion");
|
|
21
|
+
const rerunTests = /* @__PURE__ */ operation("agentsRerunTests", AgentsRerunTestsEndpoint, agentsRerunTests);
|
|
22
|
+
const list = /* @__PURE__ */ operation("agentsList", AgentsListEndpoint, agentsList);
|
|
23
|
+
const create = /* @__PURE__ */ operation("agentsCreate", AgentsCreateEndpoint, agentsCreate);
|
|
24
|
+
const listModels = /* @__PURE__ */ operation("agentsListModels", AgentsListModelsEndpoint, agentsListModels);
|
|
25
|
+
const get = /* @__PURE__ */ operation("agentsGet", AgentsGetEndpoint, agentsGet);
|
|
26
|
+
const update = /* @__PURE__ */ operation("agentsUpdate", AgentsUpdateEndpoint, agentsUpdate);
|
|
27
|
+
const remove = /* @__PURE__ */ operation("agentsRemove", AgentsRemoveEndpoint, agentsRemove);
|
|
28
|
+
const replaceDraft = /* @__PURE__ */ operation("agentsReplaceDraft", AgentsReplaceDraftEndpoint, agentsReplaceDraft);
|
|
29
|
+
const publish = /* @__PURE__ */ operation("agentsPublish", AgentsPublishEndpoint, agentsPublish);
|
|
30
|
+
const publishVersion = /* @__PURE__ */ operation("agentsPublishVersion", AgentsPublishVersionEndpoint, agentsPublishVersion);
|
|
31
|
+
const listVersions = /* @__PURE__ */ operation("agentsListVersions", AgentsListVersionsEndpoint, agentsListVersions);
|
|
32
|
+
const continueOnStandard = /* @__PURE__ */ operation("agentsContinueOnStandard", AgentsContinueOnStandardEndpoint, agentsContinueOnStandard);
|
|
33
|
+
const getVersion = /* @__PURE__ */ operation("agentsGetVersion", AgentsGetVersionEndpoint, agentsGetVersion);
|
|
35
34
|
export { agents_exports, continueOnStandard, create, get, getVersion, list, listModels, listVersions, publish, publishVersion, remove, replaceDraft, rerunTests, update };
|
|
36
|
-
|
|
37
|
-
//# sourceMappingURL=agents.js.map
|
package/dist/effect/analytics.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { analyticsExportData, analyticsGetChannelStats, analyticsGetDeliveryMetrics, analyticsGetHourlyDistribution, analyticsGetStats, analyticsGetTopContacts } from "./descriptors/analytics.js";
|
|
3
|
+
import { AnalyticsExportDataEndpoint, AnalyticsGetChannelStatsEndpoint, AnalyticsGetDeliveryMetricsEndpoint, AnalyticsGetHourlyDistributionEndpoint, AnalyticsGetStatsEndpoint, AnalyticsGetTopContactsEndpoint } from "./generated/analytics.js";
|
|
4
|
+
import { operation } from "./internal/operation.js";
|
|
5
5
|
// src/effect/analytics.ts
|
|
6
6
|
var analytics_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
exportData: () => exportData,
|
|
@@ -11,13 +11,10 @@ var analytics_exports = /* @__PURE__ */ __exportAll({
|
|
|
11
11
|
getStats: () => getStats,
|
|
12
12
|
getTopContacts: () => getTopContacts
|
|
13
13
|
});
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const exportData = /* @__PURE__ */ make("analyticsExportData");
|
|
14
|
+
const getStats = /* @__PURE__ */ operation("analyticsGetStats", AnalyticsGetStatsEndpoint, analyticsGetStats);
|
|
15
|
+
const getChannelStats = /* @__PURE__ */ operation("analyticsGetChannelStats", AnalyticsGetChannelStatsEndpoint, analyticsGetChannelStats);
|
|
16
|
+
const getTopContacts = /* @__PURE__ */ operation("analyticsGetTopContacts", AnalyticsGetTopContactsEndpoint, analyticsGetTopContacts);
|
|
17
|
+
const getHourlyDistribution = /* @__PURE__ */ operation("analyticsGetHourlyDistribution", AnalyticsGetHourlyDistributionEndpoint, analyticsGetHourlyDistribution);
|
|
18
|
+
const getDeliveryMetrics = /* @__PURE__ */ operation("analyticsGetDeliveryMetrics", AnalyticsGetDeliveryMetricsEndpoint, analyticsGetDeliveryMetrics);
|
|
19
|
+
const exportData = /* @__PURE__ */ operation("analyticsExportData", AnalyticsExportDataEndpoint, analyticsExportData);
|
|
21
20
|
export { analytics_exports, exportData, getChannelStats, getDeliveryMetrics, getHourlyDistribution, getStats, getTopContacts };
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=analytics.js.map
|
package/dist/effect/api-keys.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { apiKeysCreate, apiKeysGet, apiKeysGetActivity, apiKeysGetStats, apiKeysList, apiKeysRevoke, apiKeysRotate, apiKeysUpdate } from "./descriptors/api-keys.js";
|
|
3
|
+
import { ApiKeysCreateEndpoint, ApiKeysCreateRequestJson, ApiKeysGetActivityEndpoint, ApiKeysGetEndpoint, ApiKeysGetStatsEndpoint, ApiKeysListEndpoint, ApiKeysRevokeEndpoint, ApiKeysRotateEndpoint, ApiKeysUpdateEndpoint, ApiKeysUpdateRequestJson } from "./generated/api-keys.js";
|
|
4
|
+
import { operation } from "./internal/operation.js";
|
|
5
5
|
// src/effect/api-keys.ts
|
|
6
6
|
var api_keys_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
CreatePayload: () => ApiKeysCreateRequestJson,
|
|
@@ -15,15 +15,12 @@ var api_keys_exports = /* @__PURE__ */ __exportAll({
|
|
|
15
15
|
rotate: () => rotate,
|
|
16
16
|
update: () => update
|
|
17
17
|
});
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const getActivity = /* @__PURE__ */ make("apiKeysGetActivity");
|
|
18
|
+
const create = /* @__PURE__ */ operation("apiKeysCreate", ApiKeysCreateEndpoint, apiKeysCreate);
|
|
19
|
+
const list = /* @__PURE__ */ operation("apiKeysList", ApiKeysListEndpoint, apiKeysList);
|
|
20
|
+
const get = /* @__PURE__ */ operation("apiKeysGet", ApiKeysGetEndpoint, apiKeysGet);
|
|
21
|
+
const update = /* @__PURE__ */ operation("apiKeysUpdate", ApiKeysUpdateEndpoint, apiKeysUpdate);
|
|
22
|
+
const revoke = /* @__PURE__ */ operation("apiKeysRevoke", ApiKeysRevokeEndpoint, apiKeysRevoke);
|
|
23
|
+
const rotate = /* @__PURE__ */ operation("apiKeysRotate", ApiKeysRotateEndpoint, apiKeysRotate);
|
|
24
|
+
const getStats = /* @__PURE__ */ operation("apiKeysGetStats", ApiKeysGetStatsEndpoint, apiKeysGetStats);
|
|
25
|
+
const getActivity = /* @__PURE__ */ operation("apiKeysGetActivity", ApiKeysGetActivityEndpoint, apiKeysGetActivity);
|
|
27
26
|
export { ApiKeysCreateRequestJson as CreatePayload, ApiKeysUpdateRequestJson as UpdatePayload, api_keys_exports, create, get, getActivity, getStats, list, revoke, rotate, update };
|
|
28
|
-
|
|
29
|
-
//# sourceMappingURL=api-keys.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { approvalRequestsApprove, approvalRequestsCreate, approvalRequestsGet, approvalRequestsReject } from "./descriptors/approval-requests.js";
|
|
3
|
+
import { ApprovalRequestsApproveEndpoint, ApprovalRequestsCreateEndpoint, ApprovalRequestsGetEndpoint, ApprovalRequestsRejectEndpoint } from "./generated/approval-requests.js";
|
|
4
|
+
import { operation } from "./internal/operation.js";
|
|
5
5
|
// src/effect/approval-requests.ts
|
|
6
6
|
var approval_requests_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
approve: () => approve,
|
|
@@ -9,11 +9,8 @@ var approval_requests_exports = /* @__PURE__ */ __exportAll({
|
|
|
9
9
|
get: () => get,
|
|
10
10
|
reject: () => reject
|
|
11
11
|
});
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const reject = /* @__PURE__ */ make("approvalRequestsReject");
|
|
12
|
+
const create = /* @__PURE__ */ operation("approvalRequestsCreate", ApprovalRequestsCreateEndpoint, approvalRequestsCreate);
|
|
13
|
+
const get = /* @__PURE__ */ operation("approvalRequestsGet", ApprovalRequestsGetEndpoint, approvalRequestsGet);
|
|
14
|
+
const approve = /* @__PURE__ */ operation("approvalRequestsApprove", ApprovalRequestsApproveEndpoint, approvalRequestsApprove);
|
|
15
|
+
const reject = /* @__PURE__ */ operation("approvalRequestsReject", ApprovalRequestsRejectEndpoint, approvalRequestsReject);
|
|
17
16
|
export { approval_requests_exports, approve, create, get, reject };
|
|
18
|
-
|
|
19
|
-
//# sourceMappingURL=approval-requests.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { attachmentsDownloadUrl, attachmentsGetById, attachmentsList, attachmentsRemove } from "./descriptors/attachments.js";
|
|
3
|
+
import { AttachmentsDownloadUrlEndpoint, AttachmentsGetByIdEndpoint, AttachmentsListEndpoint, AttachmentsRemoveEndpoint } from "./generated/attachments.js";
|
|
4
|
+
import { operation } from "./internal/operation.js";
|
|
5
5
|
// src/effect/attachments.ts
|
|
6
6
|
var attachments_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
downloadUrl: () => downloadUrl,
|
|
@@ -9,11 +9,8 @@ var attachments_exports = /* @__PURE__ */ __exportAll({
|
|
|
9
9
|
list: () => list,
|
|
10
10
|
remove: () => remove
|
|
11
11
|
});
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const downloadUrl = /* @__PURE__ */ make("attachmentsDownloadUrl");
|
|
12
|
+
const getById = /* @__PURE__ */ operation("attachmentsGetById", AttachmentsGetByIdEndpoint, attachmentsGetById);
|
|
13
|
+
const remove = /* @__PURE__ */ operation("attachmentsRemove", AttachmentsRemoveEndpoint, attachmentsRemove);
|
|
14
|
+
const list = /* @__PURE__ */ operation("attachmentsList", AttachmentsListEndpoint, attachmentsList);
|
|
15
|
+
const downloadUrl = /* @__PURE__ */ operation("attachmentsDownloadUrl", AttachmentsDownloadUrlEndpoint, attachmentsDownloadUrl);
|
|
17
16
|
export { attachments_exports, downloadUrl, getById, list, remove };
|
|
18
|
-
|
|
19
|
-
//# sourceMappingURL=attachments.js.map
|
package/dist/effect/brands.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { brandsCreate, brandsGet, brandsList, brandsRemove, brandsSetDefault, brandsUpdate } from "./descriptors/brands.js";
|
|
3
|
+
import { BrandsCreateEndpoint, BrandsGetEndpoint, BrandsListEndpoint, BrandsRemoveEndpoint, BrandsSetDefaultEndpoint, BrandsUpdateEndpoint } from "./generated/brands.js";
|
|
4
|
+
import { operation } from "./internal/operation.js";
|
|
5
5
|
import { CreateBrand, UpdateBrand } from "./generated/shared.js";
|
|
6
6
|
// src/effect/brands.ts
|
|
7
7
|
var brands_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -14,13 +14,10 @@ var brands_exports = /* @__PURE__ */ __exportAll({
|
|
|
14
14
|
setDefault: () => setDefault,
|
|
15
15
|
update: () => update
|
|
16
16
|
});
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const setDefault = /* @__PURE__ */ make("brandsSetDefault");
|
|
17
|
+
const list = /* @__PURE__ */ operation("brandsList", BrandsListEndpoint, brandsList);
|
|
18
|
+
const create = /* @__PURE__ */ operation("brandsCreate", BrandsCreateEndpoint, brandsCreate);
|
|
19
|
+
const get = /* @__PURE__ */ operation("brandsGet", BrandsGetEndpoint, brandsGet);
|
|
20
|
+
const update = /* @__PURE__ */ operation("brandsUpdate", BrandsUpdateEndpoint, brandsUpdate);
|
|
21
|
+
const remove = /* @__PURE__ */ operation("brandsRemove", BrandsRemoveEndpoint, brandsRemove);
|
|
22
|
+
const setDefault = /* @__PURE__ */ operation("brandsSetDefault", BrandsSetDefaultEndpoint, brandsSetDefault);
|
|
24
23
|
export { CreateBrand as CreatePayload, UpdateBrand as UpdatePayload, brands_exports, create, get, list, remove, setDefault, update };
|
|
25
|
-
|
|
26
|
-
//# sourceMappingURL=brands.js.map
|
package/dist/effect/campaigns.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { campaignsArchive, campaignsCancelRun, campaignsCreate, campaignsGet, campaignsGetRun, campaignsGetRunReport, campaignsList, campaignsListRecipients, campaignsListRuns, campaignsPauseRun, campaignsPreview, campaignsResumeRun, campaignsScheduleRun, campaignsSendTest, campaignsUpdate } from "./descriptors/campaigns.js";
|
|
3
|
+
import { CampaignsArchiveEndpoint, CampaignsCancelRunEndpoint, CampaignsCreateEndpoint, CampaignsGetEndpoint, CampaignsGetRunEndpoint, CampaignsGetRunReportEndpoint, CampaignsListEndpoint, CampaignsListRecipientsEndpoint, CampaignsListRunsEndpoint, CampaignsPauseRunEndpoint, CampaignsPreviewEndpoint, CampaignsResumeRunEndpoint, CampaignsScheduleRunEndpoint, CampaignsSendTestEndpoint, CampaignsUpdateEndpoint } from "./generated/campaigns.js";
|
|
4
|
+
import { operation } from "./internal/operation.js";
|
|
5
5
|
// src/effect/campaigns.ts
|
|
6
6
|
var campaigns_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
archive: () => archive,
|
|
@@ -20,22 +20,19 @@ var campaigns_exports = /* @__PURE__ */ __exportAll({
|
|
|
20
20
|
sendTest: () => sendTest,
|
|
21
21
|
update: () => update
|
|
22
22
|
});
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const listRecipients = /* @__PURE__ */ make("campaignsListRecipients");
|
|
23
|
+
const preview = /* @__PURE__ */ operation("campaignsPreview", CampaignsPreviewEndpoint, campaignsPreview);
|
|
24
|
+
const sendTest = /* @__PURE__ */ operation("campaignsSendTest", CampaignsSendTestEndpoint, campaignsSendTest);
|
|
25
|
+
const create = /* @__PURE__ */ operation("campaignsCreate", CampaignsCreateEndpoint, campaignsCreate);
|
|
26
|
+
const list = /* @__PURE__ */ operation("campaignsList", CampaignsListEndpoint, campaignsList);
|
|
27
|
+
const get = /* @__PURE__ */ operation("campaignsGet", CampaignsGetEndpoint, campaignsGet);
|
|
28
|
+
const update = /* @__PURE__ */ operation("campaignsUpdate", CampaignsUpdateEndpoint, campaignsUpdate);
|
|
29
|
+
const archive = /* @__PURE__ */ operation("campaignsArchive", CampaignsArchiveEndpoint, campaignsArchive);
|
|
30
|
+
const scheduleRun = /* @__PURE__ */ operation("campaignsScheduleRun", CampaignsScheduleRunEndpoint, campaignsScheduleRun);
|
|
31
|
+
const listRuns = /* @__PURE__ */ operation("campaignsListRuns", CampaignsListRunsEndpoint, campaignsListRuns);
|
|
32
|
+
const getRun = /* @__PURE__ */ operation("campaignsGetRun", CampaignsGetRunEndpoint, campaignsGetRun);
|
|
33
|
+
const getRunReport = /* @__PURE__ */ operation("campaignsGetRunReport", CampaignsGetRunReportEndpoint, campaignsGetRunReport);
|
|
34
|
+
const pauseRun = /* @__PURE__ */ operation("campaignsPauseRun", CampaignsPauseRunEndpoint, campaignsPauseRun);
|
|
35
|
+
const resumeRun = /* @__PURE__ */ operation("campaignsResumeRun", CampaignsResumeRunEndpoint, campaignsResumeRun);
|
|
36
|
+
const cancelRun = /* @__PURE__ */ operation("campaignsCancelRun", CampaignsCancelRunEndpoint, campaignsCancelRun);
|
|
37
|
+
const listRecipients = /* @__PURE__ */ operation("campaignsListRecipients", CampaignsListRecipientsEndpoint, campaignsListRecipients);
|
|
39
38
|
export { archive, campaigns_exports, cancelRun, create, get, getRun, getRunReport, list, listRecipients, listRuns, pauseRun, preview, resumeRun, scheduleRun, sendTest, update };
|
|
40
|
-
|
|
41
|
-
//# sourceMappingURL=campaigns.js.map
|
|
@@ -84,5 +84,3 @@ const catchBillingError = (handler) => catchCategory("billing", handler);
|
|
|
84
84
|
*/
|
|
85
85
|
const catchTransient = (handler) => (effect) => Effect.catchIf(effect, isTransient, handler);
|
|
86
86
|
export { catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError };
|
|
87
|
-
|
|
88
|
-
//# sourceMappingURL=categories.js.map
|
package/dist/effect/client.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { contactGroupsAddMembers, contactGroupsCreate, contactGroupsEvaluateDynamic, contactGroupsGetById, contactGroupsGetMembers, contactGroupsList, contactGroupsPreview, contactGroupsRemove, contactGroupsRemoveMembers, contactGroupsUpdate } from "./descriptors/contact-groups.js";
|
|
3
|
+
import { ContactGroupsAddMembersEndpoint, ContactGroupsCreateEndpoint, ContactGroupsEvaluateDynamicEndpoint, ContactGroupsGetByIdEndpoint, ContactGroupsGetMembersEndpoint, ContactGroupsListEndpoint, ContactGroupsPreviewEndpoint, ContactGroupsRemoveEndpoint, ContactGroupsRemoveMembersEndpoint, ContactGroupsUpdateEndpoint } from "./generated/contact-groups.js";
|
|
4
|
+
import { operation } from "./internal/operation.js";
|
|
5
5
|
// src/effect/contact-groups.ts
|
|
6
6
|
var contact_groups_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
addMembers: () => addMembers,
|
|
@@ -15,17 +15,14 @@ var contact_groups_exports = /* @__PURE__ */ __exportAll({
|
|
|
15
15
|
removeMembers: () => removeMembers,
|
|
16
16
|
update: () => update
|
|
17
17
|
});
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const preview = /* @__PURE__ */ make("contactGroupsPreview");
|
|
18
|
+
const list = /* @__PURE__ */ operation("contactGroupsList", ContactGroupsListEndpoint, contactGroupsList);
|
|
19
|
+
const create = /* @__PURE__ */ operation("contactGroupsCreate", ContactGroupsCreateEndpoint, contactGroupsCreate);
|
|
20
|
+
const getById = /* @__PURE__ */ operation("contactGroupsGetById", ContactGroupsGetByIdEndpoint, contactGroupsGetById);
|
|
21
|
+
const update = /* @__PURE__ */ operation("contactGroupsUpdate", ContactGroupsUpdateEndpoint, contactGroupsUpdate);
|
|
22
|
+
const remove = /* @__PURE__ */ operation("contactGroupsRemove", ContactGroupsRemoveEndpoint, contactGroupsRemove);
|
|
23
|
+
const addMembers = /* @__PURE__ */ operation("contactGroupsAddMembers", ContactGroupsAddMembersEndpoint, contactGroupsAddMembers);
|
|
24
|
+
const removeMembers = /* @__PURE__ */ operation("contactGroupsRemoveMembers", ContactGroupsRemoveMembersEndpoint, contactGroupsRemoveMembers);
|
|
25
|
+
const getMembers = /* @__PURE__ */ operation("contactGroupsGetMembers", ContactGroupsGetMembersEndpoint, contactGroupsGetMembers);
|
|
26
|
+
const evaluateDynamic = /* @__PURE__ */ operation("contactGroupsEvaluateDynamic", ContactGroupsEvaluateDynamicEndpoint, contactGroupsEvaluateDynamic);
|
|
27
|
+
const preview = /* @__PURE__ */ operation("contactGroupsPreview", ContactGroupsPreviewEndpoint, contactGroupsPreview);
|
|
29
28
|
export { addMembers, contact_groups_exports, create, evaluateDynamic, getById, getMembers, list, preview, remove, removeMembers, update };
|
|
30
|
-
|
|
31
|
-
//# sourceMappingURL=contact-groups.js.map
|
package/dist/effect/contacts.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { contactEventsListEvents, contactsAddIdentity, contactsAddTags, contactsBulkDelete, contactsBulkUpdateStatus, contactsBulkUpdateTags, contactsCreate, contactsExport, contactsFind, contactsFindOrCreate, contactsGet, contactsGetActivityTimeline, contactsGetEngagement, contactsGetGroupMemberships, contactsGetImportJob, contactsList, contactsMerge, contactsMergeByConnection, contactsPlanImport, contactsRemove, contactsRemoveIdentity, contactsRemoveTags, contactsSetConsent, contactsStartImport, contactsUpdate } from "./descriptors/contacts.js";
|
|
3
|
+
import { ContactEventsListEventsEndpoint } from "./generated/contact-events.js";
|
|
4
|
+
import { ContactsAddIdentityEndpoint, ContactsAddTagsEndpoint, ContactsBulkDeleteEndpoint, ContactsBulkUpdateStatusEndpoint, ContactsBulkUpdateTagsEndpoint, ContactsCreateEndpoint, ContactsExportEndpoint, ContactsFindEndpoint, ContactsFindOrCreateEndpoint, ContactsGetActivityTimelineEndpoint, ContactsGetEndpoint, ContactsGetEngagementEndpoint, ContactsGetGroupMembershipsEndpoint, ContactsGetImportJobEndpoint, ContactsListEndpoint, ContactsMergeByConnectionEndpoint, ContactsMergeEndpoint, ContactsPlanImportEndpoint, ContactsRemoveEndpoint, ContactsRemoveIdentityEndpoint, ContactsRemoveTagsEndpoint, ContactsSetConsentEndpoint, ContactsStartImportEndpoint, ContactsUpdateEndpoint } from "./generated/contacts.js";
|
|
5
|
+
import { operation } from "./internal/operation.js";
|
|
6
6
|
// src/effect/contacts.ts
|
|
7
7
|
var contacts_exports = /* @__PURE__ */ __exportAll({
|
|
8
8
|
addIdentity: () => addIdentity,
|
|
@@ -31,32 +31,29 @@ var contacts_exports = /* @__PURE__ */ __exportAll({
|
|
|
31
31
|
startImport: () => startImport,
|
|
32
32
|
update: () => update
|
|
33
33
|
});
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const
|
|
52
|
-
const
|
|
53
|
-
const
|
|
54
|
-
const
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
const
|
|
58
|
-
const
|
|
59
|
-
const listEvents = /* @__PURE__ */ forGroup(ContactEventsGroup, contactsOperations)("contactEventsListEvents");
|
|
34
|
+
const list = /* @__PURE__ */ operation("contactsList", ContactsListEndpoint, contactsList);
|
|
35
|
+
const create = /* @__PURE__ */ operation("contactsCreate", ContactsCreateEndpoint, contactsCreate);
|
|
36
|
+
const find = /* @__PURE__ */ operation("contactsFind", ContactsFindEndpoint, contactsFind);
|
|
37
|
+
const findOrCreate = /* @__PURE__ */ operation("contactsFindOrCreate", ContactsFindOrCreateEndpoint, contactsFindOrCreate);
|
|
38
|
+
const get = /* @__PURE__ */ operation("contactsGet", ContactsGetEndpoint, contactsGet);
|
|
39
|
+
const update = /* @__PURE__ */ operation("contactsUpdate", ContactsUpdateEndpoint, contactsUpdate);
|
|
40
|
+
const remove = /* @__PURE__ */ operation("contactsRemove", ContactsRemoveEndpoint, contactsRemove);
|
|
41
|
+
const merge = /* @__PURE__ */ operation("contactsMerge", ContactsMergeEndpoint, contactsMerge);
|
|
42
|
+
const mergeByConnection = /* @__PURE__ */ operation("contactsMergeByConnection", ContactsMergeByConnectionEndpoint, contactsMergeByConnection);
|
|
43
|
+
const addIdentity = /* @__PURE__ */ operation("contactsAddIdentity", ContactsAddIdentityEndpoint, contactsAddIdentity);
|
|
44
|
+
const removeIdentity = /* @__PURE__ */ operation("contactsRemoveIdentity", ContactsRemoveIdentityEndpoint, contactsRemoveIdentity);
|
|
45
|
+
const setConsent = /* @__PURE__ */ operation("contactsSetConsent", ContactsSetConsentEndpoint, contactsSetConsent);
|
|
46
|
+
const addTags = /* @__PURE__ */ operation("contactsAddTags", ContactsAddTagsEndpoint, contactsAddTags);
|
|
47
|
+
const removeTags = /* @__PURE__ */ operation("contactsRemoveTags", ContactsRemoveTagsEndpoint, contactsRemoveTags);
|
|
48
|
+
const getEngagement = /* @__PURE__ */ operation("contactsGetEngagement", ContactsGetEngagementEndpoint, contactsGetEngagement);
|
|
49
|
+
const planImport = /* @__PURE__ */ operation("contactsPlanImport", ContactsPlanImportEndpoint, contactsPlanImport);
|
|
50
|
+
const startImport = /* @__PURE__ */ operation("contactsStartImport", ContactsStartImportEndpoint, contactsStartImport);
|
|
51
|
+
const getImportJob = /* @__PURE__ */ operation("contactsGetImportJob", ContactsGetImportJobEndpoint, contactsGetImportJob);
|
|
52
|
+
const bulkDelete = /* @__PURE__ */ operation("contactsBulkDelete", ContactsBulkDeleteEndpoint, contactsBulkDelete);
|
|
53
|
+
const bulkUpdateTags = /* @__PURE__ */ operation("contactsBulkUpdateTags", ContactsBulkUpdateTagsEndpoint, contactsBulkUpdateTags);
|
|
54
|
+
const bulkUpdateStatus = /* @__PURE__ */ operation("contactsBulkUpdateStatus", ContactsBulkUpdateStatusEndpoint, contactsBulkUpdateStatus);
|
|
55
|
+
const exportContacts = /* @__PURE__ */ operation("contactsExport", ContactsExportEndpoint, contactsExport);
|
|
56
|
+
const getActivityTimeline = /* @__PURE__ */ operation("contactsGetActivityTimeline", ContactsGetActivityTimelineEndpoint, contactsGetActivityTimeline);
|
|
57
|
+
const getGroupMemberships = /* @__PURE__ */ operation("contactsGetGroupMemberships", ContactsGetGroupMembershipsEndpoint, contactsGetGroupMemberships);
|
|
58
|
+
const listEvents = /* @__PURE__ */ operation("contactEventsListEvents", ContactEventsListEventsEndpoint, contactEventsListEvents);
|
|
60
59
|
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 };
|
|
61
|
-
|
|
62
|
-
//# sourceMappingURL=contacts.js.map
|