samva 0.34.0 → 0.36.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 +17 -0
- package/README.md +2 -1
- package/dist/client/sdk.gen.d.ts +325 -331
- package/dist/client/sdk.gen.js +406 -454
- package/dist/client/types.gen.d.ts +3465 -750
- package/dist/effect/agents.d.ts +222 -17
- package/dist/effect/agents.js +7 -1
- package/dist/effect/analytics.d.ts +21 -15
- package/dist/effect/api-keys.d.ts +30 -24
- package/dist/effect/campaigns.d.ts +695 -39
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/contact-groups.d.ts +15 -15
- package/dist/effect/contacts.d.ts +56 -52
- package/dist/effect/conversations.d.ts +51 -45
- package/dist/effect/email.d.ts +82 -82
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +64 -12
- package/dist/effect/extensions.d.ts +16 -16
- package/dist/effect/generated/agents.d.ts +2902 -150
- package/dist/effect/generated/agents.js +219 -31
- package/dist/effect/generated/analytics.d.ts +127 -136
- package/dist/effect/generated/analytics.js +72 -37
- package/dist/effect/generated/api-keys.d.ts +243 -47
- package/dist/effect/generated/api-keys.js +27 -12
- package/dist/effect/generated/attachments.d.ts +89 -1
- package/dist/effect/generated/attachments.js +10 -2
- package/dist/effect/generated/brands.d.ts +133 -1
- package/dist/effect/generated/brands.js +22 -10
- package/dist/effect/generated/campaigns.d.ts +1467 -143
- package/dist/effect/generated/campaigns.js +84 -20
- package/dist/effect/generated/contact-events.d.ts +26 -4
- package/dist/effect/generated/contact-events.js +5 -3
- package/dist/effect/generated/contact-groups.d.ts +233 -13
- package/dist/effect/generated/contact-groups.js +33 -17
- package/dist/effect/generated/contacts.d.ts +634 -96
- package/dist/effect/generated/contacts.js +82 -20
- package/dist/effect/generated/conversations.d.ts +501 -108
- package/dist/effect/generated/conversations.js +106 -22
- package/dist/effect/generated/custom-fields.d.ts +89 -1
- package/dist/effect/generated/custom-fields.js +11 -3
- package/dist/effect/generated/email.d.ts +1447 -83
- package/dist/effect/generated/email.js +167 -43
- package/dist/effect/generated/events.d.ts +51 -7
- package/dist/effect/generated/events.js +9 -5
- package/dist/effect/generated/extension-installations.d.ts +1052 -77
- package/dist/effect/generated/extension-installations.js +45 -31
- package/dist/effect/generated/extensions.d.ts +123 -13
- package/dist/effect/generated/extensions.js +20 -10
- package/dist/effect/generated/feedback.d.ts +23 -1
- package/dist/effect/generated/feedback.js +6 -4
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/journeys.d.ts +684 -16
- package/dist/effect/generated/journeys.js +37 -9
- package/dist/effect/generated/mailboxes.d.ts +6169 -1734
- package/dist/effect/generated/mailboxes.js +549 -344
- package/dist/effect/generated/media.d.ts +125 -15
- package/dist/effect/generated/media.js +15 -2
- package/dist/effect/generated/messages.d.ts +2036 -117
- package/dist/effect/generated/messages.js +286 -54
- package/dist/effect/generated/namespaces.d.ts +215 -55
- package/dist/effect/generated/namespaces.js +30 -12
- package/dist/effect/generated/newsletter-domains.d.ts +98 -12
- package/dist/effect/generated/newsletter-domains.js +20 -13
- package/dist/effect/generated/newsletter-issues.d.ts +354 -19
- package/dist/effect/generated/newsletter-issues.js +162 -98
- package/dist/effect/generated/newsletters.d.ts +123 -13
- package/dist/effect/generated/newsletters.js +19 -9
- package/dist/effect/generated/operations.d.ts +76 -10
- package/dist/effect/generated/operations.js +12 -6
- package/dist/effect/generated/organizations.d.ts +287 -7
- package/dist/effect/generated/organizations.js +33 -5
- package/dist/effect/generated/policies.d.ts +953 -0
- package/dist/effect/generated/policies.js +116 -0
- package/dist/effect/generated/scheduled-messages.d.ts +4418 -49
- package/dist/effect/generated/scheduled-messages.js +77 -13
- package/dist/effect/generated/shared.d.ts +3213 -521
- package/dist/effect/generated/shared.js +713 -128
- package/dist/effect/generated/subscriptions.d.ts +23 -1
- package/dist/effect/generated/subscriptions.js +6 -4
- package/dist/effect/generated/templates.d.ts +2081 -693
- package/dist/effect/generated/templates.js +482 -267
- package/dist/effect/generated/topic-forms.d.ts +111 -1
- package/dist/effect/generated/topic-forms.js +23 -13
- package/dist/effect/generated/topics.d.ts +353 -43
- package/dist/effect/generated/topics.js +67 -19
- package/dist/effect/generated/webhooks.d.ts +318 -57
- package/dist/effect/generated/webhooks.js +68 -17
- package/dist/effect/generated/whoami.d.ts +35 -5
- package/dist/effect/generated/whoami.js +4 -2
- package/dist/effect/generated-metadata.d.ts +56 -32
- package/dist/effect/generated-metadata.js +137 -105
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -2
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/operation.js +5 -32
- package/dist/effect/internal/send.d.ts +1 -1
- package/dist/effect/journeys.d.ts +169 -83
- package/dist/effect/mailboxes.d.ts +978 -301
- package/dist/effect/mailboxes.js +1 -11
- package/dist/effect/media.d.ts +1 -1
- package/dist/effect/messages.d.ts +40 -40
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/newsletter-domains.d.ts +5 -5
- package/dist/effect/newsletters.d.ts +1 -1
- package/dist/effect/operations.d.ts +11 -11
- package/dist/effect/organizations.d.ts +2 -2
- package/dist/effect/policies.d.ts +65 -0
- package/dist/effect/policies.js +16 -0
- package/dist/effect/scheduled-messages.d.ts +869 -8
- package/dist/effect/templates.d.ts +43 -45
- package/dist/effect/templates.js +5 -3
- package/dist/effect/topics.d.ts +23 -23
- package/dist/effect/webhooks.d.ts +29 -26
- package/dist/index.js +2 -2
- package/dist/mailbox/test.js +11 -4
- package/dist/mailbox/types.d.ts +39 -3
- package/dist/normalize.js +13 -1
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +4 -2
- package/dist/promises/client.js +5 -3
- package/dist/promises/errors.gen.d.ts +38 -2
- package/dist/promises/errors.gen.js +394 -34
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +39 -28
- package/dist/service-map.js +220 -782
- package/package.json +13 -8
package/dist/effect/mailboxes.js
CHANGED
|
@@ -16,11 +16,9 @@ var mailboxes_exports = /* @__PURE__ */ __exportAll({
|
|
|
16
16
|
createGrant: () => createGrant,
|
|
17
17
|
createLabel: () => createLabel,
|
|
18
18
|
createNote: () => createNote,
|
|
19
|
-
createPolicy: () => createPolicy,
|
|
20
19
|
deleteDraft: () => deleteDraft,
|
|
21
20
|
deleteLabel: () => deleteLabel,
|
|
22
21
|
deleteNote: () => deleteNote,
|
|
23
|
-
deletePolicy: () => deletePolicy,
|
|
24
22
|
denyAction: () => denyAction,
|
|
25
23
|
discardMessage: () => discardMessage,
|
|
26
24
|
events: () => events,
|
|
@@ -33,7 +31,6 @@ var mailboxes_exports = /* @__PURE__ */ __exportAll({
|
|
|
33
31
|
getMessageAttachment: () => getMessageAttachment,
|
|
34
32
|
getMessageRaw: () => getMessageRaw,
|
|
35
33
|
getNeedsYou: () => getNeedsYou,
|
|
36
|
-
getPolicy: () => getPolicy,
|
|
37
34
|
getThread: () => getThread,
|
|
38
35
|
getThreadContent: () => getThreadContent,
|
|
39
36
|
list: () => list,
|
|
@@ -45,7 +42,6 @@ var mailboxes_exports = /* @__PURE__ */ __exportAll({
|
|
|
45
42
|
listLabels: () => listLabels,
|
|
46
43
|
listOrganizationDrafts: () => listOrganizationDrafts,
|
|
47
44
|
listOrganizationThreads: () => listOrganizationThreads,
|
|
48
|
-
listPolicies: () => listPolicies,
|
|
49
45
|
listQuarantine: () => listQuarantine,
|
|
50
46
|
listThreadMessages: () => listThreadMessages,
|
|
51
47
|
listThreadNotes: () => listThreadNotes,
|
|
@@ -68,7 +64,6 @@ var mailboxes_exports = /* @__PURE__ */ __exportAll({
|
|
|
68
64
|
updateGrant: () => updateGrant,
|
|
69
65
|
updateLabel: () => updateLabel,
|
|
70
66
|
updateNote: () => updateNote,
|
|
71
|
-
updatePolicy: () => updatePolicy,
|
|
72
67
|
updateThread: () => updateThread
|
|
73
68
|
});
|
|
74
69
|
const make = /* @__PURE__ */ forGroup(MailboxesGroup);
|
|
@@ -87,11 +82,6 @@ const listGrants = /* @__PURE__ */ make("mailboxesListGrants");
|
|
|
87
82
|
const createGrant = /* @__PURE__ */ make("mailboxesCreateGrant");
|
|
88
83
|
const updateGrant = /* @__PURE__ */ make("mailboxesUpdateGrant");
|
|
89
84
|
const revokeGrant = /* @__PURE__ */ make("mailboxesRevokeGrant");
|
|
90
|
-
const listPolicies = /* @__PURE__ */ make("mailboxesListPolicies");
|
|
91
|
-
const createPolicy = /* @__PURE__ */ make("mailboxesCreatePolicy");
|
|
92
|
-
const getPolicy = /* @__PURE__ */ make("mailboxesGetPolicy");
|
|
93
|
-
const updatePolicy = /* @__PURE__ */ make("mailboxesUpdatePolicy");
|
|
94
|
-
const deletePolicy = /* @__PURE__ */ make("mailboxesDeletePolicy");
|
|
95
85
|
const listFolders = /* @__PURE__ */ make("mailboxesListFolders");
|
|
96
86
|
const listLabels = /* @__PURE__ */ make("mailboxesListLabels");
|
|
97
87
|
const createLabel = /* @__PURE__ */ make("mailboxesCreateLabel");
|
|
@@ -135,6 +125,6 @@ const retryAction = /* @__PURE__ */ make("mailboxesRetryAction");
|
|
|
135
125
|
const approveAction = /* @__PURE__ */ make("mailboxesApproveAction");
|
|
136
126
|
const denyAction = /* @__PURE__ */ make("mailboxesDenyAction");
|
|
137
127
|
const listEvents = /* @__PURE__ */ make("mailboxesListEvents");
|
|
138
|
-
export { MailboxEventStreamError, addThreadLabels, approveAction, cancelAction, copyMessageAttachment, create, createDraft, createEndpoint, createGrant, createLabel, createNote,
|
|
128
|
+
export { MailboxEventStreamError, addThreadLabels, approveAction, cancelAction, copyMessageAttachment, create, createDraft, createEndpoint, createGrant, createLabel, createNote, deleteDraft, deleteLabel, deleteNote, denyAction, discardMessage, events, forward, get, getAction, getAgentActivity, getDraft, getMessage, getMessageAttachment, getMessageRaw, getNeedsYou, getThread, getThreadContent, list, listActions, listDrafts, listEvents, listFolders, listGrants, listLabels, listOrganizationDrafts, listOrganizationThreads, listQuarantine, listThreadMessages, listThreadNotes, listThreads, mailboxes_exports, pause, releaseMessage, remove, removeEndpoint, removeThreadLabels, reply, replyAll, resume, retryAction, revokeGrant, sendDraft, sendMessage, update, updateDraft, updateEndpoint, updateGrant, updateLabel, updateNote, updateThread };
|
|
139
129
|
|
|
140
130
|
//# sourceMappingURL=mailboxes.js.map
|
package/dist/effect/media.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export declare const create: (input: {
|
|
|
2
2
|
readonly filename: string;
|
|
3
3
|
readonly contentType: string;
|
|
4
4
|
readonly sizeBytes: number;
|
|
5
|
-
readonly purpose: "attachment" | "avatar" | "review_evidence";
|
|
5
|
+
readonly purpose: "attachment" | "avatar" | "review_evidence" | "whatsapp_media";
|
|
6
6
|
readonly checksumSha256?: string | null | undefined;
|
|
7
7
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mediaCreate">;
|
|
8
8
|
export declare const getById: (input: {
|
|
@@ -2,29 +2,29 @@ import { type MessageSendInput, type SendOptions } from "./internal/send";
|
|
|
2
2
|
export type { MessageSendInput, SendOptions };
|
|
3
3
|
export declare const list: ((input?: {
|
|
4
4
|
readonly limit?: number | null | undefined;
|
|
5
|
-
readonly cursor?: string |
|
|
6
|
-
readonly channel?: "email" |
|
|
7
|
-
readonly direction?: "inbound" | "outbound" |
|
|
8
|
-
readonly status?: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent" |
|
|
9
|
-
readonly conversationId?: string |
|
|
10
|
-
readonly contactId?: string |
|
|
11
|
-
readonly from?: string |
|
|
12
|
-
readonly namespaceId?: string |
|
|
13
|
-
readonly after?: string |
|
|
14
|
-
readonly before?: string |
|
|
5
|
+
readonly cursor?: string | undefined;
|
|
6
|
+
readonly channel?: "email" | "sms" | "whatsapp" | undefined;
|
|
7
|
+
readonly direction?: "inbound" | "outbound" | undefined;
|
|
8
|
+
readonly status?: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent" | undefined;
|
|
9
|
+
readonly conversationId?: string | undefined;
|
|
10
|
+
readonly contactId?: string | undefined;
|
|
11
|
+
readonly from?: string | undefined;
|
|
12
|
+
readonly namespaceId?: string | undefined;
|
|
13
|
+
readonly after?: string | undefined;
|
|
14
|
+
readonly before?: string | undefined;
|
|
15
15
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"messagesList">) & {
|
|
16
16
|
readonly pages: (input?: {
|
|
17
17
|
readonly limit?: number | null | undefined;
|
|
18
|
-
readonly cursor?: string |
|
|
19
|
-
readonly channel?: "email" |
|
|
20
|
-
readonly direction?: "inbound" | "outbound" |
|
|
21
|
-
readonly status?: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent" |
|
|
22
|
-
readonly conversationId?: string |
|
|
23
|
-
readonly contactId?: string |
|
|
24
|
-
readonly from?: string |
|
|
25
|
-
readonly namespaceId?: string |
|
|
26
|
-
readonly after?: string |
|
|
27
|
-
readonly before?: string |
|
|
18
|
+
readonly cursor?: string | undefined;
|
|
19
|
+
readonly channel?: "email" | "sms" | "whatsapp" | undefined;
|
|
20
|
+
readonly direction?: "inbound" | "outbound" | undefined;
|
|
21
|
+
readonly status?: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent" | undefined;
|
|
22
|
+
readonly conversationId?: string | undefined;
|
|
23
|
+
readonly contactId?: string | undefined;
|
|
24
|
+
readonly from?: string | undefined;
|
|
25
|
+
readonly namespaceId?: string | undefined;
|
|
26
|
+
readonly after?: string | undefined;
|
|
27
|
+
readonly before?: string | undefined;
|
|
28
28
|
} | undefined) => import("effect/Stream").Stream<{
|
|
29
29
|
readonly items: readonly {
|
|
30
30
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
@@ -32,7 +32,7 @@ export declare const list: ((input?: {
|
|
|
32
32
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
33
33
|
readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
34
34
|
} | null;
|
|
35
|
-
readonly channel: "email";
|
|
35
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
36
36
|
readonly direction: "inbound" | "outbound";
|
|
37
37
|
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
38
38
|
readonly from: string | null;
|
|
@@ -42,26 +42,26 @@ export declare const list: ((input?: {
|
|
|
42
42
|
readonly createdAt: string;
|
|
43
43
|
}[];
|
|
44
44
|
readonly nextCursor: string | null;
|
|
45
|
-
}, 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>;
|
|
45
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
46
46
|
readonly items: (input?: {
|
|
47
47
|
readonly limit?: number | null | undefined;
|
|
48
|
-
readonly cursor?: string |
|
|
49
|
-
readonly channel?: "email" |
|
|
50
|
-
readonly direction?: "inbound" | "outbound" |
|
|
51
|
-
readonly status?: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent" |
|
|
52
|
-
readonly conversationId?: string |
|
|
53
|
-
readonly contactId?: string |
|
|
54
|
-
readonly from?: string |
|
|
55
|
-
readonly namespaceId?: string |
|
|
56
|
-
readonly after?: string |
|
|
57
|
-
readonly before?: string |
|
|
48
|
+
readonly cursor?: string | undefined;
|
|
49
|
+
readonly channel?: "email" | "sms" | "whatsapp" | undefined;
|
|
50
|
+
readonly direction?: "inbound" | "outbound" | undefined;
|
|
51
|
+
readonly status?: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent" | undefined;
|
|
52
|
+
readonly conversationId?: string | undefined;
|
|
53
|
+
readonly contactId?: string | undefined;
|
|
54
|
+
readonly from?: string | undefined;
|
|
55
|
+
readonly namespaceId?: string | undefined;
|
|
56
|
+
readonly after?: string | undefined;
|
|
57
|
+
readonly before?: string | undefined;
|
|
58
58
|
} | undefined) => import("effect/Stream").Stream<{
|
|
59
59
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
60
60
|
readonly campaign?: {
|
|
61
61
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
62
62
|
readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
63
63
|
} | null;
|
|
64
|
-
readonly channel: "email";
|
|
64
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
65
65
|
readonly direction: "inbound" | "outbound";
|
|
66
66
|
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
67
67
|
readonly from: string | null;
|
|
@@ -69,7 +69,7 @@ export declare const list: ((input?: {
|
|
|
69
69
|
readonly subject: string | null;
|
|
70
70
|
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
71
71
|
readonly createdAt: string;
|
|
72
|
-
}, 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>;
|
|
72
|
+
}, 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>;
|
|
73
73
|
};
|
|
74
74
|
export declare const send: (input: MessageSendInput, options?: SendOptions | undefined) => import("effect/Effect").Effect<{
|
|
75
75
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
@@ -82,7 +82,7 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
|
|
|
82
82
|
readonly topicId?: (string & import("effect/Brand").Brand<"TopicId">) | null;
|
|
83
83
|
}[];
|
|
84
84
|
readonly createdAt: string;
|
|
85
|
-
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").DeliveryUnavailableError | import("./errors").ExternalServiceError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").FromAddressRequiredError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("..").MediaUploadError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
85
|
+
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").DeliveryUnavailableError | import("./errors").ExternalServiceError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").FromAddressRequiredError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("..").MediaUploadError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
86
86
|
export declare const validateEmail: (input: {
|
|
87
87
|
readonly conversationId?: string | null | undefined;
|
|
88
88
|
readonly metadata?: {
|
|
@@ -214,12 +214,12 @@ export declare const getStatus: (input: {
|
|
|
214
214
|
export declare const getEvents: ((input: {
|
|
215
215
|
readonly id: string;
|
|
216
216
|
readonly limit?: number | null | undefined;
|
|
217
|
-
readonly cursor?: string |
|
|
217
|
+
readonly cursor?: string | undefined;
|
|
218
218
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"messagesGetEvents">) & {
|
|
219
219
|
readonly pages: (input: {
|
|
220
220
|
readonly id: string;
|
|
221
221
|
readonly limit?: number | null | undefined;
|
|
222
|
-
readonly cursor?: string |
|
|
222
|
+
readonly cursor?: string | undefined;
|
|
223
223
|
}) => import("effect/Stream").Stream<{
|
|
224
224
|
readonly items: readonly {
|
|
225
225
|
readonly id: string & import("effect/Brand").Brand<"MessageEventId">;
|
|
@@ -232,11 +232,11 @@ export declare const getEvents: ((input: {
|
|
|
232
232
|
} | null;
|
|
233
233
|
}[];
|
|
234
234
|
readonly nextCursor: string | null;
|
|
235
|
-
}, 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>;
|
|
235
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
236
236
|
readonly items: (input: {
|
|
237
237
|
readonly id: string;
|
|
238
238
|
readonly limit?: number | null | undefined;
|
|
239
|
-
readonly cursor?: string |
|
|
239
|
+
readonly cursor?: string | undefined;
|
|
240
240
|
}) => import("effect/Stream").Stream<{
|
|
241
241
|
readonly id: string & import("effect/Brand").Brand<"MessageEventId">;
|
|
242
242
|
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
@@ -246,7 +246,7 @@ export declare const getEvents: ((input: {
|
|
|
246
246
|
readonly metadata?: {
|
|
247
247
|
readonly [x: string]: import("./generated").JsonValue;
|
|
248
248
|
} | null;
|
|
249
|
-
}, 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>;
|
|
249
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
250
250
|
};
|
|
251
251
|
export declare const listDeliveries: (input: {
|
|
252
252
|
readonly id: string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export declare const list: ((input?: {
|
|
2
2
|
readonly limit?: number | null | undefined;
|
|
3
|
-
readonly cursor?: string |
|
|
4
|
-
readonly after?: string |
|
|
5
|
-
readonly before?: string |
|
|
3
|
+
readonly cursor?: string | undefined;
|
|
4
|
+
readonly after?: string | undefined;
|
|
5
|
+
readonly before?: string | undefined;
|
|
6
6
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"namespacesList">) & {
|
|
7
7
|
readonly pages: (input?: {
|
|
8
8
|
readonly limit?: number | null | undefined;
|
|
9
|
-
readonly cursor?: string |
|
|
10
|
-
readonly after?: string |
|
|
11
|
-
readonly before?: string |
|
|
9
|
+
readonly cursor?: string | undefined;
|
|
10
|
+
readonly after?: string | undefined;
|
|
11
|
+
readonly before?: string | undefined;
|
|
12
12
|
} | undefined) => import("effect/Stream").Stream<{
|
|
13
13
|
readonly items: readonly {
|
|
14
14
|
readonly id: string & import("effect/Brand").Brand<"NamespaceId">;
|
|
@@ -16,17 +16,17 @@ export declare const list: ((input?: {
|
|
|
16
16
|
readonly createdAt: string;
|
|
17
17
|
}[];
|
|
18
18
|
readonly nextCursor: string | null;
|
|
19
|
-
}, 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>;
|
|
19
|
+
}, 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>;
|
|
20
20
|
readonly items: (input?: {
|
|
21
21
|
readonly limit?: number | null | undefined;
|
|
22
|
-
readonly cursor?: string |
|
|
23
|
-
readonly after?: string |
|
|
24
|
-
readonly before?: string |
|
|
22
|
+
readonly cursor?: string | undefined;
|
|
23
|
+
readonly after?: string | undefined;
|
|
24
|
+
readonly before?: string | undefined;
|
|
25
25
|
} | undefined) => import("effect/Stream").Stream<{
|
|
26
26
|
readonly id: string & import("effect/Brand").Brand<"NamespaceId">;
|
|
27
27
|
readonly name: string;
|
|
28
28
|
readonly createdAt: string;
|
|
29
|
-
}, 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>;
|
|
29
|
+
}, 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>;
|
|
30
30
|
};
|
|
31
31
|
export declare const create: (input: {
|
|
32
32
|
readonly name: string;
|
|
@@ -49,16 +49,16 @@ export declare const remove: (input: {
|
|
|
49
49
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"namespacesRemove">;
|
|
50
50
|
export declare const assignResource: (input: {
|
|
51
51
|
readonly id: string;
|
|
52
|
-
readonly type: "contact" | "domain" | "sender" | "template";
|
|
52
|
+
readonly type: "contact" | "domain" | "sender" | "smsNumber" | "template" | "whatsappNumber";
|
|
53
53
|
readonly resourceId: string;
|
|
54
54
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"namespacesAssignResource">;
|
|
55
55
|
export declare const removeResource: (input: {
|
|
56
56
|
readonly id: string;
|
|
57
|
-
readonly type: "contact" | "domain" | "sender" | "template";
|
|
57
|
+
readonly type: "contact" | "domain" | "sender" | "smsNumber" | "template" | "whatsappNumber";
|
|
58
58
|
readonly resourceId: string;
|
|
59
59
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"namespacesRemoveResource">;
|
|
60
60
|
export declare const getUsage: (input: {
|
|
61
61
|
readonly id: string;
|
|
62
|
-
readonly after?: string |
|
|
63
|
-
readonly before?: string |
|
|
62
|
+
readonly after?: string | undefined;
|
|
63
|
+
readonly before?: string | undefined;
|
|
64
64
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"namespacesGetUsage">;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const list: ((input: {
|
|
2
2
|
readonly id: string;
|
|
3
3
|
readonly limit?: number | null | undefined;
|
|
4
|
-
readonly cursor?: string |
|
|
4
|
+
readonly cursor?: string | undefined;
|
|
5
5
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"newsletterDomainsList">) & {
|
|
6
6
|
readonly pages: (input: {
|
|
7
7
|
readonly id: string;
|
|
8
8
|
readonly limit?: number | null | undefined;
|
|
9
|
-
readonly cursor?: string |
|
|
9
|
+
readonly cursor?: string | undefined;
|
|
10
10
|
}) => import("effect/Stream").Stream<{
|
|
11
11
|
readonly items: readonly {
|
|
12
12
|
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
@@ -30,11 +30,11 @@ export declare const list: ((input: {
|
|
|
30
30
|
readonly verificationErrors: readonly string[];
|
|
31
31
|
}[];
|
|
32
32
|
readonly nextCursor: string | null;
|
|
33
|
-
}, import("./errors").ConflictError | import("./errors").FlagDisabledError | 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>;
|
|
33
|
+
}, import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
34
34
|
readonly items: (input: {
|
|
35
35
|
readonly id: string;
|
|
36
36
|
readonly limit?: number | null | undefined;
|
|
37
|
-
readonly cursor?: string |
|
|
37
|
+
readonly cursor?: string | undefined;
|
|
38
38
|
}) => import("effect/Stream").Stream<{
|
|
39
39
|
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
40
40
|
readonly topicId: string & import("effect/Brand").Brand<"TopicId">;
|
|
@@ -55,7 +55,7 @@ export declare const list: ((input: {
|
|
|
55
55
|
readonly value: string;
|
|
56
56
|
}[];
|
|
57
57
|
readonly verificationErrors: readonly string[];
|
|
58
|
-
}, import("./errors").ConflictError | import("./errors").FlagDisabledError | 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>;
|
|
58
|
+
}, import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
59
59
|
};
|
|
60
60
|
export declare const add: (input: {
|
|
61
61
|
readonly id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const list: (input?: {
|
|
2
|
-
readonly namespaceId?: string |
|
|
2
|
+
readonly namespaceId?: string | undefined;
|
|
3
3
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"newslettersList">;
|
|
4
4
|
export declare const get: (input: {
|
|
5
5
|
readonly id: string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export declare const list: ((input?: {
|
|
2
2
|
readonly limit?: number | null | undefined;
|
|
3
|
-
readonly cursor?: string |
|
|
4
|
-
readonly kind?: "email-domain-provisioning" | "organization-deletion" |
|
|
5
|
-
readonly status?: "failed" | "pending" | "running" | "succeeded" |
|
|
3
|
+
readonly cursor?: string | undefined;
|
|
4
|
+
readonly kind?: "email-domain-provisioning" | "organization-deletion" | undefined;
|
|
5
|
+
readonly status?: "failed" | "pending" | "running" | "succeeded" | undefined;
|
|
6
6
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"operationsList">) & {
|
|
7
7
|
readonly pages: (input?: {
|
|
8
8
|
readonly limit?: number | null | undefined;
|
|
9
|
-
readonly cursor?: string |
|
|
10
|
-
readonly kind?: "email-domain-provisioning" | "organization-deletion" |
|
|
11
|
-
readonly status?: "failed" | "pending" | "running" | "succeeded" |
|
|
9
|
+
readonly cursor?: string | undefined;
|
|
10
|
+
readonly kind?: "email-domain-provisioning" | "organization-deletion" | undefined;
|
|
11
|
+
readonly status?: "failed" | "pending" | "running" | "succeeded" | undefined;
|
|
12
12
|
} | undefined) => import("effect/Stream").Stream<{
|
|
13
13
|
readonly items: readonly {
|
|
14
14
|
readonly id: string & import("effect/Brand").Brand<"OperationId">;
|
|
@@ -34,12 +34,12 @@ export declare const list: ((input?: {
|
|
|
34
34
|
readonly completedAt: string | null;
|
|
35
35
|
}[];
|
|
36
36
|
readonly nextCursor: string | null;
|
|
37
|
-
}, 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>;
|
|
37
|
+
}, 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
38
|
readonly items: (input?: {
|
|
39
39
|
readonly limit?: number | null | undefined;
|
|
40
|
-
readonly cursor?: string |
|
|
41
|
-
readonly kind?: "email-domain-provisioning" | "organization-deletion" |
|
|
42
|
-
readonly status?: "failed" | "pending" | "running" | "succeeded" |
|
|
40
|
+
readonly cursor?: string | undefined;
|
|
41
|
+
readonly kind?: "email-domain-provisioning" | "organization-deletion" | undefined;
|
|
42
|
+
readonly status?: "failed" | "pending" | "running" | "succeeded" | undefined;
|
|
43
43
|
} | undefined) => import("effect/Stream").Stream<{
|
|
44
44
|
readonly id: string & import("effect/Brand").Brand<"OperationId">;
|
|
45
45
|
readonly organizationId: string;
|
|
@@ -62,7 +62,7 @@ export declare const list: ((input?: {
|
|
|
62
62
|
readonly updatedAt: string;
|
|
63
63
|
readonly startedAt: string | null;
|
|
64
64
|
readonly completedAt: string | null;
|
|
65
|
-
}, 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
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
66
66
|
};
|
|
67
67
|
export declare const get: (input: {
|
|
68
68
|
readonly id: string;
|
|
@@ -49,8 +49,8 @@ export declare const update: (input?: {
|
|
|
49
49
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"organizationsUpdate">;
|
|
50
50
|
export declare const createAvatarUpload: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"organizationsCreateAvatarUpload">;
|
|
51
51
|
export declare const getUsage: (input?: {
|
|
52
|
-
readonly after?: string |
|
|
53
|
-
readonly before?: string |
|
|
52
|
+
readonly after?: string | undefined;
|
|
53
|
+
readonly before?: string | undefined;
|
|
54
54
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"organizationsGetUsage">;
|
|
55
55
|
declare const deleteOrganization: (input: {
|
|
56
56
|
readonly confirmationName: string;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export declare const getPolicy: (input: {
|
|
2
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
3
|
+
readonly id: string;
|
|
4
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"policiesGetPolicy">;
|
|
5
|
+
export declare const setPolicy: (input: {
|
|
6
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
7
|
+
readonly id: string;
|
|
8
|
+
readonly presets: readonly string[];
|
|
9
|
+
readonly rules: readonly ({
|
|
10
|
+
readonly match: {
|
|
11
|
+
readonly kind?: "handoff" | "reply" | "send" | "toolCall" | null | undefined;
|
|
12
|
+
readonly effect?: "final" | "read" | "write" | null | undefined;
|
|
13
|
+
readonly channel?: "email" | "sms" | "whatsapp" | null | undefined;
|
|
14
|
+
readonly integration?: string | null | undefined;
|
|
15
|
+
readonly tool?: string | null | undefined;
|
|
16
|
+
readonly subject?: "agent" | "apiKey" | "extension" | "member" | {
|
|
17
|
+
readonly kind: "agent";
|
|
18
|
+
readonly id: string;
|
|
19
|
+
} | {
|
|
20
|
+
readonly kind: "apiKey";
|
|
21
|
+
readonly id: string;
|
|
22
|
+
} | {
|
|
23
|
+
readonly kind: "member";
|
|
24
|
+
readonly userId: string;
|
|
25
|
+
} | {
|
|
26
|
+
readonly kind: "extension";
|
|
27
|
+
readonly id: string;
|
|
28
|
+
} | null | undefined;
|
|
29
|
+
};
|
|
30
|
+
readonly note?: string | null | undefined;
|
|
31
|
+
readonly decide: "model" | "never" | "person" | "run";
|
|
32
|
+
readonly atLeast?: null | undefined;
|
|
33
|
+
} | {
|
|
34
|
+
readonly match: {
|
|
35
|
+
readonly kind?: "handoff" | "reply" | "send" | "toolCall" | null | undefined;
|
|
36
|
+
readonly effect?: "final" | "read" | "write" | null | undefined;
|
|
37
|
+
readonly channel?: "email" | "sms" | "whatsapp" | null | undefined;
|
|
38
|
+
readonly integration?: string | null | undefined;
|
|
39
|
+
readonly tool?: string | null | undefined;
|
|
40
|
+
readonly subject?: "agent" | "apiKey" | "extension" | "member" | {
|
|
41
|
+
readonly kind: "agent";
|
|
42
|
+
readonly id: string;
|
|
43
|
+
} | {
|
|
44
|
+
readonly kind: "apiKey";
|
|
45
|
+
readonly id: string;
|
|
46
|
+
} | {
|
|
47
|
+
readonly kind: "member";
|
|
48
|
+
readonly userId: string;
|
|
49
|
+
} | {
|
|
50
|
+
readonly kind: "extension";
|
|
51
|
+
readonly id: string;
|
|
52
|
+
} | null | undefined;
|
|
53
|
+
};
|
|
54
|
+
readonly note?: string | null | undefined;
|
|
55
|
+
readonly decide?: null | undefined;
|
|
56
|
+
readonly atLeast: "model" | "never" | "person" | "run";
|
|
57
|
+
})[];
|
|
58
|
+
readonly instructions?: string | null | undefined;
|
|
59
|
+
readonly ifVersion: number;
|
|
60
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"policiesSetPolicy">;
|
|
61
|
+
export declare const deletePolicy: (input: {
|
|
62
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
63
|
+
readonly id: string;
|
|
64
|
+
readonly ifVersion: number;
|
|
65
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"policiesDeletePolicy">;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { PoliciesGroup } from "./generated/policies.js";
|
|
4
|
+
// src/effect/policies.ts
|
|
5
|
+
var policies_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
deletePolicy: () => deletePolicy,
|
|
7
|
+
getPolicy: () => getPolicy,
|
|
8
|
+
setPolicy: () => setPolicy
|
|
9
|
+
});
|
|
10
|
+
const make = /* @__PURE__ */ forGroup(PoliciesGroup);
|
|
11
|
+
const getPolicy = /* @__PURE__ */ make("policiesGetPolicy");
|
|
12
|
+
const setPolicy = /* @__PURE__ */ make("policiesSetPolicy");
|
|
13
|
+
const deletePolicy = /* @__PURE__ */ make("policiesDeletePolicy");
|
|
14
|
+
export { deletePolicy, getPolicy, policies_exports, setPolicy };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=policies.js.map
|