@distilled.cloud/stackit 1.0.0-rc.18 → 1.0.0-rc.19

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 (298) hide show
  1. package/lib/_bundle/sdk.js +1 -1
  2. package/lib/_bundle/sdk.js.map +1 -1
  3. package/lib/pagination.d.ts.map +1 -1
  4. package/lib/protocol.d.ts +2 -1
  5. package/lib/protocol.d.ts.map +1 -1
  6. package/lib/services/alb.d.ts +134 -132
  7. package/lib/services/alb.d.ts.map +1 -1
  8. package/lib/services/alb.js +24 -24
  9. package/lib/services/alb.js.map +1 -1
  10. package/lib/services/alb_waf.d.ts +51 -51
  11. package/lib/services/alb_waf.d.ts.map +1 -1
  12. package/lib/services/alb_waf.js +29 -29
  13. package/lib/services/alb_waf.js.map +1 -1
  14. package/lib/services/authorization.d.ts +15 -15
  15. package/lib/services/authorization.d.ts.map +1 -1
  16. package/lib/services/authorization.js +1 -1
  17. package/lib/services/authorization.js.map +1 -1
  18. package/lib/services/automation.d.ts +47 -46
  19. package/lib/services/automation.d.ts.map +1 -1
  20. package/lib/services/automation.js +22 -22
  21. package/lib/services/automation.js.map +1 -1
  22. package/lib/services/cdn.d.ts +129 -129
  23. package/lib/services/cdn.d.ts.map +1 -1
  24. package/lib/services/cdn.js +22 -22
  25. package/lib/services/cdn.js.map +1 -1
  26. package/lib/services/certificates.d.ts +40 -40
  27. package/lib/services/certificates.d.ts.map +1 -1
  28. package/lib/services/certificates.js +1 -1
  29. package/lib/services/certificates.js.map +1 -1
  30. package/lib/services/cost.d.ts +15 -15
  31. package/lib/services/cost.d.ts.map +1 -1
  32. package/lib/services/cost.js +1 -1
  33. package/lib/services/cost.js.map +1 -1
  34. package/lib/services/dns.d.ts +218 -161
  35. package/lib/services/dns.d.ts.map +1 -1
  36. package/lib/services/dns.js +40 -39
  37. package/lib/services/dns.js.map +1 -1
  38. package/lib/services/dremio.d.ts +49 -34
  39. package/lib/services/dremio.d.ts.map +1 -1
  40. package/lib/services/dremio.js +1 -1
  41. package/lib/services/dremio.js.map +1 -1
  42. package/lib/services/edge.d.ts +21 -21
  43. package/lib/services/edge.d.ts.map +1 -1
  44. package/lib/services/edge.js +23 -23
  45. package/lib/services/edge.js.map +1 -1
  46. package/lib/services/functions.d.ts +104 -101
  47. package/lib/services/functions.d.ts.map +1 -1
  48. package/lib/services/functions.js +24 -24
  49. package/lib/services/functions.js.map +1 -1
  50. package/lib/services/git.d.ts +120 -29
  51. package/lib/services/git.d.ts.map +1 -1
  52. package/lib/services/git.js +37 -33
  53. package/lib/services/git.js.map +1 -1
  54. package/lib/services/iaas.d.ts +430 -415
  55. package/lib/services/iaas.d.ts.map +1 -1
  56. package/lib/services/iaas.js +179 -179
  57. package/lib/services/iaas.js.map +1 -1
  58. package/lib/services/identity.d.ts +204 -0
  59. package/lib/services/identity.d.ts.map +1 -0
  60. package/lib/services/identity.js +2 -0
  61. package/lib/services/identity.js.map +1 -0
  62. package/lib/services/index.d.ts +2 -0
  63. package/lib/services/index.d.ts.map +1 -1
  64. package/lib/services/index.js +2 -0
  65. package/lib/services/intake.d.ts +58 -58
  66. package/lib/services/intake.d.ts.map +1 -1
  67. package/lib/services/intake.js +25 -25
  68. package/lib/services/intake.js.map +1 -1
  69. package/lib/services/kms.d.ts +13 -13
  70. package/lib/services/kms.d.ts.map +1 -1
  71. package/lib/services/kms.js +37 -37
  72. package/lib/services/kms.js.map +1 -1
  73. package/lib/services/lb_ip_lists.d.ts +14 -14
  74. package/lib/services/lb_ip_lists.d.ts.map +1 -1
  75. package/lib/services/lb_ip_lists.js +1 -1
  76. package/lib/services/lb_ip_lists.js.map +1 -1
  77. package/lib/services/load_balancer.d.ts +128 -126
  78. package/lib/services/load_balancer.d.ts.map +1 -1
  79. package/lib/services/load_balancer.js +25 -25
  80. package/lib/services/load_balancer.js.map +1 -1
  81. package/lib/services/logme.d.ts +96 -45
  82. package/lib/services/logme.d.ts.map +1 -1
  83. package/lib/services/logme.js +34 -31
  84. package/lib/services/logme.js.map +1 -1
  85. package/lib/services/logs.d.ts +78 -24
  86. package/lib/services/logs.d.ts.map +1 -1
  87. package/lib/services/logs.js +34 -33
  88. package/lib/services/logs.js.map +1 -1
  89. package/lib/services/mailout.d.ts +476 -0
  90. package/lib/services/mailout.d.ts.map +1 -0
  91. package/lib/services/mailout.js +33 -0
  92. package/lib/services/mailout.js.map +1 -0
  93. package/lib/services/mariadb.d.ts +81 -30
  94. package/lib/services/mariadb.d.ts.map +1 -1
  95. package/lib/services/mariadb.js +35 -32
  96. package/lib/services/mariadb.js.map +1 -1
  97. package/lib/services/model_experiments.d.ts +33 -33
  98. package/lib/services/model_experiments.d.ts.map +1 -1
  99. package/lib/services/model_experiments.js +1 -1
  100. package/lib/services/model_experiments.js.map +1 -1
  101. package/lib/services/model_serving.d.ts +25 -25
  102. package/lib/services/model_serving.d.ts.map +1 -1
  103. package/lib/services/model_serving.js +1 -1
  104. package/lib/services/model_serving.js.map +1 -1
  105. package/lib/services/mongodb_flex.d.ts +142 -137
  106. package/lib/services/mongodb_flex.d.ts.map +1 -1
  107. package/lib/services/mongodb_flex.js +38 -38
  108. package/lib/services/mongodb_flex.js.map +1 -1
  109. package/lib/services/object_storage.d.ts +6 -6
  110. package/lib/services/object_storage.d.ts.map +1 -1
  111. package/lib/services/object_storage.js +34 -34
  112. package/lib/services/object_storage.js.map +1 -1
  113. package/lib/services/observability.d.ts +362 -362
  114. package/lib/services/observability.d.ts.map +1 -1
  115. package/lib/services/observability.js +147 -147
  116. package/lib/services/observability.js.map +1 -1
  117. package/lib/services/opensearch.d.ts +87 -36
  118. package/lib/services/opensearch.d.ts.map +1 -1
  119. package/lib/services/opensearch.js +35 -32
  120. package/lib/services/opensearch.js.map +1 -1
  121. package/lib/services/pim.d.ts +334 -278
  122. package/lib/services/pim.d.ts.map +1 -1
  123. package/lib/services/pim.js +24 -24
  124. package/lib/services/pim.js.map +1 -1
  125. package/lib/services/postgres_flex.d.ts +59 -55
  126. package/lib/services/postgres_flex.d.ts.map +1 -1
  127. package/lib/services/postgres_flex.js +47 -46
  128. package/lib/services/postgres_flex.js.map +1 -1
  129. package/lib/services/pubsub.d.ts +36 -36
  130. package/lib/services/pubsub.d.ts.map +1 -1
  131. package/lib/services/pubsub.js +33 -33
  132. package/lib/services/pubsub.js.map +1 -1
  133. package/lib/services/rabbitmq.d.ts +92 -41
  134. package/lib/services/rabbitmq.d.ts.map +1 -1
  135. package/lib/services/rabbitmq.js +36 -33
  136. package/lib/services/rabbitmq.js.map +1 -1
  137. package/lib/services/registry.d.ts +26 -22
  138. package/lib/services/registry.d.ts.map +1 -1
  139. package/lib/services/registry.js +1 -1
  140. package/lib/services/registry.js.map +1 -1
  141. package/lib/services/resource_manager.d.ts +56 -56
  142. package/lib/services/resource_manager.d.ts.map +1 -1
  143. package/lib/services/resource_manager.js +32 -32
  144. package/lib/services/resource_manager.js.map +1 -1
  145. package/lib/services/run_command.d.ts +42 -42
  146. package/lib/services/run_command.d.ts.map +1 -1
  147. package/lib/services/run_command.js +1 -1
  148. package/lib/services/run_command.js.map +1 -1
  149. package/lib/services/sca.d.ts +349 -213
  150. package/lib/services/sca.d.ts.map +1 -1
  151. package/lib/services/sca.js +31 -23
  152. package/lib/services/sca.js.map +1 -1
  153. package/lib/services/scf.d.ts +24 -24
  154. package/lib/services/scf.d.ts.map +1 -1
  155. package/lib/services/scf.js +33 -33
  156. package/lib/services/scf.js.map +1 -1
  157. package/lib/services/secrets_manager.d.ts +21 -21
  158. package/lib/services/secrets_manager.d.ts.map +1 -1
  159. package/lib/services/secrets_manager.js +39 -39
  160. package/lib/services/secrets_manager.js.map +1 -1
  161. package/lib/services/server_backup.d.ts +31 -31
  162. package/lib/services/server_backup.d.ts.map +1 -1
  163. package/lib/services/server_backup.js +25 -25
  164. package/lib/services/server_backup.js.map +1 -1
  165. package/lib/services/server_update.d.ts +17 -17
  166. package/lib/services/server_update.d.ts.map +1 -1
  167. package/lib/services/server_update.js +1 -1
  168. package/lib/services/server_update.js.map +1 -1
  169. package/lib/services/service_account.d.ts +30 -30
  170. package/lib/services/service_account.d.ts.map +1 -1
  171. package/lib/services/service_account.js +26 -26
  172. package/lib/services/service_account.js.map +1 -1
  173. package/lib/services/service_enablement.d.ts +22 -21
  174. package/lib/services/service_enablement.d.ts.map +1 -1
  175. package/lib/services/service_enablement.js +1 -1
  176. package/lib/services/service_enablement.js.map +1 -1
  177. package/lib/services/sfs.d.ts +151 -141
  178. package/lib/services/sfs.d.ts.map +1 -1
  179. package/lib/services/sfs.js +46 -45
  180. package/lib/services/sfs.js.map +1 -1
  181. package/lib/services/ske.d.ts +121 -110
  182. package/lib/services/ske.d.ts.map +1 -1
  183. package/lib/services/ske.js +21 -21
  184. package/lib/services/ske.js.map +1 -1
  185. package/lib/services/sqlserverflex.d.ts +47 -47
  186. package/lib/services/sqlserverflex.d.ts.map +1 -1
  187. package/lib/services/sqlserverflex.js +36 -36
  188. package/lib/services/sqlserverflex.js.map +1 -1
  189. package/lib/services/stackit_marketplace.d.ts +39 -39
  190. package/lib/services/stackit_marketplace.d.ts.map +1 -1
  191. package/lib/services/stackit_marketplace.js +22 -22
  192. package/lib/services/stackit_marketplace.js.map +1 -1
  193. package/lib/services/telemetry_link.d.ts +80 -38
  194. package/lib/services/telemetry_link.d.ts.map +1 -1
  195. package/lib/services/telemetry_link.js +34 -33
  196. package/lib/services/telemetry_link.js.map +1 -1
  197. package/lib/services/telemetry_router.d.ts +116 -41
  198. package/lib/services/telemetry_router.d.ts.map +1 -1
  199. package/lib/services/telemetry_router.js +31 -28
  200. package/lib/services/telemetry_router.js.map +1 -1
  201. package/lib/services/ufw.d.ts +55 -54
  202. package/lib/services/ufw.d.ts.map +1 -1
  203. package/lib/services/ufw.js +1 -1
  204. package/lib/services/ufw.js.map +1 -1
  205. package/lib/services/valkey.d.ts +94 -43
  206. package/lib/services/valkey.d.ts.map +1 -1
  207. package/lib/services/valkey.js +35 -32
  208. package/lib/services/valkey.js.map +1 -1
  209. package/lib/services/vpn.d.ts +150 -142
  210. package/lib/services/vpn.d.ts.map +1 -1
  211. package/lib/services/vpn.js +40 -40
  212. package/lib/services/vpn.js.map +1 -1
  213. package/lib/services/workflows.d.ts +65 -65
  214. package/lib/services/workflows.d.ts.map +1 -1
  215. package/lib/services/workflows.js +23 -23
  216. package/lib/services/workflows.js.map +1 -1
  217. package/lib/services.lazy/alb.js +1 -1
  218. package/lib/services.lazy/automation.js +1 -1
  219. package/lib/services.lazy/dns.js +2 -2
  220. package/lib/services.lazy/functions.js +2 -2
  221. package/lib/services.lazy/git.js +2 -2
  222. package/lib/services.lazy/iaas.js +1 -1
  223. package/lib/services.lazy/identity.js +1 -0
  224. package/lib/services.lazy/index.js +2 -2
  225. package/lib/services.lazy/load_balancer.js +1 -1
  226. package/lib/services.lazy/logme.js +2 -2
  227. package/lib/services.lazy/logs.js +1 -1
  228. package/lib/services.lazy/mailout.js +4 -0
  229. package/lib/services.lazy/mariadb.js +2 -2
  230. package/lib/services.lazy/opensearch.js +2 -2
  231. package/lib/services.lazy/pim.js +1 -1
  232. package/lib/services.lazy/postgres_flex.js +1 -1
  233. package/lib/services.lazy/rabbitmq.js +2 -2
  234. package/lib/services.lazy/resource_manager.js +1 -1
  235. package/lib/services.lazy/sca.js +2 -2
  236. package/lib/services.lazy/secrets_manager.js +1 -1
  237. package/lib/services.lazy/sfs.js +2 -2
  238. package/lib/services.lazy/ske.js +1 -1
  239. package/lib/services.lazy/telemetry_link.js +1 -1
  240. package/lib/services.lazy/telemetry_router.js +2 -2
  241. package/lib/services.lazy/valkey.js +2 -2
  242. package/lib/services.lazy/vpn.js +1 -1
  243. package/package.json +5 -5
  244. package/src/pagination.ts +7 -3
  245. package/src/protocol.ts +10 -10
  246. package/src/services/alb.ts +135 -132
  247. package/src/services/alb_waf.ts +51 -51
  248. package/src/services/authorization.ts +15 -15
  249. package/src/services/automation.ts +53 -49
  250. package/src/services/cdn.ts +129 -129
  251. package/src/services/certificates.ts +40 -40
  252. package/src/services/cost.ts +15 -15
  253. package/src/services/dns.ts +497 -269
  254. package/src/services/dremio.ts +156 -118
  255. package/src/services/edge.ts +21 -21
  256. package/src/services/functions.ts +176 -172
  257. package/src/services/git.ts +354 -108
  258. package/src/services/iaas.ts +438 -415
  259. package/src/services/identity.ts +625 -0
  260. package/src/services/index.ts +2 -0
  261. package/src/services/intake.ts +58 -58
  262. package/src/services/kms.ts +13 -13
  263. package/src/services/lb_ip_lists.ts +14 -14
  264. package/src/services/load_balancer.ts +129 -126
  265. package/src/services/logme.ts +294 -122
  266. package/src/services/logs.ts +123 -72
  267. package/src/services/mailout.ts +1277 -0
  268. package/src/services/mariadb.ts +277 -105
  269. package/src/services/model_experiments.ts +33 -33
  270. package/src/services/model_serving.ts +25 -25
  271. package/src/services/mongodb_flex.ts +142 -137
  272. package/src/services/object_storage.ts +6 -6
  273. package/src/services/observability.ts +369 -362
  274. package/src/services/opensearch.ts +286 -114
  275. package/src/services/pim.ts +362 -278
  276. package/src/services/postgres_flex.ts +191 -179
  277. package/src/services/pubsub.ts +36 -36
  278. package/src/services/rabbitmq.ts +297 -125
  279. package/src/services/registry.ts +30 -26
  280. package/src/services/resource_manager.ts +57 -57
  281. package/src/services/run_command.ts +42 -42
  282. package/src/services/sca.ts +732 -371
  283. package/src/services/scf.ts +24 -24
  284. package/src/services/secrets_manager.ts +22 -22
  285. package/src/services/server_backup.ts +31 -31
  286. package/src/services/server_update.ts +17 -17
  287. package/src/services/service_account.ts +32 -30
  288. package/src/services/service_enablement.ts +28 -24
  289. package/src/services/sfs.ts +404 -395
  290. package/src/services/ske.ts +258 -228
  291. package/src/services/sqlserverflex.ts +47 -47
  292. package/src/services/stackit_marketplace.ts +39 -39
  293. package/src/services/telemetry_link.ts +136 -81
  294. package/src/services/telemetry_router.ts +283 -94
  295. package/src/services/ufw.ts +56 -54
  296. package/src/services/valkey.ts +290 -118
  297. package/src/services/vpn.ts +152 -142
  298. package/src/services/workflows.ts +65 -65
@@ -0,0 +1,1277 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import * as C from "@distilled.cloud/core/category";
3
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
4
+ import * as S from "@distilled.cloud/core/schema-lite";
5
+ import * as __L from "@distilled.cloud/core/schema-lite";
6
+ import type * as Redacted from "effect/Redacted";
7
+ import { UnknownStackitError } from "../errors.ts";
8
+ import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
9
+ import * as Retry from "../retry.ts";
10
+ import * as T from "../traits.ts";
11
+ // Schema table, filled on first reach (see __S at the end).
12
+ const __s: any[] = [];
13
+
14
+ export type { StackitOpError, StackitOpContext };
15
+
16
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
17
+ const TELEMETRY = {
18
+ system: "stackit-api",
19
+ responseHeaders: [
20
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
21
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
22
+ ],
23
+ prefix: "STACKIT",
24
+ service: "Mailout",
25
+ labels: "stackit",
26
+ propagate: "w3c",
27
+ } as const;
28
+
29
+ export class BadRequest
30
+ extends /*@__PURE__*/ T.applyErrorMatchers(
31
+ /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
32
+ code: S.Number,
33
+ message: S.String,
34
+ }).pipe(C.withBadRequestError),
35
+ [{ status: 400 }],
36
+ ) {}
37
+
38
+ export class Conflict
39
+ extends /*@__PURE__*/ T.applyErrorMatchers(
40
+ /*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
41
+ code: S.Number,
42
+ message: S.String,
43
+ }).pipe(C.withConflictError),
44
+ [{ status: 409 }],
45
+ ) {}
46
+
47
+ export class NotFound
48
+ extends /*@__PURE__*/ T.applyErrorMatchers(
49
+ /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
50
+ code: S.Number,
51
+ message: S.String,
52
+ }).pipe(C.withBadRequestError),
53
+ [{ status: 404 }],
54
+ ) {}
55
+
56
+ export type AddRecipientToSuppressionListRequestRegionId = "eu01" | "eu02";
57
+ export interface AddRecipientToSuppressionListRequest {
58
+ /** The STACKIT portal project UUID the resource is located in. */
59
+ projectId: string;
60
+ /** The STACKIT region name the resource is located in. */
61
+ regionId: AddRecipientToSuppressionListRequestRegionId | (string & {});
62
+ /** UUID of the sending domain resource */
63
+ sendingDomainId: string;
64
+ /** The email address of the recipient to suppress */
65
+ recipientAddress: string;
66
+ }
67
+ /** Reason why the recipient was added to the suppression list */
68
+ export type SuppressionReason = "Bounce" | "Added Manually";
69
+ export interface Suppression {
70
+ /** Timestamp when the recipient was added to the suppression list */
71
+ addedAt: string;
72
+ /** Timestamp until which the recipient is blocked (null if permanent) */
73
+ blockedUntil?: string | null | undefined;
74
+ reason: SuppressionReason;
75
+ /** The email address of the suppressed recipient */
76
+ recipientAddress: string;
77
+ /** SMTP status code that triggered the suppression */
78
+ smtpCode: string;
79
+ /** SMTP error description */
80
+ smtpDescription: string;
81
+ }
82
+ export type CreateAuthorizedSenderRequestRegionId = "eu01" | "eu02";
83
+ export interface CreateAuthorizedSenderRequest {
84
+ /** The STACKIT portal project UUID the resource is located in. */
85
+ projectId: string;
86
+ /** The STACKIT region name the resource is located in. */
87
+ regionId: CreateAuthorizedSenderRequestRegionId | (string & {});
88
+ /** UUID of the sending domain resource */
89
+ sendingDomainId: string;
90
+ /** User-provided description for the sender (e.g., "Marketing Team") */
91
+ description: string;
92
+ }
93
+ export type AuthorizedSenderState = "creating" | "deleting" | "active";
94
+ export interface CreateAuthorizedSenderResponse {
95
+ /** User-provided description for the sender */
96
+ description: string;
97
+ /** UUID of the authorized sender resource */
98
+ id: string;
99
+ /** SMTP endpoint to use for this sending domain */
100
+ smtpEndpoint: string;
101
+ state: AuthorizedSenderState;
102
+ /** Auto-generated username for SMTP authentication */
103
+ username: string;
104
+ password: string | Redacted.Redacted<string>;
105
+ }
106
+ export type CreateSendingDomainRequestRegionId = "eu01" | "eu02";
107
+ export interface CreateSendingDomainRequest {
108
+ /** The STACKIT portal project UUID the resource is located in. */
109
+ projectId: string;
110
+ /** The STACKIT region name the resource is located in. */
111
+ regionId: CreateSendingDomainRequestRegionId | (string & {});
112
+ domain: string;
113
+ }
114
+ /** List of errors related to state */
115
+ export type CreateSendingDomainResponseMessagesList = Array<string>;
116
+ export type SendingDomainState =
117
+ | "creating"
118
+ | "validating"
119
+ | "blocked"
120
+ | "restricted"
121
+ | "active"
122
+ | "deleting";
123
+ export interface CreateSendingDomainResponse {
124
+ blockedUntil?: string | undefined;
125
+ domain: string;
126
+ /** UUID of the sending domain resource */
127
+ id: string;
128
+ /** List of errors related to state */
129
+ messages?: CreateSendingDomainResponseMessagesList | undefined;
130
+ state: SendingDomainState;
131
+ }
132
+ export type DeleteAuthorizedSenderRequestRegionId = "eu01" | "eu02";
133
+ export interface DeleteAuthorizedSenderRequest {
134
+ /** The STACKIT portal project UUID the resource is located in. */
135
+ projectId: string;
136
+ /** The STACKIT region name the resource is located in. */
137
+ regionId: DeleteAuthorizedSenderRequestRegionId | (string & {});
138
+ /** UUID of the sending domain resource */
139
+ sendingDomainId: string;
140
+ /** UUID of the authorized sender resource */
141
+ authorizedSenderId: string;
142
+ }
143
+ export interface DeleteAuthorizedSenderResponse {}
144
+ export type DeleteSendingDomainRequestRegionId = "eu01" | "eu02";
145
+ export interface DeleteSendingDomainRequest {
146
+ /** The STACKIT portal project UUID the resource is located in. */
147
+ projectId: string;
148
+ /** The STACKIT region name the resource is located in. */
149
+ regionId: DeleteSendingDomainRequestRegionId | (string & {});
150
+ /** UUID of the sending domain resource */
151
+ sendingDomainId: string;
152
+ }
153
+ export interface DeleteSendingDomainResponse {}
154
+ export type ExportSendingDomainDNSRecordsRequestRegionId = "eu01" | "eu02";
155
+ export type ExportSendingDomainDNSRecordsRequestFormat = "json" | "csv" | "bind";
156
+ export interface ExportSendingDomainDNSRecordsRequest {
157
+ /** The STACKIT portal project UUID the resource is located in. */
158
+ projectId: string;
159
+ /** The STACKIT region name the resource is located in. */
160
+ regionId: ExportSendingDomainDNSRecordsRequestRegionId | (string & {});
161
+ /** UUID of the sending domain resource */
162
+ sendingDomainId: string;
163
+ /** Export format for the DNS records file */
164
+ format: ExportSendingDomainDNSRecordsRequestFormat | (string & {});
165
+ }
166
+ export type ExportSendingDomainDNSRecordsResponse = string;
167
+ export type GetAuthorizedSenderRequestRegionId = "eu01" | "eu02";
168
+ export interface GetAuthorizedSenderRequest {
169
+ /** The STACKIT portal project UUID the resource is located in. */
170
+ projectId: string;
171
+ /** The STACKIT region name the resource is located in. */
172
+ regionId: GetAuthorizedSenderRequestRegionId | (string & {});
173
+ /** UUID of the sending domain resource */
174
+ sendingDomainId: string;
175
+ /** UUID of the authorized sender resource */
176
+ authorizedSenderId: string;
177
+ }
178
+ export interface GetAuthorizedSenderResponse {
179
+ /** User-provided description for the sender */
180
+ description: string;
181
+ /** UUID of the authorized sender resource */
182
+ id: string;
183
+ /** SMTP endpoint to use for this sending domain */
184
+ smtpEndpoint: string;
185
+ state: AuthorizedSenderState;
186
+ /** Auto-generated username for SMTP authentication */
187
+ username: string;
188
+ }
189
+ export type GetSendingDomainRequestRegionId = "eu01" | "eu02";
190
+ export interface GetSendingDomainRequest {
191
+ /** The STACKIT portal project UUID the resource is located in. */
192
+ projectId: string;
193
+ /** The STACKIT region name the resource is located in. */
194
+ regionId: GetSendingDomainRequestRegionId | (string & {});
195
+ /** UUID of the sending domain resource */
196
+ sendingDomainId: string;
197
+ }
198
+ /** List of errors related to state */
199
+ export type GetSendingDomainResponseMessagesList = Array<string>;
200
+ /** A single DNS record */
201
+ export interface DNSRecord {
202
+ /** DNS record host */
203
+ host: string;
204
+ /** DNS record type (e.g. CNAME, TXT) */
205
+ type: string;
206
+ /** DNS record value */
207
+ value: string;
208
+ }
209
+ /** List of DKIM records */
210
+ export type DNSRecordsDkimList = Array<DNSRecord>;
211
+ /** DNS configuration for the sending domain */
212
+ export interface DNSRecords {
213
+ /** List of DKIM records */
214
+ dkim?: DNSRecordsDkimList | undefined;
215
+ dmarc?: DNSRecord | undefined;
216
+ returnPath?: DNSRecord | undefined;
217
+ spf?: DNSRecord | undefined;
218
+ }
219
+ /** The current validation status of the sending domain */
220
+ export type DomainValidationStatusStatus =
221
+ | "ValidationSucceeded"
222
+ | "ValidationFailed"
223
+ | "ValidationPending"
224
+ | "RecordsNotReady";
225
+ /** Validation status of the DKIM Selector */
226
+ export type DKIMValidationReportStatus = "Valid" | "Invalid";
227
+ export interface DKIMValidationReport {
228
+ message?: string | undefined;
229
+ /** DKIM Selector */
230
+ selector?: string | undefined;
231
+ /** Validation status of the DKIM Selector */
232
+ status: DKIMValidationReportStatus;
233
+ }
234
+ export type DomainValidationReportDkimList = Array<DKIMValidationReport>;
235
+ /** Validation status of the DNS record */
236
+ export type ValidationReportStatus = "Valid" | "Invalid" | "NotConfigured";
237
+ export interface ValidationReport {
238
+ message?: string | undefined;
239
+ /** Validation status of the DNS record */
240
+ status: ValidationReportStatus;
241
+ }
242
+ export interface DomainValidationReport {
243
+ dkim?: DomainValidationReportDkimList | undefined;
244
+ dmarc?: ValidationReport | undefined;
245
+ returnPath?: ValidationReport | undefined;
246
+ spf?: ValidationReport | undefined;
247
+ }
248
+ export interface DomainValidationStatus {
249
+ /** The timestamp of the last validation */
250
+ lastValidationTime?: string | undefined;
251
+ /** The current validation status of the sending domain */
252
+ status?: DomainValidationStatusStatus | undefined;
253
+ validationReport?: DomainValidationReport | undefined;
254
+ }
255
+ /** Configuration returned for a single sending domain */
256
+ export interface SendingDomainConfig {
257
+ dnsRecords?: DNSRecords | undefined;
258
+ domainValidationStatus?: DomainValidationStatus | undefined;
259
+ /** Region of this sending domain config (e.g. eu01) */
260
+ region?: string | undefined;
261
+ }
262
+ export interface GetSendingDomainResponse {
263
+ blockedUntil?: string | undefined;
264
+ domain: string;
265
+ /** UUID of the sending domain resource */
266
+ id: string;
267
+ /** List of errors related to state */
268
+ messages?: GetSendingDomainResponseMessagesList | undefined;
269
+ state: SendingDomainState;
270
+ config: SendingDomainConfig;
271
+ }
272
+ export type GetSendingDomainMessageRequestRegionId = "eu01" | "eu02";
273
+ export interface GetSendingDomainMessageRequest {
274
+ /** The STACKIT portal project UUID the resource is located in. */
275
+ projectId: string;
276
+ /** The STACKIT region name the resource is located in. */
277
+ regionId: GetSendingDomainMessageRequestRegionId | (string & {});
278
+ /** UUID of the sending domain resource */
279
+ sendingDomainId: string;
280
+ /** The message spool id of the email */
281
+ messageSpoolId: string;
282
+ }
283
+ /** Customer-facing delivery status. */
284
+ export type SendingDomainMessageDetailsStatus =
285
+ | "Delivered"
286
+ | "Queued"
287
+ | "Soft Bounce"
288
+ | "Hard Bounce"
289
+ | "Expired"
290
+ | "Hard Bounce (OOB)";
291
+ /** The logged email event details plus the resolved status. */
292
+ export interface SendingDomainMessageDetails {
293
+ accepted_at?: string | undefined;
294
+ attachment: string;
295
+ attachment_size: number;
296
+ attempts: number;
297
+ delivered_at?: string | undefined;
298
+ from: string;
299
+ last_attempt?: string | undefined;
300
+ message_direction: string;
301
+ message_id: string;
302
+ message_size: number;
303
+ message_spool_id: string;
304
+ recipient: string;
305
+ smtp_code: number;
306
+ smtp_description: string;
307
+ /** Customer-facing delivery status. */
308
+ status: SendingDomainMessageDetailsStatus;
309
+ subject: string;
310
+ timestamp: number;
311
+ to: string;
312
+ }
313
+ /** The original email headers. */
314
+ export type SendingDomainMessageHeadersMap = { [key: string]: string | undefined };
315
+ export interface SendingDomainMessage {
316
+ details: SendingDomainMessageDetails;
317
+ /** The original email headers. */
318
+ headers: SendingDomainMessageHeadersMap;
319
+ }
320
+ export type GetSendingDomainMetricsRequestRegionId = "eu01" | "eu02";
321
+ export type MetricsTimespan = "day" | "week" | "all";
322
+ export interface GetSendingDomainMetricsRequest {
323
+ /** The STACKIT portal project UUID the resource is located in. */
324
+ projectId: string;
325
+ /** The STACKIT region name the resource is located in. */
326
+ regionId: GetSendingDomainMetricsRequestRegionId | (string & {});
327
+ /** UUID of the sending domain resource */
328
+ sendingDomainId: string;
329
+ /** The time span for the metrics query. Can be combined with startTime or endTime to query relative time intervals (e.g., timespan=day with startTime queries 24h starting from startTime; timespan=week with endTime queries 7d ending at endTime). Ignored if both startTime and endTime are provided. Defaults to all time if omitted. */
330
+ timespan?: MetricsTimespan | (string & {}) | undefined;
331
+ /** The start time for a metrics timespan (RFC 3339). Must not be after endTime (returns HTTP 400 if startTime > endTime). When specified with a timespan (e.g. day, week), the query interval spans forward by that duration starting from startTime. If timespan is 'all' or omitted, queries from startTime until the current time. */
332
+ startTime?: string | undefined;
333
+ /** The end time for a metrics timespan (RFC 3339). Must not be before startTime (returns HTTP 400 if startTime > endTime). When specified with a timespan (e.g. day, week), the query interval spans backward by that duration ending at endTime. If timespan is 'all' or omitted, queries all history up to endTime. */
334
+ endTime?: string | undefined;
335
+ }
336
+ export interface MetricsResponse {
337
+ /** Number of accepted e-mails */
338
+ acceptedEmails: number;
339
+ /** Bounce rate as a percentage, or "-" if deliveredEmails is 0 */
340
+ bounceRatePercent: string;
341
+ /** Number of delivered e-mails */
342
+ deliveredEmails: number;
343
+ /** Delivery rate as a percentage, or "-" if acceptedEmails is 0 */
344
+ deliveryRatePercent: string;
345
+ /** Number of hard bounces */
346
+ hardBounces: number;
347
+ /** Number of soft bounces */
348
+ softBounces: number;
349
+ }
350
+ export type ListAuthorizedSendersRequestRegionId = "eu01" | "eu02";
351
+ export interface ListAuthorizedSendersRequest {
352
+ /** The STACKIT portal project UUID the resource is located in. */
353
+ projectId: string;
354
+ /** The STACKIT region name the resource is located in. */
355
+ regionId: ListAuthorizedSendersRequestRegionId | (string & {});
356
+ /** UUID of the sending domain resource */
357
+ sendingDomainId: string;
358
+ }
359
+ export interface AuthorizedSender {
360
+ /** User-provided description for the sender */
361
+ description: string;
362
+ /** UUID of the authorized sender resource */
363
+ id: string;
364
+ /** SMTP endpoint to use for this sending domain */
365
+ smtpEndpoint: string;
366
+ state: AuthorizedSenderState;
367
+ /** Auto-generated username for SMTP authentication */
368
+ username: string;
369
+ }
370
+ export type ListAuthorizedSendersResponseItemsList = Array<AuthorizedSender>;
371
+ export interface ListAuthorizedSendersResponse {
372
+ items: ListAuthorizedSendersResponseItemsList;
373
+ }
374
+ export type ListSendingDomainMessagesRequestRegionId = "eu01" | "eu02";
375
+ export interface ListSendingDomainMessagesRequest {
376
+ /** The STACKIT portal project UUID the resource is located in. */
377
+ projectId: string;
378
+ /** The STACKIT region name the resource is located in. */
379
+ regionId: ListSendingDomainMessagesRequestRegionId | (string & {});
380
+ /** UUID of the sending domain resource */
381
+ sendingDomainId: string;
382
+ /** Maximum number of messages to return per page. */
383
+ limit?: number | undefined;
384
+ /** Pagination cursor from a previous response's nextCursor */
385
+ cursor?: string | undefined;
386
+ /** Filter by the state of the message (maps to event_type). */
387
+ state?: string | undefined;
388
+ /** Case-insensitive substring search for subject (minimum 3 characters). */
389
+ subject?: string | undefined;
390
+ /** Case-insensitive substring search for sender address (minimum 3 characters). */
391
+ sender?: string | undefined;
392
+ /** Case-insensitive substring search for recipient address (minimum 3 characters). */
393
+ recipient?: string | undefined;
394
+ }
395
+ export type ListMessagesResponseItemsList = Array<SendingDomainMessage>;
396
+ export interface ListMessagesResponse {
397
+ items: ListMessagesResponseItemsList;
398
+ /** Timestamp cursor for the next page. Absent when there are no more messages. */
399
+ nextCursor?: string | undefined;
400
+ }
401
+ export type ListSendingDomainsRequestRegionId = "eu01" | "eu02";
402
+ export interface ListSendingDomainsRequest {
403
+ /** The STACKIT portal project UUID the resource is located in. */
404
+ projectId: string;
405
+ /** The STACKIT region name the resource is located in. */
406
+ regionId: ListSendingDomainsRequestRegionId | (string & {});
407
+ }
408
+ /** List of errors related to state */
409
+ export type SendingDomainMessagesList = Array<string>;
410
+ export interface SendingDomain {
411
+ blockedUntil?: string | undefined;
412
+ domain: string;
413
+ /** UUID of the sending domain resource */
414
+ id: string;
415
+ /** List of errors related to state */
416
+ messages?: SendingDomainMessagesList | undefined;
417
+ state: SendingDomainState;
418
+ }
419
+ export type ListSendingDomainsResponseItemsList = Array<SendingDomain>;
420
+ export interface ListSendingDomainsResponse {
421
+ items: ListSendingDomainsResponseItemsList;
422
+ }
423
+ export type ListSuppressedRecipientsRequestRegionId = "eu01" | "eu02";
424
+ export interface ListSuppressedRecipientsRequest {
425
+ /** The STACKIT portal project UUID the resource is located in. */
426
+ projectId: string;
427
+ /** The STACKIT region name the resource is located in. */
428
+ regionId: ListSuppressedRecipientsRequestRegionId | (string & {});
429
+ /** UUID of the sending domain resource */
430
+ sendingDomainId: string;
431
+ }
432
+ export type ListSuppressedRecipientsResponseItemsList = Array<Suppression>;
433
+ export interface ListSuppressedRecipientsResponse {
434
+ items: ListSuppressedRecipientsResponseItemsList;
435
+ }
436
+ export type RemoveRecipientFromSuppressionListRequestRegionId = "eu01" | "eu02";
437
+ export interface RemoveRecipientFromSuppressionListRequest {
438
+ /** The STACKIT portal project UUID the resource is located in. */
439
+ projectId: string;
440
+ /** The STACKIT region name the resource is located in. */
441
+ regionId: RemoveRecipientFromSuppressionListRequestRegionId | (string & {});
442
+ /** UUID of the sending domain resource */
443
+ sendingDomainId: string;
444
+ /** The email address of the suppressed recipient. */
445
+ recipientAddress: string;
446
+ }
447
+ export interface RemoveRecipientFromSuppressionListResponse {}
448
+ export type ValidateSendingDomainRequestRegionId = "eu01" | "eu02";
449
+ export interface ValidateSendingDomainRequest {
450
+ /** The STACKIT portal project UUID the resource is located in. */
451
+ projectId: string;
452
+ /** The STACKIT region name the resource is located in. */
453
+ regionId: ValidateSendingDomainRequestRegionId | (string & {});
454
+ /** UUID of the sending domain resource */
455
+ sendingDomainId: string;
456
+ }
457
+ export interface ValidateSendingDomainResponse {}
458
+ export type AddRecipientToSuppressionListError = BadRequest | NotFound | Conflict | StackitOpError;
459
+ /** Add a recipient to the suppression list */
460
+ export const addRecipientToSuppressionList: API.OperationMethod<
461
+ AddRecipientToSuppressionListRequest,
462
+ Suppression,
463
+ AddRecipientToSuppressionListError,
464
+ StackitOpContext
465
+ > = /*@__PURE__*/ API.make(() => ({
466
+ input: __S(160, __c10, 0) as any as S.Schema<AddRecipientToSuppressionListRequest>,
467
+ output: __S(176, __c11, 0) as any as S.Schema<Suppression>,
468
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
469
+ protocol: StackitProtocol,
470
+ retry: Retry.Retry,
471
+ telemetry: TELEMETRY,
472
+ span: "AddRecipientToSuppressionList",
473
+ }));
474
+
475
+ export type CreateAuthorizedSenderError = BadRequest | NotFound | Conflict | StackitOpError;
476
+ /** Authorize a sender for this sending domain */
477
+ export const createAuthorizedSender: API.OperationMethod<
478
+ CreateAuthorizedSenderRequest,
479
+ CreateAuthorizedSenderResponse,
480
+ CreateAuthorizedSenderError,
481
+ StackitOpContext
482
+ > = /*@__PURE__*/ API.make(() => ({
483
+ input: __S(192, __c12, 0) as any as S.Schema<CreateAuthorizedSenderRequest>,
484
+ output: __S(193, __c12, 1) as any as S.Schema<CreateAuthorizedSenderResponse>,
485
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
486
+ protocol: StackitProtocol,
487
+ retry: Retry.Retry,
488
+ telemetry: TELEMETRY,
489
+ span: "CreateAuthorizedSender",
490
+ }));
491
+
492
+ export type CreateSendingDomainError = BadRequest | Conflict | StackitOpError;
493
+ /** Create a sending domain */
494
+ export const createSendingDomain: API.OperationMethod<
495
+ CreateSendingDomainRequest,
496
+ CreateSendingDomainResponse,
497
+ CreateSendingDomainError,
498
+ StackitOpContext
499
+ > = /*@__PURE__*/ API.make(() => ({
500
+ input: __S(208, __c13, 0) as any as S.Schema<CreateSendingDomainRequest>,
501
+ output: __S(240, __c15, 0) as any as S.Schema<CreateSendingDomainResponse>,
502
+ errors: [BadRequest, Conflict, UnknownStackitError],
503
+ protocol: StackitProtocol,
504
+ retry: Retry.Retry,
505
+ telemetry: TELEMETRY,
506
+ span: "CreateSendingDomain",
507
+ }));
508
+
509
+ export type DeleteAuthorizedSenderError = BadRequest | NotFound | Conflict | StackitOpError;
510
+ /** Revoke authorization for sender */
511
+ export const deleteAuthorizedSender: API.OperationMethod<
512
+ DeleteAuthorizedSenderRequest,
513
+ DeleteAuthorizedSenderResponse,
514
+ DeleteAuthorizedSenderError,
515
+ StackitOpContext
516
+ > = /*@__PURE__*/ API.make(() => ({
517
+ input: __S(256, __c16, 0) as any as S.Schema<DeleteAuthorizedSenderRequest>,
518
+ output: __S(272, __c17, 0) as any as S.Schema<DeleteAuthorizedSenderResponse>,
519
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
520
+ protocol: StackitProtocol,
521
+ retry: Retry.Retry,
522
+ telemetry: TELEMETRY,
523
+ span: "DeleteAuthorizedSender",
524
+ }));
525
+
526
+ export type DeleteSendingDomainError = BadRequest | NotFound | Conflict | StackitOpError;
527
+ /** Delete a sending domain */
528
+ export const deleteSendingDomain: API.OperationMethod<
529
+ DeleteSendingDomainRequest,
530
+ DeleteSendingDomainResponse,
531
+ DeleteSendingDomainError,
532
+ StackitOpContext
533
+ > = /*@__PURE__*/ API.make(() => ({
534
+ input: __S(288, __c18, 0) as any as S.Schema<DeleteSendingDomainRequest>,
535
+ output: __S(272, __c17, 0) as any as S.Schema<DeleteSendingDomainResponse>,
536
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
537
+ protocol: StackitProtocol,
538
+ retry: Retry.Retry,
539
+ telemetry: TELEMETRY,
540
+ span: "DeleteSendingDomain",
541
+ }));
542
+
543
+ export type ExportSendingDomainDNSRecordsError = BadRequest | NotFound | Conflict | StackitOpError;
544
+ /** Get DNS records for a sending domain as a downloadable file */
545
+ export const exportSendingDomainDNSRecords: API.OperationMethod<
546
+ ExportSendingDomainDNSRecordsRequest,
547
+ ExportSendingDomainDNSRecordsResponse,
548
+ ExportSendingDomainDNSRecordsError,
549
+ StackitOpContext
550
+ > = /*@__PURE__*/ API.make(() => ({
551
+ input: __S(304, __c19, 0) as any as S.Schema<ExportSendingDomainDNSRecordsRequest>,
552
+ output: __S(305, __c19, 1) as any as S.Schema<ExportSendingDomainDNSRecordsResponse>,
553
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
554
+ protocol: StackitProtocol,
555
+ retry: Retry.Retry,
556
+ telemetry: TELEMETRY,
557
+ span: "ExportSendingDomainDNSRecords",
558
+ }));
559
+
560
+ export type GetAuthorizedSenderError = BadRequest | NotFound | StackitOpError;
561
+ /** Get authorized sender information */
562
+ export const getAuthorizedSender: API.OperationMethod<
563
+ GetAuthorizedSenderRequest,
564
+ GetAuthorizedSenderResponse,
565
+ GetAuthorizedSenderError,
566
+ StackitOpContext
567
+ > = /*@__PURE__*/ API.make(() => ({
568
+ input: __S(320, __c20, 0) as any as S.Schema<GetAuthorizedSenderRequest>,
569
+ output: __S(336, __c21, 0) as any as S.Schema<GetAuthorizedSenderResponse>,
570
+ errors: [BadRequest, NotFound, UnknownStackitError],
571
+ protocol: StackitProtocol,
572
+ retry: Retry.Retry,
573
+ telemetry: TELEMETRY,
574
+ span: "GetAuthorizedSender",
575
+ }));
576
+
577
+ export type GetSendingDomainError = BadRequest | NotFound | StackitOpError;
578
+ /** Get configuration for a sending domain */
579
+ export const getSendingDomain: API.OperationMethod<
580
+ GetSendingDomainRequest,
581
+ GetSendingDomainResponse,
582
+ GetSendingDomainError,
583
+ StackitOpContext
584
+ > = /*@__PURE__*/ API.make(() => ({
585
+ input: __S(0, __c0, 0) as any as S.Schema<GetSendingDomainRequest>,
586
+ output: __S(10, __c0, 10) as any as S.Schema<GetSendingDomainResponse>,
587
+ errors: [BadRequest, NotFound, UnknownStackitError],
588
+ protocol: StackitProtocol,
589
+ retry: Retry.Retry,
590
+ telemetry: TELEMETRY,
591
+ span: "GetSendingDomain",
592
+ }));
593
+
594
+ export type GetSendingDomainMessageError = BadRequest | NotFound | StackitOpError;
595
+ /** Get the newest event of a message */
596
+ export const getSendingDomainMessage: API.OperationMethod<
597
+ GetSendingDomainMessageRequest,
598
+ SendingDomainMessage,
599
+ GetSendingDomainMessageError,
600
+ StackitOpContext
601
+ > = /*@__PURE__*/ API.make(() => ({
602
+ input: __S(16, __c1, 0) as any as S.Schema<GetSendingDomainMessageRequest>,
603
+ output: __S(34, __c2, 2) as any as S.Schema<SendingDomainMessage>,
604
+ errors: [BadRequest, NotFound, UnknownStackitError],
605
+ protocol: StackitProtocol,
606
+ retry: Retry.Retry,
607
+ telemetry: TELEMETRY,
608
+ span: "GetSendingDomainMessage",
609
+ }));
610
+
611
+ export type GetSendingDomainMetricsError = BadRequest | NotFound | StackitOpError;
612
+ /** Retrieves aggregated email metrics for a sending domain */
613
+ export const getSendingDomainMetrics: API.OperationMethod<
614
+ GetSendingDomainMetricsRequest,
615
+ MetricsResponse,
616
+ GetSendingDomainMetricsError,
617
+ StackitOpContext
618
+ > = /*@__PURE__*/ API.make(() => ({
619
+ input: __S(48, __c3, 0) as any as S.Schema<GetSendingDomainMetricsRequest>,
620
+ output: __S(49, __c3, 1) as any as S.Schema<MetricsResponse>,
621
+ errors: [BadRequest, NotFound, UnknownStackitError],
622
+ protocol: StackitProtocol,
623
+ retry: Retry.Retry,
624
+ telemetry: TELEMETRY,
625
+ span: "GetSendingDomainMetrics",
626
+ }));
627
+
628
+ export type ListAuthorizedSendersError = BadRequest | NotFound | StackitOpError;
629
+ /** List authorized senders for this sending domain */
630
+ export const listAuthorizedSenders: API.OperationMethod<
631
+ ListAuthorizedSendersRequest,
632
+ ListAuthorizedSendersResponse,
633
+ ListAuthorizedSendersError,
634
+ StackitOpContext
635
+ > = /*@__PURE__*/ API.make(() => ({
636
+ input: __S(64, __c4, 0) as any as S.Schema<ListAuthorizedSendersRequest>,
637
+ output: __S(66, __c4, 2) as any as S.Schema<ListAuthorizedSendersResponse>,
638
+ errors: [BadRequest, NotFound, UnknownStackitError],
639
+ protocol: StackitProtocol,
640
+ retry: Retry.Retry,
641
+ telemetry: TELEMETRY,
642
+ span: "ListAuthorizedSenders",
643
+ }));
644
+
645
+ export type ListSendingDomainMessagesError = BadRequest | NotFound | StackitOpError;
646
+ /** List messages for a specific sending domain */
647
+ export const listSendingDomainMessages: API.OperationMethod<
648
+ ListSendingDomainMessagesRequest,
649
+ ListMessagesResponse,
650
+ ListSendingDomainMessagesError,
651
+ StackitOpContext
652
+ > = /*@__PURE__*/ API.make(() => ({
653
+ input: __S(80, __c5, 0) as any as S.Schema<ListSendingDomainMessagesRequest>,
654
+ output: __S(82, __c5, 2) as any as S.Schema<ListMessagesResponse>,
655
+ errors: [BadRequest, NotFound, UnknownStackitError],
656
+ protocol: StackitProtocol,
657
+ retry: Retry.Retry,
658
+ telemetry: TELEMETRY,
659
+ span: "ListSendingDomainMessages",
660
+ }));
661
+
662
+ export type ListSendingDomainsError = BadRequest | StackitOpError;
663
+ /** List sending domains */
664
+ export const listSendingDomains: API.OperationMethod<
665
+ ListSendingDomainsRequest,
666
+ ListSendingDomainsResponse,
667
+ ListSendingDomainsError,
668
+ StackitOpContext
669
+ > = /*@__PURE__*/ API.make(() => ({
670
+ input: __S(96, __c6, 0) as any as S.Schema<ListSendingDomainsRequest>,
671
+ output: __S(98, __c6, 2) as any as S.Schema<ListSendingDomainsResponse>,
672
+ errors: [BadRequest, UnknownStackitError],
673
+ protocol: StackitProtocol,
674
+ retry: Retry.Retry,
675
+ telemetry: TELEMETRY,
676
+ span: "ListSendingDomains",
677
+ }));
678
+
679
+ export type ListSuppressedRecipientsError = BadRequest | NotFound | StackitOpError;
680
+ /** List suppressions for a specific sending domain */
681
+ export const listSuppressedRecipients: API.OperationMethod<
682
+ ListSuppressedRecipientsRequest,
683
+ ListSuppressedRecipientsResponse,
684
+ ListSuppressedRecipientsError,
685
+ StackitOpContext
686
+ > = /*@__PURE__*/ API.make(() => ({
687
+ input: __S(112, __c7, 0) as any as S.Schema<ListSuppressedRecipientsRequest>,
688
+ output: __S(114, __c7, 2) as any as S.Schema<ListSuppressedRecipientsResponse>,
689
+ errors: [BadRequest, NotFound, UnknownStackitError],
690
+ protocol: StackitProtocol,
691
+ retry: Retry.Retry,
692
+ telemetry: TELEMETRY,
693
+ span: "ListSuppressedRecipients",
694
+ }));
695
+
696
+ export type RemoveRecipientFromSuppressionListError = BadRequest | NotFound | StackitOpError;
697
+ /** Delete a recipient from the suppression list */
698
+ export const removeRecipientFromSuppressionList: API.OperationMethod<
699
+ RemoveRecipientFromSuppressionListRequest,
700
+ RemoveRecipientFromSuppressionListResponse,
701
+ RemoveRecipientFromSuppressionListError,
702
+ StackitOpContext
703
+ > = /*@__PURE__*/ API.make(() => ({
704
+ input: __S(128, __c8, 0) as any as S.Schema<RemoveRecipientFromSuppressionListRequest>,
705
+ output: __S(272, __c17, 0) as any as S.Schema<RemoveRecipientFromSuppressionListResponse>,
706
+ errors: [BadRequest, NotFound, UnknownStackitError],
707
+ protocol: StackitProtocol,
708
+ retry: Retry.Retry,
709
+ telemetry: TELEMETRY,
710
+ span: "RemoveRecipientFromSuppressionList",
711
+ }));
712
+
713
+ export type ValidateSendingDomainError = BadRequest | NotFound | StackitOpError;
714
+ /** Manually trigger validation for a sending domain */
715
+ export const validateSendingDomain: API.OperationMethod<
716
+ ValidateSendingDomainRequest,
717
+ ValidateSendingDomainResponse,
718
+ ValidateSendingDomainError,
719
+ StackitOpContext
720
+ > = /*@__PURE__*/ API.make(() => ({
721
+ input: __S(144, __c9, 0) as any as S.Schema<ValidateSendingDomainRequest>,
722
+ output: __S(272, __c17, 0) as any as S.Schema<ValidateSendingDomainResponse>,
723
+ errors: [BadRequest, NotFound, UnknownStackitError],
724
+ protocol: StackitProtocol,
725
+ retry: Retry.Retry,
726
+ telemetry: TELEMETRY,
727
+ span: "ValidateSendingDomain",
728
+ }));
729
+
730
+ // Schema builders: each runs one schema initializer, on that schema's first use.
731
+ function __c0(j: number): any {
732
+ switch (j) {
733
+ case 0:
734
+ return S.suspend(() =>
735
+ S.Struct({
736
+ projectId: S.String.pipe(T.Label()),
737
+ regionId: S.String.pipe(T.Label()),
738
+ sendingDomainId: S.String.pipe(T.Label()),
739
+ }).pipe(
740
+ T.Http({
741
+ method: "GET",
742
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/sending-domains/{sendingDomainId}",
743
+ code: 200,
744
+ baseUrl: "https://mailout.api.{region}stackit.cloud",
745
+ }),
746
+ ),
747
+ ).annotate({ identifier: "GetSendingDomainRequest" });
748
+ case 1:
749
+ return S.suspend(() =>
750
+ S.Struct({
751
+ host: S.String,
752
+ type: S.String,
753
+ value: S.String,
754
+ }),
755
+ ).annotate({ identifier: "DNSRecord" });
756
+ case 2:
757
+ return S.Array(__S(1, __c0, 1));
758
+ case 3:
759
+ return S.suspend(() =>
760
+ S.Struct({
761
+ dkim: S.optional(__S(2, __c0, 2)),
762
+ dmarc: S.optional(__S(1, __c0, 1)),
763
+ returnPath: S.optional(__S(1, __c0, 1)),
764
+ spf: S.optional(__S(1, __c0, 1)),
765
+ }),
766
+ ).annotate({ identifier: "DNSRecords" });
767
+ case 4:
768
+ return S.suspend(() =>
769
+ S.Struct({
770
+ message: S.optional(S.String),
771
+ selector: S.optional(S.String),
772
+ status: S.String,
773
+ }),
774
+ ).annotate({ identifier: "DKIMValidationReport" });
775
+ case 5:
776
+ return S.Array(__S(4, __c0, 4));
777
+ case 6:
778
+ return S.suspend(() =>
779
+ S.Struct({
780
+ message: S.optional(S.String),
781
+ status: S.String,
782
+ }),
783
+ ).annotate({ identifier: "ValidationReport" });
784
+ case 7:
785
+ return S.suspend(() =>
786
+ S.Struct({
787
+ dkim: S.optional(__S(5, __c0, 5)),
788
+ dmarc: S.optional(__S(6, __c0, 6)),
789
+ returnPath: S.optional(__S(6, __c0, 6)),
790
+ spf: S.optional(__S(6, __c0, 6)),
791
+ }),
792
+ ).annotate({ identifier: "DomainValidationReport" });
793
+ case 8:
794
+ return S.suspend(() =>
795
+ S.Struct({
796
+ lastValidationTime: S.optional(S.String),
797
+ status: S.optional(S.String),
798
+ validationReport: S.optional(__S(7, __c0, 7)),
799
+ }),
800
+ ).annotate({ identifier: "DomainValidationStatus" });
801
+ case 9:
802
+ return S.suspend(() =>
803
+ S.Struct({
804
+ dnsRecords: S.optional(__S(3, __c0, 3)),
805
+ domainValidationStatus: S.optional(__S(8, __c0, 8)),
806
+ region: S.optional(S.String),
807
+ }),
808
+ ).annotate({ identifier: "SendingDomainConfig" });
809
+ case 10:
810
+ return S.suspend(() =>
811
+ S.Struct({
812
+ blockedUntil: S.optional(S.String),
813
+ domain: S.String,
814
+ id: S.String,
815
+ messages: S.optional(__S(224, __c14, 0)),
816
+ state: S.String,
817
+ config: __S(9, __c0, 9),
818
+ }),
819
+ ).annotate({ identifier: "GetSendingDomainResponse" });
820
+ }
821
+ }
822
+ function __c1(j: number): any {
823
+ switch (j) {
824
+ case 0:
825
+ return S.suspend(() =>
826
+ S.Struct({
827
+ projectId: S.String.pipe(T.Label()),
828
+ regionId: S.String.pipe(T.Label()),
829
+ sendingDomainId: S.String.pipe(T.Label()),
830
+ messageSpoolId: S.String.pipe(T.Label()),
831
+ }).pipe(
832
+ T.Http({
833
+ method: "GET",
834
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/sending-domains/{sendingDomainId}/messages/{messageSpoolId}",
835
+ code: 200,
836
+ baseUrl: "https://mailout.api.{region}stackit.cloud",
837
+ }),
838
+ ),
839
+ ).annotate({ identifier: "GetSendingDomainMessageRequest" });
840
+ }
841
+ }
842
+ function __c2(j: number): any {
843
+ switch (j) {
844
+ case 0:
845
+ return S.suspend(() =>
846
+ S.Struct({
847
+ accepted_at: S.optional(S.String),
848
+ attachment: S.String,
849
+ attachment_size: S.Number,
850
+ attempts: S.Number,
851
+ delivered_at: S.optional(S.String),
852
+ from: S.String,
853
+ last_attempt: S.optional(S.String),
854
+ message_direction: S.String,
855
+ message_id: S.String,
856
+ message_size: S.Number,
857
+ message_spool_id: S.String,
858
+ recipient: S.String,
859
+ smtp_code: S.Number,
860
+ smtp_description: S.String,
861
+ status: S.String,
862
+ subject: S.String,
863
+ timestamp: S.Number,
864
+ to: S.String,
865
+ }),
866
+ ).annotate({ identifier: "SendingDomainMessageDetails" });
867
+ case 1:
868
+ return S.Record(S.String, S.String);
869
+ case 2:
870
+ return S.suspend(() =>
871
+ S.Struct({
872
+ details: __S(32, __c2, 0),
873
+ headers: __S(33, __c2, 1),
874
+ }),
875
+ ).annotate({ identifier: "SendingDomainMessage" });
876
+ }
877
+ }
878
+ function __c3(j: number): any {
879
+ switch (j) {
880
+ case 0:
881
+ return S.suspend(() =>
882
+ S.Struct({
883
+ projectId: S.String.pipe(T.Label()),
884
+ regionId: S.String.pipe(T.Label()),
885
+ sendingDomainId: S.String.pipe(T.Label()),
886
+ timespan: S.optional(S.String.pipe(T.Query())),
887
+ startTime: S.optional(S.String.pipe(T.Query())),
888
+ endTime: S.optional(S.String.pipe(T.Query())),
889
+ }).pipe(
890
+ T.Http({
891
+ method: "GET",
892
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/sending-domains/{sendingDomainId}/metrics",
893
+ code: 200,
894
+ baseUrl: "https://mailout.api.{region}stackit.cloud",
895
+ }),
896
+ ),
897
+ ).annotate({ identifier: "GetSendingDomainMetricsRequest" });
898
+ case 1:
899
+ return S.suspend(() =>
900
+ S.Struct({
901
+ acceptedEmails: S.Number,
902
+ bounceRatePercent: S.String,
903
+ deliveredEmails: S.Number,
904
+ deliveryRatePercent: S.String,
905
+ hardBounces: S.Number,
906
+ softBounces: S.Number,
907
+ }),
908
+ ).annotate({ identifier: "MetricsResponse" });
909
+ }
910
+ }
911
+ function __c4(j: number): any {
912
+ switch (j) {
913
+ case 0:
914
+ return S.suspend(() =>
915
+ S.Struct({
916
+ projectId: S.String.pipe(T.Label()),
917
+ regionId: S.String.pipe(T.Label()),
918
+ sendingDomainId: S.String.pipe(T.Label()),
919
+ }).pipe(
920
+ T.Http({
921
+ method: "GET",
922
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/sending-domains/{sendingDomainId}/authorized-senders",
923
+ code: 200,
924
+ baseUrl: "https://mailout.api.{region}stackit.cloud",
925
+ }),
926
+ ),
927
+ ).annotate({ identifier: "ListAuthorizedSendersRequest" });
928
+ case 1:
929
+ return S.Array(__S(336, __c21, 0));
930
+ case 2:
931
+ return S.suspend(() =>
932
+ S.Struct({
933
+ items: __S(65, __c4, 1),
934
+ }),
935
+ ).annotate({ identifier: "ListAuthorizedSendersResponse" });
936
+ }
937
+ }
938
+ function __c5(j: number): any {
939
+ switch (j) {
940
+ case 0:
941
+ return S.suspend(() =>
942
+ S.Struct({
943
+ projectId: S.String.pipe(T.Label()),
944
+ regionId: S.String.pipe(T.Label()),
945
+ sendingDomainId: S.String.pipe(T.Label()),
946
+ limit: S.optional(S.Number.pipe(T.Query())),
947
+ cursor: S.optional(S.String.pipe(T.Query())),
948
+ state: S.optional(S.String.pipe(T.Query())),
949
+ subject: S.optional(S.String.pipe(T.Query())),
950
+ sender: S.optional(S.String.pipe(T.Query())),
951
+ recipient: S.optional(S.String.pipe(T.Query())),
952
+ }).pipe(
953
+ T.Http({
954
+ method: "GET",
955
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/sending-domains/{sendingDomainId}/messages",
956
+ code: 200,
957
+ baseUrl: "https://mailout.api.{region}stackit.cloud",
958
+ }),
959
+ ),
960
+ ).annotate({ identifier: "ListSendingDomainMessagesRequest" });
961
+ case 1:
962
+ return S.Array(__S(34, __c2, 2));
963
+ case 2:
964
+ return S.suspend(() =>
965
+ S.Struct({
966
+ items: __S(81, __c5, 1),
967
+ nextCursor: S.optional(S.String),
968
+ }),
969
+ ).annotate({ identifier: "ListMessagesResponse" });
970
+ }
971
+ }
972
+ function __c6(j: number): any {
973
+ switch (j) {
974
+ case 0:
975
+ return S.suspend(() =>
976
+ S.Struct({
977
+ projectId: S.String.pipe(T.Label()),
978
+ regionId: S.String.pipe(T.Label()),
979
+ }).pipe(
980
+ T.Http({
981
+ method: "GET",
982
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/sending-domains",
983
+ code: 200,
984
+ baseUrl: "https://mailout.api.{region}stackit.cloud",
985
+ }),
986
+ ),
987
+ ).annotate({ identifier: "ListSendingDomainsRequest" });
988
+ case 1:
989
+ return S.Array(__S(240, __c15, 0));
990
+ case 2:
991
+ return S.suspend(() =>
992
+ S.Struct({
993
+ items: __S(97, __c6, 1),
994
+ }),
995
+ ).annotate({ identifier: "ListSendingDomainsResponse" });
996
+ }
997
+ }
998
+ function __c7(j: number): any {
999
+ switch (j) {
1000
+ case 0:
1001
+ return S.suspend(() =>
1002
+ S.Struct({
1003
+ projectId: S.String.pipe(T.Label()),
1004
+ regionId: S.String.pipe(T.Label()),
1005
+ sendingDomainId: S.String.pipe(T.Label()),
1006
+ }).pipe(
1007
+ T.Http({
1008
+ method: "GET",
1009
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/sending-domains/{sendingDomainId}/suppressions",
1010
+ code: 200,
1011
+ baseUrl: "https://mailout.api.{region}stackit.cloud",
1012
+ }),
1013
+ ),
1014
+ ).annotate({ identifier: "ListSuppressedRecipientsRequest" });
1015
+ case 1:
1016
+ return S.Array(__S(176, __c11, 0));
1017
+ case 2:
1018
+ return S.suspend(() =>
1019
+ S.Struct({
1020
+ items: __S(113, __c7, 1),
1021
+ }),
1022
+ ).annotate({ identifier: "ListSuppressedRecipientsResponse" });
1023
+ }
1024
+ }
1025
+ function __c8(j: number): any {
1026
+ switch (j) {
1027
+ case 0:
1028
+ return S.suspend(() =>
1029
+ S.Struct({
1030
+ projectId: S.String.pipe(T.Label()),
1031
+ regionId: S.String.pipe(T.Label()),
1032
+ sendingDomainId: S.String.pipe(T.Label()),
1033
+ recipientAddress: S.String.pipe(T.Label()),
1034
+ }).pipe(
1035
+ T.Http({
1036
+ method: "DELETE",
1037
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/sending-domains/{sendingDomainId}/suppressions/{recipientAddress}",
1038
+ code: 200,
1039
+ baseUrl: "https://mailout.api.{region}stackit.cloud",
1040
+ }),
1041
+ ),
1042
+ ).annotate({ identifier: "RemoveRecipientFromSuppressionListRequest" });
1043
+ }
1044
+ }
1045
+ function __c9(j: number): any {
1046
+ switch (j) {
1047
+ case 0:
1048
+ return S.suspend(() =>
1049
+ S.Struct({
1050
+ projectId: S.String.pipe(T.Label()),
1051
+ regionId: S.String.pipe(T.Label()),
1052
+ sendingDomainId: S.String.pipe(T.Label()),
1053
+ }).pipe(
1054
+ T.Http({
1055
+ method: "POST",
1056
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/sending-domains/{sendingDomainId}/validate",
1057
+ code: 200,
1058
+ baseUrl: "https://mailout.api.{region}stackit.cloud",
1059
+ }),
1060
+ ),
1061
+ ).annotate({ identifier: "ValidateSendingDomainRequest" });
1062
+ }
1063
+ }
1064
+ function __c10(j: number): any {
1065
+ switch (j) {
1066
+ case 0:
1067
+ return S.suspend(() =>
1068
+ S.Struct({
1069
+ projectId: S.String.pipe(T.Label()),
1070
+ regionId: S.String.pipe(T.Label()),
1071
+ sendingDomainId: S.String.pipe(T.Label()),
1072
+ recipientAddress: S.String,
1073
+ }).pipe(
1074
+ T.Http({
1075
+ method: "POST",
1076
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/sending-domains/{sendingDomainId}/suppressions",
1077
+ code: 200,
1078
+ baseUrl: "https://mailout.api.{region}stackit.cloud",
1079
+ }),
1080
+ ),
1081
+ ).annotate({ identifier: "AddRecipientToSuppressionListRequest" });
1082
+ }
1083
+ }
1084
+ function __c11(j: number): any {
1085
+ switch (j) {
1086
+ case 0:
1087
+ return S.suspend(() =>
1088
+ S.Struct({
1089
+ addedAt: S.String,
1090
+ blockedUntil: S.optional(S.NullOr(S.String)),
1091
+ reason: S.String,
1092
+ recipientAddress: S.String,
1093
+ smtpCode: S.String,
1094
+ smtpDescription: S.String,
1095
+ }),
1096
+ ).annotate({ identifier: "Suppression" });
1097
+ }
1098
+ }
1099
+ function __c12(j: number): any {
1100
+ switch (j) {
1101
+ case 0:
1102
+ return S.suspend(() =>
1103
+ S.Struct({
1104
+ projectId: S.String.pipe(T.Label()),
1105
+ regionId: S.String.pipe(T.Label()),
1106
+ sendingDomainId: S.String.pipe(T.Label()),
1107
+ description: S.String,
1108
+ }).pipe(
1109
+ T.Http({
1110
+ method: "POST",
1111
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/sending-domains/{sendingDomainId}/authorized-senders",
1112
+ code: 200,
1113
+ baseUrl: "https://mailout.api.{region}stackit.cloud",
1114
+ }),
1115
+ ),
1116
+ ).annotate({ identifier: "CreateAuthorizedSenderRequest" });
1117
+ case 1:
1118
+ return S.suspend(() =>
1119
+ S.Struct({
1120
+ description: S.String,
1121
+ id: S.String,
1122
+ smtpEndpoint: S.String,
1123
+ state: S.String,
1124
+ username: S.String,
1125
+ password: S.String.pipe(T.SensitiveValue({})),
1126
+ }),
1127
+ ).annotate({ identifier: "CreateAuthorizedSenderResponse" });
1128
+ }
1129
+ }
1130
+ function __c13(j: number): any {
1131
+ switch (j) {
1132
+ case 0:
1133
+ return S.suspend(() =>
1134
+ S.Struct({
1135
+ projectId: S.String.pipe(T.Label()),
1136
+ regionId: S.String.pipe(T.Label()),
1137
+ domain: S.String,
1138
+ }).pipe(
1139
+ T.Http({
1140
+ method: "POST",
1141
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/sending-domains",
1142
+ code: 200,
1143
+ baseUrl: "https://mailout.api.{region}stackit.cloud",
1144
+ }),
1145
+ ),
1146
+ ).annotate({ identifier: "CreateSendingDomainRequest" });
1147
+ }
1148
+ }
1149
+ function __c14(j: number): any {
1150
+ switch (j) {
1151
+ case 0:
1152
+ return S.Array(S.String);
1153
+ }
1154
+ }
1155
+ function __c15(j: number): any {
1156
+ switch (j) {
1157
+ case 0:
1158
+ return S.suspend(() =>
1159
+ S.Struct({
1160
+ blockedUntil: S.optional(S.String),
1161
+ domain: S.String,
1162
+ id: S.String,
1163
+ messages: S.optional(__S(224, __c14, 0)),
1164
+ state: S.String,
1165
+ }),
1166
+ ).annotate({ identifier: "CreateSendingDomainResponse" });
1167
+ }
1168
+ }
1169
+ function __c16(j: number): any {
1170
+ switch (j) {
1171
+ case 0:
1172
+ return S.suspend(() =>
1173
+ S.Struct({
1174
+ projectId: S.String.pipe(T.Label()),
1175
+ regionId: S.String.pipe(T.Label()),
1176
+ sendingDomainId: S.String.pipe(T.Label()),
1177
+ authorizedSenderId: S.String.pipe(T.Label()),
1178
+ }).pipe(
1179
+ T.Http({
1180
+ method: "DELETE",
1181
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/sending-domains/{sendingDomainId}/authorized-senders/{authorizedSenderId}",
1182
+ code: 200,
1183
+ baseUrl: "https://mailout.api.{region}stackit.cloud",
1184
+ }),
1185
+ ),
1186
+ ).annotate({ identifier: "DeleteAuthorizedSenderRequest" });
1187
+ }
1188
+ }
1189
+ function __c17(j: number): any {
1190
+ switch (j) {
1191
+ case 0:
1192
+ return S.suspend(() => S.Struct({})).annotate({
1193
+ identifier: "DeleteAuthorizedSenderResponse",
1194
+ });
1195
+ }
1196
+ }
1197
+ function __c18(j: number): any {
1198
+ switch (j) {
1199
+ case 0:
1200
+ return S.suspend(() =>
1201
+ S.Struct({
1202
+ projectId: S.String.pipe(T.Label()),
1203
+ regionId: S.String.pipe(T.Label()),
1204
+ sendingDomainId: S.String.pipe(T.Label()),
1205
+ }).pipe(
1206
+ T.Http({
1207
+ method: "DELETE",
1208
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/sending-domains/{sendingDomainId}",
1209
+ code: 200,
1210
+ baseUrl: "https://mailout.api.{region}stackit.cloud",
1211
+ }),
1212
+ ),
1213
+ ).annotate({ identifier: "DeleteSendingDomainRequest" });
1214
+ }
1215
+ }
1216
+ function __c19(j: number): any {
1217
+ switch (j) {
1218
+ case 0:
1219
+ return S.suspend(() =>
1220
+ S.Struct({
1221
+ projectId: S.String.pipe(T.Label()),
1222
+ regionId: S.String.pipe(T.Label()),
1223
+ sendingDomainId: S.String.pipe(T.Label()),
1224
+ format: S.String.pipe(T.Query()),
1225
+ }).pipe(
1226
+ T.Http({
1227
+ method: "GET",
1228
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/sending-domains/{sendingDomainId}/dns-records",
1229
+ code: 200,
1230
+ baseUrl: "https://mailout.api.{region}stackit.cloud",
1231
+ }),
1232
+ ),
1233
+ ).annotate({ identifier: "ExportSendingDomainDNSRecordsRequest" });
1234
+ case 1:
1235
+ return S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
1236
+ identifier: "ExportSendingDomainDNSRecordsResponse",
1237
+ });
1238
+ }
1239
+ }
1240
+ function __c20(j: number): any {
1241
+ switch (j) {
1242
+ case 0:
1243
+ return S.suspend(() =>
1244
+ S.Struct({
1245
+ projectId: S.String.pipe(T.Label()),
1246
+ regionId: S.String.pipe(T.Label()),
1247
+ sendingDomainId: S.String.pipe(T.Label()),
1248
+ authorizedSenderId: S.String.pipe(T.Label()),
1249
+ }).pipe(
1250
+ T.Http({
1251
+ method: "GET",
1252
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/sending-domains/{sendingDomainId}/authorized-senders/{authorizedSenderId}",
1253
+ code: 200,
1254
+ baseUrl: "https://mailout.api.{region}stackit.cloud",
1255
+ }),
1256
+ ),
1257
+ ).annotate({ identifier: "GetAuthorizedSenderRequest" });
1258
+ }
1259
+ }
1260
+ function __c21(j: number): any {
1261
+ switch (j) {
1262
+ case 0:
1263
+ return S.suspend(() =>
1264
+ S.Struct({
1265
+ description: S.String,
1266
+ id: S.String,
1267
+ smtpEndpoint: S.String,
1268
+ state: S.String,
1269
+ username: S.String,
1270
+ }),
1271
+ ).annotate({ identifier: "GetAuthorizedSenderResponse" });
1272
+ }
1273
+ }
1274
+ // Schema table: entry i is schema j of builder f, made on first reach.
1275
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1276
+ return (__s[i] ??= __L.at(f, j));
1277
+ }