@distilled.cloud/stackit 1.0.0-rc.14 → 1.0.0-rc.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,21 +1,21 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
3
3
|
import { type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
4
4
|
export type { StackitOpError, StackitOpContext };
|
|
5
|
-
declare const BadRequest_base: S.
|
|
5
|
+
declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
|
|
6
6
|
readonly code: any;
|
|
7
7
|
readonly message: any;
|
|
8
|
-
}
|
|
8
|
+
}> & (new (...args: any[]) => {
|
|
9
9
|
"@distilled.cloud/error/categories": {
|
|
10
10
|
BadRequestError: true;
|
|
11
11
|
};
|
|
12
12
|
});
|
|
13
13
|
export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
|
|
14
14
|
}
|
|
15
|
-
declare const NotFound_base: S.
|
|
15
|
+
declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
|
|
16
16
|
readonly code: any;
|
|
17
17
|
readonly message: any;
|
|
18
|
-
}
|
|
18
|
+
}> & (new (...args: any[]) => {
|
|
19
19
|
"@distilled.cloud/error/categories": {
|
|
20
20
|
BadRequestError: true;
|
|
21
21
|
};
|
|
@@ -25,7 +25,6 @@ export declare class NotFound extends /*@__PURE__*/ NotFound_base {
|
|
|
25
25
|
export type CreateCommandRequestParametersMap = {
|
|
26
26
|
[key: string]: string | undefined;
|
|
27
27
|
};
|
|
28
|
-
export declare const CreateCommandRequestParametersMap: S.Schema<CreateCommandRequestParametersMap>;
|
|
29
28
|
export interface CreateCommandRequest {
|
|
30
29
|
/** ID of the project */
|
|
31
30
|
projectId: string;
|
|
@@ -36,11 +35,9 @@ export interface CreateCommandRequest {
|
|
|
36
35
|
commandTemplateName: string;
|
|
37
36
|
parameters?: CreateCommandRequestParametersMap;
|
|
38
37
|
}
|
|
39
|
-
export declare const CreateCommandRequest: S.Schema<CreateCommandRequest>;
|
|
40
38
|
export interface NewCommandResponse {
|
|
41
39
|
id?: number;
|
|
42
40
|
}
|
|
43
|
-
export declare const NewCommandResponse: S.Schema<NewCommandResponse>;
|
|
44
41
|
export interface GetCommandRequest {
|
|
45
42
|
/** ID of the project */
|
|
46
43
|
projectId: string;
|
|
@@ -51,9 +48,7 @@ export interface GetCommandRequest {
|
|
|
51
48
|
/** ID of the command */
|
|
52
49
|
commandId: string;
|
|
53
50
|
}
|
|
54
|
-
export declare const GetCommandRequest: S.Schema<GetCommandRequest>;
|
|
55
51
|
export type CommandDetailsStatus = "pending" | "running" | "completed" | "failed";
|
|
56
|
-
export declare const CommandDetailsStatus: any;
|
|
57
52
|
export interface CommandDetails {
|
|
58
53
|
commandTemplateName?: string;
|
|
59
54
|
commandTemplateTitle?: string;
|
|
@@ -65,7 +60,6 @@ export interface CommandDetails {
|
|
|
65
60
|
startedAt?: string;
|
|
66
61
|
status?: CommandDetailsStatus;
|
|
67
62
|
}
|
|
68
|
-
export declare const CommandDetails: S.Schema<CommandDetails>;
|
|
69
63
|
export interface GetCommandTemplateRequest {
|
|
70
64
|
/** ID of the project */
|
|
71
65
|
projectId: string;
|
|
@@ -76,9 +70,7 @@ export interface GetCommandTemplateRequest {
|
|
|
76
70
|
/** Name of the template */
|
|
77
71
|
commandTemplateName: string;
|
|
78
72
|
}
|
|
79
|
-
export declare const GetCommandTemplateRequest: S.Schema<GetCommandTemplateRequest>;
|
|
80
73
|
export type CommandTemplateSchemaOsTypeList = Array<string>;
|
|
81
|
-
export declare const CommandTemplateSchemaOsTypeList: S.Schema<CommandTemplateSchemaOsTypeList>;
|
|
82
74
|
export interface Field {
|
|
83
75
|
default?: string;
|
|
84
76
|
description?: string;
|
|
@@ -88,9 +80,7 @@ export interface Field {
|
|
|
88
80
|
title?: string;
|
|
89
81
|
type?: string;
|
|
90
82
|
}
|
|
91
|
-
export declare const Field: S.Schema<Field>;
|
|
92
83
|
export type PropertiesRequiredList = Array<string>;
|
|
93
|
-
export declare const PropertiesRequiredList: S.Schema<PropertiesRequiredList>;
|
|
94
84
|
export interface Properties {
|
|
95
85
|
ConfirmPassword?: Field;
|
|
96
86
|
Password?: Field;
|
|
@@ -99,11 +89,9 @@ export interface Properties {
|
|
|
99
89
|
required?: PropertiesRequiredList;
|
|
100
90
|
type?: string;
|
|
101
91
|
}
|
|
102
|
-
export declare const Properties: S.Schema<Properties>;
|
|
103
92
|
export interface ParametersSchema {
|
|
104
93
|
properties?: Properties;
|
|
105
94
|
}
|
|
106
|
-
export declare const ParametersSchema: S.Schema<ParametersSchema>;
|
|
107
95
|
export interface CommandTemplateSchema {
|
|
108
96
|
description?: string;
|
|
109
97
|
name?: string;
|
|
@@ -111,7 +99,6 @@ export interface CommandTemplateSchema {
|
|
|
111
99
|
parametersSchema?: ParametersSchema;
|
|
112
100
|
title?: string;
|
|
113
101
|
}
|
|
114
|
-
export declare const CommandTemplateSchema: S.Schema<CommandTemplateSchema>;
|
|
115
102
|
export interface ListCommandsRequest {
|
|
116
103
|
/** ID of the project */
|
|
117
104
|
projectId: string;
|
|
@@ -120,9 +107,7 @@ export interface ListCommandsRequest {
|
|
|
120
107
|
/** Server ID of the machine */
|
|
121
108
|
serverId: string;
|
|
122
109
|
}
|
|
123
|
-
export declare const ListCommandsRequest: S.Schema<ListCommandsRequest>;
|
|
124
110
|
export type CommandsStatus = "pending" | "running" | "completed" | "failed";
|
|
125
|
-
export declare const CommandsStatus: any;
|
|
126
111
|
export interface Commands {
|
|
127
112
|
commandTemplateName?: string;
|
|
128
113
|
commandTemplateTitle?: string;
|
|
@@ -131,32 +116,24 @@ export interface Commands {
|
|
|
131
116
|
startedAt?: string;
|
|
132
117
|
status?: CommandsStatus;
|
|
133
118
|
}
|
|
134
|
-
export declare const Commands: S.Schema<Commands>;
|
|
135
119
|
export type GetCommandsResponseItemsList = Array<Commands>;
|
|
136
|
-
export declare const GetCommandsResponseItemsList: S.Schema<GetCommandsResponseItemsList>;
|
|
137
120
|
export interface GetCommandsResponse {
|
|
138
121
|
items?: GetCommandsResponseItemsList;
|
|
139
122
|
}
|
|
140
|
-
export declare const GetCommandsResponse: S.Schema<GetCommandsResponse>;
|
|
141
123
|
export interface ListCommandTemplatesRequest {
|
|
142
124
|
/** The type of the Operating System (windows or linux). If not provided will return data for all OS types. */
|
|
143
125
|
osType?: string;
|
|
144
126
|
}
|
|
145
|
-
export declare const ListCommandTemplatesRequest: S.Schema<ListCommandTemplatesRequest>;
|
|
146
127
|
export type CommandTemplateOsTypeList = Array<string>;
|
|
147
|
-
export declare const CommandTemplateOsTypeList: S.Schema<CommandTemplateOsTypeList>;
|
|
148
128
|
export interface CommandTemplate {
|
|
149
129
|
name?: string;
|
|
150
130
|
osType?: CommandTemplateOsTypeList;
|
|
151
131
|
title?: string;
|
|
152
132
|
}
|
|
153
|
-
export declare const CommandTemplate: S.Schema<CommandTemplate>;
|
|
154
133
|
export type CommandTemplateResponseItemsList = Array<CommandTemplate>;
|
|
155
|
-
export declare const CommandTemplateResponseItemsList: S.Schema<CommandTemplateResponseItemsList>;
|
|
156
134
|
export interface CommandTemplateResponse {
|
|
157
135
|
items?: CommandTemplateResponseItemsList;
|
|
158
136
|
}
|
|
159
|
-
export declare const CommandTemplateResponse: S.Schema<CommandTemplateResponse>;
|
|
160
137
|
export type CreateCommandError = BadRequest | NotFound | StackitOpError;
|
|
161
138
|
/** Creates a new command for execution */
|
|
162
139
|
export declare const createCommand: API.OperationMethod<CreateCommandRequest, NewCommandResponse, CreateCommandError, StackitOpContext>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run_command.d.ts","sourceRoot":"","sources":["../../src/services/run_command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAGjD,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"run_command.d.ts","sourceRoot":"","sources":["../../src/services/run_command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,M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AE,GAAG,CAAC,eAAe,CAC7C,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,QAAQ,GAAG,cAAc,CAAC;AACrE,sCAAsC;AACtC,eAAO,MAAM,UAAU,EAAE,GAAG,CAAC,eAAe,CAC1C,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG,QAAQ,GAAG,cAAc,CAAC;AAC7E,+CAA+C;AAC/C,eAAO,MAAM,kBAAkB,EAAE,GAAG,CAAC,eAAe,CAClD,yBAAyB,EACzB,qBAAqB,EACrB,uBAAuB,EACvB,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,QAAQ,GAAG,cAAc,CAAC;AACvE,iCAAiC;AACjC,eAAO,MAAM,YAAY,EAAE,GAAG,CAAC,eAAe,CAC5C,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,yBAAyB,GAAG,UAAU,GAAG,cAAc,CAAC;AACpE,0CAA0C;AAC1C,eAAO,MAAM,oBAAoB,EAAE,GAAG,CAAC,eAAe,CACpD,2BAA2B,EAC3B,uBAAuB,EACvB,yBAAyB,EACzB,gBAAgB,CAOf,CAAC"}
|
|
@@ -1,185 +1,47 @@
|
|
|
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.js";
|
|
6
7
|
import { StackitProtocol } from "../protocol.js";
|
|
7
8
|
import * as Retry from "../retry.js";
|
|
8
9
|
import * as T from "../traits.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
serverId: S.String.pipe(T.Label()),
|
|
26
|
-
commandTemplateName: S.String,
|
|
27
|
-
parameters: S.optional(CreateCommandRequestParametersMap),
|
|
28
|
-
}).pipe(T.Http({
|
|
29
|
-
method: "POST",
|
|
30
|
-
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/commands",
|
|
31
|
-
code: 200,
|
|
32
|
-
baseUrl: "https://run-command.api.stackit.cloud",
|
|
33
|
-
}))).annotate({ identifier: "CreateCommandRequest" });
|
|
34
|
-
export const NewCommandResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
35
|
-
id: S.optional(S.Number),
|
|
36
|
-
})).annotate({ identifier: "NewCommandResponse" });
|
|
37
|
-
export const GetCommandRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
38
|
-
projectId: S.String.pipe(T.Label()),
|
|
39
|
-
region: S.String.pipe(T.Label()),
|
|
40
|
-
serverId: S.String.pipe(T.Label()),
|
|
41
|
-
commandId: S.String.pipe(T.Label()),
|
|
42
|
-
}).pipe(T.Http({
|
|
43
|
-
method: "GET",
|
|
44
|
-
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/commands/{commandId}",
|
|
45
|
-
code: 200,
|
|
46
|
-
baseUrl: "https://run-command.api.stackit.cloud",
|
|
47
|
-
}))).annotate({ identifier: "GetCommandRequest" });
|
|
48
|
-
export const CommandDetailsStatus = S.String;
|
|
49
|
-
export const CommandDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
50
|
-
commandTemplateName: S.optional(S.String),
|
|
51
|
-
commandTemplateTitle: S.optional(S.String),
|
|
52
|
-
exitCode: S.optional(S.Number),
|
|
53
|
-
finishedAt: S.optional(S.String),
|
|
54
|
-
id: S.optional(S.Number),
|
|
55
|
-
output: S.optional(S.String),
|
|
56
|
-
script: S.optional(S.String),
|
|
57
|
-
startedAt: S.optional(S.String),
|
|
58
|
-
status: S.optional(CommandDetailsStatus),
|
|
59
|
-
})).annotate({ identifier: "CommandDetails" });
|
|
60
|
-
export const GetCommandTemplateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
61
|
-
projectId: S.String.pipe(T.Label()),
|
|
62
|
-
region: S.String.pipe(T.Label()),
|
|
63
|
-
serverId: S.String.pipe(T.Label()),
|
|
64
|
-
commandTemplateName: S.String.pipe(T.Label()),
|
|
65
|
-
}).pipe(T.Http({
|
|
66
|
-
method: "GET",
|
|
67
|
-
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/command-templates/{commandTemplateName}",
|
|
68
|
-
code: 200,
|
|
69
|
-
baseUrl: "https://run-command.api.stackit.cloud",
|
|
70
|
-
}))).annotate({
|
|
71
|
-
identifier: "GetCommandTemplateRequest",
|
|
10
|
+
const __0 = __L.at;
|
|
11
|
+
const __1 = S.String;
|
|
12
|
+
const __2 = S.Record;
|
|
13
|
+
const __3 = T.Http;
|
|
14
|
+
const __4 = T.Label;
|
|
15
|
+
const __5 = S.optional;
|
|
16
|
+
const __6 = S.Struct;
|
|
17
|
+
const __7 = S.suspend;
|
|
18
|
+
const __8 = S.Number;
|
|
19
|
+
const __9 = S.Boolean;
|
|
20
|
+
const __10 = S.Array;
|
|
21
|
+
const __11 = T.Query;
|
|
22
|
+
const __12 = S.TaggedError;
|
|
23
|
+
const __13 = T.applyErrorMatchers;
|
|
24
|
+
export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
|
|
25
|
+
return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __8, __1, __12, __13]]);
|
|
72
26
|
});
|
|
73
|
-
export const
|
|
74
|
-
|
|
75
|
-
default: S.optional(S.String),
|
|
76
|
-
description: S.optional(S.String),
|
|
77
|
-
maxLen: S.optional(S.Number),
|
|
78
|
-
minLen: S.optional(S.Number),
|
|
79
|
-
readOnly: S.optional(S.Boolean),
|
|
80
|
-
title: S.optional(S.String),
|
|
81
|
-
type: S.optional(S.String),
|
|
82
|
-
})).annotate({ identifier: "Field" });
|
|
83
|
-
export const PropertiesRequiredList = /*@__PURE__*/ S.Array(S.String);
|
|
84
|
-
export const Properties = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
85
|
-
ConfirmPassword: S.optional(Field),
|
|
86
|
-
Password: S.optional(Field),
|
|
87
|
-
Script: S.optional(Field),
|
|
88
|
-
Username: S.optional(Field),
|
|
89
|
-
required: S.optional(PropertiesRequiredList),
|
|
90
|
-
type: S.optional(S.String),
|
|
91
|
-
})).annotate({ identifier: "Properties" });
|
|
92
|
-
export const ParametersSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
93
|
-
properties: S.optional(Properties),
|
|
94
|
-
})).annotate({ identifier: "ParametersSchema" });
|
|
95
|
-
export const CommandTemplateSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
96
|
-
description: S.optional(S.String),
|
|
97
|
-
name: S.optional(S.String),
|
|
98
|
-
osType: S.optional(CommandTemplateSchemaOsTypeList),
|
|
99
|
-
parametersSchema: S.optional(ParametersSchema),
|
|
100
|
-
title: S.optional(S.String),
|
|
101
|
-
})).annotate({ identifier: "CommandTemplateSchema" });
|
|
102
|
-
export const ListCommandsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
103
|
-
projectId: S.String.pipe(T.Label()),
|
|
104
|
-
region: S.String.pipe(T.Label()),
|
|
105
|
-
serverId: S.String.pipe(T.Label()),
|
|
106
|
-
}).pipe(T.Http({
|
|
107
|
-
method: "GET",
|
|
108
|
-
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/commands",
|
|
109
|
-
code: 200,
|
|
110
|
-
baseUrl: "https://run-command.api.stackit.cloud",
|
|
111
|
-
}))).annotate({ identifier: "ListCommandsRequest" });
|
|
112
|
-
export const CommandsStatus = S.String;
|
|
113
|
-
export const Commands = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
114
|
-
commandTemplateName: S.optional(S.String),
|
|
115
|
-
commandTemplateTitle: S.optional(S.String),
|
|
116
|
-
finishedAt: S.optional(S.String),
|
|
117
|
-
id: S.optional(S.Number),
|
|
118
|
-
startedAt: S.optional(S.String),
|
|
119
|
-
status: S.optional(CommandsStatus),
|
|
120
|
-
})).annotate({ identifier: "Commands" });
|
|
121
|
-
export const GetCommandsResponseItemsList = /*@__PURE__*/ S.Array(Commands);
|
|
122
|
-
export const GetCommandsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
123
|
-
items: S.optional(GetCommandsResponseItemsList),
|
|
124
|
-
})).annotate({ identifier: "GetCommandsResponse" });
|
|
125
|
-
export const ListCommandTemplatesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
126
|
-
osType: S.optional(S.String.pipe(T.Query())),
|
|
127
|
-
}).pipe(T.Http({
|
|
128
|
-
method: "GET",
|
|
129
|
-
uri: "/v2/command-templates",
|
|
130
|
-
code: 200,
|
|
131
|
-
baseUrl: "https://run-command.api.stackit.cloud",
|
|
132
|
-
}))).annotate({
|
|
133
|
-
identifier: "ListCommandTemplatesRequest",
|
|
27
|
+
export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
|
|
28
|
+
return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __8, __1, __12, __13]]);
|
|
134
29
|
});
|
|
135
|
-
|
|
136
|
-
export const
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
})).
|
|
141
|
-
|
|
142
|
-
export const
|
|
143
|
-
|
|
144
|
-
})).
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
/** Returns details about a command */
|
|
154
|
-
export const getCommand = /*@__PURE__*/ API.make(() => ({
|
|
155
|
-
input: GetCommandRequest,
|
|
156
|
-
output: CommandDetails,
|
|
157
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
158
|
-
protocol: StackitProtocol,
|
|
159
|
-
retry: Retry.Retry,
|
|
160
|
-
}));
|
|
161
|
-
/** Returns details about a command template */
|
|
162
|
-
export const getCommandTemplate = /*@__PURE__*/ API.make(() => ({
|
|
163
|
-
input: GetCommandTemplateRequest,
|
|
164
|
-
output: CommandTemplateSchema,
|
|
165
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
166
|
-
protocol: StackitProtocol,
|
|
167
|
-
retry: Retry.Retry,
|
|
168
|
-
}));
|
|
169
|
-
/** Returns a list of commands */
|
|
170
|
-
export const listCommands = /*@__PURE__*/ API.make(() => ({
|
|
171
|
-
input: ListCommandsRequest,
|
|
172
|
-
output: GetCommandsResponse,
|
|
173
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
174
|
-
protocol: StackitProtocol,
|
|
175
|
-
retry: Retry.Retry,
|
|
176
|
-
}));
|
|
177
|
-
/** Returns a list of command templates */
|
|
178
|
-
export const listCommandTemplates = /*@__PURE__*/ API.make(() => ({
|
|
179
|
-
input: ListCommandTemplatesRequest,
|
|
180
|
-
output: CommandTemplateResponse,
|
|
181
|
-
errors: [BadRequest, UnknownStackitError],
|
|
182
|
-
protocol: StackitProtocol,
|
|
183
|
-
retry: Retry.Retry,
|
|
184
|
-
}));
|
|
185
|
-
//# sourceMappingURL=run_command.js.map
|
|
30
|
+
|
|
31
|
+
export const createCommand = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#2,output:#3,errors:[$9,$10,$11],protocol:$12,retry:$13};$2($1,$1);$7(>4)@"CreateCommandRequest";$7(>5)@"NewCommandResponse";$6({projectId:$1.pipe($4()),region:$1.pipe($4()),serverId:$1.pipe($4()),commandTemplateName:$1,parameters:$5(#1)}).pipe($3({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/commands",code:200,baseUrl:"https://run-command.api.stackit.cloud"}));$6({id:$5($8)})', [__0, __1, __2, __3, __4, __5, __6, __7, __8, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createCommand, i));
|
|
32
|
+
|
|
33
|
+
export const getCommand = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>3)@"GetCommandRequest";$5(>4)@"CommandDetails";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),commandId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/commands/{commandId}",code:200,baseUrl:"https://run-command.api.stackit.cloud"}));$4({commandTemplateName:$6($3),commandTemplateTitle:$6($3),exitCode:$6($7),finishedAt:$6($3),id:$6($7),output:$6($3),script:$6($3),startedAt:$6($3),status:$6($3)})', [__0, __3, __4, __1, __6, __7, __5, __8, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getCommand, i));
|
|
34
|
+
|
|
35
|
+
export const getCommandTemplate = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5,errors:[$10,$11,$12],protocol:$13,retry:$14};$5(>6)@"GetCommandTemplateRequest";$5(>7)@"Field";$5(>8)@"Properties";$5(>9)@"ParametersSchema";$5(>10)@"CommandTemplateSchema";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),commandTemplateName:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/command-templates/{commandTemplateName}",code:200,baseUrl:"https://run-command.api.stackit.cloud"}));$4({default:$6($3),description:$6($3),maxLen:$6($7),minLen:$6($7),readOnly:$6($8),title:$6($3),type:$6($3)});$4({ConfirmPassword:$6(#2),Password:$6(#2),Script:$6(#2),Username:$6(#2),required:$6(#9:0),type:$6($3)});$4({properties:$6(#3)});$4({description:$6($3),name:$6($3),osType:$6(#9:0),parametersSchema:$6(#4),title:$6($3)})', [__0, __3, __4, __1, __6, __7, __5, __8, __9, __d0, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getCommandTemplate, i));
|
|
36
|
+
|
|
37
|
+
export const listCommands = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("Commands", '{input:#1,output:#4,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>5)@"List%Request";$5(>6)@"%";$8(#2);$5(>7)@"Get%Response";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/commands",code:200,baseUrl:"https://run-command.api.stackit.cloud"}));$4({commandTemplateName:$6($3),commandTemplateTitle:$6($3),finishedAt:$6($3),id:$6($7),startedAt:$6($3),status:$6($3)});$4({items:$6(#3)})', [__0, __3, __4, __1, __6, __7, __5, __8, __10, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listCommands, i));
|
|
38
|
+
|
|
39
|
+
export const listCommandTemplates = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("CommandTemplate", '{input:#1,output:#4,errors:[$9,$10],protocol:$11,retry:$12};$6(>5)@"List%sRequest";$6(>6)@"%";$8(#2);$6(>7)@"%Response";$5({osType:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/v2/command-templates",code:200,baseUrl:"https://run-command.api.stackit.cloud"}));$5({name:$4($3),osType:$4(#7:0),title:$4($3)});$5({items:$4(#3)})', [__0, __3, __11, __1, __5, __6, __7, __d0, __10, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listCommandTemplates, i));
|
|
40
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
41
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
// Shared schema data (see `op` in core/api).
|
|
45
|
+
function __d0() {
|
|
46
|
+
return ['$2($1)', [__0, __1, __10]];
|
|
47
|
+
}
|