@distilled.cloud/stackit 1.0.0-rc.14 → 1.0.0-rc.16

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 (285) hide show
  1. package/lib/credentials.d.ts +2 -2
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +32 -28
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts +13 -13
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +16 -16
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +2 -2
  10. package/lib/index.js +22 -22
  11. package/lib/pagination.d.ts +1 -1
  12. package/lib/pagination.js +15 -15
  13. package/lib/protocol.d.ts +3 -3
  14. package/lib/protocol.d.ts.map +1 -1
  15. package/lib/protocol.js +31 -29
  16. package/lib/protocol.js.map +1 -1
  17. package/lib/retry.d.ts +1 -1
  18. package/lib/retry.d.ts.map +1 -1
  19. package/lib/retry.js +24 -23
  20. package/lib/retry.js.map +1 -1
  21. package/lib/services/alb.d.ts +10 -87
  22. package/lib/services/alb.d.ts.map +1 -1
  23. package/lib/services/alb.js +73 -502
  24. package/lib/services/alb_waf.d.ts +9 -82
  25. package/lib/services/alb_waf.d.ts.map +1 -1
  26. package/lib/services/alb_waf.js +84 -510
  27. package/lib/services/authorization.d.ts +5 -47
  28. package/lib/services/authorization.d.ts.map +1 -1
  29. package/lib/services/authorization.js +67 -314
  30. package/lib/services/automation.d.ts +7 -47
  31. package/lib/services/automation.d.ts.map +1 -1
  32. package/lib/services/automation.js +58 -353
  33. package/lib/services/cdn.d.ts +8 -220
  34. package/lib/services/cdn.d.ts.map +1 -1
  35. package/lib/services/cdn.js +81 -896
  36. package/lib/services/certificates.d.ts +8 -27
  37. package/lib/services/certificates.d.ts.map +1 -1
  38. package/lib/services/certificates.js +45 -171
  39. package/lib/services/cost.d.ts +10 -37
  40. package/lib/services/cost.d.ts.map +1 -1
  41. package/lib/services/cost.js +39 -169
  42. package/lib/services/dns.d.ts +9 -104
  43. package/lib/services/dns.d.ts.map +1 -1
  44. package/lib/services/dns.js +98 -714
  45. package/lib/services/dremio.d.ts +8 -50
  46. package/lib/services/dremio.d.ts.map +1 -1
  47. package/lib/services/dremio.js +56 -307
  48. package/lib/services/edge.d.ts +7 -40
  49. package/lib/services/edge.d.ts.map +1 -1
  50. package/lib/services/edge.js +66 -347
  51. package/lib/services/functions.d.ts +1 -48
  52. package/lib/services/functions.d.ts.map +1 -1
  53. package/lib/services/functions.js +64 -393
  54. package/lib/services/git.d.ts +8 -61
  55. package/lib/services/git.d.ts.map +1 -1
  56. package/lib/services/git.js +87 -510
  57. package/lib/services/iaas.d.ts +9 -337
  58. package/lib/services/iaas.d.ts.map +1 -1
  59. package/lib/services/iaas.js +409 -3532
  60. package/lib/services/intake.d.ts +8 -75
  61. package/lib/services/intake.d.ts.map +1 -1
  62. package/lib/services/intake.js +74 -465
  63. package/lib/services/kms.d.ts +9 -92
  64. package/lib/services/kms.d.ts.map +1 -1
  65. package/lib/services/kms.js +95 -650
  66. package/lib/services/lb_ip_lists.d.ts +9 -25
  67. package/lib/services/lb_ip_lists.d.ts.map +1 -1
  68. package/lib/services/lb_ip_lists.js +45 -146
  69. package/lib/services/load_balancer.d.ts +10 -81
  70. package/lib/services/load_balancer.d.ts.map +1 -1
  71. package/lib/services/load_balancer.js +76 -486
  72. package/lib/services/logme.d.ts +8 -69
  73. package/lib/services/logme.d.ts.map +1 -1
  74. package/lib/services/logme.js +82 -564
  75. package/lib/services/logs.d.ts +8 -64
  76. package/lib/services/logs.d.ts.map +1 -1
  77. package/lib/services/logs.js +84 -465
  78. package/lib/services/mariadb.d.ts +8 -65
  79. package/lib/services/mariadb.d.ts.map +1 -1
  80. package/lib/services/mariadb.js +84 -541
  81. package/lib/services/model_experiments.d.ts +9 -48
  82. package/lib/services/model_experiments.d.ts.map +1 -1
  83. package/lib/services/model_experiments.js +66 -325
  84. package/lib/services/model_serving.d.ts +7 -47
  85. package/lib/services/model_serving.d.ts.map +1 -1
  86. package/lib/services/model_serving.js +55 -277
  87. package/lib/services/mongodb_flex.d.ts +8 -137
  88. package/lib/services/mongodb_flex.d.ts.map +1 -1
  89. package/lib/services/mongodb_flex.js +102 -793
  90. package/lib/services/object_storage.d.ts +12 -59
  91. package/lib/services/object_storage.d.ts.map +1 -1
  92. package/lib/services/object_storage.js +93 -528
  93. package/lib/services/observability.d.ts +8 -407
  94. package/lib/services/observability.d.ts.map +1 -1
  95. package/lib/services/observability.js +375 -3148
  96. package/lib/services/opensearch.d.ts +8 -71
  97. package/lib/services/opensearch.d.ts.map +1 -1
  98. package/lib/services/opensearch.js +85 -553
  99. package/lib/services/pim.d.ts +12 -108
  100. package/lib/services/pim.d.ts.map +1 -1
  101. package/lib/services/pim.js +81 -726
  102. package/lib/services/postgres_flex.d.ts +14 -136
  103. package/lib/services/postgres_flex.d.ts.map +1 -1
  104. package/lib/services/postgres_flex.js +114 -841
  105. package/lib/services/pubsub.d.ts +11 -73
  106. package/lib/services/pubsub.d.ts.map +1 -1
  107. package/lib/services/pubsub.js +92 -507
  108. package/lib/services/rabbitmq.d.ts +8 -76
  109. package/lib/services/rabbitmq.d.ts.map +1 -1
  110. package/lib/services/rabbitmq.js +88 -564
  111. package/lib/services/registry.d.ts +10 -28
  112. package/lib/services/registry.d.ts.map +1 -1
  113. package/lib/services/registry.js +49 -189
  114. package/lib/services/resource_manager.d.ts +9 -61
  115. package/lib/services/resource_manager.d.ts.map +1 -1
  116. package/lib/services/resource_manager.js +92 -462
  117. package/lib/services/run_command.d.ts +5 -28
  118. package/lib/services/run_command.d.ts.map +1 -1
  119. package/lib/services/run_command.js +38 -176
  120. package/lib/services/sca.d.ts +8 -79
  121. package/lib/services/sca.d.ts.map +1 -1
  122. package/lib/services/sca.js +63 -435
  123. package/lib/services/scf.d.ts +8 -64
  124. package/lib/services/scf.d.ts.map +1 -1
  125. package/lib/services/scf.js +99 -660
  126. package/lib/services/secrets_manager.d.ts +8 -61
  127. package/lib/services/secrets_manager.d.ts.map +1 -1
  128. package/lib/services/secrets_manager.js +99 -601
  129. package/lib/services/server_backup.d.ts +7 -50
  130. package/lib/services/server_backup.d.ts.map +1 -1
  131. package/lib/services/server_backup.js +70 -444
  132. package/lib/services/server_update.d.ts +7 -35
  133. package/lib/services/server_update.d.ts.map +1 -1
  134. package/lib/services/server_update.js +58 -342
  135. package/lib/services/service_account.d.ts +10 -68
  136. package/lib/services/service_account.d.ts.map +1 -1
  137. package/lib/services/service_account.js +75 -495
  138. package/lib/services/service_enablement.d.ts +7 -29
  139. package/lib/services/service_enablement.d.ts.map +1 -1
  140. package/lib/services/service_enablement.js +40 -147
  141. package/lib/services/sfs.d.ts +4 -96
  142. package/lib/services/sfs.d.ts.map +1 -1
  143. package/lib/services/sfs.js +117 -782
  144. package/lib/services/ske.d.ts +9 -108
  145. package/lib/services/ske.d.ts.map +1 -1
  146. package/lib/services/ske.js +67 -549
  147. package/lib/services/sqlserverflex.d.ts +11 -152
  148. package/lib/services/sqlserverflex.d.ts.map +1 -1
  149. package/lib/services/sqlserverflex.js +112 -925
  150. package/lib/services/stackit_marketplace.d.ts +9 -38
  151. package/lib/services/stackit_marketplace.d.ts.map +1 -1
  152. package/lib/services/stackit_marketplace.js +64 -369
  153. package/lib/services/telemetry_link.d.ts +8 -61
  154. package/lib/services/telemetry_link.d.ts.map +1 -1
  155. package/lib/services/telemetry_link.js +81 -522
  156. package/lib/services/telemetry_router.d.ts +8 -72
  157. package/lib/services/telemetry_router.d.ts.map +1 -1
  158. package/lib/services/telemetry_router.js +73 -474
  159. package/lib/services/ufw.d.ts +7 -42
  160. package/lib/services/ufw.d.ts.map +1 -1
  161. package/lib/services/ufw.js +55 -269
  162. package/lib/services/valkey.d.ts +8 -68
  163. package/lib/services/valkey.d.ts.map +1 -1
  164. package/lib/services/valkey.js +85 -557
  165. package/lib/services/vpn.d.ts +21 -186
  166. package/lib/services/vpn.d.ts.map +1 -1
  167. package/lib/services/vpn.js +105 -920
  168. package/lib/services/workflows.d.ts +15 -84
  169. package/lib/services/workflows.d.ts.map +1 -1
  170. package/lib/services/workflows.js +67 -497
  171. package/lib/traits.d.ts +1 -1
  172. package/lib/traits.js +10 -10
  173. package/package.json +13 -9
  174. package/src/credentials.ts +21 -18
  175. package/src/errors.ts +10 -14
  176. package/src/index.ts +2 -2
  177. package/src/pagination.ts +2 -2
  178. package/src/protocol.ts +12 -9
  179. package/src/retry.ts +6 -4
  180. package/src/services/alb.ts +599 -655
  181. package/src/services/alb_waf.ts +597 -637
  182. package/src/services/authorization.ts +400 -383
  183. package/src/services/automation.ts +422 -405
  184. package/src/services/cdn.ts +817 -1375
  185. package/src/services/certificates.ts +209 -190
  186. package/src/services/cost.ts +100 -207
  187. package/src/services/dns.ts +793 -833
  188. package/src/services/dremio.ts +356 -349
  189. package/src/services/edge.ts +406 -366
  190. package/src/services/functions.ts +465 -463
  191. package/src/services/git.ts +602 -547
  192. package/src/services/iaas.ts +3931 -3821
  193. package/src/services/intake.ts +521 -549
  194. package/src/services/kms.ts +715 -692
  195. package/src/services/lb_ip_lists.ts +173 -152
  196. package/src/services/load_balancer.ts +576 -619
  197. package/src/services/logme.ts +696 -641
  198. package/src/services/logs.ts +510 -493
  199. package/src/services/mariadb.ts +671 -604
  200. package/src/services/model_experiments.ts +343 -356
  201. package/src/services/model_serving.ts +337 -328
  202. package/src/services/mongodb_flex.ts +955 -1007
  203. package/src/services/object_storage.ts +614 -557
  204. package/src/services/observability.ts +3469 -3866
  205. package/src/services/opensearch.ts +679 -628
  206. package/src/services/pim.ts +672 -909
  207. package/src/services/postgres_flex.ts +966 -986
  208. package/src/services/pubsub.ts +524 -546
  209. package/src/services/rabbitmq.ts +693 -654
  210. package/src/services/registry.ts +227 -194
  211. package/src/services/resource_manager.ts +520 -517
  212. package/src/services/run_command.ts +219 -211
  213. package/src/services/sca.ts +543 -570
  214. package/src/services/scf.ts +790 -716
  215. package/src/services/secrets_manager.ts +707 -622
  216. package/src/services/server_backup.ts +490 -475
  217. package/src/services/server_update.ts +353 -356
  218. package/src/services/service_account.ts +515 -553
  219. package/src/services/service_enablement.ts +162 -166
  220. package/src/services/sfs.ts +879 -958
  221. package/src/services/ske.ts +694 -769
  222. package/src/services/sqlserverflex.ts +1042 -1117
  223. package/src/services/stackit_marketplace.ts +377 -372
  224. package/src/services/telemetry_link.ts +530 -531
  225. package/src/services/telemetry_router.ts +509 -534
  226. package/src/services/ufw.ts +305 -307
  227. package/src/services/valkey.ts +684 -629
  228. package/src/services/vpn.ts +935 -1195
  229. package/src/services/workflows.ts +426 -586
  230. package/src/traits.ts +1 -1
  231. package/lib/protocol.test.d.ts +0 -2
  232. package/lib/protocol.test.d.ts.map +0 -1
  233. package/lib/protocol.test.js +0 -181
  234. package/lib/protocol.test.js.map +0 -1
  235. package/lib/services/alb.js.map +0 -1
  236. package/lib/services/alb_waf.js.map +0 -1
  237. package/lib/services/authorization.js.map +0 -1
  238. package/lib/services/automation.js.map +0 -1
  239. package/lib/services/cdn.js.map +0 -1
  240. package/lib/services/certificates.js.map +0 -1
  241. package/lib/services/cost.js.map +0 -1
  242. package/lib/services/dns.js.map +0 -1
  243. package/lib/services/dremio.js.map +0 -1
  244. package/lib/services/edge.js.map +0 -1
  245. package/lib/services/functions.js.map +0 -1
  246. package/lib/services/git.js.map +0 -1
  247. package/lib/services/iaas.js.map +0 -1
  248. package/lib/services/intake.js.map +0 -1
  249. package/lib/services/kms.js.map +0 -1
  250. package/lib/services/lb_ip_lists.js.map +0 -1
  251. package/lib/services/load_balancer.js.map +0 -1
  252. package/lib/services/logme.js.map +0 -1
  253. package/lib/services/logs.js.map +0 -1
  254. package/lib/services/mariadb.js.map +0 -1
  255. package/lib/services/model_experiments.js.map +0 -1
  256. package/lib/services/model_serving.js.map +0 -1
  257. package/lib/services/mongodb_flex.js.map +0 -1
  258. package/lib/services/object_storage.js.map +0 -1
  259. package/lib/services/observability.js.map +0 -1
  260. package/lib/services/opensearch.js.map +0 -1
  261. package/lib/services/pim.js.map +0 -1
  262. package/lib/services/postgres_flex.js.map +0 -1
  263. package/lib/services/pubsub.js.map +0 -1
  264. package/lib/services/rabbitmq.js.map +0 -1
  265. package/lib/services/registry.js.map +0 -1
  266. package/lib/services/resource_manager.js.map +0 -1
  267. package/lib/services/run_command.js.map +0 -1
  268. package/lib/services/sca.js.map +0 -1
  269. package/lib/services/scf.js.map +0 -1
  270. package/lib/services/secrets_manager.js.map +0 -1
  271. package/lib/services/server_backup.js.map +0 -1
  272. package/lib/services/server_update.js.map +0 -1
  273. package/lib/services/service_account.js.map +0 -1
  274. package/lib/services/service_enablement.js.map +0 -1
  275. package/lib/services/sfs.js.map +0 -1
  276. package/lib/services/ske.js.map +0 -1
  277. package/lib/services/sqlserverflex.js.map +0 -1
  278. package/lib/services/stackit_marketplace.js.map +0 -1
  279. package/lib/services/telemetry_link.js.map +0 -1
  280. package/lib/services/telemetry_router.js.map +0 -1
  281. package/lib/services/ufw.js.map +0 -1
  282. package/lib/services/valkey.js.map +0 -1
  283. package/lib/services/vpn.js.map +0 -1
  284. package/lib/services/workflows.js.map +0 -1
  285. package/src/protocol.test.ts +0 -304
@@ -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
+ }