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/email.js
CHANGED
|
@@ -1,2 +1,140 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { EmailGroup, TrackingRecipientEmail } from "./generated/email.js";
|
|
4
|
+
import { addEmailSender } from "./internal/email-sender.js";
|
|
5
|
+
import { sendEmail } from "./internal/send.js";
|
|
6
|
+
//#region src/effect/email.ts
|
|
7
|
+
var email_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
+
TrackingRecipientEmail: () => TrackingRecipientEmail,
|
|
9
|
+
addBlock: () => addBlock,
|
|
10
|
+
addDomain: () => addDomain,
|
|
11
|
+
addSender: () => addSender,
|
|
12
|
+
advanceDomainVerification: () => advanceDomainVerification,
|
|
13
|
+
buildCustomTrackingDomainConnectApplyUrl: () => buildCustomTrackingDomainConnectApplyUrl,
|
|
14
|
+
buildDomainConnectApplyUrl: () => buildDomainConnectApplyUrl,
|
|
15
|
+
cancelDomainWarmingBatch: () => cancelDomainWarmingBatch,
|
|
16
|
+
checkBlocked: () => checkBlocked,
|
|
17
|
+
checkSenderVerification: () => checkSenderVerification,
|
|
18
|
+
completeCustomTrackingDomainConnect: () => completeCustomTrackingDomainConnect,
|
|
19
|
+
completeDomainConnect: () => completeDomainConnect,
|
|
20
|
+
completeDomainWarming: () => completeDomainWarming,
|
|
21
|
+
countSuppressions: () => countSuppressions,
|
|
22
|
+
createDomainWarmingPlan: () => createDomainWarmingPlan,
|
|
23
|
+
createForwardingRule: () => createForwardingRule,
|
|
24
|
+
deleteForwardingRule: () => deleteForwardingRule,
|
|
25
|
+
detectRegistrar: () => detectRegistrar,
|
|
26
|
+
disableCatchAll: () => disableCatchAll,
|
|
27
|
+
disableCustomTracking: () => disableCustomTracking,
|
|
28
|
+
enableCatchAll: () => enableCatchAll,
|
|
29
|
+
enableCustomTracking: () => enableCustomTracking,
|
|
30
|
+
enableReceiving: () => enableReceiving,
|
|
31
|
+
getBlockLogs: () => getBlockLogs,
|
|
32
|
+
getCatchAllConfig: () => getCatchAllConfig,
|
|
33
|
+
getCatchAllStats: () => getCatchAllStats,
|
|
34
|
+
getCustomTracking: () => getCustomTracking,
|
|
35
|
+
getCustomTrackingDomainConnect: () => getCustomTrackingDomainConnect,
|
|
36
|
+
getDomainById: () => getDomainById,
|
|
37
|
+
getDomainConnect: () => getDomainConnect,
|
|
38
|
+
getDomainVerification: () => getDomainVerification,
|
|
39
|
+
getDomainWarming: () => getDomainWarming,
|
|
40
|
+
getForwardingLog: () => getForwardingLog,
|
|
41
|
+
getOnboardingReview: () => getOnboardingReview,
|
|
42
|
+
getReceivingStatus: () => getReceivingStatus,
|
|
43
|
+
getRecipientTrackingPreference: () => getRecipientTrackingPreference,
|
|
44
|
+
getSender: () => getSender,
|
|
45
|
+
getStats: () => getStats,
|
|
46
|
+
getTrackingDefaults: () => getTrackingDefaults,
|
|
47
|
+
listBlocks: () => listBlocks,
|
|
48
|
+
listDomains: () => listDomains,
|
|
49
|
+
listForwardingRules: () => listForwardingRules,
|
|
50
|
+
listSenders: () => listSenders,
|
|
51
|
+
listSuppressions: () => listSuppressions,
|
|
52
|
+
pauseDomainWarming: () => pauseDomainWarming,
|
|
53
|
+
reapplyOnboardingReview: () => reapplyOnboardingReview,
|
|
54
|
+
recheckCustomTracking: () => recheckCustomTracking,
|
|
55
|
+
removeBlock: () => removeBlock,
|
|
56
|
+
removeDomain: () => removeDomain,
|
|
57
|
+
removeSender: () => removeSender,
|
|
58
|
+
removeSuppression: () => removeSuppression,
|
|
59
|
+
respondToOnboardingInformationRequest: () => respondToOnboardingInformationRequest,
|
|
60
|
+
resumeDomainWarming: () => resumeDomainWarming,
|
|
61
|
+
rotateDomainDkim: () => rotateDomainDkim,
|
|
62
|
+
send: () => send,
|
|
63
|
+
setDefaultDomain: () => setDefaultDomain,
|
|
64
|
+
setDefaultSender: () => setDefaultSender,
|
|
65
|
+
updateBlock: () => updateBlock,
|
|
66
|
+
updateCatchAllConfig: () => updateCatchAllConfig,
|
|
67
|
+
updateDomainConfig: () => updateDomainConfig,
|
|
68
|
+
updateDomainWarmingPolicy: () => updateDomainWarmingPolicy,
|
|
69
|
+
updateForwardingRule: () => updateForwardingRule,
|
|
70
|
+
updateRecipientTrackingPreference: () => updateRecipientTrackingPreference,
|
|
71
|
+
updateTrackingDefaults: () => updateTrackingDefaults
|
|
72
|
+
});
|
|
73
|
+
const make = /* @__PURE__ */ forGroup(EmailGroup);
|
|
74
|
+
const send = sendEmail;
|
|
75
|
+
const getTrackingDefaults = /* @__PURE__ */ make("emailGetTrackingDefaults");
|
|
76
|
+
const updateTrackingDefaults = /* @__PURE__ */ make("emailUpdateTrackingDefaults");
|
|
77
|
+
const getRecipientTrackingPreference = /* @__PURE__ */ make("emailGetRecipientTrackingPreference");
|
|
78
|
+
const updateRecipientTrackingPreference = /* @__PURE__ */ make("emailUpdateRecipientTrackingPreference");
|
|
79
|
+
const listDomains = /* @__PURE__ */ make("emailListDomains");
|
|
80
|
+
const addDomain = /* @__PURE__ */ make("emailAddDomain");
|
|
81
|
+
const rotateDomainDkim = /* @__PURE__ */ make("emailRotateDomainDkim");
|
|
82
|
+
const getDomainVerification = /* @__PURE__ */ make("emailGetDomainVerification");
|
|
83
|
+
const advanceDomainVerification = /* @__PURE__ */ make("emailAdvanceDomainVerification");
|
|
84
|
+
const getDomainById = /* @__PURE__ */ make("emailGetDomainById");
|
|
85
|
+
const removeDomain = /* @__PURE__ */ make("emailRemoveDomain");
|
|
86
|
+
const setDefaultDomain = /* @__PURE__ */ make("emailSetDefaultDomain");
|
|
87
|
+
const updateDomainConfig = /* @__PURE__ */ make("emailUpdateDomainConfig");
|
|
88
|
+
const detectRegistrar = /* @__PURE__ */ make("emailDetectRegistrar");
|
|
89
|
+
const getDomainConnect = /* @__PURE__ */ make("emailGetDomainConnect");
|
|
90
|
+
const buildDomainConnectApplyUrl = /* @__PURE__ */ make("emailBuildDomainConnectApplyUrl");
|
|
91
|
+
const completeDomainConnect = /* @__PURE__ */ make("emailCompleteDomainConnect");
|
|
92
|
+
const enableReceiving = /* @__PURE__ */ make("emailEnableReceiving");
|
|
93
|
+
const getReceivingStatus = /* @__PURE__ */ make("emailGetReceivingStatus");
|
|
94
|
+
const enableCustomTracking = /* @__PURE__ */ make("emailEnableCustomTracking");
|
|
95
|
+
const getCustomTracking = /* @__PURE__ */ make("emailGetCustomTracking");
|
|
96
|
+
const recheckCustomTracking = /* @__PURE__ */ make("emailRecheckCustomTracking");
|
|
97
|
+
const getCustomTrackingDomainConnect = /* @__PURE__ */ make("emailGetCustomTrackingDomainConnect");
|
|
98
|
+
const buildCustomTrackingDomainConnectApplyUrl = /* @__PURE__ */ make("emailBuildCustomTrackingDomainConnectApplyUrl");
|
|
99
|
+
const completeCustomTrackingDomainConnect = /* @__PURE__ */ make("emailCompleteCustomTrackingDomainConnect");
|
|
100
|
+
const disableCustomTracking = /* @__PURE__ */ make("emailDisableCustomTracking");
|
|
101
|
+
const getDomainWarming = /* @__PURE__ */ make("emailGetDomainWarming");
|
|
102
|
+
const createDomainWarmingPlan = /* @__PURE__ */ make("emailCreateDomainWarmingPlan");
|
|
103
|
+
const updateDomainWarmingPolicy = /* @__PURE__ */ make("emailUpdateDomainWarmingPolicy");
|
|
104
|
+
const cancelDomainWarmingBatch = /* @__PURE__ */ make("emailCancelDomainWarmingBatch");
|
|
105
|
+
const pauseDomainWarming = /* @__PURE__ */ make("emailPauseDomainWarming");
|
|
106
|
+
const resumeDomainWarming = /* @__PURE__ */ make("emailResumeDomainWarming");
|
|
107
|
+
const completeDomainWarming = /* @__PURE__ */ make("emailCompleteDomainWarming");
|
|
108
|
+
const getOnboardingReview = /* @__PURE__ */ make("emailGetOnboardingReview");
|
|
109
|
+
const reapplyOnboardingReview = /* @__PURE__ */ make("emailReapplyOnboardingReview");
|
|
110
|
+
const respondToOnboardingInformationRequest = /* @__PURE__ */ make("emailRespondToOnboardingInformationRequest");
|
|
111
|
+
const listSenders = /* @__PURE__ */ make("emailListSenders");
|
|
112
|
+
const getSender = /* @__PURE__ */ make("emailGetSender");
|
|
113
|
+
const addSender = addEmailSender;
|
|
114
|
+
const checkSenderVerification = /* @__PURE__ */ make("emailCheckSenderVerification");
|
|
115
|
+
const removeSender = /* @__PURE__ */ make("emailRemoveSender");
|
|
116
|
+
const setDefaultSender = /* @__PURE__ */ make("emailSetDefaultSender");
|
|
117
|
+
const getStats = /* @__PURE__ */ make("emailGetStats");
|
|
118
|
+
const enableCatchAll = /* @__PURE__ */ make("emailEnableCatchAll");
|
|
119
|
+
const disableCatchAll = /* @__PURE__ */ make("emailDisableCatchAll");
|
|
120
|
+
const getCatchAllConfig = /* @__PURE__ */ make("emailGetCatchAllConfig");
|
|
121
|
+
const updateCatchAllConfig = /* @__PURE__ */ make("emailUpdateCatchAllConfig");
|
|
122
|
+
const getCatchAllStats = /* @__PURE__ */ make("emailGetCatchAllStats");
|
|
123
|
+
const listSuppressions = /* @__PURE__ */ make("emailListSuppressions");
|
|
124
|
+
const countSuppressions = /* @__PURE__ */ make("emailCountSuppressions");
|
|
125
|
+
const removeSuppression = /* @__PURE__ */ make("emailRemoveSuppression");
|
|
126
|
+
const listBlocks = /* @__PURE__ */ make("emailListBlocks");
|
|
127
|
+
const addBlock = /* @__PURE__ */ make("emailAddBlock");
|
|
128
|
+
const removeBlock = /* @__PURE__ */ make("emailRemoveBlock");
|
|
129
|
+
const updateBlock = /* @__PURE__ */ make("emailUpdateBlock");
|
|
130
|
+
const getBlockLogs = /* @__PURE__ */ make("emailGetBlockLogs");
|
|
131
|
+
const checkBlocked = /* @__PURE__ */ make("emailCheckBlocked");
|
|
132
|
+
const listForwardingRules = /* @__PURE__ */ make("emailListForwardingRules");
|
|
133
|
+
const createForwardingRule = /* @__PURE__ */ make("emailCreateForwardingRule");
|
|
134
|
+
const deleteForwardingRule = /* @__PURE__ */ make("emailDeleteForwardingRule");
|
|
135
|
+
const updateForwardingRule = /* @__PURE__ */ make("emailUpdateForwardingRule");
|
|
136
|
+
const getForwardingLog = /* @__PURE__ */ make("emailGetForwardingLog");
|
|
137
|
+
//#endregion
|
|
138
|
+
export { TrackingRecipientEmail, addBlock, addDomain, addSender, advanceDomainVerification, buildCustomTrackingDomainConnectApplyUrl, buildDomainConnectApplyUrl, cancelDomainWarmingBatch, checkBlocked, checkSenderVerification, completeCustomTrackingDomainConnect, completeDomainConnect, completeDomainWarming, countSuppressions, createDomainWarmingPlan, createForwardingRule, deleteForwardingRule, detectRegistrar, disableCatchAll, disableCustomTracking, email_exports, enableCatchAll, enableCustomTracking, enableReceiving, getBlockLogs, getCatchAllConfig, getCatchAllStats, getCustomTracking, getCustomTrackingDomainConnect, getDomainById, getDomainConnect, getDomainVerification, getDomainWarming, getForwardingLog, getOnboardingReview, getReceivingStatus, getRecipientTrackingPreference, getSender, getStats, getTrackingDefaults, listBlocks, listDomains, listForwardingRules, listSenders, listSuppressions, pauseDomainWarming, reapplyOnboardingReview, recheckCustomTracking, removeBlock, removeDomain, removeSender, removeSuppression, respondToOnboardingInformationRequest, resumeDomainWarming, rotateDomainDkim, send, setDefaultDomain, setDefaultSender, updateBlock, updateCatchAllConfig, updateDomainConfig, updateDomainWarmingPolicy, updateForwardingRule, updateRecipientTrackingPreference, updateTrackingDefaults };
|
|
139
|
+
|
|
140
|
+
//# sourceMappingURL=email.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxChannelUnsupportedError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError, DeliveryUnavailableError, } from "./generated/shared";
|
|
2
|
+
export { MediaUploadError } from "../inline-attachments";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { MediaUploadError } from "../inline-attachments.js";
|
|
2
|
+
import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxChannelUnsupportedError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError } from "./generated/shared.js";
|
|
3
|
+
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxChannelUnsupportedError, MailboxSendConflictError, MailboxSendRefusedError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError };
|
package/dist/effect/events.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export declare const create: (input: {
|
|
|
53
53
|
};
|
|
54
54
|
readonly occurredAt: string;
|
|
55
55
|
readonly recordedAt: string;
|
|
56
|
-
}, import("./
|
|
56
|
+
}, import("./errors").BillingProviderError | import("./errors").ConflictError | 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>;
|
|
57
57
|
export declare const batch: (input: {
|
|
58
58
|
readonly events: readonly {
|
|
59
59
|
readonly contact: {
|
|
@@ -118,4 +118,4 @@ export declare const batch: (input: {
|
|
|
118
118
|
} | null;
|
|
119
119
|
readonly error?: string | null;
|
|
120
120
|
}[];
|
|
121
|
-
}, import("./
|
|
121
|
+
}, 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>;
|
package/dist/effect/events.js
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { CreateEventPayload } from "./generated/shared.js";
|
|
3
|
+
import { forGroup } from "./internal/operation.js";
|
|
4
|
+
import { EventsGroup } from "./generated/events.js";
|
|
5
|
+
//#region src/effect/events.ts
|
|
6
|
+
var events_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
CreateEventPayload: () => CreateEventPayload,
|
|
8
|
+
batch: () => batch,
|
|
9
|
+
create: () => create
|
|
10
|
+
});
|
|
11
|
+
const make = /* @__PURE__ */ forGroup(EventsGroup);
|
|
12
|
+
const create = /* @__PURE__ */ make("eventsCreate");
|
|
13
|
+
const batch = /* @__PURE__ */ make("eventsBatch");
|
|
14
|
+
//#endregion
|
|
15
|
+
export { CreateEventPayload, batch, create, events_exports };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -18,7 +18,7 @@ export declare const list: ((input?: {
|
|
|
18
18
|
readonly createdAt: string;
|
|
19
19
|
}[];
|
|
20
20
|
readonly nextCursor: string | null;
|
|
21
|
-
}, import("./
|
|
21
|
+
}, 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>) & {
|
|
22
22
|
readonly pages: (input?: {
|
|
23
23
|
readonly limit?: string | null | undefined;
|
|
24
24
|
readonly cursor?: string | null | undefined;
|
|
@@ -39,7 +39,7 @@ export declare const list: ((input?: {
|
|
|
39
39
|
readonly createdAt: string;
|
|
40
40
|
}[];
|
|
41
41
|
readonly nextCursor: string | null;
|
|
42
|
-
}, import("./
|
|
42
|
+
}, 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>;
|
|
43
43
|
readonly items: (input?: {
|
|
44
44
|
readonly limit?: string | null | undefined;
|
|
45
45
|
readonly cursor?: string | null | undefined;
|
|
@@ -57,7 +57,7 @@ export declare const list: ((input?: {
|
|
|
57
57
|
readonly runtime: "hosted" | "webhook";
|
|
58
58
|
readonly status: "active" | "disabled";
|
|
59
59
|
readonly createdAt: string;
|
|
60
|
-
}, import("./
|
|
60
|
+
}, 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>;
|
|
61
61
|
};
|
|
62
62
|
export declare const install: (input: {
|
|
63
63
|
readonly extension: string;
|
|
@@ -98,7 +98,7 @@ export declare const install: (input: {
|
|
|
98
98
|
readonly apiKey: import("effect/Redacted").Redacted<string>;
|
|
99
99
|
readonly webhookSecret: import("effect/Redacted").Redacted<string>;
|
|
100
100
|
} | null;
|
|
101
|
-
}, import("./
|
|
101
|
+
}, 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>;
|
|
102
102
|
export declare const upgrade: (input: {
|
|
103
103
|
readonly id: string;
|
|
104
104
|
readonly version?: string | null | undefined;
|
|
@@ -164,7 +164,7 @@ export declare const upgrade: (input: {
|
|
|
164
164
|
readonly changedBy: string & import("effect/Brand").Brand<"UserId">;
|
|
165
165
|
readonly changedAt: string;
|
|
166
166
|
} | null;
|
|
167
|
-
}, import("./
|
|
167
|
+
}, 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>;
|
|
168
168
|
export declare const get: (input: {
|
|
169
169
|
readonly id: string;
|
|
170
170
|
}) => import("effect/Effect").Effect<{
|
|
@@ -192,12 +192,12 @@ export declare const get: (input: {
|
|
|
192
192
|
} | null;
|
|
193
193
|
readonly updatedAt: string;
|
|
194
194
|
readonly disabledAt: string | null;
|
|
195
|
-
}, import("./
|
|
195
|
+
}, 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>;
|
|
196
196
|
export declare const uninstall: (input: {
|
|
197
197
|
readonly id: string;
|
|
198
198
|
}) => import("effect/Effect").Effect<{
|
|
199
199
|
readonly success: boolean;
|
|
200
|
-
}, import("./
|
|
200
|
+
}, 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>;
|
|
201
201
|
export declare const disable: (input: {
|
|
202
202
|
readonly id: string;
|
|
203
203
|
}) => import("effect/Effect").Effect<{
|
|
@@ -225,7 +225,7 @@ export declare const disable: (input: {
|
|
|
225
225
|
} | null;
|
|
226
226
|
readonly updatedAt: string;
|
|
227
227
|
readonly disabledAt: string | null;
|
|
228
|
-
}, import("./
|
|
228
|
+
}, 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>;
|
|
229
229
|
export declare const enable: (input: {
|
|
230
230
|
readonly id: string;
|
|
231
231
|
}) => import("effect/Effect").Effect<{
|
|
@@ -253,7 +253,7 @@ export declare const enable: (input: {
|
|
|
253
253
|
} | null;
|
|
254
254
|
readonly updatedAt: string;
|
|
255
255
|
readonly disabledAt: string | null;
|
|
256
|
-
}, import("./
|
|
256
|
+
}, 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>;
|
|
257
257
|
export declare const listRuns: (input: {
|
|
258
258
|
readonly id: string;
|
|
259
259
|
}) => import("effect/Effect").Effect<{
|
|
@@ -267,7 +267,7 @@ export declare const listRuns: (input: {
|
|
|
267
267
|
readonly outcome: "budget_exhausted" | "failed" | "revoked" | "succeeded" | "timed_out";
|
|
268
268
|
readonly error: string | null;
|
|
269
269
|
}[];
|
|
270
|
-
}, import("./
|
|
270
|
+
}, 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>;
|
|
271
271
|
export declare const getRun: (input: {
|
|
272
272
|
readonly id: string;
|
|
273
273
|
readonly runId: string;
|
|
@@ -281,4 +281,4 @@ export declare const getRun: (input: {
|
|
|
281
281
|
readonly outcome: "budget_exhausted" | "failed" | "revoked" | "succeeded" | "timed_out";
|
|
282
282
|
readonly error: string | null;
|
|
283
283
|
readonly logs: readonly string[];
|
|
284
|
-
}, import("./
|
|
284
|
+
}, 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,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { ExtensionInstallationsGroup } from "./generated/extension-installations.js";
|
|
4
|
+
//#region src/effect/extension-installations.ts
|
|
5
|
+
var extension_installations_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
disable: () => disable,
|
|
7
|
+
enable: () => enable,
|
|
8
|
+
get: () => get,
|
|
9
|
+
getRun: () => getRun,
|
|
10
|
+
install: () => install,
|
|
11
|
+
list: () => list,
|
|
12
|
+
listRuns: () => listRuns,
|
|
13
|
+
uninstall: () => uninstall,
|
|
14
|
+
upgrade: () => upgrade
|
|
15
|
+
});
|
|
16
|
+
const make = /* @__PURE__ */ forGroup(ExtensionInstallationsGroup);
|
|
17
|
+
const list = /* @__PURE__ */ make("extensionInstallationsList");
|
|
18
|
+
const install = /* @__PURE__ */ make("extensionInstallationsInstall");
|
|
19
|
+
const upgrade = /* @__PURE__ */ make("extensionInstallationsUpgrade");
|
|
20
|
+
const get = /* @__PURE__ */ make("extensionInstallationsGet");
|
|
21
|
+
const uninstall = /* @__PURE__ */ make("extensionInstallationsUninstall");
|
|
22
|
+
const disable = /* @__PURE__ */ make("extensionInstallationsDisable");
|
|
23
|
+
const enable = /* @__PURE__ */ make("extensionInstallationsEnable");
|
|
24
|
+
const listRuns = /* @__PURE__ */ make("extensionInstallationsListRuns");
|
|
25
|
+
const getRun = /* @__PURE__ */ make("extensionInstallationsGetRun");
|
|
26
|
+
//#endregion
|
|
27
|
+
export { disable, enable, extension_installations_exports, get, getRun, install, list, listRuns, uninstall, upgrade };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=extension-installations.js.map
|
|
@@ -18,7 +18,7 @@ export declare const list: ((input?: {
|
|
|
18
18
|
readonly updatedAt: string;
|
|
19
19
|
}[];
|
|
20
20
|
readonly nextCursor: string | null;
|
|
21
|
-
}, import("./
|
|
21
|
+
}, 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>) & {
|
|
22
22
|
readonly pages: (input?: {
|
|
23
23
|
readonly limit?: string | null | undefined;
|
|
24
24
|
readonly cursor?: string | null | undefined;
|
|
@@ -39,7 +39,7 @@ export declare const list: ((input?: {
|
|
|
39
39
|
readonly updatedAt: string;
|
|
40
40
|
}[];
|
|
41
41
|
readonly nextCursor: string | null;
|
|
42
|
-
}, import("./
|
|
42
|
+
}, 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>;
|
|
43
43
|
readonly items: (input?: {
|
|
44
44
|
readonly limit?: string | null | undefined;
|
|
45
45
|
readonly cursor?: string | null | undefined;
|
|
@@ -57,7 +57,7 @@ export declare const list: ((input?: {
|
|
|
57
57
|
};
|
|
58
58
|
readonly createdAt: string;
|
|
59
59
|
readonly updatedAt: string;
|
|
60
|
-
}, import("./
|
|
60
|
+
}, 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>;
|
|
61
61
|
};
|
|
62
62
|
export declare const publish: (input: {
|
|
63
63
|
readonly manifest: {
|
|
@@ -103,7 +103,7 @@ export declare const publish: (input: {
|
|
|
103
103
|
readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
|
|
104
104
|
};
|
|
105
105
|
};
|
|
106
|
-
}, import("./
|
|
106
|
+
}, 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>;
|
|
107
107
|
export declare const get: (input: {
|
|
108
108
|
readonly id: string;
|
|
109
109
|
}) => import("effect/Effect").Effect<{
|
|
@@ -118,7 +118,7 @@ export declare const get: (input: {
|
|
|
118
118
|
};
|
|
119
119
|
readonly createdAt: string;
|
|
120
120
|
readonly updatedAt: string;
|
|
121
|
-
}, import("./
|
|
121
|
+
}, 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>;
|
|
122
122
|
export declare const listVersions: ((input: {
|
|
123
123
|
readonly id: string;
|
|
124
124
|
readonly limit?: string | null | undefined;
|
|
@@ -135,7 +135,7 @@ export declare const listVersions: ((input: {
|
|
|
135
135
|
readonly publishedAt: string;
|
|
136
136
|
}[];
|
|
137
137
|
readonly nextCursor: string | null;
|
|
138
|
-
}, import("./
|
|
138
|
+
}, 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>) & {
|
|
139
139
|
readonly pages: (input: {
|
|
140
140
|
readonly id: string;
|
|
141
141
|
readonly limit?: string | null | undefined;
|
|
@@ -152,7 +152,7 @@ export declare const listVersions: ((input: {
|
|
|
152
152
|
readonly publishedAt: string;
|
|
153
153
|
}[];
|
|
154
154
|
readonly nextCursor: string | null;
|
|
155
|
-
}, import("./
|
|
155
|
+
}, 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>;
|
|
156
156
|
readonly items: (input: {
|
|
157
157
|
readonly id: string;
|
|
158
158
|
readonly limit?: string | null | undefined;
|
|
@@ -166,7 +166,7 @@ export declare const listVersions: ((input: {
|
|
|
166
166
|
readonly sizeBytes: number;
|
|
167
167
|
} | null;
|
|
168
168
|
readonly publishedAt: string;
|
|
169
|
-
}, import("./
|
|
169
|
+
}, 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>;
|
|
170
170
|
};
|
|
171
171
|
export declare const getVersion: (input: {
|
|
172
172
|
readonly id: string;
|
|
@@ -189,4 +189,4 @@ export declare const getVersion: (input: {
|
|
|
189
189
|
readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
|
|
190
190
|
readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
|
|
191
191
|
};
|
|
192
|
-
}, import("./
|
|
192
|
+
}, 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,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { ExtensionsGroup } from "./generated/extensions.js";
|
|
4
|
+
//#region src/effect/extensions.ts
|
|
5
|
+
var extensions_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
get: () => get,
|
|
7
|
+
getVersion: () => getVersion,
|
|
8
|
+
list: () => list,
|
|
9
|
+
listVersions: () => listVersions,
|
|
10
|
+
publish: () => publish
|
|
11
|
+
});
|
|
12
|
+
const make = /* @__PURE__ */ forGroup(ExtensionsGroup);
|
|
13
|
+
const list = /* @__PURE__ */ make("extensionsList");
|
|
14
|
+
const publish = /* @__PURE__ */ make("extensionsPublish");
|
|
15
|
+
const get = /* @__PURE__ */ make("extensionsGet");
|
|
16
|
+
const listVersions = /* @__PURE__ */ make("extensionsListVersions");
|
|
17
|
+
const getVersion = /* @__PURE__ */ make("extensionsGetVersion");
|
|
18
|
+
//#endregion
|
|
19
|
+
export { extensions_exports, get, getVersion, list, listVersions, publish };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=extensions.js.map
|
|
@@ -9,4 +9,4 @@ export declare const send: (input: {
|
|
|
9
9
|
}) => import("effect/Effect").Effect<{
|
|
10
10
|
readonly id: string & import("effect/Brand").Brand<"FeedbackId">;
|
|
11
11
|
readonly createdAt: string;
|
|
12
|
-
}, import("./
|
|
12
|
+
}, 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>;
|
package/dist/effect/feedback.js
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { SendFeedback } from "./generated/shared.js";
|
|
3
|
+
import { forGroup } from "./internal/operation.js";
|
|
4
|
+
import { FeedbackGroup } from "./generated/feedback.js";
|
|
5
|
+
//#region src/effect/feedback.ts
|
|
6
|
+
var feedback_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
SendPayload: () => SendFeedback,
|
|
8
|
+
send: () => send
|
|
9
|
+
});
|
|
10
|
+
const send = /* @__PURE__ */ (/* @__PURE__ */ forGroup(FeedbackGroup))("feedbackSend");
|
|
11
|
+
//#endregion
|
|
12
|
+
export { SendFeedback as SendPayload, feedback_exports, send };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=feedback.js.map
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Jt as UnauthorizedError, K as ForbiddenError, Y as InternalError, en as ValidationError, i as AnalyticsQueryError, q as GatewayTimeoutError, s as ApiKeySecurityMiddleware } from "./client-DOzUrdTE.js";
|
|
4
|
-
import { n as forGroup } from "./operation-n_IYgNVK.js";
|
|
1
|
+
import { AbsoluteInstant } from "../runtime.js";
|
|
2
|
+
import { AnalyticsQueryError, ApiKeySecurityMiddleware, ForbiddenError, GatewayTimeoutError, InternalError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
5
3
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
6
4
|
import * as Schema from "effect/Schema";
|
|
7
5
|
//#region src/effect/generated/analytics.ts
|
|
@@ -185,23 +183,6 @@ var AnalyticsGroup = class extends HttpApiGroup.make("Analytics").add(HttpApiEnd
|
|
|
185
183
|
]
|
|
186
184
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "analytics.getTopContacts").annotate(OpenApi.Summary, "List top contacts by message volume").annotate(OpenApi.Description, "Returns the contacts your organization exchanged the most messages with over the selected date range. `sortBy` chooses the traffic `messageCount` reports and ranks by: `sent` counts outbound messages addressed to the contact, `received` counts inbound messages the contact sent you, and `total` (the default) counts both. Contacts with no traffic in the range are omitted, and at most 100 are returned.")).annotate(OpenApi.Description, "Messaging analytics, channel stats, and data export. Every date range is half-open — `after` inclusive, `before` exclusive — and may span at most 366 days. Both bounds are absolute ISO-8601 instants carrying `Z` or a numeric offset; a bare calendar date is rejected, because reading it as UTC midnight would shift every bucket for an organization outside UTC. `AnalyticsQueryError` refuses a longer span and a `before` sent without an `after`, which bounds nothing. Omitting both bounds reports the organization's whole history. Calendar buckets follow the organization's timezone.") {};
|
|
187
185
|
//#endregion
|
|
188
|
-
|
|
189
|
-
var analytics_exports = /* @__PURE__ */ __exportAll({
|
|
190
|
-
exportData: () => exportData,
|
|
191
|
-
getChannelStats: () => getChannelStats,
|
|
192
|
-
getDeliveryMetrics: () => getDeliveryMetrics,
|
|
193
|
-
getHourlyDistribution: () => getHourlyDistribution,
|
|
194
|
-
getStats: () => getStats,
|
|
195
|
-
getTopContacts: () => getTopContacts
|
|
196
|
-
});
|
|
197
|
-
const make = forGroup(AnalyticsGroup);
|
|
198
|
-
const getStats = make("analyticsGetStats");
|
|
199
|
-
const getChannelStats = make("analyticsGetChannelStats");
|
|
200
|
-
const getTopContacts = make("analyticsGetTopContacts");
|
|
201
|
-
const getHourlyDistribution = make("analyticsGetHourlyDistribution");
|
|
202
|
-
const getDeliveryMetrics = make("analyticsGetDeliveryMetrics");
|
|
203
|
-
const exportData = make("analyticsExportData");
|
|
204
|
-
//#endregion
|
|
205
|
-
export { getHourlyDistribution as a, getDeliveryMetrics as i, exportData as n, getStats as o, getChannelStats as r, getTopContacts as s, analytics_exports as t };
|
|
186
|
+
export { AnalyticsExportData200, AnalyticsExportData400, AnalyticsExportData401, AnalyticsExportData403, AnalyticsExportData422, AnalyticsExportData500, AnalyticsExportData504, AnalyticsExportDataRequestJson, AnalyticsGetChannelStats200, AnalyticsGetChannelStats400, AnalyticsGetChannelStats401, AnalyticsGetChannelStats403, AnalyticsGetChannelStats422, AnalyticsGetChannelStats500, AnalyticsGetChannelStats504, AnalyticsGetChannelStatsQuery, AnalyticsGetDeliveryMetrics200, AnalyticsGetDeliveryMetrics400, AnalyticsGetDeliveryMetrics401, AnalyticsGetDeliveryMetrics403, AnalyticsGetDeliveryMetrics422, AnalyticsGetDeliveryMetrics500, AnalyticsGetDeliveryMetrics504, AnalyticsGetDeliveryMetricsQuery, AnalyticsGetHourlyDistribution200, AnalyticsGetHourlyDistribution400, AnalyticsGetHourlyDistribution401, AnalyticsGetHourlyDistribution403, AnalyticsGetHourlyDistribution422, AnalyticsGetHourlyDistribution500, AnalyticsGetHourlyDistribution504, AnalyticsGetHourlyDistributionQuery, AnalyticsGetStats200, AnalyticsGetStats400, AnalyticsGetStats401, AnalyticsGetStats403, AnalyticsGetStats422, AnalyticsGetStats500, AnalyticsGetStats504, AnalyticsGetStatsQuery, AnalyticsGetTopContacts200, AnalyticsGetTopContacts400, AnalyticsGetTopContacts401, AnalyticsGetTopContacts403, AnalyticsGetTopContacts422, AnalyticsGetTopContacts500, AnalyticsGetTopContacts504, AnalyticsGetTopContactsQuery, AnalyticsGroup };
|
|
206
187
|
|
|
207
|
-
//# sourceMappingURL=analytics
|
|
188
|
+
//# sourceMappingURL=analytics.js.map
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { D as Cursor, Ht as SuccessResponse, Jt as UnauthorizedError, K as ForbiddenError, Lt as ResourceNotFoundError, Nt as PaymentRequiredError, Pt as RateLimitedError, Y as InternalError, a as ApiKeyAccess, en as ValidationError, ht as MailboxSendMode, l as BillingProviderError, o as ApiKeyId, q as GatewayTimeoutError, s as ApiKeySecurityMiddleware } from "./client-DOzUrdTE.js";
|
|
4
|
-
import { n as forGroup } from "./operation-n_IYgNVK.js";
|
|
1
|
+
import { SensitiveString } from "../runtime.js";
|
|
2
|
+
import { ApiKeyAccess, ApiKeyId, ApiKeySecurityMiddleware, BillingProviderError, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, MailboxSendMode, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared.js";
|
|
5
3
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
6
4
|
import * as Schema from "effect/Schema";
|
|
7
5
|
//#region src/effect/generated/api-keys.ts
|
|
@@ -246,29 +244,6 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
|
|
|
246
244
|
]
|
|
247
245
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "apiKeys.getStats").annotate(OpenApi.Summary, "Get API key send statistics").annotate(OpenApi.Description, "Returns aggregate send counts and daily volume attributed to an API key between `after` and `before`, a window of at most 90 days that defaults to the last 30 days.")).annotate(OpenApi.Description, "API key management, rotation, and usage statistics") {};
|
|
248
246
|
//#endregion
|
|
249
|
-
|
|
250
|
-
var api_keys_exports = /* @__PURE__ */ __exportAll({
|
|
251
|
-
CreatePayload: () => ApiKeysCreateRequestJson,
|
|
252
|
-
UpdatePayload: () => ApiKeysUpdateRequestJson,
|
|
253
|
-
create: () => create,
|
|
254
|
-
get: () => get,
|
|
255
|
-
getActivity: () => getActivity,
|
|
256
|
-
getStats: () => getStats,
|
|
257
|
-
list: () => list,
|
|
258
|
-
revoke: () => revoke,
|
|
259
|
-
rotate: () => rotate,
|
|
260
|
-
update: () => update
|
|
261
|
-
});
|
|
262
|
-
const make = forGroup(APIKeysGroup);
|
|
263
|
-
const list = make("apiKeysList");
|
|
264
|
-
const create = make("apiKeysCreate");
|
|
265
|
-
const get = make("apiKeysGet");
|
|
266
|
-
const revoke = make("apiKeysRevoke");
|
|
267
|
-
const update = make("apiKeysUpdate");
|
|
268
|
-
const rotate = make("apiKeysRotate");
|
|
269
|
-
const getStats = make("apiKeysGetStats");
|
|
270
|
-
const getActivity = make("apiKeysGetActivity");
|
|
271
|
-
//#endregion
|
|
272
|
-
export { getStats as a, rotate as c, ApiKeysUpdateRequestJson as d, getActivity as i, update as l, create as n, list as o, get as r, revoke as s, api_keys_exports as t, ApiKeysCreateRequestJson as u };
|
|
247
|
+
export { APIKeysGroup, ApiKey, ApiKeyActivityPage, ApiKeyMailboxAccessUpdate, ApiKeyOwner, ApiKeyPage, ApiKeyWithSecret, ApiKeysCreate201, ApiKeysCreate401, ApiKeysCreate402, ApiKeysCreate403, ApiKeysCreate404, ApiKeysCreate422, ApiKeysCreate429, ApiKeysCreate500, ApiKeysCreate502, ApiKeysCreate504, ApiKeysCreateRequestJson, ApiKeysGet200, ApiKeysGet401, ApiKeysGet403, ApiKeysGet404, ApiKeysGet422, ApiKeysGet500, ApiKeysGet504, ApiKeysGetActivity200, ApiKeysGetActivity401, ApiKeysGetActivity403, ApiKeysGetActivity404, ApiKeysGetActivity422, ApiKeysGetActivity500, ApiKeysGetActivity504, ApiKeysGetActivityPathParams, ApiKeysGetActivityQuery, ApiKeysGetPathParams, ApiKeysGetStats200, ApiKeysGetStats401, ApiKeysGetStats403, ApiKeysGetStats404, ApiKeysGetStats422, ApiKeysGetStats500, ApiKeysGetStats504, ApiKeysGetStatsPathParams, ApiKeysGetStatsQuery, ApiKeysList200, ApiKeysList401, ApiKeysList403, ApiKeysList422, ApiKeysList500, ApiKeysList504, ApiKeysListQuery, ApiKeysRevoke200, ApiKeysRevoke401, ApiKeysRevoke403, ApiKeysRevoke404, ApiKeysRevoke422, ApiKeysRevoke500, ApiKeysRevoke502, ApiKeysRevoke504, ApiKeysRevokePathParams, ApiKeysRotate200, ApiKeysRotate401, ApiKeysRotate403, ApiKeysRotate404, ApiKeysRotate422, ApiKeysRotate500, ApiKeysRotate504, ApiKeysRotatePathParams, ApiKeysUpdate200, ApiKeysUpdate401, ApiKeysUpdate403, ApiKeysUpdate404, ApiKeysUpdate422, ApiKeysUpdate500, ApiKeysUpdate504, ApiKeysUpdatePathParams, ApiKeysUpdateRequestJson };
|
|
273
248
|
|
|
274
|
-
//# sourceMappingURL=api-keys
|
|
249
|
+
//# sourceMappingURL=api-keys.js.map
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Ct as MessageId, Jt as UnauthorizedError, K as ForbiddenError, Lt as ResourceNotFoundError, Mt as OrganizationId, Y as InternalError, c as AttachmentId, en as ValidationError, q as GatewayTimeoutError, s as ApiKeySecurityMiddleware } from "./client-DOzUrdTE.js";
|
|
3
|
-
import { n as forGroup } from "./operation-n_IYgNVK.js";
|
|
1
|
+
import { ApiKeySecurityMiddleware, AttachmentId, ForbiddenError, GatewayTimeoutError, InternalError, MessageId, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
4
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
5
3
|
import * as Schema from "effect/Schema";
|
|
6
4
|
//#region src/effect/generated/attachments.ts
|
|
@@ -122,19 +120,6 @@ var AttachmentsGroup = class extends HttpApiGroup.make("Attachments").add(HttpAp
|
|
|
122
120
|
]
|
|
123
121
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "attachments.downloadUrl").annotate(OpenApi.Summary, "Get an attachment download URL").annotate(OpenApi.Description, "Generates a presigned, time-limited download URL for the attachment; expiry is configurable via the expiresIn query parameter.")).annotate(OpenApi.Description, "Email attachment metadata and secure download URLs") {};
|
|
124
122
|
//#endregion
|
|
125
|
-
|
|
126
|
-
var attachments_exports = /* @__PURE__ */ __exportAll({
|
|
127
|
-
downloadUrl: () => downloadUrl,
|
|
128
|
-
getById: () => getById,
|
|
129
|
-
list: () => list,
|
|
130
|
-
remove: () => remove
|
|
131
|
-
});
|
|
132
|
-
const make = forGroup(AttachmentsGroup);
|
|
133
|
-
const list = make("attachmentsList");
|
|
134
|
-
const getById = make("attachmentsGetById");
|
|
135
|
-
const remove = make("attachmentsRemove");
|
|
136
|
-
const downloadUrl = make("attachmentsDownloadUrl");
|
|
137
|
-
//#endregion
|
|
138
|
-
export { remove as a, list as i, downloadUrl as n, getById as r, attachments_exports as t };
|
|
123
|
+
export { AttachmentList, AttachmentsDownloadUrl200, AttachmentsDownloadUrl401, AttachmentsDownloadUrl403, AttachmentsDownloadUrl404, AttachmentsDownloadUrl422, AttachmentsDownloadUrl500, AttachmentsDownloadUrl504, AttachmentsDownloadUrlPathParams, AttachmentsDownloadUrlQuery, AttachmentsGetById200, AttachmentsGetById401, AttachmentsGetById403, AttachmentsGetById404, AttachmentsGetById422, AttachmentsGetById500, AttachmentsGetById504, AttachmentsGetByIdPathParams, AttachmentsGroup, AttachmentsList200, AttachmentsList401, AttachmentsList403, AttachmentsList404, AttachmentsList422, AttachmentsList500, AttachmentsList504, AttachmentsListQuery, AttachmentsRemove200, AttachmentsRemove401, AttachmentsRemove403, AttachmentsRemove404, AttachmentsRemove422, AttachmentsRemove500, AttachmentsRemove504, AttachmentsRemovePathParams };
|
|
139
124
|
|
|
140
|
-
//# sourceMappingURL=attachments
|
|
125
|
+
//# sourceMappingURL=attachments.js.map
|