@distilled.cloud/stackit 1.0.0-rc.15 → 1.0.0-rc.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +32 -28
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +13 -13
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +16 -16
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +22 -22
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +15 -15
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +31 -29
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +24 -23
- package/lib/retry.js.map +1 -1
- package/lib/services/alb.d.ts +10 -87
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +73 -502
- package/lib/services/alb_waf.d.ts +9 -82
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +84 -510
- package/lib/services/authorization.d.ts +5 -47
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +67 -314
- package/lib/services/automation.d.ts +7 -47
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +58 -353
- package/lib/services/cdn.d.ts +8 -220
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +81 -896
- package/lib/services/certificates.d.ts +8 -27
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +45 -171
- package/lib/services/cost.d.ts +10 -37
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +39 -169
- package/lib/services/dns.d.ts +9 -104
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +98 -714
- package/lib/services/dremio.d.ts +8 -50
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +56 -307
- package/lib/services/edge.d.ts +7 -40
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +66 -347
- package/lib/services/functions.d.ts +1 -48
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +64 -393
- package/lib/services/git.d.ts +8 -61
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +87 -510
- package/lib/services/iaas.d.ts +9 -337
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +409 -3532
- package/lib/services/intake.d.ts +8 -75
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +74 -465
- package/lib/services/kms.d.ts +9 -92
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +95 -650
- package/lib/services/lb_ip_lists.d.ts +9 -25
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +45 -146
- package/lib/services/load_balancer.d.ts +10 -81
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +76 -486
- package/lib/services/logme.d.ts +8 -69
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +82 -564
- package/lib/services/logs.d.ts +8 -64
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +84 -465
- package/lib/services/mariadb.d.ts +8 -65
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +84 -541
- package/lib/services/model_experiments.d.ts +9 -48
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +66 -325
- package/lib/services/model_serving.d.ts +7 -47
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +55 -277
- package/lib/services/mongodb_flex.d.ts +8 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +102 -793
- package/lib/services/object_storage.d.ts +12 -59
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +93 -528
- package/lib/services/observability.d.ts +8 -407
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +375 -3148
- package/lib/services/opensearch.d.ts +8 -71
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +85 -553
- package/lib/services/pim.d.ts +12 -108
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +81 -726
- package/lib/services/postgres_flex.d.ts +14 -136
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +114 -841
- package/lib/services/pubsub.d.ts +11 -73
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +92 -507
- package/lib/services/rabbitmq.d.ts +8 -76
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +88 -564
- package/lib/services/registry.d.ts +10 -28
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +49 -189
- package/lib/services/resource_manager.d.ts +9 -61
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +92 -462
- package/lib/services/run_command.d.ts +5 -28
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +38 -176
- package/lib/services/sca.d.ts +8 -79
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +63 -435
- package/lib/services/scf.d.ts +8 -64
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +99 -660
- package/lib/services/secrets_manager.d.ts +8 -61
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +99 -601
- package/lib/services/server_backup.d.ts +7 -50
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +70 -444
- package/lib/services/server_update.d.ts +7 -35
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +58 -342
- package/lib/services/service_account.d.ts +10 -68
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +75 -495
- package/lib/services/service_enablement.d.ts +7 -29
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +40 -147
- package/lib/services/sfs.d.ts +4 -96
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +117 -782
- package/lib/services/ske.d.ts +9 -108
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +67 -549
- package/lib/services/sqlserverflex.d.ts +11 -152
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +112 -925
- package/lib/services/stackit_marketplace.d.ts +9 -38
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +64 -369
- package/lib/services/telemetry_link.d.ts +8 -61
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +81 -522
- package/lib/services/telemetry_router.d.ts +8 -72
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +73 -474
- package/lib/services/ufw.d.ts +7 -42
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +55 -269
- package/lib/services/valkey.d.ts +8 -68
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +85 -557
- package/lib/services/vpn.d.ts +21 -186
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +105 -920
- package/lib/services/workflows.d.ts +15 -84
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +67 -497
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +10 -10
- package/package.json +13 -9
- package/src/credentials.ts +21 -18
- package/src/errors.ts +10 -14
- package/src/index.ts +2 -2
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +12 -9
- package/src/retry.ts +6 -4
- package/src/services/alb.ts +599 -655
- package/src/services/alb_waf.ts +597 -637
- package/src/services/authorization.ts +400 -383
- package/src/services/automation.ts +422 -405
- package/src/services/cdn.ts +817 -1375
- package/src/services/certificates.ts +209 -190
- package/src/services/cost.ts +100 -207
- package/src/services/dns.ts +793 -833
- package/src/services/dremio.ts +356 -349
- package/src/services/edge.ts +406 -366
- package/src/services/functions.ts +465 -463
- package/src/services/git.ts +602 -547
- package/src/services/iaas.ts +3931 -3821
- package/src/services/intake.ts +521 -549
- package/src/services/kms.ts +715 -692
- package/src/services/lb_ip_lists.ts +173 -152
- package/src/services/load_balancer.ts +576 -619
- package/src/services/logme.ts +696 -641
- package/src/services/logs.ts +510 -493
- package/src/services/mariadb.ts +671 -604
- package/src/services/model_experiments.ts +343 -356
- package/src/services/model_serving.ts +337 -328
- package/src/services/mongodb_flex.ts +955 -1007
- package/src/services/object_storage.ts +614 -557
- package/src/services/observability.ts +3469 -3866
- package/src/services/opensearch.ts +679 -628
- package/src/services/pim.ts +672 -909
- package/src/services/postgres_flex.ts +966 -986
- package/src/services/pubsub.ts +524 -546
- package/src/services/rabbitmq.ts +693 -654
- package/src/services/registry.ts +227 -194
- package/src/services/resource_manager.ts +520 -517
- package/src/services/run_command.ts +219 -211
- package/src/services/sca.ts +543 -570
- package/src/services/scf.ts +790 -716
- package/src/services/secrets_manager.ts +707 -622
- package/src/services/server_backup.ts +490 -475
- package/src/services/server_update.ts +353 -356
- package/src/services/service_account.ts +515 -553
- package/src/services/service_enablement.ts +162 -166
- package/src/services/sfs.ts +879 -958
- package/src/services/ske.ts +694 -769
- package/src/services/sqlserverflex.ts +1042 -1117
- package/src/services/stackit_marketplace.ts +377 -372
- package/src/services/telemetry_link.ts +530 -531
- package/src/services/telemetry_router.ts +509 -534
- package/src/services/ufw.ts +305 -307
- package/src/services/valkey.ts +684 -629
- package/src/services/vpn.ts +935 -1195
- package/src/services/workflows.ts +426 -586
- package/src/traits.ts +1 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -181
- package/lib/protocol.test.js.map +0 -1
- package/lib/services/alb.js.map +0 -1
- package/lib/services/alb_waf.js.map +0 -1
- package/lib/services/authorization.js.map +0 -1
- package/lib/services/automation.js.map +0 -1
- package/lib/services/cdn.js.map +0 -1
- package/lib/services/certificates.js.map +0 -1
- package/lib/services/cost.js.map +0 -1
- package/lib/services/dns.js.map +0 -1
- package/lib/services/dremio.js.map +0 -1
- package/lib/services/edge.js.map +0 -1
- package/lib/services/functions.js.map +0 -1
- package/lib/services/git.js.map +0 -1
- package/lib/services/iaas.js.map +0 -1
- package/lib/services/intake.js.map +0 -1
- package/lib/services/kms.js.map +0 -1
- package/lib/services/lb_ip_lists.js.map +0 -1
- package/lib/services/load_balancer.js.map +0 -1
- package/lib/services/logme.js.map +0 -1
- package/lib/services/logs.js.map +0 -1
- package/lib/services/mariadb.js.map +0 -1
- package/lib/services/model_experiments.js.map +0 -1
- package/lib/services/model_serving.js.map +0 -1
- package/lib/services/mongodb_flex.js.map +0 -1
- package/lib/services/object_storage.js.map +0 -1
- package/lib/services/observability.js.map +0 -1
- package/lib/services/opensearch.js.map +0 -1
- package/lib/services/pim.js.map +0 -1
- package/lib/services/postgres_flex.js.map +0 -1
- package/lib/services/pubsub.js.map +0 -1
- package/lib/services/rabbitmq.js.map +0 -1
- package/lib/services/registry.js.map +0 -1
- package/lib/services/resource_manager.js.map +0 -1
- package/lib/services/run_command.js.map +0 -1
- package/lib/services/sca.js.map +0 -1
- package/lib/services/scf.js.map +0 -1
- package/lib/services/secrets_manager.js.map +0 -1
- package/lib/services/server_backup.js.map +0 -1
- package/lib/services/server_update.js.map +0 -1
- package/lib/services/service_account.js.map +0 -1
- package/lib/services/service_enablement.js.map +0 -1
- package/lib/services/sfs.js.map +0 -1
- package/lib/services/ske.js.map +0 -1
- package/lib/services/sqlserverflex.js.map +0 -1
- package/lib/services/stackit_marketplace.js.map +0 -1
- package/lib/services/telemetry_link.js.map +0 -1
- package/lib/services/telemetry_router.js.map +0 -1
- package/lib/services/ufw.js.map +0 -1
- package/lib/services/valkey.js.map +0 -1
- package/lib/services/vpn.js.map +0 -1
- package/lib/services/workflows.js.map +0 -1
- package/src/protocol.test.ts +0 -304
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
import * as C from "@distilled.cloud/core/category";
|
|
3
3
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
4
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
6
|
import { UnknownStackitError } from "../errors.ts";
|
|
6
7
|
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
7
8
|
import * as Retry from "../retry.ts";
|
|
8
9
|
import * as T from "../traits.ts";
|
|
10
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
11
|
+
const __s: any[] = [];
|
|
9
12
|
|
|
10
13
|
export type { StackitOpError, StackitOpContext };
|
|
11
14
|
|
|
@@ -28,11 +31,6 @@ export class NotFound
|
|
|
28
31
|
) {}
|
|
29
32
|
|
|
30
33
|
export type CreateCommandRequestParametersMap = { [key: string]: string | undefined };
|
|
31
|
-
export const CreateCommandRequestParametersMap = /*@__PURE__*/ S.Record(
|
|
32
|
-
S.String,
|
|
33
|
-
S.String,
|
|
34
|
-
) as any as S.Schema<CreateCommandRequestParametersMap>;
|
|
35
|
-
|
|
36
34
|
export interface CreateCommandRequest {
|
|
37
35
|
/** ID of the project */
|
|
38
36
|
projectId: string;
|
|
@@ -43,32 +41,9 @@ export interface CreateCommandRequest {
|
|
|
43
41
|
commandTemplateName: string;
|
|
44
42
|
parameters?: CreateCommandRequestParametersMap;
|
|
45
43
|
}
|
|
46
|
-
export const CreateCommandRequest = /*@__PURE__*/ S.suspend(() =>
|
|
47
|
-
S.Struct({
|
|
48
|
-
projectId: S.String.pipe(T.Label()),
|
|
49
|
-
region: S.String.pipe(T.Label()),
|
|
50
|
-
serverId: S.String.pipe(T.Label()),
|
|
51
|
-
commandTemplateName: S.String,
|
|
52
|
-
parameters: S.optional(CreateCommandRequestParametersMap),
|
|
53
|
-
}).pipe(
|
|
54
|
-
T.Http({
|
|
55
|
-
method: "POST",
|
|
56
|
-
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/commands",
|
|
57
|
-
code: 200,
|
|
58
|
-
baseUrl: "https://run-command.api.stackit.cloud",
|
|
59
|
-
}),
|
|
60
|
-
),
|
|
61
|
-
).annotate({ identifier: "CreateCommandRequest" }) as any as S.Schema<CreateCommandRequest>;
|
|
62
|
-
|
|
63
44
|
export interface NewCommandResponse {
|
|
64
45
|
id?: number;
|
|
65
46
|
}
|
|
66
|
-
export const NewCommandResponse = /*@__PURE__*/ S.suspend(() =>
|
|
67
|
-
S.Struct({
|
|
68
|
-
id: S.optional(S.Number),
|
|
69
|
-
}),
|
|
70
|
-
).annotate({ identifier: "NewCommandResponse" }) as any as S.Schema<NewCommandResponse>;
|
|
71
|
-
|
|
72
47
|
export interface GetCommandRequest {
|
|
73
48
|
/** ID of the project */
|
|
74
49
|
projectId: string;
|
|
@@ -79,25 +54,7 @@ export interface GetCommandRequest {
|
|
|
79
54
|
/** ID of the command */
|
|
80
55
|
commandId: string;
|
|
81
56
|
}
|
|
82
|
-
export const GetCommandRequest = /*@__PURE__*/ S.suspend(() =>
|
|
83
|
-
S.Struct({
|
|
84
|
-
projectId: S.String.pipe(T.Label()),
|
|
85
|
-
region: S.String.pipe(T.Label()),
|
|
86
|
-
serverId: S.String.pipe(T.Label()),
|
|
87
|
-
commandId: S.String.pipe(T.Label()),
|
|
88
|
-
}).pipe(
|
|
89
|
-
T.Http({
|
|
90
|
-
method: "GET",
|
|
91
|
-
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/commands/{commandId}",
|
|
92
|
-
code: 200,
|
|
93
|
-
baseUrl: "https://run-command.api.stackit.cloud",
|
|
94
|
-
}),
|
|
95
|
-
),
|
|
96
|
-
).annotate({ identifier: "GetCommandRequest" }) as any as S.Schema<GetCommandRequest>;
|
|
97
|
-
|
|
98
57
|
export type CommandDetailsStatus = "pending" | "running" | "completed" | "failed";
|
|
99
|
-
export const CommandDetailsStatus = S.String;
|
|
100
|
-
|
|
101
58
|
export interface CommandDetails {
|
|
102
59
|
commandTemplateName?: string;
|
|
103
60
|
commandTemplateTitle?: string;
|
|
@@ -109,20 +66,6 @@ export interface CommandDetails {
|
|
|
109
66
|
startedAt?: string;
|
|
110
67
|
status?: CommandDetailsStatus;
|
|
111
68
|
}
|
|
112
|
-
export const CommandDetails = /*@__PURE__*/ S.suspend(() =>
|
|
113
|
-
S.Struct({
|
|
114
|
-
commandTemplateName: S.optional(S.String),
|
|
115
|
-
commandTemplateTitle: S.optional(S.String),
|
|
116
|
-
exitCode: S.optional(S.Number),
|
|
117
|
-
finishedAt: S.optional(S.String),
|
|
118
|
-
id: S.optional(S.Number),
|
|
119
|
-
output: S.optional(S.String),
|
|
120
|
-
script: S.optional(S.String),
|
|
121
|
-
startedAt: S.optional(S.String),
|
|
122
|
-
status: S.optional(CommandDetailsStatus),
|
|
123
|
-
}),
|
|
124
|
-
).annotate({ identifier: "CommandDetails" }) as any as S.Schema<CommandDetails>;
|
|
125
|
-
|
|
126
69
|
export interface GetCommandTemplateRequest {
|
|
127
70
|
/** ID of the project */
|
|
128
71
|
projectId: string;
|
|
@@ -133,29 +76,7 @@ export interface GetCommandTemplateRequest {
|
|
|
133
76
|
/** Name of the template */
|
|
134
77
|
commandTemplateName: string;
|
|
135
78
|
}
|
|
136
|
-
export const GetCommandTemplateRequest = /*@__PURE__*/ S.suspend(() =>
|
|
137
|
-
S.Struct({
|
|
138
|
-
projectId: S.String.pipe(T.Label()),
|
|
139
|
-
region: S.String.pipe(T.Label()),
|
|
140
|
-
serverId: S.String.pipe(T.Label()),
|
|
141
|
-
commandTemplateName: S.String.pipe(T.Label()),
|
|
142
|
-
}).pipe(
|
|
143
|
-
T.Http({
|
|
144
|
-
method: "GET",
|
|
145
|
-
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/command-templates/{commandTemplateName}",
|
|
146
|
-
code: 200,
|
|
147
|
-
baseUrl: "https://run-command.api.stackit.cloud",
|
|
148
|
-
}),
|
|
149
|
-
),
|
|
150
|
-
).annotate({
|
|
151
|
-
identifier: "GetCommandTemplateRequest",
|
|
152
|
-
}) as any as S.Schema<GetCommandTemplateRequest>;
|
|
153
|
-
|
|
154
79
|
export type CommandTemplateSchemaOsTypeList = Array<string>;
|
|
155
|
-
export const CommandTemplateSchemaOsTypeList = /*@__PURE__*/ S.Array(
|
|
156
|
-
S.String,
|
|
157
|
-
) as any as S.Schema<CommandTemplateSchemaOsTypeList>;
|
|
158
|
-
|
|
159
80
|
export interface Field {
|
|
160
81
|
default?: string;
|
|
161
82
|
description?: string;
|
|
@@ -165,23 +86,7 @@ export interface Field {
|
|
|
165
86
|
title?: string;
|
|
166
87
|
type?: string;
|
|
167
88
|
}
|
|
168
|
-
export const Field = /*@__PURE__*/ S.suspend(() =>
|
|
169
|
-
S.Struct({
|
|
170
|
-
default: S.optional(S.String),
|
|
171
|
-
description: S.optional(S.String),
|
|
172
|
-
maxLen: S.optional(S.Number),
|
|
173
|
-
minLen: S.optional(S.Number),
|
|
174
|
-
readOnly: S.optional(S.Boolean),
|
|
175
|
-
title: S.optional(S.String),
|
|
176
|
-
type: S.optional(S.String),
|
|
177
|
-
}),
|
|
178
|
-
).annotate({ identifier: "Field" }) as any as S.Schema<Field>;
|
|
179
|
-
|
|
180
89
|
export type PropertiesRequiredList = Array<string>;
|
|
181
|
-
export const PropertiesRequiredList = /*@__PURE__*/ S.Array(
|
|
182
|
-
S.String,
|
|
183
|
-
) as any as S.Schema<PropertiesRequiredList>;
|
|
184
|
-
|
|
185
90
|
export interface Properties {
|
|
186
91
|
ConfirmPassword?: Field;
|
|
187
92
|
Password?: Field;
|
|
@@ -190,26 +95,9 @@ export interface Properties {
|
|
|
190
95
|
required?: PropertiesRequiredList;
|
|
191
96
|
type?: string;
|
|
192
97
|
}
|
|
193
|
-
export const Properties = /*@__PURE__*/ S.suspend(() =>
|
|
194
|
-
S.Struct({
|
|
195
|
-
ConfirmPassword: S.optional(Field),
|
|
196
|
-
Password: S.optional(Field),
|
|
197
|
-
Script: S.optional(Field),
|
|
198
|
-
Username: S.optional(Field),
|
|
199
|
-
required: S.optional(PropertiesRequiredList),
|
|
200
|
-
type: S.optional(S.String),
|
|
201
|
-
}),
|
|
202
|
-
).annotate({ identifier: "Properties" }) as any as S.Schema<Properties>;
|
|
203
|
-
|
|
204
98
|
export interface ParametersSchema {
|
|
205
99
|
properties?: Properties;
|
|
206
100
|
}
|
|
207
|
-
export const ParametersSchema = /*@__PURE__*/ S.suspend(() =>
|
|
208
|
-
S.Struct({
|
|
209
|
-
properties: S.optional(Properties),
|
|
210
|
-
}),
|
|
211
|
-
).annotate({ identifier: "ParametersSchema" }) as any as S.Schema<ParametersSchema>;
|
|
212
|
-
|
|
213
101
|
export interface CommandTemplateSchema {
|
|
214
102
|
description?: string;
|
|
215
103
|
name?: string;
|
|
@@ -217,16 +105,6 @@ export interface CommandTemplateSchema {
|
|
|
217
105
|
parametersSchema?: ParametersSchema;
|
|
218
106
|
title?: string;
|
|
219
107
|
}
|
|
220
|
-
export const CommandTemplateSchema = /*@__PURE__*/ S.suspend(() =>
|
|
221
|
-
S.Struct({
|
|
222
|
-
description: S.optional(S.String),
|
|
223
|
-
name: S.optional(S.String),
|
|
224
|
-
osType: S.optional(CommandTemplateSchemaOsTypeList),
|
|
225
|
-
parametersSchema: S.optional(ParametersSchema),
|
|
226
|
-
title: S.optional(S.String),
|
|
227
|
-
}),
|
|
228
|
-
).annotate({ identifier: "CommandTemplateSchema" }) as any as S.Schema<CommandTemplateSchema>;
|
|
229
|
-
|
|
230
108
|
export interface ListCommandsRequest {
|
|
231
109
|
/** ID of the project */
|
|
232
110
|
projectId: string;
|
|
@@ -235,24 +113,7 @@ export interface ListCommandsRequest {
|
|
|
235
113
|
/** Server ID of the machine */
|
|
236
114
|
serverId: string;
|
|
237
115
|
}
|
|
238
|
-
export const ListCommandsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
239
|
-
S.Struct({
|
|
240
|
-
projectId: S.String.pipe(T.Label()),
|
|
241
|
-
region: S.String.pipe(T.Label()),
|
|
242
|
-
serverId: S.String.pipe(T.Label()),
|
|
243
|
-
}).pipe(
|
|
244
|
-
T.Http({
|
|
245
|
-
method: "GET",
|
|
246
|
-
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/commands",
|
|
247
|
-
code: 200,
|
|
248
|
-
baseUrl: "https://run-command.api.stackit.cloud",
|
|
249
|
-
}),
|
|
250
|
-
),
|
|
251
|
-
).annotate({ identifier: "ListCommandsRequest" }) as any as S.Schema<ListCommandsRequest>;
|
|
252
|
-
|
|
253
116
|
export type CommandsStatus = "pending" | "running" | "completed" | "failed";
|
|
254
|
-
export const CommandsStatus = S.String;
|
|
255
|
-
|
|
256
117
|
export interface Commands {
|
|
257
118
|
commandTemplateName?: string;
|
|
258
119
|
commandTemplateTitle?: string;
|
|
@@ -261,82 +122,24 @@ export interface Commands {
|
|
|
261
122
|
startedAt?: string;
|
|
262
123
|
status?: CommandsStatus;
|
|
263
124
|
}
|
|
264
|
-
export const Commands = /*@__PURE__*/ S.suspend(() =>
|
|
265
|
-
S.Struct({
|
|
266
|
-
commandTemplateName: S.optional(S.String),
|
|
267
|
-
commandTemplateTitle: S.optional(S.String),
|
|
268
|
-
finishedAt: S.optional(S.String),
|
|
269
|
-
id: S.optional(S.Number),
|
|
270
|
-
startedAt: S.optional(S.String),
|
|
271
|
-
status: S.optional(CommandsStatus),
|
|
272
|
-
}),
|
|
273
|
-
).annotate({ identifier: "Commands" }) as any as S.Schema<Commands>;
|
|
274
|
-
|
|
275
125
|
export type GetCommandsResponseItemsList = Array<Commands>;
|
|
276
|
-
export const GetCommandsResponseItemsList = /*@__PURE__*/ S.Array(
|
|
277
|
-
Commands,
|
|
278
|
-
) as any as S.Schema<GetCommandsResponseItemsList>;
|
|
279
|
-
|
|
280
126
|
export interface GetCommandsResponse {
|
|
281
127
|
items?: GetCommandsResponseItemsList;
|
|
282
128
|
}
|
|
283
|
-
export const GetCommandsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
284
|
-
S.Struct({
|
|
285
|
-
items: S.optional(GetCommandsResponseItemsList),
|
|
286
|
-
}),
|
|
287
|
-
).annotate({ identifier: "GetCommandsResponse" }) as any as S.Schema<GetCommandsResponse>;
|
|
288
|
-
|
|
289
129
|
export interface ListCommandTemplatesRequest {
|
|
290
130
|
/** The type of the Operating System (windows or linux). If not provided will return data for all OS types. */
|
|
291
131
|
osType?: string;
|
|
292
132
|
}
|
|
293
|
-
export const ListCommandTemplatesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
294
|
-
S.Struct({
|
|
295
|
-
osType: S.optional(S.String.pipe(T.Query())),
|
|
296
|
-
}).pipe(
|
|
297
|
-
T.Http({
|
|
298
|
-
method: "GET",
|
|
299
|
-
uri: "/v2/command-templates",
|
|
300
|
-
code: 200,
|
|
301
|
-
baseUrl: "https://run-command.api.stackit.cloud",
|
|
302
|
-
}),
|
|
303
|
-
),
|
|
304
|
-
).annotate({
|
|
305
|
-
identifier: "ListCommandTemplatesRequest",
|
|
306
|
-
}) as any as S.Schema<ListCommandTemplatesRequest>;
|
|
307
|
-
|
|
308
133
|
export type CommandTemplateOsTypeList = Array<string>;
|
|
309
|
-
export const CommandTemplateOsTypeList = /*@__PURE__*/ S.Array(
|
|
310
|
-
S.String,
|
|
311
|
-
) as any as S.Schema<CommandTemplateOsTypeList>;
|
|
312
|
-
|
|
313
134
|
export interface CommandTemplate {
|
|
314
135
|
name?: string;
|
|
315
136
|
osType?: CommandTemplateOsTypeList;
|
|
316
137
|
title?: string;
|
|
317
138
|
}
|
|
318
|
-
export const CommandTemplate = /*@__PURE__*/ S.suspend(() =>
|
|
319
|
-
S.Struct({
|
|
320
|
-
name: S.optional(S.String),
|
|
321
|
-
osType: S.optional(CommandTemplateOsTypeList),
|
|
322
|
-
title: S.optional(S.String),
|
|
323
|
-
}),
|
|
324
|
-
).annotate({ identifier: "CommandTemplate" }) as any as S.Schema<CommandTemplate>;
|
|
325
|
-
|
|
326
139
|
export type CommandTemplateResponseItemsList = Array<CommandTemplate>;
|
|
327
|
-
export const CommandTemplateResponseItemsList = /*@__PURE__*/ S.Array(
|
|
328
|
-
CommandTemplate,
|
|
329
|
-
) as any as S.Schema<CommandTemplateResponseItemsList>;
|
|
330
|
-
|
|
331
140
|
export interface CommandTemplateResponse {
|
|
332
141
|
items?: CommandTemplateResponseItemsList;
|
|
333
142
|
}
|
|
334
|
-
export const CommandTemplateResponse = /*@__PURE__*/ S.suspend(() =>
|
|
335
|
-
S.Struct({
|
|
336
|
-
items: S.optional(CommandTemplateResponseItemsList),
|
|
337
|
-
}),
|
|
338
|
-
).annotate({ identifier: "CommandTemplateResponse" }) as any as S.Schema<CommandTemplateResponse>;
|
|
339
|
-
|
|
340
143
|
export type CreateCommandError = BadRequest | NotFound | StackitOpError;
|
|
341
144
|
/** Creates a new command for execution */
|
|
342
145
|
export const createCommand: API.OperationMethod<
|
|
@@ -345,8 +148,8 @@ export const createCommand: API.OperationMethod<
|
|
|
345
148
|
CreateCommandError,
|
|
346
149
|
StackitOpContext
|
|
347
150
|
> = /*@__PURE__*/ API.make(() => ({
|
|
348
|
-
input: CreateCommandRequest
|
|
349
|
-
output: NewCommandResponse
|
|
151
|
+
input: __S(1, __c0, 1) as any as S.Schema<CreateCommandRequest>,
|
|
152
|
+
output: __S(2, __c0, 2) as any as S.Schema<NewCommandResponse>,
|
|
350
153
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
351
154
|
protocol: StackitProtocol,
|
|
352
155
|
retry: Retry.Retry,
|
|
@@ -360,8 +163,8 @@ export const getCommand: API.OperationMethod<
|
|
|
360
163
|
GetCommandError,
|
|
361
164
|
StackitOpContext
|
|
362
165
|
> = /*@__PURE__*/ API.make(() => ({
|
|
363
|
-
input: GetCommandRequest
|
|
364
|
-
output: CommandDetails
|
|
166
|
+
input: __S(8, __c1, 0) as any as S.Schema<GetCommandRequest>,
|
|
167
|
+
output: __S(9, __c1, 1) as any as S.Schema<CommandDetails>,
|
|
365
168
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
366
169
|
protocol: StackitProtocol,
|
|
367
170
|
retry: Retry.Retry,
|
|
@@ -375,8 +178,8 @@ export const getCommandTemplate: API.OperationMethod<
|
|
|
375
178
|
GetCommandTemplateError,
|
|
376
179
|
StackitOpContext
|
|
377
180
|
> = /*@__PURE__*/ API.make(() => ({
|
|
378
|
-
input: GetCommandTemplateRequest
|
|
379
|
-
output: CommandTemplateSchema
|
|
181
|
+
input: __S(16, __c2, 0) as any as S.Schema<GetCommandTemplateRequest>,
|
|
182
|
+
output: __S(20, __c2, 4) as any as S.Schema<CommandTemplateSchema>,
|
|
380
183
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
381
184
|
protocol: StackitProtocol,
|
|
382
185
|
retry: Retry.Retry,
|
|
@@ -390,8 +193,8 @@ export const listCommands: API.OperationMethod<
|
|
|
390
193
|
ListCommandsError,
|
|
391
194
|
StackitOpContext
|
|
392
195
|
> = /*@__PURE__*/ API.make(() => ({
|
|
393
|
-
input: ListCommandsRequest
|
|
394
|
-
output: GetCommandsResponse
|
|
196
|
+
input: __S(32, __c4, 0) as any as S.Schema<ListCommandsRequest>,
|
|
197
|
+
output: __S(35, __c4, 3) as any as S.Schema<GetCommandsResponse>,
|
|
395
198
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
396
199
|
protocol: StackitProtocol,
|
|
397
200
|
retry: Retry.Retry,
|
|
@@ -405,9 +208,214 @@ export const listCommandTemplates: API.OperationMethod<
|
|
|
405
208
|
ListCommandTemplatesError,
|
|
406
209
|
StackitOpContext
|
|
407
210
|
> = /*@__PURE__*/ API.make(() => ({
|
|
408
|
-
input: ListCommandTemplatesRequest
|
|
409
|
-
output: CommandTemplateResponse
|
|
211
|
+
input: __S(40, __c5, 0) as any as S.Schema<ListCommandTemplatesRequest>,
|
|
212
|
+
output: __S(43, __c5, 3) as any as S.Schema<CommandTemplateResponse>,
|
|
410
213
|
errors: [BadRequest, UnknownStackitError],
|
|
411
214
|
protocol: StackitProtocol,
|
|
412
215
|
retry: Retry.Retry,
|
|
413
216
|
}));
|
|
217
|
+
|
|
218
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
219
|
+
function __c0(j: number): any {
|
|
220
|
+
switch (j) {
|
|
221
|
+
case 0:
|
|
222
|
+
return S.Record(S.String, S.String);
|
|
223
|
+
case 1:
|
|
224
|
+
return S.suspend(() =>
|
|
225
|
+
S.Struct({
|
|
226
|
+
projectId: S.String.pipe(T.Label()),
|
|
227
|
+
region: S.String.pipe(T.Label()),
|
|
228
|
+
serverId: S.String.pipe(T.Label()),
|
|
229
|
+
commandTemplateName: S.String,
|
|
230
|
+
parameters: S.optional(__S(0, __c0, 0)),
|
|
231
|
+
}).pipe(
|
|
232
|
+
T.Http({
|
|
233
|
+
method: "POST",
|
|
234
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/commands",
|
|
235
|
+
code: 200,
|
|
236
|
+
baseUrl: "https://run-command.api.stackit.cloud",
|
|
237
|
+
}),
|
|
238
|
+
),
|
|
239
|
+
).annotate({ identifier: "CreateCommandRequest" });
|
|
240
|
+
case 2:
|
|
241
|
+
return S.suspend(() =>
|
|
242
|
+
S.Struct({
|
|
243
|
+
id: S.optional(S.Number),
|
|
244
|
+
}),
|
|
245
|
+
).annotate({ identifier: "NewCommandResponse" });
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
function __c1(j: number): any {
|
|
249
|
+
switch (j) {
|
|
250
|
+
case 0:
|
|
251
|
+
return S.suspend(() =>
|
|
252
|
+
S.Struct({
|
|
253
|
+
projectId: S.String.pipe(T.Label()),
|
|
254
|
+
region: S.String.pipe(T.Label()),
|
|
255
|
+
serverId: S.String.pipe(T.Label()),
|
|
256
|
+
commandId: S.String.pipe(T.Label()),
|
|
257
|
+
}).pipe(
|
|
258
|
+
T.Http({
|
|
259
|
+
method: "GET",
|
|
260
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/commands/{commandId}",
|
|
261
|
+
code: 200,
|
|
262
|
+
baseUrl: "https://run-command.api.stackit.cloud",
|
|
263
|
+
}),
|
|
264
|
+
),
|
|
265
|
+
).annotate({ identifier: "GetCommandRequest" });
|
|
266
|
+
case 1:
|
|
267
|
+
return S.suspend(() =>
|
|
268
|
+
S.Struct({
|
|
269
|
+
commandTemplateName: S.optional(S.String),
|
|
270
|
+
commandTemplateTitle: S.optional(S.String),
|
|
271
|
+
exitCode: S.optional(S.Number),
|
|
272
|
+
finishedAt: S.optional(S.String),
|
|
273
|
+
id: S.optional(S.Number),
|
|
274
|
+
output: S.optional(S.String),
|
|
275
|
+
script: S.optional(S.String),
|
|
276
|
+
startedAt: S.optional(S.String),
|
|
277
|
+
status: S.optional(S.String),
|
|
278
|
+
}),
|
|
279
|
+
).annotate({ identifier: "CommandDetails" });
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
function __c2(j: number): any {
|
|
283
|
+
switch (j) {
|
|
284
|
+
case 0:
|
|
285
|
+
return S.suspend(() =>
|
|
286
|
+
S.Struct({
|
|
287
|
+
projectId: S.String.pipe(T.Label()),
|
|
288
|
+
region: S.String.pipe(T.Label()),
|
|
289
|
+
serverId: S.String.pipe(T.Label()),
|
|
290
|
+
commandTemplateName: S.String.pipe(T.Label()),
|
|
291
|
+
}).pipe(
|
|
292
|
+
T.Http({
|
|
293
|
+
method: "GET",
|
|
294
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/command-templates/{commandTemplateName}",
|
|
295
|
+
code: 200,
|
|
296
|
+
baseUrl: "https://run-command.api.stackit.cloud",
|
|
297
|
+
}),
|
|
298
|
+
),
|
|
299
|
+
).annotate({ identifier: "GetCommandTemplateRequest" });
|
|
300
|
+
case 1:
|
|
301
|
+
return S.suspend(() =>
|
|
302
|
+
S.Struct({
|
|
303
|
+
default: S.optional(S.String),
|
|
304
|
+
description: S.optional(S.String),
|
|
305
|
+
maxLen: S.optional(S.Number),
|
|
306
|
+
minLen: S.optional(S.Number),
|
|
307
|
+
readOnly: S.optional(S.Boolean),
|
|
308
|
+
title: S.optional(S.String),
|
|
309
|
+
type: S.optional(S.String),
|
|
310
|
+
}),
|
|
311
|
+
).annotate({ identifier: "Field" });
|
|
312
|
+
case 2:
|
|
313
|
+
return S.suspend(() =>
|
|
314
|
+
S.Struct({
|
|
315
|
+
ConfirmPassword: S.optional(__S(17, __c2, 1)),
|
|
316
|
+
Password: S.optional(__S(17, __c2, 1)),
|
|
317
|
+
Script: S.optional(__S(17, __c2, 1)),
|
|
318
|
+
Username: S.optional(__S(17, __c2, 1)),
|
|
319
|
+
required: S.optional(__S(24, __c3, 0)),
|
|
320
|
+
type: S.optional(S.String),
|
|
321
|
+
}),
|
|
322
|
+
).annotate({ identifier: "Properties" });
|
|
323
|
+
case 3:
|
|
324
|
+
return S.suspend(() =>
|
|
325
|
+
S.Struct({
|
|
326
|
+
properties: S.optional(__S(18, __c2, 2)),
|
|
327
|
+
}),
|
|
328
|
+
).annotate({ identifier: "ParametersSchema" });
|
|
329
|
+
case 4:
|
|
330
|
+
return S.suspend(() =>
|
|
331
|
+
S.Struct({
|
|
332
|
+
description: S.optional(S.String),
|
|
333
|
+
name: S.optional(S.String),
|
|
334
|
+
osType: S.optional(__S(24, __c3, 0)),
|
|
335
|
+
parametersSchema: S.optional(__S(19, __c2, 3)),
|
|
336
|
+
title: S.optional(S.String),
|
|
337
|
+
}),
|
|
338
|
+
).annotate({ identifier: "CommandTemplateSchema" });
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
function __c3(j: number): any {
|
|
342
|
+
switch (j) {
|
|
343
|
+
case 0:
|
|
344
|
+
return S.Array(S.String);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
function __c4(j: number): any {
|
|
348
|
+
switch (j) {
|
|
349
|
+
case 0:
|
|
350
|
+
return S.suspend(() =>
|
|
351
|
+
S.Struct({
|
|
352
|
+
projectId: S.String.pipe(T.Label()),
|
|
353
|
+
region: S.String.pipe(T.Label()),
|
|
354
|
+
serverId: S.String.pipe(T.Label()),
|
|
355
|
+
}).pipe(
|
|
356
|
+
T.Http({
|
|
357
|
+
method: "GET",
|
|
358
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/commands",
|
|
359
|
+
code: 200,
|
|
360
|
+
baseUrl: "https://run-command.api.stackit.cloud",
|
|
361
|
+
}),
|
|
362
|
+
),
|
|
363
|
+
).annotate({ identifier: "ListCommandsRequest" });
|
|
364
|
+
case 1:
|
|
365
|
+
return S.suspend(() =>
|
|
366
|
+
S.Struct({
|
|
367
|
+
commandTemplateName: S.optional(S.String),
|
|
368
|
+
commandTemplateTitle: S.optional(S.String),
|
|
369
|
+
finishedAt: S.optional(S.String),
|
|
370
|
+
id: S.optional(S.Number),
|
|
371
|
+
startedAt: S.optional(S.String),
|
|
372
|
+
status: S.optional(S.String),
|
|
373
|
+
}),
|
|
374
|
+
).annotate({ identifier: "Commands" });
|
|
375
|
+
case 2:
|
|
376
|
+
return S.Array(__S(33, __c4, 1));
|
|
377
|
+
case 3:
|
|
378
|
+
return S.suspend(() =>
|
|
379
|
+
S.Struct({
|
|
380
|
+
items: S.optional(__S(34, __c4, 2)),
|
|
381
|
+
}),
|
|
382
|
+
).annotate({ identifier: "GetCommandsResponse" });
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
function __c5(j: number): any {
|
|
386
|
+
switch (j) {
|
|
387
|
+
case 0:
|
|
388
|
+
return S.suspend(() =>
|
|
389
|
+
S.Struct({
|
|
390
|
+
osType: S.optional(S.String.pipe(T.Query())),
|
|
391
|
+
}).pipe(
|
|
392
|
+
T.Http({
|
|
393
|
+
method: "GET",
|
|
394
|
+
uri: "/v2/command-templates",
|
|
395
|
+
code: 200,
|
|
396
|
+
baseUrl: "https://run-command.api.stackit.cloud",
|
|
397
|
+
}),
|
|
398
|
+
),
|
|
399
|
+
).annotate({ identifier: "ListCommandTemplatesRequest" });
|
|
400
|
+
case 1:
|
|
401
|
+
return S.suspend(() =>
|
|
402
|
+
S.Struct({
|
|
403
|
+
name: S.optional(S.String),
|
|
404
|
+
osType: S.optional(__S(24, __c3, 0)),
|
|
405
|
+
title: S.optional(S.String),
|
|
406
|
+
}),
|
|
407
|
+
).annotate({ identifier: "CommandTemplate" });
|
|
408
|
+
case 2:
|
|
409
|
+
return S.Array(__S(41, __c5, 1));
|
|
410
|
+
case 3:
|
|
411
|
+
return S.suspend(() =>
|
|
412
|
+
S.Struct({
|
|
413
|
+
items: S.optional(__S(42, __c5, 2)),
|
|
414
|
+
}),
|
|
415
|
+
).annotate({ identifier: "CommandTemplateResponse" });
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
419
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
420
|
+
return (__s[i] ??= __L.at(f, j));
|
|
421
|
+
}
|