@distilled.cloud/stackit 1.0.0-rc.13 → 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/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +3 -3
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/errors.js.map +1 -1
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.d.ts.map +1 -1
- package/lib/pagination.js +2 -5
- package/lib/pagination.js.map +1 -1
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +9 -10
- package/lib/protocol.js.map +1 -1
- 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 +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -1
- package/lib/retry.js.map +1 -1
- package/lib/services/alb.d.ts +1 -1
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +33 -82
- package/lib/services/alb.js.map +1 -1
- package/lib/services/alb_waf.d.ts +1 -1
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +23 -47
- package/lib/services/alb_waf.js.map +1 -1
- package/lib/services/authorization.d.ts +1 -1
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +19 -49
- package/lib/services/authorization.js.map +1 -1
- package/lib/services/automation.d.ts +21 -58
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +49 -112
- package/lib/services/automation.js.map +1 -1
- package/lib/services/cdn.d.ts +2 -2
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +91 -177
- package/lib/services/cdn.js.map +1 -1
- package/lib/services/certificates.d.ts +1 -1
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +13 -31
- package/lib/services/certificates.js.map +1 -1
- package/lib/services/cost.d.ts +1 -1
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +17 -28
- package/lib/services/cost.js.map +1 -1
- package/lib/services/dns.d.ts +22 -55
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +72 -200
- package/lib/services/dns.js.map +1 -1
- package/lib/services/dremio.d.ts +1 -1
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +28 -50
- package/lib/services/dremio.js.map +1 -1
- package/lib/services/edge.d.ts +1 -1
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +14 -32
- package/lib/services/edge.js.map +1 -1
- package/lib/services/functions.d.ts +1 -1
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +19 -43
- package/lib/services/functions.js.map +1 -1
- package/lib/services/git.d.ts +1 -1
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +25 -57
- package/lib/services/git.js.map +1 -1
- package/lib/services/iaas.d.ts +31 -10
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +151 -376
- package/lib/services/iaas.js.map +1 -1
- package/lib/services/intake.d.ts +1 -1
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +45 -83
- package/lib/services/intake.js.map +1 -1
- package/lib/services/kms.d.ts +1 -1
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +63 -103
- package/lib/services/kms.js.map +1 -1
- package/lib/services/lb_ip_lists.d.ts +1 -3
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +18 -37
- package/lib/services/lb_ip_lists.js.map +1 -1
- package/lib/services/load_balancer.d.ts +1 -1
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +32 -77
- package/lib/services/load_balancer.js.map +1 -1
- package/lib/services/logme.d.ts +1 -1
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +39 -101
- package/lib/services/logme.js.map +1 -1
- package/lib/services/logs.d.ts +1 -1
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +36 -59
- package/lib/services/logs.js.map +1 -1
- package/lib/services/mariadb.d.ts +1 -1
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +37 -97
- package/lib/services/mariadb.js.map +1 -1
- package/lib/services/model_experiments.d.ts +2 -2
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +27 -47
- package/lib/services/model_experiments.js.map +1 -1
- package/lib/services/model_serving.d.ts +2 -2
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +29 -61
- package/lib/services/model_serving.js.map +1 -1
- package/lib/services/mongodb_flex.d.ts +1 -1
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +76 -162
- package/lib/services/mongodb_flex.js.map +1 -1
- package/lib/services/object_storage.d.ts +25 -1
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +52 -89
- package/lib/services/object_storage.js.map +1 -1
- package/lib/services/observability.d.ts +5 -5
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +170 -419
- package/lib/services/observability.js.map +1 -1
- package/lib/services/opensearch.d.ts +1 -1
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +40 -100
- package/lib/services/opensearch.js.map +1 -1
- package/lib/services/pim.d.ts +1 -1
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +45 -98
- package/lib/services/pim.js.map +1 -1
- package/lib/services/postgres_flex.d.ts +2 -2
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +96 -261
- package/lib/services/postgres_flex.js.map +1 -1
- package/lib/services/pubsub.d.ts +2 -2
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +53 -148
- package/lib/services/pubsub.js.map +1 -1
- package/lib/services/rabbitmq.d.ts +2 -2
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +41 -103
- package/lib/services/rabbitmq.js.map +1 -1
- package/lib/services/registry.d.ts +1 -1
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +16 -39
- package/lib/services/registry.js.map +1 -1
- package/lib/services/resource_manager.d.ts +5 -5
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +23 -53
- package/lib/services/resource_manager.js.map +1 -1
- package/lib/services/run_command.d.ts +1 -1
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +15 -33
- package/lib/services/run_command.js.map +1 -1
- package/lib/services/sca.d.ts +18 -6
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +42 -75
- package/lib/services/sca.js.map +1 -1
- package/lib/services/scf.d.ts +1 -1
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +30 -78
- package/lib/services/scf.js.map +1 -1
- package/lib/services/secrets_manager.d.ts +1 -1
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +32 -78
- package/lib/services/secrets_manager.js.map +1 -1
- package/lib/services/server_backup.d.ts +1 -1
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +16 -36
- package/lib/services/server_backup.js.map +1 -1
- package/lib/services/server_update.d.ts +1 -1
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +10 -22
- package/lib/services/server_update.js.map +1 -1
- package/lib/services/service_account.d.ts +1 -1
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +32 -49
- package/lib/services/service_account.js.map +1 -1
- package/lib/services/service_enablement.d.ts +1 -1
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +11 -13
- package/lib/services/service_enablement.js.map +1 -1
- package/lib/services/sfs.d.ts +17 -17
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +34 -89
- package/lib/services/sfs.js.map +1 -1
- package/lib/services/ske.d.ts +27 -1
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +49 -89
- package/lib/services/ske.js.map +1 -1
- package/lib/services/sqlserverflex.d.ts +2 -2
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +104 -255
- package/lib/services/sqlserverflex.js.map +1 -1
- package/lib/services/stackit_marketplace.d.ts +4 -4
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +17 -31
- package/lib/services/stackit_marketplace.js.map +1 -1
- package/lib/services/telemetry_link.d.ts +1 -1
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +34 -52
- package/lib/services/telemetry_link.js.map +1 -1
- package/lib/services/telemetry_router.d.ts +1 -1
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +49 -88
- package/lib/services/telemetry_router.js.map +1 -1
- package/lib/services/ufw.d.ts +1 -1
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +25 -47
- package/lib/services/ufw.js.map +1 -1
- package/lib/services/valkey.d.ts +2 -2
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +40 -100
- package/lib/services/valkey.js.map +1 -1
- package/lib/services/vpn.d.ts +1 -1
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +98 -180
- package/lib/services/vpn.js.map +1 -1
- package/lib/services/workflows.d.ts +1 -1
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +40 -88
- package/lib/services/workflows.js.map +1 -1
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +1 -1
- package/lib/traits.js.map +1 -1
- package/package.json +13 -11
- package/src/credentials.ts +10 -16
- package/src/errors.ts +1 -1
- package/src/pagination.ts +6 -22
- package/src/protocol.test.ts +304 -0
- package/src/protocol.ts +29 -47
- package/src/retry.ts +2 -8
- package/src/services/alb.ts +45 -128
- package/src/services/alb_waf.ts +35 -94
- package/src/services/authorization.ts +20 -56
- package/src/services/automation.ts +92 -262
- package/src/services/cdn.ts +191 -351
- package/src/services/certificates.ts +17 -49
- package/src/services/cost.ts +29 -64
- package/src/services/dns.ts +160 -495
- package/src/services/dremio.ts +35 -85
- package/src/services/edge.ts +37 -96
- package/src/services/functions.ts +31 -84
- package/src/services/git.ts +41 -122
- package/src/services/iaas.ts +392 -1184
- package/src/services/intake.ts +57 -124
- package/src/services/kms.ts +91 -192
- package/src/services/lb_ip_lists.ts +21 -56
- package/src/services/load_balancer.ts +43 -119
- package/src/services/logme.ts +55 -150
- package/src/services/logs.ts +57 -158
- package/src/services/mariadb.ts +45 -126
- package/src/services/model_experiments.ts +36 -92
- package/src/services/model_serving.ts +33 -76
- package/src/services/mongodb_flex.ts +113 -259
- package/src/services/object_storage.ts +101 -154
- package/src/services/observability.ts +635 -1127
- package/src/services/opensearch.ts +52 -141
- package/src/services/pim.ts +78 -183
- package/src/services/postgres_flex.ts +120 -366
- package/src/services/pubsub.ts +134 -277
- package/src/services/rabbitmq.ts +53 -145
- package/src/services/registry.ts +24 -72
- package/src/services/resource_manager.ts +46 -129
- package/src/services/run_command.ts +17 -45
- package/src/services/sca.ts +63 -98
- package/src/services/scf.ts +54 -195
- package/src/services/secrets_manager.ts +54 -136
- package/src/services/server_backup.ts +26 -75
- package/src/services/server_update.ts +15 -44
- package/src/services/service_account.ts +185 -272
- package/src/services/service_enablement.ts +18 -47
- package/src/services/sfs.ts +84 -166
- package/src/services/ske.ts +91 -113
- package/src/services/sqlserverflex.ts +147 -383
- package/src/services/stackit_marketplace.ts +184 -250
- package/src/services/telemetry_link.ts +199 -278
- package/src/services/telemetry_router.ts +73 -168
- package/src/services/ufw.ts +32 -82
- package/src/services/valkey.ts +54 -145
- package/src/services/vpn.ts +215 -404
- package/src/services/workflows.ts +57 -169
- package/src/traits.ts +2 -7
- package/lib/response-validation.test.d.ts +0 -4
- package/lib/response-validation.test.d.ts.map +0 -1
- package/lib/response-validation.test.js +0 -31
- package/lib/response-validation.test.js.map +0 -1
- package/src/response-validation.test.ts +0 -45
|
@@ -1,16 +1,12 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as C from "@distilled.cloud/core/category";
|
|
1
3
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
2
4
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
5
|
import * as Redacted from "effect/Redacted";
|
|
4
|
-
import * as API from "@distilled.cloud/core/api";
|
|
5
|
-
import * as C from "@distilled.cloud/core/category";
|
|
6
|
-
import * as T from "../traits.ts";
|
|
7
|
-
import {
|
|
8
|
-
StackitProtocol,
|
|
9
|
-
type StackitOpError,
|
|
10
|
-
type StackitOpContext,
|
|
11
|
-
} from "../protocol.ts";
|
|
12
6
|
import { UnknownStackitError } from "../errors.ts";
|
|
7
|
+
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
13
8
|
import * as Retry from "../retry.ts";
|
|
9
|
+
import * as T from "../traits.ts";
|
|
14
10
|
|
|
15
11
|
export type { StackitOpError, StackitOpContext };
|
|
16
12
|
|
|
@@ -42,9 +38,7 @@ export class NotFound
|
|
|
42
38
|
) {}
|
|
43
39
|
|
|
44
40
|
/** Labels represent user-defined metadata as key-value pairs. Label count should not exceed 64 per Certificate. **Key Formatting Rules:** Length: 1-63 characters. Characters: Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. Keys starting with 'stackit-' are system-reserved; users MUST NOT manage them. **Value Formatting Rules:** Length: 0-63 characters (empty string explicitly allowed). Characters (for non-empty values): Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */
|
|
45
|
-
export type CreateCertificateRequestLabelsMap = {
|
|
46
|
-
[key: string]: string | undefined;
|
|
47
|
-
};
|
|
41
|
+
export type CreateCertificateRequestLabelsMap = { [key: string]: string | undefined };
|
|
48
42
|
export const CreateCertificateRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
49
43
|
S.String,
|
|
50
44
|
S.String,
|
|
@@ -78,9 +72,7 @@ export const CreateCertificateRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
78
72
|
baseUrl: "https://certificates.api.stackit.cloud",
|
|
79
73
|
}),
|
|
80
74
|
),
|
|
81
|
-
).annotate({
|
|
82
|
-
identifier: "CreateCertificateRequest",
|
|
83
|
-
}) as any as S.Schema<CreateCertificateRequest>;
|
|
75
|
+
).annotate({ identifier: "CreateCertificateRequest" }) as any as S.Schema<CreateCertificateRequest>;
|
|
84
76
|
|
|
85
77
|
export interface Data {
|
|
86
78
|
/** Comma-separated list of all domains and IP addresses the certificate is valid for (Subject Alternative Names). */
|
|
@@ -135,9 +127,7 @@ export const Data = /*@__PURE__*/ S.suspend(() =>
|
|
|
135
127
|
).annotate({ identifier: "Data" }) as any as S.Schema<Data>;
|
|
136
128
|
|
|
137
129
|
/** Labels represent user-defined metadata as key-value pairs. Label count should not exceed 64 per Certificate. **Key Formatting Rules:** Length: 1-63 characters. Characters: Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. Keys starting with 'stackit-' are system-reserved; users MUST NOT manage them. **Value Formatting Rules:** Length: 0-63 characters (empty string explicitly allowed). Characters (for non-empty values): Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */
|
|
138
|
-
export type GetCertificateResponseLabelsMap = {
|
|
139
|
-
[key: string]: string | undefined;
|
|
140
|
-
};
|
|
130
|
+
export type GetCertificateResponseLabelsMap = { [key: string]: string | undefined };
|
|
141
131
|
export const GetCertificateResponseLabelsMap = /*@__PURE__*/ S.Record(
|
|
142
132
|
S.String,
|
|
143
133
|
S.String,
|
|
@@ -164,9 +154,7 @@ export const UsageItem = /*@__PURE__*/ S.suspend(() =>
|
|
|
164
154
|
|
|
165
155
|
/** List of Load Balancers with their associated listeners that use this certificate. */
|
|
166
156
|
export type UsageItemsList = Array<UsageItem>;
|
|
167
|
-
export const UsageItemsList = /*@__PURE__*/ S.Array(
|
|
168
|
-
UsageItem,
|
|
169
|
-
) as any as S.Schema<UsageItemsList>;
|
|
157
|
+
export const UsageItemsList = /*@__PURE__*/ S.Array(UsageItem) as any as S.Schema<UsageItemsList>;
|
|
170
158
|
|
|
171
159
|
export interface Usage {
|
|
172
160
|
/** Number of listeners using this certificate. */
|
|
@@ -206,9 +194,7 @@ export const GetCertificateResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
206
194
|
region: S.optional(S.String),
|
|
207
195
|
usage: S.optional(Usage),
|
|
208
196
|
}),
|
|
209
|
-
).annotate({
|
|
210
|
-
identifier: "GetCertificateResponse",
|
|
211
|
-
}) as any as S.Schema<GetCertificateResponse>;
|
|
197
|
+
).annotate({ identifier: "GetCertificateResponse" }) as any as S.Schema<GetCertificateResponse>;
|
|
212
198
|
|
|
213
199
|
export interface DeleteCertificateRequest {
|
|
214
200
|
projectId: string;
|
|
@@ -228,9 +214,7 @@ export const DeleteCertificateRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
228
214
|
baseUrl: "https://certificates.api.stackit.cloud",
|
|
229
215
|
}),
|
|
230
216
|
),
|
|
231
|
-
).annotate({
|
|
232
|
-
identifier: "DeleteCertificateRequest",
|
|
233
|
-
}) as any as S.Schema<DeleteCertificateRequest>;
|
|
217
|
+
).annotate({ identifier: "DeleteCertificateRequest" }) as any as S.Schema<DeleteCertificateRequest>;
|
|
234
218
|
|
|
235
219
|
export type DeleteCertificateResponse2 = unknown;
|
|
236
220
|
export const DeleteCertificateResponse2 = /*@__PURE__*/ S.suspend(() =>
|
|
@@ -257,9 +241,7 @@ export const GetCertificateRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
257
241
|
baseUrl: "https://certificates.api.stackit.cloud",
|
|
258
242
|
}),
|
|
259
243
|
),
|
|
260
|
-
).annotate({
|
|
261
|
-
identifier: "GetCertificateRequest",
|
|
262
|
-
}) as any as S.Schema<GetCertificateRequest>;
|
|
244
|
+
).annotate({ identifier: "GetCertificateRequest" }) as any as S.Schema<GetCertificateRequest>;
|
|
263
245
|
|
|
264
246
|
export interface GetQuotaRequest {
|
|
265
247
|
projectId: string;
|
|
@@ -277,9 +259,7 @@ export const GetQuotaRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
277
259
|
baseUrl: "https://certificates.api.stackit.cloud",
|
|
278
260
|
}),
|
|
279
261
|
),
|
|
280
|
-
).annotate({
|
|
281
|
-
identifier: "GetQuotaRequest",
|
|
282
|
-
}) as any as S.Schema<GetQuotaRequest>;
|
|
262
|
+
).annotate({ identifier: "GetQuotaRequest" }) as any as S.Schema<GetQuotaRequest>;
|
|
283
263
|
|
|
284
264
|
/** Certificates quotas holds the limits and usage for certificates resources */
|
|
285
265
|
export interface CertificatesQuota {
|
|
@@ -293,9 +273,7 @@ export const CertificatesQuota = /*@__PURE__*/ S.suspend(() =>
|
|
|
293
273
|
limit: S.optional(S.Number),
|
|
294
274
|
usage: S.optional(S.Number),
|
|
295
275
|
}),
|
|
296
|
-
).annotate({
|
|
297
|
-
identifier: "CertificatesQuota",
|
|
298
|
-
}) as any as S.Schema<CertificatesQuota>;
|
|
276
|
+
).annotate({ identifier: "CertificatesQuota" }) as any as S.Schema<CertificatesQuota>;
|
|
299
277
|
|
|
300
278
|
/** Quotas holds the specific quota elements for different resources */
|
|
301
279
|
export interface Quotas {
|
|
@@ -320,9 +298,7 @@ export const GetQuotaResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
320
298
|
quotas: S.optional(Quotas),
|
|
321
299
|
region: S.optional(S.String),
|
|
322
300
|
}),
|
|
323
|
-
).annotate({
|
|
324
|
-
identifier: "GetQuotaResponse",
|
|
325
|
-
}) as any as S.Schema<GetQuotaResponse>;
|
|
301
|
+
).annotate({ identifier: "GetQuotaResponse" }) as any as S.Schema<GetQuotaResponse>;
|
|
326
302
|
|
|
327
303
|
export interface ListCertificatesRequest {
|
|
328
304
|
projectId: string;
|
|
@@ -346,9 +322,7 @@ export const ListCertificatesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
346
322
|
baseUrl: "https://certificates.api.stackit.cloud",
|
|
347
323
|
}),
|
|
348
324
|
),
|
|
349
|
-
).annotate({
|
|
350
|
-
identifier: "ListCertificatesRequest",
|
|
351
|
-
}) as any as S.Schema<ListCertificatesRequest>;
|
|
325
|
+
).annotate({ identifier: "ListCertificatesRequest" }) as any as S.Schema<ListCertificatesRequest>;
|
|
352
326
|
|
|
353
327
|
export type ListCertificatesResponseItemsList = Array<GetCertificateResponse>;
|
|
354
328
|
export const ListCertificatesResponseItemsList = /*@__PURE__*/ S.Array(
|
|
@@ -366,9 +340,7 @@ export const ListCertificatesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
366
340
|
items: S.optional(ListCertificatesResponseItemsList),
|
|
367
341
|
nextPageId: S.optional(S.String),
|
|
368
342
|
}),
|
|
369
|
-
).annotate({
|
|
370
|
-
identifier: "ListCertificatesResponse",
|
|
371
|
-
}) as any as S.Schema<ListCertificatesResponse>;
|
|
343
|
+
).annotate({ identifier: "ListCertificatesResponse" }) as any as S.Schema<ListCertificatesResponse>;
|
|
372
344
|
|
|
373
345
|
export type CreateCertificateError = BadRequest | Forbidden | StackitOpError;
|
|
374
346
|
/** Store a TLS certificate in a project. CreateCertificate will store a TLS certificate in a project. */
|
|
@@ -400,11 +372,7 @@ export const deleteCertificate: API.OperationMethod<
|
|
|
400
372
|
retry: Retry.Retry,
|
|
401
373
|
}));
|
|
402
374
|
|
|
403
|
-
export type GetCertificateError =
|
|
404
|
-
| BadRequest
|
|
405
|
-
| Forbidden
|
|
406
|
-
| NotFound
|
|
407
|
-
| StackitOpError;
|
|
375
|
+
export type GetCertificateError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
408
376
|
/** Retrieve the public parts of a stored TLS certificate. GetCertificate will return the public parts of a stored TLS certificate. */
|
|
409
377
|
export const getCertificate: API.OperationMethod<
|
|
410
378
|
GetCertificateRequest,
|
package/src/services/cost.ts
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
2
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
3
1
|
import * as API from "@distilled.cloud/core/api";
|
|
4
2
|
import * as C from "@distilled.cloud/core/category";
|
|
5
|
-
|
|
6
|
-
import
|
|
7
|
-
StackitProtocol,
|
|
8
|
-
type StackitOpError,
|
|
9
|
-
type StackitOpContext,
|
|
10
|
-
} from "../protocol.ts";
|
|
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";
|
|
11
5
|
import { UnknownStackitError } from "../errors.ts";
|
|
6
|
+
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
12
7
|
import * as Retry from "../retry.ts";
|
|
8
|
+
import * as T from "../traits.ts";
|
|
13
9
|
|
|
14
10
|
export type { StackitOpError, StackitOpContext };
|
|
15
11
|
|
|
@@ -41,7 +37,7 @@ export class NotFound
|
|
|
41
37
|
) {}
|
|
42
38
|
|
|
43
39
|
export type GetCostsForProjectRequestDepth = "project" | "service" | "auto";
|
|
44
|
-
export const GetCostsForProjectRequestDepth =
|
|
40
|
+
export const GetCostsForProjectRequestDepth = S.String;
|
|
45
41
|
|
|
46
42
|
export type GetCostsForProjectRequestGranularity =
|
|
47
43
|
| "daily"
|
|
@@ -49,7 +45,7 @@ export type GetCostsForProjectRequestGranularity =
|
|
|
49
45
|
| "monthly"
|
|
50
46
|
| "yearly"
|
|
51
47
|
| "none";
|
|
52
|
-
export const GetCostsForProjectRequestGranularity =
|
|
48
|
+
export const GetCostsForProjectRequestGranularity = S.String;
|
|
53
49
|
|
|
54
50
|
export interface GetCostsForProjectRequest {
|
|
55
51
|
/** ID of a customer account */
|
|
@@ -74,9 +70,7 @@ export const GetCostsForProjectRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
74
70
|
from: S.String.pipe(T.Query()),
|
|
75
71
|
to: S.String.pipe(T.Query()),
|
|
76
72
|
depth: S.optional(GetCostsForProjectRequestDepth.pipe(T.Query())),
|
|
77
|
-
granularity: S.optional(
|
|
78
|
-
GetCostsForProjectRequestGranularity.pipe(T.Query()),
|
|
79
|
-
),
|
|
73
|
+
granularity: S.optional(GetCostsForProjectRequestGranularity.pipe(T.Query())),
|
|
80
74
|
includeZeroCosts: S.optional(S.Boolean.pipe(T.Query())),
|
|
81
75
|
}).pipe(
|
|
82
76
|
T.Http({
|
|
@@ -108,9 +102,7 @@ export const SummarizedProjectCost = /*@__PURE__*/ S.suspend(() =>
|
|
|
108
102
|
totalCharge: S.Number,
|
|
109
103
|
totalDiscount: S.Number,
|
|
110
104
|
}),
|
|
111
|
-
).annotate({
|
|
112
|
-
identifier: "SummarizedProjectCost",
|
|
113
|
-
}) as any as S.Schema<SummarizedProjectCost>;
|
|
105
|
+
).annotate({ identifier: "SummarizedProjectCost" }) as any as S.Schema<SummarizedProjectCost>;
|
|
114
106
|
|
|
115
107
|
/** Time period according to desired granularity */
|
|
116
108
|
export interface ReportDataTimePeriod {
|
|
@@ -122,9 +114,7 @@ export const ReportDataTimePeriod = /*@__PURE__*/ S.suspend(() =>
|
|
|
122
114
|
end: S.optional(S.String),
|
|
123
115
|
start: S.optional(S.String),
|
|
124
116
|
}),
|
|
125
|
-
).annotate({
|
|
126
|
-
identifier: "ReportDataTimePeriod",
|
|
127
|
-
}) as any as S.Schema<ReportDataTimePeriod>;
|
|
117
|
+
).annotate({ identifier: "ReportDataTimePeriod" }) as any as S.Schema<ReportDataTimePeriod>;
|
|
128
118
|
|
|
129
119
|
/** Costs report for a certain period of time */
|
|
130
120
|
export interface ReportData {
|
|
@@ -176,21 +166,17 @@ export const ProjectCostWithReports = /*@__PURE__*/ S.suspend(() =>
|
|
|
176
166
|
totalCharge: S.Number,
|
|
177
167
|
totalDiscount: S.Number,
|
|
178
168
|
}),
|
|
179
|
-
).annotate({
|
|
180
|
-
identifier: "ProjectCostWithReports",
|
|
181
|
-
}) as any as S.Schema<ProjectCostWithReports>;
|
|
169
|
+
).annotate({ identifier: "ProjectCostWithReports" }) as any as S.Schema<ProjectCostWithReports>;
|
|
182
170
|
|
|
183
171
|
/** Summarized costs for a project */
|
|
184
172
|
export type SummarizedServiceCost = SummarizedProjectCost;
|
|
185
173
|
export const SummarizedServiceCost = SummarizedProjectCost;
|
|
186
174
|
|
|
187
175
|
/** Summarized service costs */
|
|
188
|
-
export type ProjectCostWithSummarizedServicesServicesList =
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
SummarizedProjectCost,
|
|
193
|
-
) as any as S.Schema<ProjectCostWithSummarizedServicesServicesList>;
|
|
176
|
+
export type ProjectCostWithSummarizedServicesServicesList = Array<SummarizedProjectCost>;
|
|
177
|
+
export const ProjectCostWithSummarizedServicesServicesList = /*@__PURE__*/ S.Array(
|
|
178
|
+
SummarizedProjectCost,
|
|
179
|
+
) as any as S.Schema<ProjectCostWithSummarizedServicesServicesList>;
|
|
194
180
|
|
|
195
181
|
/** Costs for a project including summarized service costs */
|
|
196
182
|
export interface ProjectCostWithSummarizedServices {
|
|
@@ -256,17 +242,13 @@ export const DetailedServiceCost = /*@__PURE__*/ S.suspend(() =>
|
|
|
256
242
|
totalQuantityDecimal: S.String,
|
|
257
243
|
unitLabel: S.String,
|
|
258
244
|
}),
|
|
259
|
-
).annotate({
|
|
260
|
-
identifier: "DetailedServiceCost",
|
|
261
|
-
}) as any as S.Schema<DetailedServiceCost>;
|
|
245
|
+
).annotate({ identifier: "DetailedServiceCost" }) as any as S.Schema<DetailedServiceCost>;
|
|
262
246
|
|
|
263
247
|
/** Total discount for all services and the whole requested date range (value in cents). Please see "depth" parameter for more details. */
|
|
264
|
-
export type ProjectCostWithDetailedServicesServicesList =
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
DetailedServiceCost,
|
|
269
|
-
) as any as S.Schema<ProjectCostWithDetailedServicesServicesList>;
|
|
248
|
+
export type ProjectCostWithDetailedServicesServicesList = Array<DetailedServiceCost>;
|
|
249
|
+
export const ProjectCostWithDetailedServicesServicesList = /*@__PURE__*/ S.Array(
|
|
250
|
+
DetailedServiceCost,
|
|
251
|
+
) as any as S.Schema<ProjectCostWithDetailedServicesServicesList>;
|
|
270
252
|
|
|
271
253
|
/** Detailed costs for a project including service costs */
|
|
272
254
|
export interface ProjectCostWithDetailedServices {
|
|
@@ -298,8 +280,7 @@ export type ProjectCost =
|
|
|
298
280
|
| ProjectCostWithReports
|
|
299
281
|
| ProjectCostWithSummarizedServices
|
|
300
282
|
| ProjectCostWithDetailedServices;
|
|
301
|
-
export const ProjectCost =
|
|
302
|
-
/*@__PURE__*/ S.Unknown as any as S.Schema<ProjectCost>;
|
|
283
|
+
export const ProjectCost = /*@__PURE__*/ S.Unknown as any as S.Schema<ProjectCost>;
|
|
303
284
|
|
|
304
285
|
export type GetCostsForProjectResponse = ProjectCost;
|
|
305
286
|
export const GetCostsForProjectResponse = /*@__PURE__*/ S.suspend(() =>
|
|
@@ -309,7 +290,7 @@ export const GetCostsForProjectResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
309
290
|
}) as any as S.Schema<GetCostsForProjectResponse>;
|
|
310
291
|
|
|
311
292
|
export type ListCostsForCustomerRequestDepth = "project" | "service" | "auto";
|
|
312
|
-
export const ListCostsForCustomerRequestDepth =
|
|
293
|
+
export const ListCostsForCustomerRequestDepth = S.String;
|
|
313
294
|
|
|
314
295
|
export type ListCostsForCustomerRequestGranularity =
|
|
315
296
|
| "daily"
|
|
@@ -317,7 +298,7 @@ export type ListCostsForCustomerRequestGranularity =
|
|
|
317
298
|
| "monthly"
|
|
318
299
|
| "yearly"
|
|
319
300
|
| "none";
|
|
320
|
-
export const ListCostsForCustomerRequestGranularity =
|
|
301
|
+
export const ListCostsForCustomerRequestGranularity = S.String;
|
|
321
302
|
|
|
322
303
|
export interface ListCostsForCustomerRequest {
|
|
323
304
|
/** ID of a customer account */
|
|
@@ -339,9 +320,7 @@ export const ListCostsForCustomerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
339
320
|
from: S.String.pipe(T.Query()),
|
|
340
321
|
to: S.String.pipe(T.Query()),
|
|
341
322
|
depth: S.optional(ListCostsForCustomerRequestDepth.pipe(T.Query())),
|
|
342
|
-
granularity: S.optional(
|
|
343
|
-
ListCostsForCustomerRequestGranularity.pipe(T.Query()),
|
|
344
|
-
),
|
|
323
|
+
granularity: S.optional(ListCostsForCustomerRequestGranularity.pipe(T.Query())),
|
|
345
324
|
includeZeroCosts: S.optional(S.Boolean.pipe(T.Query())),
|
|
346
325
|
}).pipe(
|
|
347
326
|
T.Http({
|
|
@@ -368,7 +347,7 @@ export const ListCostsForCustomerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
368
347
|
}) as any as S.Schema<ListCostsForCustomerResponse>;
|
|
369
348
|
|
|
370
349
|
export type ListCostsForResellerRequestDepth = "project" | "service" | "auto";
|
|
371
|
-
export const ListCostsForResellerRequestDepth =
|
|
350
|
+
export const ListCostsForResellerRequestDepth = S.String;
|
|
372
351
|
|
|
373
352
|
export type ListCostsForResellerRequestGranularity =
|
|
374
353
|
| "daily"
|
|
@@ -376,7 +355,7 @@ export type ListCostsForResellerRequestGranularity =
|
|
|
376
355
|
| "monthly"
|
|
377
356
|
| "yearly"
|
|
378
357
|
| "none";
|
|
379
|
-
export const ListCostsForResellerRequestGranularity =
|
|
358
|
+
export const ListCostsForResellerRequestGranularity = S.String;
|
|
380
359
|
|
|
381
360
|
export interface ListCostsForResellerRequest {
|
|
382
361
|
/** ID of a customer account */
|
|
@@ -398,9 +377,7 @@ export const ListCostsForResellerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
398
377
|
from: S.String.pipe(T.Query()),
|
|
399
378
|
to: S.String.pipe(T.Query()),
|
|
400
379
|
depth: S.optional(ListCostsForResellerRequestDepth.pipe(T.Query())),
|
|
401
|
-
granularity: S.optional(
|
|
402
|
-
ListCostsForResellerRequestGranularity.pipe(T.Query()),
|
|
403
|
-
),
|
|
380
|
+
granularity: S.optional(ListCostsForResellerRequestGranularity.pipe(T.Query())),
|
|
404
381
|
includeZeroCosts: S.optional(S.Boolean.pipe(T.Query())),
|
|
405
382
|
}).pipe(
|
|
406
383
|
T.Http({
|
|
@@ -426,11 +403,7 @@ export const ListCostsForResellerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
426
403
|
identifier: "ListCostsForResellerResponse",
|
|
427
404
|
}) as any as S.Schema<ListCostsForResellerResponse>;
|
|
428
405
|
|
|
429
|
-
export type GetCostsForProjectError =
|
|
430
|
-
| BadRequest
|
|
431
|
-
| Forbidden
|
|
432
|
-
| NotFound
|
|
433
|
-
| StackitOpError;
|
|
406
|
+
export type GetCostsForProjectError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
434
407
|
/** V3 Costs for a certain project Get costs for a certain project in a customer account */
|
|
435
408
|
export const getCostsForProject: API.OperationMethod<
|
|
436
409
|
GetCostsForProjectRequest,
|
|
@@ -445,11 +418,7 @@ export const getCostsForProject: API.OperationMethod<
|
|
|
445
418
|
retry: Retry.Retry,
|
|
446
419
|
}));
|
|
447
420
|
|
|
448
|
-
export type ListCostsForCustomerError =
|
|
449
|
-
| BadRequest
|
|
450
|
-
| Forbidden
|
|
451
|
-
| NotFound
|
|
452
|
-
| StackitOpError;
|
|
421
|
+
export type ListCostsForCustomerError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
453
422
|
/** V3 Costs for all projects Get costs for all projects in a customer account */
|
|
454
423
|
export const listCostsForCustomer: API.OperationMethod<
|
|
455
424
|
ListCostsForCustomerRequest,
|
|
@@ -464,11 +433,7 @@ export const listCostsForCustomer: API.OperationMethod<
|
|
|
464
433
|
retry: Retry.Retry,
|
|
465
434
|
}));
|
|
466
435
|
|
|
467
|
-
export type ListCostsForResellerError =
|
|
468
|
-
| BadRequest
|
|
469
|
-
| Forbidden
|
|
470
|
-
| NotFound
|
|
471
|
-
| StackitOpError;
|
|
436
|
+
export type ListCostsForResellerError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
472
437
|
/** V3 Costs for all projects of all related sub-customers Get costs for all projects of all related sub-customer accounts */
|
|
473
438
|
export const listCostsForReseller: API.OperationMethod<
|
|
474
439
|
ListCostsForResellerRequest,
|