@distilled.cloud/stackit 0.0.0-stage → 1.0.0-rc.13

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/LICENSE +201 -0
  2. package/README.md +33 -2
  3. package/lib/credentials.d.ts +29 -0
  4. package/lib/credentials.d.ts.map +1 -0
  5. package/lib/credentials.js +49 -0
  6. package/lib/credentials.js.map +1 -0
  7. package/lib/errors.d.ts +36 -0
  8. package/lib/errors.d.ts.map +1 -0
  9. package/lib/errors.js +26 -0
  10. package/lib/errors.js.map +1 -0
  11. package/lib/index.d.ts +30 -0
  12. package/lib/index.d.ts.map +1 -0
  13. package/lib/index.js +30 -0
  14. package/lib/index.js.map +1 -0
  15. package/lib/pagination.d.ts +9 -0
  16. package/lib/pagination.d.ts.map +1 -0
  17. package/lib/pagination.js +48 -0
  18. package/lib/pagination.js.map +1 -0
  19. package/lib/protocol.d.ts +32 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +148 -0
  22. package/lib/protocol.js.map +1 -0
  23. package/lib/response-validation.test.d.ts +4 -0
  24. package/lib/response-validation.test.d.ts.map +1 -0
  25. package/lib/response-validation.test.js +31 -0
  26. package/lib/response-validation.test.js.map +1 -0
  27. package/lib/retry.d.ts +31 -0
  28. package/lib/retry.d.ts.map +1 -0
  29. package/lib/retry.js +31 -0
  30. package/lib/retry.js.map +1 -0
  31. package/lib/services/alb.d.ts +603 -0
  32. package/lib/services/alb.d.ts.map +1 -0
  33. package/lib/services/alb.js +562 -0
  34. package/lib/services/alb.js.map +1 -0
  35. package/lib/services/alb_waf.d.ts +526 -0
  36. package/lib/services/alb_waf.d.ts.map +1 -0
  37. package/lib/services/alb_waf.js +545 -0
  38. package/lib/services/alb_waf.js.map +1 -0
  39. package/lib/services/authorization.d.ts +251 -0
  40. package/lib/services/authorization.d.ts.map +1 -0
  41. package/lib/services/authorization.js +353 -0
  42. package/lib/services/authorization.js.map +1 -0
  43. package/lib/services/automation.d.ts +358 -0
  44. package/lib/services/automation.d.ts.map +1 -0
  45. package/lib/services/automation.js +426 -0
  46. package/lib/services/automation.js.map +1 -0
  47. package/lib/services/cdn.d.ts +1239 -0
  48. package/lib/services/cdn.d.ts.map +1 -0
  49. package/lib/services/cdn.js +992 -0
  50. package/lib/services/cdn.js.map +1 -0
  51. package/lib/services/certificates.d.ts +201 -0
  52. package/lib/services/certificates.d.ts.map +1 -0
  53. package/lib/services/certificates.js +197 -0
  54. package/lib/services/certificates.js.map +1 -0
  55. package/lib/services/cost.d.ts +222 -0
  56. package/lib/services/cost.d.ts.map +1 -0
  57. package/lib/services/cost.js +188 -0
  58. package/lib/services/cost.js.map +1 -0
  59. package/lib/services/dns.d.ts +875 -0
  60. package/lib/services/dns.d.ts.map +1 -0
  61. package/lib/services/dns.js +854 -0
  62. package/lib/services/dns.js.map +1 -0
  63. package/lib/services/dremio.d.ts +358 -0
  64. package/lib/services/dremio.d.ts.map +1 -0
  65. package/lib/services/dremio.js +339 -0
  66. package/lib/services/dremio.js.map +1 -0
  67. package/lib/services/edge.d.ts +312 -0
  68. package/lib/services/edge.d.ts.map +1 -0
  69. package/lib/services/edge.js +375 -0
  70. package/lib/services/edge.js.map +1 -0
  71. package/lib/services/functions.d.ts +409 -0
  72. package/lib/services/functions.d.ts.map +1 -0
  73. package/lib/services/functions.js +423 -0
  74. package/lib/services/functions.js.map +1 -0
  75. package/lib/services/git.d.ts +497 -0
  76. package/lib/services/git.d.ts.map +1 -0
  77. package/lib/services/git.js +552 -0
  78. package/lib/services/git.js.map +1 -0
  79. package/lib/services/iaas.d.ts +2965 -0
  80. package/lib/services/iaas.d.ts.map +1 -0
  81. package/lib/services/iaas.js +3768 -0
  82. package/lib/services/iaas.js.map +1 -0
  83. package/lib/services/index.d.ts +51 -0
  84. package/lib/services/index.d.ts.map +1 -0
  85. package/lib/services/index.js +52 -0
  86. package/lib/services/index.js.map +1 -0
  87. package/lib/services/intake.d.ts +555 -0
  88. package/lib/services/intake.d.ts.map +1 -0
  89. package/lib/services/intake.js +513 -0
  90. package/lib/services/intake.js.map +1 -0
  91. package/lib/services/kms.d.ts +654 -0
  92. package/lib/services/kms.d.ts.map +1 -0
  93. package/lib/services/kms.js +703 -0
  94. package/lib/services/kms.js.map +1 -0
  95. package/lib/services/lb_ip_lists.d.ts +162 -0
  96. package/lib/services/lb_ip_lists.d.ts.map +1 -0
  97. package/lib/services/lb_ip_lists.js +173 -0
  98. package/lib/services/lb_ip_lists.js.map +1 -0
  99. package/lib/services/load_balancer.d.ts +563 -0
  100. package/lib/services/load_balancer.d.ts.map +1 -0
  101. package/lib/services/load_balancer.js +542 -0
  102. package/lib/services/load_balancer.js.map +1 -0
  103. package/lib/services/logme.d.ts +516 -0
  104. package/lib/services/logme.d.ts.map +1 -0
  105. package/lib/services/logme.js +636 -0
  106. package/lib/services/logme.js.map +1 -0
  107. package/lib/services/logs.d.ts +436 -0
  108. package/lib/services/logs.d.ts.map +1 -0
  109. package/lib/services/logs.js +498 -0
  110. package/lib/services/logs.js.map +1 -0
  111. package/lib/services/mariadb.d.ts +479 -0
  112. package/lib/services/mariadb.d.ts.map +1 -0
  113. package/lib/services/mariadb.js +611 -0
  114. package/lib/services/mariadb.js.map +1 -0
  115. package/lib/services/model_experiments.d.ts +306 -0
  116. package/lib/services/model_experiments.d.ts.map +1 -0
  117. package/lib/services/model_experiments.js +356 -0
  118. package/lib/services/model_experiments.js.map +1 -0
  119. package/lib/services/model_serving.d.ts +289 -0
  120. package/lib/services/model_serving.d.ts.map +1 -0
  121. package/lib/services/model_serving.js +319 -0
  122. package/lib/services/model_serving.js.map +1 -0
  123. package/lib/services/mongodb_flex.d.ts +826 -0
  124. package/lib/services/mongodb_flex.d.ts.map +1 -0
  125. package/lib/services/mongodb_flex.js +889 -0
  126. package/lib/services/mongodb_flex.js.map +1 -0
  127. package/lib/services/object_storage.d.ts +446 -0
  128. package/lib/services/object_storage.d.ts.map +1 -0
  129. package/lib/services/object_storage.js +577 -0
  130. package/lib/services/object_storage.js.map +1 -0
  131. package/lib/services/observability.d.ts +2750 -0
  132. package/lib/services/observability.d.ts.map +1 -0
  133. package/lib/services/observability.js +3407 -0
  134. package/lib/services/observability.js.map +1 -0
  135. package/lib/services/opensearch.d.ts +505 -0
  136. package/lib/services/opensearch.d.ts.map +1 -0
  137. package/lib/services/opensearch.js +623 -0
  138. package/lib/services/opensearch.js.map +1 -0
  139. package/lib/services/pim.d.ts +997 -0
  140. package/lib/services/pim.d.ts.map +1 -0
  141. package/lib/services/pim.js +789 -0
  142. package/lib/services/pim.js.map +1 -0
  143. package/lib/services/postgres_flex.d.ts +854 -0
  144. package/lib/services/postgres_flex.d.ts.map +1 -0
  145. package/lib/services/postgres_flex.js +1018 -0
  146. package/lib/services/postgres_flex.js.map +1 -0
  147. package/lib/services/pubsub.d.ts +489 -0
  148. package/lib/services/pubsub.d.ts.map +1 -0
  149. package/lib/services/pubsub.js +614 -0
  150. package/lib/services/pubsub.js.map +1 -0
  151. package/lib/services/rabbitmq.d.ts +523 -0
  152. package/lib/services/rabbitmq.d.ts.map +1 -0
  153. package/lib/services/rabbitmq.js +636 -0
  154. package/lib/services/rabbitmq.js.map +1 -0
  155. package/lib/services/registry.d.ts +212 -0
  156. package/lib/services/registry.d.ts.map +1 -0
  157. package/lib/services/registry.js +221 -0
  158. package/lib/services/registry.js.map +1 -0
  159. package/lib/services/resource_manager.d.ts +458 -0
  160. package/lib/services/resource_manager.d.ts.map +1 -0
  161. package/lib/services/resource_manager.js +503 -0
  162. package/lib/services/resource_manager.js.map +1 -0
  163. package/lib/services/run_command.d.ts +175 -0
  164. package/lib/services/run_command.d.ts.map +1 -0
  165. package/lib/services/run_command.js +203 -0
  166. package/lib/services/run_command.js.map +1 -0
  167. package/lib/services/sca.d.ts +541 -0
  168. package/lib/services/sca.d.ts.map +1 -0
  169. package/lib/services/sca.js +478 -0
  170. package/lib/services/sca.js.map +1 -0
  171. package/lib/services/scf.d.ts +498 -0
  172. package/lib/services/scf.d.ts.map +1 -0
  173. package/lib/services/scf.js +718 -0
  174. package/lib/services/scf.js.map +1 -0
  175. package/lib/services/secrets_manager.d.ts +505 -0
  176. package/lib/services/secrets_manager.d.ts.map +1 -0
  177. package/lib/services/secrets_manager.js +659 -0
  178. package/lib/services/secrets_manager.js.map +1 -0
  179. package/lib/services/server_backup.d.ts +380 -0
  180. package/lib/services/server_backup.d.ts.map +1 -0
  181. package/lib/services/server_backup.js +474 -0
  182. package/lib/services/server_backup.js.map +1 -0
  183. package/lib/services/server_update.d.ts +292 -0
  184. package/lib/services/server_update.d.ts.map +1 -0
  185. package/lib/services/server_update.js +364 -0
  186. package/lib/services/server_update.js.map +1 -0
  187. package/lib/services/service_account.d.ts +465 -0
  188. package/lib/services/service_account.d.ts.map +1 -0
  189. package/lib/services/service_account.js +523 -0
  190. package/lib/services/service_account.js.map +1 -0
  191. package/lib/services/service_enablement.d.ts +149 -0
  192. package/lib/services/service_enablement.d.ts.map +1 -0
  193. package/lib/services/service_enablement.js +159 -0
  194. package/lib/services/service_enablement.js.map +1 -0
  195. package/lib/services/sfs.d.ts +721 -0
  196. package/lib/services/sfs.d.ts.map +1 -0
  197. package/lib/services/sfs.js +845 -0
  198. package/lib/services/sfs.js.map +1 -0
  199. package/lib/services/ske.d.ts +536 -0
  200. package/lib/services/ske.d.ts.map +1 -0
  201. package/lib/services/ske.js +598 -0
  202. package/lib/services/ske.js.map +1 -0
  203. package/lib/services/sqlserverflex.d.ts +956 -0
  204. package/lib/services/sqlserverflex.d.ts.map +1 -0
  205. package/lib/services/sqlserverflex.js +1087 -0
  206. package/lib/services/sqlserverflex.js.map +1 -0
  207. package/lib/services/stackit_marketplace.d.ts +288 -0
  208. package/lib/services/stackit_marketplace.d.ts.map +1 -0
  209. package/lib/services/stackit_marketplace.js +393 -0
  210. package/lib/services/stackit_marketplace.js.map +1 -0
  211. package/lib/services/telemetry_link.d.ts +443 -0
  212. package/lib/services/telemetry_link.d.ts.map +1 -0
  213. package/lib/services/telemetry_link.js +550 -0
  214. package/lib/services/telemetry_link.js.map +1 -0
  215. package/lib/services/telemetry_router.d.ts +493 -0
  216. package/lib/services/telemetry_router.d.ts.map +1 -0
  217. package/lib/services/telemetry_router.js +523 -0
  218. package/lib/services/telemetry_router.js.map +1 -0
  219. package/lib/services/ufw.d.ts +295 -0
  220. package/lib/services/ufw.d.ts.map +1 -0
  221. package/lib/services/ufw.js +301 -0
  222. package/lib/services/ufw.js.map +1 -0
  223. package/lib/services/valkey.d.ts +505 -0
  224. package/lib/services/valkey.d.ts.map +1 -0
  225. package/lib/services/valkey.js +627 -0
  226. package/lib/services/valkey.js.map +1 -0
  227. package/lib/services/vpn.d.ts +1024 -0
  228. package/lib/services/vpn.d.ts.map +1 -0
  229. package/lib/services/vpn.js +1013 -0
  230. package/lib/services/vpn.js.map +1 -0
  231. package/lib/services/workflows.d.ts +600 -0
  232. package/lib/services/workflows.d.ts.map +1 -0
  233. package/lib/services/workflows.js +556 -0
  234. package/lib/services/workflows.js.map +1 -0
  235. package/lib/traits.d.ts +24 -0
  236. package/lib/traits.d.ts.map +1 -0
  237. package/lib/traits.js +15 -0
  238. package/lib/traits.js.map +1 -0
  239. package/package.json +83 -3
  240. package/src/credentials.ts +90 -0
  241. package/src/errors.ts +50 -0
  242. package/src/index.ts +34 -0
  243. package/src/pagination.ts +73 -0
  244. package/src/protocol.ts +243 -0
  245. package/src/response-validation.test.ts +45 -0
  246. package/src/retry.ts +53 -0
  247. package/src/services/alb.ts +1409 -0
  248. package/src/services/alb_waf.ts +1347 -0
  249. package/src/services/authorization.ts +740 -0
  250. package/src/services/automation.ts +966 -0
  251. package/src/services/cdn.ts +2736 -0
  252. package/src/services/certificates.ts +450 -0
  253. package/src/services/cost.ts +484 -0
  254. package/src/services/dns.ts +2271 -0
  255. package/src/services/dremio.ts +803 -0
  256. package/src/services/edge.ts +839 -0
  257. package/src/services/functions.ts +1010 -0
  258. package/src/services/git.ts +1275 -0
  259. package/src/services/iaas.ts +8670 -0
  260. package/src/services/index.ts +51 -0
  261. package/src/services/intake.ts +1233 -0
  262. package/src/services/kms.ts +1638 -0
  263. package/src/services/lb_ip_lists.ts +377 -0
  264. package/src/services/load_balancer.ts +1342 -0
  265. package/src/services/logme.ts +1379 -0
  266. package/src/services/logs.ts +1150 -0
  267. package/src/services/mariadb.ts +1293 -0
  268. package/src/services/model_experiments.ts +797 -0
  269. package/src/services/model_serving.ts +697 -0
  270. package/src/services/mongodb_flex.ts +2078 -0
  271. package/src/services/object_storage.ts +1248 -0
  272. package/src/services/observability.ts +7856 -0
  273. package/src/services/opensearch.ts +1354 -0
  274. package/src/services/pim.ts +2090 -0
  275. package/src/services/postgres_flex.ts +2326 -0
  276. package/src/services/pubsub.ts +1336 -0
  277. package/src/services/rabbitmq.ts +1402 -0
  278. package/src/services/registry.ts +494 -0
  279. package/src/services/resource_manager.ts +1155 -0
  280. package/src/services/run_command.ts +441 -0
  281. package/src/services/sca.ts +1222 -0
  282. package/src/services/scf.ts +1537 -0
  283. package/src/services/secrets_manager.ts +1399 -0
  284. package/src/services/server_backup.ts +1032 -0
  285. package/src/services/server_update.ts +767 -0
  286. package/src/services/service_account.ts +1208 -0
  287. package/src/services/service_enablement.ts +359 -0
  288. package/src/services/sfs.ts +1913 -0
  289. package/src/services/ske.ts +1408 -0
  290. package/src/services/sqlserverflex.ts +2543 -0
  291. package/src/services/stackit_marketplace.ts +853 -0
  292. package/src/services/telemetry_link.ts +1245 -0
  293. package/src/services/telemetry_router.ts +1205 -0
  294. package/src/services/ufw.ts +704 -0
  295. package/src/services/valkey.ts +1357 -0
  296. package/src/services/vpn.ts +2554 -0
  297. package/src/services/workflows.ts +1361 -0
  298. package/src/traits.ts +65 -0
@@ -0,0 +1,1336 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import * as C from "@distilled.cloud/core/category";
5
+ import * as T from "../traits.ts";
6
+ import {
7
+ StackitProtocol,
8
+ type StackitOpError,
9
+ type StackitOpContext,
10
+ } from "../protocol.ts";
11
+ import { UnknownStackitError } from "../errors.ts";
12
+ import * as Retry from "../retry.ts";
13
+
14
+ export type { StackitOpError, StackitOpContext };
15
+
16
+ export class BadRequest
17
+ extends /*@__PURE__*/ T.applyErrorMatchers(
18
+ /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
19
+ code: S.Number,
20
+ message: S.String,
21
+ }).pipe(C.withBadRequestError),
22
+ [{ status: 400 }],
23
+ ) {}
24
+
25
+ export class Conflict
26
+ extends /*@__PURE__*/ T.applyErrorMatchers(
27
+ /*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
28
+ code: S.Number,
29
+ message: S.String,
30
+ }).pipe(C.withConflictError),
31
+ [{ status: 409 }],
32
+ ) {}
33
+
34
+ export class Forbidden
35
+ extends /*@__PURE__*/ T.applyErrorMatchers(
36
+ /*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
37
+ code: S.Number,
38
+ message: S.String,
39
+ }).pipe(C.withAuthError),
40
+ [{ status: 403 }],
41
+ ) {}
42
+
43
+ export class NotFound
44
+ extends /*@__PURE__*/ T.applyErrorMatchers(
45
+ /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
46
+ code: S.Number,
47
+ message: S.String,
48
+ }).pipe(C.withBadRequestError),
49
+ [{ status: 404 }],
50
+ ) {}
51
+
52
+ export class UnprocessableEntity
53
+ extends /*@__PURE__*/ T.applyErrorMatchers(
54
+ /*@__PURE__*/ S.TaggedError<UnprocessableEntity>()("UnprocessableEntity", {
55
+ code: S.Number,
56
+ message: S.String,
57
+ }).pipe(C.withBadRequestError),
58
+ [{ status: 422 }],
59
+ ) {}
60
+
61
+ export type CreateSubscriptionRequestRegionId = "eu01";
62
+ export const CreateSubscriptionRequestRegionId = /*@__PURE__*/ S.String;
63
+
64
+ /** Labels are key-value pairs used to group and organize subsets of resources. **Key constraints:** - May contain an optional domain prefix separated by a slash (`/`). - The domain prefix must be less than or equal to 250 characters and a valid DNS subdomain containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), separated by dots (`.`). - The name part (excluding the domain prefix) must be between 1 and 63 characters long. - The name part must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - The name part may contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. - Keys starting with the prefix `stackit-` or having a domain prefix of `stackit.cloud` (including its subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. **Value constraints:** - Must be less than or equal to 63 characters long (can be empty). - Must begin and end with an alphanumeric character (`[a-z0-9A-Z]`) if not empty. - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. **Count constraint:** - A maximum of 64 labels can be applied per resource. Restricted labels are excluded from this count. */
65
+ export type Labels = { [key: string]: string | undefined };
66
+ export const Labels = /*@__PURE__*/ S.Record(
67
+ S.String,
68
+ S.String,
69
+ ) as any as S.Schema<Labels>;
70
+
71
+ /** Configuration settings for the subscription. */
72
+ export interface SubscriptionSettings {
73
+ /** The maximum amount of time the system waits for a message acknowledgment. If a message is not acknowledged within this window, it will be redelivered. **Format:** Must be a duration string consisting of a number (integer or decimal) followed by a unit ('s', 'm', or 'h'). **Constraints:** - **Minimum:** "1s" - **Maximum:** "168h" (7 days) */
74
+ ackDeadline?: string;
75
+ }
76
+ export const SubscriptionSettings = /*@__PURE__*/ S.suspend(() =>
77
+ S.Struct({
78
+ ackDeadline: S.optional(S.String),
79
+ }),
80
+ ).annotate({
81
+ identifier: "SubscriptionSettings",
82
+ }) as any as S.Schema<SubscriptionSettings>;
83
+
84
+ export interface CreateSubscriptionRequest {
85
+ /** The STACKIT portal project UUID the resource is located in. */
86
+ projectId: string;
87
+ /** The STACKIT region name the resource is located in. */
88
+ regionId: CreateSubscriptionRequestRegionId | (string & {});
89
+ /** The topic UUID. */
90
+ topicId: string;
91
+ /** The description is a longer text chosen by the user to provide more context for the resource. */
92
+ description?: string;
93
+ /** The display name is a short name chosen by the user to identify the resource. */
94
+ displayName: string;
95
+ labels?: Labels;
96
+ settings?: SubscriptionSettings;
97
+ }
98
+ export const CreateSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
99
+ S.Struct({
100
+ projectId: S.String.pipe(T.Label()),
101
+ regionId: CreateSubscriptionRequestRegionId.pipe(T.Label()),
102
+ topicId: S.String.pipe(T.Label()),
103
+ description: S.optional(S.String),
104
+ displayName: S.String,
105
+ labels: S.optional(Labels),
106
+ settings: S.optional(SubscriptionSettings),
107
+ }).pipe(
108
+ T.Http({
109
+ method: "POST",
110
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions",
111
+ code: 200,
112
+ baseUrl: "https://pubsub.api.stackit.cloud",
113
+ }),
114
+ ),
115
+ ).annotate({
116
+ identifier: "CreateSubscriptionRequest",
117
+ }) as any as S.Schema<CreateSubscriptionRequest>;
118
+
119
+ /** The current state of the resource. */
120
+ export type SubscriptionResponseState = "reconciling" | "active" | "deleting";
121
+ export const SubscriptionResponseState = /*@__PURE__*/ S.String;
122
+
123
+ export interface SubscriptionResponse {
124
+ /** The point in time the resource was created. */
125
+ createTime: string;
126
+ /** The description is a longer text chosen by the user to provide more context for the resource. */
127
+ description?: string;
128
+ /** The display name is a short name chosen by the user to identify the resource. */
129
+ displayName: string;
130
+ /** An auto generated unique id which identifies the resource. */
131
+ id: string;
132
+ labels?: Labels;
133
+ settings?: SubscriptionSettings;
134
+ /** The current state of the resource. */
135
+ state: SubscriptionResponseState;
136
+ /** The id of the topic to which the subscription belongs. */
137
+ topicId: string;
138
+ }
139
+ export const SubscriptionResponse = /*@__PURE__*/ S.suspend(() =>
140
+ S.Struct({
141
+ createTime: S.String,
142
+ description: S.optional(S.String),
143
+ displayName: S.String,
144
+ id: S.String,
145
+ labels: S.optional(Labels),
146
+ settings: S.optional(SubscriptionSettings),
147
+ state: SubscriptionResponseState,
148
+ topicId: S.String,
149
+ }),
150
+ ).annotate({
151
+ identifier: "SubscriptionResponse",
152
+ }) as any as S.Schema<SubscriptionResponse>;
153
+
154
+ export type CreateTopicRequestRegionId = "eu01";
155
+ export const CreateTopicRequestRegionId = /*@__PURE__*/ S.String;
156
+
157
+ /** Whitelist of IPs in CIDR notation that can access the topic and its underlying subscriptions. */
158
+ export type TopicSettingsAclList = Array<string>;
159
+ export const TopicSettingsAclList = /*@__PURE__*/ S.Array(
160
+ S.String,
161
+ ) as any as S.Schema<TopicSettingsAclList>;
162
+
163
+ /** Configuration settings for the topic. */
164
+ export interface TopicSettings {
165
+ /** Whitelist of IPs in CIDR notation that can access the topic and its underlying subscriptions. */
166
+ acl?: TopicSettingsAclList;
167
+ /** Enables or disables metrics collection for the topic. */
168
+ metrics?: boolean;
169
+ /** The maximum length of time a message is persisted in storage. Messages older than this duration are automatically discarded/deleted. **Format:** Must be a scalar duration: a number (integer or decimal) followed by a unit ('s', 'm', or 'h'). **Constraints:** - **Minimum:** "1s" - **Maximum:** "168h" (7 days) */
170
+ retention?: string;
171
+ /** Enables or disables sending of service logs for the topic. */
172
+ serviceLogs?: boolean;
173
+ }
174
+ export const TopicSettings = /*@__PURE__*/ S.suspend(() =>
175
+ S.Struct({
176
+ acl: S.optional(TopicSettingsAclList),
177
+ metrics: S.optional(S.Boolean),
178
+ retention: S.optional(S.String),
179
+ serviceLogs: S.optional(S.Boolean),
180
+ }),
181
+ ).annotate({ identifier: "TopicSettings" }) as any as S.Schema<TopicSettings>;
182
+
183
+ export interface CreateTopicRequest {
184
+ /** The STACKIT portal project UUID the resource is located in. */
185
+ projectId: string;
186
+ /** The STACKIT region name the resource is located in. */
187
+ regionId: CreateTopicRequestRegionId | (string & {});
188
+ /** The description is a longer text chosen by the user to provide more context for the resource. */
189
+ description?: string;
190
+ /** The display name is a short name chosen by the user to identify the resource. */
191
+ displayName: string;
192
+ labels?: Labels;
193
+ settings?: TopicSettings;
194
+ }
195
+ export const CreateTopicRequest = /*@__PURE__*/ S.suspend(() =>
196
+ S.Struct({
197
+ projectId: S.String.pipe(T.Label()),
198
+ regionId: CreateTopicRequestRegionId.pipe(T.Label()),
199
+ description: S.optional(S.String),
200
+ displayName: S.String,
201
+ labels: S.optional(Labels),
202
+ settings: S.optional(TopicSettings),
203
+ }).pipe(
204
+ T.Http({
205
+ method: "POST",
206
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics",
207
+ code: 200,
208
+ baseUrl: "https://pubsub.api.stackit.cloud",
209
+ }),
210
+ ),
211
+ ).annotate({
212
+ identifier: "CreateTopicRequest",
213
+ }) as any as S.Schema<CreateTopicRequest>;
214
+
215
+ /** The current state of the resource. */
216
+ export type TopicResponseState = "reconciling" | "active" | "deleting";
217
+ export const TopicResponseState = /*@__PURE__*/ S.String;
218
+
219
+ export interface TopicResponse {
220
+ /** The point in time the resource was created. */
221
+ createTime: string;
222
+ /** The description is a longer text chosen by the user to provide more context for the resource. */
223
+ description?: string;
224
+ /** The display name is a short name chosen by the user to identify the resource. */
225
+ displayName: string;
226
+ /** An auto generated unique id which identifies the resource. */
227
+ id: string;
228
+ labels?: Labels;
229
+ settings?: TopicSettings;
230
+ /** The current state of the resource. */
231
+ state: TopicResponseState;
232
+ /** The URI for reaching the resource. */
233
+ uri?: string;
234
+ }
235
+ export const TopicResponse = /*@__PURE__*/ S.suspend(() =>
236
+ S.Struct({
237
+ createTime: S.String,
238
+ description: S.optional(S.String),
239
+ displayName: S.String,
240
+ id: S.String,
241
+ labels: S.optional(Labels),
242
+ settings: S.optional(TopicSettings),
243
+ state: TopicResponseState,
244
+ uri: S.optional(S.String),
245
+ }),
246
+ ).annotate({ identifier: "TopicResponse" }) as any as S.Schema<TopicResponse>;
247
+
248
+ export type DeleteSubscriptionRequestRegionId = "eu01";
249
+ export const DeleteSubscriptionRequestRegionId = /*@__PURE__*/ S.String;
250
+
251
+ export interface DeleteSubscriptionRequest {
252
+ /** The STACKIT portal project UUID the resource is located in. */
253
+ projectId: string;
254
+ /** The STACKIT region name the resource is located in. */
255
+ regionId: DeleteSubscriptionRequestRegionId | (string & {});
256
+ /** The topic UUID. */
257
+ topicId: string;
258
+ /** The subscription UUID. */
259
+ subscriptionId: string;
260
+ /** If true, deletes the topic and all its active subscriptions (cascading delete). If false (default), the operation returns a 409 conflict if active subscriptions exist. */
261
+ force?: boolean;
262
+ }
263
+ export const DeleteSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
264
+ S.Struct({
265
+ projectId: S.String.pipe(T.Label()),
266
+ regionId: DeleteSubscriptionRequestRegionId.pipe(T.Label()),
267
+ topicId: S.String.pipe(T.Label()),
268
+ subscriptionId: S.String.pipe(T.Label()),
269
+ force: S.optional(S.Boolean.pipe(T.Query())),
270
+ }).pipe(
271
+ T.Http({
272
+ method: "DELETE",
273
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}",
274
+ code: 200,
275
+ baseUrl: "https://pubsub.api.stackit.cloud",
276
+ }),
277
+ ),
278
+ ).annotate({
279
+ identifier: "DeleteSubscriptionRequest",
280
+ }) as any as S.Schema<DeleteSubscriptionRequest>;
281
+
282
+ export interface DeleteSubscriptionResponse {}
283
+ export const DeleteSubscriptionResponse = /*@__PURE__*/ S.suspend(() =>
284
+ S.Struct({}),
285
+ ).annotate({
286
+ identifier: "DeleteSubscriptionResponse",
287
+ }) as any as S.Schema<DeleteSubscriptionResponse>;
288
+
289
+ export type DeleteTopicRequestRegionId = "eu01";
290
+ export const DeleteTopicRequestRegionId = /*@__PURE__*/ S.String;
291
+
292
+ export interface DeleteTopicRequest {
293
+ /** The STACKIT portal project UUID the resource is located in. */
294
+ projectId: string;
295
+ /** The STACKIT region name the resource is located in. */
296
+ regionId: DeleteTopicRequestRegionId | (string & {});
297
+ /** The topic UUID. */
298
+ topicId: string;
299
+ /** If true, deletes the topic and all its active subscriptions (cascading delete). If false (default), the operation returns a 409 conflict if active subscriptions exist. */
300
+ force?: boolean;
301
+ }
302
+ export const DeleteTopicRequest = /*@__PURE__*/ S.suspend(() =>
303
+ S.Struct({
304
+ projectId: S.String.pipe(T.Label()),
305
+ regionId: DeleteTopicRequestRegionId.pipe(T.Label()),
306
+ topicId: S.String.pipe(T.Label()),
307
+ force: S.optional(S.Boolean.pipe(T.Query())),
308
+ }).pipe(
309
+ T.Http({
310
+ method: "DELETE",
311
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}",
312
+ code: 200,
313
+ baseUrl: "https://pubsub.api.stackit.cloud",
314
+ }),
315
+ ),
316
+ ).annotate({
317
+ identifier: "DeleteTopicRequest",
318
+ }) as any as S.Schema<DeleteTopicRequest>;
319
+
320
+ export interface DeleteTopicResponse {}
321
+ export const DeleteTopicResponse = /*@__PURE__*/ S.suspend(() =>
322
+ S.Struct({}),
323
+ ).annotate({
324
+ identifier: "DeleteTopicResponse",
325
+ }) as any as S.Schema<DeleteTopicResponse>;
326
+
327
+ export type GetSubscriptionRequestRegionId = "eu01";
328
+ export const GetSubscriptionRequestRegionId = /*@__PURE__*/ S.String;
329
+
330
+ export interface GetSubscriptionRequest {
331
+ /** The STACKIT portal project UUID the resource is located in. */
332
+ projectId: string;
333
+ /** The STACKIT region name the resource is located in. */
334
+ regionId: GetSubscriptionRequestRegionId | (string & {});
335
+ /** The topic UUID. */
336
+ topicId: string;
337
+ /** The subscription UUID. */
338
+ subscriptionId: string;
339
+ }
340
+ export const GetSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
341
+ S.Struct({
342
+ projectId: S.String.pipe(T.Label()),
343
+ regionId: GetSubscriptionRequestRegionId.pipe(T.Label()),
344
+ topicId: S.String.pipe(T.Label()),
345
+ subscriptionId: S.String.pipe(T.Label()),
346
+ }).pipe(
347
+ T.Http({
348
+ method: "GET",
349
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}",
350
+ code: 200,
351
+ baseUrl: "https://pubsub.api.stackit.cloud",
352
+ }),
353
+ ),
354
+ ).annotate({
355
+ identifier: "GetSubscriptionRequest",
356
+ }) as any as S.Schema<GetSubscriptionRequest>;
357
+
358
+ export type GetTopicRequestRegionId = "eu01";
359
+ export const GetTopicRequestRegionId = /*@__PURE__*/ S.String;
360
+
361
+ export interface GetTopicRequest {
362
+ /** The STACKIT portal project UUID the resource is located in. */
363
+ projectId: string;
364
+ /** The STACKIT region name the resource is located in. */
365
+ regionId: GetTopicRequestRegionId | (string & {});
366
+ /** The topic UUID. */
367
+ topicId: string;
368
+ }
369
+ export const GetTopicRequest = /*@__PURE__*/ S.suspend(() =>
370
+ S.Struct({
371
+ projectId: S.String.pipe(T.Label()),
372
+ regionId: GetTopicRequestRegionId.pipe(T.Label()),
373
+ topicId: S.String.pipe(T.Label()),
374
+ }).pipe(
375
+ T.Http({
376
+ method: "GET",
377
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}",
378
+ code: 200,
379
+ baseUrl: "https://pubsub.api.stackit.cloud",
380
+ }),
381
+ ),
382
+ ).annotate({
383
+ identifier: "GetTopicRequest",
384
+ }) as any as S.Schema<GetTopicRequest>;
385
+
386
+ export type GrantSubscriptionSubscriberAccessRequestRegionId = "eu01";
387
+ export const GrantSubscriptionSubscriberAccessRequestRegionId =
388
+ /*@__PURE__*/ S.String;
389
+
390
+ export interface GrantSubscriptionSubscriberAccessRequest {
391
+ /** The STACKIT portal project UUID the resource is located in. */
392
+ projectId: string;
393
+ /** The STACKIT region name the resource is located in. */
394
+ regionId: GrantSubscriptionSubscriberAccessRequestRegionId | (string & {});
395
+ /** The topic UUID. */
396
+ topicId: string;
397
+ /** The subscription UUID. */
398
+ subscriptionId: string;
399
+ /** A single RFC 5322 compliant email address. */
400
+ emailAddress: string;
401
+ }
402
+ export const GrantSubscriptionSubscriberAccessRequest = /*@__PURE__*/ S.suspend(
403
+ () =>
404
+ S.Struct({
405
+ projectId: S.String.pipe(T.Label()),
406
+ regionId: GrantSubscriptionSubscriberAccessRequestRegionId.pipe(
407
+ T.Label(),
408
+ ),
409
+ topicId: S.String.pipe(T.Label()),
410
+ subscriptionId: S.String.pipe(T.Label()),
411
+ emailAddress: S.String,
412
+ }).pipe(
413
+ T.Http({
414
+ method: "PATCH",
415
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}/subscribers",
416
+ code: 200,
417
+ baseUrl: "https://pubsub.api.stackit.cloud",
418
+ }),
419
+ ),
420
+ ).annotate({
421
+ identifier: "GrantSubscriptionSubscriberAccessRequest",
422
+ }) as any as S.Schema<GrantSubscriptionSubscriberAccessRequest>;
423
+
424
+ export interface GrantSubscriptionSubscriberAccessResponse {}
425
+ export const GrantSubscriptionSubscriberAccessResponse =
426
+ /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
427
+ identifier: "GrantSubscriptionSubscriberAccessResponse",
428
+ }) as any as S.Schema<GrantSubscriptionSubscriberAccessResponse>;
429
+
430
+ export type GrantTopicPublisherAccessRequestRegionId = "eu01";
431
+ export const GrantTopicPublisherAccessRequestRegionId = /*@__PURE__*/ S.String;
432
+
433
+ export interface GrantTopicPublisherAccessRequest {
434
+ /** The STACKIT portal project UUID the resource is located in. */
435
+ projectId: string;
436
+ /** The STACKIT region name the resource is located in. */
437
+ regionId: GrantTopicPublisherAccessRequestRegionId | (string & {});
438
+ /** The topic UUID. */
439
+ topicId: string;
440
+ /** A single RFC 5322 compliant email address. */
441
+ emailAddress: string;
442
+ }
443
+ export const GrantTopicPublisherAccessRequest = /*@__PURE__*/ S.suspend(() =>
444
+ S.Struct({
445
+ projectId: S.String.pipe(T.Label()),
446
+ regionId: GrantTopicPublisherAccessRequestRegionId.pipe(T.Label()),
447
+ topicId: S.String.pipe(T.Label()),
448
+ emailAddress: S.String,
449
+ }).pipe(
450
+ T.Http({
451
+ method: "PATCH",
452
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/publishers",
453
+ code: 200,
454
+ baseUrl: "https://pubsub.api.stackit.cloud",
455
+ }),
456
+ ),
457
+ ).annotate({
458
+ identifier: "GrantTopicPublisherAccessRequest",
459
+ }) as any as S.Schema<GrantTopicPublisherAccessRequest>;
460
+
461
+ export interface GrantTopicPublisherAccessResponse {}
462
+ export const GrantTopicPublisherAccessResponse = /*@__PURE__*/ S.suspend(() =>
463
+ S.Struct({}),
464
+ ).annotate({
465
+ identifier: "GrantTopicPublisherAccessResponse",
466
+ }) as any as S.Schema<GrantTopicPublisherAccessResponse>;
467
+
468
+ export type ListSubscriptionsRequestRegionId = "eu01";
469
+ export const ListSubscriptionsRequestRegionId = /*@__PURE__*/ S.String;
470
+
471
+ export interface ListSubscriptionsRequest {
472
+ /** The STACKIT portal project UUID the resource is located in. */
473
+ projectId: string;
474
+ /** The STACKIT region name the resource is located in. */
475
+ regionId: ListSubscriptionsRequestRegionId | (string & {});
476
+ /** The topic UUID. */
477
+ topicId: string;
478
+ /** A token to retrieve the next page of results. */
479
+ pageToken?: string;
480
+ /** Maximum number of items to return */
481
+ pageSize?: number;
482
+ /** Supply a query string to filter the results. */
483
+ query?: string;
484
+ }
485
+ export const ListSubscriptionsRequest = /*@__PURE__*/ S.suspend(() =>
486
+ S.Struct({
487
+ projectId: S.String.pipe(T.Label()),
488
+ regionId: ListSubscriptionsRequestRegionId.pipe(T.Label()),
489
+ topicId: S.String.pipe(T.Label()),
490
+ pageToken: S.optional(S.String.pipe(T.Query())),
491
+ pageSize: S.optional(S.Number.pipe(T.Query())),
492
+ query: S.optional(S.String.pipe(T.Query())),
493
+ }).pipe(
494
+ T.Http({
495
+ method: "GET",
496
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions",
497
+ code: 200,
498
+ baseUrl: "https://pubsub.api.stackit.cloud",
499
+ }),
500
+ ),
501
+ ).annotate({
502
+ identifier: "ListSubscriptionsRequest",
503
+ }) as any as S.Schema<ListSubscriptionsRequest>;
504
+
505
+ export type ListSubscriptionsResponseSubscriptionsList =
506
+ Array<SubscriptionResponse>;
507
+ export const ListSubscriptionsResponseSubscriptionsList = /*@__PURE__*/ S.Array(
508
+ SubscriptionResponse,
509
+ ) as any as S.Schema<ListSubscriptionsResponseSubscriptionsList>;
510
+
511
+ export interface ListSubscriptionsResponse {
512
+ /** A token to retrieve the next page of results. */
513
+ nextPageToken?: string;
514
+ subscriptions: ListSubscriptionsResponseSubscriptionsList;
515
+ }
516
+ export const ListSubscriptionsResponse = /*@__PURE__*/ S.suspend(() =>
517
+ S.Struct({
518
+ nextPageToken: S.optional(S.String),
519
+ subscriptions: ListSubscriptionsResponseSubscriptionsList,
520
+ }),
521
+ ).annotate({
522
+ identifier: "ListSubscriptionsResponse",
523
+ }) as any as S.Schema<ListSubscriptionsResponse>;
524
+
525
+ export type ListSubscriptionSubscribersRequestRegionId = "eu01";
526
+ export const ListSubscriptionSubscribersRequestRegionId =
527
+ /*@__PURE__*/ S.String;
528
+
529
+ export interface ListSubscriptionSubscribersRequest {
530
+ /** The STACKIT portal project UUID the resource is located in. */
531
+ projectId: string;
532
+ /** The STACKIT region name the resource is located in. */
533
+ regionId: ListSubscriptionSubscribersRequestRegionId | (string & {});
534
+ /** The topic UUID. */
535
+ topicId: string;
536
+ /** The subscription UUID. */
537
+ subscriptionId: string;
538
+ }
539
+ export const ListSubscriptionSubscribersRequest = /*@__PURE__*/ S.suspend(() =>
540
+ S.Struct({
541
+ projectId: S.String.pipe(T.Label()),
542
+ regionId: ListSubscriptionSubscribersRequestRegionId.pipe(T.Label()),
543
+ topicId: S.String.pipe(T.Label()),
544
+ subscriptionId: S.String.pipe(T.Label()),
545
+ }).pipe(
546
+ T.Http({
547
+ method: "GET",
548
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}/subscribers",
549
+ code: 200,
550
+ baseUrl: "https://pubsub.api.stackit.cloud",
551
+ }),
552
+ ),
553
+ ).annotate({
554
+ identifier: "ListSubscriptionSubscribersRequest",
555
+ }) as any as S.Schema<ListSubscriptionSubscribersRequest>;
556
+
557
+ export type ListEmailAddressesResponseEmailAddressesList = Array<string>;
558
+ export const ListEmailAddressesResponseEmailAddressesList =
559
+ /*@__PURE__*/ S.Array(
560
+ S.String,
561
+ ) as any as S.Schema<ListEmailAddressesResponseEmailAddressesList>;
562
+
563
+ export interface ListEmailAddressesResponse {
564
+ emailAddresses: ListEmailAddressesResponseEmailAddressesList;
565
+ }
566
+ export const ListEmailAddressesResponse = /*@__PURE__*/ S.suspend(() =>
567
+ S.Struct({
568
+ emailAddresses: ListEmailAddressesResponseEmailAddressesList,
569
+ }),
570
+ ).annotate({
571
+ identifier: "ListEmailAddressesResponse",
572
+ }) as any as S.Schema<ListEmailAddressesResponse>;
573
+
574
+ export type ListTopicPublishersRequestRegionId = "eu01";
575
+ export const ListTopicPublishersRequestRegionId = /*@__PURE__*/ S.String;
576
+
577
+ export interface ListTopicPublishersRequest {
578
+ /** The STACKIT portal project UUID the resource is located in. */
579
+ projectId: string;
580
+ /** The STACKIT region name the resource is located in. */
581
+ regionId: ListTopicPublishersRequestRegionId | (string & {});
582
+ /** The topic UUID. */
583
+ topicId: string;
584
+ }
585
+ export const ListTopicPublishersRequest = /*@__PURE__*/ S.suspend(() =>
586
+ S.Struct({
587
+ projectId: S.String.pipe(T.Label()),
588
+ regionId: ListTopicPublishersRequestRegionId.pipe(T.Label()),
589
+ topicId: S.String.pipe(T.Label()),
590
+ }).pipe(
591
+ T.Http({
592
+ method: "GET",
593
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/publishers",
594
+ code: 200,
595
+ baseUrl: "https://pubsub.api.stackit.cloud",
596
+ }),
597
+ ),
598
+ ).annotate({
599
+ identifier: "ListTopicPublishersRequest",
600
+ }) as any as S.Schema<ListTopicPublishersRequest>;
601
+
602
+ export type ListTopicsRequestRegionId = "eu01";
603
+ export const ListTopicsRequestRegionId = /*@__PURE__*/ S.String;
604
+
605
+ export interface ListTopicsRequest {
606
+ /** The STACKIT portal project UUID the resource is located in. */
607
+ projectId: string;
608
+ /** The STACKIT region name the resource is located in. */
609
+ regionId: ListTopicsRequestRegionId | (string & {});
610
+ /** A token to retrieve the next page of results. */
611
+ pageToken?: string;
612
+ /** Maximum number of items to return */
613
+ pageSize?: number;
614
+ /** Supply a query string to filter the results. */
615
+ query?: string;
616
+ }
617
+ export const ListTopicsRequest = /*@__PURE__*/ S.suspend(() =>
618
+ S.Struct({
619
+ projectId: S.String.pipe(T.Label()),
620
+ regionId: ListTopicsRequestRegionId.pipe(T.Label()),
621
+ pageToken: S.optional(S.String.pipe(T.Query())),
622
+ pageSize: S.optional(S.Number.pipe(T.Query())),
623
+ query: S.optional(S.String.pipe(T.Query())),
624
+ }).pipe(
625
+ T.Http({
626
+ method: "GET",
627
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics",
628
+ code: 200,
629
+ baseUrl: "https://pubsub.api.stackit.cloud",
630
+ }),
631
+ ),
632
+ ).annotate({
633
+ identifier: "ListTopicsRequest",
634
+ }) as any as S.Schema<ListTopicsRequest>;
635
+
636
+ export type ListTopicsResponseTopicsList = Array<TopicResponse>;
637
+ export const ListTopicsResponseTopicsList = /*@__PURE__*/ S.Array(
638
+ TopicResponse,
639
+ ) as any as S.Schema<ListTopicsResponseTopicsList>;
640
+
641
+ export interface ListTopicsResponse {
642
+ /** A token to retrieve the next page of results. */
643
+ nextPageToken?: string;
644
+ topics: ListTopicsResponseTopicsList;
645
+ }
646
+ export const ListTopicsResponse = /*@__PURE__*/ S.suspend(() =>
647
+ S.Struct({
648
+ nextPageToken: S.optional(S.String),
649
+ topics: ListTopicsResponseTopicsList,
650
+ }),
651
+ ).annotate({
652
+ identifier: "ListTopicsResponse",
653
+ }) as any as S.Schema<ListTopicsResponse>;
654
+
655
+ export type RevokeSubscriptionSubscriberAccessRequestRegionId = "eu01";
656
+ export const RevokeSubscriptionSubscriberAccessRequestRegionId =
657
+ /*@__PURE__*/ S.String;
658
+
659
+ export interface RevokeSubscriptionSubscriberAccessRequest {
660
+ /** The STACKIT portal project UUID the resource is located in. */
661
+ projectId: string;
662
+ /** The STACKIT region name the resource is located in. */
663
+ regionId: RevokeSubscriptionSubscriberAccessRequestRegionId | (string & {});
664
+ /** The topic UUID. */
665
+ topicId: string;
666
+ /** The subscription UUID. */
667
+ subscriptionId: string;
668
+ }
669
+ export const RevokeSubscriptionSubscriberAccessRequest =
670
+ /*@__PURE__*/ S.suspend(() =>
671
+ S.Struct({
672
+ projectId: S.String.pipe(T.Label()),
673
+ regionId: RevokeSubscriptionSubscriberAccessRequestRegionId.pipe(
674
+ T.Label(),
675
+ ),
676
+ topicId: S.String.pipe(T.Label()),
677
+ subscriptionId: S.String.pipe(T.Label()),
678
+ }).pipe(
679
+ T.Http({
680
+ method: "DELETE",
681
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}/subscribers",
682
+ code: 200,
683
+ baseUrl: "https://pubsub.api.stackit.cloud",
684
+ }),
685
+ ),
686
+ ).annotate({
687
+ identifier: "RevokeSubscriptionSubscriberAccessRequest",
688
+ }) as any as S.Schema<RevokeSubscriptionSubscriberAccessRequest>;
689
+
690
+ export interface RevokeSubscriptionSubscriberAccessResponse {}
691
+ export const RevokeSubscriptionSubscriberAccessResponse =
692
+ /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
693
+ identifier: "RevokeSubscriptionSubscriberAccessResponse",
694
+ }) as any as S.Schema<RevokeSubscriptionSubscriberAccessResponse>;
695
+
696
+ export type RevokeTopicPublisherAccessRequestRegionId = "eu01";
697
+ export const RevokeTopicPublisherAccessRequestRegionId = /*@__PURE__*/ S.String;
698
+
699
+ export interface RevokeTopicPublisherAccessRequest {
700
+ /** The STACKIT portal project UUID the resource is located in. */
701
+ projectId: string;
702
+ /** The STACKIT region name the resource is located in. */
703
+ regionId: RevokeTopicPublisherAccessRequestRegionId | (string & {});
704
+ /** The topic UUID. */
705
+ topicId: string;
706
+ }
707
+ export const RevokeTopicPublisherAccessRequest = /*@__PURE__*/ S.suspend(() =>
708
+ S.Struct({
709
+ projectId: S.String.pipe(T.Label()),
710
+ regionId: RevokeTopicPublisherAccessRequestRegionId.pipe(T.Label()),
711
+ topicId: S.String.pipe(T.Label()),
712
+ }).pipe(
713
+ T.Http({
714
+ method: "DELETE",
715
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/publishers",
716
+ code: 200,
717
+ baseUrl: "https://pubsub.api.stackit.cloud",
718
+ }),
719
+ ),
720
+ ).annotate({
721
+ identifier: "RevokeTopicPublisherAccessRequest",
722
+ }) as any as S.Schema<RevokeTopicPublisherAccessRequest>;
723
+
724
+ export interface RevokeTopicPublisherAccessResponse {}
725
+ export const RevokeTopicPublisherAccessResponse = /*@__PURE__*/ S.suspend(() =>
726
+ S.Struct({}),
727
+ ).annotate({
728
+ identifier: "RevokeTopicPublisherAccessResponse",
729
+ }) as any as S.Schema<RevokeTopicPublisherAccessResponse>;
730
+
731
+ export type UpdatePublisherAccessRequestRegionId = "eu01";
732
+ export const UpdatePublisherAccessRequestRegionId = /*@__PURE__*/ S.String;
733
+
734
+ /** A list of valid subscriber email addresses. */
735
+ export type UpdatePublisherAccessRequestEmailAddressesList = Array<string>;
736
+ export const UpdatePublisherAccessRequestEmailAddressesList =
737
+ /*@__PURE__*/ S.Array(
738
+ S.String,
739
+ ) as any as S.Schema<UpdatePublisherAccessRequestEmailAddressesList>;
740
+
741
+ export interface UpdatePublisherAccessRequest {
742
+ /** The STACKIT portal project UUID the resource is located in. */
743
+ projectId: string;
744
+ /** The STACKIT region name the resource is located in. */
745
+ regionId: UpdatePublisherAccessRequestRegionId | (string & {});
746
+ /** The topic UUID. */
747
+ topicId: string;
748
+ /** A list of valid subscriber email addresses. */
749
+ emailAddresses: UpdatePublisherAccessRequestEmailAddressesList;
750
+ }
751
+ export const UpdatePublisherAccessRequest = /*@__PURE__*/ S.suspend(() =>
752
+ S.Struct({
753
+ projectId: S.String.pipe(T.Label()),
754
+ regionId: UpdatePublisherAccessRequestRegionId.pipe(T.Label()),
755
+ topicId: S.String.pipe(T.Label()),
756
+ emailAddresses: UpdatePublisherAccessRequestEmailAddressesList,
757
+ }).pipe(
758
+ T.Http({
759
+ method: "PUT",
760
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/publishers",
761
+ code: 200,
762
+ baseUrl: "https://pubsub.api.stackit.cloud",
763
+ }),
764
+ ),
765
+ ).annotate({
766
+ identifier: "UpdatePublisherAccessRequest",
767
+ }) as any as S.Schema<UpdatePublisherAccessRequest>;
768
+
769
+ export interface UpdatePublisherAccessResponse {}
770
+ export const UpdatePublisherAccessResponse = /*@__PURE__*/ S.suspend(() =>
771
+ S.Struct({}),
772
+ ).annotate({
773
+ identifier: "UpdatePublisherAccessResponse",
774
+ }) as any as S.Schema<UpdatePublisherAccessResponse>;
775
+
776
+ export type UpdateSubscriptionRequestRegionId = "eu01";
777
+ export const UpdateSubscriptionRequestRegionId = /*@__PURE__*/ S.String;
778
+
779
+ export interface UpdateSubscriptionRequest {
780
+ /** The STACKIT portal project UUID the resource is located in. */
781
+ projectId: string;
782
+ /** The STACKIT region name the resource is located in. */
783
+ regionId: UpdateSubscriptionRequestRegionId | (string & {});
784
+ /** The topic UUID. */
785
+ topicId: string;
786
+ /** The subscription UUID. */
787
+ subscriptionId: string;
788
+ /** The description is a longer text chosen by the user to provide more context for the resource. */
789
+ description?: string;
790
+ /** The display name is a short name chosen by the user to identify the resource. */
791
+ displayName?: string;
792
+ labels?: Labels;
793
+ settings?: SubscriptionSettings;
794
+ }
795
+ export const UpdateSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
796
+ S.Struct({
797
+ projectId: S.String.pipe(T.Label()),
798
+ regionId: UpdateSubscriptionRequestRegionId.pipe(T.Label()),
799
+ topicId: S.String.pipe(T.Label()),
800
+ subscriptionId: S.String.pipe(T.Label()),
801
+ description: S.optional(S.String),
802
+ displayName: S.optional(S.String),
803
+ labels: S.optional(Labels),
804
+ settings: S.optional(SubscriptionSettings),
805
+ }).pipe(
806
+ T.Http({
807
+ method: "PATCH",
808
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}",
809
+ code: 200,
810
+ baseUrl: "https://pubsub.api.stackit.cloud",
811
+ }),
812
+ ),
813
+ ).annotate({
814
+ identifier: "UpdateSubscriptionRequest",
815
+ }) as any as S.Schema<UpdateSubscriptionRequest>;
816
+
817
+ export interface UpdateSubscriptionResponse {}
818
+ export const UpdateSubscriptionResponse = /*@__PURE__*/ S.suspend(() =>
819
+ S.Struct({}),
820
+ ).annotate({
821
+ identifier: "UpdateSubscriptionResponse",
822
+ }) as any as S.Schema<UpdateSubscriptionResponse>;
823
+
824
+ export type UpdateSubscriptionSubscriberAccessRequestRegionId = "eu01";
825
+ export const UpdateSubscriptionSubscriberAccessRequestRegionId =
826
+ /*@__PURE__*/ S.String;
827
+
828
+ /** A list of valid subscriber email addresses. */
829
+ export type UpdateSubscriptionSubscriberAccessRequestEmailAddressesList =
830
+ Array<string>;
831
+ export const UpdateSubscriptionSubscriberAccessRequestEmailAddressesList =
832
+ /*@__PURE__*/ S.Array(
833
+ S.String,
834
+ ) as any as S.Schema<UpdateSubscriptionSubscriberAccessRequestEmailAddressesList>;
835
+
836
+ export interface UpdateSubscriptionSubscriberAccessRequest {
837
+ /** The STACKIT portal project UUID the resource is located in. */
838
+ projectId: string;
839
+ /** The STACKIT region name the resource is located in. */
840
+ regionId: UpdateSubscriptionSubscriberAccessRequestRegionId | (string & {});
841
+ /** The topic UUID. */
842
+ topicId: string;
843
+ /** The subscription UUID. */
844
+ subscriptionId: string;
845
+ /** A list of valid subscriber email addresses. */
846
+ emailAddresses: UpdateSubscriptionSubscriberAccessRequestEmailAddressesList;
847
+ }
848
+ export const UpdateSubscriptionSubscriberAccessRequest =
849
+ /*@__PURE__*/ S.suspend(() =>
850
+ S.Struct({
851
+ projectId: S.String.pipe(T.Label()),
852
+ regionId: UpdateSubscriptionSubscriberAccessRequestRegionId.pipe(
853
+ T.Label(),
854
+ ),
855
+ topicId: S.String.pipe(T.Label()),
856
+ subscriptionId: S.String.pipe(T.Label()),
857
+ emailAddresses:
858
+ UpdateSubscriptionSubscriberAccessRequestEmailAddressesList,
859
+ }).pipe(
860
+ T.Http({
861
+ method: "PUT",
862
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}/subscribers",
863
+ code: 200,
864
+ baseUrl: "https://pubsub.api.stackit.cloud",
865
+ }),
866
+ ),
867
+ ).annotate({
868
+ identifier: "UpdateSubscriptionSubscriberAccessRequest",
869
+ }) as any as S.Schema<UpdateSubscriptionSubscriberAccessRequest>;
870
+
871
+ export interface UpdateSubscriptionSubscriberAccessResponse {}
872
+ export const UpdateSubscriptionSubscriberAccessResponse =
873
+ /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
874
+ identifier: "UpdateSubscriptionSubscriberAccessResponse",
875
+ }) as any as S.Schema<UpdateSubscriptionSubscriberAccessResponse>;
876
+
877
+ export type UpdateTopicRequestRegionId = "eu01";
878
+ export const UpdateTopicRequestRegionId = /*@__PURE__*/ S.String;
879
+
880
+ export interface UpdateTopicRequest {
881
+ /** The STACKIT portal project UUID the resource is located in. */
882
+ projectId: string;
883
+ /** The STACKIT region name the resource is located in. */
884
+ regionId: UpdateTopicRequestRegionId | (string & {});
885
+ /** The topic UUID. */
886
+ topicId: string;
887
+ /** The description is a longer text chosen by the user to provide more context for the resource. */
888
+ description?: string;
889
+ /** The display name is a short name chosen by the user to identify the resource. */
890
+ displayName?: string;
891
+ labels?: Labels;
892
+ settings?: TopicSettings;
893
+ }
894
+ export const UpdateTopicRequest = /*@__PURE__*/ S.suspend(() =>
895
+ S.Struct({
896
+ projectId: S.String.pipe(T.Label()),
897
+ regionId: UpdateTopicRequestRegionId.pipe(T.Label()),
898
+ topicId: S.String.pipe(T.Label()),
899
+ description: S.optional(S.String),
900
+ displayName: S.optional(S.String),
901
+ labels: S.optional(Labels),
902
+ settings: S.optional(TopicSettings),
903
+ }).pipe(
904
+ T.Http({
905
+ method: "PATCH",
906
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}",
907
+ code: 200,
908
+ baseUrl: "https://pubsub.api.stackit.cloud",
909
+ }),
910
+ ),
911
+ ).annotate({
912
+ identifier: "UpdateTopicRequest",
913
+ }) as any as S.Schema<UpdateTopicRequest>;
914
+
915
+ export interface UpdateTopicResponse {}
916
+ export const UpdateTopicResponse = /*@__PURE__*/ S.suspend(() =>
917
+ S.Struct({}),
918
+ ).annotate({
919
+ identifier: "UpdateTopicResponse",
920
+ }) as any as S.Schema<UpdateTopicResponse>;
921
+
922
+ export type CreateSubscriptionError =
923
+ | BadRequest
924
+ | Forbidden
925
+ | NotFound
926
+ | Conflict
927
+ | UnprocessableEntity
928
+ | StackitOpError;
929
+ /** Creates a new subscription for a topic within the PubSub project. */
930
+ export const createSubscription: API.OperationMethod<
931
+ CreateSubscriptionRequest,
932
+ SubscriptionResponse,
933
+ CreateSubscriptionError,
934
+ StackitOpContext
935
+ > = /*@__PURE__*/ API.make(() => ({
936
+ input: CreateSubscriptionRequest,
937
+ output: SubscriptionResponse,
938
+ errors: [
939
+ BadRequest,
940
+ Forbidden,
941
+ NotFound,
942
+ Conflict,
943
+ UnprocessableEntity,
944
+ UnknownStackitError,
945
+ ],
946
+ protocol: StackitProtocol,
947
+ retry: Retry.Retry,
948
+ }));
949
+
950
+ export type CreateTopicError =
951
+ | BadRequest
952
+ | Forbidden
953
+ | NotFound
954
+ | Conflict
955
+ | StackitOpError;
956
+ /** Creates a new topic within the PubSub project. */
957
+ export const createTopic: API.OperationMethod<
958
+ CreateTopicRequest,
959
+ TopicResponse,
960
+ CreateTopicError,
961
+ StackitOpContext
962
+ > = /*@__PURE__*/ API.make(() => ({
963
+ input: CreateTopicRequest,
964
+ output: TopicResponse,
965
+ errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
966
+ protocol: StackitProtocol,
967
+ retry: Retry.Retry,
968
+ }));
969
+
970
+ export type DeleteSubscriptionError =
971
+ | BadRequest
972
+ | Forbidden
973
+ | NotFound
974
+ | Conflict
975
+ | StackitOpError;
976
+ /** Deletes the given subscription. */
977
+ export const deleteSubscription: API.OperationMethod<
978
+ DeleteSubscriptionRequest,
979
+ DeleteSubscriptionResponse,
980
+ DeleteSubscriptionError,
981
+ StackitOpContext
982
+ > = /*@__PURE__*/ API.make(() => ({
983
+ input: DeleteSubscriptionRequest,
984
+ output: DeleteSubscriptionResponse,
985
+ errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
986
+ protocol: StackitProtocol,
987
+ retry: Retry.Retry,
988
+ }));
989
+
990
+ export type DeleteTopicError =
991
+ | BadRequest
992
+ | Forbidden
993
+ | NotFound
994
+ | UnprocessableEntity
995
+ | StackitOpError;
996
+ /** Deletes the given topic. */
997
+ export const deleteTopic: API.OperationMethod<
998
+ DeleteTopicRequest,
999
+ DeleteTopicResponse,
1000
+ DeleteTopicError,
1001
+ StackitOpContext
1002
+ > = /*@__PURE__*/ API.make(() => ({
1003
+ input: DeleteTopicRequest,
1004
+ output: DeleteTopicResponse,
1005
+ errors: [
1006
+ BadRequest,
1007
+ Forbidden,
1008
+ NotFound,
1009
+ UnprocessableEntity,
1010
+ UnknownStackitError,
1011
+ ],
1012
+ protocol: StackitProtocol,
1013
+ retry: Retry.Retry,
1014
+ }));
1015
+
1016
+ export type GetSubscriptionError =
1017
+ | BadRequest
1018
+ | Forbidden
1019
+ | NotFound
1020
+ | StackitOpError;
1021
+ /** Returns the details for the given subscription. */
1022
+ export const getSubscription: API.OperationMethod<
1023
+ GetSubscriptionRequest,
1024
+ SubscriptionResponse,
1025
+ GetSubscriptionError,
1026
+ StackitOpContext
1027
+ > = /*@__PURE__*/ API.make(() => ({
1028
+ input: GetSubscriptionRequest,
1029
+ output: SubscriptionResponse,
1030
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1031
+ protocol: StackitProtocol,
1032
+ retry: Retry.Retry,
1033
+ }));
1034
+
1035
+ export type GetTopicError = BadRequest | Forbidden | NotFound | StackitOpError;
1036
+ /** Returns the details for the given topic. */
1037
+ export const getTopic: API.OperationMethod<
1038
+ GetTopicRequest,
1039
+ TopicResponse,
1040
+ GetTopicError,
1041
+ StackitOpContext
1042
+ > = /*@__PURE__*/ API.make(() => ({
1043
+ input: GetTopicRequest,
1044
+ output: TopicResponse,
1045
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1046
+ protocol: StackitProtocol,
1047
+ retry: Retry.Retry,
1048
+ }));
1049
+
1050
+ export type GrantSubscriptionSubscriberAccessError =
1051
+ | BadRequest
1052
+ | Forbidden
1053
+ | NotFound
1054
+ | UnprocessableEntity
1055
+ | StackitOpError;
1056
+ /** Grants an emailAddress access to pull from the given subscription. */
1057
+ export const grantSubscriptionSubscriberAccess: API.OperationMethod<
1058
+ GrantSubscriptionSubscriberAccessRequest,
1059
+ GrantSubscriptionSubscriberAccessResponse,
1060
+ GrantSubscriptionSubscriberAccessError,
1061
+ StackitOpContext
1062
+ > = /*@__PURE__*/ API.make(() => ({
1063
+ input: GrantSubscriptionSubscriberAccessRequest,
1064
+ output: GrantSubscriptionSubscriberAccessResponse,
1065
+ errors: [
1066
+ BadRequest,
1067
+ Forbidden,
1068
+ NotFound,
1069
+ UnprocessableEntity,
1070
+ UnknownStackitError,
1071
+ ],
1072
+ protocol: StackitProtocol,
1073
+ retry: Retry.Retry,
1074
+ }));
1075
+
1076
+ export type GrantTopicPublisherAccessError =
1077
+ | BadRequest
1078
+ | Forbidden
1079
+ | NotFound
1080
+ | UnprocessableEntity
1081
+ | StackitOpError;
1082
+ /** Grants an emailAddress access to publish to the given topic. */
1083
+ export const grantTopicPublisherAccess: API.OperationMethod<
1084
+ GrantTopicPublisherAccessRequest,
1085
+ GrantTopicPublisherAccessResponse,
1086
+ GrantTopicPublisherAccessError,
1087
+ StackitOpContext
1088
+ > = /*@__PURE__*/ API.make(() => ({
1089
+ input: GrantTopicPublisherAccessRequest,
1090
+ output: GrantTopicPublisherAccessResponse,
1091
+ errors: [
1092
+ BadRequest,
1093
+ Forbidden,
1094
+ NotFound,
1095
+ UnprocessableEntity,
1096
+ UnknownStackitError,
1097
+ ],
1098
+ protocol: StackitProtocol,
1099
+ retry: Retry.Retry,
1100
+ }));
1101
+
1102
+ export type ListSubscriptionsError =
1103
+ | BadRequest
1104
+ | Forbidden
1105
+ | NotFound
1106
+ | StackitOpError;
1107
+ /** Returns a list of all topic subscriptions. */
1108
+ export const listSubscriptions: API.OperationMethod<
1109
+ ListSubscriptionsRequest,
1110
+ ListSubscriptionsResponse,
1111
+ ListSubscriptionsError,
1112
+ StackitOpContext
1113
+ > = /*@__PURE__*/ API.make(() => ({
1114
+ input: ListSubscriptionsRequest,
1115
+ output: ListSubscriptionsResponse,
1116
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1117
+ protocol: StackitProtocol,
1118
+ retry: Retry.Retry,
1119
+ }));
1120
+
1121
+ export type ListSubscriptionSubscribersError =
1122
+ | BadRequest
1123
+ | Forbidden
1124
+ | NotFound
1125
+ | StackitOpError;
1126
+ /** Returns a list of emailAddresses that are allowed to pull from the given subscription. */
1127
+ export const listSubscriptionSubscribers: API.OperationMethod<
1128
+ ListSubscriptionSubscribersRequest,
1129
+ ListEmailAddressesResponse,
1130
+ ListSubscriptionSubscribersError,
1131
+ StackitOpContext
1132
+ > = /*@__PURE__*/ API.make(() => ({
1133
+ input: ListSubscriptionSubscribersRequest,
1134
+ output: ListEmailAddressesResponse,
1135
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1136
+ protocol: StackitProtocol,
1137
+ retry: Retry.Retry,
1138
+ }));
1139
+
1140
+ export type ListTopicPublishersError =
1141
+ | BadRequest
1142
+ | Forbidden
1143
+ | NotFound
1144
+ | StackitOpError;
1145
+ /** Returns a list of emailAddresses that are allowed to publish to the given topic. */
1146
+ export const listTopicPublishers: API.OperationMethod<
1147
+ ListTopicPublishersRequest,
1148
+ ListEmailAddressesResponse,
1149
+ ListTopicPublishersError,
1150
+ StackitOpContext
1151
+ > = /*@__PURE__*/ API.make(() => ({
1152
+ input: ListTopicPublishersRequest,
1153
+ output: ListEmailAddressesResponse,
1154
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1155
+ protocol: StackitProtocol,
1156
+ retry: Retry.Retry,
1157
+ }));
1158
+
1159
+ export type ListTopicsError =
1160
+ | BadRequest
1161
+ | Forbidden
1162
+ | NotFound
1163
+ | StackitOpError;
1164
+ /** Returns a list of all topics within the PubSub project. */
1165
+ export const listTopics: API.OperationMethod<
1166
+ ListTopicsRequest,
1167
+ ListTopicsResponse,
1168
+ ListTopicsError,
1169
+ StackitOpContext
1170
+ > = /*@__PURE__*/ API.make(() => ({
1171
+ input: ListTopicsRequest,
1172
+ output: ListTopicsResponse,
1173
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1174
+ protocol: StackitProtocol,
1175
+ retry: Retry.Retry,
1176
+ }));
1177
+
1178
+ export type RevokeSubscriptionSubscriberAccessError =
1179
+ | BadRequest
1180
+ | Forbidden
1181
+ | NotFound
1182
+ | UnprocessableEntity
1183
+ | StackitOpError;
1184
+ /** Revokes all email-addresses access to pull from the given subscription. */
1185
+ export const revokeSubscriptionSubscriberAccess: API.OperationMethod<
1186
+ RevokeSubscriptionSubscriberAccessRequest,
1187
+ RevokeSubscriptionSubscriberAccessResponse,
1188
+ RevokeSubscriptionSubscriberAccessError,
1189
+ StackitOpContext
1190
+ > = /*@__PURE__*/ API.make(() => ({
1191
+ input: RevokeSubscriptionSubscriberAccessRequest,
1192
+ output: RevokeSubscriptionSubscriberAccessResponse,
1193
+ errors: [
1194
+ BadRequest,
1195
+ Forbidden,
1196
+ NotFound,
1197
+ UnprocessableEntity,
1198
+ UnknownStackitError,
1199
+ ],
1200
+ protocol: StackitProtocol,
1201
+ retry: Retry.Retry,
1202
+ }));
1203
+
1204
+ export type RevokeTopicPublisherAccessError =
1205
+ | BadRequest
1206
+ | Forbidden
1207
+ | NotFound
1208
+ | UnprocessableEntity
1209
+ | StackitOpError;
1210
+ /** Revokes all email-addresses access to publish to the given topic. */
1211
+ export const revokeTopicPublisherAccess: API.OperationMethod<
1212
+ RevokeTopicPublisherAccessRequest,
1213
+ RevokeTopicPublisherAccessResponse,
1214
+ RevokeTopicPublisherAccessError,
1215
+ StackitOpContext
1216
+ > = /*@__PURE__*/ API.make(() => ({
1217
+ input: RevokeTopicPublisherAccessRequest,
1218
+ output: RevokeTopicPublisherAccessResponse,
1219
+ errors: [
1220
+ BadRequest,
1221
+ Forbidden,
1222
+ NotFound,
1223
+ UnprocessableEntity,
1224
+ UnknownStackitError,
1225
+ ],
1226
+ protocol: StackitProtocol,
1227
+ retry: Retry.Retry,
1228
+ }));
1229
+
1230
+ export type UpdatePublisherAccessError =
1231
+ | BadRequest
1232
+ | Forbidden
1233
+ | NotFound
1234
+ | UnprocessableEntity
1235
+ | StackitOpError;
1236
+ /** Updates the access list of email-addresses to publish to the given topic. */
1237
+ export const updatePublisherAccess: API.OperationMethod<
1238
+ UpdatePublisherAccessRequest,
1239
+ UpdatePublisherAccessResponse,
1240
+ UpdatePublisherAccessError,
1241
+ StackitOpContext
1242
+ > = /*@__PURE__*/ API.make(() => ({
1243
+ input: UpdatePublisherAccessRequest,
1244
+ output: UpdatePublisherAccessResponse,
1245
+ errors: [
1246
+ BadRequest,
1247
+ Forbidden,
1248
+ NotFound,
1249
+ UnprocessableEntity,
1250
+ UnknownStackitError,
1251
+ ],
1252
+ protocol: StackitProtocol,
1253
+ retry: Retry.Retry,
1254
+ }));
1255
+
1256
+ export type UpdateSubscriptionError =
1257
+ | BadRequest
1258
+ | Forbidden
1259
+ | NotFound
1260
+ | Conflict
1261
+ | UnprocessableEntity
1262
+ | StackitOpError;
1263
+ /** Will update the given subscription. */
1264
+ export const updateSubscription: API.OperationMethod<
1265
+ UpdateSubscriptionRequest,
1266
+ UpdateSubscriptionResponse,
1267
+ UpdateSubscriptionError,
1268
+ StackitOpContext
1269
+ > = /*@__PURE__*/ API.make(() => ({
1270
+ input: UpdateSubscriptionRequest,
1271
+ output: UpdateSubscriptionResponse,
1272
+ errors: [
1273
+ BadRequest,
1274
+ Forbidden,
1275
+ NotFound,
1276
+ Conflict,
1277
+ UnprocessableEntity,
1278
+ UnknownStackitError,
1279
+ ],
1280
+ protocol: StackitProtocol,
1281
+ retry: Retry.Retry,
1282
+ }));
1283
+
1284
+ export type UpdateSubscriptionSubscriberAccessError =
1285
+ | BadRequest
1286
+ | Forbidden
1287
+ | NotFound
1288
+ | UnprocessableEntity
1289
+ | StackitOpError;
1290
+ /** Updates the access list of emailAddresses to pull from the given subscription. */
1291
+ export const updateSubscriptionSubscriberAccess: API.OperationMethod<
1292
+ UpdateSubscriptionSubscriberAccessRequest,
1293
+ UpdateSubscriptionSubscriberAccessResponse,
1294
+ UpdateSubscriptionSubscriberAccessError,
1295
+ StackitOpContext
1296
+ > = /*@__PURE__*/ API.make(() => ({
1297
+ input: UpdateSubscriptionSubscriberAccessRequest,
1298
+ output: UpdateSubscriptionSubscriberAccessResponse,
1299
+ errors: [
1300
+ BadRequest,
1301
+ Forbidden,
1302
+ NotFound,
1303
+ UnprocessableEntity,
1304
+ UnknownStackitError,
1305
+ ],
1306
+ protocol: StackitProtocol,
1307
+ retry: Retry.Retry,
1308
+ }));
1309
+
1310
+ export type UpdateTopicError =
1311
+ | BadRequest
1312
+ | Forbidden
1313
+ | NotFound
1314
+ | Conflict
1315
+ | UnprocessableEntity
1316
+ | StackitOpError;
1317
+ /** Will update the given topic. */
1318
+ export const updateTopic: API.OperationMethod<
1319
+ UpdateTopicRequest,
1320
+ UpdateTopicResponse,
1321
+ UpdateTopicError,
1322
+ StackitOpContext
1323
+ > = /*@__PURE__*/ API.make(() => ({
1324
+ input: UpdateTopicRequest,
1325
+ output: UpdateTopicResponse,
1326
+ errors: [
1327
+ BadRequest,
1328
+ Forbidden,
1329
+ NotFound,
1330
+ Conflict,
1331
+ UnprocessableEntity,
1332
+ UnknownStackitError,
1333
+ ],
1334
+ protocol: StackitProtocol,
1335
+ retry: Retry.Retry,
1336
+ }));