@distilled.cloud/stackit 1.0.0-rc.15 → 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
 
@@ -51,55 +54,12 @@ export interface ApproveSubscriptionRequest {
51
54
  /** The target URL of the user instance, used to redirect the user to the instance after the subscription is active. */
52
55
  instanceTarget?: string;
53
56
  }
54
- export const ApproveSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
55
- S.Struct({
56
- projectId: S.String.pipe(T.Label()),
57
- subscriptionId: S.String.pipe(T.Label()),
58
- instanceTarget: S.optional(S.String),
59
- }).pipe(
60
- T.Http({
61
- method: "POST",
62
- uri: "/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}/approve",
63
- code: 200,
64
- baseUrl: "https://stackit-marketplace.api.stackit.cloud",
65
- }),
66
- ),
67
- ).annotate({
68
- identifier: "ApproveSubscriptionRequest",
69
- }) as any as S.Schema<ApproveSubscriptionRequest>;
70
-
71
57
  export interface ApproveSubscriptionResponse {}
72
- export const ApproveSubscriptionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
73
- identifier: "ApproveSubscriptionResponse",
74
- }) as any as S.Schema<ApproveSubscriptionResponse>;
75
-
76
58
  export interface CancelConsumersSubscriptionRequest {
77
59
  projectId: string;
78
60
  subscriptionId: string;
79
61
  }
80
- export const CancelConsumersSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
81
- S.Struct({
82
- projectId: S.String.pipe(T.Label()),
83
- subscriptionId: S.String.pipe(T.Label()),
84
- }).pipe(
85
- T.Http({
86
- method: "DELETE",
87
- uri: "/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}",
88
- code: 200,
89
- baseUrl: "https://stackit-marketplace.api.stackit.cloud",
90
- }),
91
- ),
92
- ).annotate({
93
- identifier: "CancelConsumersSubscriptionRequest",
94
- }) as any as S.Schema<CancelConsumersSubscriptionRequest>;
95
-
96
62
  export interface CancelConsumersSubscriptionResponse {}
97
- export const CancelConsumersSubscriptionResponse = /*@__PURE__*/ S.suspend(() =>
98
- S.Struct({}),
99
- ).annotate({
100
- identifier: "CancelConsumersSubscriptionResponse",
101
- }) as any as S.Schema<CancelConsumersSubscriptionResponse>;
102
-
103
63
  export interface ConsumersSubscriptionsListByOrganizationRequest {
104
64
  organizationId: string;
105
65
  cursor?: string;
@@ -108,25 +68,6 @@ export interface ConsumersSubscriptionsListByOrganizationRequest {
108
68
  /** Flag to control if cancelled or rejected subscriptions should be returned. */
109
69
  includeExpired?: boolean;
110
70
  }
111
- export const ConsumersSubscriptionsListByOrganizationRequest = /*@__PURE__*/ S.suspend(() =>
112
- S.Struct({
113
- organizationId: S.String.pipe(T.Label()),
114
- cursor: S.optional(S.String.pipe(T.Query())),
115
- limit: S.optional(S.Number.pipe(T.Query())),
116
- productId: S.optional(S.String.pipe(T.Query())),
117
- includeExpired: S.optional(S.Boolean.pipe(T.Query())),
118
- }).pipe(
119
- T.Http({
120
- method: "GET",
121
- uri: "/v1/consumers/organizations/{organizationId}/subscriptions",
122
- code: 200,
123
- baseUrl: "https://stackit-marketplace.api.stackit.cloud",
124
- }),
125
- ),
126
- ).annotate({
127
- identifier: "ConsumersSubscriptionsListByOrganizationRequest",
128
- }) as any as S.Schema<ConsumersSubscriptionsListByOrganizationRequest>;
129
-
130
71
  export type MarketplaceSubscriptionV1SubscriptionLifecycleState =
131
72
  | "STATE_UNSPECIFIED"
132
73
  | "SUBSCRIPTION_PENDING"
@@ -136,66 +77,32 @@ export type MarketplaceSubscriptionV1SubscriptionLifecycleState =
136
77
  | "SUBSCRIPTION_CANCELLED"
137
78
  | "SUBSCRIPTION_REJECTED"
138
79
  | "SUBSCRIPTION_APPROVAL_TIMED_OUT";
139
- export const MarketplaceSubscriptionV1SubscriptionLifecycleState = S.String;
140
-
141
80
  export interface MarketplaceSubscriptionV1FileLocalizedVersion {
142
81
  /** The file version matching the file name (localized). */
143
82
  de?: string;
144
83
  /** The file version matching the file name (localized). */
145
84
  en?: string;
146
85
  }
147
- export const MarketplaceSubscriptionV1FileLocalizedVersion = /*@__PURE__*/ S.suspend(() =>
148
- S.Struct({
149
- de: S.optional(S.String),
150
- en: S.optional(S.String),
151
- }),
152
- ).annotate({
153
- identifier: "MarketplaceSubscriptionV1FileLocalizedVersion",
154
- }) as any as S.Schema<MarketplaceSubscriptionV1FileLocalizedVersion>;
155
-
156
86
  export interface MarketplaceSubscriptionV1File {
157
87
  version?: MarketplaceSubscriptionV1FileLocalizedVersion;
158
88
  }
159
- export const MarketplaceSubscriptionV1File = /*@__PURE__*/ S.suspend(() =>
160
- S.Struct({
161
- version: S.optional(MarketplaceSubscriptionV1FileLocalizedVersion),
162
- }),
163
- ).annotate({
164
- identifier: "MarketplaceSubscriptionV1File",
165
- }) as any as S.Schema<MarketplaceSubscriptionV1File>;
166
-
167
89
  export interface MarketplaceSubscriptionV1Assets {
168
90
  endUserLicenseAgreement?: MarketplaceSubscriptionV1File;
169
91
  productDescription?: MarketplaceSubscriptionV1File;
170
92
  serviceCertificate?: MarketplaceSubscriptionV1File;
171
93
  serviceLevelAgreement?: MarketplaceSubscriptionV1File;
172
94
  }
173
- export const MarketplaceSubscriptionV1Assets = /*@__PURE__*/ S.suspend(() =>
174
- S.Struct({
175
- endUserLicenseAgreement: S.optional(MarketplaceSubscriptionV1File),
176
- productDescription: S.optional(MarketplaceSubscriptionV1File),
177
- serviceCertificate: S.optional(MarketplaceSubscriptionV1File),
178
- serviceLevelAgreement: S.optional(MarketplaceSubscriptionV1File),
179
- }),
180
- ).annotate({
181
- identifier: "MarketplaceSubscriptionV1Assets",
182
- }) as any as S.Schema<MarketplaceSubscriptionV1Assets>;
183
-
184
95
  /** The product delivery method/type. For reference: SAAS - Software as a Service, CLOUD_IMAGE - STACKIT Cloud Image */
185
96
  export type MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod =
186
97
  | "SAAS"
187
98
  | "CONTAINER_IMAGE"
188
99
  | "CLOUD_IMAGE"
189
100
  | "PROFESSIONAL_SERVICE";
190
- export const MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod = S.String;
191
-
192
101
  /** The lifecycle state of the product. */
193
102
  export type MarketplaceSubscriptionV1SubscriptionProductLifecycleState =
194
103
  | "PRODUCT_LIVE"
195
104
  | "PRODUCT_PENDING_APPROVAL"
196
105
  | "PRODUCT_PREVIEW";
197
- export const MarketplaceSubscriptionV1SubscriptionProductLifecycleState = S.String;
198
-
199
106
  /** The product's price type. */
200
107
  export type MarketplaceSubscriptionV1SubscriptionProductPriceType =
201
108
  | "CONTRACT"
@@ -203,8 +110,6 @@ export type MarketplaceSubscriptionV1SubscriptionProductPriceType =
203
110
  | "FREE_TRIAL"
204
111
  | "BYOL"
205
112
  | "PAYG";
206
- export const MarketplaceSubscriptionV1SubscriptionProductPriceType = S.String;
207
-
208
113
  export interface MarketplaceSubscriptionV1SubscriptionProduct {
209
114
  assets?: MarketplaceSubscriptionV1Assets;
210
115
  /** The product delivery method/type. For reference: SAAS - Software as a Service, CLOUD_IMAGE - STACKIT Cloud Image */
@@ -236,28 +141,6 @@ export interface MarketplaceSubscriptionV1SubscriptionProduct {
236
141
  /** The vendor's website. */
237
142
  vendorWebsiteUrl: string;
238
143
  }
239
- export const MarketplaceSubscriptionV1SubscriptionProduct = /*@__PURE__*/ S.suspend(() =>
240
- S.Struct({
241
- assets: S.optional(MarketplaceSubscriptionV1Assets),
242
- deliveryMethod: MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod,
243
- lifecycleState: MarketplaceSubscriptionV1SubscriptionProductLifecycleState,
244
- noticePeriod: S.String,
245
- planId: S.String,
246
- priceType: MarketplaceSubscriptionV1SubscriptionProductPriceType,
247
- pricingPlan: S.String,
248
- productId: S.String,
249
- productName: S.String,
250
- rate: S.String,
251
- validityPeriod: S.String,
252
- vendorName: S.String,
253
- vendorPlanId: S.optional(S.String),
254
- vendorProductId: S.optional(S.String),
255
- vendorWebsiteUrl: S.String,
256
- }),
257
- ).annotate({
258
- identifier: "MarketplaceSubscriptionV1SubscriptionProduct",
259
- }) as any as S.Schema<MarketplaceSubscriptionV1SubscriptionProduct>;
260
-
261
144
  export interface MarketplaceSubscriptionV1Subscription {
262
145
  /** Period between the subscription was created until the approval needs to happen. */
263
146
  approvalTimeout?: string;
@@ -281,45 +164,13 @@ export interface MarketplaceSubscriptionV1Subscription {
281
164
  /** Timestamp when the current subscription validity will end. May be automatically renewed. */
282
165
  validUntil?: string;
283
166
  }
284
- export const MarketplaceSubscriptionV1Subscription = /*@__PURE__*/ S.suspend(() =>
285
- S.Struct({
286
- approvalTimeout: S.optional(S.String),
287
- autoRenewal: S.optional(S.Boolean),
288
- lifecycleState: MarketplaceSubscriptionV1SubscriptionLifecycleState,
289
- orderedAt: S.String,
290
- organizationId: S.String,
291
- product: MarketplaceSubscriptionV1SubscriptionProduct,
292
- projectId: S.String,
293
- subscriptionId: S.String,
294
- terminatesAt: S.optional(S.String),
295
- validFrom: S.optional(S.String),
296
- validUntil: S.optional(S.String),
297
- }),
298
- ).annotate({
299
- identifier: "MarketplaceSubscriptionV1Subscription",
300
- }) as any as S.Schema<MarketplaceSubscriptionV1Subscription>;
301
-
302
167
  export type MarketplaceSubscriptionV1ListSubscriptionsResponseItemsList =
303
168
  Array<MarketplaceSubscriptionV1Subscription>;
304
- export const MarketplaceSubscriptionV1ListSubscriptionsResponseItemsList = /*@__PURE__*/ S.Array(
305
- MarketplaceSubscriptionV1Subscription,
306
- ) as any as S.Schema<MarketplaceSubscriptionV1ListSubscriptionsResponseItemsList>;
307
-
308
169
  export interface MarketplaceSubscriptionV1ListSubscriptionsResponse {
309
170
  cursor?: string;
310
171
  items?: MarketplaceSubscriptionV1ListSubscriptionsResponseItemsList;
311
172
  limit?: number;
312
173
  }
313
- export const MarketplaceSubscriptionV1ListSubscriptionsResponse = /*@__PURE__*/ S.suspend(() =>
314
- S.Struct({
315
- cursor: S.optional(S.String),
316
- items: S.optional(MarketplaceSubscriptionV1ListSubscriptionsResponseItemsList),
317
- limit: S.optional(S.Number),
318
- }),
319
- ).annotate({
320
- identifier: "MarketplaceSubscriptionV1ListSubscriptionsResponse",
321
- }) as any as S.Schema<MarketplaceSubscriptionV1ListSubscriptionsResponse>;
322
-
323
174
  export interface ConsumersSubscriptionsListByProjectRequest {
324
175
  projectId: string;
325
176
  cursor?: string;
@@ -328,25 +179,6 @@ export interface ConsumersSubscriptionsListByProjectRequest {
328
179
  /** Flag to control if cancelled or rejected subscriptions should be returned. */
329
180
  includeExpired?: boolean;
330
181
  }
331
- export const ConsumersSubscriptionsListByProjectRequest = /*@__PURE__*/ S.suspend(() =>
332
- S.Struct({
333
- projectId: S.String.pipe(T.Label()),
334
- cursor: S.optional(S.String.pipe(T.Query())),
335
- limit: S.optional(S.Number.pipe(T.Query())),
336
- productId: S.optional(S.String.pipe(T.Query())),
337
- includeExpired: S.optional(S.Boolean.pipe(T.Query())),
338
- }).pipe(
339
- T.Http({
340
- method: "GET",
341
- uri: "/v1/consumers/projects/{projectId}/subscriptions",
342
- code: 200,
343
- baseUrl: "https://stackit-marketplace.api.stackit.cloud",
344
- }),
345
- ),
346
- ).annotate({
347
- identifier: "ConsumersSubscriptionsListByProjectRequest",
348
- }) as any as S.Schema<ConsumersSubscriptionsListByProjectRequest>;
349
-
350
182
  export interface CreateConsumersSubscriptionRequest {
351
183
  projectId: string;
352
184
  /** An E-Mail address the vendor can reach the consuer about subscription updates. */
@@ -356,178 +188,42 @@ export interface CreateConsumersSubscriptionRequest {
356
188
  /** The concrete variant of the product. */
357
189
  sku: string;
358
190
  }
359
- export const CreateConsumersSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
360
- S.Struct({
361
- projectId: S.String.pipe(T.Label()),
362
- consumerNotificationEmail: S.optional(S.String),
363
- productId: S.String,
364
- sku: S.String,
365
- }).pipe(
366
- T.Http({
367
- method: "POST",
368
- uri: "/v1/consumers/projects/{projectId}/subscriptions",
369
- code: 200,
370
- baseUrl: "https://stackit-marketplace.api.stackit.cloud",
371
- }),
372
- ),
373
- ).annotate({
374
- identifier: "CreateConsumersSubscriptionRequest",
375
- }) as any as S.Schema<CreateConsumersSubscriptionRequest>;
376
-
377
191
  export interface GetConsumersSubscriptionRequest {
378
192
  projectId: string;
379
193
  subscriptionId: string;
380
194
  /** Flag to control if cancelled or rejected subscriptions should be returned. */
381
195
  includeExpired?: boolean;
382
196
  }
383
- export const GetConsumersSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
384
- S.Struct({
385
- projectId: S.String.pipe(T.Label()),
386
- subscriptionId: S.String.pipe(T.Label()),
387
- includeExpired: S.optional(S.Boolean.pipe(T.Query())),
388
- }).pipe(
389
- T.Http({
390
- method: "GET",
391
- uri: "/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}",
392
- code: 200,
393
- baseUrl: "https://stackit-marketplace.api.stackit.cloud",
394
- }),
395
- ),
396
- ).annotate({
397
- identifier: "GetConsumersSubscriptionRequest",
398
- }) as any as S.Schema<GetConsumersSubscriptionRequest>;
399
-
400
197
  export interface GetConsumersSubscriptionsRedirectRequest {
401
198
  projectId: string;
402
199
  subscriptionId: string;
403
200
  redirectTarget?: string;
404
201
  }
405
- export const GetConsumersSubscriptionsRedirectRequest = /*@__PURE__*/ S.suspend(() =>
406
- S.Struct({
407
- projectId: S.String.pipe(T.Label()),
408
- subscriptionId: S.String.pipe(T.Label()),
409
- redirectTarget: S.optional(S.String.pipe(T.Query())),
410
- }).pipe(
411
- T.Http({
412
- method: "GET",
413
- uri: "/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}/redirects",
414
- code: 200,
415
- baseUrl: "https://stackit-marketplace.api.stackit.cloud",
416
- }),
417
- ),
418
- ).annotate({
419
- identifier: "GetConsumersSubscriptionsRedirectRequest",
420
- }) as any as S.Schema<GetConsumersSubscriptionsRedirectRequest>;
421
-
422
202
  export interface MarketplaceSubscriptionV1SubscriptionRedirect {
423
203
  redirectTarget: string;
424
204
  redirectUrl: string;
425
205
  }
426
- export const MarketplaceSubscriptionV1SubscriptionRedirect = /*@__PURE__*/ S.suspend(() =>
427
- S.Struct({
428
- redirectTarget: S.String,
429
- redirectUrl: S.String,
430
- }),
431
- ).annotate({
432
- identifier: "MarketplaceSubscriptionV1SubscriptionRedirect",
433
- }) as any as S.Schema<MarketplaceSubscriptionV1SubscriptionRedirect>;
434
-
435
206
  export interface GetVendorsSubscriptionRequest {
436
207
  projectId: string;
437
208
  subscriptionId: string;
438
209
  /** Flag to control if cancelled or rejected subscriptions should be returned. */
439
210
  includeExpired?: boolean;
440
211
  }
441
- export const GetVendorsSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
442
- S.Struct({
443
- projectId: S.String.pipe(T.Label()),
444
- subscriptionId: S.String.pipe(T.Label()),
445
- includeExpired: S.optional(S.Boolean.pipe(T.Query())),
446
- }).pipe(
447
- T.Http({
448
- method: "GET",
449
- uri: "/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}",
450
- code: 200,
451
- baseUrl: "https://stackit-marketplace.api.stackit.cloud",
452
- }),
453
- ),
454
- ).annotate({
455
- identifier: "GetVendorsSubscriptionRequest",
456
- }) as any as S.Schema<GetVendorsSubscriptionRequest>;
457
-
458
212
  export interface RejectVendorsSubscriptionRequest {
459
213
  projectId: string;
460
214
  subscriptionId: string;
461
215
  }
462
- export const RejectVendorsSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
463
- S.Struct({
464
- projectId: S.String.pipe(T.Label()),
465
- subscriptionId: S.String.pipe(T.Label()),
466
- }).pipe(
467
- T.Http({
468
- method: "POST",
469
- uri: "/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}/reject",
470
- code: 200,
471
- baseUrl: "https://stackit-marketplace.api.stackit.cloud",
472
- }),
473
- ),
474
- ).annotate({
475
- identifier: "RejectVendorsSubscriptionRequest",
476
- }) as any as S.Schema<RejectVendorsSubscriptionRequest>;
477
-
478
216
  export interface RejectVendorsSubscriptionResponse {}
479
- export const RejectVendorsSubscriptionResponse = /*@__PURE__*/ S.suspend(() =>
480
- S.Struct({}),
481
- ).annotate({
482
- identifier: "RejectVendorsSubscriptionResponse",
483
- }) as any as S.Schema<RejectVendorsSubscriptionResponse>;
484
-
485
217
  export interface ResolveCustomerRequest {
486
218
  projectId: string;
487
219
  /** Opaque token exchangeable for subscription details. */
488
220
  token: string;
489
221
  }
490
- export const ResolveCustomerRequest = /*@__PURE__*/ S.suspend(() =>
491
- S.Struct({
492
- projectId: S.String.pipe(T.Label()),
493
- token: S.String,
494
- }).pipe(
495
- T.Http({
496
- method: "POST",
497
- uri: "/v1/vendors/projects/{projectId}/resolve-customer",
498
- code: 200,
499
- baseUrl: "https://stackit-marketplace.api.stackit.cloud",
500
- }),
501
- ),
502
- ).annotate({ identifier: "ResolveCustomerRequest" }) as any as S.Schema<ResolveCustomerRequest>;
503
-
504
222
  export interface TerminateConsumersSubscriptionRequest {
505
223
  projectId: string;
506
224
  subscriptionId: string;
507
225
  }
508
- export const TerminateConsumersSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
509
- S.Struct({
510
- projectId: S.String.pipe(T.Label()),
511
- subscriptionId: S.String.pipe(T.Label()),
512
- }).pipe(
513
- T.Http({
514
- method: "POST",
515
- uri: "/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}/terminate",
516
- code: 200,
517
- baseUrl: "https://stackit-marketplace.api.stackit.cloud",
518
- }),
519
- ),
520
- ).annotate({
521
- identifier: "TerminateConsumersSubscriptionRequest",
522
- }) as any as S.Schema<TerminateConsumersSubscriptionRequest>;
523
-
524
226
  export interface TerminateConsumersSubscriptionResponse {}
525
- export const TerminateConsumersSubscriptionResponse = /*@__PURE__*/ S.suspend(() =>
526
- S.Struct({}),
527
- ).annotate({
528
- identifier: "TerminateConsumersSubscriptionResponse",
529
- }) as any as S.Schema<TerminateConsumersSubscriptionResponse>;
530
-
531
227
  export interface VendorsSubscriptionsListByOrganizationRequest {
532
228
  organizationId: string;
533
229
  cursor?: string;
@@ -536,25 +232,6 @@ export interface VendorsSubscriptionsListByOrganizationRequest {
536
232
  /** Flag to control if cancelled or rejected subscriptions should be returned. */
537
233
  includeExpired?: boolean;
538
234
  }
539
- export const VendorsSubscriptionsListByOrganizationRequest = /*@__PURE__*/ S.suspend(() =>
540
- S.Struct({
541
- organizationId: S.String.pipe(T.Label()),
542
- cursor: S.optional(S.String.pipe(T.Query())),
543
- limit: S.optional(S.Number.pipe(T.Query())),
544
- productId: S.optional(S.String.pipe(T.Query())),
545
- includeExpired: S.optional(S.Boolean.pipe(T.Query())),
546
- }).pipe(
547
- T.Http({
548
- method: "GET",
549
- uri: "/v1/vendors/organizations/{organizationId}/subscriptions",
550
- code: 200,
551
- baseUrl: "https://stackit-marketplace.api.stackit.cloud",
552
- }),
553
- ),
554
- ).annotate({
555
- identifier: "VendorsSubscriptionsListByOrganizationRequest",
556
- }) as any as S.Schema<VendorsSubscriptionsListByOrganizationRequest>;
557
-
558
235
  export interface VendorsSubscriptionsListByProjectRequest {
559
236
  projectId: string;
560
237
  cursor?: string;
@@ -563,25 +240,6 @@ export interface VendorsSubscriptionsListByProjectRequest {
563
240
  /** Flag to control if cancelled or rejected subscriptions should be returned. */
564
241
  includeExpired?: boolean;
565
242
  }
566
- export const VendorsSubscriptionsListByProjectRequest = /*@__PURE__*/ S.suspend(() =>
567
- S.Struct({
568
- projectId: S.String.pipe(T.Label()),
569
- cursor: S.optional(S.String.pipe(T.Query())),
570
- limit: S.optional(S.Number.pipe(T.Query())),
571
- productId: S.optional(S.String.pipe(T.Query())),
572
- includeExpired: S.optional(S.Boolean.pipe(T.Query())),
573
- }).pipe(
574
- T.Http({
575
- method: "GET",
576
- uri: "/v1/vendors/projects/{projectId}/subscriptions",
577
- code: 200,
578
- baseUrl: "https://stackit-marketplace.api.stackit.cloud",
579
- }),
580
- ),
581
- ).annotate({
582
- identifier: "VendorsSubscriptionsListByProjectRequest",
583
- }) as any as S.Schema<VendorsSubscriptionsListByProjectRequest>;
584
-
585
243
  export type ApproveSubscriptionError = BadRequest | Forbidden | NotFound | StackitOpError;
586
244
  /** Approve a pending subscription. Approve a pending subscription. */
587
245
  export const approveSubscription: API.OperationMethod<
@@ -590,8 +248,8 @@ export const approveSubscription: API.OperationMethod<
590
248
  ApproveSubscriptionError,
591
249
  StackitOpContext
592
250
  > = /*@__PURE__*/ API.make(() => ({
593
- input: ApproveSubscriptionRequest,
594
- output: ApproveSubscriptionResponse,
251
+ input: __S(56, __c7, 0) as any as S.Schema<ApproveSubscriptionRequest>,
252
+ output: __S(64, __c8, 0) as any as S.Schema<ApproveSubscriptionResponse>,
595
253
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
596
254
  protocol: StackitProtocol,
597
255
  retry: Retry.Retry,
@@ -610,8 +268,8 @@ export const cancelConsumersSubscription: API.OperationMethod<
610
268
  CancelConsumersSubscriptionError,
611
269
  StackitOpContext
612
270
  > = /*@__PURE__*/ API.make(() => ({
613
- input: CancelConsumersSubscriptionRequest,
614
- output: CancelConsumersSubscriptionResponse,
271
+ input: __S(72, __c9, 0) as any as S.Schema<CancelConsumersSubscriptionRequest>,
272
+ output: __S(64, __c8, 0) as any as S.Schema<CancelConsumersSubscriptionResponse>,
615
273
  errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
616
274
  protocol: StackitProtocol,
617
275
  retry: Retry.Retry,
@@ -625,8 +283,8 @@ export const consumersSubscriptionsListByOrganization: API.OperationMethod<
625
283
  ConsumersSubscriptionsListByOrganizationError,
626
284
  StackitOpContext
627
285
  > = /*@__PURE__*/ API.make(() => ({
628
- input: ConsumersSubscriptionsListByOrganizationRequest,
629
- output: MarketplaceSubscriptionV1ListSubscriptionsResponse,
286
+ input: __S(80, __c10, 0) as any as S.Schema<ConsumersSubscriptionsListByOrganizationRequest>,
287
+ output: __S(89, __c11, 1) as any as S.Schema<MarketplaceSubscriptionV1ListSubscriptionsResponse>,
630
288
  errors: [BadRequest, Forbidden, UnknownStackitError],
631
289
  protocol: StackitProtocol,
632
290
  retry: Retry.Retry,
@@ -640,8 +298,8 @@ export const consumersSubscriptionsListByProject: API.OperationMethod<
640
298
  ConsumersSubscriptionsListByProjectError,
641
299
  StackitOpContext
642
300
  > = /*@__PURE__*/ API.make(() => ({
643
- input: ConsumersSubscriptionsListByProjectRequest,
644
- output: MarketplaceSubscriptionV1ListSubscriptionsResponse,
301
+ input: __S(104, __c13, 0) as any as S.Schema<ConsumersSubscriptionsListByProjectRequest>,
302
+ output: __S(89, __c11, 1) as any as S.Schema<MarketplaceSubscriptionV1ListSubscriptionsResponse>,
645
303
  errors: [BadRequest, Forbidden, UnknownStackitError],
646
304
  protocol: StackitProtocol,
647
305
  retry: Retry.Retry,
@@ -655,8 +313,8 @@ export const createConsumersSubscription: API.OperationMethod<
655
313
  CreateConsumersSubscriptionError,
656
314
  StackitOpContext
657
315
  > = /*@__PURE__*/ API.make(() => ({
658
- input: CreateConsumersSubscriptionRequest,
659
- output: MarketplaceSubscriptionV1Subscription,
316
+ input: __S(112, __c14, 0) as any as S.Schema<CreateConsumersSubscriptionRequest>,
317
+ output: __S(100, __c12, 4) as any as S.Schema<MarketplaceSubscriptionV1Subscription>,
660
318
  errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
661
319
  protocol: StackitProtocol,
662
320
  retry: Retry.Retry,
@@ -670,8 +328,8 @@ export const getConsumersSubscription: API.OperationMethod<
670
328
  GetConsumersSubscriptionError,
671
329
  StackitOpContext
672
330
  > = /*@__PURE__*/ API.make(() => ({
673
- input: GetConsumersSubscriptionRequest,
674
- output: MarketplaceSubscriptionV1Subscription,
331
+ input: __S(120, __c15, 0) as any as S.Schema<GetConsumersSubscriptionRequest>,
332
+ output: __S(100, __c12, 4) as any as S.Schema<MarketplaceSubscriptionV1Subscription>,
675
333
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
676
334
  protocol: StackitProtocol,
677
335
  retry: Retry.Retry,
@@ -685,8 +343,8 @@ export const getConsumersSubscriptionsRedirect: API.OperationMethod<
685
343
  GetConsumersSubscriptionsRedirectError,
686
344
  StackitOpContext
687
345
  > = /*@__PURE__*/ API.make(() => ({
688
- input: GetConsumersSubscriptionsRedirectRequest,
689
- output: MarketplaceSubscriptionV1SubscriptionRedirect,
346
+ input: __S(0, __c0, 0) as any as S.Schema<GetConsumersSubscriptionsRedirectRequest>,
347
+ output: __S(1, __c0, 1) as any as S.Schema<MarketplaceSubscriptionV1SubscriptionRedirect>,
690
348
  errors: [BadRequest, Forbidden, UnknownStackitError],
691
349
  protocol: StackitProtocol,
692
350
  retry: Retry.Retry,
@@ -700,8 +358,8 @@ export const getVendorsSubscription: API.OperationMethod<
700
358
  GetVendorsSubscriptionError,
701
359
  StackitOpContext
702
360
  > = /*@__PURE__*/ API.make(() => ({
703
- input: GetVendorsSubscriptionRequest,
704
- output: MarketplaceSubscriptionV1Subscription,
361
+ input: __S(8, __c1, 0) as any as S.Schema<GetVendorsSubscriptionRequest>,
362
+ output: __S(100, __c12, 4) as any as S.Schema<MarketplaceSubscriptionV1Subscription>,
705
363
  errors: [BadRequest, Forbidden, UnknownStackitError],
706
364
  protocol: StackitProtocol,
707
365
  retry: Retry.Retry,
@@ -715,8 +373,8 @@ export const rejectVendorsSubscription: API.OperationMethod<
715
373
  RejectVendorsSubscriptionError,
716
374
  StackitOpContext
717
375
  > = /*@__PURE__*/ API.make(() => ({
718
- input: RejectVendorsSubscriptionRequest,
719
- output: RejectVendorsSubscriptionResponse,
376
+ input: __S(16, __c2, 0) as any as S.Schema<RejectVendorsSubscriptionRequest>,
377
+ output: __S(64, __c8, 0) as any as S.Schema<RejectVendorsSubscriptionResponse>,
720
378
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
721
379
  protocol: StackitProtocol,
722
380
  retry: Retry.Retry,
@@ -730,8 +388,8 @@ export const resolveCustomer: API.OperationMethod<
730
388
  ResolveCustomerError,
731
389
  StackitOpContext
732
390
  > = /*@__PURE__*/ API.make(() => ({
733
- input: ResolveCustomerRequest,
734
- output: MarketplaceSubscriptionV1Subscription,
391
+ input: __S(24, __c3, 0) as any as S.Schema<ResolveCustomerRequest>,
392
+ output: __S(100, __c12, 4) as any as S.Schema<MarketplaceSubscriptionV1Subscription>,
735
393
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
736
394
  protocol: StackitProtocol,
737
395
  retry: Retry.Retry,
@@ -749,8 +407,8 @@ export const terminateConsumersSubscription: API.OperationMethod<
749
407
  TerminateConsumersSubscriptionError,
750
408
  StackitOpContext
751
409
  > = /*@__PURE__*/ API.make(() => ({
752
- input: TerminateConsumersSubscriptionRequest,
753
- output: TerminateConsumersSubscriptionResponse,
410
+ input: __S(32, __c4, 0) as any as S.Schema<TerminateConsumersSubscriptionRequest>,
411
+ output: __S(64, __c8, 0) as any as S.Schema<TerminateConsumersSubscriptionResponse>,
754
412
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
755
413
  protocol: StackitProtocol,
756
414
  retry: Retry.Retry,
@@ -764,8 +422,8 @@ export const vendorsSubscriptionsListByOrganization: API.OperationMethod<
764
422
  VendorsSubscriptionsListByOrganizationError,
765
423
  StackitOpContext
766
424
  > = /*@__PURE__*/ API.make(() => ({
767
- input: VendorsSubscriptionsListByOrganizationRequest,
768
- output: MarketplaceSubscriptionV1ListSubscriptionsResponse,
425
+ input: __S(40, __c5, 0) as any as S.Schema<VendorsSubscriptionsListByOrganizationRequest>,
426
+ output: __S(89, __c11, 1) as any as S.Schema<MarketplaceSubscriptionV1ListSubscriptionsResponse>,
769
427
  errors: [BadRequest, Forbidden, UnknownStackitError],
770
428
  protocol: StackitProtocol,
771
429
  retry: Retry.Retry,
@@ -779,9 +437,356 @@ export const vendorsSubscriptionsListByProject: API.OperationMethod<
779
437
  VendorsSubscriptionsListByProjectError,
780
438
  StackitOpContext
781
439
  > = /*@__PURE__*/ API.make(() => ({
782
- input: VendorsSubscriptionsListByProjectRequest,
783
- output: MarketplaceSubscriptionV1ListSubscriptionsResponse,
440
+ input: __S(48, __c6, 0) as any as S.Schema<VendorsSubscriptionsListByProjectRequest>,
441
+ output: __S(89, __c11, 1) as any as S.Schema<MarketplaceSubscriptionV1ListSubscriptionsResponse>,
784
442
  errors: [BadRequest, Forbidden, UnknownStackitError],
785
443
  protocol: StackitProtocol,
786
444
  retry: Retry.Retry,
787
445
  }));
446
+
447
+ // Schema builders: each runs one schema initializer, on that schema's first use.
448
+ function __c0(j: number): any {
449
+ switch (j) {
450
+ case 0:
451
+ return S.suspend(() =>
452
+ S.Struct({
453
+ projectId: S.String.pipe(T.Label()),
454
+ subscriptionId: S.String.pipe(T.Label()),
455
+ redirectTarget: S.optional(S.String.pipe(T.Query())),
456
+ }).pipe(
457
+ T.Http({
458
+ method: "GET",
459
+ uri: "/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}/redirects",
460
+ code: 200,
461
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
462
+ }),
463
+ ),
464
+ ).annotate({ identifier: "GetConsumersSubscriptionsRedirectRequest" });
465
+ case 1:
466
+ return S.suspend(() =>
467
+ S.Struct({
468
+ redirectTarget: S.String,
469
+ redirectUrl: S.String,
470
+ }),
471
+ ).annotate({ identifier: "MarketplaceSubscriptionV1SubscriptionRedirect" });
472
+ }
473
+ }
474
+ function __c1(j: number): any {
475
+ switch (j) {
476
+ case 0:
477
+ return S.suspend(() =>
478
+ S.Struct({
479
+ projectId: S.String.pipe(T.Label()),
480
+ subscriptionId: S.String.pipe(T.Label()),
481
+ includeExpired: S.optional(S.Boolean.pipe(T.Query())),
482
+ }).pipe(
483
+ T.Http({
484
+ method: "GET",
485
+ uri: "/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}",
486
+ code: 200,
487
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
488
+ }),
489
+ ),
490
+ ).annotate({ identifier: "GetVendorsSubscriptionRequest" });
491
+ }
492
+ }
493
+ function __c2(j: number): any {
494
+ switch (j) {
495
+ case 0:
496
+ return S.suspend(() =>
497
+ S.Struct({
498
+ projectId: S.String.pipe(T.Label()),
499
+ subscriptionId: S.String.pipe(T.Label()),
500
+ }).pipe(
501
+ T.Http({
502
+ method: "POST",
503
+ uri: "/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}/reject",
504
+ code: 200,
505
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
506
+ }),
507
+ ),
508
+ ).annotate({ identifier: "RejectVendorsSubscriptionRequest" });
509
+ }
510
+ }
511
+ function __c3(j: number): any {
512
+ switch (j) {
513
+ case 0:
514
+ return S.suspend(() =>
515
+ S.Struct({
516
+ projectId: S.String.pipe(T.Label()),
517
+ token: S.String,
518
+ }).pipe(
519
+ T.Http({
520
+ method: "POST",
521
+ uri: "/v1/vendors/projects/{projectId}/resolve-customer",
522
+ code: 200,
523
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
524
+ }),
525
+ ),
526
+ ).annotate({ identifier: "ResolveCustomerRequest" });
527
+ }
528
+ }
529
+ function __c4(j: number): any {
530
+ switch (j) {
531
+ case 0:
532
+ return S.suspend(() =>
533
+ S.Struct({
534
+ projectId: S.String.pipe(T.Label()),
535
+ subscriptionId: S.String.pipe(T.Label()),
536
+ }).pipe(
537
+ T.Http({
538
+ method: "POST",
539
+ uri: "/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}/terminate",
540
+ code: 200,
541
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
542
+ }),
543
+ ),
544
+ ).annotate({ identifier: "TerminateConsumersSubscriptionRequest" });
545
+ }
546
+ }
547
+ function __c5(j: number): any {
548
+ switch (j) {
549
+ case 0:
550
+ return S.suspend(() =>
551
+ S.Struct({
552
+ organizationId: S.String.pipe(T.Label()),
553
+ cursor: S.optional(S.String.pipe(T.Query())),
554
+ limit: S.optional(S.Number.pipe(T.Query())),
555
+ productId: S.optional(S.String.pipe(T.Query())),
556
+ includeExpired: S.optional(S.Boolean.pipe(T.Query())),
557
+ }).pipe(
558
+ T.Http({
559
+ method: "GET",
560
+ uri: "/v1/vendors/organizations/{organizationId}/subscriptions",
561
+ code: 200,
562
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
563
+ }),
564
+ ),
565
+ ).annotate({ identifier: "VendorsSubscriptionsListByOrganizationRequest" });
566
+ }
567
+ }
568
+ function __c6(j: number): any {
569
+ switch (j) {
570
+ case 0:
571
+ return S.suspend(() =>
572
+ S.Struct({
573
+ projectId: S.String.pipe(T.Label()),
574
+ cursor: S.optional(S.String.pipe(T.Query())),
575
+ limit: S.optional(S.Number.pipe(T.Query())),
576
+ productId: S.optional(S.String.pipe(T.Query())),
577
+ includeExpired: S.optional(S.Boolean.pipe(T.Query())),
578
+ }).pipe(
579
+ T.Http({
580
+ method: "GET",
581
+ uri: "/v1/vendors/projects/{projectId}/subscriptions",
582
+ code: 200,
583
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
584
+ }),
585
+ ),
586
+ ).annotate({ identifier: "VendorsSubscriptionsListByProjectRequest" });
587
+ }
588
+ }
589
+ function __c7(j: number): any {
590
+ switch (j) {
591
+ case 0:
592
+ return S.suspend(() =>
593
+ S.Struct({
594
+ projectId: S.String.pipe(T.Label()),
595
+ subscriptionId: S.String.pipe(T.Label()),
596
+ instanceTarget: S.optional(S.String),
597
+ }).pipe(
598
+ T.Http({
599
+ method: "POST",
600
+ uri: "/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}/approve",
601
+ code: 200,
602
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
603
+ }),
604
+ ),
605
+ ).annotate({ identifier: "ApproveSubscriptionRequest" });
606
+ }
607
+ }
608
+ function __c8(j: number): any {
609
+ switch (j) {
610
+ case 0:
611
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "ApproveSubscriptionResponse" });
612
+ }
613
+ }
614
+ function __c9(j: number): any {
615
+ switch (j) {
616
+ case 0:
617
+ return S.suspend(() =>
618
+ S.Struct({
619
+ projectId: S.String.pipe(T.Label()),
620
+ subscriptionId: S.String.pipe(T.Label()),
621
+ }).pipe(
622
+ T.Http({
623
+ method: "DELETE",
624
+ uri: "/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}",
625
+ code: 200,
626
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
627
+ }),
628
+ ),
629
+ ).annotate({ identifier: "CancelConsumersSubscriptionRequest" });
630
+ }
631
+ }
632
+ function __c10(j: number): any {
633
+ switch (j) {
634
+ case 0:
635
+ return S.suspend(() =>
636
+ S.Struct({
637
+ organizationId: S.String.pipe(T.Label()),
638
+ cursor: S.optional(S.String.pipe(T.Query())),
639
+ limit: S.optional(S.Number.pipe(T.Query())),
640
+ productId: S.optional(S.String.pipe(T.Query())),
641
+ includeExpired: S.optional(S.Boolean.pipe(T.Query())),
642
+ }).pipe(
643
+ T.Http({
644
+ method: "GET",
645
+ uri: "/v1/consumers/organizations/{organizationId}/subscriptions",
646
+ code: 200,
647
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
648
+ }),
649
+ ),
650
+ ).annotate({ identifier: "ConsumersSubscriptionsListByOrganizationRequest" });
651
+ }
652
+ }
653
+ function __c11(j: number): any {
654
+ switch (j) {
655
+ case 0:
656
+ return S.Array(__S(100, __c12, 4));
657
+ case 1:
658
+ return S.suspend(() =>
659
+ S.Struct({
660
+ cursor: S.optional(S.String),
661
+ items: S.optional(__S(88, __c11, 0)),
662
+ limit: S.optional(S.Number),
663
+ }),
664
+ ).annotate({ identifier: "MarketplaceSubscriptionV1ListSubscriptionsResponse" });
665
+ }
666
+ }
667
+ function __c12(j: number): any {
668
+ switch (j) {
669
+ case 0:
670
+ return S.suspend(() =>
671
+ S.Struct({
672
+ de: S.optional(S.String),
673
+ en: S.optional(S.String),
674
+ }),
675
+ ).annotate({ identifier: "MarketplaceSubscriptionV1FileLocalizedVersion" });
676
+ case 1:
677
+ return S.suspend(() =>
678
+ S.Struct({
679
+ version: S.optional(__S(96, __c12, 0)),
680
+ }),
681
+ ).annotate({ identifier: "MarketplaceSubscriptionV1File" });
682
+ case 2:
683
+ return S.suspend(() =>
684
+ S.Struct({
685
+ endUserLicenseAgreement: S.optional(__S(97, __c12, 1)),
686
+ productDescription: S.optional(__S(97, __c12, 1)),
687
+ serviceCertificate: S.optional(__S(97, __c12, 1)),
688
+ serviceLevelAgreement: S.optional(__S(97, __c12, 1)),
689
+ }),
690
+ ).annotate({ identifier: "MarketplaceSubscriptionV1Assets" });
691
+ case 3:
692
+ return S.suspend(() =>
693
+ S.Struct({
694
+ assets: S.optional(__S(98, __c12, 2)),
695
+ deliveryMethod: S.String,
696
+ lifecycleState: S.String,
697
+ noticePeriod: S.String,
698
+ planId: S.String,
699
+ priceType: S.String,
700
+ pricingPlan: S.String,
701
+ productId: S.String,
702
+ productName: S.String,
703
+ rate: S.String,
704
+ validityPeriod: S.String,
705
+ vendorName: S.String,
706
+ vendorPlanId: S.optional(S.String),
707
+ vendorProductId: S.optional(S.String),
708
+ vendorWebsiteUrl: S.String,
709
+ }),
710
+ ).annotate({ identifier: "MarketplaceSubscriptionV1SubscriptionProduct" });
711
+ case 4:
712
+ return S.suspend(() =>
713
+ S.Struct({
714
+ approvalTimeout: S.optional(S.String),
715
+ autoRenewal: S.optional(S.Boolean),
716
+ lifecycleState: S.String,
717
+ orderedAt: S.String,
718
+ organizationId: S.String,
719
+ product: __S(99, __c12, 3),
720
+ projectId: S.String,
721
+ subscriptionId: S.String,
722
+ terminatesAt: S.optional(S.String),
723
+ validFrom: S.optional(S.String),
724
+ validUntil: S.optional(S.String),
725
+ }),
726
+ ).annotate({ identifier: "MarketplaceSubscriptionV1Subscription" });
727
+ }
728
+ }
729
+ function __c13(j: number): any {
730
+ switch (j) {
731
+ case 0:
732
+ return S.suspend(() =>
733
+ S.Struct({
734
+ projectId: S.String.pipe(T.Label()),
735
+ cursor: S.optional(S.String.pipe(T.Query())),
736
+ limit: S.optional(S.Number.pipe(T.Query())),
737
+ productId: S.optional(S.String.pipe(T.Query())),
738
+ includeExpired: S.optional(S.Boolean.pipe(T.Query())),
739
+ }).pipe(
740
+ T.Http({
741
+ method: "GET",
742
+ uri: "/v1/consumers/projects/{projectId}/subscriptions",
743
+ code: 200,
744
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
745
+ }),
746
+ ),
747
+ ).annotate({ identifier: "ConsumersSubscriptionsListByProjectRequest" });
748
+ }
749
+ }
750
+ function __c14(j: number): any {
751
+ switch (j) {
752
+ case 0:
753
+ return S.suspend(() =>
754
+ S.Struct({
755
+ projectId: S.String.pipe(T.Label()),
756
+ consumerNotificationEmail: S.optional(S.String),
757
+ productId: S.String,
758
+ sku: S.String,
759
+ }).pipe(
760
+ T.Http({
761
+ method: "POST",
762
+ uri: "/v1/consumers/projects/{projectId}/subscriptions",
763
+ code: 200,
764
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
765
+ }),
766
+ ),
767
+ ).annotate({ identifier: "CreateConsumersSubscriptionRequest" });
768
+ }
769
+ }
770
+ function __c15(j: number): any {
771
+ switch (j) {
772
+ case 0:
773
+ return S.suspend(() =>
774
+ S.Struct({
775
+ projectId: S.String.pipe(T.Label()),
776
+ subscriptionId: S.String.pipe(T.Label()),
777
+ includeExpired: S.optional(S.Boolean.pipe(T.Query())),
778
+ }).pipe(
779
+ T.Http({
780
+ method: "GET",
781
+ uri: "/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}",
782
+ code: 200,
783
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
784
+ }),
785
+ ),
786
+ ).annotate({ identifier: "GetConsumersSubscriptionRequest" });
787
+ }
788
+ }
789
+ // Schema table: entry i is schema j of builder f, made on first reach.
790
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
791
+ return (__s[i] ??= __L.at(f, j));
792
+ }