@distilled.cloud/stackit 1.0.0-rc.15 → 1.0.0-rc.17

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 (346) hide show
  1. package/lib/.lazy.json +1 -0
  2. package/lib/_bundle/lazy.js +4 -0
  3. package/lib/_bundle/sdk.js +2 -0
  4. package/lib/_bundle/sdk.js.map +1 -0
  5. package/lib/credentials.d.ts +2 -2
  6. package/lib/credentials.d.ts.map +1 -1
  7. package/lib/credentials.js +1 -49
  8. package/lib/errors.d.ts +13 -13
  9. package/lib/errors.d.ts.map +1 -1
  10. package/lib/errors.js +1 -26
  11. package/lib/index.d.ts +2 -2
  12. package/lib/index.js +1 -24
  13. package/lib/index.lazy.js +7 -0
  14. package/lib/pagination.d.ts +1 -1
  15. package/lib/pagination.js +1 -45
  16. package/lib/protocol.d.ts +3 -3
  17. package/lib/protocol.d.ts.map +1 -1
  18. package/lib/protocol.js +1 -147
  19. package/lib/retry.d.ts +1 -1
  20. package/lib/retry.d.ts.map +1 -1
  21. package/lib/retry.js +1 -31
  22. package/lib/services/alb.d.ts +10 -87
  23. package/lib/services/alb.d.ts.map +1 -1
  24. package/lib/services/alb.js +28 -512
  25. package/lib/services/alb.js.map +1 -1
  26. package/lib/services/alb_waf.d.ts +9 -82
  27. package/lib/services/alb_waf.d.ts.map +1 -1
  28. package/lib/services/alb_waf.js +33 -520
  29. package/lib/services/alb_waf.js.map +1 -1
  30. package/lib/services/authorization.d.ts +5 -47
  31. package/lib/services/authorization.d.ts.map +1 -1
  32. package/lib/services/authorization.js +1 -322
  33. package/lib/services/authorization.js.map +1 -1
  34. package/lib/services/automation.d.ts +7 -47
  35. package/lib/services/automation.d.ts.map +1 -1
  36. package/lib/services/automation.js +1 -362
  37. package/lib/services/automation.js.map +1 -1
  38. package/lib/services/cdn.d.ts +8 -220
  39. package/lib/services/cdn.d.ts.map +1 -1
  40. package/lib/services/cdn.js +31 -905
  41. package/lib/services/cdn.js.map +1 -1
  42. package/lib/services/certificates.d.ts +8 -27
  43. package/lib/services/certificates.d.ts.map +1 -1
  44. package/lib/services/certificates.js +1 -178
  45. package/lib/services/certificates.js.map +1 -1
  46. package/lib/services/cost.d.ts +10 -37
  47. package/lib/services/cost.d.ts.map +1 -1
  48. package/lib/services/cost.js +1 -176
  49. package/lib/services/cost.js.map +1 -1
  50. package/lib/services/dns.d.ts +9 -104
  51. package/lib/services/dns.d.ts.map +1 -1
  52. package/lib/services/dns.js +40 -725
  53. package/lib/services/dns.js.map +1 -1
  54. package/lib/services/dremio.d.ts +8 -50
  55. package/lib/services/dremio.d.ts.map +1 -1
  56. package/lib/services/dremio.js +1 -316
  57. package/lib/services/dremio.js.map +1 -1
  58. package/lib/services/edge.d.ts +7 -40
  59. package/lib/services/edge.d.ts.map +1 -1
  60. package/lib/services/edge.js +1 -356
  61. package/lib/services/edge.js.map +1 -1
  62. package/lib/services/functions.d.ts +1 -48
  63. package/lib/services/functions.d.ts.map +1 -1
  64. package/lib/services/functions.js +1 -398
  65. package/lib/services/functions.js.map +1 -1
  66. package/lib/services/git.d.ts +8 -61
  67. package/lib/services/git.d.ts.map +1 -1
  68. package/lib/services/git.js +35 -519
  69. package/lib/services/git.js.map +1 -1
  70. package/lib/services/iaas.d.ts +9 -337
  71. package/lib/services/iaas.d.ts.map +1 -1
  72. package/lib/services/iaas.js +181 -3542
  73. package/lib/services/iaas.js.map +1 -1
  74. package/lib/services/index.js +0 -2
  75. package/lib/services/intake.d.ts +8 -75
  76. package/lib/services/intake.d.ts.map +1 -1
  77. package/lib/services/intake.js +29 -474
  78. package/lib/services/intake.js.map +1 -1
  79. package/lib/services/kms.d.ts +9 -92
  80. package/lib/services/kms.d.ts.map +1 -1
  81. package/lib/services/kms.js +41 -662
  82. package/lib/services/kms.js.map +1 -1
  83. package/lib/services/lb_ip_lists.d.ts +9 -25
  84. package/lib/services/lb_ip_lists.d.ts.map +1 -1
  85. package/lib/services/lb_ip_lists.js +1 -153
  86. package/lib/services/lb_ip_lists.js.map +1 -1
  87. package/lib/services/load_balancer.d.ts +10 -81
  88. package/lib/services/load_balancer.d.ts.map +1 -1
  89. package/lib/services/load_balancer.js +29 -496
  90. package/lib/services/load_balancer.js.map +1 -1
  91. package/lib/services/logme.d.ts +8 -69
  92. package/lib/services/logme.d.ts.map +1 -1
  93. package/lib/services/logme.js +33 -573
  94. package/lib/services/logme.js.map +1 -1
  95. package/lib/services/logs.d.ts +8 -64
  96. package/lib/services/logs.d.ts.map +1 -1
  97. package/lib/services/logs.js +34 -474
  98. package/lib/services/logs.js.map +1 -1
  99. package/lib/services/mariadb.d.ts +8 -65
  100. package/lib/services/mariadb.d.ts.map +1 -1
  101. package/lib/services/mariadb.js +34 -550
  102. package/lib/services/mariadb.js.map +1 -1
  103. package/lib/services/model_experiments.d.ts +9 -48
  104. package/lib/services/model_experiments.d.ts.map +1 -1
  105. package/lib/services/model_experiments.js +1 -335
  106. package/lib/services/model_experiments.js.map +1 -1
  107. package/lib/services/model_serving.d.ts +7 -47
  108. package/lib/services/model_serving.d.ts.map +1 -1
  109. package/lib/services/model_serving.js +1 -286
  110. package/lib/services/model_serving.js.map +1 -1
  111. package/lib/services/mongodb_flex.d.ts +8 -137
  112. package/lib/services/mongodb_flex.d.ts.map +1 -1
  113. package/lib/services/mongodb_flex.js +42 -802
  114. package/lib/services/mongodb_flex.js.map +1 -1
  115. package/lib/services/object_storage.d.ts +12 -59
  116. package/lib/services/object_storage.d.ts.map +1 -1
  117. package/lib/services/object_storage.js +38 -539
  118. package/lib/services/object_storage.js.map +1 -1
  119. package/lib/services/observability.d.ts +8 -407
  120. package/lib/services/observability.d.ts.map +1 -1
  121. package/lib/services/observability.js +159 -3157
  122. package/lib/services/observability.js.map +1 -1
  123. package/lib/services/opensearch.d.ts +8 -71
  124. package/lib/services/opensearch.d.ts.map +1 -1
  125. package/lib/services/opensearch.js +34 -562
  126. package/lib/services/opensearch.js.map +1 -1
  127. package/lib/services/pim.d.ts +12 -108
  128. package/lib/services/pim.d.ts.map +1 -1
  129. package/lib/services/pim.js +31 -735
  130. package/lib/services/pim.js.map +1 -1
  131. package/lib/services/postgres_flex.d.ts +14 -136
  132. package/lib/services/postgres_flex.d.ts.map +1 -1
  133. package/lib/services/postgres_flex.js +47 -852
  134. package/lib/services/postgres_flex.js.map +1 -1
  135. package/lib/services/pubsub.d.ts +11 -73
  136. package/lib/services/pubsub.d.ts.map +1 -1
  137. package/lib/services/pubsub.js +37 -518
  138. package/lib/services/pubsub.js.map +1 -1
  139. package/lib/services/rabbitmq.d.ts +8 -76
  140. package/lib/services/rabbitmq.d.ts.map +1 -1
  141. package/lib/services/rabbitmq.js +35 -573
  142. package/lib/services/rabbitmq.js.map +1 -1
  143. package/lib/services/registry.d.ts +10 -28
  144. package/lib/services/registry.d.ts.map +1 -1
  145. package/lib/services/registry.js +1 -197
  146. package/lib/services/registry.js.map +1 -1
  147. package/lib/services/resource_manager.d.ts +9 -61
  148. package/lib/services/resource_manager.d.ts.map +1 -1
  149. package/lib/services/resource_manager.js +36 -472
  150. package/lib/services/resource_manager.js.map +1 -1
  151. package/lib/services/run_command.d.ts +5 -28
  152. package/lib/services/run_command.d.ts.map +1 -1
  153. package/lib/services/run_command.js +1 -184
  154. package/lib/services/run_command.js.map +1 -1
  155. package/lib/services/sca.d.ts +8 -79
  156. package/lib/services/sca.d.ts.map +1 -1
  157. package/lib/services/sca.js +25 -444
  158. package/lib/services/sca.js.map +1 -1
  159. package/lib/services/scf.d.ts +8 -64
  160. package/lib/services/scf.d.ts.map +1 -1
  161. package/lib/services/scf.js +40 -669
  162. package/lib/services/scf.js.map +1 -1
  163. package/lib/services/secrets_manager.d.ts +8 -61
  164. package/lib/services/secrets_manager.d.ts.map +1 -1
  165. package/lib/services/secrets_manager.js +42 -612
  166. package/lib/services/secrets_manager.js.map +1 -1
  167. package/lib/services/server_backup.d.ts +7 -50
  168. package/lib/services/server_backup.d.ts.map +1 -1
  169. package/lib/services/server_backup.js +29 -453
  170. package/lib/services/server_backup.js.map +1 -1
  171. package/lib/services/server_update.d.ts +7 -35
  172. package/lib/services/server_update.d.ts.map +1 -1
  173. package/lib/services/server_update.js +1 -351
  174. package/lib/services/server_update.js.map +1 -1
  175. package/lib/services/service_account.d.ts +10 -68
  176. package/lib/services/service_account.d.ts.map +1 -1
  177. package/lib/services/service_account.js +30 -505
  178. package/lib/services/service_account.js.map +1 -1
  179. package/lib/services/service_enablement.d.ts +7 -29
  180. package/lib/services/service_enablement.d.ts.map +1 -1
  181. package/lib/services/service_enablement.js +1 -156
  182. package/lib/services/service_enablement.js.map +1 -1
  183. package/lib/services/sfs.d.ts +4 -96
  184. package/lib/services/sfs.d.ts.map +1 -1
  185. package/lib/services/sfs.js +46 -789
  186. package/lib/services/sfs.js.map +1 -1
  187. package/lib/services/ske.d.ts +9 -108
  188. package/lib/services/ske.d.ts.map +1 -1
  189. package/lib/services/ske.js +26 -557
  190. package/lib/services/ske.js.map +1 -1
  191. package/lib/services/sqlserverflex.d.ts +11 -152
  192. package/lib/services/sqlserverflex.d.ts.map +1 -1
  193. package/lib/services/sqlserverflex.js +46 -935
  194. package/lib/services/sqlserverflex.js.map +1 -1
  195. package/lib/services/stackit_marketplace.d.ts +9 -38
  196. package/lib/services/stackit_marketplace.d.ts.map +1 -1
  197. package/lib/services/stackit_marketplace.js +26 -378
  198. package/lib/services/stackit_marketplace.js.map +1 -1
  199. package/lib/services/telemetry_link.d.ts +8 -61
  200. package/lib/services/telemetry_link.d.ts.map +1 -1
  201. package/lib/services/telemetry_link.js +34 -531
  202. package/lib/services/telemetry_link.js.map +1 -1
  203. package/lib/services/telemetry_router.d.ts +8 -72
  204. package/lib/services/telemetry_router.d.ts.map +1 -1
  205. package/lib/services/telemetry_router.js +29 -483
  206. package/lib/services/telemetry_router.js.map +1 -1
  207. package/lib/services/ufw.d.ts +7 -42
  208. package/lib/services/ufw.d.ts.map +1 -1
  209. package/lib/services/ufw.js +1 -278
  210. package/lib/services/ufw.js.map +1 -1
  211. package/lib/services/valkey.d.ts +8 -68
  212. package/lib/services/valkey.d.ts.map +1 -1
  213. package/lib/services/valkey.js +34 -566
  214. package/lib/services/valkey.js.map +1 -1
  215. package/lib/services/vpn.d.ts +21 -186
  216. package/lib/services/vpn.d.ts.map +1 -1
  217. package/lib/services/vpn.js +43 -930
  218. package/lib/services/vpn.js.map +1 -1
  219. package/lib/services/workflows.d.ts +15 -84
  220. package/lib/services/workflows.d.ts.map +1 -1
  221. package/lib/services/workflows.js +27 -507
  222. package/lib/services/workflows.js.map +1 -1
  223. package/lib/services.lazy/alb.js +4 -0
  224. package/lib/services.lazy/alb_waf.js +4 -0
  225. package/lib/services.lazy/authorization.js +1 -0
  226. package/lib/services.lazy/automation.js +1 -0
  227. package/lib/services.lazy/cdn.js +4 -0
  228. package/lib/services.lazy/certificates.js +1 -0
  229. package/lib/services.lazy/cost.js +1 -0
  230. package/lib/services.lazy/dns.js +4 -0
  231. package/lib/services.lazy/dremio.js +1 -0
  232. package/lib/services.lazy/edge.js +1 -0
  233. package/lib/services.lazy/functions.js +1 -0
  234. package/lib/services.lazy/git.js +4 -0
  235. package/lib/services.lazy/iaas.js +4 -0
  236. package/lib/services.lazy/index.js +3 -0
  237. package/lib/services.lazy/intake.js +4 -0
  238. package/lib/services.lazy/kms.js +4 -0
  239. package/lib/services.lazy/lb_ip_lists.js +1 -0
  240. package/lib/services.lazy/load_balancer.js +4 -0
  241. package/lib/services.lazy/logme.js +4 -0
  242. package/lib/services.lazy/logs.js +4 -0
  243. package/lib/services.lazy/mariadb.js +4 -0
  244. package/lib/services.lazy/model_experiments.js +1 -0
  245. package/lib/services.lazy/model_serving.js +1 -0
  246. package/lib/services.lazy/mongodb_flex.js +4 -0
  247. package/lib/services.lazy/object_storage.js +4 -0
  248. package/lib/services.lazy/observability.js +4 -0
  249. package/lib/services.lazy/opensearch.js +4 -0
  250. package/lib/services.lazy/pim.js +4 -0
  251. package/lib/services.lazy/postgres_flex.js +4 -0
  252. package/lib/services.lazy/pubsub.js +4 -0
  253. package/lib/services.lazy/rabbitmq.js +4 -0
  254. package/lib/services.lazy/registry.js +1 -0
  255. package/lib/services.lazy/resource_manager.js +4 -0
  256. package/lib/services.lazy/run_command.js +1 -0
  257. package/lib/services.lazy/sca.js +4 -0
  258. package/lib/services.lazy/scf.js +4 -0
  259. package/lib/services.lazy/secrets_manager.js +4 -0
  260. package/lib/services.lazy/server_backup.js +4 -0
  261. package/lib/services.lazy/server_update.js +1 -0
  262. package/lib/services.lazy/service_account.js +4 -0
  263. package/lib/services.lazy/service_enablement.js +1 -0
  264. package/lib/services.lazy/sfs.js +4 -0
  265. package/lib/services.lazy/ske.js +4 -0
  266. package/lib/services.lazy/sqlserverflex.js +4 -0
  267. package/lib/services.lazy/stackit_marketplace.js +4 -0
  268. package/lib/services.lazy/telemetry_link.js +4 -0
  269. package/lib/services.lazy/telemetry_router.js +4 -0
  270. package/lib/services.lazy/ufw.js +1 -0
  271. package/lib/services.lazy/valkey.js +4 -0
  272. package/lib/services.lazy/vpn.js +4 -0
  273. package/lib/services.lazy/workflows.js +4 -0
  274. package/lib/traits.d.ts +1 -1
  275. package/lib/traits.js +1 -15
  276. package/package.json +9 -7
  277. package/src/credentials.ts +21 -18
  278. package/src/errors.ts +10 -14
  279. package/src/index.ts +2 -2
  280. package/src/pagination.ts +2 -2
  281. package/src/protocol.ts +12 -9
  282. package/src/retry.ts +6 -4
  283. package/src/services/alb.ts +599 -655
  284. package/src/services/alb_waf.ts +597 -637
  285. package/src/services/authorization.ts +400 -383
  286. package/src/services/automation.ts +422 -405
  287. package/src/services/cdn.ts +817 -1375
  288. package/src/services/certificates.ts +209 -190
  289. package/src/services/cost.ts +100 -207
  290. package/src/services/dns.ts +793 -833
  291. package/src/services/dremio.ts +356 -349
  292. package/src/services/edge.ts +406 -366
  293. package/src/services/functions.ts +465 -463
  294. package/src/services/git.ts +602 -547
  295. package/src/services/iaas.ts +3931 -3821
  296. package/src/services/intake.ts +521 -549
  297. package/src/services/kms.ts +715 -692
  298. package/src/services/lb_ip_lists.ts +173 -152
  299. package/src/services/load_balancer.ts +576 -619
  300. package/src/services/logme.ts +696 -641
  301. package/src/services/logs.ts +510 -493
  302. package/src/services/mariadb.ts +671 -604
  303. package/src/services/model_experiments.ts +343 -356
  304. package/src/services/model_serving.ts +337 -328
  305. package/src/services/mongodb_flex.ts +955 -1007
  306. package/src/services/object_storage.ts +614 -557
  307. package/src/services/observability.ts +3469 -3866
  308. package/src/services/opensearch.ts +679 -628
  309. package/src/services/pim.ts +672 -909
  310. package/src/services/postgres_flex.ts +966 -986
  311. package/src/services/pubsub.ts +524 -546
  312. package/src/services/rabbitmq.ts +693 -654
  313. package/src/services/registry.ts +227 -194
  314. package/src/services/resource_manager.ts +520 -517
  315. package/src/services/run_command.ts +219 -211
  316. package/src/services/sca.ts +543 -570
  317. package/src/services/scf.ts +790 -716
  318. package/src/services/secrets_manager.ts +707 -622
  319. package/src/services/server_backup.ts +490 -475
  320. package/src/services/server_update.ts +353 -356
  321. package/src/services/service_account.ts +515 -553
  322. package/src/services/service_enablement.ts +162 -166
  323. package/src/services/sfs.ts +879 -958
  324. package/src/services/ske.ts +694 -769
  325. package/src/services/sqlserverflex.ts +1042 -1117
  326. package/src/services/stackit_marketplace.ts +377 -372
  327. package/src/services/telemetry_link.ts +530 -531
  328. package/src/services/telemetry_router.ts +509 -534
  329. package/src/services/ufw.ts +305 -307
  330. package/src/services/valkey.ts +684 -629
  331. package/src/services/vpn.ts +935 -1195
  332. package/src/services/workflows.ts +426 -586
  333. package/src/traits.ts +1 -1
  334. package/lib/credentials.js.map +0 -1
  335. package/lib/errors.js.map +0 -1
  336. package/lib/pagination.js.map +0 -1
  337. package/lib/protocol.js.map +0 -1
  338. package/lib/protocol.test.d.ts +0 -2
  339. package/lib/protocol.test.d.ts.map +0 -1
  340. package/lib/protocol.test.js +0 -181
  341. package/lib/protocol.test.js.map +0 -1
  342. package/lib/retry.js.map +0 -1
  343. package/lib/services/index.js.map +0 -1
  344. package/lib/traits.js.map +0 -1
  345. package/src/protocol.test.ts +0 -304
  346. /package/lib/{index.js.map → index.lazy.js.map} +0 -0
@@ -1,11 +1,14 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
2
  import * as C from "@distilled.cloud/core/category";
3
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";
4
+ import * as S from "@distilled.cloud/core/schema-lite";
5
+ import * as __L from "@distilled.cloud/core/schema-lite";
5
6
  import { UnknownStackitError } from "../errors.ts";
6
7
  import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
7
8
  import * as Retry from "../retry.ts";
8
9
  import * as T from "../traits.ts";
10
+ // Schema table, filled on first reach (see __S at the end).
11
+ const __s: any[] = [];
9
12
 
10
13
  export type { StackitOpError, StackitOpContext };
11
14
 
@@ -55,26 +58,13 @@ export class UnprocessableEntity
55
58
  ) {}
56
59
 
57
60
  export type CreateSubscriptionRequestRegionId = "eu01";
58
- export const CreateSubscriptionRequestRegionId = S.String;
59
-
60
61
  /** 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. */
61
62
  export type Labels = { [key: string]: string | null | undefined };
62
- export const Labels = /*@__PURE__*/ S.Record(
63
- S.String,
64
- S.NullOr(S.String),
65
- ) as any as S.Schema<Labels>;
66
-
67
63
  /** Configuration settings for the subscription. */
68
64
  export interface SubscriptionSettings {
69
65
  /** 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) */
70
66
  ackDeadline?: string;
71
67
  }
72
- export const SubscriptionSettings = /*@__PURE__*/ S.suspend(() =>
73
- S.Struct({
74
- ackDeadline: S.optional(S.String),
75
- }),
76
- ).annotate({ identifier: "SubscriptionSettings" }) as any as S.Schema<SubscriptionSettings>;
77
-
78
68
  export interface CreateSubscriptionRequest {
79
69
  /** The STACKIT portal project UUID the resource is located in. */
80
70
  projectId: string;
@@ -89,31 +79,8 @@ export interface CreateSubscriptionRequest {
89
79
  labels?: Labels;
90
80
  settings?: SubscriptionSettings;
91
81
  }
92
- export const CreateSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
93
- S.Struct({
94
- projectId: S.String.pipe(T.Label()),
95
- regionId: CreateSubscriptionRequestRegionId.pipe(T.Label()),
96
- topicId: S.String.pipe(T.Label()),
97
- description: S.optional(S.String),
98
- displayName: S.String,
99
- labels: S.optional(Labels),
100
- settings: S.optional(SubscriptionSettings),
101
- }).pipe(
102
- T.Http({
103
- method: "POST",
104
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions",
105
- code: 200,
106
- baseUrl: "https://pubsub.api.stackit.cloud",
107
- }),
108
- ),
109
- ).annotate({
110
- identifier: "CreateSubscriptionRequest",
111
- }) as any as S.Schema<CreateSubscriptionRequest>;
112
-
113
82
  /** The current state of the resource. */
114
83
  export type SubscriptionResponseState = "reconciling" | "active" | "deleting";
115
- export const SubscriptionResponseState = S.String;
116
-
117
84
  export interface SubscriptionResponse {
118
85
  /** The point in time the resource was created. */
119
86
  createTime: string;
@@ -130,28 +97,9 @@ export interface SubscriptionResponse {
130
97
  /** The id of the topic to which the subscription belongs. */
131
98
  topicId: string;
132
99
  }
133
- export const SubscriptionResponse = /*@__PURE__*/ S.suspend(() =>
134
- S.Struct({
135
- createTime: S.String,
136
- description: S.optional(S.String),
137
- displayName: S.String,
138
- id: S.String,
139
- labels: S.optional(Labels),
140
- settings: S.optional(SubscriptionSettings),
141
- state: SubscriptionResponseState,
142
- topicId: S.String,
143
- }),
144
- ).annotate({ identifier: "SubscriptionResponse" }) as any as S.Schema<SubscriptionResponse>;
145
-
146
100
  export type CreateTopicRequestRegionId = "eu01";
147
- export const CreateTopicRequestRegionId = S.String;
148
-
149
101
  /** Whitelist of IPs in CIDR notation that can access the topic and its underlying subscriptions. */
150
102
  export type TopicSettingsAclList = Array<string>;
151
- export const TopicSettingsAclList = /*@__PURE__*/ S.Array(
152
- S.String,
153
- ) as any as S.Schema<TopicSettingsAclList>;
154
-
155
103
  /** Configuration settings for the topic. */
156
104
  export interface TopicSettings {
157
105
  /** Whitelist of IPs in CIDR notation that can access the topic and its underlying subscriptions. */
@@ -163,15 +111,6 @@ export interface TopicSettings {
163
111
  /** Enables or disables sending of service logs for the topic. */
164
112
  serviceLogs?: boolean;
165
113
  }
166
- export const TopicSettings = /*@__PURE__*/ S.suspend(() =>
167
- S.Struct({
168
- acl: S.optional(TopicSettingsAclList),
169
- metrics: S.optional(S.Boolean),
170
- retention: S.optional(S.String),
171
- serviceLogs: S.optional(S.Boolean),
172
- }),
173
- ).annotate({ identifier: "TopicSettings" }) as any as S.Schema<TopicSettings>;
174
-
175
114
  export interface CreateTopicRequest {
176
115
  /** The STACKIT portal project UUID the resource is located in. */
177
116
  projectId: string;
@@ -184,28 +123,8 @@ export interface CreateTopicRequest {
184
123
  labels?: Labels;
185
124
  settings?: TopicSettings;
186
125
  }
187
- export const CreateTopicRequest = /*@__PURE__*/ S.suspend(() =>
188
- S.Struct({
189
- projectId: S.String.pipe(T.Label()),
190
- regionId: CreateTopicRequestRegionId.pipe(T.Label()),
191
- description: S.optional(S.String),
192
- displayName: S.String,
193
- labels: S.optional(Labels),
194
- settings: S.optional(TopicSettings),
195
- }).pipe(
196
- T.Http({
197
- method: "POST",
198
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics",
199
- code: 200,
200
- baseUrl: "https://pubsub.api.stackit.cloud",
201
- }),
202
- ),
203
- ).annotate({ identifier: "CreateTopicRequest" }) as any as S.Schema<CreateTopicRequest>;
204
-
205
126
  /** The current state of the resource. */
206
127
  export type TopicResponseState = "reconciling" | "active" | "deleting";
207
- export const TopicResponseState = S.String;
208
-
209
128
  export interface TopicResponse {
210
129
  /** The point in time the resource was created. */
211
130
  createTime: string;
@@ -222,22 +141,7 @@ export interface TopicResponse {
222
141
  /** The URI for reaching the resource. */
223
142
  uri?: string;
224
143
  }
225
- export const TopicResponse = /*@__PURE__*/ S.suspend(() =>
226
- S.Struct({
227
- createTime: S.String,
228
- description: S.optional(S.String),
229
- displayName: S.String,
230
- id: S.String,
231
- labels: S.optional(Labels),
232
- settings: S.optional(TopicSettings),
233
- state: TopicResponseState,
234
- uri: S.optional(S.String),
235
- }),
236
- ).annotate({ identifier: "TopicResponse" }) as any as S.Schema<TopicResponse>;
237
-
238
144
  export type DeleteSubscriptionRequestRegionId = "eu01";
239
- export const DeleteSubscriptionRequestRegionId = S.String;
240
-
241
145
  export interface DeleteSubscriptionRequest {
242
146
  /** The STACKIT portal project UUID the resource is located in. */
243
147
  projectId: string;
@@ -250,33 +154,8 @@ export interface DeleteSubscriptionRequest {
250
154
  /** 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. */
251
155
  force?: boolean;
252
156
  }
253
- export const DeleteSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
254
- S.Struct({
255
- projectId: S.String.pipe(T.Label()),
256
- regionId: DeleteSubscriptionRequestRegionId.pipe(T.Label()),
257
- topicId: S.String.pipe(T.Label()),
258
- subscriptionId: S.String.pipe(T.Label()),
259
- force: S.optional(S.Boolean.pipe(T.Query())),
260
- }).pipe(
261
- T.Http({
262
- method: "DELETE",
263
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}",
264
- code: 200,
265
- baseUrl: "https://pubsub.api.stackit.cloud",
266
- }),
267
- ),
268
- ).annotate({
269
- identifier: "DeleteSubscriptionRequest",
270
- }) as any as S.Schema<DeleteSubscriptionRequest>;
271
-
272
157
  export interface DeleteSubscriptionResponse {}
273
- export const DeleteSubscriptionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
274
- identifier: "DeleteSubscriptionResponse",
275
- }) as any as S.Schema<DeleteSubscriptionResponse>;
276
-
277
158
  export type DeleteTopicRequestRegionId = "eu01";
278
- export const DeleteTopicRequestRegionId = S.String;
279
-
280
159
  export interface DeleteTopicRequest {
281
160
  /** The STACKIT portal project UUID the resource is located in. */
282
161
  projectId: string;
@@ -287,30 +166,8 @@ export interface DeleteTopicRequest {
287
166
  /** 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. */
288
167
  force?: boolean;
289
168
  }
290
- export const DeleteTopicRequest = /*@__PURE__*/ S.suspend(() =>
291
- S.Struct({
292
- projectId: S.String.pipe(T.Label()),
293
- regionId: DeleteTopicRequestRegionId.pipe(T.Label()),
294
- topicId: S.String.pipe(T.Label()),
295
- force: S.optional(S.Boolean.pipe(T.Query())),
296
- }).pipe(
297
- T.Http({
298
- method: "DELETE",
299
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}",
300
- code: 200,
301
- baseUrl: "https://pubsub.api.stackit.cloud",
302
- }),
303
- ),
304
- ).annotate({ identifier: "DeleteTopicRequest" }) as any as S.Schema<DeleteTopicRequest>;
305
-
306
169
  export interface DeleteTopicResponse {}
307
- export const DeleteTopicResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
308
- identifier: "DeleteTopicResponse",
309
- }) as any as S.Schema<DeleteTopicResponse>;
310
-
311
170
  export type GetSubscriptionRequestRegionId = "eu01";
312
- export const GetSubscriptionRequestRegionId = S.String;
313
-
314
171
  export interface GetSubscriptionRequest {
315
172
  /** The STACKIT portal project UUID the resource is located in. */
316
173
  projectId: string;
@@ -321,25 +178,7 @@ export interface GetSubscriptionRequest {
321
178
  /** The subscription UUID. */
322
179
  subscriptionId: string;
323
180
  }
324
- export const GetSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
325
- S.Struct({
326
- projectId: S.String.pipe(T.Label()),
327
- regionId: GetSubscriptionRequestRegionId.pipe(T.Label()),
328
- topicId: S.String.pipe(T.Label()),
329
- subscriptionId: S.String.pipe(T.Label()),
330
- }).pipe(
331
- T.Http({
332
- method: "GET",
333
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}",
334
- code: 200,
335
- baseUrl: "https://pubsub.api.stackit.cloud",
336
- }),
337
- ),
338
- ).annotate({ identifier: "GetSubscriptionRequest" }) as any as S.Schema<GetSubscriptionRequest>;
339
-
340
181
  export type GetTopicRequestRegionId = "eu01";
341
- export const GetTopicRequestRegionId = S.String;
342
-
343
182
  export interface GetTopicRequest {
344
183
  /** The STACKIT portal project UUID the resource is located in. */
345
184
  projectId: string;
@@ -348,24 +187,7 @@ export interface GetTopicRequest {
348
187
  /** The topic UUID. */
349
188
  topicId: string;
350
189
  }
351
- export const GetTopicRequest = /*@__PURE__*/ S.suspend(() =>
352
- S.Struct({
353
- projectId: S.String.pipe(T.Label()),
354
- regionId: GetTopicRequestRegionId.pipe(T.Label()),
355
- topicId: S.String.pipe(T.Label()),
356
- }).pipe(
357
- T.Http({
358
- method: "GET",
359
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}",
360
- code: 200,
361
- baseUrl: "https://pubsub.api.stackit.cloud",
362
- }),
363
- ),
364
- ).annotate({ identifier: "GetTopicRequest" }) as any as S.Schema<GetTopicRequest>;
365
-
366
190
  export type GrantSubscriptionSubscriberAccessRequestRegionId = "eu01";
367
- export const GrantSubscriptionSubscriberAccessRequestRegionId = S.String;
368
-
369
191
  export interface GrantSubscriptionSubscriberAccessRequest {
370
192
  /** The STACKIT portal project UUID the resource is located in. */
371
193
  projectId: string;
@@ -378,35 +200,8 @@ export interface GrantSubscriptionSubscriberAccessRequest {
378
200
  /** A single RFC 5322 compliant email address. */
379
201
  emailAddress: string;
380
202
  }
381
- export const GrantSubscriptionSubscriberAccessRequest = /*@__PURE__*/ S.suspend(() =>
382
- S.Struct({
383
- projectId: S.String.pipe(T.Label()),
384
- regionId: GrantSubscriptionSubscriberAccessRequestRegionId.pipe(T.Label()),
385
- topicId: S.String.pipe(T.Label()),
386
- subscriptionId: S.String.pipe(T.Label()),
387
- emailAddress: S.String,
388
- }).pipe(
389
- T.Http({
390
- method: "PATCH",
391
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}/subscribers",
392
- code: 200,
393
- baseUrl: "https://pubsub.api.stackit.cloud",
394
- }),
395
- ),
396
- ).annotate({
397
- identifier: "GrantSubscriptionSubscriberAccessRequest",
398
- }) as any as S.Schema<GrantSubscriptionSubscriberAccessRequest>;
399
-
400
203
  export interface GrantSubscriptionSubscriberAccessResponse {}
401
- export const GrantSubscriptionSubscriberAccessResponse = /*@__PURE__*/ S.suspend(() =>
402
- S.Struct({}),
403
- ).annotate({
404
- identifier: "GrantSubscriptionSubscriberAccessResponse",
405
- }) as any as S.Schema<GrantSubscriptionSubscriberAccessResponse>;
406
-
407
204
  export type GrantTopicPublisherAccessRequestRegionId = "eu01";
408
- export const GrantTopicPublisherAccessRequestRegionId = S.String;
409
-
410
205
  export interface GrantTopicPublisherAccessRequest {
411
206
  /** The STACKIT portal project UUID the resource is located in. */
412
207
  projectId: string;
@@ -417,34 +212,8 @@ export interface GrantTopicPublisherAccessRequest {
417
212
  /** A single RFC 5322 compliant email address. */
418
213
  emailAddress: string;
419
214
  }
420
- export const GrantTopicPublisherAccessRequest = /*@__PURE__*/ S.suspend(() =>
421
- S.Struct({
422
- projectId: S.String.pipe(T.Label()),
423
- regionId: GrantTopicPublisherAccessRequestRegionId.pipe(T.Label()),
424
- topicId: S.String.pipe(T.Label()),
425
- emailAddress: S.String,
426
- }).pipe(
427
- T.Http({
428
- method: "PATCH",
429
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/publishers",
430
- code: 200,
431
- baseUrl: "https://pubsub.api.stackit.cloud",
432
- }),
433
- ),
434
- ).annotate({
435
- identifier: "GrantTopicPublisherAccessRequest",
436
- }) as any as S.Schema<GrantTopicPublisherAccessRequest>;
437
-
438
215
  export interface GrantTopicPublisherAccessResponse {}
439
- export const GrantTopicPublisherAccessResponse = /*@__PURE__*/ S.suspend(() =>
440
- S.Struct({}),
441
- ).annotate({
442
- identifier: "GrantTopicPublisherAccessResponse",
443
- }) as any as S.Schema<GrantTopicPublisherAccessResponse>;
444
-
445
216
  export type ListSubscriptionsRequestRegionId = "eu01";
446
- export const ListSubscriptionsRequestRegionId = S.String;
447
-
448
217
  export interface ListSubscriptionsRequest {
449
218
  /** The STACKIT portal project UUID the resource is located in. */
450
219
  projectId: string;
@@ -459,46 +228,13 @@ export interface ListSubscriptionsRequest {
459
228
  /** Supply a query string to filter the results. */
460
229
  query?: string;
461
230
  }
462
- export const ListSubscriptionsRequest = /*@__PURE__*/ S.suspend(() =>
463
- S.Struct({
464
- projectId: S.String.pipe(T.Label()),
465
- regionId: ListSubscriptionsRequestRegionId.pipe(T.Label()),
466
- topicId: S.String.pipe(T.Label()),
467
- pageToken: S.optional(S.String.pipe(T.Query())),
468
- pageSize: S.optional(S.Number.pipe(T.Query())),
469
- query: S.optional(S.String.pipe(T.Query())),
470
- }).pipe(
471
- T.Http({
472
- method: "GET",
473
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions",
474
- code: 200,
475
- baseUrl: "https://pubsub.api.stackit.cloud",
476
- }),
477
- ),
478
- ).annotate({ identifier: "ListSubscriptionsRequest" }) as any as S.Schema<ListSubscriptionsRequest>;
479
-
480
231
  export type ListSubscriptionsResponseSubscriptionsList = Array<SubscriptionResponse>;
481
- export const ListSubscriptionsResponseSubscriptionsList = /*@__PURE__*/ S.Array(
482
- SubscriptionResponse,
483
- ) as any as S.Schema<ListSubscriptionsResponseSubscriptionsList>;
484
-
485
232
  export interface ListSubscriptionsResponse {
486
233
  /** A token to retrieve the next page of results. */
487
234
  nextPageToken?: string;
488
235
  subscriptions: ListSubscriptionsResponseSubscriptionsList;
489
236
  }
490
- export const ListSubscriptionsResponse = /*@__PURE__*/ S.suspend(() =>
491
- S.Struct({
492
- nextPageToken: S.optional(S.String),
493
- subscriptions: ListSubscriptionsResponseSubscriptionsList,
494
- }),
495
- ).annotate({
496
- identifier: "ListSubscriptionsResponse",
497
- }) as any as S.Schema<ListSubscriptionsResponse>;
498
-
499
237
  export type ListSubscriptionSubscribersRequestRegionId = "eu01";
500
- export const ListSubscriptionSubscribersRequestRegionId = S.String;
501
-
502
238
  export interface ListSubscriptionSubscribersRequest {
503
239
  /** The STACKIT portal project UUID the resource is located in. */
504
240
  projectId: string;
@@ -509,43 +245,11 @@ export interface ListSubscriptionSubscribersRequest {
509
245
  /** The subscription UUID. */
510
246
  subscriptionId: string;
511
247
  }
512
- export const ListSubscriptionSubscribersRequest = /*@__PURE__*/ S.suspend(() =>
513
- S.Struct({
514
- projectId: S.String.pipe(T.Label()),
515
- regionId: ListSubscriptionSubscribersRequestRegionId.pipe(T.Label()),
516
- topicId: S.String.pipe(T.Label()),
517
- subscriptionId: S.String.pipe(T.Label()),
518
- }).pipe(
519
- T.Http({
520
- method: "GET",
521
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}/subscribers",
522
- code: 200,
523
- baseUrl: "https://pubsub.api.stackit.cloud",
524
- }),
525
- ),
526
- ).annotate({
527
- identifier: "ListSubscriptionSubscribersRequest",
528
- }) as any as S.Schema<ListSubscriptionSubscribersRequest>;
529
-
530
248
  export type ListEmailAddressesResponseEmailAddressesList = Array<string>;
531
- export const ListEmailAddressesResponseEmailAddressesList = /*@__PURE__*/ S.Array(
532
- S.String,
533
- ) as any as S.Schema<ListEmailAddressesResponseEmailAddressesList>;
534
-
535
249
  export interface ListEmailAddressesResponse {
536
250
  emailAddresses: ListEmailAddressesResponseEmailAddressesList;
537
251
  }
538
- export const ListEmailAddressesResponse = /*@__PURE__*/ S.suspend(() =>
539
- S.Struct({
540
- emailAddresses: ListEmailAddressesResponseEmailAddressesList,
541
- }),
542
- ).annotate({
543
- identifier: "ListEmailAddressesResponse",
544
- }) as any as S.Schema<ListEmailAddressesResponse>;
545
-
546
252
  export type ListTopicPublishersRequestRegionId = "eu01";
547
- export const ListTopicPublishersRequestRegionId = S.String;
548
-
549
253
  export interface ListTopicPublishersRequest {
550
254
  /** The STACKIT portal project UUID the resource is located in. */
551
255
  projectId: string;
@@ -554,26 +258,7 @@ export interface ListTopicPublishersRequest {
554
258
  /** The topic UUID. */
555
259
  topicId: string;
556
260
  }
557
- export const ListTopicPublishersRequest = /*@__PURE__*/ S.suspend(() =>
558
- S.Struct({
559
- projectId: S.String.pipe(T.Label()),
560
- regionId: ListTopicPublishersRequestRegionId.pipe(T.Label()),
561
- topicId: S.String.pipe(T.Label()),
562
- }).pipe(
563
- T.Http({
564
- method: "GET",
565
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/publishers",
566
- code: 200,
567
- baseUrl: "https://pubsub.api.stackit.cloud",
568
- }),
569
- ),
570
- ).annotate({
571
- identifier: "ListTopicPublishersRequest",
572
- }) as any as S.Schema<ListTopicPublishersRequest>;
573
-
574
261
  export type ListTopicsRequestRegionId = "eu01";
575
- export const ListTopicsRequestRegionId = S.String;
576
-
577
262
  export interface ListTopicsRequest {
578
263
  /** The STACKIT portal project UUID the resource is located in. */
579
264
  projectId: string;
@@ -586,43 +271,13 @@ export interface ListTopicsRequest {
586
271
  /** Supply a query string to filter the results. */
587
272
  query?: string;
588
273
  }
589
- export const ListTopicsRequest = /*@__PURE__*/ S.suspend(() =>
590
- S.Struct({
591
- projectId: S.String.pipe(T.Label()),
592
- regionId: ListTopicsRequestRegionId.pipe(T.Label()),
593
- pageToken: S.optional(S.String.pipe(T.Query())),
594
- pageSize: S.optional(S.Number.pipe(T.Query())),
595
- query: S.optional(S.String.pipe(T.Query())),
596
- }).pipe(
597
- T.Http({
598
- method: "GET",
599
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics",
600
- code: 200,
601
- baseUrl: "https://pubsub.api.stackit.cloud",
602
- }),
603
- ),
604
- ).annotate({ identifier: "ListTopicsRequest" }) as any as S.Schema<ListTopicsRequest>;
605
-
606
274
  export type ListTopicsResponseTopicsList = Array<TopicResponse>;
607
- export const ListTopicsResponseTopicsList = /*@__PURE__*/ S.Array(
608
- TopicResponse,
609
- ) as any as S.Schema<ListTopicsResponseTopicsList>;
610
-
611
275
  export interface ListTopicsResponse {
612
276
  /** A token to retrieve the next page of results. */
613
277
  nextPageToken?: string;
614
278
  topics: ListTopicsResponseTopicsList;
615
279
  }
616
- export const ListTopicsResponse = /*@__PURE__*/ S.suspend(() =>
617
- S.Struct({
618
- nextPageToken: S.optional(S.String),
619
- topics: ListTopicsResponseTopicsList,
620
- }),
621
- ).annotate({ identifier: "ListTopicsResponse" }) as any as S.Schema<ListTopicsResponse>;
622
-
623
280
  export type RevokeSubscriptionSubscriberAccessRequestRegionId = "eu01";
624
- export const RevokeSubscriptionSubscriberAccessRequestRegionId = S.String;
625
-
626
281
  export interface RevokeSubscriptionSubscriberAccessRequest {
627
282
  /** The STACKIT portal project UUID the resource is located in. */
628
283
  projectId: string;
@@ -633,34 +288,8 @@ export interface RevokeSubscriptionSubscriberAccessRequest {
633
288
  /** The subscription UUID. */
634
289
  subscriptionId: string;
635
290
  }
636
- export const RevokeSubscriptionSubscriberAccessRequest = /*@__PURE__*/ S.suspend(() =>
637
- S.Struct({
638
- projectId: S.String.pipe(T.Label()),
639
- regionId: RevokeSubscriptionSubscriberAccessRequestRegionId.pipe(T.Label()),
640
- topicId: S.String.pipe(T.Label()),
641
- subscriptionId: S.String.pipe(T.Label()),
642
- }).pipe(
643
- T.Http({
644
- method: "DELETE",
645
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}/subscribers",
646
- code: 200,
647
- baseUrl: "https://pubsub.api.stackit.cloud",
648
- }),
649
- ),
650
- ).annotate({
651
- identifier: "RevokeSubscriptionSubscriberAccessRequest",
652
- }) as any as S.Schema<RevokeSubscriptionSubscriberAccessRequest>;
653
-
654
291
  export interface RevokeSubscriptionSubscriberAccessResponse {}
655
- export const RevokeSubscriptionSubscriberAccessResponse = /*@__PURE__*/ S.suspend(() =>
656
- S.Struct({}),
657
- ).annotate({
658
- identifier: "RevokeSubscriptionSubscriberAccessResponse",
659
- }) as any as S.Schema<RevokeSubscriptionSubscriberAccessResponse>;
660
-
661
292
  export type RevokeTopicPublisherAccessRequestRegionId = "eu01";
662
- export const RevokeTopicPublisherAccessRequestRegionId = S.String;
663
-
664
293
  export interface RevokeTopicPublisherAccessRequest {
665
294
  /** The STACKIT portal project UUID the resource is located in. */
666
295
  projectId: string;
@@ -669,39 +298,10 @@ export interface RevokeTopicPublisherAccessRequest {
669
298
  /** The topic UUID. */
670
299
  topicId: string;
671
300
  }
672
- export const RevokeTopicPublisherAccessRequest = /*@__PURE__*/ S.suspend(() =>
673
- S.Struct({
674
- projectId: S.String.pipe(T.Label()),
675
- regionId: RevokeTopicPublisherAccessRequestRegionId.pipe(T.Label()),
676
- topicId: S.String.pipe(T.Label()),
677
- }).pipe(
678
- T.Http({
679
- method: "DELETE",
680
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/publishers",
681
- code: 200,
682
- baseUrl: "https://pubsub.api.stackit.cloud",
683
- }),
684
- ),
685
- ).annotate({
686
- identifier: "RevokeTopicPublisherAccessRequest",
687
- }) as any as S.Schema<RevokeTopicPublisherAccessRequest>;
688
-
689
301
  export interface RevokeTopicPublisherAccessResponse {}
690
- export const RevokeTopicPublisherAccessResponse = /*@__PURE__*/ S.suspend(() =>
691
- S.Struct({}),
692
- ).annotate({
693
- identifier: "RevokeTopicPublisherAccessResponse",
694
- }) as any as S.Schema<RevokeTopicPublisherAccessResponse>;
695
-
696
302
  export type UpdatePublisherAccessRequestRegionId = "eu01";
697
- export const UpdatePublisherAccessRequestRegionId = S.String;
698
-
699
303
  /** A list of valid subscriber email addresses. */
700
304
  export type UpdatePublisherAccessRequestEmailAddressesList = Array<string>;
701
- export const UpdatePublisherAccessRequestEmailAddressesList = /*@__PURE__*/ S.Array(
702
- S.String,
703
- ) as any as S.Schema<UpdatePublisherAccessRequestEmailAddressesList>;
704
-
705
305
  export interface UpdatePublisherAccessRequest {
706
306
  /** The STACKIT portal project UUID the resource is located in. */
707
307
  projectId: string;
@@ -712,32 +312,8 @@ export interface UpdatePublisherAccessRequest {
712
312
  /** A list of valid subscriber email addresses. */
713
313
  emailAddresses: UpdatePublisherAccessRequestEmailAddressesList;
714
314
  }
715
- export const UpdatePublisherAccessRequest = /*@__PURE__*/ S.suspend(() =>
716
- S.Struct({
717
- projectId: S.String.pipe(T.Label()),
718
- regionId: UpdatePublisherAccessRequestRegionId.pipe(T.Label()),
719
- topicId: S.String.pipe(T.Label()),
720
- emailAddresses: UpdatePublisherAccessRequestEmailAddressesList,
721
- }).pipe(
722
- T.Http({
723
- method: "PUT",
724
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/publishers",
725
- code: 200,
726
- baseUrl: "https://pubsub.api.stackit.cloud",
727
- }),
728
- ),
729
- ).annotate({
730
- identifier: "UpdatePublisherAccessRequest",
731
- }) as any as S.Schema<UpdatePublisherAccessRequest>;
732
-
733
315
  export interface UpdatePublisherAccessResponse {}
734
- export const UpdatePublisherAccessResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
735
- identifier: "UpdatePublisherAccessResponse",
736
- }) as any as S.Schema<UpdatePublisherAccessResponse>;
737
-
738
316
  export type UpdateSubscriptionRequestRegionId = "eu01";
739
- export const UpdateSubscriptionRequestRegionId = S.String;
740
-
741
317
  export interface UpdateSubscriptionRequest {
742
318
  /** The STACKIT portal project UUID the resource is located in. */
743
319
  projectId: string;
@@ -754,42 +330,10 @@ export interface UpdateSubscriptionRequest {
754
330
  labels?: Labels;
755
331
  settings?: SubscriptionSettings;
756
332
  }
757
- export const UpdateSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
758
- S.Struct({
759
- projectId: S.String.pipe(T.Label()),
760
- regionId: UpdateSubscriptionRequestRegionId.pipe(T.Label()),
761
- topicId: S.String.pipe(T.Label()),
762
- subscriptionId: S.String.pipe(T.Label()),
763
- description: S.optional(S.String),
764
- displayName: S.optional(S.String),
765
- labels: S.optional(Labels),
766
- settings: S.optional(SubscriptionSettings),
767
- }).pipe(
768
- T.Http({
769
- method: "PATCH",
770
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}",
771
- code: 200,
772
- baseUrl: "https://pubsub.api.stackit.cloud",
773
- }),
774
- ),
775
- ).annotate({
776
- identifier: "UpdateSubscriptionRequest",
777
- }) as any as S.Schema<UpdateSubscriptionRequest>;
778
-
779
333
  export interface UpdateSubscriptionResponse {}
780
- export const UpdateSubscriptionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
781
- identifier: "UpdateSubscriptionResponse",
782
- }) as any as S.Schema<UpdateSubscriptionResponse>;
783
-
784
334
  export type UpdateSubscriptionSubscriberAccessRequestRegionId = "eu01";
785
- export const UpdateSubscriptionSubscriberAccessRequestRegionId = S.String;
786
-
787
335
  /** A list of valid subscriber email addresses. */
788
336
  export type UpdateSubscriptionSubscriberAccessRequestEmailAddressesList = Array<string>;
789
- export const UpdateSubscriptionSubscriberAccessRequestEmailAddressesList = /*@__PURE__*/ S.Array(
790
- S.String,
791
- ) as any as S.Schema<UpdateSubscriptionSubscriberAccessRequestEmailAddressesList>;
792
-
793
337
  export interface UpdateSubscriptionSubscriberAccessRequest {
794
338
  /** The STACKIT portal project UUID the resource is located in. */
795
339
  projectId: string;
@@ -802,35 +346,8 @@ export interface UpdateSubscriptionSubscriberAccessRequest {
802
346
  /** A list of valid subscriber email addresses. */
803
347
  emailAddresses: UpdateSubscriptionSubscriberAccessRequestEmailAddressesList;
804
348
  }
805
- export const UpdateSubscriptionSubscriberAccessRequest = /*@__PURE__*/ S.suspend(() =>
806
- S.Struct({
807
- projectId: S.String.pipe(T.Label()),
808
- regionId: UpdateSubscriptionSubscriberAccessRequestRegionId.pipe(T.Label()),
809
- topicId: S.String.pipe(T.Label()),
810
- subscriptionId: S.String.pipe(T.Label()),
811
- emailAddresses: UpdateSubscriptionSubscriberAccessRequestEmailAddressesList,
812
- }).pipe(
813
- T.Http({
814
- method: "PUT",
815
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}/subscribers",
816
- code: 200,
817
- baseUrl: "https://pubsub.api.stackit.cloud",
818
- }),
819
- ),
820
- ).annotate({
821
- identifier: "UpdateSubscriptionSubscriberAccessRequest",
822
- }) as any as S.Schema<UpdateSubscriptionSubscriberAccessRequest>;
823
-
824
349
  export interface UpdateSubscriptionSubscriberAccessResponse {}
825
- export const UpdateSubscriptionSubscriberAccessResponse = /*@__PURE__*/ S.suspend(() =>
826
- S.Struct({}),
827
- ).annotate({
828
- identifier: "UpdateSubscriptionSubscriberAccessResponse",
829
- }) as any as S.Schema<UpdateSubscriptionSubscriberAccessResponse>;
830
-
831
350
  export type UpdateTopicRequestRegionId = "eu01";
832
- export const UpdateTopicRequestRegionId = S.String;
833
-
834
351
  export interface UpdateTopicRequest {
835
352
  /** The STACKIT portal project UUID the resource is located in. */
836
353
  projectId: string;
@@ -845,30 +362,7 @@ export interface UpdateTopicRequest {
845
362
  labels?: Labels;
846
363
  settings?: TopicSettings;
847
364
  }
848
- export const UpdateTopicRequest = /*@__PURE__*/ S.suspend(() =>
849
- S.Struct({
850
- projectId: S.String.pipe(T.Label()),
851
- regionId: UpdateTopicRequestRegionId.pipe(T.Label()),
852
- topicId: S.String.pipe(T.Label()),
853
- description: S.optional(S.String),
854
- displayName: S.optional(S.String),
855
- labels: S.optional(Labels),
856
- settings: S.optional(TopicSettings),
857
- }).pipe(
858
- T.Http({
859
- method: "PATCH",
860
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}",
861
- code: 200,
862
- baseUrl: "https://pubsub.api.stackit.cloud",
863
- }),
864
- ),
865
- ).annotate({ identifier: "UpdateTopicRequest" }) as any as S.Schema<UpdateTopicRequest>;
866
-
867
365
  export interface UpdateTopicResponse {}
868
- export const UpdateTopicResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
869
- identifier: "UpdateTopicResponse",
870
- }) as any as S.Schema<UpdateTopicResponse>;
871
-
872
366
  export type CreateSubscriptionError =
873
367
  | BadRequest
874
368
  | Forbidden
@@ -883,8 +377,8 @@ export const createSubscription: API.OperationMethod<
883
377
  CreateSubscriptionError,
884
378
  StackitOpContext
885
379
  > = /*@__PURE__*/ API.make(() => ({
886
- input: CreateSubscriptionRequest,
887
- output: SubscriptionResponse,
380
+ input: __S(56, __c14, 0) as any as S.Schema<CreateSubscriptionRequest>,
381
+ output: __S(64, __c16, 0) as any as S.Schema<SubscriptionResponse>,
888
382
  errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity, UnknownStackitError],
889
383
  protocol: StackitProtocol,
890
384
  retry: Retry.Retry,
@@ -898,8 +392,8 @@ export const createTopic: API.OperationMethod<
898
392
  CreateTopicError,
899
393
  StackitOpContext
900
394
  > = /*@__PURE__*/ API.make(() => ({
901
- input: CreateTopicRequest,
902
- output: TopicResponse,
395
+ input: __S(72, __c18, 0) as any as S.Schema<CreateTopicRequest>,
396
+ output: __S(80, __c20, 0) as any as S.Schema<TopicResponse>,
903
397
  errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
904
398
  protocol: StackitProtocol,
905
399
  retry: Retry.Retry,
@@ -913,8 +407,8 @@ export const deleteSubscription: API.OperationMethod<
913
407
  DeleteSubscriptionError,
914
408
  StackitOpContext
915
409
  > = /*@__PURE__*/ API.make(() => ({
916
- input: DeleteSubscriptionRequest,
917
- output: DeleteSubscriptionResponse,
410
+ input: __S(88, __c22, 0) as any as S.Schema<DeleteSubscriptionRequest>,
411
+ output: __S(92, __c23, 0) as any as S.Schema<DeleteSubscriptionResponse>,
918
412
  errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
919
413
  protocol: StackitProtocol,
920
414
  retry: Retry.Retry,
@@ -933,8 +427,8 @@ export const deleteTopic: API.OperationMethod<
933
427
  DeleteTopicError,
934
428
  StackitOpContext
935
429
  > = /*@__PURE__*/ API.make(() => ({
936
- input: DeleteTopicRequest,
937
- output: DeleteTopicResponse,
430
+ input: __S(96, __c24, 0) as any as S.Schema<DeleteTopicRequest>,
431
+ output: __S(92, __c23, 0) as any as S.Schema<DeleteTopicResponse>,
938
432
  errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
939
433
  protocol: StackitProtocol,
940
434
  retry: Retry.Retry,
@@ -948,8 +442,8 @@ export const getSubscription: API.OperationMethod<
948
442
  GetSubscriptionError,
949
443
  StackitOpContext
950
444
  > = /*@__PURE__*/ API.make(() => ({
951
- input: GetSubscriptionRequest,
952
- output: SubscriptionResponse,
445
+ input: __S(100, __c25, 0) as any as S.Schema<GetSubscriptionRequest>,
446
+ output: __S(64, __c16, 0) as any as S.Schema<SubscriptionResponse>,
953
447
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
954
448
  protocol: StackitProtocol,
955
449
  retry: Retry.Retry,
@@ -963,8 +457,8 @@ export const getTopic: API.OperationMethod<
963
457
  GetTopicError,
964
458
  StackitOpContext
965
459
  > = /*@__PURE__*/ API.make(() => ({
966
- input: GetTopicRequest,
967
- output: TopicResponse,
460
+ input: __S(0, __c0, 0) as any as S.Schema<GetTopicRequest>,
461
+ output: __S(80, __c20, 0) as any as S.Schema<TopicResponse>,
968
462
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
969
463
  protocol: StackitProtocol,
970
464
  retry: Retry.Retry,
@@ -983,8 +477,8 @@ export const grantSubscriptionSubscriberAccess: API.OperationMethod<
983
477
  GrantSubscriptionSubscriberAccessError,
984
478
  StackitOpContext
985
479
  > = /*@__PURE__*/ API.make(() => ({
986
- input: GrantSubscriptionSubscriberAccessRequest,
987
- output: GrantSubscriptionSubscriberAccessResponse,
480
+ input: __S(4, __c1, 0) as any as S.Schema<GrantSubscriptionSubscriberAccessRequest>,
481
+ output: __S(92, __c23, 0) as any as S.Schema<GrantSubscriptionSubscriberAccessResponse>,
988
482
  errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
989
483
  protocol: StackitProtocol,
990
484
  retry: Retry.Retry,
@@ -1003,8 +497,8 @@ export const grantTopicPublisherAccess: API.OperationMethod<
1003
497
  GrantTopicPublisherAccessError,
1004
498
  StackitOpContext
1005
499
  > = /*@__PURE__*/ API.make(() => ({
1006
- input: GrantTopicPublisherAccessRequest,
1007
- output: GrantTopicPublisherAccessResponse,
500
+ input: __S(8, __c2, 0) as any as S.Schema<GrantTopicPublisherAccessRequest>,
501
+ output: __S(92, __c23, 0) as any as S.Schema<GrantTopicPublisherAccessResponse>,
1008
502
  errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
1009
503
  protocol: StackitProtocol,
1010
504
  retry: Retry.Retry,
@@ -1018,8 +512,8 @@ export const listSubscriptions: API.OperationMethod<
1018
512
  ListSubscriptionsError,
1019
513
  StackitOpContext
1020
514
  > = /*@__PURE__*/ API.make(() => ({
1021
- input: ListSubscriptionsRequest,
1022
- output: ListSubscriptionsResponse,
515
+ input: __S(12, __c3, 0) as any as S.Schema<ListSubscriptionsRequest>,
516
+ output: __S(14, __c3, 2) as any as S.Schema<ListSubscriptionsResponse>,
1023
517
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1024
518
  protocol: StackitProtocol,
1025
519
  retry: Retry.Retry,
@@ -1033,8 +527,8 @@ export const listSubscriptionSubscribers: API.OperationMethod<
1033
527
  ListSubscriptionSubscribersError,
1034
528
  StackitOpContext
1035
529
  > = /*@__PURE__*/ API.make(() => ({
1036
- input: ListSubscriptionSubscribersRequest,
1037
- output: ListEmailAddressesResponse,
530
+ input: __S(16, __c4, 0) as any as S.Schema<ListSubscriptionSubscribersRequest>,
531
+ output: __S(20, __c5, 0) as any as S.Schema<ListEmailAddressesResponse>,
1038
532
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1039
533
  protocol: StackitProtocol,
1040
534
  retry: Retry.Retry,
@@ -1048,8 +542,8 @@ export const listTopicPublishers: API.OperationMethod<
1048
542
  ListTopicPublishersError,
1049
543
  StackitOpContext
1050
544
  > = /*@__PURE__*/ API.make(() => ({
1051
- input: ListTopicPublishersRequest,
1052
- output: ListEmailAddressesResponse,
545
+ input: __S(24, __c6, 0) as any as S.Schema<ListTopicPublishersRequest>,
546
+ output: __S(20, __c5, 0) as any as S.Schema<ListEmailAddressesResponse>,
1053
547
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1054
548
  protocol: StackitProtocol,
1055
549
  retry: Retry.Retry,
@@ -1063,8 +557,8 @@ export const listTopics: API.OperationMethod<
1063
557
  ListTopicsError,
1064
558
  StackitOpContext
1065
559
  > = /*@__PURE__*/ API.make(() => ({
1066
- input: ListTopicsRequest,
1067
- output: ListTopicsResponse,
560
+ input: __S(28, __c7, 0) as any as S.Schema<ListTopicsRequest>,
561
+ output: __S(30, __c7, 2) as any as S.Schema<ListTopicsResponse>,
1068
562
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1069
563
  protocol: StackitProtocol,
1070
564
  retry: Retry.Retry,
@@ -1083,8 +577,8 @@ export const revokeSubscriptionSubscriberAccess: API.OperationMethod<
1083
577
  RevokeSubscriptionSubscriberAccessError,
1084
578
  StackitOpContext
1085
579
  > = /*@__PURE__*/ API.make(() => ({
1086
- input: RevokeSubscriptionSubscriberAccessRequest,
1087
- output: RevokeSubscriptionSubscriberAccessResponse,
580
+ input: __S(32, __c8, 0) as any as S.Schema<RevokeSubscriptionSubscriberAccessRequest>,
581
+ output: __S(92, __c23, 0) as any as S.Schema<RevokeSubscriptionSubscriberAccessResponse>,
1088
582
  errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
1089
583
  protocol: StackitProtocol,
1090
584
  retry: Retry.Retry,
@@ -1103,8 +597,8 @@ export const revokeTopicPublisherAccess: API.OperationMethod<
1103
597
  RevokeTopicPublisherAccessError,
1104
598
  StackitOpContext
1105
599
  > = /*@__PURE__*/ API.make(() => ({
1106
- input: RevokeTopicPublisherAccessRequest,
1107
- output: RevokeTopicPublisherAccessResponse,
600
+ input: __S(36, __c9, 0) as any as S.Schema<RevokeTopicPublisherAccessRequest>,
601
+ output: __S(92, __c23, 0) as any as S.Schema<RevokeTopicPublisherAccessResponse>,
1108
602
  errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
1109
603
  protocol: StackitProtocol,
1110
604
  retry: Retry.Retry,
@@ -1123,8 +617,8 @@ export const updatePublisherAccess: API.OperationMethod<
1123
617
  UpdatePublisherAccessError,
1124
618
  StackitOpContext
1125
619
  > = /*@__PURE__*/ API.make(() => ({
1126
- input: UpdatePublisherAccessRequest,
1127
- output: UpdatePublisherAccessResponse,
620
+ input: __S(40, __c10, 0) as any as S.Schema<UpdatePublisherAccessRequest>,
621
+ output: __S(92, __c23, 0) as any as S.Schema<UpdatePublisherAccessResponse>,
1128
622
  errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
1129
623
  protocol: StackitProtocol,
1130
624
  retry: Retry.Retry,
@@ -1144,8 +638,8 @@ export const updateSubscription: API.OperationMethod<
1144
638
  UpdateSubscriptionError,
1145
639
  StackitOpContext
1146
640
  > = /*@__PURE__*/ API.make(() => ({
1147
- input: UpdateSubscriptionRequest,
1148
- output: UpdateSubscriptionResponse,
641
+ input: __S(44, __c11, 0) as any as S.Schema<UpdateSubscriptionRequest>,
642
+ output: __S(92, __c23, 0) as any as S.Schema<UpdateSubscriptionResponse>,
1149
643
  errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity, UnknownStackitError],
1150
644
  protocol: StackitProtocol,
1151
645
  retry: Retry.Retry,
@@ -1164,8 +658,8 @@ export const updateSubscriptionSubscriberAccess: API.OperationMethod<
1164
658
  UpdateSubscriptionSubscriberAccessError,
1165
659
  StackitOpContext
1166
660
  > = /*@__PURE__*/ API.make(() => ({
1167
- input: UpdateSubscriptionSubscriberAccessRequest,
1168
- output: UpdateSubscriptionSubscriberAccessResponse,
661
+ input: __S(48, __c12, 0) as any as S.Schema<UpdateSubscriptionSubscriberAccessRequest>,
662
+ output: __S(92, __c23, 0) as any as S.Schema<UpdateSubscriptionSubscriberAccessResponse>,
1169
663
  errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
1170
664
  protocol: StackitProtocol,
1171
665
  retry: Retry.Retry,
@@ -1185,9 +679,493 @@ export const updateTopic: API.OperationMethod<
1185
679
  UpdateTopicError,
1186
680
  StackitOpContext
1187
681
  > = /*@__PURE__*/ API.make(() => ({
1188
- input: UpdateTopicRequest,
1189
- output: UpdateTopicResponse,
682
+ input: __S(52, __c13, 0) as any as S.Schema<UpdateTopicRequest>,
683
+ output: __S(92, __c23, 0) as any as S.Schema<UpdateTopicResponse>,
1190
684
  errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity, UnknownStackitError],
1191
685
  protocol: StackitProtocol,
1192
686
  retry: Retry.Retry,
1193
687
  }));
688
+
689
+ // Schema builders: each runs one schema initializer, on that schema's first use.
690
+ function __c0(j: number): any {
691
+ switch (j) {
692
+ case 0:
693
+ return S.suspend(() =>
694
+ S.Struct({
695
+ projectId: S.String.pipe(T.Label()),
696
+ regionId: S.String.pipe(T.Label()),
697
+ topicId: S.String.pipe(T.Label()),
698
+ }).pipe(
699
+ T.Http({
700
+ method: "GET",
701
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}",
702
+ code: 200,
703
+ baseUrl: "https://pubsub.api.stackit.cloud",
704
+ }),
705
+ ),
706
+ ).annotate({ identifier: "GetTopicRequest" });
707
+ }
708
+ }
709
+ function __c1(j: number): any {
710
+ switch (j) {
711
+ case 0:
712
+ return S.suspend(() =>
713
+ S.Struct({
714
+ projectId: S.String.pipe(T.Label()),
715
+ regionId: S.String.pipe(T.Label()),
716
+ topicId: S.String.pipe(T.Label()),
717
+ subscriptionId: S.String.pipe(T.Label()),
718
+ emailAddress: S.String,
719
+ }).pipe(
720
+ T.Http({
721
+ method: "PATCH",
722
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}/subscribers",
723
+ code: 200,
724
+ baseUrl: "https://pubsub.api.stackit.cloud",
725
+ }),
726
+ ),
727
+ ).annotate({ identifier: "GrantSubscriptionSubscriberAccessRequest" });
728
+ }
729
+ }
730
+ function __c2(j: number): any {
731
+ switch (j) {
732
+ case 0:
733
+ return S.suspend(() =>
734
+ S.Struct({
735
+ projectId: S.String.pipe(T.Label()),
736
+ regionId: S.String.pipe(T.Label()),
737
+ topicId: S.String.pipe(T.Label()),
738
+ emailAddress: S.String,
739
+ }).pipe(
740
+ T.Http({
741
+ method: "PATCH",
742
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/publishers",
743
+ code: 200,
744
+ baseUrl: "https://pubsub.api.stackit.cloud",
745
+ }),
746
+ ),
747
+ ).annotate({ identifier: "GrantTopicPublisherAccessRequest" });
748
+ }
749
+ }
750
+ function __c3(j: number): any {
751
+ switch (j) {
752
+ case 0:
753
+ return S.suspend(() =>
754
+ S.Struct({
755
+ projectId: S.String.pipe(T.Label()),
756
+ regionId: S.String.pipe(T.Label()),
757
+ topicId: S.String.pipe(T.Label()),
758
+ pageToken: S.optional(S.String.pipe(T.Query())),
759
+ pageSize: S.optional(S.Number.pipe(T.Query())),
760
+ query: S.optional(S.String.pipe(T.Query())),
761
+ }).pipe(
762
+ T.Http({
763
+ method: "GET",
764
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions",
765
+ code: 200,
766
+ baseUrl: "https://pubsub.api.stackit.cloud",
767
+ }),
768
+ ),
769
+ ).annotate({ identifier: "ListSubscriptionsRequest" });
770
+ case 1:
771
+ return S.Array(__S(64, __c16, 0));
772
+ case 2:
773
+ return S.suspend(() =>
774
+ S.Struct({
775
+ nextPageToken: S.optional(S.String),
776
+ subscriptions: __S(13, __c3, 1),
777
+ }),
778
+ ).annotate({ identifier: "ListSubscriptionsResponse" });
779
+ }
780
+ }
781
+ function __c4(j: number): any {
782
+ switch (j) {
783
+ case 0:
784
+ return S.suspend(() =>
785
+ S.Struct({
786
+ projectId: S.String.pipe(T.Label()),
787
+ regionId: S.String.pipe(T.Label()),
788
+ topicId: S.String.pipe(T.Label()),
789
+ subscriptionId: S.String.pipe(T.Label()),
790
+ }).pipe(
791
+ T.Http({
792
+ method: "GET",
793
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}/subscribers",
794
+ code: 200,
795
+ baseUrl: "https://pubsub.api.stackit.cloud",
796
+ }),
797
+ ),
798
+ ).annotate({ identifier: "ListSubscriptionSubscribersRequest" });
799
+ }
800
+ }
801
+ function __c5(j: number): any {
802
+ switch (j) {
803
+ case 0:
804
+ return S.suspend(() =>
805
+ S.Struct({
806
+ emailAddresses: __S(76, __c19, 0),
807
+ }),
808
+ ).annotate({ identifier: "ListEmailAddressesResponse" });
809
+ }
810
+ }
811
+ function __c6(j: number): any {
812
+ switch (j) {
813
+ case 0:
814
+ return S.suspend(() =>
815
+ S.Struct({
816
+ projectId: S.String.pipe(T.Label()),
817
+ regionId: S.String.pipe(T.Label()),
818
+ topicId: S.String.pipe(T.Label()),
819
+ }).pipe(
820
+ T.Http({
821
+ method: "GET",
822
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/publishers",
823
+ code: 200,
824
+ baseUrl: "https://pubsub.api.stackit.cloud",
825
+ }),
826
+ ),
827
+ ).annotate({ identifier: "ListTopicPublishersRequest" });
828
+ }
829
+ }
830
+ function __c7(j: number): any {
831
+ switch (j) {
832
+ case 0:
833
+ return S.suspend(() =>
834
+ S.Struct({
835
+ projectId: S.String.pipe(T.Label()),
836
+ regionId: S.String.pipe(T.Label()),
837
+ pageToken: S.optional(S.String.pipe(T.Query())),
838
+ pageSize: S.optional(S.Number.pipe(T.Query())),
839
+ query: S.optional(S.String.pipe(T.Query())),
840
+ }).pipe(
841
+ T.Http({
842
+ method: "GET",
843
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics",
844
+ code: 200,
845
+ baseUrl: "https://pubsub.api.stackit.cloud",
846
+ }),
847
+ ),
848
+ ).annotate({ identifier: "ListTopicsRequest" });
849
+ case 1:
850
+ return S.Array(__S(80, __c20, 0));
851
+ case 2:
852
+ return S.suspend(() =>
853
+ S.Struct({
854
+ nextPageToken: S.optional(S.String),
855
+ topics: __S(29, __c7, 1),
856
+ }),
857
+ ).annotate({ identifier: "ListTopicsResponse" });
858
+ }
859
+ }
860
+ function __c8(j: number): any {
861
+ switch (j) {
862
+ case 0:
863
+ return S.suspend(() =>
864
+ S.Struct({
865
+ projectId: S.String.pipe(T.Label()),
866
+ regionId: S.String.pipe(T.Label()),
867
+ topicId: S.String.pipe(T.Label()),
868
+ subscriptionId: S.String.pipe(T.Label()),
869
+ }).pipe(
870
+ T.Http({
871
+ method: "DELETE",
872
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}/subscribers",
873
+ code: 200,
874
+ baseUrl: "https://pubsub.api.stackit.cloud",
875
+ }),
876
+ ),
877
+ ).annotate({ identifier: "RevokeSubscriptionSubscriberAccessRequest" });
878
+ }
879
+ }
880
+ function __c9(j: number): any {
881
+ switch (j) {
882
+ case 0:
883
+ return S.suspend(() =>
884
+ S.Struct({
885
+ projectId: S.String.pipe(T.Label()),
886
+ regionId: S.String.pipe(T.Label()),
887
+ topicId: S.String.pipe(T.Label()),
888
+ }).pipe(
889
+ T.Http({
890
+ method: "DELETE",
891
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/publishers",
892
+ code: 200,
893
+ baseUrl: "https://pubsub.api.stackit.cloud",
894
+ }),
895
+ ),
896
+ ).annotate({ identifier: "RevokeTopicPublisherAccessRequest" });
897
+ }
898
+ }
899
+ function __c10(j: number): any {
900
+ switch (j) {
901
+ case 0:
902
+ return S.suspend(() =>
903
+ S.Struct({
904
+ projectId: S.String.pipe(T.Label()),
905
+ regionId: S.String.pipe(T.Label()),
906
+ topicId: S.String.pipe(T.Label()),
907
+ emailAddresses: __S(76, __c19, 0),
908
+ }).pipe(
909
+ T.Http({
910
+ method: "PUT",
911
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/publishers",
912
+ code: 200,
913
+ baseUrl: "https://pubsub.api.stackit.cloud",
914
+ }),
915
+ ),
916
+ ).annotate({ identifier: "UpdatePublisherAccessRequest" });
917
+ }
918
+ }
919
+ function __c11(j: number): any {
920
+ switch (j) {
921
+ case 0:
922
+ return S.suspend(() =>
923
+ S.Struct({
924
+ projectId: S.String.pipe(T.Label()),
925
+ regionId: S.String.pipe(T.Label()),
926
+ topicId: S.String.pipe(T.Label()),
927
+ subscriptionId: S.String.pipe(T.Label()),
928
+ description: S.optional(S.String),
929
+ displayName: S.optional(S.String),
930
+ labels: S.optional(__S(60, __c15, 0)),
931
+ settings: S.optional(__S(68, __c17, 0)),
932
+ }).pipe(
933
+ T.Http({
934
+ method: "PATCH",
935
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}",
936
+ code: 200,
937
+ baseUrl: "https://pubsub.api.stackit.cloud",
938
+ }),
939
+ ),
940
+ ).annotate({ identifier: "UpdateSubscriptionRequest" });
941
+ }
942
+ }
943
+ function __c12(j: number): any {
944
+ switch (j) {
945
+ case 0:
946
+ return S.suspend(() =>
947
+ S.Struct({
948
+ projectId: S.String.pipe(T.Label()),
949
+ regionId: S.String.pipe(T.Label()),
950
+ topicId: S.String.pipe(T.Label()),
951
+ subscriptionId: S.String.pipe(T.Label()),
952
+ emailAddresses: __S(76, __c19, 0),
953
+ }).pipe(
954
+ T.Http({
955
+ method: "PUT",
956
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}/subscribers",
957
+ code: 200,
958
+ baseUrl: "https://pubsub.api.stackit.cloud",
959
+ }),
960
+ ),
961
+ ).annotate({ identifier: "UpdateSubscriptionSubscriberAccessRequest" });
962
+ }
963
+ }
964
+ function __c13(j: number): any {
965
+ switch (j) {
966
+ case 0:
967
+ return S.suspend(() =>
968
+ S.Struct({
969
+ projectId: S.String.pipe(T.Label()),
970
+ regionId: S.String.pipe(T.Label()),
971
+ topicId: S.String.pipe(T.Label()),
972
+ description: S.optional(S.String),
973
+ displayName: S.optional(S.String),
974
+ labels: S.optional(__S(60, __c15, 0)),
975
+ settings: S.optional(__S(84, __c21, 0)),
976
+ }).pipe(
977
+ T.Http({
978
+ method: "PATCH",
979
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}",
980
+ code: 200,
981
+ baseUrl: "https://pubsub.api.stackit.cloud",
982
+ }),
983
+ ),
984
+ ).annotate({ identifier: "UpdateTopicRequest" });
985
+ }
986
+ }
987
+ function __c14(j: number): any {
988
+ switch (j) {
989
+ case 0:
990
+ return S.suspend(() =>
991
+ S.Struct({
992
+ projectId: S.String.pipe(T.Label()),
993
+ regionId: S.String.pipe(T.Label()),
994
+ topicId: S.String.pipe(T.Label()),
995
+ description: S.optional(S.String),
996
+ displayName: S.String,
997
+ labels: S.optional(__S(60, __c15, 0)),
998
+ settings: S.optional(__S(68, __c17, 0)),
999
+ }).pipe(
1000
+ T.Http({
1001
+ method: "POST",
1002
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions",
1003
+ code: 200,
1004
+ baseUrl: "https://pubsub.api.stackit.cloud",
1005
+ }),
1006
+ ),
1007
+ ).annotate({ identifier: "CreateSubscriptionRequest" });
1008
+ }
1009
+ }
1010
+ function __c15(j: number): any {
1011
+ switch (j) {
1012
+ case 0:
1013
+ return S.Record(S.String, /*@__PURE__*/ S.NullOr(S.String));
1014
+ }
1015
+ }
1016
+ function __c16(j: number): any {
1017
+ switch (j) {
1018
+ case 0:
1019
+ return S.suspend(() =>
1020
+ S.Struct({
1021
+ createTime: S.String,
1022
+ description: S.optional(S.String),
1023
+ displayName: S.String,
1024
+ id: S.String,
1025
+ labels: S.optional(__S(60, __c15, 0)),
1026
+ settings: S.optional(__S(68, __c17, 0)),
1027
+ state: S.String,
1028
+ topicId: S.String,
1029
+ }),
1030
+ ).annotate({ identifier: "SubscriptionResponse" });
1031
+ }
1032
+ }
1033
+ function __c17(j: number): any {
1034
+ switch (j) {
1035
+ case 0:
1036
+ return S.suspend(() =>
1037
+ S.Struct({
1038
+ ackDeadline: S.optional(S.String),
1039
+ }),
1040
+ ).annotate({ identifier: "SubscriptionSettings" });
1041
+ }
1042
+ }
1043
+ function __c18(j: number): any {
1044
+ switch (j) {
1045
+ case 0:
1046
+ return S.suspend(() =>
1047
+ S.Struct({
1048
+ projectId: S.String.pipe(T.Label()),
1049
+ regionId: S.String.pipe(T.Label()),
1050
+ description: S.optional(S.String),
1051
+ displayName: S.String,
1052
+ labels: S.optional(__S(60, __c15, 0)),
1053
+ settings: S.optional(__S(84, __c21, 0)),
1054
+ }).pipe(
1055
+ T.Http({
1056
+ method: "POST",
1057
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics",
1058
+ code: 200,
1059
+ baseUrl: "https://pubsub.api.stackit.cloud",
1060
+ }),
1061
+ ),
1062
+ ).annotate({ identifier: "CreateTopicRequest" });
1063
+ }
1064
+ }
1065
+ function __c19(j: number): any {
1066
+ switch (j) {
1067
+ case 0:
1068
+ return S.Array(S.String);
1069
+ }
1070
+ }
1071
+ function __c20(j: number): any {
1072
+ switch (j) {
1073
+ case 0:
1074
+ return S.suspend(() =>
1075
+ S.Struct({
1076
+ createTime: S.String,
1077
+ description: S.optional(S.String),
1078
+ displayName: S.String,
1079
+ id: S.String,
1080
+ labels: S.optional(__S(60, __c15, 0)),
1081
+ settings: S.optional(__S(84, __c21, 0)),
1082
+ state: S.String,
1083
+ uri: S.optional(S.String),
1084
+ }),
1085
+ ).annotate({ identifier: "TopicResponse" });
1086
+ }
1087
+ }
1088
+ function __c21(j: number): any {
1089
+ switch (j) {
1090
+ case 0:
1091
+ return S.suspend(() =>
1092
+ S.Struct({
1093
+ acl: S.optional(__S(76, __c19, 0)),
1094
+ metrics: S.optional(S.Boolean),
1095
+ retention: S.optional(S.String),
1096
+ serviceLogs: S.optional(S.Boolean),
1097
+ }),
1098
+ ).annotate({ identifier: "TopicSettings" });
1099
+ }
1100
+ }
1101
+ function __c22(j: number): any {
1102
+ switch (j) {
1103
+ case 0:
1104
+ return S.suspend(() =>
1105
+ S.Struct({
1106
+ projectId: S.String.pipe(T.Label()),
1107
+ regionId: S.String.pipe(T.Label()),
1108
+ topicId: S.String.pipe(T.Label()),
1109
+ subscriptionId: S.String.pipe(T.Label()),
1110
+ force: S.optional(S.Boolean.pipe(T.Query())),
1111
+ }).pipe(
1112
+ T.Http({
1113
+ method: "DELETE",
1114
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}",
1115
+ code: 200,
1116
+ baseUrl: "https://pubsub.api.stackit.cloud",
1117
+ }),
1118
+ ),
1119
+ ).annotate({ identifier: "DeleteSubscriptionRequest" });
1120
+ }
1121
+ }
1122
+ function __c23(j: number): any {
1123
+ switch (j) {
1124
+ case 0:
1125
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteSubscriptionResponse" });
1126
+ }
1127
+ }
1128
+ function __c24(j: number): any {
1129
+ switch (j) {
1130
+ case 0:
1131
+ return S.suspend(() =>
1132
+ S.Struct({
1133
+ projectId: S.String.pipe(T.Label()),
1134
+ regionId: S.String.pipe(T.Label()),
1135
+ topicId: S.String.pipe(T.Label()),
1136
+ force: S.optional(S.Boolean.pipe(T.Query())),
1137
+ }).pipe(
1138
+ T.Http({
1139
+ method: "DELETE",
1140
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}",
1141
+ code: 200,
1142
+ baseUrl: "https://pubsub.api.stackit.cloud",
1143
+ }),
1144
+ ),
1145
+ ).annotate({ identifier: "DeleteTopicRequest" });
1146
+ }
1147
+ }
1148
+ function __c25(j: number): any {
1149
+ switch (j) {
1150
+ case 0:
1151
+ return S.suspend(() =>
1152
+ S.Struct({
1153
+ projectId: S.String.pipe(T.Label()),
1154
+ regionId: S.String.pipe(T.Label()),
1155
+ topicId: S.String.pipe(T.Label()),
1156
+ subscriptionId: S.String.pipe(T.Label()),
1157
+ }).pipe(
1158
+ T.Http({
1159
+ method: "GET",
1160
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}",
1161
+ code: 200,
1162
+ baseUrl: "https://pubsub.api.stackit.cloud",
1163
+ }),
1164
+ ),
1165
+ ).annotate({ identifier: "GetSubscriptionRequest" });
1166
+ }
1167
+ }
1168
+ // Schema table: entry i is schema j of builder f, made on first reach.
1169
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1170
+ return (__s[i] ??= __L.at(f, j));
1171
+ }