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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (298) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +33 -2
  3. package/lib/credentials.d.ts +29 -0
  4. package/lib/credentials.d.ts.map +1 -0
  5. package/lib/credentials.js +49 -0
  6. package/lib/credentials.js.map +1 -0
  7. package/lib/errors.d.ts +36 -0
  8. package/lib/errors.d.ts.map +1 -0
  9. package/lib/errors.js +26 -0
  10. package/lib/errors.js.map +1 -0
  11. package/lib/index.d.ts +30 -0
  12. package/lib/index.d.ts.map +1 -0
  13. package/lib/index.js +30 -0
  14. package/lib/index.js.map +1 -0
  15. package/lib/pagination.d.ts +9 -0
  16. package/lib/pagination.d.ts.map +1 -0
  17. package/lib/pagination.js +48 -0
  18. package/lib/pagination.js.map +1 -0
  19. package/lib/protocol.d.ts +32 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +148 -0
  22. package/lib/protocol.js.map +1 -0
  23. package/lib/response-validation.test.d.ts +4 -0
  24. package/lib/response-validation.test.d.ts.map +1 -0
  25. package/lib/response-validation.test.js +31 -0
  26. package/lib/response-validation.test.js.map +1 -0
  27. package/lib/retry.d.ts +31 -0
  28. package/lib/retry.d.ts.map +1 -0
  29. package/lib/retry.js +31 -0
  30. package/lib/retry.js.map +1 -0
  31. package/lib/services/alb.d.ts +603 -0
  32. package/lib/services/alb.d.ts.map +1 -0
  33. package/lib/services/alb.js +562 -0
  34. package/lib/services/alb.js.map +1 -0
  35. package/lib/services/alb_waf.d.ts +526 -0
  36. package/lib/services/alb_waf.d.ts.map +1 -0
  37. package/lib/services/alb_waf.js +545 -0
  38. package/lib/services/alb_waf.js.map +1 -0
  39. package/lib/services/authorization.d.ts +251 -0
  40. package/lib/services/authorization.d.ts.map +1 -0
  41. package/lib/services/authorization.js +353 -0
  42. package/lib/services/authorization.js.map +1 -0
  43. package/lib/services/automation.d.ts +358 -0
  44. package/lib/services/automation.d.ts.map +1 -0
  45. package/lib/services/automation.js +426 -0
  46. package/lib/services/automation.js.map +1 -0
  47. package/lib/services/cdn.d.ts +1239 -0
  48. package/lib/services/cdn.d.ts.map +1 -0
  49. package/lib/services/cdn.js +992 -0
  50. package/lib/services/cdn.js.map +1 -0
  51. package/lib/services/certificates.d.ts +201 -0
  52. package/lib/services/certificates.d.ts.map +1 -0
  53. package/lib/services/certificates.js +197 -0
  54. package/lib/services/certificates.js.map +1 -0
  55. package/lib/services/cost.d.ts +222 -0
  56. package/lib/services/cost.d.ts.map +1 -0
  57. package/lib/services/cost.js +188 -0
  58. package/lib/services/cost.js.map +1 -0
  59. package/lib/services/dns.d.ts +875 -0
  60. package/lib/services/dns.d.ts.map +1 -0
  61. package/lib/services/dns.js +854 -0
  62. package/lib/services/dns.js.map +1 -0
  63. package/lib/services/dremio.d.ts +358 -0
  64. package/lib/services/dremio.d.ts.map +1 -0
  65. package/lib/services/dremio.js +339 -0
  66. package/lib/services/dremio.js.map +1 -0
  67. package/lib/services/edge.d.ts +312 -0
  68. package/lib/services/edge.d.ts.map +1 -0
  69. package/lib/services/edge.js +375 -0
  70. package/lib/services/edge.js.map +1 -0
  71. package/lib/services/functions.d.ts +409 -0
  72. package/lib/services/functions.d.ts.map +1 -0
  73. package/lib/services/functions.js +423 -0
  74. package/lib/services/functions.js.map +1 -0
  75. package/lib/services/git.d.ts +497 -0
  76. package/lib/services/git.d.ts.map +1 -0
  77. package/lib/services/git.js +552 -0
  78. package/lib/services/git.js.map +1 -0
  79. package/lib/services/iaas.d.ts +2965 -0
  80. package/lib/services/iaas.d.ts.map +1 -0
  81. package/lib/services/iaas.js +3768 -0
  82. package/lib/services/iaas.js.map +1 -0
  83. package/lib/services/index.d.ts +51 -0
  84. package/lib/services/index.d.ts.map +1 -0
  85. package/lib/services/index.js +52 -0
  86. package/lib/services/index.js.map +1 -0
  87. package/lib/services/intake.d.ts +555 -0
  88. package/lib/services/intake.d.ts.map +1 -0
  89. package/lib/services/intake.js +513 -0
  90. package/lib/services/intake.js.map +1 -0
  91. package/lib/services/kms.d.ts +654 -0
  92. package/lib/services/kms.d.ts.map +1 -0
  93. package/lib/services/kms.js +703 -0
  94. package/lib/services/kms.js.map +1 -0
  95. package/lib/services/lb_ip_lists.d.ts +162 -0
  96. package/lib/services/lb_ip_lists.d.ts.map +1 -0
  97. package/lib/services/lb_ip_lists.js +173 -0
  98. package/lib/services/lb_ip_lists.js.map +1 -0
  99. package/lib/services/load_balancer.d.ts +563 -0
  100. package/lib/services/load_balancer.d.ts.map +1 -0
  101. package/lib/services/load_balancer.js +542 -0
  102. package/lib/services/load_balancer.js.map +1 -0
  103. package/lib/services/logme.d.ts +516 -0
  104. package/lib/services/logme.d.ts.map +1 -0
  105. package/lib/services/logme.js +636 -0
  106. package/lib/services/logme.js.map +1 -0
  107. package/lib/services/logs.d.ts +436 -0
  108. package/lib/services/logs.d.ts.map +1 -0
  109. package/lib/services/logs.js +498 -0
  110. package/lib/services/logs.js.map +1 -0
  111. package/lib/services/mariadb.d.ts +479 -0
  112. package/lib/services/mariadb.d.ts.map +1 -0
  113. package/lib/services/mariadb.js +611 -0
  114. package/lib/services/mariadb.js.map +1 -0
  115. package/lib/services/model_experiments.d.ts +306 -0
  116. package/lib/services/model_experiments.d.ts.map +1 -0
  117. package/lib/services/model_experiments.js +356 -0
  118. package/lib/services/model_experiments.js.map +1 -0
  119. package/lib/services/model_serving.d.ts +289 -0
  120. package/lib/services/model_serving.d.ts.map +1 -0
  121. package/lib/services/model_serving.js +319 -0
  122. package/lib/services/model_serving.js.map +1 -0
  123. package/lib/services/mongodb_flex.d.ts +826 -0
  124. package/lib/services/mongodb_flex.d.ts.map +1 -0
  125. package/lib/services/mongodb_flex.js +889 -0
  126. package/lib/services/mongodb_flex.js.map +1 -0
  127. package/lib/services/object_storage.d.ts +446 -0
  128. package/lib/services/object_storage.d.ts.map +1 -0
  129. package/lib/services/object_storage.js +577 -0
  130. package/lib/services/object_storage.js.map +1 -0
  131. package/lib/services/observability.d.ts +2750 -0
  132. package/lib/services/observability.d.ts.map +1 -0
  133. package/lib/services/observability.js +3407 -0
  134. package/lib/services/observability.js.map +1 -0
  135. package/lib/services/opensearch.d.ts +505 -0
  136. package/lib/services/opensearch.d.ts.map +1 -0
  137. package/lib/services/opensearch.js +623 -0
  138. package/lib/services/opensearch.js.map +1 -0
  139. package/lib/services/pim.d.ts +997 -0
  140. package/lib/services/pim.d.ts.map +1 -0
  141. package/lib/services/pim.js +789 -0
  142. package/lib/services/pim.js.map +1 -0
  143. package/lib/services/postgres_flex.d.ts +854 -0
  144. package/lib/services/postgres_flex.d.ts.map +1 -0
  145. package/lib/services/postgres_flex.js +1018 -0
  146. package/lib/services/postgres_flex.js.map +1 -0
  147. package/lib/services/pubsub.d.ts +489 -0
  148. package/lib/services/pubsub.d.ts.map +1 -0
  149. package/lib/services/pubsub.js +614 -0
  150. package/lib/services/pubsub.js.map +1 -0
  151. package/lib/services/rabbitmq.d.ts +523 -0
  152. package/lib/services/rabbitmq.d.ts.map +1 -0
  153. package/lib/services/rabbitmq.js +636 -0
  154. package/lib/services/rabbitmq.js.map +1 -0
  155. package/lib/services/registry.d.ts +212 -0
  156. package/lib/services/registry.d.ts.map +1 -0
  157. package/lib/services/registry.js +221 -0
  158. package/lib/services/registry.js.map +1 -0
  159. package/lib/services/resource_manager.d.ts +458 -0
  160. package/lib/services/resource_manager.d.ts.map +1 -0
  161. package/lib/services/resource_manager.js +503 -0
  162. package/lib/services/resource_manager.js.map +1 -0
  163. package/lib/services/run_command.d.ts +175 -0
  164. package/lib/services/run_command.d.ts.map +1 -0
  165. package/lib/services/run_command.js +203 -0
  166. package/lib/services/run_command.js.map +1 -0
  167. package/lib/services/sca.d.ts +541 -0
  168. package/lib/services/sca.d.ts.map +1 -0
  169. package/lib/services/sca.js +478 -0
  170. package/lib/services/sca.js.map +1 -0
  171. package/lib/services/scf.d.ts +498 -0
  172. package/lib/services/scf.d.ts.map +1 -0
  173. package/lib/services/scf.js +718 -0
  174. package/lib/services/scf.js.map +1 -0
  175. package/lib/services/secrets_manager.d.ts +505 -0
  176. package/lib/services/secrets_manager.d.ts.map +1 -0
  177. package/lib/services/secrets_manager.js +659 -0
  178. package/lib/services/secrets_manager.js.map +1 -0
  179. package/lib/services/server_backup.d.ts +380 -0
  180. package/lib/services/server_backup.d.ts.map +1 -0
  181. package/lib/services/server_backup.js +474 -0
  182. package/lib/services/server_backup.js.map +1 -0
  183. package/lib/services/server_update.d.ts +292 -0
  184. package/lib/services/server_update.d.ts.map +1 -0
  185. package/lib/services/server_update.js +364 -0
  186. package/lib/services/server_update.js.map +1 -0
  187. package/lib/services/service_account.d.ts +465 -0
  188. package/lib/services/service_account.d.ts.map +1 -0
  189. package/lib/services/service_account.js +523 -0
  190. package/lib/services/service_account.js.map +1 -0
  191. package/lib/services/service_enablement.d.ts +149 -0
  192. package/lib/services/service_enablement.d.ts.map +1 -0
  193. package/lib/services/service_enablement.js +159 -0
  194. package/lib/services/service_enablement.js.map +1 -0
  195. package/lib/services/sfs.d.ts +721 -0
  196. package/lib/services/sfs.d.ts.map +1 -0
  197. package/lib/services/sfs.js +845 -0
  198. package/lib/services/sfs.js.map +1 -0
  199. package/lib/services/ske.d.ts +536 -0
  200. package/lib/services/ske.d.ts.map +1 -0
  201. package/lib/services/ske.js +598 -0
  202. package/lib/services/ske.js.map +1 -0
  203. package/lib/services/sqlserverflex.d.ts +956 -0
  204. package/lib/services/sqlserverflex.d.ts.map +1 -0
  205. package/lib/services/sqlserverflex.js +1087 -0
  206. package/lib/services/sqlserverflex.js.map +1 -0
  207. package/lib/services/stackit_marketplace.d.ts +288 -0
  208. package/lib/services/stackit_marketplace.d.ts.map +1 -0
  209. package/lib/services/stackit_marketplace.js +393 -0
  210. package/lib/services/stackit_marketplace.js.map +1 -0
  211. package/lib/services/telemetry_link.d.ts +443 -0
  212. package/lib/services/telemetry_link.d.ts.map +1 -0
  213. package/lib/services/telemetry_link.js +550 -0
  214. package/lib/services/telemetry_link.js.map +1 -0
  215. package/lib/services/telemetry_router.d.ts +493 -0
  216. package/lib/services/telemetry_router.d.ts.map +1 -0
  217. package/lib/services/telemetry_router.js +523 -0
  218. package/lib/services/telemetry_router.js.map +1 -0
  219. package/lib/services/ufw.d.ts +295 -0
  220. package/lib/services/ufw.d.ts.map +1 -0
  221. package/lib/services/ufw.js +301 -0
  222. package/lib/services/ufw.js.map +1 -0
  223. package/lib/services/valkey.d.ts +505 -0
  224. package/lib/services/valkey.d.ts.map +1 -0
  225. package/lib/services/valkey.js +627 -0
  226. package/lib/services/valkey.js.map +1 -0
  227. package/lib/services/vpn.d.ts +1024 -0
  228. package/lib/services/vpn.d.ts.map +1 -0
  229. package/lib/services/vpn.js +1013 -0
  230. package/lib/services/vpn.js.map +1 -0
  231. package/lib/services/workflows.d.ts +600 -0
  232. package/lib/services/workflows.d.ts.map +1 -0
  233. package/lib/services/workflows.js +556 -0
  234. package/lib/services/workflows.js.map +1 -0
  235. package/lib/traits.d.ts +24 -0
  236. package/lib/traits.d.ts.map +1 -0
  237. package/lib/traits.js +15 -0
  238. package/lib/traits.js.map +1 -0
  239. package/package.json +83 -3
  240. package/src/credentials.ts +90 -0
  241. package/src/errors.ts +50 -0
  242. package/src/index.ts +34 -0
  243. package/src/pagination.ts +73 -0
  244. package/src/protocol.ts +243 -0
  245. package/src/response-validation.test.ts +45 -0
  246. package/src/retry.ts +53 -0
  247. package/src/services/alb.ts +1409 -0
  248. package/src/services/alb_waf.ts +1347 -0
  249. package/src/services/authorization.ts +740 -0
  250. package/src/services/automation.ts +966 -0
  251. package/src/services/cdn.ts +2736 -0
  252. package/src/services/certificates.ts +450 -0
  253. package/src/services/cost.ts +484 -0
  254. package/src/services/dns.ts +2271 -0
  255. package/src/services/dremio.ts +803 -0
  256. package/src/services/edge.ts +839 -0
  257. package/src/services/functions.ts +1010 -0
  258. package/src/services/git.ts +1275 -0
  259. package/src/services/iaas.ts +8670 -0
  260. package/src/services/index.ts +51 -0
  261. package/src/services/intake.ts +1233 -0
  262. package/src/services/kms.ts +1638 -0
  263. package/src/services/lb_ip_lists.ts +377 -0
  264. package/src/services/load_balancer.ts +1342 -0
  265. package/src/services/logme.ts +1379 -0
  266. package/src/services/logs.ts +1150 -0
  267. package/src/services/mariadb.ts +1293 -0
  268. package/src/services/model_experiments.ts +797 -0
  269. package/src/services/model_serving.ts +697 -0
  270. package/src/services/mongodb_flex.ts +2078 -0
  271. package/src/services/object_storage.ts +1248 -0
  272. package/src/services/observability.ts +7856 -0
  273. package/src/services/opensearch.ts +1354 -0
  274. package/src/services/pim.ts +2090 -0
  275. package/src/services/postgres_flex.ts +2326 -0
  276. package/src/services/pubsub.ts +1336 -0
  277. package/src/services/rabbitmq.ts +1402 -0
  278. package/src/services/registry.ts +494 -0
  279. package/src/services/resource_manager.ts +1155 -0
  280. package/src/services/run_command.ts +441 -0
  281. package/src/services/sca.ts +1222 -0
  282. package/src/services/scf.ts +1537 -0
  283. package/src/services/secrets_manager.ts +1399 -0
  284. package/src/services/server_backup.ts +1032 -0
  285. package/src/services/server_update.ts +767 -0
  286. package/src/services/service_account.ts +1208 -0
  287. package/src/services/service_enablement.ts +359 -0
  288. package/src/services/sfs.ts +1913 -0
  289. package/src/services/ske.ts +1408 -0
  290. package/src/services/sqlserverflex.ts +2543 -0
  291. package/src/services/stackit_marketplace.ts +853 -0
  292. package/src/services/telemetry_link.ts +1245 -0
  293. package/src/services/telemetry_router.ts +1205 -0
  294. package/src/services/ufw.ts +704 -0
  295. package/src/services/valkey.ts +1357 -0
  296. package/src/services/vpn.ts +2554 -0
  297. package/src/services/workflows.ts +1361 -0
  298. package/src/traits.ts +65 -0
@@ -0,0 +1,853 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import * as C from "@distilled.cloud/core/category";
5
+ import * as T from "../traits.ts";
6
+ import {
7
+ StackitProtocol,
8
+ type StackitOpError,
9
+ type StackitOpContext,
10
+ } from "../protocol.ts";
11
+ import { UnknownStackitError } from "../errors.ts";
12
+ import * as Retry from "../retry.ts";
13
+
14
+ export type { StackitOpError, StackitOpContext };
15
+
16
+ export class BadRequest
17
+ extends /*@__PURE__*/ T.applyErrorMatchers(
18
+ /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
19
+ code: S.Number,
20
+ message: S.String,
21
+ }).pipe(C.withBadRequestError),
22
+ [{ status: 400 }],
23
+ ) {}
24
+
25
+ export class Conflict
26
+ extends /*@__PURE__*/ T.applyErrorMatchers(
27
+ /*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
28
+ code: S.Number,
29
+ message: S.String,
30
+ }).pipe(C.withConflictError),
31
+ [{ status: 409 }],
32
+ ) {}
33
+
34
+ export class Forbidden
35
+ extends /*@__PURE__*/ T.applyErrorMatchers(
36
+ /*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
37
+ code: S.Number,
38
+ message: S.String,
39
+ }).pipe(C.withAuthError),
40
+ [{ status: 403 }],
41
+ ) {}
42
+
43
+ export class NotFound
44
+ extends /*@__PURE__*/ T.applyErrorMatchers(
45
+ /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
46
+ code: S.Number,
47
+ message: S.String,
48
+ }).pipe(C.withBadRequestError),
49
+ [{ status: 404 }],
50
+ ) {}
51
+
52
+ export interface ApproveSubscriptionRequest {
53
+ projectId: string;
54
+ subscriptionId: string;
55
+ /** The target URL of the user instance, used to redirect the user to the instance after the subscription is active. */
56
+ instanceTarget?: string;
57
+ }
58
+ export const ApproveSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
59
+ S.Struct({
60
+ projectId: S.String.pipe(T.Label()),
61
+ subscriptionId: S.String.pipe(T.Label()),
62
+ instanceTarget: S.optional(S.String),
63
+ }).pipe(
64
+ T.Http({
65
+ method: "POST",
66
+ uri: "/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}/approve",
67
+ code: 200,
68
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
69
+ }),
70
+ ),
71
+ ).annotate({
72
+ identifier: "ApproveSubscriptionRequest",
73
+ }) as any as S.Schema<ApproveSubscriptionRequest>;
74
+
75
+ export interface ApproveSubscriptionResponse {}
76
+ export const ApproveSubscriptionResponse = /*@__PURE__*/ S.suspend(() =>
77
+ S.Struct({}),
78
+ ).annotate({
79
+ identifier: "ApproveSubscriptionResponse",
80
+ }) as any as S.Schema<ApproveSubscriptionResponse>;
81
+
82
+ export interface CancelConsumersSubscriptionRequest {
83
+ projectId: string;
84
+ subscriptionId: string;
85
+ }
86
+ export const CancelConsumersSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
87
+ S.Struct({
88
+ projectId: S.String.pipe(T.Label()),
89
+ subscriptionId: S.String.pipe(T.Label()),
90
+ }).pipe(
91
+ T.Http({
92
+ method: "DELETE",
93
+ uri: "/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}",
94
+ code: 200,
95
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
96
+ }),
97
+ ),
98
+ ).annotate({
99
+ identifier: "CancelConsumersSubscriptionRequest",
100
+ }) as any as S.Schema<CancelConsumersSubscriptionRequest>;
101
+
102
+ export interface CancelConsumersSubscriptionResponse {}
103
+ export const CancelConsumersSubscriptionResponse = /*@__PURE__*/ S.suspend(() =>
104
+ S.Struct({}),
105
+ ).annotate({
106
+ identifier: "CancelConsumersSubscriptionResponse",
107
+ }) as any as S.Schema<CancelConsumersSubscriptionResponse>;
108
+
109
+ export interface ConsumersSubscriptionsListByOrganizationRequest {
110
+ organizationId: string;
111
+ cursor?: string;
112
+ limit?: number;
113
+ productId?: string;
114
+ /** Flag to control if cancelled or rejected subscriptions should be returned. */
115
+ includeExpired?: boolean;
116
+ }
117
+ export const ConsumersSubscriptionsListByOrganizationRequest =
118
+ /*@__PURE__*/ S.suspend(() =>
119
+ S.Struct({
120
+ organizationId: S.String.pipe(T.Label()),
121
+ cursor: S.optional(S.String.pipe(T.Query())),
122
+ limit: S.optional(S.Number.pipe(T.Query())),
123
+ productId: S.optional(S.String.pipe(T.Query())),
124
+ includeExpired: S.optional(S.Boolean.pipe(T.Query())),
125
+ }).pipe(
126
+ T.Http({
127
+ method: "GET",
128
+ uri: "/v1/consumers/organizations/{organizationId}/subscriptions",
129
+ code: 200,
130
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
131
+ }),
132
+ ),
133
+ ).annotate({
134
+ identifier: "ConsumersSubscriptionsListByOrganizationRequest",
135
+ }) as any as S.Schema<ConsumersSubscriptionsListByOrganizationRequest>;
136
+
137
+ export type MarketplaceSubscriptionV1SubscriptionLifecycleState =
138
+ | "STATE_UNSPECIFIED"
139
+ | "SUBSCRIPTION_PENDING"
140
+ | "SUBSCRIPTION_ACTIVE"
141
+ | "SUBSCRIPTION_INACTIVE"
142
+ | "SUBSCRIPTION_CANCELLING"
143
+ | "SUBSCRIPTION_CANCELLED"
144
+ | "SUBSCRIPTION_REJECTED"
145
+ | "SUBSCRIPTION_APPROVAL_TIMED_OUT";
146
+ export const MarketplaceSubscriptionV1SubscriptionLifecycleState =
147
+ /*@__PURE__*/ S.String;
148
+
149
+ export interface MarketplaceSubscriptionV1FileLocalizedVersion {
150
+ /** The file version matching the file name (localized). */
151
+ de?: string;
152
+ /** The file version matching the file name (localized). */
153
+ en?: string;
154
+ }
155
+ export const MarketplaceSubscriptionV1FileLocalizedVersion =
156
+ /*@__PURE__*/ S.suspend(() =>
157
+ S.Struct({
158
+ de: S.optional(S.String),
159
+ en: S.optional(S.String),
160
+ }),
161
+ ).annotate({
162
+ identifier: "MarketplaceSubscriptionV1FileLocalizedVersion",
163
+ }) as any as S.Schema<MarketplaceSubscriptionV1FileLocalizedVersion>;
164
+
165
+ export interface MarketplaceSubscriptionV1File {
166
+ version?: MarketplaceSubscriptionV1FileLocalizedVersion;
167
+ }
168
+ export const MarketplaceSubscriptionV1File = /*@__PURE__*/ S.suspend(() =>
169
+ S.Struct({
170
+ version: S.optional(MarketplaceSubscriptionV1FileLocalizedVersion),
171
+ }),
172
+ ).annotate({
173
+ identifier: "MarketplaceSubscriptionV1File",
174
+ }) as any as S.Schema<MarketplaceSubscriptionV1File>;
175
+
176
+ export interface MarketplaceSubscriptionV1Assets {
177
+ endUserLicenseAgreement?: MarketplaceSubscriptionV1File;
178
+ productDescription?: MarketplaceSubscriptionV1File;
179
+ serviceCertificate?: MarketplaceSubscriptionV1File;
180
+ serviceLevelAgreement?: MarketplaceSubscriptionV1File;
181
+ }
182
+ export const MarketplaceSubscriptionV1Assets = /*@__PURE__*/ S.suspend(() =>
183
+ S.Struct({
184
+ endUserLicenseAgreement: S.optional(MarketplaceSubscriptionV1File),
185
+ productDescription: S.optional(MarketplaceSubscriptionV1File),
186
+ serviceCertificate: S.optional(MarketplaceSubscriptionV1File),
187
+ serviceLevelAgreement: S.optional(MarketplaceSubscriptionV1File),
188
+ }),
189
+ ).annotate({
190
+ identifier: "MarketplaceSubscriptionV1Assets",
191
+ }) as any as S.Schema<MarketplaceSubscriptionV1Assets>;
192
+
193
+ /** The product delivery method/type. For reference: SAAS - Software as a Service, SAI - STACKIT Application Image */
194
+ export type MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod =
195
+ | "SAAS"
196
+ | "KUBERNETES"
197
+ | "SAI"
198
+ | "PROFESSIONAL_SERVICE";
199
+ export const MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod =
200
+ /*@__PURE__*/ S.String;
201
+
202
+ /** The lifecycle state of the product. */
203
+ export type MarketplaceSubscriptionV1SubscriptionProductLifecycleState =
204
+ | "PRODUCT_LIVE"
205
+ | "PRODUCT_PENDING_APPROVAL"
206
+ | "PRODUCT_PREVIEW";
207
+ export const MarketplaceSubscriptionV1SubscriptionProductLifecycleState =
208
+ /*@__PURE__*/ S.String;
209
+
210
+ /** The product's price type. */
211
+ export type MarketplaceSubscriptionV1SubscriptionProductPriceType =
212
+ | "CONTRACT"
213
+ | "FREE"
214
+ | "FREE_TRIAL"
215
+ | "BYOL"
216
+ | "PAYG";
217
+ export const MarketplaceSubscriptionV1SubscriptionProductPriceType =
218
+ /*@__PURE__*/ S.String;
219
+
220
+ export interface MarketplaceSubscriptionV1SubscriptionProduct {
221
+ assets?: MarketplaceSubscriptionV1Assets;
222
+ /** The product delivery method/type. For reference: SAAS - Software as a Service, SAI - STACKIT Application Image */
223
+ deliveryMethod: MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod;
224
+ /** The lifecycle state of the product. */
225
+ lifecycleState: MarketplaceSubscriptionV1SubscriptionProductLifecycleState;
226
+ /** The cancellation notice period of the subscription. */
227
+ noticePeriod: string;
228
+ /** The user-readable plan ID of a pricing option. */
229
+ planId: string;
230
+ /** The product's price type. */
231
+ priceType: MarketplaceSubscriptionV1SubscriptionProductPriceType;
232
+ /** Additional price type information. */
233
+ pricingPlan: string;
234
+ /** The user-readable ID of the product. */
235
+ productId: string;
236
+ /** The name of the product. */
237
+ productName: string;
238
+ /** The price of the product (per unit). */
239
+ rate: string;
240
+ /** The period the subscription is valid for before it will be renewed. */
241
+ validityPeriod: string;
242
+ /** The product vendor's name. */
243
+ vendorName: string;
244
+ /** The vendor provided plan ID. */
245
+ vendorPlanId?: string;
246
+ /** The vendor provided prduct ID. */
247
+ vendorProductId?: string;
248
+ /** The vendor's website. */
249
+ vendorWebsiteUrl: string;
250
+ }
251
+ export const MarketplaceSubscriptionV1SubscriptionProduct =
252
+ /*@__PURE__*/ S.suspend(() =>
253
+ S.Struct({
254
+ assets: S.optional(MarketplaceSubscriptionV1Assets),
255
+ deliveryMethod:
256
+ MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod,
257
+ lifecycleState:
258
+ MarketplaceSubscriptionV1SubscriptionProductLifecycleState,
259
+ noticePeriod: S.String,
260
+ planId: S.String,
261
+ priceType: MarketplaceSubscriptionV1SubscriptionProductPriceType,
262
+ pricingPlan: S.String,
263
+ productId: S.String,
264
+ productName: S.String,
265
+ rate: S.String,
266
+ validityPeriod: S.String,
267
+ vendorName: S.String,
268
+ vendorPlanId: S.optional(S.String),
269
+ vendorProductId: S.optional(S.String),
270
+ vendorWebsiteUrl: S.String,
271
+ }),
272
+ ).annotate({
273
+ identifier: "MarketplaceSubscriptionV1SubscriptionProduct",
274
+ }) as any as S.Schema<MarketplaceSubscriptionV1SubscriptionProduct>;
275
+
276
+ export interface MarketplaceSubscriptionV1Subscription {
277
+ /** Period between the subscription was created until the approval needs to happen. */
278
+ approvalTimeout?: string;
279
+ /** If true, the the subscription will extend its validity automatically at the end of the current period. */
280
+ autoRenewal?: boolean;
281
+ lifecycleState: MarketplaceSubscriptionV1SubscriptionLifecycleState;
282
+ /** When the subscription was ordered. */
283
+ orderedAt: string;
284
+ /** The UUID of the organization. */
285
+ organizationId: string;
286
+ /** The product to the subscription. */
287
+ product: MarketplaceSubscriptionV1SubscriptionProduct;
288
+ /** The UUID of the project. */
289
+ projectId: string;
290
+ /** The UUID of the subscription. */
291
+ subscriptionId: string;
292
+ /** Timestamp when the subscription will finally terminate. */
293
+ terminatesAt?: string;
294
+ /** Timestamp when the subscription validity has started. */
295
+ validFrom?: string;
296
+ /** Timestamp when the current subscription validity will end. May be automatically renewed. */
297
+ validUntil?: string;
298
+ }
299
+ export const MarketplaceSubscriptionV1Subscription = /*@__PURE__*/ S.suspend(
300
+ () =>
301
+ S.Struct({
302
+ approvalTimeout: S.optional(S.String),
303
+ autoRenewal: S.optional(S.Boolean),
304
+ lifecycleState: MarketplaceSubscriptionV1SubscriptionLifecycleState,
305
+ orderedAt: S.String,
306
+ organizationId: S.String,
307
+ product: MarketplaceSubscriptionV1SubscriptionProduct,
308
+ projectId: S.String,
309
+ subscriptionId: S.String,
310
+ terminatesAt: S.optional(S.String),
311
+ validFrom: S.optional(S.String),
312
+ validUntil: S.optional(S.String),
313
+ }),
314
+ ).annotate({
315
+ identifier: "MarketplaceSubscriptionV1Subscription",
316
+ }) as any as S.Schema<MarketplaceSubscriptionV1Subscription>;
317
+
318
+ export type MarketplaceSubscriptionV1ListSubscriptionsResponseItemsList =
319
+ Array<MarketplaceSubscriptionV1Subscription>;
320
+ export const MarketplaceSubscriptionV1ListSubscriptionsResponseItemsList =
321
+ /*@__PURE__*/ S.Array(
322
+ MarketplaceSubscriptionV1Subscription,
323
+ ) as any as S.Schema<MarketplaceSubscriptionV1ListSubscriptionsResponseItemsList>;
324
+
325
+ export interface MarketplaceSubscriptionV1ListSubscriptionsResponse {
326
+ cursor?: string;
327
+ items?: MarketplaceSubscriptionV1ListSubscriptionsResponseItemsList;
328
+ limit?: number;
329
+ }
330
+ export const MarketplaceSubscriptionV1ListSubscriptionsResponse =
331
+ /*@__PURE__*/ S.suspend(() =>
332
+ S.Struct({
333
+ cursor: S.optional(S.String),
334
+ items: S.optional(
335
+ MarketplaceSubscriptionV1ListSubscriptionsResponseItemsList,
336
+ ),
337
+ limit: S.optional(S.Number),
338
+ }),
339
+ ).annotate({
340
+ identifier: "MarketplaceSubscriptionV1ListSubscriptionsResponse",
341
+ }) as any as S.Schema<MarketplaceSubscriptionV1ListSubscriptionsResponse>;
342
+
343
+ export interface ConsumersSubscriptionsListByProjectRequest {
344
+ projectId: string;
345
+ cursor?: string;
346
+ limit?: number;
347
+ productId?: string;
348
+ /** Flag to control if cancelled or rejected subscriptions should be returned. */
349
+ includeExpired?: boolean;
350
+ }
351
+ export const ConsumersSubscriptionsListByProjectRequest =
352
+ /*@__PURE__*/ S.suspend(() =>
353
+ S.Struct({
354
+ projectId: S.String.pipe(T.Label()),
355
+ cursor: S.optional(S.String.pipe(T.Query())),
356
+ limit: S.optional(S.Number.pipe(T.Query())),
357
+ productId: S.optional(S.String.pipe(T.Query())),
358
+ includeExpired: S.optional(S.Boolean.pipe(T.Query())),
359
+ }).pipe(
360
+ T.Http({
361
+ method: "GET",
362
+ uri: "/v1/consumers/projects/{projectId}/subscriptions",
363
+ code: 200,
364
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
365
+ }),
366
+ ),
367
+ ).annotate({
368
+ identifier: "ConsumersSubscriptionsListByProjectRequest",
369
+ }) as any as S.Schema<ConsumersSubscriptionsListByProjectRequest>;
370
+
371
+ export interface CreateConsumersSubscriptionRequest {
372
+ projectId: string;
373
+ /** An E-Mail address the vendor can reach the consuer about subscription updates. */
374
+ consumerNotificationEmail?: string;
375
+ /** The user-readable ID of the product. */
376
+ productId: string;
377
+ /** The concrete variant of the product. */
378
+ sku: string;
379
+ }
380
+ export const CreateConsumersSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
381
+ S.Struct({
382
+ projectId: S.String.pipe(T.Label()),
383
+ consumerNotificationEmail: S.optional(S.String),
384
+ productId: S.String,
385
+ sku: S.String,
386
+ }).pipe(
387
+ T.Http({
388
+ method: "POST",
389
+ uri: "/v1/consumers/projects/{projectId}/subscriptions",
390
+ code: 200,
391
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
392
+ }),
393
+ ),
394
+ ).annotate({
395
+ identifier: "CreateConsumersSubscriptionRequest",
396
+ }) as any as S.Schema<CreateConsumersSubscriptionRequest>;
397
+
398
+ export interface GetConsumersSubscriptionRequest {
399
+ projectId: string;
400
+ subscriptionId: string;
401
+ /** Flag to control if cancelled or rejected subscriptions should be returned. */
402
+ includeExpired?: boolean;
403
+ }
404
+ export const GetConsumersSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
405
+ S.Struct({
406
+ projectId: S.String.pipe(T.Label()),
407
+ subscriptionId: S.String.pipe(T.Label()),
408
+ includeExpired: S.optional(S.Boolean.pipe(T.Query())),
409
+ }).pipe(
410
+ T.Http({
411
+ method: "GET",
412
+ uri: "/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}",
413
+ code: 200,
414
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
415
+ }),
416
+ ),
417
+ ).annotate({
418
+ identifier: "GetConsumersSubscriptionRequest",
419
+ }) as any as S.Schema<GetConsumersSubscriptionRequest>;
420
+
421
+ export interface GetConsumersSubscriptionsRedirectRequest {
422
+ projectId: string;
423
+ subscriptionId: string;
424
+ redirectTarget?: string;
425
+ }
426
+ export const GetConsumersSubscriptionsRedirectRequest = /*@__PURE__*/ S.suspend(
427
+ () =>
428
+ S.Struct({
429
+ projectId: S.String.pipe(T.Label()),
430
+ subscriptionId: S.String.pipe(T.Label()),
431
+ redirectTarget: S.optional(S.String.pipe(T.Query())),
432
+ }).pipe(
433
+ T.Http({
434
+ method: "GET",
435
+ uri: "/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}/redirects",
436
+ code: 200,
437
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
438
+ }),
439
+ ),
440
+ ).annotate({
441
+ identifier: "GetConsumersSubscriptionsRedirectRequest",
442
+ }) as any as S.Schema<GetConsumersSubscriptionsRedirectRequest>;
443
+
444
+ export interface MarketplaceSubscriptionV1SubscriptionRedirect {
445
+ redirectTarget: string;
446
+ redirectUrl: string;
447
+ }
448
+ export const MarketplaceSubscriptionV1SubscriptionRedirect =
449
+ /*@__PURE__*/ S.suspend(() =>
450
+ S.Struct({
451
+ redirectTarget: S.String,
452
+ redirectUrl: S.String,
453
+ }),
454
+ ).annotate({
455
+ identifier: "MarketplaceSubscriptionV1SubscriptionRedirect",
456
+ }) as any as S.Schema<MarketplaceSubscriptionV1SubscriptionRedirect>;
457
+
458
+ export interface GetVendorsSubscriptionRequest {
459
+ projectId: string;
460
+ subscriptionId: string;
461
+ /** Flag to control if cancelled or rejected subscriptions should be returned. */
462
+ includeExpired?: boolean;
463
+ }
464
+ export const GetVendorsSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
465
+ S.Struct({
466
+ projectId: S.String.pipe(T.Label()),
467
+ subscriptionId: S.String.pipe(T.Label()),
468
+ includeExpired: S.optional(S.Boolean.pipe(T.Query())),
469
+ }).pipe(
470
+ T.Http({
471
+ method: "GET",
472
+ uri: "/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}",
473
+ code: 200,
474
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
475
+ }),
476
+ ),
477
+ ).annotate({
478
+ identifier: "GetVendorsSubscriptionRequest",
479
+ }) as any as S.Schema<GetVendorsSubscriptionRequest>;
480
+
481
+ export interface RejectVendorsSubscriptionRequest {
482
+ projectId: string;
483
+ subscriptionId: string;
484
+ }
485
+ export const RejectVendorsSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
486
+ S.Struct({
487
+ projectId: S.String.pipe(T.Label()),
488
+ subscriptionId: S.String.pipe(T.Label()),
489
+ }).pipe(
490
+ T.Http({
491
+ method: "POST",
492
+ uri: "/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}/reject",
493
+ code: 200,
494
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
495
+ }),
496
+ ),
497
+ ).annotate({
498
+ identifier: "RejectVendorsSubscriptionRequest",
499
+ }) as any as S.Schema<RejectVendorsSubscriptionRequest>;
500
+
501
+ export interface RejectVendorsSubscriptionResponse {}
502
+ export const RejectVendorsSubscriptionResponse = /*@__PURE__*/ S.suspend(() =>
503
+ S.Struct({}),
504
+ ).annotate({
505
+ identifier: "RejectVendorsSubscriptionResponse",
506
+ }) as any as S.Schema<RejectVendorsSubscriptionResponse>;
507
+
508
+ export interface ResolveCustomerRequest {
509
+ projectId: string;
510
+ /** Opaque token exchangeable for subscription details. */
511
+ token: string;
512
+ }
513
+ export const ResolveCustomerRequest = /*@__PURE__*/ S.suspend(() =>
514
+ S.Struct({
515
+ projectId: S.String.pipe(T.Label()),
516
+ token: S.String,
517
+ }).pipe(
518
+ T.Http({
519
+ method: "POST",
520
+ uri: "/v1/vendors/projects/{projectId}/resolve-customer",
521
+ code: 200,
522
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
523
+ }),
524
+ ),
525
+ ).annotate({
526
+ identifier: "ResolveCustomerRequest",
527
+ }) as any as S.Schema<ResolveCustomerRequest>;
528
+
529
+ export interface TerminateConsumersSubscriptionRequest {
530
+ projectId: string;
531
+ subscriptionId: string;
532
+ }
533
+ export const TerminateConsumersSubscriptionRequest = /*@__PURE__*/ S.suspend(
534
+ () =>
535
+ S.Struct({
536
+ projectId: S.String.pipe(T.Label()),
537
+ subscriptionId: S.String.pipe(T.Label()),
538
+ }).pipe(
539
+ T.Http({
540
+ method: "POST",
541
+ uri: "/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}/terminate",
542
+ code: 200,
543
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
544
+ }),
545
+ ),
546
+ ).annotate({
547
+ identifier: "TerminateConsumersSubscriptionRequest",
548
+ }) as any as S.Schema<TerminateConsumersSubscriptionRequest>;
549
+
550
+ export interface TerminateConsumersSubscriptionResponse {}
551
+ export const TerminateConsumersSubscriptionResponse = /*@__PURE__*/ S.suspend(
552
+ () => S.Struct({}),
553
+ ).annotate({
554
+ identifier: "TerminateConsumersSubscriptionResponse",
555
+ }) as any as S.Schema<TerminateConsumersSubscriptionResponse>;
556
+
557
+ export interface VendorsSubscriptionsListByOrganizationRequest {
558
+ organizationId: string;
559
+ cursor?: string;
560
+ limit?: number;
561
+ productId?: string;
562
+ /** Flag to control if cancelled or rejected subscriptions should be returned. */
563
+ includeExpired?: boolean;
564
+ }
565
+ export const VendorsSubscriptionsListByOrganizationRequest =
566
+ /*@__PURE__*/ S.suspend(() =>
567
+ S.Struct({
568
+ organizationId: 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/organizations/{organizationId}/subscriptions",
577
+ code: 200,
578
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
579
+ }),
580
+ ),
581
+ ).annotate({
582
+ identifier: "VendorsSubscriptionsListByOrganizationRequest",
583
+ }) as any as S.Schema<VendorsSubscriptionsListByOrganizationRequest>;
584
+
585
+ export interface VendorsSubscriptionsListByProjectRequest {
586
+ projectId: string;
587
+ cursor?: string;
588
+ limit?: number;
589
+ productId?: string;
590
+ /** Flag to control if cancelled or rejected subscriptions should be returned. */
591
+ includeExpired?: boolean;
592
+ }
593
+ export const VendorsSubscriptionsListByProjectRequest = /*@__PURE__*/ S.suspend(
594
+ () =>
595
+ S.Struct({
596
+ projectId: S.String.pipe(T.Label()),
597
+ cursor: S.optional(S.String.pipe(T.Query())),
598
+ limit: S.optional(S.Number.pipe(T.Query())),
599
+ productId: S.optional(S.String.pipe(T.Query())),
600
+ includeExpired: S.optional(S.Boolean.pipe(T.Query())),
601
+ }).pipe(
602
+ T.Http({
603
+ method: "GET",
604
+ uri: "/v1/vendors/projects/{projectId}/subscriptions",
605
+ code: 200,
606
+ baseUrl: "https://stackit-marketplace.api.stackit.cloud",
607
+ }),
608
+ ),
609
+ ).annotate({
610
+ identifier: "VendorsSubscriptionsListByProjectRequest",
611
+ }) as any as S.Schema<VendorsSubscriptionsListByProjectRequest>;
612
+
613
+ export type ApproveSubscriptionError =
614
+ | BadRequest
615
+ | Forbidden
616
+ | NotFound
617
+ | StackitOpError;
618
+ /** Approve a pending subscription. Approve a pending subscription. */
619
+ export const approveSubscription: API.OperationMethod<
620
+ ApproveSubscriptionRequest,
621
+ ApproveSubscriptionResponse,
622
+ ApproveSubscriptionError,
623
+ StackitOpContext
624
+ > = /*@__PURE__*/ API.make(() => ({
625
+ input: ApproveSubscriptionRequest,
626
+ output: ApproveSubscriptionResponse,
627
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
628
+ protocol: StackitProtocol,
629
+ retry: Retry.Retry,
630
+ }));
631
+
632
+ export type CancelConsumersSubscriptionError =
633
+ | BadRequest
634
+ | Forbidden
635
+ | NotFound
636
+ | Conflict
637
+ | StackitOpError;
638
+ /** Cancel a subscription. Cancel a subscription. */
639
+ export const cancelConsumersSubscription: API.OperationMethod<
640
+ CancelConsumersSubscriptionRequest,
641
+ CancelConsumersSubscriptionResponse,
642
+ CancelConsumersSubscriptionError,
643
+ StackitOpContext
644
+ > = /*@__PURE__*/ API.make(() => ({
645
+ input: CancelConsumersSubscriptionRequest,
646
+ output: CancelConsumersSubscriptionResponse,
647
+ errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
648
+ protocol: StackitProtocol,
649
+ retry: Retry.Retry,
650
+ }));
651
+
652
+ export type ConsumersSubscriptionsListByOrganizationError =
653
+ | BadRequest
654
+ | Forbidden
655
+ | StackitOpError;
656
+ /** List all subscriptions of an organization. List all subscriptions of an organization. */
657
+ export const consumersSubscriptionsListByOrganization: API.OperationMethod<
658
+ ConsumersSubscriptionsListByOrganizationRequest,
659
+ MarketplaceSubscriptionV1ListSubscriptionsResponse,
660
+ ConsumersSubscriptionsListByOrganizationError,
661
+ StackitOpContext
662
+ > = /*@__PURE__*/ API.make(() => ({
663
+ input: ConsumersSubscriptionsListByOrganizationRequest,
664
+ output: MarketplaceSubscriptionV1ListSubscriptionsResponse,
665
+ errors: [BadRequest, Forbidden, UnknownStackitError],
666
+ protocol: StackitProtocol,
667
+ retry: Retry.Retry,
668
+ }));
669
+
670
+ export type ConsumersSubscriptionsListByProjectError =
671
+ | BadRequest
672
+ | Forbidden
673
+ | StackitOpError;
674
+ /** List all subscriptions of an project. List all subscriptions of an project. */
675
+ export const consumersSubscriptionsListByProject: API.OperationMethod<
676
+ ConsumersSubscriptionsListByProjectRequest,
677
+ MarketplaceSubscriptionV1ListSubscriptionsResponse,
678
+ ConsumersSubscriptionsListByProjectError,
679
+ StackitOpContext
680
+ > = /*@__PURE__*/ API.make(() => ({
681
+ input: ConsumersSubscriptionsListByProjectRequest,
682
+ output: MarketplaceSubscriptionV1ListSubscriptionsResponse,
683
+ errors: [BadRequest, Forbidden, UnknownStackitError],
684
+ protocol: StackitProtocol,
685
+ retry: Retry.Retry,
686
+ }));
687
+
688
+ export type CreateConsumersSubscriptionError =
689
+ | BadRequest
690
+ | Forbidden
691
+ | Conflict
692
+ | StackitOpError;
693
+ /** Create a new subscription. Create a new subscription. */
694
+ export const createConsumersSubscription: API.OperationMethod<
695
+ CreateConsumersSubscriptionRequest,
696
+ MarketplaceSubscriptionV1Subscription,
697
+ CreateConsumersSubscriptionError,
698
+ StackitOpContext
699
+ > = /*@__PURE__*/ API.make(() => ({
700
+ input: CreateConsumersSubscriptionRequest,
701
+ output: MarketplaceSubscriptionV1Subscription,
702
+ errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
703
+ protocol: StackitProtocol,
704
+ retry: Retry.Retry,
705
+ }));
706
+
707
+ export type GetConsumersSubscriptionError =
708
+ | BadRequest
709
+ | Forbidden
710
+ | NotFound
711
+ | StackitOpError;
712
+ /** Get a subscription. Get a subscription. */
713
+ export const getConsumersSubscription: API.OperationMethod<
714
+ GetConsumersSubscriptionRequest,
715
+ MarketplaceSubscriptionV1Subscription,
716
+ GetConsumersSubscriptionError,
717
+ StackitOpContext
718
+ > = /*@__PURE__*/ API.make(() => ({
719
+ input: GetConsumersSubscriptionRequest,
720
+ output: MarketplaceSubscriptionV1Subscription,
721
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
722
+ protocol: StackitProtocol,
723
+ retry: Retry.Retry,
724
+ }));
725
+
726
+ export type GetConsumersSubscriptionsRedirectError =
727
+ | BadRequest
728
+ | Forbidden
729
+ | StackitOpError;
730
+ /** Get a subscription redirect. Get a subscription redirect. */
731
+ export const getConsumersSubscriptionsRedirect: API.OperationMethod<
732
+ GetConsumersSubscriptionsRedirectRequest,
733
+ MarketplaceSubscriptionV1SubscriptionRedirect,
734
+ GetConsumersSubscriptionsRedirectError,
735
+ StackitOpContext
736
+ > = /*@__PURE__*/ API.make(() => ({
737
+ input: GetConsumersSubscriptionsRedirectRequest,
738
+ output: MarketplaceSubscriptionV1SubscriptionRedirect,
739
+ errors: [BadRequest, Forbidden, UnknownStackitError],
740
+ protocol: StackitProtocol,
741
+ retry: Retry.Retry,
742
+ }));
743
+
744
+ export type GetVendorsSubscriptionError =
745
+ | BadRequest
746
+ | Forbidden
747
+ | StackitOpError;
748
+ /** Get a subscription. Get a subscription. */
749
+ export const getVendorsSubscription: API.OperationMethod<
750
+ GetVendorsSubscriptionRequest,
751
+ MarketplaceSubscriptionV1Subscription,
752
+ GetVendorsSubscriptionError,
753
+ StackitOpContext
754
+ > = /*@__PURE__*/ API.make(() => ({
755
+ input: GetVendorsSubscriptionRequest,
756
+ output: MarketplaceSubscriptionV1Subscription,
757
+ errors: [BadRequest, Forbidden, UnknownStackitError],
758
+ protocol: StackitProtocol,
759
+ retry: Retry.Retry,
760
+ }));
761
+
762
+ export type RejectVendorsSubscriptionError =
763
+ | BadRequest
764
+ | Forbidden
765
+ | NotFound
766
+ | StackitOpError;
767
+ /** Reject a subscription. Reject a subscription (in any lifecycle state). Only available for subscriptions to products with lifecycle state `PRODUCT_PREVIEW`. */
768
+ export const rejectVendorsSubscription: API.OperationMethod<
769
+ RejectVendorsSubscriptionRequest,
770
+ RejectVendorsSubscriptionResponse,
771
+ RejectVendorsSubscriptionError,
772
+ StackitOpContext
773
+ > = /*@__PURE__*/ API.make(() => ({
774
+ input: RejectVendorsSubscriptionRequest,
775
+ output: RejectVendorsSubscriptionResponse,
776
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
777
+ protocol: StackitProtocol,
778
+ retry: Retry.Retry,
779
+ }));
780
+
781
+ export type ResolveCustomerError =
782
+ | BadRequest
783
+ | Forbidden
784
+ | NotFound
785
+ | StackitOpError;
786
+ /** Resolve customer. Resolve customer. */
787
+ export const resolveCustomer: API.OperationMethod<
788
+ ResolveCustomerRequest,
789
+ MarketplaceSubscriptionV1Subscription,
790
+ ResolveCustomerError,
791
+ StackitOpContext
792
+ > = /*@__PURE__*/ API.make(() => ({
793
+ input: ResolveCustomerRequest,
794
+ output: MarketplaceSubscriptionV1Subscription,
795
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
796
+ protocol: StackitProtocol,
797
+ retry: Retry.Retry,
798
+ }));
799
+
800
+ export type TerminateConsumersSubscriptionError =
801
+ | BadRequest
802
+ | Forbidden
803
+ | NotFound
804
+ | StackitOpError;
805
+ /** Terminates a consumer subscription early. Terminates a consumer subscription early. */
806
+ export const terminateConsumersSubscription: API.OperationMethod<
807
+ TerminateConsumersSubscriptionRequest,
808
+ TerminateConsumersSubscriptionResponse,
809
+ TerminateConsumersSubscriptionError,
810
+ StackitOpContext
811
+ > = /*@__PURE__*/ API.make(() => ({
812
+ input: TerminateConsumersSubscriptionRequest,
813
+ output: TerminateConsumersSubscriptionResponse,
814
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
815
+ protocol: StackitProtocol,
816
+ retry: Retry.Retry,
817
+ }));
818
+
819
+ export type VendorsSubscriptionsListByOrganizationError =
820
+ | BadRequest
821
+ | Forbidden
822
+ | StackitOpError;
823
+ /** List all subscriptions of an organization. List all subscriptions of an organization. */
824
+ export const vendorsSubscriptionsListByOrganization: API.OperationMethod<
825
+ VendorsSubscriptionsListByOrganizationRequest,
826
+ MarketplaceSubscriptionV1ListSubscriptionsResponse,
827
+ VendorsSubscriptionsListByOrganizationError,
828
+ StackitOpContext
829
+ > = /*@__PURE__*/ API.make(() => ({
830
+ input: VendorsSubscriptionsListByOrganizationRequest,
831
+ output: MarketplaceSubscriptionV1ListSubscriptionsResponse,
832
+ errors: [BadRequest, Forbidden, UnknownStackitError],
833
+ protocol: StackitProtocol,
834
+ retry: Retry.Retry,
835
+ }));
836
+
837
+ export type VendorsSubscriptionsListByProjectError =
838
+ | BadRequest
839
+ | Forbidden
840
+ | StackitOpError;
841
+ /** List all subscriptions of an project. List all subscriptions of an project. */
842
+ export const vendorsSubscriptionsListByProject: API.OperationMethod<
843
+ VendorsSubscriptionsListByProjectRequest,
844
+ MarketplaceSubscriptionV1ListSubscriptionsResponse,
845
+ VendorsSubscriptionsListByProjectError,
846
+ StackitOpContext
847
+ > = /*@__PURE__*/ API.make(() => ({
848
+ input: VendorsSubscriptionsListByProjectRequest,
849
+ output: MarketplaceSubscriptionV1ListSubscriptionsResponse,
850
+ errors: [BadRequest, Forbidden, UnknownStackitError],
851
+ protocol: StackitProtocol,
852
+ retry: Retry.Retry,
853
+ }));