samva 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +5 -0
- package/README.md +16 -3
- package/dist/{rolldown-runtime-D7D4PA-g.js → _virtual/_rolldown/runtime.js} +1 -1
- package/dist/client/client/client.gen.js +174 -0
- package/dist/client/client/utils.gen.js +177 -0
- package/dist/client/client.gen.js +8 -0
- package/dist/client/core/auth.gen.js +12 -0
- package/dist/client/core/bodySerializer.gen.js +6 -0
- package/dist/client/core/params.gen.js +77 -0
- package/dist/client/core/pathSerializer.gen.js +82 -0
- package/dist/client/core/serverSentEvents.gen.js +96 -0
- package/dist/client/core/utils.gen.js +78 -0
- package/dist/{promises---Kbh-7z.js → client/sdk.gen.js} +4 -2293
- package/dist/client-attribution.js +9 -0
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +23 -2
- package/dist/effect/api-keys.d.ts +12 -12
- package/dist/effect/api-keys.js +29 -2
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +19 -2
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/brands.js +26 -3
- package/dist/effect/campaigns.d.ts +18 -18
- package/dist/effect/campaigns.js +35 -2
- package/dist/effect/categories.d.ts +2 -2
- package/dist/effect/categories.js +95 -1
- package/dist/effect/client.js +3 -3
- package/dist/effect/contact-groups.d.ts +14 -14
- package/dist/effect/contact-groups.js +31 -2
- package/dist/effect/contacts.d.ts +28 -28
- package/dist/effect/contacts.js +52 -2
- package/dist/effect/conversations.d.ts +17 -17
- package/dist/effect/conversations.js +37 -2
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +19 -2
- package/dist/effect/email.d.ts +75 -75
- package/dist/effect/email.js +140 -2
- package/dist/effect/errors.d.ts +2 -0
- package/dist/effect/errors.js +3 -0
- package/dist/effect/events.d.ts +2 -2
- package/dist/effect/events.js +17 -3
- package/dist/effect/extension-installations.d.ts +11 -11
- package/dist/effect/extension-installations.js +29 -2
- package/dist/effect/extensions.d.ts +9 -9
- package/dist/effect/extensions.js +21 -2
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +14 -3
- package/dist/{analytics-CaqPRsry.js → effect/generated/analytics.js} +4 -23
- package/dist/{api-keys-Ce1Y4_Ip.js → effect/generated/api-keys.js} +4 -29
- package/dist/{attachments-DYqVIraC.js → effect/generated/attachments.js} +3 -18
- package/dist/{brands-ZwuOGIWO.js → effect/generated/brands.js} +5 -25
- package/dist/{campaigns-DZlz1E9E.js → effect/generated/campaigns.js} +4 -35
- package/dist/effect/generated/contact-events.js +37 -0
- package/dist/{contact-groups-BLbFXnjq.js → effect/generated/contact-groups.js} +3 -30
- package/dist/{contacts-BbsoXXB4.js → effect/generated/contacts.js} +3 -81
- package/dist/{conversations-_sRHueML.js → effect/generated/conversations.js} +3 -36
- package/dist/{custom-fields-BHWbwlKn.js → effect/generated/custom-fields.js} +5 -19
- package/dist/{email-R0NAA9PW.js → effect/generated/email.js} +995 -1146
- package/dist/{events-CxbTUHYT.js → effect/generated/events.js} +3 -15
- package/dist/{extension-installations-CD94LPmk.js → effect/generated/extension-installations.js} +4 -29
- package/dist/{extensions-BKyNQLvu.js → effect/generated/extensions.js} +3 -20
- package/dist/{feedback-Bpa09JOS.js → effect/generated/feedback.js} +3 -12
- package/dist/{journeys-CARo_BJT.js → effect/generated/journeys.js} +3 -38
- package/dist/{mailboxes-BRDn7BIK.js → effect/generated/mailboxes.js} +793 -951
- package/dist/{media-VrrtNnft.js → effect/generated/media.js} +3 -3
- package/dist/effect/generated/messages.js +671 -0
- package/dist/{namespaces-CcvEbG-y.js → effect/generated/namespaces.js} +3 -20
- package/dist/{operations-CmB3FHwf.js → effect/generated/operations.js} +3 -16
- package/dist/{organizations-A-plufWc.js → effect/generated/organizations.js} +3 -24
- package/dist/{scheduled-messages-DkKZRRaN.js → effect/generated/scheduled-messages.js} +4 -21
- package/dist/effect/generated/shared.js +1053 -0
- package/dist/{subscriptions-DEXYtMXg.js → effect/generated/subscriptions.js} +3 -9
- package/dist/{templates-DZomxsG7.js → effect/generated/templates.js} +3 -78
- package/dist/{unsubscribe-groups-Iqk4Isf9.js → effect/generated/unsubscribe-groups.js} +5 -29
- package/dist/{webhooks-CPXuu8Xf.js → effect/generated/webhooks.js} +4 -34
- package/dist/{whoami-Ccz0jwlt.js → effect/generated/whoami.js} +5 -10
- package/dist/{categories-CA4XIQAb.js → effect/generated-metadata.js} +2 -94
- package/dist/effect/index.d.ts +1 -2
- package/dist/effect/index.js +32 -32
- package/dist/effect/internal/client.js +69 -0
- package/dist/effect/internal/email-sender.js +21 -0
- package/dist/effect/internal/mailbox-events.js +33 -0
- package/dist/effect/internal/operation.js +116 -0
- package/dist/effect/internal/send.js +56 -0
- package/dist/effect/journeys.d.ts +18 -18
- package/dist/effect/journeys.js +39 -2
- package/dist/effect/mailboxes.d.ts +191 -191
- package/dist/effect/mailboxes.js +135 -3
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +10 -10
- package/dist/effect/messages.d.ts +14 -14
- package/dist/effect/messages.js +15 -14
- package/dist/effect/namespaces.d.ts +7 -7
- package/dist/effect/namespaces.js +21 -2
- package/dist/effect/operations.d.ts +5 -5
- package/dist/effect/operations.js +17 -2
- package/dist/effect/organizations.d.ts +7 -7
- package/dist/effect/organizations.js +25 -2
- package/dist/effect/pagination.js +39 -0
- package/dist/effect/retry.js +3 -3
- package/dist/{runtime-P0l1_2-C.js → effect/runtime.js} +2 -2
- package/dist/effect/scheduled-messages.d.ts +7 -7
- package/dist/effect/scheduled-messages.js +21 -2
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +10 -2
- package/dist/effect/templates.d.ts +39 -39
- package/dist/effect/templates.js +80 -3
- package/dist/effect/unsubscribe-groups.d.ts +11 -11
- package/dist/effect/unsubscribe-groups.js +29 -2
- package/dist/effect/webhooks.d.ts +14 -14
- package/dist/effect/webhooks.js +35 -3
- package/dist/effect/whoami.d.ts +9 -9
- package/dist/effect/whoami.js +10 -2
- package/dist/index.js +4 -3
- package/dist/{inline-attachments-Bi1hDltp.js → inline-attachments.js} +13 -7
- package/dist/{mailbox-events-VKR4f3qq.js → mailbox-events.js} +2 -2
- package/dist/{normalize-B79uJIeb.js → normalize.js} +2 -2
- package/dist/package.js +6 -0
- package/dist/promises/errors.gen.js +1340 -0
- package/dist/promises/index.js +288 -3
- package/dist/{operation-n_IYgNVK.js → service-map.js} +2 -148
- package/package.json +6 -2
- package/dist/client-DOzUrdTE.js +0 -1115
- package/dist/send-Bxc0XfGE.js +0 -722
package/dist/effect/campaigns.js
CHANGED
|
@@ -1,2 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { CampaignsGroup } from "./generated/campaigns.js";
|
|
4
|
+
//#region src/effect/campaigns.ts
|
|
5
|
+
var campaigns_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
archive: () => archive,
|
|
7
|
+
cancelRun: () => cancelRun,
|
|
8
|
+
create: () => create,
|
|
9
|
+
get: () => get,
|
|
10
|
+
getRun: () => getRun,
|
|
11
|
+
list: () => list,
|
|
12
|
+
listRecipients: () => listRecipients,
|
|
13
|
+
listRuns: () => listRuns,
|
|
14
|
+
pauseRun: () => pauseRun,
|
|
15
|
+
resumeRun: () => resumeRun,
|
|
16
|
+
scheduleRun: () => scheduleRun,
|
|
17
|
+
update: () => update
|
|
18
|
+
});
|
|
19
|
+
const make = /* @__PURE__ */ forGroup(CampaignsGroup);
|
|
20
|
+
const list = /* @__PURE__ */ make("campaignsList");
|
|
21
|
+
const create = /* @__PURE__ */ make("campaignsCreate");
|
|
22
|
+
const get = /* @__PURE__ */ make("campaignsGet");
|
|
23
|
+
const archive = /* @__PURE__ */ make("campaignsArchive");
|
|
24
|
+
const update = /* @__PURE__ */ make("campaignsUpdate");
|
|
25
|
+
const listRuns = /* @__PURE__ */ make("campaignsListRuns");
|
|
26
|
+
const scheduleRun = /* @__PURE__ */ make("campaignsScheduleRun");
|
|
27
|
+
const getRun = /* @__PURE__ */ make("campaignsGetRun");
|
|
28
|
+
const pauseRun = /* @__PURE__ */ make("campaignsPauseRun");
|
|
29
|
+
const resumeRun = /* @__PURE__ */ make("campaignsResumeRun");
|
|
30
|
+
const cancelRun = /* @__PURE__ */ make("campaignsCancelRun");
|
|
31
|
+
const listRecipients = /* @__PURE__ */ make("campaignsListRecipients");
|
|
32
|
+
//#endregion
|
|
33
|
+
export { archive, campaigns_exports, cancelRun, create, get, getRun, list, listRecipients, listRuns, pauseRun, resumeRun, scheduleRun, update };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=campaigns.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Semantic error-category helpers for the Effect SDK.
|
|
3
3
|
*
|
|
4
4
|
* Every operation's error channel carries the server's real tagged errors
|
|
5
|
-
* ({@link import("./
|
|
5
|
+
* ({@link import("./errors").ConflictError} …). These helpers let callers catch
|
|
6
6
|
* or test by *category* — auth, validation, throttling, transient … — without
|
|
7
7
|
* enumerating tags, and cover the raw transport/decode errors too. The category
|
|
8
8
|
* assignments are generated from the OpenAPI category extensions.
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
20
|
import { Effect } from "effect";
|
|
21
|
-
import type { BillingProviderError, ConflictError, EmailChannelError, ExternalServiceError, ForbiddenError, GatewayTimeoutError, InternalError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, UnauthorizedError, ValidationError, DeliveryUnavailableError } from "./
|
|
21
|
+
import type { BillingProviderError, ConflictError, EmailChannelError, ExternalServiceError, ForbiddenError, GatewayTimeoutError, InternalError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, UnauthorizedError, ValidationError, DeliveryUnavailableError } from "./errors";
|
|
22
22
|
export type ErrorCategory = "auth" | "validation" | "notFound" | "conflict" | "throttling" | "billing" | "transient";
|
|
23
23
|
export declare const categoriesOf: (error: unknown) => ReadonlyArray<ErrorCategory>;
|
|
24
24
|
export declare const hasCategory: (error: unknown, category: ErrorCategory) => boolean;
|
|
@@ -1,2 +1,96 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SamvaErrorMetadata } from "./generated-metadata.js";
|
|
2
|
+
import { Effect } from "effect";
|
|
3
|
+
import * as Predicate$1 from "effect/Predicate";
|
|
4
|
+
//#region src/effect/categories.ts
|
|
5
|
+
/**
|
|
6
|
+
* Semantic error-category helpers for the Effect SDK.
|
|
7
|
+
*
|
|
8
|
+
* Every operation's error channel carries the server's real tagged errors
|
|
9
|
+
* ({@link import("./errors").ConflictError} …). These helpers let callers catch
|
|
10
|
+
* or test by *category* — auth, validation, throttling, transient … — without
|
|
11
|
+
* enumerating tags, and cover the raw transport/decode errors too. The category
|
|
12
|
+
* assignments are generated from the OpenAPI category extensions.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { catchAuthError, isRetryable } from "samva/effect";
|
|
17
|
+
*
|
|
18
|
+
* samva.messages.send(input).pipe(
|
|
19
|
+
* catchAuthError((error) => Effect.logError(`auth failed: ${error.message}`)),
|
|
20
|
+
* Effect.retry({ while: isRetryable }),
|
|
21
|
+
* );
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
const emailChannelCategories = (reason) => {
|
|
25
|
+
switch (reason) {
|
|
26
|
+
case "auth": return ["auth"];
|
|
27
|
+
case "rejected": return ["validation"];
|
|
28
|
+
case "rate_limited": return ["throttling", "transient"];
|
|
29
|
+
case "transport": return ["transient"];
|
|
30
|
+
default: return [];
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
const categoriesOf = (error) => {
|
|
34
|
+
if (!Predicate$1.isObject(error) || typeof error._tag !== "string") return [];
|
|
35
|
+
if (error._tag === "EmailChannelError") return emailChannelCategories(error.reason);
|
|
36
|
+
return SamvaErrorMetadata[error._tag]?.categories ?? [];
|
|
37
|
+
};
|
|
38
|
+
const hasCategory = (error, category) => categoriesOf(error).includes(category);
|
|
39
|
+
const isRetryableError = (error) => {
|
|
40
|
+
if (!Predicate$1.isObject(error) || typeof error._tag !== "string") return false;
|
|
41
|
+
if (error._tag === "EmailChannelError") return categoriesOf(error).includes("transient");
|
|
42
|
+
return SamvaErrorMetadata[error._tag]?.retryable ?? false;
|
|
43
|
+
};
|
|
44
|
+
const categoryGuard = (category) => (error) => hasCategory(error, category);
|
|
45
|
+
const isAuthError = categoryGuard("auth");
|
|
46
|
+
const isValidationError = categoryGuard("validation");
|
|
47
|
+
const isNotFoundError = categoryGuard("notFound");
|
|
48
|
+
const isConflictError = categoryGuard("conflict");
|
|
49
|
+
const isThrottlingError = categoryGuard("throttling");
|
|
50
|
+
const isBillingError = categoryGuard("billing");
|
|
51
|
+
/**
|
|
52
|
+
* Network-level request failure (no HTTP response). Only `TransportError` is
|
|
53
|
+
* transient/retryable: `EncodeError` and `InvalidUrlError` are deterministic
|
|
54
|
+
* programmer errors (bad input, bad URL) that would fail identically on every
|
|
55
|
+
* attempt — retrying them would loop forever.
|
|
56
|
+
*/
|
|
57
|
+
const isRequestTransportError = (error) => {
|
|
58
|
+
if (!Predicate$1.isTagged(error, "HttpClientError")) return false;
|
|
59
|
+
const reason = error.reason;
|
|
60
|
+
return Predicate$1.isObject(reason) && Predicate$1.isTagged(reason, "TransportError");
|
|
61
|
+
};
|
|
62
|
+
/** True for transient failures, including raw request-transport errors. */
|
|
63
|
+
const isTransient = (error) => hasCategory(error, "transient") || isRequestTransportError(error);
|
|
64
|
+
/** True when an error is declared safe to retry (throttling / transient / transport). */
|
|
65
|
+
const isRetryable = (error) => isRetryableError(error) || isRequestTransportError(error);
|
|
66
|
+
/**
|
|
67
|
+
* Catch every error in `category`. The handler receives the category's error
|
|
68
|
+
* union — including `EmailChannelError` where its `reason` can place it in the
|
|
69
|
+
* category — while only total-membership classes are narrowed out of the error
|
|
70
|
+
* channel (`EmailChannelError` stays: instances with other reasons pass through).
|
|
71
|
+
*/
|
|
72
|
+
const catchCategory = (category, handler) => (effect) => {
|
|
73
|
+
const inCategory = (error) => hasCategory(error, category);
|
|
74
|
+
const outsideCategory = (error) => !hasCategory(error, category);
|
|
75
|
+
return Effect.catch(effect, (error) => {
|
|
76
|
+
if (inCategory(error)) return handler(error);
|
|
77
|
+
if (outsideCategory(error)) return Effect.fail(error);
|
|
78
|
+
return Effect.die(error);
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
const catchAuthError = (handler) => catchCategory("auth", handler);
|
|
82
|
+
const catchValidationError = (handler) => catchCategory("validation", handler);
|
|
83
|
+
const catchNotFoundError = (handler) => catchCategory("notFound", handler);
|
|
84
|
+
const catchConflictError = (handler) => catchCategory("conflict", handler);
|
|
85
|
+
const catchThrottlingError = (handler) => catchCategory("throttling", handler);
|
|
86
|
+
const catchBillingError = (handler) => catchCategory("billing", handler);
|
|
87
|
+
/**
|
|
88
|
+
* Catch transient failures — including raw request-transport errors — for
|
|
89
|
+
* fallback/degrade paths. The declared error channel is left intact because
|
|
90
|
+
* transient covers untyped transport errors as well.
|
|
91
|
+
*/
|
|
92
|
+
const catchTransient = (handler) => (effect) => Effect.catchIf(effect, isTransient, handler);
|
|
93
|
+
//#endregion
|
|
2
94
|
export { catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError };
|
|
95
|
+
|
|
96
|
+
//# sourceMappingURL=categories.js.map
|
package/dist/effect/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { Service, layer, layerFetch } from "./internal/client.js";
|
|
3
3
|
//#region src/effect/client.ts
|
|
4
4
|
var client_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
Service: () => Service,
|
|
@@ -7,6 +7,6 @@ var client_exports = /* @__PURE__ */ __exportAll({
|
|
|
7
7
|
layerFetch: () => layerFetch
|
|
8
8
|
});
|
|
9
9
|
//#endregion
|
|
10
|
-
export { Service, layer, layerFetch
|
|
10
|
+
export { Service, client_exports, layer, layerFetch };
|
|
11
11
|
|
|
12
12
|
//# sourceMappingURL=client.js.map
|
|
@@ -23,7 +23,7 @@ export declare const list: ((input?: {
|
|
|
23
23
|
readonly updatedAt: string;
|
|
24
24
|
}[];
|
|
25
25
|
readonly nextCursor: string | null;
|
|
26
|
-
}, import("./
|
|
26
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
27
27
|
readonly pages: (input?: {
|
|
28
28
|
readonly limit?: string | null | undefined;
|
|
29
29
|
readonly cursor?: string | null | undefined;
|
|
@@ -49,7 +49,7 @@ export declare const list: ((input?: {
|
|
|
49
49
|
readonly updatedAt: string;
|
|
50
50
|
}[];
|
|
51
51
|
readonly nextCursor: string | null;
|
|
52
|
-
}, import("./
|
|
52
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
53
53
|
readonly items: (input?: {
|
|
54
54
|
readonly limit?: string | null | undefined;
|
|
55
55
|
readonly cursor?: string | null | undefined;
|
|
@@ -72,7 +72,7 @@ export declare const list: ((input?: {
|
|
|
72
72
|
readonly isActive: boolean;
|
|
73
73
|
readonly createdAt: string;
|
|
74
74
|
readonly updatedAt: string;
|
|
75
|
-
}, import("./
|
|
75
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
76
76
|
};
|
|
77
77
|
export declare const create: (input: {
|
|
78
78
|
readonly name: string;
|
|
@@ -126,7 +126,7 @@ export declare const create: (input: {
|
|
|
126
126
|
readonly isActive: boolean;
|
|
127
127
|
readonly createdAt: string;
|
|
128
128
|
readonly updatedAt: string;
|
|
129
|
-
}, import("./
|
|
129
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
130
130
|
export declare const getById: (input: {
|
|
131
131
|
readonly id: string;
|
|
132
132
|
}) => import("effect/Effect").Effect<{
|
|
@@ -146,7 +146,7 @@ export declare const getById: (input: {
|
|
|
146
146
|
readonly isActive: boolean;
|
|
147
147
|
readonly createdAt: string;
|
|
148
148
|
readonly updatedAt: string;
|
|
149
|
-
}, import("./
|
|
149
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
150
150
|
export declare const update: (input: {
|
|
151
151
|
readonly id: string;
|
|
152
152
|
readonly name?: string | null | undefined;
|
|
@@ -200,12 +200,12 @@ export declare const update: (input: {
|
|
|
200
200
|
readonly isActive: boolean;
|
|
201
201
|
readonly createdAt: string;
|
|
202
202
|
readonly updatedAt: string;
|
|
203
|
-
}, import("./
|
|
203
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
204
204
|
export declare const remove: (input: {
|
|
205
205
|
readonly id: string;
|
|
206
206
|
}) => import("effect/Effect").Effect<{
|
|
207
207
|
readonly success: boolean;
|
|
208
|
-
}, import("./
|
|
208
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
209
209
|
export declare const preview: (input: {
|
|
210
210
|
readonly criteria: {
|
|
211
211
|
readonly tags?: readonly string[] | null | undefined;
|
|
@@ -246,14 +246,14 @@ export declare const preview: (input: {
|
|
|
246
246
|
readonly name: string;
|
|
247
247
|
readonly status: string;
|
|
248
248
|
}[];
|
|
249
|
-
}, import("./
|
|
249
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
250
250
|
export declare const evaluateDynamic: (input: {
|
|
251
251
|
readonly id: string;
|
|
252
252
|
}) => import("effect/Effect").Effect<{
|
|
253
253
|
readonly added: number;
|
|
254
254
|
readonly removed: number;
|
|
255
255
|
readonly total: number;
|
|
256
|
-
}, import("./
|
|
256
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
257
257
|
export declare const getMembers: ((input: {
|
|
258
258
|
readonly id: string;
|
|
259
259
|
readonly limit?: string | null | undefined;
|
|
@@ -282,7 +282,7 @@ export declare const getMembers: ((input: {
|
|
|
282
282
|
} | null;
|
|
283
283
|
}[];
|
|
284
284
|
readonly nextCursor: string | null;
|
|
285
|
-
}, import("./
|
|
285
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
286
286
|
readonly pages: (input: {
|
|
287
287
|
readonly id: string;
|
|
288
288
|
readonly limit?: string | null | undefined;
|
|
@@ -311,7 +311,7 @@ export declare const getMembers: ((input: {
|
|
|
311
311
|
} | null;
|
|
312
312
|
}[];
|
|
313
313
|
readonly nextCursor: string | null;
|
|
314
|
-
}, import("./
|
|
314
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
315
315
|
readonly items: (input: {
|
|
316
316
|
readonly id: string;
|
|
317
317
|
readonly limit?: string | null | undefined;
|
|
@@ -337,7 +337,7 @@ export declare const getMembers: ((input: {
|
|
|
337
337
|
readonly verified: boolean;
|
|
338
338
|
}[] | null;
|
|
339
339
|
} | null;
|
|
340
|
-
}, import("./
|
|
340
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
341
341
|
};
|
|
342
342
|
export declare const addMembers: (input: {
|
|
343
343
|
readonly id: string;
|
|
@@ -346,10 +346,10 @@ export declare const addMembers: (input: {
|
|
|
346
346
|
}) => import("effect/Effect").Effect<{
|
|
347
347
|
readonly added: number;
|
|
348
348
|
readonly skipped: number;
|
|
349
|
-
}, import("./
|
|
349
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
350
350
|
export declare const removeMembers: (input: {
|
|
351
351
|
readonly id: string;
|
|
352
352
|
readonly contactIds: readonly string[];
|
|
353
353
|
}) => import("effect/Effect").Effect<{
|
|
354
354
|
readonly removed: number;
|
|
355
|
-
}, import("./
|
|
355
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
@@ -1,2 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { ContactGroupsGroup } from "./generated/contact-groups.js";
|
|
4
|
+
//#region src/effect/contact-groups.ts
|
|
5
|
+
var contact_groups_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
addMembers: () => addMembers,
|
|
7
|
+
create: () => create,
|
|
8
|
+
evaluateDynamic: () => evaluateDynamic,
|
|
9
|
+
getById: () => getById,
|
|
10
|
+
getMembers: () => getMembers,
|
|
11
|
+
list: () => list,
|
|
12
|
+
preview: () => preview,
|
|
13
|
+
remove: () => remove,
|
|
14
|
+
removeMembers: () => removeMembers,
|
|
15
|
+
update: () => update
|
|
16
|
+
});
|
|
17
|
+
const make = /* @__PURE__ */ forGroup(ContactGroupsGroup);
|
|
18
|
+
const list = /* @__PURE__ */ make("contactGroupsList");
|
|
19
|
+
const create = /* @__PURE__ */ make("contactGroupsCreate");
|
|
20
|
+
const getById = /* @__PURE__ */ make("contactGroupsGetById");
|
|
21
|
+
const update = /* @__PURE__ */ make("contactGroupsUpdate");
|
|
22
|
+
const remove = /* @__PURE__ */ make("contactGroupsRemove");
|
|
23
|
+
const preview = /* @__PURE__ */ make("contactGroupsPreview");
|
|
24
|
+
const evaluateDynamic = /* @__PURE__ */ make("contactGroupsEvaluateDynamic");
|
|
25
|
+
const getMembers = /* @__PURE__ */ make("contactGroupsGetMembers");
|
|
26
|
+
const addMembers = /* @__PURE__ */ make("contactGroupsAddMembers");
|
|
27
|
+
const removeMembers = /* @__PURE__ */ make("contactGroupsRemoveMembers");
|
|
28
|
+
//#endregion
|
|
29
|
+
export { addMembers, contact_groups_exports, create, evaluateDynamic, getById, getMembers, list, preview, remove, removeMembers, update };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=contact-groups.js.map
|
|
@@ -29,7 +29,7 @@ export declare const list: ((input?: {
|
|
|
29
29
|
readonly createdAt: string;
|
|
30
30
|
}[];
|
|
31
31
|
readonly nextCursor: string | null;
|
|
32
|
-
}, import("./
|
|
32
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
33
33
|
readonly pages: (input?: {
|
|
34
34
|
readonly limit?: string | null | undefined;
|
|
35
35
|
readonly cursor?: string | null | undefined;
|
|
@@ -61,7 +61,7 @@ export declare const list: ((input?: {
|
|
|
61
61
|
readonly createdAt: string;
|
|
62
62
|
}[];
|
|
63
63
|
readonly nextCursor: string | null;
|
|
64
|
-
}, import("./
|
|
64
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
65
65
|
readonly items: (input?: {
|
|
66
66
|
readonly limit?: string | null | undefined;
|
|
67
67
|
readonly cursor?: string | null | undefined;
|
|
@@ -90,7 +90,7 @@ export declare const list: ((input?: {
|
|
|
90
90
|
} | null;
|
|
91
91
|
readonly lastActiveAt: string | null;
|
|
92
92
|
readonly createdAt: string;
|
|
93
|
-
}, import("./
|
|
93
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
94
94
|
};
|
|
95
95
|
export declare const create: (input: {
|
|
96
96
|
readonly name: string;
|
|
@@ -208,7 +208,7 @@ export declare const create: (input: {
|
|
|
208
208
|
} | null;
|
|
209
209
|
readonly createdAt: string;
|
|
210
210
|
readonly updatedAt: string;
|
|
211
|
-
}, import("./
|
|
211
|
+
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
212
212
|
export declare const find: (input?: {
|
|
213
213
|
readonly email?: string | null | undefined;
|
|
214
214
|
readonly phone?: string | null | undefined;
|
|
@@ -261,7 +261,7 @@ export declare const find: (input?: {
|
|
|
261
261
|
} | null;
|
|
262
262
|
readonly createdAt: string;
|
|
263
263
|
readonly updatedAt: string;
|
|
264
|
-
} | null, import("./
|
|
264
|
+
} | null, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
265
265
|
export declare const findOrCreate: (input: {
|
|
266
266
|
readonly lookup: {
|
|
267
267
|
readonly type: "email";
|
|
@@ -351,7 +351,7 @@ export declare const findOrCreate: (input: {
|
|
|
351
351
|
readonly updatedAt: string;
|
|
352
352
|
};
|
|
353
353
|
readonly created: boolean;
|
|
354
|
-
}, import("./
|
|
354
|
+
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
355
355
|
export declare const get: (input: {
|
|
356
356
|
readonly id: string;
|
|
357
357
|
}) => import("effect/Effect").Effect<{
|
|
@@ -402,12 +402,12 @@ export declare const get: (input: {
|
|
|
402
402
|
} | null;
|
|
403
403
|
readonly createdAt: string;
|
|
404
404
|
readonly updatedAt: string;
|
|
405
|
-
}, import("./
|
|
405
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
406
406
|
export declare const remove: (input: {
|
|
407
407
|
readonly id: string;
|
|
408
408
|
}) => import("effect/Effect").Effect<{
|
|
409
409
|
readonly success: boolean;
|
|
410
|
-
}, import("./
|
|
410
|
+
}, import("./errors").BillingProviderError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
411
411
|
export declare const update: (input: {
|
|
412
412
|
readonly id: string;
|
|
413
413
|
readonly name?: string | null | undefined;
|
|
@@ -518,7 +518,7 @@ export declare const update: (input: {
|
|
|
518
518
|
} | null;
|
|
519
519
|
readonly createdAt: string;
|
|
520
520
|
readonly updatedAt: string;
|
|
521
|
-
}, import("./
|
|
521
|
+
}, import("./errors").BillingProviderError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
522
522
|
export declare const addIdentity: (input: {
|
|
523
523
|
readonly id: string;
|
|
524
524
|
readonly channel: "email";
|
|
@@ -572,7 +572,7 @@ export declare const addIdentity: (input: {
|
|
|
572
572
|
} | null;
|
|
573
573
|
readonly createdAt: string;
|
|
574
574
|
readonly updatedAt: string;
|
|
575
|
-
}, import("./
|
|
575
|
+
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
576
576
|
export declare const removeIdentity: (input: {
|
|
577
577
|
readonly id: string;
|
|
578
578
|
readonly identityId: string;
|
|
@@ -624,7 +624,7 @@ export declare const removeIdentity: (input: {
|
|
|
624
624
|
} | null;
|
|
625
625
|
readonly createdAt: string;
|
|
626
626
|
readonly updatedAt: string;
|
|
627
|
-
}, import("./
|
|
627
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
628
628
|
export declare const addTags: (input: {
|
|
629
629
|
readonly id: string;
|
|
630
630
|
readonly tags: readonly string[];
|
|
@@ -676,7 +676,7 @@ export declare const addTags: (input: {
|
|
|
676
676
|
} | null;
|
|
677
677
|
readonly createdAt: string;
|
|
678
678
|
readonly updatedAt: string;
|
|
679
|
-
}, import("./
|
|
679
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
680
680
|
export declare const removeTags: (input: {
|
|
681
681
|
readonly id: string;
|
|
682
682
|
readonly tags: readonly string[];
|
|
@@ -728,7 +728,7 @@ export declare const removeTags: (input: {
|
|
|
728
728
|
} | null;
|
|
729
729
|
readonly createdAt: string;
|
|
730
730
|
readonly updatedAt: string;
|
|
731
|
-
}, import("./
|
|
731
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
732
732
|
export declare const getEngagement: (input: {
|
|
733
733
|
readonly id: string;
|
|
734
734
|
}) => import("effect/Effect").Effect<{
|
|
@@ -740,7 +740,7 @@ export declare const getEngagement: (input: {
|
|
|
740
740
|
readonly channelsUsed: {
|
|
741
741
|
readonly [x: string]: number;
|
|
742
742
|
};
|
|
743
|
-
}, import("./
|
|
743
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
744
744
|
export declare const bulkImport: (input: {
|
|
745
745
|
readonly contacts: readonly {
|
|
746
746
|
readonly name: string;
|
|
@@ -822,13 +822,13 @@ export declare const bulkImport: (input: {
|
|
|
822
822
|
readonly contactId?: (string & import("effect/Brand").Brand<"ContactId">) | null;
|
|
823
823
|
readonly error?: string | null;
|
|
824
824
|
}[];
|
|
825
|
-
}, import("./
|
|
825
|
+
}, import("./errors").BillingProviderError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
826
826
|
export declare const bulkDelete: (input: {
|
|
827
827
|
readonly ids: readonly string[];
|
|
828
828
|
}) => import("effect/Effect").Effect<{
|
|
829
829
|
readonly deleted: number;
|
|
830
830
|
readonly failed: number;
|
|
831
|
-
}, import("./
|
|
831
|
+
}, import("./errors").BillingProviderError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
832
832
|
export declare const bulkUpdateTags: (input: {
|
|
833
833
|
readonly ids: readonly string[];
|
|
834
834
|
readonly operation: "add" | "remove" | "set";
|
|
@@ -836,14 +836,14 @@ export declare const bulkUpdateTags: (input: {
|
|
|
836
836
|
}) => import("effect/Effect").Effect<{
|
|
837
837
|
readonly updated: number;
|
|
838
838
|
readonly failed: number;
|
|
839
|
-
}, import("./
|
|
839
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
840
840
|
export declare const bulkUpdateStatus: (input: {
|
|
841
841
|
readonly ids: readonly string[];
|
|
842
842
|
readonly status: "active" | "archived" | "blocked" | "paused";
|
|
843
843
|
}) => import("effect/Effect").Effect<{
|
|
844
844
|
readonly updated: number;
|
|
845
845
|
readonly failed: number;
|
|
846
|
-
}, import("./
|
|
846
|
+
}, import("./errors").BillingProviderError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
847
847
|
declare const exportContacts: (input?: {
|
|
848
848
|
readonly ids?: readonly string[] | null | undefined;
|
|
849
849
|
readonly format?: "csv" | "json" | null | undefined;
|
|
@@ -856,7 +856,7 @@ declare const exportContacts: (input?: {
|
|
|
856
856
|
readonly data: string;
|
|
857
857
|
readonly format: "csv" | "json";
|
|
858
858
|
readonly count: number;
|
|
859
|
-
}, import("./
|
|
859
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
860
860
|
export { exportContacts as export };
|
|
861
861
|
export declare const getActivityTimeline: ((input: {
|
|
862
862
|
readonly id: string;
|
|
@@ -875,7 +875,7 @@ export declare const getActivityTimeline: ((input: {
|
|
|
875
875
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
876
876
|
}[];
|
|
877
877
|
readonly nextCursor: string | null;
|
|
878
|
-
}, import("./
|
|
878
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
879
879
|
readonly pages: (input: {
|
|
880
880
|
readonly id: string;
|
|
881
881
|
readonly limit?: string | null | undefined;
|
|
@@ -893,7 +893,7 @@ export declare const getActivityTimeline: ((input: {
|
|
|
893
893
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
894
894
|
}[];
|
|
895
895
|
readonly nextCursor: string | null;
|
|
896
|
-
}, import("./
|
|
896
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
897
897
|
readonly items: (input: {
|
|
898
898
|
readonly id: string;
|
|
899
899
|
readonly limit?: string | null | undefined;
|
|
@@ -908,7 +908,7 @@ export declare const getActivityTimeline: ((input: {
|
|
|
908
908
|
readonly snippet: string | null;
|
|
909
909
|
readonly createdAt: string;
|
|
910
910
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
911
|
-
}, import("./
|
|
911
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
912
912
|
};
|
|
913
913
|
export declare const getGroupMemberships: ((input: {
|
|
914
914
|
readonly id: string;
|
|
@@ -924,7 +924,7 @@ export declare const getGroupMemberships: ((input: {
|
|
|
924
924
|
readonly joinedAt: string;
|
|
925
925
|
}[];
|
|
926
926
|
readonly nextCursor: string | null;
|
|
927
|
-
}, import("./
|
|
927
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
928
928
|
readonly pages: (input: {
|
|
929
929
|
readonly id: string;
|
|
930
930
|
readonly limit?: string | null | undefined;
|
|
@@ -939,7 +939,7 @@ export declare const getGroupMemberships: ((input: {
|
|
|
939
939
|
readonly joinedAt: string;
|
|
940
940
|
}[];
|
|
941
941
|
readonly nextCursor: string | null;
|
|
942
|
-
}, import("./
|
|
942
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
943
943
|
readonly items: (input: {
|
|
944
944
|
readonly id: string;
|
|
945
945
|
readonly limit?: string | null | undefined;
|
|
@@ -951,7 +951,7 @@ export declare const getGroupMemberships: ((input: {
|
|
|
951
951
|
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
952
952
|
readonly role: string;
|
|
953
953
|
readonly joinedAt: string;
|
|
954
|
-
}, import("./
|
|
954
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
955
955
|
};
|
|
956
956
|
export declare const listEvents: ((input: {
|
|
957
957
|
readonly id: string;
|
|
@@ -970,7 +970,7 @@ export declare const listEvents: ((input: {
|
|
|
970
970
|
readonly recordedAt: string;
|
|
971
971
|
}[];
|
|
972
972
|
readonly nextCursor: string | null;
|
|
973
|
-
}, import("./
|
|
973
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
974
974
|
readonly pages: (input: {
|
|
975
975
|
readonly id: string;
|
|
976
976
|
readonly limit?: string | null | undefined;
|
|
@@ -988,7 +988,7 @@ export declare const listEvents: ((input: {
|
|
|
988
988
|
readonly recordedAt: string;
|
|
989
989
|
}[];
|
|
990
990
|
readonly nextCursor: string | null;
|
|
991
|
-
}, import("./
|
|
991
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
992
992
|
readonly items: (input: {
|
|
993
993
|
readonly id: string;
|
|
994
994
|
readonly limit?: string | null | undefined;
|
|
@@ -1003,5 +1003,5 @@ export declare const listEvents: ((input: {
|
|
|
1003
1003
|
};
|
|
1004
1004
|
readonly occurredAt: string;
|
|
1005
1005
|
readonly recordedAt: string;
|
|
1006
|
-
}, import("./
|
|
1006
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1007
1007
|
};
|