samva 0.46.0 → 0.46.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/client/client/client.gen.d.ts +1 -1
- package/dist/client/client/index.d.ts +10 -10
- package/dist/client/client/types.gen.d.ts +4 -4
- package/dist/client/client/utils.gen.d.ts +2 -2
- package/dist/client/client.gen.d.ts +2 -2
- package/dist/client/core/bodySerializer.gen.d.ts +1 -1
- package/dist/client/core/serverSentEvents.gen.d.ts +1 -1
- package/dist/client/core/types.gen.d.ts +2 -2
- package/dist/client/core/utils.gen.d.ts +1 -1
- package/dist/client/sdk.gen.d.ts +2 -2
- package/dist/effect/accounts.d.ts +6 -6
- package/dist/effect/accounts.js +2 -1
- package/dist/effect/agents.d.ts +16 -16
- package/dist/effect/agents.js +2 -1
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +2 -1
- package/dist/effect/api-keys.d.ts +13 -13
- package/dist/effect/api-keys.js +2 -1
- package/dist/effect/approval-requests.d.ts +4 -4
- package/dist/effect/approval-requests.js +2 -1
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +2 -1
- package/dist/effect/brands.d.ts +7 -7
- package/dist/effect/brands.js +2 -1
- package/dist/effect/campaigns.d.ts +45 -45
- package/dist/effect/campaigns.js +2 -1
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/client.d.ts +1 -1
- package/dist/effect/contact-groups.d.ts +18 -18
- package/dist/effect/contact-groups.js +2 -1
- package/dist/effect/contacts.d.ts +33 -33
- package/dist/effect/contacts.js +3 -2
- package/dist/effect/conversations.d.ts +17 -17
- package/dist/effect/conversations.js +2 -1
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +2 -1
- package/dist/effect/descriptors/accounts.d.ts +59 -0
- package/dist/effect/descriptors/accounts.js +57 -0
- package/dist/effect/descriptors/agents.d.ts +119 -0
- package/dist/effect/descriptors/agents.js +117 -0
- package/dist/effect/descriptors/analytics.d.ts +56 -0
- package/dist/effect/descriptors/analytics.js +48 -0
- package/dist/effect/descriptors/api-keys.d.ts +80 -0
- package/dist/effect/descriptors/api-keys.js +80 -0
- package/dist/effect/descriptors/approval-requests.d.ts +41 -0
- package/dist/effect/descriptors/approval-requests.js +43 -0
- package/dist/effect/descriptors/attachments.d.ts +41 -0
- package/dist/effect/descriptors/attachments.js +43 -0
- package/dist/effect/descriptors/brands.d.ts +60 -0
- package/dist/effect/descriptors/brands.js +60 -0
- package/dist/effect/descriptors/campaigns.d.ts +148 -0
- package/dist/effect/descriptors/campaigns.js +144 -0
- package/dist/effect/descriptors/contact-groups.d.ts +99 -0
- package/dist/effect/descriptors/contact-groups.js +97 -0
- package/dist/effect/descriptors/contacts.d.ts +226 -0
- package/dist/effect/descriptors/contacts.js +214 -0
- package/dist/effect/descriptors/conversations.d.ts +130 -0
- package/dist/effect/descriptors/conversations.js +130 -0
- package/dist/effect/descriptors/custom-fields.d.ts +40 -0
- package/dist/effect/descriptors/custom-fields.js +40 -0
- package/dist/effect/descriptors/email.d.ts +607 -0
- package/dist/effect/descriptors/email.js +561 -0
- package/dist/effect/descriptors/events.d.ts +20 -0
- package/dist/effect/descriptors/events.js +20 -0
- package/dist/effect/descriptors/extension-installations.d.ts +90 -0
- package/dist/effect/descriptors/extension-installations.js +90 -0
- package/dist/effect/descriptors/extensions.d.ts +50 -0
- package/dist/effect/descriptors/extensions.js +50 -0
- package/dist/effect/descriptors/feedback.d.ts +11 -0
- package/dist/effect/descriptors/feedback.js +11 -0
- package/dist/effect/descriptors/integrations-catalog.d.ts +29 -0
- package/dist/effect/descriptors/integrations-catalog.js +27 -0
- package/dist/effect/descriptors/integrations.d.ts +70 -0
- package/dist/effect/descriptors/integrations.js +70 -0
- package/dist/effect/descriptors/journeys.d.ts +140 -0
- package/dist/effect/descriptors/journeys.js +140 -0
- package/dist/effect/descriptors/mailboxes.d.ts +724 -0
- package/dist/effect/descriptors/mailboxes.js +728 -0
- package/dist/effect/descriptors/media.d.ts +51 -0
- package/dist/effect/descriptors/media.js +53 -0
- package/dist/effect/descriptors/messages.d.ts +99 -0
- package/dist/effect/descriptors/messages.js +97 -0
- package/dist/effect/descriptors/namespaces.d.ts +110 -0
- package/dist/effect/descriptors/namespaces.js +114 -0
- package/dist/effect/descriptors/newsletter-domains.d.ts +42 -0
- package/dist/effect/descriptors/newsletter-domains.js +46 -0
- package/dist/effect/descriptors/newsletter-issues.d.ts +112 -0
- package/dist/effect/descriptors/newsletter-issues.js +116 -0
- package/dist/effect/descriptors/newsletters.d.ts +51 -0
- package/dist/effect/descriptors/newsletters.js +53 -0
- package/dist/effect/descriptors/operations.d.ts +31 -0
- package/dist/effect/descriptors/operations.js +33 -0
- package/dist/effect/descriptors/organizations.d.ts +111 -0
- package/dist/effect/descriptors/organizations.js +93 -0
- package/dist/effect/descriptors/policies.d.ts +32 -0
- package/dist/effect/descriptors/policies.js +36 -0
- package/dist/effect/descriptors/scheduled-messages.d.ts +50 -0
- package/dist/effect/descriptors/scheduled-messages.js +50 -0
- package/dist/effect/descriptors/subscriptions.d.ts +11 -0
- package/dist/effect/descriptors/subscriptions.js +11 -0
- package/dist/effect/descriptors/template-registrations.d.ts +32 -0
- package/dist/effect/descriptors/template-registrations.js +36 -0
- package/dist/effect/descriptors/template-share-links.d.ts +52 -0
- package/dist/effect/descriptors/template-share-links.js +56 -0
- package/dist/effect/descriptors/templates.d.ts +365 -0
- package/dist/effect/descriptors/templates.js +355 -0
- package/dist/effect/descriptors/topic-forms.d.ts +52 -0
- package/dist/effect/descriptors/topic-forms.js +56 -0
- package/dist/effect/descriptors/topics.d.ts +89 -0
- package/dist/effect/descriptors/topics.js +87 -0
- package/dist/effect/descriptors/webhooks.d.ts +110 -0
- package/dist/effect/descriptors/webhooks.js +110 -0
- package/dist/effect/descriptors/whats-app-flows.d.ts +99 -0
- package/dist/effect/descriptors/whats-app-flows.js +97 -0
- package/dist/effect/descriptors/whats-app-setup-links.d.ts +40 -0
- package/dist/effect/descriptors/whats-app-setup-links.js +40 -0
- package/dist/effect/descriptors/whats-app.d.ts +116 -0
- package/dist/effect/descriptors/whats-app.js +108 -0
- package/dist/effect/descriptors/whoami.d.ts +11 -0
- package/dist/effect/descriptors/whoami.js +11 -0
- package/dist/effect/email.d.ts +78 -78
- package/dist/effect/email.js +2 -1
- package/dist/effect/errors.d.ts +2 -2
- package/dist/effect/events.d.ts +3 -3
- package/dist/effect/events.js +2 -1
- package/dist/effect/extension-installations.d.ts +11 -11
- package/dist/effect/extension-installations.js +2 -1
- package/dist/effect/extensions.d.ts +9 -9
- package/dist/effect/extensions.js +2 -1
- package/dist/effect/feedback.d.ts +2 -2
- package/dist/effect/feedback.js +2 -1
- package/dist/effect/generated/accounts.d.ts +9 -9
- package/dist/effect/generated/agents.d.ts +1 -1
- package/dist/effect/generated/analytics.d.ts +1 -1
- package/dist/effect/generated/api-keys.d.ts +1 -1
- package/dist/effect/generated/approval-requests.d.ts +13 -13
- package/dist/effect/generated/attachments.d.ts +1 -1
- package/dist/effect/generated/brands.d.ts +1 -1
- package/dist/effect/generated/campaigns.d.ts +230 -230
- package/dist/effect/generated/contact-events.d.ts +4 -4
- package/dist/effect/generated/contact-groups.d.ts +1 -1
- package/dist/effect/generated/contacts.d.ts +49 -49
- package/dist/effect/generated/conversations.d.ts +1 -1
- package/dist/effect/generated/custom-fields.d.ts +1 -1
- package/dist/effect/generated/email.d.ts +1 -1
- package/dist/effect/generated/events.d.ts +12 -12
- package/dist/effect/generated/extension-installations.d.ts +1 -1
- package/dist/effect/generated/extensions.d.ts +1 -1
- package/dist/effect/generated/feedback.d.ts +1 -1
- package/dist/effect/generated/index.d.ts +87 -87
- package/dist/effect/generated/integrations-catalog.d.ts +3 -3
- package/dist/effect/generated/integrations.d.ts +15 -15
- package/dist/effect/generated/journeys.d.ts +81 -81
- package/dist/effect/generated/mailboxes.d.ts +1 -1
- package/dist/effect/generated/media.d.ts +1 -1
- package/dist/effect/generated/messages.d.ts +1 -1
- package/dist/effect/generated/namespaces.d.ts +1 -1
- package/dist/effect/generated/newsletter-domains.d.ts +1 -1
- package/dist/effect/generated/newsletter-issues.d.ts +1 -1
- package/dist/effect/generated/newsletters.d.ts +1 -1
- package/dist/effect/generated/operations.d.ts +1 -1
- package/dist/effect/generated/organizations.d.ts +1 -1
- package/dist/effect/generated/policies.d.ts +1 -1
- package/dist/effect/generated/scheduled-messages.d.ts +147 -147
- package/dist/effect/generated/shared.d.ts +1 -1
- package/dist/effect/generated/subscriptions.d.ts +1 -1
- package/dist/effect/generated/template-registrations.d.ts +1 -1
- package/dist/effect/generated/template-share-links.d.ts +1 -1
- package/dist/effect/generated/templates.d.ts +1 -1
- package/dist/effect/generated/topic-forms.d.ts +1 -1
- package/dist/effect/generated/topics.d.ts +1 -1
- package/dist/effect/generated/webhooks.d.ts +1 -1
- package/dist/effect/generated/whats-app-flows.d.ts +1 -1
- package/dist/effect/generated/whats-app-setup-links.d.ts +1 -1
- package/dist/effect/generated/whats-app.d.ts +1 -1
- package/dist/effect/generated/whoami.d.ts +1 -1
- package/dist/effect/index.d.ts +47 -47
- package/dist/effect/integrations-catalog.d.ts +3 -3
- package/dist/effect/integrations-catalog.js +2 -1
- package/dist/effect/integrations.d.ts +11 -11
- package/dist/effect/integrations.js +2 -1
- package/dist/effect/internal/client.d.ts +3 -3
- package/dist/effect/internal/email-sender.d.ts +4 -4
- package/dist/effect/internal/mailbox-events.d.ts +2 -2
- package/dist/effect/internal/operation.d.ts +24 -5
- package/dist/effect/internal/operation.js +21 -21
- package/dist/effect/internal/send.d.ts +4 -4
- package/dist/effect/journeys.d.ts +20 -20
- package/dist/effect/journeys.js +2 -1
- package/dist/effect/mailboxes.d.ts +123 -123
- package/dist/effect/mailboxes.js +2 -1
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +2 -1
- package/dist/effect/messages.d.ts +17 -17
- package/dist/effect/messages.js +2 -1
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/namespaces.js +2 -1
- package/dist/effect/newsletter-domains.d.ts +6 -6
- package/dist/effect/newsletter-domains.js +2 -1
- package/dist/effect/newsletter-issues.d.ts +11 -11
- package/dist/effect/newsletter-issues.js +2 -1
- package/dist/effect/newsletters.d.ts +5 -5
- package/dist/effect/newsletters.js +2 -1
- package/dist/effect/operations.d.ts +5 -5
- package/dist/effect/operations.js +2 -1
- package/dist/effect/organizations.d.ts +12 -12
- package/dist/effect/organizations.js +2 -1
- package/dist/effect/policies.d.ts +3 -3
- package/dist/effect/policies.js +2 -1
- package/dist/effect/scheduled-messages.d.ts +23 -23
- package/dist/effect/scheduled-messages.js +2 -1
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +2 -1
- package/dist/effect/template-registrations.d.ts +3 -3
- package/dist/effect/template-registrations.js +2 -1
- package/dist/effect/template-share-links.d.ts +5 -5
- package/dist/effect/template-share-links.js +2 -1
- package/dist/effect/templates.d.ts +46 -46
- package/dist/effect/templates.js +2 -1
- package/dist/effect/topic-forms.d.ts +5 -5
- package/dist/effect/topic-forms.js +2 -1
- package/dist/effect/topics.d.ts +11 -11
- package/dist/effect/topics.js +2 -1
- package/dist/effect/webhooks.d.ts +16 -16
- package/dist/effect/webhooks.js +2 -1
- package/dist/effect/whatsapp-flows.d.ts +10 -10
- package/dist/effect/whatsapp-flows.js +2 -1
- package/dist/effect/whatsapp-setup-links.d.ts +6 -6
- package/dist/effect/whatsapp-setup-links.js +2 -1
- package/dist/effect/whatsapp.d.ts +12 -12
- package/dist/effect/whatsapp.js +2 -1
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/effect/whoami.js +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/mailbox/dispatch.d.ts +2 -2
- package/dist/mailbox/index.d.ts +4 -4
- package/dist/mailbox/test.d.ts +2 -2
- package/dist/mailbox/types.d.ts +2 -2
- package/dist/mailbox/webhook.d.ts +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +10 -10
- package/dist/promises/errors.gen.d.ts +1 -1
- package/dist/promises/index.d.ts +5 -5
- package/dist/promises/request.d.ts +2 -2
- package/dist/promises/request.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-policy.d.ts +10 -2
- package/dist/request-policy.js +3 -5
- package/package.json +9 -9
- package/dist/service-map.js +0 -830
|
@@ -2,33 +2,33 @@ export declare const create: (input: {
|
|
|
2
2
|
readonly projectId: string;
|
|
3
3
|
readonly handle: string;
|
|
4
4
|
readonly categories: readonly ("APPOINTMENT_BOOKING" | "CONTACT_US" | "CUSTOMER_SUPPORT" | "LEAD_GENERATION" | "OTHER" | "SIGN_IN" | "SIGN_UP" | "SURVEY")[];
|
|
5
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsCreate">;
|
|
6
|
-
export declare const list: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsList">;
|
|
5
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappFlowsCreate">;
|
|
6
|
+
export declare const list: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappFlowsList">;
|
|
7
7
|
export declare const get: (input: {
|
|
8
8
|
readonly id: string;
|
|
9
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsGet">;
|
|
9
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappFlowsGet">;
|
|
10
10
|
export declare const recordVersion: (input: {
|
|
11
11
|
readonly id: string;
|
|
12
12
|
readonly commitSha: string;
|
|
13
13
|
readonly expectedWorkspaceRevision: string;
|
|
14
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsRecordVersion">;
|
|
14
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappFlowsRecordVersion">;
|
|
15
15
|
export declare const listVersions: (input: {
|
|
16
16
|
readonly id: string;
|
|
17
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsListVersions">;
|
|
17
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappFlowsListVersions">;
|
|
18
18
|
export declare const register: (input: {
|
|
19
19
|
readonly id: string;
|
|
20
20
|
readonly businessAccountId?: string | undefined;
|
|
21
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsRegister">;
|
|
21
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappFlowsRegister">;
|
|
22
22
|
export declare const listRegistrations: (input: {
|
|
23
23
|
readonly id: string;
|
|
24
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsListRegistrations">;
|
|
24
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappFlowsListRegistrations">;
|
|
25
25
|
export declare const rotateEncryptionKey: (input?: {
|
|
26
26
|
readonly businessAccountId?: string | undefined;
|
|
27
|
-
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsRotateEncryptionKey">;
|
|
27
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappFlowsRotateEncryptionKey">;
|
|
28
28
|
export declare const setEndpoint: (input: {
|
|
29
29
|
readonly id: string;
|
|
30
30
|
readonly url: string;
|
|
31
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsSetEndpoint">;
|
|
31
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappFlowsSetEndpoint">;
|
|
32
32
|
export declare const rotateEndpointSecret: (input: {
|
|
33
33
|
readonly id: string;
|
|
34
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsRotateEndpointSecret">;
|
|
34
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappFlowsRotateEndpointSecret">;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { whatsappFlowsOperations } from "./descriptors/whats-app-flows.js";
|
|
3
4
|
import { WhatsAppFlowsGroup } from "./generated/whats-app-flows.js";
|
|
4
5
|
// src/effect/whatsapp-flows.ts
|
|
5
6
|
var whatsapp_flows_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -14,7 +15,7 @@ var whatsapp_flows_exports = /* @__PURE__ */ __exportAll({
|
|
|
14
15
|
rotateEndpointSecret: () => rotateEndpointSecret,
|
|
15
16
|
setEndpoint: () => setEndpoint
|
|
16
17
|
});
|
|
17
|
-
const make = /* @__PURE__ */ forGroup(WhatsAppFlowsGroup);
|
|
18
|
+
const make = /* @__PURE__ */ forGroup(WhatsAppFlowsGroup, whatsappFlowsOperations);
|
|
18
19
|
const create = /* @__PURE__ */ make("whatsappFlowsCreate");
|
|
19
20
|
const list = /* @__PURE__ */ make("whatsappFlowsList");
|
|
20
21
|
const get = /* @__PURE__ */ make("whatsappFlowsGet");
|
|
@@ -5,13 +5,13 @@ export declare const create: (input: {
|
|
|
5
5
|
readonly [x: string]: string | undefined;
|
|
6
6
|
} | null | undefined;
|
|
7
7
|
readonly expiresAt?: string | null | undefined;
|
|
8
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappSetupLinksCreate">;
|
|
8
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappSetupLinksCreate">;
|
|
9
9
|
export declare const list: ((input?: {
|
|
10
10
|
readonly limit?: number | null | undefined;
|
|
11
11
|
readonly cursor?: string | undefined;
|
|
12
12
|
readonly namespaceId?: string | undefined;
|
|
13
13
|
readonly status?: "completed" | "expired" | "pending" | "revoked" | undefined;
|
|
14
|
-
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappSetupLinksList">) & {
|
|
14
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappSetupLinksList">) & {
|
|
15
15
|
readonly pages: (input?: {
|
|
16
16
|
readonly limit?: number | null | undefined;
|
|
17
17
|
readonly cursor?: string | undefined;
|
|
@@ -35,7 +35,7 @@ export declare const list: ((input?: {
|
|
|
35
35
|
readonly updatedAt: string;
|
|
36
36
|
}[];
|
|
37
37
|
readonly nextCursor: string | null;
|
|
38
|
-
}, import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
38
|
+
}, import("./errors.js").FlagDisabledError | import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
39
39
|
readonly items: (input?: {
|
|
40
40
|
readonly limit?: number | null | undefined;
|
|
41
41
|
readonly cursor?: string | undefined;
|
|
@@ -56,11 +56,11 @@ export declare const list: ((input?: {
|
|
|
56
56
|
readonly revokedAt: string | null;
|
|
57
57
|
readonly createdAt: string;
|
|
58
58
|
readonly updatedAt: string;
|
|
59
|
-
}, import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
59
|
+
}, import("./errors.js").FlagDisabledError | import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
60
60
|
};
|
|
61
61
|
export declare const get: (input: {
|
|
62
62
|
readonly linkId: string;
|
|
63
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappSetupLinksGet">;
|
|
63
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappSetupLinksGet">;
|
|
64
64
|
export declare const revoke: (input: {
|
|
65
65
|
readonly linkId: string;
|
|
66
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappSetupLinksRevoke">;
|
|
66
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappSetupLinksRevoke">;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { whatsappSetupLinksOperations } from "./descriptors/whats-app-setup-links.js";
|
|
3
4
|
import { WhatsAppSetupLinksGroup } from "./generated/whats-app-setup-links.js";
|
|
4
5
|
// src/effect/whatsapp-setup-links.ts
|
|
5
6
|
var whatsapp_setup_links_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -8,7 +9,7 @@ var whatsapp_setup_links_exports = /* @__PURE__ */ __exportAll({
|
|
|
8
9
|
list: () => list,
|
|
9
10
|
revoke: () => revoke
|
|
10
11
|
});
|
|
11
|
-
const make = /* @__PURE__ */ forGroup(WhatsAppSetupLinksGroup);
|
|
12
|
+
const make = /* @__PURE__ */ forGroup(WhatsAppSetupLinksGroup, whatsappSetupLinksOperations);
|
|
12
13
|
const create = /* @__PURE__ */ make("whatsappSetupLinksCreate");
|
|
13
14
|
const list = /* @__PURE__ */ make("whatsappSetupLinksList");
|
|
14
15
|
const get = /* @__PURE__ */ make("whatsappSetupLinksGet");
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
export declare const getStats: (input?: {
|
|
2
2
|
readonly startDate?: string | undefined;
|
|
3
3
|
readonly endDate?: string | undefined;
|
|
4
|
-
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappGetStats">;
|
|
4
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappGetStats">;
|
|
5
5
|
export declare const getTemplateStats: (input?: {
|
|
6
6
|
readonly startDate?: string | undefined;
|
|
7
7
|
readonly endDate?: string | undefined;
|
|
8
8
|
readonly templateId?: string | undefined;
|
|
9
9
|
readonly campaignId?: string | undefined;
|
|
10
10
|
readonly journeyId?: string | undefined;
|
|
11
|
-
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappGetTemplateStats">;
|
|
11
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappGetTemplateStats">;
|
|
12
12
|
export declare const getServiceWindowStatus: (input: {
|
|
13
13
|
readonly customerPhone: string;
|
|
14
14
|
readonly businessPhone: string;
|
|
15
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappGetServiceWindowStatus">;
|
|
15
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappGetServiceWindowStatus">;
|
|
16
16
|
export declare const getServiceWindowBilling: (input: {
|
|
17
17
|
readonly serviceWindowId: string;
|
|
18
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappGetServiceWindowBilling">;
|
|
18
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappGetServiceWindowBilling">;
|
|
19
19
|
export declare const getMediaDownloadUrl: (input: {
|
|
20
20
|
readonly deliveryId: string;
|
|
21
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappGetMediaDownloadUrl">;
|
|
21
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappGetMediaDownloadUrl">;
|
|
22
22
|
export declare const listBusinessAccounts: (input?: {
|
|
23
23
|
readonly page?: number | null | undefined;
|
|
24
24
|
readonly limit?: number | null | undefined;
|
|
25
25
|
readonly isActive?: boolean | null | undefined;
|
|
26
26
|
readonly verificationStatus?: "failed" | "pending" | "suspended" | "verified" | undefined;
|
|
27
27
|
readonly namespaceId?: string | undefined;
|
|
28
|
-
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappListBusinessAccounts">;
|
|
28
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappListBusinessAccounts">;
|
|
29
29
|
export declare const connectBusinessAccount: (input: {
|
|
30
30
|
readonly code: string | import("effect/Redacted").Redacted<string>;
|
|
31
31
|
readonly wabaId: string;
|
|
32
32
|
readonly phoneNumberId: string;
|
|
33
33
|
readonly namespaceId?: string | null | undefined;
|
|
34
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappConnectBusinessAccount">;
|
|
34
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappConnectBusinessAccount">;
|
|
35
35
|
export declare const getBusinessAccount: (input: {
|
|
36
36
|
readonly accountId: string;
|
|
37
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappGetBusinessAccount">;
|
|
37
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappGetBusinessAccount">;
|
|
38
38
|
export declare const updateBusinessAccount: (input: {
|
|
39
39
|
readonly accountId: string;
|
|
40
40
|
readonly displayName?: string | null | undefined;
|
|
41
41
|
readonly webhookUrl?: string | null | undefined;
|
|
42
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappUpdateBusinessAccount">;
|
|
42
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappUpdateBusinessAccount">;
|
|
43
43
|
export declare const disconnectBusinessAccount: (input: {
|
|
44
44
|
readonly accountId: string;
|
|
45
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappDisconnectBusinessAccount">;
|
|
45
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappDisconnectBusinessAccount">;
|
|
46
46
|
export declare const setDefaultBusinessAccount: (input: {
|
|
47
47
|
readonly accountId: string;
|
|
48
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappSetDefaultBusinessAccount">;
|
|
48
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappSetDefaultBusinessAccount">;
|
|
49
49
|
export declare const syncAccountStatus: (input: {
|
|
50
50
|
readonly accountId: string;
|
|
51
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappSyncAccountStatus">;
|
|
51
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappSyncAccountStatus">;
|
package/dist/effect/whatsapp.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { whatsappOperations } from "./descriptors/whats-app.js";
|
|
3
4
|
import { WhatsAppGroup } from "./generated/whats-app.js";
|
|
4
5
|
// src/effect/whatsapp.ts
|
|
5
6
|
var whatsapp_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -16,7 +17,7 @@ var whatsapp_exports = /* @__PURE__ */ __exportAll({
|
|
|
16
17
|
syncAccountStatus: () => syncAccountStatus,
|
|
17
18
|
updateBusinessAccount: () => updateBusinessAccount
|
|
18
19
|
});
|
|
19
|
-
const make = /* @__PURE__ */ forGroup(WhatsAppGroup);
|
|
20
|
+
const make = /* @__PURE__ */ forGroup(WhatsAppGroup, whatsappOperations);
|
|
20
21
|
const getStats = /* @__PURE__ */ make("whatsappGetStats");
|
|
21
22
|
const getTemplateStats = /* @__PURE__ */ make("whatsappGetTemplateStats");
|
|
22
23
|
const getServiceWindowStatus = /* @__PURE__ */ make("whatsappGetServiceWindowStatus");
|
package/dist/effect/whoami.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const get: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whoamiGet">;
|
|
1
|
+
export declare const get: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whoamiGet">;
|
package/dist/effect/whoami.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { whoamiOperations } from "./descriptors/whoami.js";
|
|
3
4
|
import { WhoamiGroup } from "./generated/whoami.js";
|
|
4
5
|
// src/effect/whoami.ts
|
|
5
6
|
var whoami_exports = /* @__PURE__ */ __exportAll({ get: () => get });
|
|
6
|
-
const get = /* @__PURE__ */ (/* @__PURE__ */ forGroup(WhoamiGroup))("whoamiGet");
|
|
7
|
+
const get = /* @__PURE__ */ (/* @__PURE__ */ forGroup(WhoamiGroup, whoamiOperations))("whoamiGet");
|
|
7
8
|
export { get, whoami_exports };
|
|
8
9
|
|
|
9
10
|
//# sourceMappingURL=whoami.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./promises/index";
|
|
1
|
+
export * from "./promises/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type SamvaClient } from "../promises/client";
|
|
2
|
-
import type { DispatchResult, ExtensionDefinition, Invocation } from "./types";
|
|
1
|
+
import { type SamvaClient } from "../promises/client.js";
|
|
2
|
+
import type { DispatchResult, ExtensionDefinition, Invocation } from "./types.js";
|
|
3
3
|
declare const errorMessage: (error: unknown) => string;
|
|
4
4
|
export { errorMessage };
|
|
5
5
|
/**
|
package/dist/mailbox/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { createBoundClient } from "../promises/client";
|
|
2
|
-
import type { ExtensionDefinition, ExtensionManifest } from "./types";
|
|
1
|
+
import { createBoundClient } from "../promises/client.js";
|
|
2
|
+
import type { ExtensionDefinition, ExtensionManifest } from "./types.js";
|
|
3
3
|
type Fetch = NonNullable<Parameters<typeof createBoundClient>[0]["fetch"]>;
|
|
4
|
-
export * from "./types";
|
|
5
|
-
export { dispatchEvent } from "./dispatch";
|
|
4
|
+
export * from "./types.js";
|
|
5
|
+
export { dispatchEvent } from "./dispatch.js";
|
|
6
6
|
export declare function defineExtension<const M extends ExtensionManifest>(definition: {
|
|
7
7
|
manifest: M;
|
|
8
8
|
on: ExtensionDefinition<M["events"][number]>["on"];
|
package/dist/mailbox/test.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type SamvaClient } from "../promises/client";
|
|
2
|
-
import type { EventData, EventType, ExtensionDefinition, ExtensionEvent } from "./types";
|
|
1
|
+
import { type SamvaClient } from "../promises/client.js";
|
|
2
|
+
import type { EventData, EventType, ExtensionDefinition, ExtensionEvent } from "./types.js";
|
|
3
3
|
export interface RecordedCall {
|
|
4
4
|
method: string;
|
|
5
5
|
path: string;
|
package/dist/mailbox/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { MailboxQuarantinedMessage } from "../client/types.gen";
|
|
2
|
-
import type { SamvaClient } from "../promises/client";
|
|
1
|
+
import type { MailboxQuarantinedMessage } from "../client/types.gen.js";
|
|
2
|
+
import type { SamvaClient } from "../promises/client.js";
|
|
3
3
|
export type ExtensionManifest = {
|
|
4
4
|
readonly name: string;
|
|
5
5
|
readonly displayName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createClient } from "../promises/client";
|
|
2
|
-
import type { ExtensionDefinition } from "./types";
|
|
1
|
+
import { createClient } from "../promises/client.js";
|
|
2
|
+
import type { ExtensionDefinition } from "./types.js";
|
|
3
3
|
type Fetch = NonNullable<Parameters<typeof createClient>[0]["fetch"]>;
|
|
4
4
|
export declare function createWebhookHandler(extension: ExtensionDefinition, options: {
|
|
5
5
|
apiKey: string;
|
package/dist/package.js
CHANGED
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
* }
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
import { type Client, type Config } from "../client/client";
|
|
30
|
-
import { Agents as agents, Accounts as accounts, Integrations as integrations, IntegrationCatalog as integrationCatalog, Whatsapp as whatsapp, WhatsappFlows as whatsappFlows, WhatsappSetupLinks as whatsappSetupLinks, TemplateRegistrations as templateRegistrations, TemplateShareLinks as templateShareLinks, Analytics as analytics, ApiKeys as apiKeys, ApprovalRequests as approvalRequests, Attachments as attachments, Brands as brands, Campaigns as campaigns, ContactGroups as contactGroups, ContactEvents as contactEvents, Contacts as contacts, Conversations as conversations, CustomFields as customFields, Email as email, ExtensionInstallations as extensionInstallations, Extensions as extensions, Events as events, Feedback as feedback, Journeys as journeys, Mailboxes as mailboxes, Media as media, Messages as messages, Namespaces as namespaces, Operations as operations, Organizations as organizations, Policies as policies, ScheduledMessages as scheduledMessages, Subscriptions as subscriptions, Templates as templates, Topics as topics, TopicForms as topicForms, Newsletters as newsletters, Webhooks as webhooks, Whoami as whoami } from "../client/sdk.gen";
|
|
31
|
-
import type { MessagesSendData } from "../client/types.gen";
|
|
32
|
-
import { MailboxEventStream, type MailboxEventStreamOptions } from "../mailbox-events";
|
|
33
|
-
import { type RequestPolicy } from "./request";
|
|
34
|
-
export * from "./errors.gen";
|
|
35
|
-
export { MediaUploadError } from "../inline-attachments";
|
|
36
|
-
export type * from "./types.gen";
|
|
37
|
-
export { MailboxEventStream, MailboxEventStreamError, type MailboxEvent, type MailboxEventStreamErrorFields, type MailboxEventStreamErrorReason, type MailboxEventStreamErrorTag, type MailboxEventStreamFailure, type MailboxEventStreamOptions, type MailboxEventStreamReconnect, type MailboxEventStreamWebSocket, type MailboxEventType, } from "../mailbox-events";
|
|
29
|
+
import { type Client, type Config } from "../client/client/index.js";
|
|
30
|
+
import { Agents as agents, Accounts as accounts, Integrations as integrations, IntegrationCatalog as integrationCatalog, Whatsapp as whatsapp, WhatsappFlows as whatsappFlows, WhatsappSetupLinks as whatsappSetupLinks, TemplateRegistrations as templateRegistrations, TemplateShareLinks as templateShareLinks, Analytics as analytics, ApiKeys as apiKeys, ApprovalRequests as approvalRequests, Attachments as attachments, Brands as brands, Campaigns as campaigns, ContactGroups as contactGroups, ContactEvents as contactEvents, Contacts as contacts, Conversations as conversations, CustomFields as customFields, Email as email, ExtensionInstallations as extensionInstallations, Extensions as extensions, Events as events, Feedback as feedback, Journeys as journeys, Mailboxes as mailboxes, Media as media, Messages as messages, Namespaces as namespaces, Operations as operations, Organizations as organizations, Policies as policies, ScheduledMessages as scheduledMessages, Subscriptions as subscriptions, Templates as templates, Topics as topics, TopicForms as topicForms, Newsletters as newsletters, Webhooks as webhooks, Whoami as whoami } from "../client/sdk.gen.js";
|
|
31
|
+
import type { MessagesSendData } from "../client/types.gen.js";
|
|
32
|
+
import { MailboxEventStream, type MailboxEventStreamOptions } from "../mailbox-events.js";
|
|
33
|
+
import { type RequestPolicy } from "./request.js";
|
|
34
|
+
export * from "./errors.gen.js";
|
|
35
|
+
export { MediaUploadError } from "../inline-attachments.js";
|
|
36
|
+
export type * from "./types.gen.js";
|
|
37
|
+
export { MailboxEventStream, MailboxEventStreamError, type MailboxEvent, type MailboxEventStreamErrorFields, type MailboxEventStreamErrorReason, type MailboxEventStreamErrorTag, type MailboxEventStreamFailure, type MailboxEventStreamOptions, type MailboxEventStreamReconnect, type MailboxEventStreamWebSocket, type MailboxEventType, } from "../mailbox-events.js";
|
|
38
38
|
interface SamvaClientConfigBase extends Omit<Config, "baseUrl" | "responseStyle" | "throwOnError">, RequestPolicy {
|
|
39
39
|
/** Base URL for the API (defaults to https://api.samva.dev). */
|
|
40
40
|
baseUrl?: string;
|
|
@@ -232,4 +232,4 @@ type BoundClientConfig = SamvaClientConfigBase & {
|
|
|
232
232
|
export declare function clientWithIdempotency(client: SamvaClient, idempotency: (operation: string) => string): SamvaClient;
|
|
233
233
|
export declare const createBoundClient: (config: BoundClientConfig) => SamvaClient;
|
|
234
234
|
export declare const createClient: (config: SamvaClientConfig) => SamvaClient;
|
|
235
|
-
export type { Client, Config } from "../client/client";
|
|
235
|
+
export type { Client, Config } from "../client/client/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type * as Wire from "../client/types.gen";
|
|
1
|
+
import type * as Wire from "../client/types.gen.js";
|
|
2
2
|
export type SamvaApiErrorTag = "AnalyticsQueryError" | "BillingProviderError" | "BrandAddressRequiredError" | "CampaignFooterRequiredError" | "ConflictError" | "CredentialsError" | "DeliveryUnavailableError" | "EmailChannelError" | "ExternalServiceError" | "FlagDisabledError" | "ForbiddenError" | "FromAddressRequiredError" | "GatewayTimeoutError" | "InternalError" | "MailboxSendConflictError" | "MailboxSendRefusedError" | "MalformedRequestError" | "OnboardingReviewRequiredError" | "PaymentRequiredError" | "RateLimitedError" | "ResourceNotFoundError" | "SenderNotReadyError" | "ServiceUnavailableError" | "ShareLinkUnavailable" | "SlugTaken" | "TemplateInUseError" | "TemplateSourceError" | "UnauthorizedError" | "ValidationError" | "WhatsAppChannelError" | "WhatsAppServiceWindowClosedError" | "WhatsAppSetupLinkUnavailableError";
|
|
3
3
|
export interface SamvaApiErrorContext {
|
|
4
4
|
readonly request?: Request | undefined;
|
package/dist/promises/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { createClient, type SamvaClient, type SamvaClientConfig, type SamvaRawClient, type PromiseMailboxesService, type Client, type Config, } from "./client";
|
|
2
|
-
export * from "./errors.gen";
|
|
3
|
-
export type * from "./types.gen";
|
|
4
|
-
export { MediaUploadError } from "../inline-attachments";
|
|
5
|
-
export { MailboxEventStream, MailboxEventStreamError, type MailboxEvent, type MailboxEventStreamErrorFields, type MailboxEventStreamErrorReason, type MailboxEventStreamErrorTag, type MailboxEventStreamFailure, type MailboxEventStreamOptions, type MailboxEventStreamReconnect, type MailboxEventStreamWebSocket, type MailboxEventType, } from "../mailbox-events";
|
|
1
|
+
export { createClient, type SamvaClient, type SamvaClientConfig, type SamvaRawClient, type PromiseMailboxesService, type Client, type Config, } from "./client.js";
|
|
2
|
+
export * from "./errors.gen.js";
|
|
3
|
+
export type * from "./types.gen.js";
|
|
4
|
+
export { MediaUploadError } from "../inline-attachments.js";
|
|
5
|
+
export { MailboxEventStream, MailboxEventStreamError, type MailboxEvent, type MailboxEventStreamErrorFields, type MailboxEventStreamErrorReason, type MailboxEventStreamErrorTag, type MailboxEventStreamFailure, type MailboxEventStreamOptions, type MailboxEventStreamReconnect, type MailboxEventStreamWebSocket, type MailboxEventType, } from "../mailbox-events.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type Client, mergeHeaders } from "../client/client";
|
|
2
|
-
import { SamvaOperations } from "../effect/generated-metadata";
|
|
1
|
+
import { type Client, mergeHeaders } from "../client/client/index.js";
|
|
2
|
+
import { SamvaOperations } from "../effect/generated-metadata.js";
|
|
3
3
|
export interface RequestPolicy {
|
|
4
4
|
readonly maxRetries?: number | undefined;
|
|
5
5
|
readonly idempotency?: ((operation: string) => string) | undefined;
|
package/dist/promises/request.js
CHANGED
|
@@ -49,7 +49,7 @@ async function requestWithPolicy(client, operation, options, send, input) {
|
|
|
49
49
|
headers["idempotency-key"] = options?.idempotencyKey ?? policy?.idempotency?.(operation) ?? crypto.randomUUID();
|
|
50
50
|
}
|
|
51
51
|
const maxRetries = validateRetries(options?.maxRetries ?? policy?.maxRetries ?? 3);
|
|
52
|
-
const safe = isRetrySafe(
|
|
52
|
+
const safe = isRetrySafe(metadata, input);
|
|
53
53
|
for (let retry = 0;; retry++) {
|
|
54
54
|
let failure;
|
|
55
55
|
let result;
|