@distilled.cloud/stackit 0.0.0-stage → 1.0.0-rc.14
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.
- package/LICENSE +201 -0
- package/README.md +33 -2
- package/lib/credentials.d.ts +29 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +49 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +36 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +26 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +30 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +9 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +45 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +32 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +147 -0
- package/lib/protocol.js.map +1 -0
- package/lib/protocol.test.d.ts +2 -0
- package/lib/protocol.test.d.ts.map +1 -0
- package/lib/protocol.test.js +181 -0
- package/lib/protocol.test.js.map +1 -0
- package/lib/retry.d.ts +31 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +31 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/alb.d.ts +603 -0
- package/lib/services/alb.d.ts.map +1 -0
- package/lib/services/alb.js +513 -0
- package/lib/services/alb.js.map +1 -0
- package/lib/services/alb_waf.d.ts +526 -0
- package/lib/services/alb_waf.d.ts.map +1 -0
- package/lib/services/alb_waf.js +521 -0
- package/lib/services/alb_waf.js.map +1 -0
- package/lib/services/authorization.d.ts +251 -0
- package/lib/services/authorization.d.ts.map +1 -0
- package/lib/services/authorization.js +323 -0
- package/lib/services/authorization.js.map +1 -0
- package/lib/services/automation.d.ts +321 -0
- package/lib/services/automation.d.ts.map +1 -0
- package/lib/services/automation.js +363 -0
- package/lib/services/automation.js.map +1 -0
- package/lib/services/cdn.d.ts +1239 -0
- package/lib/services/cdn.d.ts.map +1 -0
- package/lib/services/cdn.js +906 -0
- package/lib/services/cdn.js.map +1 -0
- package/lib/services/certificates.d.ts +201 -0
- package/lib/services/certificates.d.ts.map +1 -0
- package/lib/services/certificates.js +179 -0
- package/lib/services/certificates.js.map +1 -0
- package/lib/services/cost.d.ts +222 -0
- package/lib/services/cost.d.ts.map +1 -0
- package/lib/services/cost.js +177 -0
- package/lib/services/cost.js.map +1 -0
- package/lib/services/dns.d.ts +842 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +726 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/dremio.d.ts +358 -0
- package/lib/services/dremio.d.ts.map +1 -0
- package/lib/services/dremio.js +317 -0
- package/lib/services/dremio.js.map +1 -0
- package/lib/services/edge.d.ts +312 -0
- package/lib/services/edge.d.ts.map +1 -0
- package/lib/services/edge.js +357 -0
- package/lib/services/edge.js.map +1 -0
- package/lib/services/functions.d.ts +409 -0
- package/lib/services/functions.d.ts.map +1 -0
- package/lib/services/functions.js +399 -0
- package/lib/services/functions.js.map +1 -0
- package/lib/services/git.d.ts +497 -0
- package/lib/services/git.d.ts.map +1 -0
- package/lib/services/git.js +520 -0
- package/lib/services/git.js.map +1 -0
- package/lib/services/iaas.d.ts +2986 -0
- package/lib/services/iaas.d.ts.map +1 -0
- package/lib/services/iaas.js +3543 -0
- package/lib/services/iaas.js.map +1 -0
- package/lib/services/index.d.ts +51 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +52 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/intake.d.ts +555 -0
- package/lib/services/intake.d.ts.map +1 -0
- package/lib/services/intake.js +475 -0
- package/lib/services/intake.js.map +1 -0
- package/lib/services/kms.d.ts +654 -0
- package/lib/services/kms.d.ts.map +1 -0
- package/lib/services/kms.js +663 -0
- package/lib/services/kms.js.map +1 -0
- package/lib/services/lb_ip_lists.d.ts +160 -0
- package/lib/services/lb_ip_lists.d.ts.map +1 -0
- package/lib/services/lb_ip_lists.js +154 -0
- package/lib/services/lb_ip_lists.js.map +1 -0
- package/lib/services/load_balancer.d.ts +563 -0
- package/lib/services/load_balancer.d.ts.map +1 -0
- package/lib/services/load_balancer.js +497 -0
- package/lib/services/load_balancer.js.map +1 -0
- package/lib/services/logme.d.ts +516 -0
- package/lib/services/logme.d.ts.map +1 -0
- package/lib/services/logme.js +574 -0
- package/lib/services/logme.js.map +1 -0
- package/lib/services/logs.d.ts +436 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +475 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/mariadb.d.ts +479 -0
- package/lib/services/mariadb.d.ts.map +1 -0
- package/lib/services/mariadb.js +551 -0
- package/lib/services/mariadb.js.map +1 -0
- package/lib/services/model_experiments.d.ts +306 -0
- package/lib/services/model_experiments.d.ts.map +1 -0
- package/lib/services/model_experiments.js +336 -0
- package/lib/services/model_experiments.js.map +1 -0
- package/lib/services/model_serving.d.ts +289 -0
- package/lib/services/model_serving.d.ts.map +1 -0
- package/lib/services/model_serving.js +287 -0
- package/lib/services/model_serving.js.map +1 -0
- package/lib/services/mongodb_flex.d.ts +826 -0
- package/lib/services/mongodb_flex.d.ts.map +1 -0
- package/lib/services/mongodb_flex.js +803 -0
- package/lib/services/mongodb_flex.js.map +1 -0
- package/lib/services/object_storage.d.ts +470 -0
- package/lib/services/object_storage.d.ts.map +1 -0
- package/lib/services/object_storage.js +540 -0
- package/lib/services/object_storage.js.map +1 -0
- package/lib/services/observability.d.ts +2750 -0
- package/lib/services/observability.d.ts.map +1 -0
- package/lib/services/observability.js +3158 -0
- package/lib/services/observability.js.map +1 -0
- package/lib/services/opensearch.d.ts +505 -0
- package/lib/services/opensearch.d.ts.map +1 -0
- package/lib/services/opensearch.js +563 -0
- package/lib/services/opensearch.js.map +1 -0
- package/lib/services/pim.d.ts +997 -0
- package/lib/services/pim.d.ts.map +1 -0
- package/lib/services/pim.js +736 -0
- package/lib/services/pim.js.map +1 -0
- package/lib/services/postgres_flex.d.ts +854 -0
- package/lib/services/postgres_flex.d.ts.map +1 -0
- package/lib/services/postgres_flex.js +853 -0
- package/lib/services/postgres_flex.js.map +1 -0
- package/lib/services/pubsub.d.ts +489 -0
- package/lib/services/pubsub.d.ts.map +1 -0
- package/lib/services/pubsub.js +519 -0
- package/lib/services/pubsub.js.map +1 -0
- package/lib/services/rabbitmq.d.ts +523 -0
- package/lib/services/rabbitmq.d.ts.map +1 -0
- package/lib/services/rabbitmq.js +574 -0
- package/lib/services/rabbitmq.js.map +1 -0
- package/lib/services/registry.d.ts +212 -0
- package/lib/services/registry.d.ts.map +1 -0
- package/lib/services/registry.js +198 -0
- package/lib/services/registry.js.map +1 -0
- package/lib/services/resource_manager.d.ts +458 -0
- package/lib/services/resource_manager.d.ts.map +1 -0
- package/lib/services/resource_manager.js +473 -0
- package/lib/services/resource_manager.js.map +1 -0
- package/lib/services/run_command.d.ts +175 -0
- package/lib/services/run_command.d.ts.map +1 -0
- package/lib/services/run_command.js +185 -0
- package/lib/services/run_command.js.map +1 -0
- package/lib/services/sca.d.ts +553 -0
- package/lib/services/sca.d.ts.map +1 -0
- package/lib/services/sca.js +445 -0
- package/lib/services/sca.js.map +1 -0
- package/lib/services/scf.d.ts +498 -0
- package/lib/services/scf.d.ts.map +1 -0
- package/lib/services/scf.js +670 -0
- package/lib/services/scf.js.map +1 -0
- package/lib/services/secrets_manager.d.ts +505 -0
- package/lib/services/secrets_manager.d.ts.map +1 -0
- package/lib/services/secrets_manager.js +613 -0
- package/lib/services/secrets_manager.js.map +1 -0
- package/lib/services/server_backup.d.ts +380 -0
- package/lib/services/server_backup.d.ts.map +1 -0
- package/lib/services/server_backup.js +454 -0
- package/lib/services/server_backup.js.map +1 -0
- package/lib/services/server_update.d.ts +292 -0
- package/lib/services/server_update.d.ts.map +1 -0
- package/lib/services/server_update.js +352 -0
- package/lib/services/server_update.js.map +1 -0
- package/lib/services/service_account.d.ts +465 -0
- package/lib/services/service_account.d.ts.map +1 -0
- package/lib/services/service_account.js +506 -0
- package/lib/services/service_account.js.map +1 -0
- package/lib/services/service_enablement.d.ts +149 -0
- package/lib/services/service_enablement.d.ts.map +1 -0
- package/lib/services/service_enablement.js +157 -0
- package/lib/services/service_enablement.js.map +1 -0
- package/lib/services/sfs.d.ts +721 -0
- package/lib/services/sfs.d.ts.map +1 -0
- package/lib/services/sfs.js +790 -0
- package/lib/services/sfs.js.map +1 -0
- package/lib/services/ske.d.ts +562 -0
- package/lib/services/ske.d.ts.map +1 -0
- package/lib/services/ske.js +558 -0
- package/lib/services/ske.js.map +1 -0
- package/lib/services/sqlserverflex.d.ts +956 -0
- package/lib/services/sqlserverflex.d.ts.map +1 -0
- package/lib/services/sqlserverflex.js +936 -0
- package/lib/services/sqlserverflex.js.map +1 -0
- package/lib/services/stackit_marketplace.d.ts +288 -0
- package/lib/services/stackit_marketplace.d.ts.map +1 -0
- package/lib/services/stackit_marketplace.js +379 -0
- package/lib/services/stackit_marketplace.js.map +1 -0
- package/lib/services/telemetry_link.d.ts +443 -0
- package/lib/services/telemetry_link.d.ts.map +1 -0
- package/lib/services/telemetry_link.js +532 -0
- package/lib/services/telemetry_link.js.map +1 -0
- package/lib/services/telemetry_router.d.ts +493 -0
- package/lib/services/telemetry_router.d.ts.map +1 -0
- package/lib/services/telemetry_router.js +484 -0
- package/lib/services/telemetry_router.js.map +1 -0
- package/lib/services/ufw.d.ts +295 -0
- package/lib/services/ufw.d.ts.map +1 -0
- package/lib/services/ufw.js +279 -0
- package/lib/services/ufw.js.map +1 -0
- package/lib/services/valkey.d.ts +505 -0
- package/lib/services/valkey.d.ts.map +1 -0
- package/lib/services/valkey.js +567 -0
- package/lib/services/valkey.js.map +1 -0
- package/lib/services/vpn.d.ts +1024 -0
- package/lib/services/vpn.d.ts.map +1 -0
- package/lib/services/vpn.js +931 -0
- package/lib/services/vpn.js.map +1 -0
- package/lib/services/workflows.d.ts +600 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +508 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/traits.d.ts +24 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +15 -0
- package/lib/traits.js.map +1 -0
- package/package.json +85 -3
- package/src/credentials.ts +84 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +34 -0
- package/src/pagination.ts +57 -0
- package/src/protocol.test.ts +304 -0
- package/src/protocol.ts +225 -0
- package/src/retry.ts +47 -0
- package/src/services/alb.ts +1326 -0
- package/src/services/alb_waf.ts +1288 -0
- package/src/services/authorization.ts +704 -0
- package/src/services/automation.ts +796 -0
- package/src/services/cdn.ts +2576 -0
- package/src/services/certificates.ts +418 -0
- package/src/services/cost.ts +449 -0
- package/src/services/dns.ts +1936 -0
- package/src/services/dremio.ts +753 -0
- package/src/services/edge.ts +780 -0
- package/src/services/functions.ts +957 -0
- package/src/services/git.ts +1194 -0
- package/src/services/iaas.ts +7878 -0
- package/src/services/index.ts +51 -0
- package/src/services/intake.ts +1166 -0
- package/src/services/kms.ts +1537 -0
- package/src/services/lb_ip_lists.ts +342 -0
- package/src/services/load_balancer.ts +1266 -0
- package/src/services/logme.ts +1284 -0
- package/src/services/logs.ts +1049 -0
- package/src/services/mariadb.ts +1212 -0
- package/src/services/model_experiments.ts +741 -0
- package/src/services/model_serving.ts +654 -0
- package/src/services/mongodb_flex.ts +1932 -0
- package/src/services/object_storage.ts +1195 -0
- package/src/services/observability.ts +7364 -0
- package/src/services/opensearch.ts +1265 -0
- package/src/services/pim.ts +1985 -0
- package/src/services/postgres_flex.ts +2080 -0
- package/src/services/pubsub.ts +1193 -0
- package/src/services/rabbitmq.ts +1310 -0
- package/src/services/registry.ts +446 -0
- package/src/services/resource_manager.ts +1072 -0
- package/src/services/run_command.ts +413 -0
- package/src/services/sca.ts +1187 -0
- package/src/services/scf.ts +1396 -0
- package/src/services/secrets_manager.ts +1317 -0
- package/src/services/server_backup.ts +983 -0
- package/src/services/server_update.ts +738 -0
- package/src/services/service_account.ts +1121 -0
- package/src/services/service_enablement.ts +330 -0
- package/src/services/sfs.ts +1831 -0
- package/src/services/ske.ts +1386 -0
- package/src/services/sqlserverflex.ts +2307 -0
- package/src/services/stackit_marketplace.ts +787 -0
- package/src/services/telemetry_link.ts +1166 -0
- package/src/services/telemetry_router.ts +1110 -0
- package/src/services/ufw.ts +654 -0
- package/src/services/valkey.ts +1266 -0
- package/src/services/vpn.ts +2365 -0
- package/src/services/workflows.ts +1249 -0
- package/src/traits.ts +60 -0
|
@@ -0,0 +1,787 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as C from "@distilled.cloud/core/category";
|
|
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";
|
|
5
|
+
import { UnknownStackitError } from "../errors.ts";
|
|
6
|
+
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
7
|
+
import * as Retry from "../retry.ts";
|
|
8
|
+
import * as T from "../traits.ts";
|
|
9
|
+
|
|
10
|
+
export type { StackitOpError, StackitOpContext };
|
|
11
|
+
|
|
12
|
+
export class BadRequest
|
|
13
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
14
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
15
|
+
code: S.Number,
|
|
16
|
+
message: S.String,
|
|
17
|
+
}).pipe(C.withBadRequestError),
|
|
18
|
+
[{ status: 400 }],
|
|
19
|
+
) {}
|
|
20
|
+
|
|
21
|
+
export class Conflict
|
|
22
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
23
|
+
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
24
|
+
code: S.Number,
|
|
25
|
+
message: S.String,
|
|
26
|
+
}).pipe(C.withConflictError),
|
|
27
|
+
[{ status: 409 }],
|
|
28
|
+
) {}
|
|
29
|
+
|
|
30
|
+
export class Forbidden
|
|
31
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
32
|
+
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
33
|
+
code: S.Number,
|
|
34
|
+
message: S.String,
|
|
35
|
+
}).pipe(C.withAuthError),
|
|
36
|
+
[{ status: 403 }],
|
|
37
|
+
) {}
|
|
38
|
+
|
|
39
|
+
export class NotFound
|
|
40
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
41
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
42
|
+
code: S.Number,
|
|
43
|
+
message: S.String,
|
|
44
|
+
}).pipe(C.withBadRequestError),
|
|
45
|
+
[{ status: 404 }],
|
|
46
|
+
) {}
|
|
47
|
+
|
|
48
|
+
export interface ApproveSubscriptionRequest {
|
|
49
|
+
projectId: string;
|
|
50
|
+
subscriptionId: string;
|
|
51
|
+
/** The target URL of the user instance, used to redirect the user to the instance after the subscription is active. */
|
|
52
|
+
instanceTarget?: string;
|
|
53
|
+
}
|
|
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
|
+
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
|
+
export interface CancelConsumersSubscriptionRequest {
|
|
77
|
+
projectId: string;
|
|
78
|
+
subscriptionId: string;
|
|
79
|
+
}
|
|
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
|
+
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
|
+
export interface ConsumersSubscriptionsListByOrganizationRequest {
|
|
104
|
+
organizationId: string;
|
|
105
|
+
cursor?: string;
|
|
106
|
+
limit?: number;
|
|
107
|
+
productId?: string;
|
|
108
|
+
/** Flag to control if cancelled or rejected subscriptions should be returned. */
|
|
109
|
+
includeExpired?: boolean;
|
|
110
|
+
}
|
|
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
|
+
export type MarketplaceSubscriptionV1SubscriptionLifecycleState =
|
|
131
|
+
| "STATE_UNSPECIFIED"
|
|
132
|
+
| "SUBSCRIPTION_PENDING"
|
|
133
|
+
| "SUBSCRIPTION_ACTIVE"
|
|
134
|
+
| "SUBSCRIPTION_INACTIVE"
|
|
135
|
+
| "SUBSCRIPTION_CANCELLING"
|
|
136
|
+
| "SUBSCRIPTION_CANCELLED"
|
|
137
|
+
| "SUBSCRIPTION_REJECTED"
|
|
138
|
+
| "SUBSCRIPTION_APPROVAL_TIMED_OUT";
|
|
139
|
+
export const MarketplaceSubscriptionV1SubscriptionLifecycleState = S.String;
|
|
140
|
+
|
|
141
|
+
export interface MarketplaceSubscriptionV1FileLocalizedVersion {
|
|
142
|
+
/** The file version matching the file name (localized). */
|
|
143
|
+
de?: string;
|
|
144
|
+
/** The file version matching the file name (localized). */
|
|
145
|
+
en?: string;
|
|
146
|
+
}
|
|
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
|
+
export interface MarketplaceSubscriptionV1File {
|
|
157
|
+
version?: MarketplaceSubscriptionV1FileLocalizedVersion;
|
|
158
|
+
}
|
|
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
|
+
export interface MarketplaceSubscriptionV1Assets {
|
|
168
|
+
endUserLicenseAgreement?: MarketplaceSubscriptionV1File;
|
|
169
|
+
productDescription?: MarketplaceSubscriptionV1File;
|
|
170
|
+
serviceCertificate?: MarketplaceSubscriptionV1File;
|
|
171
|
+
serviceLevelAgreement?: MarketplaceSubscriptionV1File;
|
|
172
|
+
}
|
|
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
|
+
/** The product delivery method/type. For reference: SAAS - Software as a Service, CLOUD_IMAGE - STACKIT Cloud Image */
|
|
185
|
+
export type MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod =
|
|
186
|
+
| "SAAS"
|
|
187
|
+
| "CONTAINER_IMAGE"
|
|
188
|
+
| "CLOUD_IMAGE"
|
|
189
|
+
| "PROFESSIONAL_SERVICE";
|
|
190
|
+
export const MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod = S.String;
|
|
191
|
+
|
|
192
|
+
/** The lifecycle state of the product. */
|
|
193
|
+
export type MarketplaceSubscriptionV1SubscriptionProductLifecycleState =
|
|
194
|
+
| "PRODUCT_LIVE"
|
|
195
|
+
| "PRODUCT_PENDING_APPROVAL"
|
|
196
|
+
| "PRODUCT_PREVIEW";
|
|
197
|
+
export const MarketplaceSubscriptionV1SubscriptionProductLifecycleState = S.String;
|
|
198
|
+
|
|
199
|
+
/** The product's price type. */
|
|
200
|
+
export type MarketplaceSubscriptionV1SubscriptionProductPriceType =
|
|
201
|
+
| "CONTRACT"
|
|
202
|
+
| "FREE"
|
|
203
|
+
| "FREE_TRIAL"
|
|
204
|
+
| "BYOL"
|
|
205
|
+
| "PAYG";
|
|
206
|
+
export const MarketplaceSubscriptionV1SubscriptionProductPriceType = S.String;
|
|
207
|
+
|
|
208
|
+
export interface MarketplaceSubscriptionV1SubscriptionProduct {
|
|
209
|
+
assets?: MarketplaceSubscriptionV1Assets;
|
|
210
|
+
/** The product delivery method/type. For reference: SAAS - Software as a Service, CLOUD_IMAGE - STACKIT Cloud Image */
|
|
211
|
+
deliveryMethod: MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod;
|
|
212
|
+
/** The lifecycle state of the product. */
|
|
213
|
+
lifecycleState: MarketplaceSubscriptionV1SubscriptionProductLifecycleState;
|
|
214
|
+
/** The cancellation notice period of the subscription. */
|
|
215
|
+
noticePeriod: string;
|
|
216
|
+
/** The user-readable plan ID of a pricing option. */
|
|
217
|
+
planId: string;
|
|
218
|
+
/** The product's price type. */
|
|
219
|
+
priceType: MarketplaceSubscriptionV1SubscriptionProductPriceType;
|
|
220
|
+
/** Additional price type information. */
|
|
221
|
+
pricingPlan: string;
|
|
222
|
+
/** The user-readable ID of the product. */
|
|
223
|
+
productId: string;
|
|
224
|
+
/** The name of the product. */
|
|
225
|
+
productName: string;
|
|
226
|
+
/** The price of the product (per unit). */
|
|
227
|
+
rate: string;
|
|
228
|
+
/** The period the subscription is valid for before it will be renewed. */
|
|
229
|
+
validityPeriod: string;
|
|
230
|
+
/** The product vendor's name. */
|
|
231
|
+
vendorName: string;
|
|
232
|
+
/** The vendor provided plan ID. */
|
|
233
|
+
vendorPlanId?: string;
|
|
234
|
+
/** The vendor provided prduct ID. */
|
|
235
|
+
vendorProductId?: string;
|
|
236
|
+
/** The vendor's website. */
|
|
237
|
+
vendorWebsiteUrl: string;
|
|
238
|
+
}
|
|
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
|
+
export interface MarketplaceSubscriptionV1Subscription {
|
|
262
|
+
/** Period between the subscription was created until the approval needs to happen. */
|
|
263
|
+
approvalTimeout?: string;
|
|
264
|
+
/** If true, the the subscription will extend its validity automatically at the end of the current period. */
|
|
265
|
+
autoRenewal?: boolean;
|
|
266
|
+
lifecycleState: MarketplaceSubscriptionV1SubscriptionLifecycleState;
|
|
267
|
+
/** When the subscription was ordered. */
|
|
268
|
+
orderedAt: string;
|
|
269
|
+
/** The UUID of the organization. */
|
|
270
|
+
organizationId: string;
|
|
271
|
+
/** The product to the subscription. */
|
|
272
|
+
product: MarketplaceSubscriptionV1SubscriptionProduct;
|
|
273
|
+
/** The UUID of the project. */
|
|
274
|
+
projectId: string;
|
|
275
|
+
/** The UUID of the subscription. */
|
|
276
|
+
subscriptionId: string;
|
|
277
|
+
/** Timestamp when the subscription will finally terminate. */
|
|
278
|
+
terminatesAt?: string;
|
|
279
|
+
/** Timestamp when the subscription validity has started. */
|
|
280
|
+
validFrom?: string;
|
|
281
|
+
/** Timestamp when the current subscription validity will end. May be automatically renewed. */
|
|
282
|
+
validUntil?: string;
|
|
283
|
+
}
|
|
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
|
+
export type MarketplaceSubscriptionV1ListSubscriptionsResponseItemsList =
|
|
303
|
+
Array<MarketplaceSubscriptionV1Subscription>;
|
|
304
|
+
export const MarketplaceSubscriptionV1ListSubscriptionsResponseItemsList = /*@__PURE__*/ S.Array(
|
|
305
|
+
MarketplaceSubscriptionV1Subscription,
|
|
306
|
+
) as any as S.Schema<MarketplaceSubscriptionV1ListSubscriptionsResponseItemsList>;
|
|
307
|
+
|
|
308
|
+
export interface MarketplaceSubscriptionV1ListSubscriptionsResponse {
|
|
309
|
+
cursor?: string;
|
|
310
|
+
items?: MarketplaceSubscriptionV1ListSubscriptionsResponseItemsList;
|
|
311
|
+
limit?: number;
|
|
312
|
+
}
|
|
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
|
+
export interface ConsumersSubscriptionsListByProjectRequest {
|
|
324
|
+
projectId: string;
|
|
325
|
+
cursor?: string;
|
|
326
|
+
limit?: number;
|
|
327
|
+
productId?: string;
|
|
328
|
+
/** Flag to control if cancelled or rejected subscriptions should be returned. */
|
|
329
|
+
includeExpired?: boolean;
|
|
330
|
+
}
|
|
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
|
+
export interface CreateConsumersSubscriptionRequest {
|
|
351
|
+
projectId: string;
|
|
352
|
+
/** An E-Mail address the vendor can reach the consuer about subscription updates. */
|
|
353
|
+
consumerNotificationEmail?: string;
|
|
354
|
+
/** The user-readable ID of the product. */
|
|
355
|
+
productId: string;
|
|
356
|
+
/** The concrete variant of the product. */
|
|
357
|
+
sku: string;
|
|
358
|
+
}
|
|
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
|
+
export interface GetConsumersSubscriptionRequest {
|
|
378
|
+
projectId: string;
|
|
379
|
+
subscriptionId: string;
|
|
380
|
+
/** Flag to control if cancelled or rejected subscriptions should be returned. */
|
|
381
|
+
includeExpired?: boolean;
|
|
382
|
+
}
|
|
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
|
+
export interface GetConsumersSubscriptionsRedirectRequest {
|
|
401
|
+
projectId: string;
|
|
402
|
+
subscriptionId: string;
|
|
403
|
+
redirectTarget?: string;
|
|
404
|
+
}
|
|
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
|
+
export interface MarketplaceSubscriptionV1SubscriptionRedirect {
|
|
423
|
+
redirectTarget: string;
|
|
424
|
+
redirectUrl: string;
|
|
425
|
+
}
|
|
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
|
+
export interface GetVendorsSubscriptionRequest {
|
|
436
|
+
projectId: string;
|
|
437
|
+
subscriptionId: string;
|
|
438
|
+
/** Flag to control if cancelled or rejected subscriptions should be returned. */
|
|
439
|
+
includeExpired?: boolean;
|
|
440
|
+
}
|
|
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
|
+
export interface RejectVendorsSubscriptionRequest {
|
|
459
|
+
projectId: string;
|
|
460
|
+
subscriptionId: string;
|
|
461
|
+
}
|
|
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
|
+
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
|
+
export interface ResolveCustomerRequest {
|
|
486
|
+
projectId: string;
|
|
487
|
+
/** Opaque token exchangeable for subscription details. */
|
|
488
|
+
token: string;
|
|
489
|
+
}
|
|
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
|
+
export interface TerminateConsumersSubscriptionRequest {
|
|
505
|
+
projectId: string;
|
|
506
|
+
subscriptionId: string;
|
|
507
|
+
}
|
|
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
|
+
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
|
+
export interface VendorsSubscriptionsListByOrganizationRequest {
|
|
532
|
+
organizationId: string;
|
|
533
|
+
cursor?: string;
|
|
534
|
+
limit?: number;
|
|
535
|
+
productId?: string;
|
|
536
|
+
/** Flag to control if cancelled or rejected subscriptions should be returned. */
|
|
537
|
+
includeExpired?: boolean;
|
|
538
|
+
}
|
|
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
|
+
export interface VendorsSubscriptionsListByProjectRequest {
|
|
559
|
+
projectId: string;
|
|
560
|
+
cursor?: string;
|
|
561
|
+
limit?: number;
|
|
562
|
+
productId?: string;
|
|
563
|
+
/** Flag to control if cancelled or rejected subscriptions should be returned. */
|
|
564
|
+
includeExpired?: boolean;
|
|
565
|
+
}
|
|
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
|
+
export type ApproveSubscriptionError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
586
|
+
/** Approve a pending subscription. Approve a pending subscription. */
|
|
587
|
+
export const approveSubscription: API.OperationMethod<
|
|
588
|
+
ApproveSubscriptionRequest,
|
|
589
|
+
ApproveSubscriptionResponse,
|
|
590
|
+
ApproveSubscriptionError,
|
|
591
|
+
StackitOpContext
|
|
592
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
593
|
+
input: ApproveSubscriptionRequest,
|
|
594
|
+
output: ApproveSubscriptionResponse,
|
|
595
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
596
|
+
protocol: StackitProtocol,
|
|
597
|
+
retry: Retry.Retry,
|
|
598
|
+
}));
|
|
599
|
+
|
|
600
|
+
export type CancelConsumersSubscriptionError =
|
|
601
|
+
| BadRequest
|
|
602
|
+
| Forbidden
|
|
603
|
+
| NotFound
|
|
604
|
+
| Conflict
|
|
605
|
+
| StackitOpError;
|
|
606
|
+
/** Cancel a subscription. Cancel a subscription. */
|
|
607
|
+
export const cancelConsumersSubscription: API.OperationMethod<
|
|
608
|
+
CancelConsumersSubscriptionRequest,
|
|
609
|
+
CancelConsumersSubscriptionResponse,
|
|
610
|
+
CancelConsumersSubscriptionError,
|
|
611
|
+
StackitOpContext
|
|
612
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
613
|
+
input: CancelConsumersSubscriptionRequest,
|
|
614
|
+
output: CancelConsumersSubscriptionResponse,
|
|
615
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
616
|
+
protocol: StackitProtocol,
|
|
617
|
+
retry: Retry.Retry,
|
|
618
|
+
}));
|
|
619
|
+
|
|
620
|
+
export type ConsumersSubscriptionsListByOrganizationError = BadRequest | Forbidden | StackitOpError;
|
|
621
|
+
/** List all subscriptions of an organization. List all subscriptions of an organization. */
|
|
622
|
+
export const consumersSubscriptionsListByOrganization: API.OperationMethod<
|
|
623
|
+
ConsumersSubscriptionsListByOrganizationRequest,
|
|
624
|
+
MarketplaceSubscriptionV1ListSubscriptionsResponse,
|
|
625
|
+
ConsumersSubscriptionsListByOrganizationError,
|
|
626
|
+
StackitOpContext
|
|
627
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
628
|
+
input: ConsumersSubscriptionsListByOrganizationRequest,
|
|
629
|
+
output: MarketplaceSubscriptionV1ListSubscriptionsResponse,
|
|
630
|
+
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
631
|
+
protocol: StackitProtocol,
|
|
632
|
+
retry: Retry.Retry,
|
|
633
|
+
}));
|
|
634
|
+
|
|
635
|
+
export type ConsumersSubscriptionsListByProjectError = BadRequest | Forbidden | StackitOpError;
|
|
636
|
+
/** List all subscriptions of an project. List all subscriptions of an project. */
|
|
637
|
+
export const consumersSubscriptionsListByProject: API.OperationMethod<
|
|
638
|
+
ConsumersSubscriptionsListByProjectRequest,
|
|
639
|
+
MarketplaceSubscriptionV1ListSubscriptionsResponse,
|
|
640
|
+
ConsumersSubscriptionsListByProjectError,
|
|
641
|
+
StackitOpContext
|
|
642
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
643
|
+
input: ConsumersSubscriptionsListByProjectRequest,
|
|
644
|
+
output: MarketplaceSubscriptionV1ListSubscriptionsResponse,
|
|
645
|
+
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
646
|
+
protocol: StackitProtocol,
|
|
647
|
+
retry: Retry.Retry,
|
|
648
|
+
}));
|
|
649
|
+
|
|
650
|
+
export type CreateConsumersSubscriptionError = BadRequest | Forbidden | Conflict | StackitOpError;
|
|
651
|
+
/** Create a new subscription. Create a new subscription. */
|
|
652
|
+
export const createConsumersSubscription: API.OperationMethod<
|
|
653
|
+
CreateConsumersSubscriptionRequest,
|
|
654
|
+
MarketplaceSubscriptionV1Subscription,
|
|
655
|
+
CreateConsumersSubscriptionError,
|
|
656
|
+
StackitOpContext
|
|
657
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
658
|
+
input: CreateConsumersSubscriptionRequest,
|
|
659
|
+
output: MarketplaceSubscriptionV1Subscription,
|
|
660
|
+
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
661
|
+
protocol: StackitProtocol,
|
|
662
|
+
retry: Retry.Retry,
|
|
663
|
+
}));
|
|
664
|
+
|
|
665
|
+
export type GetConsumersSubscriptionError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
666
|
+
/** Get a subscription. Get a subscription. */
|
|
667
|
+
export const getConsumersSubscription: API.OperationMethod<
|
|
668
|
+
GetConsumersSubscriptionRequest,
|
|
669
|
+
MarketplaceSubscriptionV1Subscription,
|
|
670
|
+
GetConsumersSubscriptionError,
|
|
671
|
+
StackitOpContext
|
|
672
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
673
|
+
input: GetConsumersSubscriptionRequest,
|
|
674
|
+
output: MarketplaceSubscriptionV1Subscription,
|
|
675
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
676
|
+
protocol: StackitProtocol,
|
|
677
|
+
retry: Retry.Retry,
|
|
678
|
+
}));
|
|
679
|
+
|
|
680
|
+
export type GetConsumersSubscriptionsRedirectError = BadRequest | Forbidden | StackitOpError;
|
|
681
|
+
/** Get a subscription redirect. Get a subscription redirect. */
|
|
682
|
+
export const getConsumersSubscriptionsRedirect: API.OperationMethod<
|
|
683
|
+
GetConsumersSubscriptionsRedirectRequest,
|
|
684
|
+
MarketplaceSubscriptionV1SubscriptionRedirect,
|
|
685
|
+
GetConsumersSubscriptionsRedirectError,
|
|
686
|
+
StackitOpContext
|
|
687
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
688
|
+
input: GetConsumersSubscriptionsRedirectRequest,
|
|
689
|
+
output: MarketplaceSubscriptionV1SubscriptionRedirect,
|
|
690
|
+
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
691
|
+
protocol: StackitProtocol,
|
|
692
|
+
retry: Retry.Retry,
|
|
693
|
+
}));
|
|
694
|
+
|
|
695
|
+
export type GetVendorsSubscriptionError = BadRequest | Forbidden | StackitOpError;
|
|
696
|
+
/** Get a subscription. Get a subscription. */
|
|
697
|
+
export const getVendorsSubscription: API.OperationMethod<
|
|
698
|
+
GetVendorsSubscriptionRequest,
|
|
699
|
+
MarketplaceSubscriptionV1Subscription,
|
|
700
|
+
GetVendorsSubscriptionError,
|
|
701
|
+
StackitOpContext
|
|
702
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
703
|
+
input: GetVendorsSubscriptionRequest,
|
|
704
|
+
output: MarketplaceSubscriptionV1Subscription,
|
|
705
|
+
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
706
|
+
protocol: StackitProtocol,
|
|
707
|
+
retry: Retry.Retry,
|
|
708
|
+
}));
|
|
709
|
+
|
|
710
|
+
export type RejectVendorsSubscriptionError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
711
|
+
/** Reject a subscription. Reject a subscription (in any lifecycle state). Only available for subscriptions to products with lifecycle state `PRODUCT_PREVIEW`. */
|
|
712
|
+
export const rejectVendorsSubscription: API.OperationMethod<
|
|
713
|
+
RejectVendorsSubscriptionRequest,
|
|
714
|
+
RejectVendorsSubscriptionResponse,
|
|
715
|
+
RejectVendorsSubscriptionError,
|
|
716
|
+
StackitOpContext
|
|
717
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
718
|
+
input: RejectVendorsSubscriptionRequest,
|
|
719
|
+
output: RejectVendorsSubscriptionResponse,
|
|
720
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
721
|
+
protocol: StackitProtocol,
|
|
722
|
+
retry: Retry.Retry,
|
|
723
|
+
}));
|
|
724
|
+
|
|
725
|
+
export type ResolveCustomerError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
726
|
+
/** Resolve customer. Resolve customer. */
|
|
727
|
+
export const resolveCustomer: API.OperationMethod<
|
|
728
|
+
ResolveCustomerRequest,
|
|
729
|
+
MarketplaceSubscriptionV1Subscription,
|
|
730
|
+
ResolveCustomerError,
|
|
731
|
+
StackitOpContext
|
|
732
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
733
|
+
input: ResolveCustomerRequest,
|
|
734
|
+
output: MarketplaceSubscriptionV1Subscription,
|
|
735
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
736
|
+
protocol: StackitProtocol,
|
|
737
|
+
retry: Retry.Retry,
|
|
738
|
+
}));
|
|
739
|
+
|
|
740
|
+
export type TerminateConsumersSubscriptionError =
|
|
741
|
+
| BadRequest
|
|
742
|
+
| Forbidden
|
|
743
|
+
| NotFound
|
|
744
|
+
| StackitOpError;
|
|
745
|
+
/** Terminates a consumer subscription early. Terminates a consumer subscription early. */
|
|
746
|
+
export const terminateConsumersSubscription: API.OperationMethod<
|
|
747
|
+
TerminateConsumersSubscriptionRequest,
|
|
748
|
+
TerminateConsumersSubscriptionResponse,
|
|
749
|
+
TerminateConsumersSubscriptionError,
|
|
750
|
+
StackitOpContext
|
|
751
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
752
|
+
input: TerminateConsumersSubscriptionRequest,
|
|
753
|
+
output: TerminateConsumersSubscriptionResponse,
|
|
754
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
755
|
+
protocol: StackitProtocol,
|
|
756
|
+
retry: Retry.Retry,
|
|
757
|
+
}));
|
|
758
|
+
|
|
759
|
+
export type VendorsSubscriptionsListByOrganizationError = BadRequest | Forbidden | StackitOpError;
|
|
760
|
+
/** List all subscriptions of an organization. List all subscriptions of an organization. */
|
|
761
|
+
export const vendorsSubscriptionsListByOrganization: API.OperationMethod<
|
|
762
|
+
VendorsSubscriptionsListByOrganizationRequest,
|
|
763
|
+
MarketplaceSubscriptionV1ListSubscriptionsResponse,
|
|
764
|
+
VendorsSubscriptionsListByOrganizationError,
|
|
765
|
+
StackitOpContext
|
|
766
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
767
|
+
input: VendorsSubscriptionsListByOrganizationRequest,
|
|
768
|
+
output: MarketplaceSubscriptionV1ListSubscriptionsResponse,
|
|
769
|
+
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
770
|
+
protocol: StackitProtocol,
|
|
771
|
+
retry: Retry.Retry,
|
|
772
|
+
}));
|
|
773
|
+
|
|
774
|
+
export type VendorsSubscriptionsListByProjectError = BadRequest | Forbidden | StackitOpError;
|
|
775
|
+
/** List all subscriptions of an project. List all subscriptions of an project. */
|
|
776
|
+
export const vendorsSubscriptionsListByProject: API.OperationMethod<
|
|
777
|
+
VendorsSubscriptionsListByProjectRequest,
|
|
778
|
+
MarketplaceSubscriptionV1ListSubscriptionsResponse,
|
|
779
|
+
VendorsSubscriptionsListByProjectError,
|
|
780
|
+
StackitOpContext
|
|
781
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
782
|
+
input: VendorsSubscriptionsListByProjectRequest,
|
|
783
|
+
output: MarketplaceSubscriptionV1ListSubscriptionsResponse,
|
|
784
|
+
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
785
|
+
protocol: StackitProtocol,
|
|
786
|
+
retry: Retry.Retry,
|
|
787
|
+
}));
|