@distilled.cloud/cloudflare 0.16.9 → 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.
Files changed (39) hide show
  1. package/lib/client/api.d.ts.map +1 -1
  2. package/lib/client/api.js +26 -8
  3. package/lib/client/api.js.map +1 -1
  4. package/lib/errors.d.ts +17 -1
  5. package/lib/errors.d.ts.map +1 -1
  6. package/lib/errors.js +15 -0
  7. package/lib/errors.js.map +1 -1
  8. package/lib/services/aisearch.d.ts +41 -41
  9. package/lib/services/aisearch.d.ts.map +1 -1
  10. package/lib/services/aisearch.js +41 -41
  11. package/lib/services/aisearch.js.map +1 -1
  12. package/lib/services/email-sending.d.ts +204 -0
  13. package/lib/services/email-sending.d.ts.map +1 -0
  14. package/lib/services/email-sending.js +309 -0
  15. package/lib/services/email-sending.js.map +1 -0
  16. package/lib/services/fraud.d.ts +77 -0
  17. package/lib/services/fraud.d.ts.map +1 -0
  18. package/lib/services/fraud.js +110 -0
  19. package/lib/services/fraud.js.map +1 -0
  20. package/lib/services/google-tag-gateway.d.ts +62 -0
  21. package/lib/services/google-tag-gateway.d.ts.map +1 -0
  22. package/lib/services/google-tag-gateway.js +52 -0
  23. package/lib/services/google-tag-gateway.js.map +1 -0
  24. package/lib/services/queues.d.ts.map +1 -1
  25. package/lib/services/queues.js +5 -1
  26. package/lib/services/queues.js.map +1 -1
  27. package/lib/services/workflows.d.ts +1 -1
  28. package/lib/services/workflows.d.ts.map +1 -1
  29. package/lib/services/workflows.js +1 -1
  30. package/lib/services/workflows.js.map +1 -1
  31. package/package.json +2 -3
  32. package/src/client/api.ts +29 -7
  33. package/src/errors.ts +19 -0
  34. package/src/services/aisearch.ts +96 -82
  35. package/src/services/email-sending.ts +675 -0
  36. package/src/services/fraud.ts +252 -0
  37. package/src/services/google-tag-gateway.ts +132 -0
  38. package/src/services/queues.ts +5 -1
  39. package/src/services/workflows.ts +2 -2
@@ -0,0 +1,204 @@
1
+ /**
2
+ * Cloudflare EMAIL-SENDING API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service email-sending
6
+ */
7
+ import * as Schema from "effect/Schema";
8
+ import type * as HttpClient from "effect/unstable/http/HttpClient";
9
+ import * as API from "../client/api.ts";
10
+ import type { Credentials } from "../credentials.ts";
11
+ import { type DefaultErrors } from "../errors.ts";
12
+ export interface SendEmailSendingRequest {
13
+ /** Path param: Identifier of the account. */
14
+ accountId: string;
15
+ /** Body param: Sender email address. Either a plain string or an object with address and name. */
16
+ from: string | {
17
+ address: string;
18
+ name: string;
19
+ };
20
+ /** Body param: Email subject line. */
21
+ subject: string;
22
+ /** Body param: Recipient(s). A single email string or an array of email strings. */
23
+ to: string | string[];
24
+ /** Body param: File attachments and inline images. */
25
+ attachments?: ({
26
+ content: string;
27
+ contentId: string;
28
+ disposition: "inline";
29
+ filename: string;
30
+ type: string;
31
+ } | {
32
+ content: string;
33
+ disposition: "attachment";
34
+ filename: string;
35
+ type: string;
36
+ })[];
37
+ /** Body param: BCC recipient(s). A single email string or an array of email strings. */
38
+ bcc?: string | string[];
39
+ /** Body param: CC recipient(s). A single email string or an array of email strings. */
40
+ cc?: string | string[];
41
+ /** Body param: Custom email headers as key-value pairs. */
42
+ headers?: Record<string, unknown>;
43
+ /** Body param: HTML body of the email. At least one of text or html must be provided. */
44
+ html?: string;
45
+ /** Body param: Reply-to address. Either a plain string or an object with address and name. */
46
+ replyTo?: string | {
47
+ address: string;
48
+ name: string;
49
+ };
50
+ /** Body param: Plain text body of the email. At least one of text or html must be provided. */
51
+ text?: string;
52
+ }
53
+ export declare const SendEmailSendingRequest: Schema.Schema<SendEmailSendingRequest>;
54
+ export interface SendEmailSendingResponse {
55
+ /** Email addresses to which the message was delivered immediately. */
56
+ delivered: string[];
57
+ /** Email addresses that permanently bounced. */
58
+ permanentBounces: string[];
59
+ /** Email addresses for which delivery was queued for later. */
60
+ queued: string[];
61
+ }
62
+ export declare const SendEmailSendingResponse: Schema.Schema<SendEmailSendingResponse>;
63
+ export type SendEmailSendingError = DefaultErrors;
64
+ export declare const sendEmailSending: API.OperationMethod<SendEmailSendingRequest, SendEmailSendingResponse, SendEmailSendingError, Credentials | HttpClient.HttpClient>;
65
+ export interface SendRawEmailSendingRequest {
66
+ /** Path param: Identifier of the account. */
67
+ accountId: string;
68
+ /** Body param: Sender email address. */
69
+ from: string;
70
+ /** Body param: The full MIME-encoded email message. Should include standard RFC 5322 headers such as From, To, Subject, and Content-Type. The from and recipients fields in the request body control SMTP e */
71
+ mimeMessage: string;
72
+ /** Body param: List of recipient email addresses. */
73
+ recipients: string[];
74
+ }
75
+ export declare const SendRawEmailSendingRequest: Schema.Schema<SendRawEmailSendingRequest>;
76
+ export interface SendRawEmailSendingResponse {
77
+ /** Email addresses to which the message was delivered immediately. */
78
+ delivered: string[];
79
+ /** Email addresses that permanently bounced. */
80
+ permanentBounces: string[];
81
+ /** Email addresses for which delivery was queued for later. */
82
+ queued: string[];
83
+ }
84
+ export declare const SendRawEmailSendingResponse: Schema.Schema<SendRawEmailSendingResponse>;
85
+ export type SendRawEmailSendingError = DefaultErrors;
86
+ export declare const sendRawEmailSending: API.OperationMethod<SendRawEmailSendingRequest, SendRawEmailSendingResponse, SendRawEmailSendingError, Credentials | HttpClient.HttpClient>;
87
+ export interface GetSubdomainRequest {
88
+ subdomainId: string;
89
+ /** Identifier. */
90
+ zoneId: string;
91
+ }
92
+ export declare const GetSubdomainRequest: Schema.Schema<GetSubdomainRequest>;
93
+ export interface GetSubdomainResponse {
94
+ /** Whether Email Sending is enabled on this subdomain. */
95
+ enabled: boolean;
96
+ /** The subdomain domain name. */
97
+ name: string;
98
+ /** Sending subdomain identifier. */
99
+ tag: string;
100
+ /** The date and time the destination address has been created. */
101
+ created?: string | null;
102
+ /** The DKIM selector used for email signing. */
103
+ dkimSelector?: string | null;
104
+ /** The date and time the destination address was last modified. */
105
+ modified?: string | null;
106
+ /** The return-path domain used for bounce handling. */
107
+ returnPathDomain?: string | null;
108
+ }
109
+ export declare const GetSubdomainResponse: Schema.Schema<GetSubdomainResponse>;
110
+ export type GetSubdomainError = DefaultErrors;
111
+ export declare const getSubdomain: API.OperationMethod<GetSubdomainRequest, GetSubdomainResponse, GetSubdomainError, Credentials | HttpClient.HttpClient>;
112
+ export interface ListSubdomainsRequest {
113
+ /** Identifier. */
114
+ zoneId: string;
115
+ }
116
+ export declare const ListSubdomainsRequest: Schema.Schema<ListSubdomainsRequest>;
117
+ export interface ListSubdomainsResponse {
118
+ result: {
119
+ enabled: boolean;
120
+ name: string;
121
+ tag: string;
122
+ created?: string | null;
123
+ dkimSelector?: string | null;
124
+ modified?: string | null;
125
+ returnPathDomain?: string | null;
126
+ }[];
127
+ }
128
+ export declare const ListSubdomainsResponse: Schema.Schema<ListSubdomainsResponse>;
129
+ export type ListSubdomainsError = DefaultErrors;
130
+ export declare const listSubdomains: API.PaginatedOperationMethod<ListSubdomainsRequest, ListSubdomainsResponse, ListSubdomainsError, Credentials | HttpClient.HttpClient>;
131
+ export interface CreateSubdomainRequest {
132
+ /** Path param: Identifier. */
133
+ zoneId: string;
134
+ /** Body param: The subdomain name. Must be within the zone. */
135
+ name: string;
136
+ }
137
+ export declare const CreateSubdomainRequest: Schema.Schema<CreateSubdomainRequest>;
138
+ export interface CreateSubdomainResponse {
139
+ /** Whether Email Sending is enabled on this subdomain. */
140
+ enabled: boolean;
141
+ /** The subdomain domain name. */
142
+ name: string;
143
+ /** Sending subdomain identifier. */
144
+ tag: string;
145
+ /** The date and time the destination address has been created. */
146
+ created?: string | null;
147
+ /** The DKIM selector used for email signing. */
148
+ dkimSelector?: string | null;
149
+ /** The date and time the destination address was last modified. */
150
+ modified?: string | null;
151
+ /** The return-path domain used for bounce handling. */
152
+ returnPathDomain?: string | null;
153
+ }
154
+ export declare const CreateSubdomainResponse: Schema.Schema<CreateSubdomainResponse>;
155
+ export type CreateSubdomainError = DefaultErrors;
156
+ export declare const createSubdomain: API.OperationMethod<CreateSubdomainRequest, CreateSubdomainResponse, CreateSubdomainError, Credentials | HttpClient.HttpClient>;
157
+ export interface DeleteSubdomainRequest {
158
+ subdomainId: string;
159
+ /** Identifier. */
160
+ zoneId: string;
161
+ }
162
+ export declare const DeleteSubdomainRequest: Schema.Schema<DeleteSubdomainRequest>;
163
+ export interface DeleteSubdomainResponse {
164
+ errors: {
165
+ code: number;
166
+ message: string;
167
+ documentationUrl?: string | null;
168
+ source?: {
169
+ pointer?: string | null;
170
+ } | null;
171
+ }[];
172
+ messages: {
173
+ code: number;
174
+ message: string;
175
+ documentationUrl?: string | null;
176
+ source?: {
177
+ pointer?: string | null;
178
+ } | null;
179
+ }[];
180
+ /** Whether the API call was successful. */
181
+ success: true;
182
+ }
183
+ export declare const DeleteSubdomainResponse: Schema.Schema<DeleteSubdomainResponse>;
184
+ export type DeleteSubdomainError = DefaultErrors;
185
+ export declare const deleteSubdomain: API.OperationMethod<DeleteSubdomainRequest, DeleteSubdomainResponse, DeleteSubdomainError, Credentials | HttpClient.HttpClient>;
186
+ export interface GetSubdomainDnsRequest {
187
+ subdomainId: string;
188
+ /** Identifier. */
189
+ zoneId: string;
190
+ }
191
+ export declare const GetSubdomainDnsRequest: Schema.Schema<GetSubdomainDnsRequest>;
192
+ export interface GetSubdomainDnsResponse {
193
+ result: {
194
+ content?: string | null;
195
+ name?: string | null;
196
+ priority?: number | null;
197
+ ttl?: number | "1" | null;
198
+ type?: "A" | "AAAA" | "CNAME" | "HTTPS" | "TXT" | "SRV" | "LOC" | "MX" | "NS" | "CERT" | "DNSKEY" | "DS" | "NAPTR" | "SMIMEA" | "SSHFP" | "SVCB" | "TLSA" | "URI" | null;
199
+ }[];
200
+ }
201
+ export declare const GetSubdomainDnsResponse: Schema.Schema<GetSubdomainDnsResponse>;
202
+ export type GetSubdomainDnsError = DefaultErrors;
203
+ export declare const getSubdomainDns: API.PaginatedOperationMethod<GetSubdomainDnsRequest, GetSubdomainDnsResponse, GetSubdomainDnsError, Credentials | HttpClient.HttpClient>;
204
+ //# sourceMappingURL=email-sending.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-sending.d.ts","sourceRoot":"","sources":["../../src/services/email-sending.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,UAAU,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,GAAG,MAAM,kBAAkB,CAAC;AAExC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAMlD,MAAM,WAAW,uBAAuB;IACtC,6CAA6C;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,kGAAkG;IAClG,IAAI,EAAE,MAAM,GAAG;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACjD,sCAAsC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,oFAAoF;IACpF,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACtB,sDAAsD;IACtD,WAAW,CAAC,EAAE,CACV;QACE,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,QAAQ,CAAC;QACtB,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,GACD;QACE,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,YAAY,CAAC;QAC1B,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,CACJ,EAAE,CAAC;IACJ,wFAAwF;IACxF,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACxB,uFAAuF;IACvF,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACvB,2DAA2D;IAC3D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
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service email-sending
6
+ */
7
+ import * as Schema from "effect/Schema";
8
+ import * as API from "../client/api.js";
9
+ import * as T from "../traits.js";
10
+ import {} from "../errors.js";
11
+ export const SendEmailSendingRequest =
12
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
13
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
14
+ from: Schema.Union([
15
+ Schema.Struct({
16
+ address: Schema.String,
17
+ name: Schema.String,
18
+ }),
19
+ Schema.String,
20
+ ]),
21
+ subject: Schema.String,
22
+ to: Schema.Union([Schema.String, Schema.Array(Schema.String)]),
23
+ attachments: Schema.optional(Schema.Array(Schema.Union([
24
+ Schema.Struct({
25
+ content: Schema.String,
26
+ contentId: Schema.String,
27
+ disposition: Schema.Literal("inline"),
28
+ filename: Schema.String,
29
+ type: Schema.String,
30
+ }).pipe(Schema.encodeKeys({
31
+ content: "content",
32
+ contentId: "content_id",
33
+ disposition: "disposition",
34
+ filename: "filename",
35
+ type: "type",
36
+ })),
37
+ Schema.Struct({
38
+ content: Schema.String,
39
+ disposition: Schema.Literal("attachment"),
40
+ filename: Schema.String,
41
+ type: Schema.String,
42
+ }),
43
+ ]))),
44
+ bcc: Schema.optional(Schema.Union([Schema.String, Schema.Array(Schema.String)])),
45
+ cc: Schema.optional(Schema.Union([Schema.String, Schema.Array(Schema.String)])),
46
+ headers: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
47
+ html: Schema.optional(Schema.String),
48
+ replyTo: Schema.optional(Schema.Union([
49
+ Schema.Struct({
50
+ address: Schema.String,
51
+ name: Schema.String,
52
+ }),
53
+ Schema.String,
54
+ ])),
55
+ text: Schema.optional(Schema.String),
56
+ }).pipe(Schema.encodeKeys({
57
+ from: "from",
58
+ subject: "subject",
59
+ to: "to",
60
+ attachments: "attachments",
61
+ bcc: "bcc",
62
+ cc: "cc",
63
+ headers: "headers",
64
+ html: "html",
65
+ replyTo: "reply_to",
66
+ text: "text",
67
+ }), T.Http({
68
+ method: "POST",
69
+ path: "/accounts/{account_id}/email/sending/send",
70
+ }));
71
+ export const SendEmailSendingResponse =
72
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
73
+ delivered: Schema.Array(Schema.String),
74
+ permanentBounces: Schema.Array(Schema.String),
75
+ queued: Schema.Array(Schema.String),
76
+ })
77
+ .pipe(Schema.encodeKeys({
78
+ delivered: "delivered",
79
+ permanentBounces: "permanent_bounces",
80
+ queued: "queued",
81
+ }))
82
+ .pipe(T.ResponsePath("result"));
83
+ export const sendEmailSending = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
84
+ input: SendEmailSendingRequest,
85
+ output: SendEmailSendingResponse,
86
+ errors: [],
87
+ }));
88
+ export const SendRawEmailSendingRequest =
89
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
90
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
91
+ from: Schema.String,
92
+ mimeMessage: Schema.String,
93
+ recipients: Schema.Array(Schema.String),
94
+ }).pipe(Schema.encodeKeys({
95
+ from: "from",
96
+ mimeMessage: "mime_message",
97
+ recipients: "recipients",
98
+ }), T.Http({
99
+ method: "POST",
100
+ path: "/accounts/{account_id}/email/sending/send_raw",
101
+ }));
102
+ export const SendRawEmailSendingResponse =
103
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
104
+ delivered: Schema.Array(Schema.String),
105
+ permanentBounces: Schema.Array(Schema.String),
106
+ queued: Schema.Array(Schema.String),
107
+ })
108
+ .pipe(Schema.encodeKeys({
109
+ delivered: "delivered",
110
+ permanentBounces: "permanent_bounces",
111
+ queued: "queued",
112
+ }))
113
+ .pipe(T.ResponsePath("result"));
114
+ export const sendRawEmailSending = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
115
+ input: SendRawEmailSendingRequest,
116
+ output: SendRawEmailSendingResponse,
117
+ errors: [],
118
+ }));
119
+ export const GetSubdomainRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
120
+ subdomainId: Schema.String.pipe(T.HttpPath("subdomainId")),
121
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
122
+ }).pipe(T.Http({
123
+ method: "GET",
124
+ path: "/zones/{zone_id}/email/sending/subdomains/{subdomainId}",
125
+ }));
126
+ export const GetSubdomainResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
127
+ enabled: Schema.Boolean,
128
+ name: Schema.String,
129
+ tag: Schema.String,
130
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
131
+ dkimSelector: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
132
+ modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
133
+ returnPathDomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
134
+ })
135
+ .pipe(Schema.encodeKeys({
136
+ enabled: "enabled",
137
+ name: "name",
138
+ tag: "tag",
139
+ created: "created",
140
+ dkimSelector: "dkim_selector",
141
+ modified: "modified",
142
+ returnPathDomain: "return_path_domain",
143
+ }))
144
+ .pipe(T.ResponsePath("result"));
145
+ export const getSubdomain = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
146
+ input: GetSubdomainRequest,
147
+ output: GetSubdomainResponse,
148
+ errors: [],
149
+ }));
150
+ export const ListSubdomainsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
151
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
152
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/email/sending/subdomains" }));
153
+ export const ListSubdomainsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
154
+ result: Schema.Array(Schema.Struct({
155
+ enabled: Schema.Boolean,
156
+ name: Schema.String,
157
+ tag: Schema.String,
158
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
159
+ dkimSelector: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
160
+ modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
161
+ returnPathDomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
162
+ }).pipe(Schema.encodeKeys({
163
+ enabled: "enabled",
164
+ name: "name",
165
+ tag: "tag",
166
+ created: "created",
167
+ dkimSelector: "dkim_selector",
168
+ modified: "modified",
169
+ returnPathDomain: "return_path_domain",
170
+ }))),
171
+ });
172
+ export const listSubdomains = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
173
+ input: ListSubdomainsRequest,
174
+ output: ListSubdomainsResponse,
175
+ errors: [],
176
+ pagination: {
177
+ mode: "single",
178
+ items: "result",
179
+ },
180
+ }));
181
+ export const CreateSubdomainRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
182
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
183
+ name: Schema.String,
184
+ }).pipe(T.Http({ method: "POST", path: "/zones/{zone_id}/email/sending/subdomains" }));
185
+ export const CreateSubdomainResponse =
186
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
187
+ enabled: Schema.Boolean,
188
+ name: Schema.String,
189
+ tag: Schema.String,
190
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
191
+ dkimSelector: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
192
+ modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
193
+ returnPathDomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
194
+ })
195
+ .pipe(Schema.encodeKeys({
196
+ enabled: "enabled",
197
+ name: "name",
198
+ tag: "tag",
199
+ created: "created",
200
+ dkimSelector: "dkim_selector",
201
+ modified: "modified",
202
+ returnPathDomain: "return_path_domain",
203
+ }))
204
+ .pipe(T.ResponsePath("result"));
205
+ export const createSubdomain = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
206
+ input: CreateSubdomainRequest,
207
+ output: CreateSubdomainResponse,
208
+ errors: [],
209
+ }));
210
+ export const DeleteSubdomainRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
211
+ subdomainId: Schema.String.pipe(T.HttpPath("subdomainId")),
212
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
213
+ }).pipe(T.Http({
214
+ method: "DELETE",
215
+ path: "/zones/{zone_id}/email/sending/subdomains/{subdomainId}",
216
+ }));
217
+ export const DeleteSubdomainResponse =
218
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
219
+ errors: Schema.Array(Schema.Struct({
220
+ code: Schema.Number,
221
+ message: Schema.String,
222
+ documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
223
+ source: Schema.optional(Schema.Union([
224
+ Schema.Struct({
225
+ pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
226
+ }),
227
+ Schema.Null,
228
+ ])),
229
+ }).pipe(Schema.encodeKeys({
230
+ code: "code",
231
+ message: "message",
232
+ documentationUrl: "documentation_url",
233
+ source: "source",
234
+ }))),
235
+ messages: Schema.Array(Schema.Struct({
236
+ code: Schema.Number,
237
+ message: Schema.String,
238
+ documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
239
+ source: Schema.optional(Schema.Union([
240
+ Schema.Struct({
241
+ pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
242
+ }),
243
+ Schema.Null,
244
+ ])),
245
+ }).pipe(Schema.encodeKeys({
246
+ code: "code",
247
+ message: "message",
248
+ documentationUrl: "documentation_url",
249
+ source: "source",
250
+ }))),
251
+ success: Schema.Literal(true),
252
+ });
253
+ export const deleteSubdomain = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
254
+ input: DeleteSubdomainRequest,
255
+ output: DeleteSubdomainResponse,
256
+ errors: [],
257
+ }));
258
+ export const GetSubdomainDnsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
259
+ subdomainId: Schema.String.pipe(T.HttpPath("subdomainId")),
260
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
261
+ }).pipe(T.Http({
262
+ method: "GET",
263
+ path: "/zones/{zone_id}/email/sending/subdomains/{subdomainId}/dns",
264
+ }));
265
+ export const GetSubdomainDnsResponse =
266
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
267
+ result: Schema.Array(Schema.Struct({
268
+ content: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
269
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
270
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
271
+ ttl: Schema.optional(Schema.Union([
272
+ Schema.Union([Schema.Number, Schema.Literal("1")]),
273
+ Schema.Null,
274
+ ])),
275
+ type: Schema.optional(Schema.Union([
276
+ Schema.Literals([
277
+ "A",
278
+ "AAAA",
279
+ "CNAME",
280
+ "HTTPS",
281
+ "TXT",
282
+ "SRV",
283
+ "LOC",
284
+ "MX",
285
+ "NS",
286
+ "CERT",
287
+ "DNSKEY",
288
+ "DS",
289
+ "NAPTR",
290
+ "SMIMEA",
291
+ "SSHFP",
292
+ "SVCB",
293
+ "TLSA",
294
+ "URI",
295
+ ]),
296
+ Schema.Null,
297
+ ])),
298
+ })),
299
+ });
300
+ export const getSubdomainDns = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
301
+ input: GetSubdomainDnsRequest,
302
+ output: GetSubdomainDnsResponse,
303
+ errors: [],
304
+ pagination: {
305
+ mode: "single",
306
+ items: "result",
307
+ },
308
+ }));
309
+ //# sourceMappingURL=email-sending.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-sending.js","sourceRoot":"","sources":["../../src/services/email-sending.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,GAAG,MAAM,kBAAkB,CAAC;AACxC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,OAAO,EAAsB,MAAM,cAAc,CAAC;AA6ClD,MAAM,CAAC,MAAM,uBAAuB;AAClC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,SAAS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T EDIT - regenerate with: bun scripts/generate.ts --service fraud
6
+ */
7
+ import * as Schema from "effect/Schema";
8
+ import type * as HttpClient from "effect/unstable/http/HttpClient";
9
+ import * as API from "../client/api.ts";
10
+ import type { Credentials } from "../credentials.ts";
11
+ import { type DefaultErrors } from "../errors.ts";
12
+ export interface GetFraudRequest {
13
+ /** Identifier. */
14
+ zoneId: string;
15
+ }
16
+ export declare const GetFraudRequest: Schema.Schema<GetFraudRequest>;
17
+ export interface GetFraudResponse {
18
+ /** Configuration for classifying login authentication outcomes based on the origin response. Requires `user_profiles` to be enabled. - Success and failure criteria are independently updatable — sending */
19
+ authenticationSettings?: {
20
+ failureCriteria?: {
21
+ kind: "status_code";
22
+ statusCodes?: number[] | null;
23
+ } | null;
24
+ successCriteria?: {
25
+ kind: "status_code";
26
+ statusCodes?: number[] | null;
27
+ } | null;
28
+ } | null;
29
+ /** Whether Fraud User Profiles is enabled for the zone. */
30
+ userProfiles?: "enabled" | "disabled" | null;
31
+ /** List of expressions to detect usernames in write HTTP requests. - Maximum of 10 expressions. - Omit or set to null to leave unchanged on update. - Provide an empty array `[]` to clear all expressions */
32
+ usernameExpressions?: string[] | null;
33
+ }
34
+ export declare const GetFraudResponse: Schema.Schema<GetFraudResponse>;
35
+ export type GetFraudError = DefaultErrors;
36
+ export declare const getFraud: API.OperationMethod<GetFraudRequest, GetFraudResponse, GetFraudError, Credentials | HttpClient.HttpClient>;
37
+ export interface PutFraudRequest {
38
+ /** Path param: Identifier. */
39
+ zoneId: string;
40
+ /** Body param: Configuration for classifying login authentication outcomes based on the origin response. Requires `user_profiles` to be enabled. - Success and failure criteria are independently updatabl */
41
+ authenticationSettings?: {
42
+ failureCriteria?: {
43
+ kind: "status_code";
44
+ statusCodes?: number[];
45
+ };
46
+ successCriteria?: {
47
+ kind: "status_code";
48
+ statusCodes?: number[];
49
+ };
50
+ };
51
+ /** Body param: Whether Fraud User Profiles is enabled for the zone. */
52
+ userProfiles?: "enabled" | "disabled";
53
+ /** Body param: List of expressions to detect usernames in write HTTP requests. - Maximum of 10 expressions. - Omit or set to null to leave unchanged on update. - Provide an empty array `[]` to clear all */
54
+ usernameExpressions?: string[];
55
+ }
56
+ export declare const PutFraudRequest: Schema.Schema<PutFraudRequest>;
57
+ export interface PutFraudResponse {
58
+ /** Configuration for classifying login authentication outcomes based on the origin response. Requires `user_profiles` to be enabled. - Success and failure criteria are independently updatable — sending */
59
+ authenticationSettings?: {
60
+ failureCriteria?: {
61
+ kind: "status_code";
62
+ statusCodes?: number[] | null;
63
+ } | null;
64
+ successCriteria?: {
65
+ kind: "status_code";
66
+ statusCodes?: number[] | null;
67
+ } | null;
68
+ } | null;
69
+ /** Whether Fraud User Profiles is enabled for the zone. */
70
+ userProfiles?: "enabled" | "disabled" | null;
71
+ /** List of expressions to detect usernames in write HTTP requests. - Maximum of 10 expressions. - Omit or set to null to leave unchanged on update. - Provide an empty array `[]` to clear all expressions */
72
+ usernameExpressions?: string[] | null;
73
+ }
74
+ export declare const PutFraudResponse: Schema.Schema<PutFraudResponse>;
75
+ export type PutFraudError = DefaultErrors;
76
+ export declare const putFraud: API.OperationMethod<PutFraudRequest, PutFraudResponse, PutFraudError, Credentials | HttpClient.HttpClient>;
77
+ //# sourceMappingURL=fraud.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fraud.d.ts","sourceRoot":"","sources":["../../src/services/fraud.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,UAAU,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,GAAG,MAAM,kBAAkB,CAAC;AAExC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAMlD,MAAM,WAAW,eAAe;IAC9B,kBAAkB;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MA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