@distilled.cloud/stackit 0.0.0-placeholder → 1.0.0-rc.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +34 -0
- package/lib/credentials.d.ts +29 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +49 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +36 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +26 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +30 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +9 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +48 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +32 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +148 -0
- package/lib/protocol.js.map +1 -0
- package/lib/response-validation.test.d.ts +4 -0
- package/lib/response-validation.test.d.ts.map +1 -0
- package/lib/response-validation.test.js +31 -0
- package/lib/response-validation.test.js.map +1 -0
- package/lib/retry.d.ts +31 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +31 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/alb.d.ts +603 -0
- package/lib/services/alb.d.ts.map +1 -0
- package/lib/services/alb.js +562 -0
- package/lib/services/alb.js.map +1 -0
- package/lib/services/alb_waf.d.ts +526 -0
- package/lib/services/alb_waf.d.ts.map +1 -0
- package/lib/services/alb_waf.js +545 -0
- package/lib/services/alb_waf.js.map +1 -0
- package/lib/services/authorization.d.ts +251 -0
- package/lib/services/authorization.d.ts.map +1 -0
- package/lib/services/authorization.js +353 -0
- package/lib/services/authorization.js.map +1 -0
- package/lib/services/automation.d.ts +358 -0
- package/lib/services/automation.d.ts.map +1 -0
- package/lib/services/automation.js +426 -0
- package/lib/services/automation.js.map +1 -0
- package/lib/services/cdn.d.ts +1239 -0
- package/lib/services/cdn.d.ts.map +1 -0
- package/lib/services/cdn.js +992 -0
- package/lib/services/cdn.js.map +1 -0
- package/lib/services/certificates.d.ts +201 -0
- package/lib/services/certificates.d.ts.map +1 -0
- package/lib/services/certificates.js +197 -0
- package/lib/services/certificates.js.map +1 -0
- package/lib/services/cost.d.ts +222 -0
- package/lib/services/cost.d.ts.map +1 -0
- package/lib/services/cost.js +188 -0
- package/lib/services/cost.js.map +1 -0
- package/lib/services/dns.d.ts +875 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +854 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/dremio.d.ts +358 -0
- package/lib/services/dremio.d.ts.map +1 -0
- package/lib/services/dremio.js +339 -0
- package/lib/services/dremio.js.map +1 -0
- package/lib/services/edge.d.ts +312 -0
- package/lib/services/edge.d.ts.map +1 -0
- package/lib/services/edge.js +375 -0
- package/lib/services/edge.js.map +1 -0
- package/lib/services/functions.d.ts +409 -0
- package/lib/services/functions.d.ts.map +1 -0
- package/lib/services/functions.js +423 -0
- package/lib/services/functions.js.map +1 -0
- package/lib/services/git.d.ts +497 -0
- package/lib/services/git.d.ts.map +1 -0
- package/lib/services/git.js +552 -0
- package/lib/services/git.js.map +1 -0
- package/lib/services/iaas.d.ts +2965 -0
- package/lib/services/iaas.d.ts.map +1 -0
- package/lib/services/iaas.js +3768 -0
- package/lib/services/iaas.js.map +1 -0
- package/lib/services/index.d.ts +51 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +52 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/intake.d.ts +555 -0
- package/lib/services/intake.d.ts.map +1 -0
- package/lib/services/intake.js +513 -0
- package/lib/services/intake.js.map +1 -0
- package/lib/services/kms.d.ts +654 -0
- package/lib/services/kms.d.ts.map +1 -0
- package/lib/services/kms.js +703 -0
- package/lib/services/kms.js.map +1 -0
- package/lib/services/lb_ip_lists.d.ts +162 -0
- package/lib/services/lb_ip_lists.d.ts.map +1 -0
- package/lib/services/lb_ip_lists.js +173 -0
- package/lib/services/lb_ip_lists.js.map +1 -0
- package/lib/services/load_balancer.d.ts +563 -0
- package/lib/services/load_balancer.d.ts.map +1 -0
- package/lib/services/load_balancer.js +542 -0
- package/lib/services/load_balancer.js.map +1 -0
- package/lib/services/logme.d.ts +516 -0
- package/lib/services/logme.d.ts.map +1 -0
- package/lib/services/logme.js +636 -0
- package/lib/services/logme.js.map +1 -0
- package/lib/services/logs.d.ts +436 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +498 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/mariadb.d.ts +479 -0
- package/lib/services/mariadb.d.ts.map +1 -0
- package/lib/services/mariadb.js +611 -0
- package/lib/services/mariadb.js.map +1 -0
- package/lib/services/model_experiments.d.ts +306 -0
- package/lib/services/model_experiments.d.ts.map +1 -0
- package/lib/services/model_experiments.js +356 -0
- package/lib/services/model_experiments.js.map +1 -0
- package/lib/services/model_serving.d.ts +289 -0
- package/lib/services/model_serving.d.ts.map +1 -0
- package/lib/services/model_serving.js +319 -0
- package/lib/services/model_serving.js.map +1 -0
- package/lib/services/mongodb_flex.d.ts +826 -0
- package/lib/services/mongodb_flex.d.ts.map +1 -0
- package/lib/services/mongodb_flex.js +889 -0
- package/lib/services/mongodb_flex.js.map +1 -0
- package/lib/services/object_storage.d.ts +446 -0
- package/lib/services/object_storage.d.ts.map +1 -0
- package/lib/services/object_storage.js +577 -0
- package/lib/services/object_storage.js.map +1 -0
- package/lib/services/observability.d.ts +2750 -0
- package/lib/services/observability.d.ts.map +1 -0
- package/lib/services/observability.js +3407 -0
- package/lib/services/observability.js.map +1 -0
- package/lib/services/opensearch.d.ts +505 -0
- package/lib/services/opensearch.d.ts.map +1 -0
- package/lib/services/opensearch.js +623 -0
- package/lib/services/opensearch.js.map +1 -0
- package/lib/services/pim.d.ts +997 -0
- package/lib/services/pim.d.ts.map +1 -0
- package/lib/services/pim.js +789 -0
- package/lib/services/pim.js.map +1 -0
- package/lib/services/postgres_flex.d.ts +854 -0
- package/lib/services/postgres_flex.d.ts.map +1 -0
- package/lib/services/postgres_flex.js +1018 -0
- package/lib/services/postgres_flex.js.map +1 -0
- package/lib/services/pubsub.d.ts +489 -0
- package/lib/services/pubsub.d.ts.map +1 -0
- package/lib/services/pubsub.js +614 -0
- package/lib/services/pubsub.js.map +1 -0
- package/lib/services/rabbitmq.d.ts +523 -0
- package/lib/services/rabbitmq.d.ts.map +1 -0
- package/lib/services/rabbitmq.js +636 -0
- package/lib/services/rabbitmq.js.map +1 -0
- package/lib/services/registry.d.ts +212 -0
- package/lib/services/registry.d.ts.map +1 -0
- package/lib/services/registry.js +221 -0
- package/lib/services/registry.js.map +1 -0
- package/lib/services/resource_manager.d.ts +458 -0
- package/lib/services/resource_manager.d.ts.map +1 -0
- package/lib/services/resource_manager.js +503 -0
- package/lib/services/resource_manager.js.map +1 -0
- package/lib/services/run_command.d.ts +175 -0
- package/lib/services/run_command.d.ts.map +1 -0
- package/lib/services/run_command.js +203 -0
- package/lib/services/run_command.js.map +1 -0
- package/lib/services/sca.d.ts +541 -0
- package/lib/services/sca.d.ts.map +1 -0
- package/lib/services/sca.js +478 -0
- package/lib/services/sca.js.map +1 -0
- package/lib/services/scf.d.ts +498 -0
- package/lib/services/scf.d.ts.map +1 -0
- package/lib/services/scf.js +718 -0
- package/lib/services/scf.js.map +1 -0
- package/lib/services/secrets_manager.d.ts +505 -0
- package/lib/services/secrets_manager.d.ts.map +1 -0
- package/lib/services/secrets_manager.js +659 -0
- package/lib/services/secrets_manager.js.map +1 -0
- package/lib/services/server_backup.d.ts +380 -0
- package/lib/services/server_backup.d.ts.map +1 -0
- package/lib/services/server_backup.js +474 -0
- package/lib/services/server_backup.js.map +1 -0
- package/lib/services/server_update.d.ts +292 -0
- package/lib/services/server_update.d.ts.map +1 -0
- package/lib/services/server_update.js +364 -0
- package/lib/services/server_update.js.map +1 -0
- package/lib/services/service_account.d.ts +465 -0
- package/lib/services/service_account.d.ts.map +1 -0
- package/lib/services/service_account.js +523 -0
- package/lib/services/service_account.js.map +1 -0
- package/lib/services/service_enablement.d.ts +149 -0
- package/lib/services/service_enablement.d.ts.map +1 -0
- package/lib/services/service_enablement.js +159 -0
- package/lib/services/service_enablement.js.map +1 -0
- package/lib/services/sfs.d.ts +721 -0
- package/lib/services/sfs.d.ts.map +1 -0
- package/lib/services/sfs.js +845 -0
- package/lib/services/sfs.js.map +1 -0
- package/lib/services/ske.d.ts +536 -0
- package/lib/services/ske.d.ts.map +1 -0
- package/lib/services/ske.js +598 -0
- package/lib/services/ske.js.map +1 -0
- package/lib/services/sqlserverflex.d.ts +956 -0
- package/lib/services/sqlserverflex.d.ts.map +1 -0
- package/lib/services/sqlserverflex.js +1087 -0
- package/lib/services/sqlserverflex.js.map +1 -0
- package/lib/services/stackit_marketplace.d.ts +288 -0
- package/lib/services/stackit_marketplace.d.ts.map +1 -0
- package/lib/services/stackit_marketplace.js +393 -0
- package/lib/services/stackit_marketplace.js.map +1 -0
- package/lib/services/telemetry_link.d.ts +443 -0
- package/lib/services/telemetry_link.d.ts.map +1 -0
- package/lib/services/telemetry_link.js +550 -0
- package/lib/services/telemetry_link.js.map +1 -0
- package/lib/services/telemetry_router.d.ts +493 -0
- package/lib/services/telemetry_router.d.ts.map +1 -0
- package/lib/services/telemetry_router.js +523 -0
- package/lib/services/telemetry_router.js.map +1 -0
- package/lib/services/ufw.d.ts +295 -0
- package/lib/services/ufw.d.ts.map +1 -0
- package/lib/services/ufw.js +301 -0
- package/lib/services/ufw.js.map +1 -0
- package/lib/services/valkey.d.ts +505 -0
- package/lib/services/valkey.d.ts.map +1 -0
- package/lib/services/valkey.js +627 -0
- package/lib/services/valkey.js.map +1 -0
- package/lib/services/vpn.d.ts +1024 -0
- package/lib/services/vpn.d.ts.map +1 -0
- package/lib/services/vpn.js +1013 -0
- package/lib/services/vpn.js.map +1 -0
- package/lib/services/workflows.d.ts +600 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +556 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/traits.d.ts +24 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +15 -0
- package/lib/traits.js.map +1 -0
- package/package.json +78 -7
- package/src/credentials.ts +90 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +34 -0
- package/src/pagination.ts +73 -0
- package/src/protocol.ts +243 -0
- package/src/response-validation.test.ts +45 -0
- package/src/retry.ts +53 -0
- package/src/services/alb.ts +1409 -0
- package/src/services/alb_waf.ts +1347 -0
- package/src/services/authorization.ts +740 -0
- package/src/services/automation.ts +966 -0
- package/src/services/cdn.ts +2736 -0
- package/src/services/certificates.ts +450 -0
- package/src/services/cost.ts +484 -0
- package/src/services/dns.ts +2271 -0
- package/src/services/dremio.ts +803 -0
- package/src/services/edge.ts +839 -0
- package/src/services/functions.ts +1010 -0
- package/src/services/git.ts +1275 -0
- package/src/services/iaas.ts +8670 -0
- package/src/services/index.ts +51 -0
- package/src/services/intake.ts +1233 -0
- package/src/services/kms.ts +1638 -0
- package/src/services/lb_ip_lists.ts +377 -0
- package/src/services/load_balancer.ts +1342 -0
- package/src/services/logme.ts +1379 -0
- package/src/services/logs.ts +1150 -0
- package/src/services/mariadb.ts +1293 -0
- package/src/services/model_experiments.ts +797 -0
- package/src/services/model_serving.ts +697 -0
- package/src/services/mongodb_flex.ts +2078 -0
- package/src/services/object_storage.ts +1248 -0
- package/src/services/observability.ts +7856 -0
- package/src/services/opensearch.ts +1354 -0
- package/src/services/pim.ts +2090 -0
- package/src/services/postgres_flex.ts +2326 -0
- package/src/services/pubsub.ts +1336 -0
- package/src/services/rabbitmq.ts +1402 -0
- package/src/services/registry.ts +494 -0
- package/src/services/resource_manager.ts +1155 -0
- package/src/services/run_command.ts +441 -0
- package/src/services/sca.ts +1222 -0
- package/src/services/scf.ts +1537 -0
- package/src/services/secrets_manager.ts +1399 -0
- package/src/services/server_backup.ts +1032 -0
- package/src/services/server_update.ts +767 -0
- package/src/services/service_account.ts +1208 -0
- package/src/services/service_enablement.ts +359 -0
- package/src/services/sfs.ts +1913 -0
- package/src/services/ske.ts +1408 -0
- package/src/services/sqlserverflex.ts +2543 -0
- package/src/services/stackit_marketplace.ts +853 -0
- package/src/services/telemetry_link.ts +1245 -0
- package/src/services/telemetry_router.ts +1205 -0
- package/src/services/ufw.ts +704 -0
- package/src/services/valkey.ts +1357 -0
- package/src/services/vpn.ts +2554 -0
- package/src/services/workflows.ts +1361 -0
- package/src/traits.ts +65 -0
|
@@ -0,0 +1,1205 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as 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
|
+
import { UnknownStackitError } from "../errors.ts";
|
|
13
|
+
import * as Retry from "../retry.ts";
|
|
14
|
+
|
|
15
|
+
export type { StackitOpError, StackitOpContext };
|
|
16
|
+
|
|
17
|
+
export class BadRequest
|
|
18
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
19
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
20
|
+
code: S.Number,
|
|
21
|
+
message: S.String,
|
|
22
|
+
}).pipe(C.withBadRequestError),
|
|
23
|
+
[{ status: 400 }],
|
|
24
|
+
) {}
|
|
25
|
+
|
|
26
|
+
export class Conflict
|
|
27
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
28
|
+
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
29
|
+
code: S.Number,
|
|
30
|
+
message: S.String,
|
|
31
|
+
}).pipe(C.withConflictError),
|
|
32
|
+
[{ status: 409 }],
|
|
33
|
+
) {}
|
|
34
|
+
|
|
35
|
+
export class NotFound
|
|
36
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
37
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
38
|
+
code: S.Number,
|
|
39
|
+
message: S.String,
|
|
40
|
+
}).pipe(C.withBadRequestError),
|
|
41
|
+
[{ status: 404 }],
|
|
42
|
+
) {}
|
|
43
|
+
|
|
44
|
+
export type CreateAccessTokenRequestRegionId = "eu01" | "eu02";
|
|
45
|
+
export const CreateAccessTokenRequestRegionId = /*@__PURE__*/ S.String;
|
|
46
|
+
|
|
47
|
+
export interface CreateAccessTokenRequest {
|
|
48
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
49
|
+
projectId: string;
|
|
50
|
+
/** The STACKIT region name the resource is located in. */
|
|
51
|
+
regionId: CreateAccessTokenRequestRegionId | (string & {});
|
|
52
|
+
/** The Telemetry Router UUID. */
|
|
53
|
+
telemetryRouterId: string;
|
|
54
|
+
/** The description of the access token. */
|
|
55
|
+
description?: string;
|
|
56
|
+
/** The selected display name of the access token. */
|
|
57
|
+
displayName: string;
|
|
58
|
+
/** The time-to-live (TTL) in days for the access token. If not set, token will not expire. */
|
|
59
|
+
ttl?: number | null;
|
|
60
|
+
}
|
|
61
|
+
export const CreateAccessTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
62
|
+
S.Struct({
|
|
63
|
+
projectId: S.String.pipe(T.Label()),
|
|
64
|
+
regionId: CreateAccessTokenRequestRegionId.pipe(T.Label()),
|
|
65
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
66
|
+
description: S.optional(S.String),
|
|
67
|
+
displayName: S.String,
|
|
68
|
+
ttl: S.optional(S.NullOr(S.Number)),
|
|
69
|
+
}).pipe(
|
|
70
|
+
T.Http({
|
|
71
|
+
method: "POST",
|
|
72
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/access-tokens",
|
|
73
|
+
code: 200,
|
|
74
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
75
|
+
}),
|
|
76
|
+
),
|
|
77
|
+
).annotate({
|
|
78
|
+
identifier: "CreateAccessTokenRequest",
|
|
79
|
+
}) as any as S.Schema<CreateAccessTokenRequest>;
|
|
80
|
+
|
|
81
|
+
export type CreateAccessTokenResponseStatus = "active" | "expired" | "deleting";
|
|
82
|
+
export const CreateAccessTokenResponseStatus = /*@__PURE__*/ S.String;
|
|
83
|
+
|
|
84
|
+
export interface CreateAccessTokenResponse {
|
|
85
|
+
/** The user ID of the creator of the access token. */
|
|
86
|
+
creatorId: string;
|
|
87
|
+
/** The description of the access token. */
|
|
88
|
+
description?: string;
|
|
89
|
+
/** The selected display name of the access token. */
|
|
90
|
+
displayName: string;
|
|
91
|
+
/** The date and time until the access token is valid to (inclusively). */
|
|
92
|
+
expirationTime?: string | null;
|
|
93
|
+
/** An auto generated unique id which identifies the access token. */
|
|
94
|
+
id: string;
|
|
95
|
+
status: CreateAccessTokenResponseStatus;
|
|
96
|
+
/** The generated access token. */
|
|
97
|
+
accessToken: string | Redacted.Redacted<string>;
|
|
98
|
+
}
|
|
99
|
+
export const CreateAccessTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
100
|
+
S.Struct({
|
|
101
|
+
creatorId: S.String,
|
|
102
|
+
description: S.optional(S.String),
|
|
103
|
+
displayName: S.String,
|
|
104
|
+
expirationTime: S.optional(S.NullOr(S.String)),
|
|
105
|
+
id: S.String,
|
|
106
|
+
status: CreateAccessTokenResponseStatus,
|
|
107
|
+
accessToken: S.String.pipe(T.SensitiveValue({})),
|
|
108
|
+
}),
|
|
109
|
+
).annotate({
|
|
110
|
+
identifier: "CreateAccessTokenResponse",
|
|
111
|
+
}) as any as S.Schema<CreateAccessTokenResponse>;
|
|
112
|
+
|
|
113
|
+
export type CreateDestinationRequestRegionId = "eu01" | "eu02";
|
|
114
|
+
export const CreateDestinationRequestRegionId = /*@__PURE__*/ S.String;
|
|
115
|
+
|
|
116
|
+
/** Type of the destination. */
|
|
117
|
+
export type DestinationConfigType = "OpenTelemetry" | "S3";
|
|
118
|
+
export const DestinationConfigType = /*@__PURE__*/ S.String;
|
|
119
|
+
|
|
120
|
+
export type ConfigFilterLevel = "resource" | "scope" | "logRecord";
|
|
121
|
+
export const ConfigFilterLevel = /*@__PURE__*/ S.String;
|
|
122
|
+
|
|
123
|
+
export type ConfigFilterMatcher = "=" | "!=";
|
|
124
|
+
export const ConfigFilterMatcher = /*@__PURE__*/ S.String;
|
|
125
|
+
|
|
126
|
+
export type ConfigFilterAttributesValuesList = Array<string>;
|
|
127
|
+
export const ConfigFilterAttributesValuesList = /*@__PURE__*/ S.Array(
|
|
128
|
+
S.String,
|
|
129
|
+
) as any as S.Schema<ConfigFilterAttributesValuesList>;
|
|
130
|
+
|
|
131
|
+
export interface ConfigFilterAttributes {
|
|
132
|
+
key: string;
|
|
133
|
+
level: ConfigFilterLevel | (string & {});
|
|
134
|
+
matcher: ConfigFilterMatcher | (string & {});
|
|
135
|
+
values: ConfigFilterAttributesValuesList;
|
|
136
|
+
}
|
|
137
|
+
export const ConfigFilterAttributes = /*@__PURE__*/ S.suspend(() =>
|
|
138
|
+
S.Struct({
|
|
139
|
+
key: S.String,
|
|
140
|
+
level: ConfigFilterLevel,
|
|
141
|
+
matcher: ConfigFilterMatcher,
|
|
142
|
+
values: ConfigFilterAttributesValuesList,
|
|
143
|
+
}),
|
|
144
|
+
).annotate({
|
|
145
|
+
identifier: "ConfigFilterAttributes",
|
|
146
|
+
}) as any as S.Schema<ConfigFilterAttributes>;
|
|
147
|
+
|
|
148
|
+
export type ConfigFilterAttributesList = Array<ConfigFilterAttributes>;
|
|
149
|
+
export const ConfigFilterAttributesList = /*@__PURE__*/ S.Array(
|
|
150
|
+
ConfigFilterAttributes,
|
|
151
|
+
) as any as S.Schema<ConfigFilterAttributesList>;
|
|
152
|
+
|
|
153
|
+
export interface ConfigFilter {
|
|
154
|
+
attributes: ConfigFilterAttributesList;
|
|
155
|
+
disabled?: boolean;
|
|
156
|
+
}
|
|
157
|
+
export const ConfigFilter = /*@__PURE__*/ S.suspend(() =>
|
|
158
|
+
S.Struct({
|
|
159
|
+
attributes: ConfigFilterAttributesList,
|
|
160
|
+
disabled: S.optional(S.Boolean),
|
|
161
|
+
}),
|
|
162
|
+
).annotate({ identifier: "ConfigFilter" }) as any as S.Schema<ConfigFilter>;
|
|
163
|
+
|
|
164
|
+
/** Basic auth to authenticate at the OpenTelemetry URI */
|
|
165
|
+
export interface DestinationConfigOpenTelemetryBasicAuth {
|
|
166
|
+
password: string | Redacted.Redacted<string>;
|
|
167
|
+
username: string;
|
|
168
|
+
}
|
|
169
|
+
export const DestinationConfigOpenTelemetryBasicAuth = /*@__PURE__*/ S.suspend(
|
|
170
|
+
() =>
|
|
171
|
+
S.Struct({
|
|
172
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
173
|
+
username: S.String,
|
|
174
|
+
}),
|
|
175
|
+
).annotate({
|
|
176
|
+
identifier: "DestinationConfigOpenTelemetryBasicAuth",
|
|
177
|
+
}) as any as S.Schema<DestinationConfigOpenTelemetryBasicAuth>;
|
|
178
|
+
|
|
179
|
+
export interface DestinationConfigOpenTelemetry {
|
|
180
|
+
basicAuth?: DestinationConfigOpenTelemetryBasicAuth;
|
|
181
|
+
/** A bearer token to authenticate at the OpenTelemetry URI. */
|
|
182
|
+
bearerToken?: string;
|
|
183
|
+
/** The URI for reaching the resource. */
|
|
184
|
+
uri: string;
|
|
185
|
+
}
|
|
186
|
+
export const DestinationConfigOpenTelemetry = /*@__PURE__*/ S.suspend(() =>
|
|
187
|
+
S.Struct({
|
|
188
|
+
basicAuth: S.optional(DestinationConfigOpenTelemetryBasicAuth),
|
|
189
|
+
bearerToken: S.optional(S.String),
|
|
190
|
+
uri: S.String,
|
|
191
|
+
}),
|
|
192
|
+
).annotate({
|
|
193
|
+
identifier: "DestinationConfigOpenTelemetry",
|
|
194
|
+
}) as any as S.Schema<DestinationConfigOpenTelemetry>;
|
|
195
|
+
|
|
196
|
+
/** The S3 access key */
|
|
197
|
+
export interface DestinationConfigS3AccessKey {
|
|
198
|
+
id: string;
|
|
199
|
+
secret: string | Redacted.Redacted<string>;
|
|
200
|
+
}
|
|
201
|
+
export const DestinationConfigS3AccessKey = /*@__PURE__*/ S.suspend(() =>
|
|
202
|
+
S.Struct({
|
|
203
|
+
id: S.String,
|
|
204
|
+
secret: S.String.pipe(T.SensitiveValue({})),
|
|
205
|
+
}),
|
|
206
|
+
).annotate({
|
|
207
|
+
identifier: "DestinationConfigS3AccessKey",
|
|
208
|
+
}) as any as S.Schema<DestinationConfigS3AccessKey>;
|
|
209
|
+
|
|
210
|
+
export interface DestinationConfigS3 {
|
|
211
|
+
accessKey?: DestinationConfigS3AccessKey;
|
|
212
|
+
bucket: string;
|
|
213
|
+
/** The URI for reaching the resource. */
|
|
214
|
+
endpoint: string;
|
|
215
|
+
}
|
|
216
|
+
export const DestinationConfigS3 = /*@__PURE__*/ S.suspend(() =>
|
|
217
|
+
S.Struct({
|
|
218
|
+
accessKey: S.optional(DestinationConfigS3AccessKey),
|
|
219
|
+
bucket: S.String,
|
|
220
|
+
endpoint: S.String,
|
|
221
|
+
}),
|
|
222
|
+
).annotate({
|
|
223
|
+
identifier: "DestinationConfigS3",
|
|
224
|
+
}) as any as S.Schema<DestinationConfigS3>;
|
|
225
|
+
|
|
226
|
+
export interface DestinationConfig {
|
|
227
|
+
configType: DestinationConfigType | (string & {});
|
|
228
|
+
filter?: ConfigFilter;
|
|
229
|
+
openTelemetry?: DestinationConfigOpenTelemetry;
|
|
230
|
+
s3?: DestinationConfigS3;
|
|
231
|
+
}
|
|
232
|
+
export const DestinationConfig = /*@__PURE__*/ S.suspend(() =>
|
|
233
|
+
S.Struct({
|
|
234
|
+
configType: DestinationConfigType,
|
|
235
|
+
filter: S.optional(ConfigFilter),
|
|
236
|
+
openTelemetry: S.optional(DestinationConfigOpenTelemetry),
|
|
237
|
+
s3: S.optional(DestinationConfigS3),
|
|
238
|
+
}),
|
|
239
|
+
).annotate({
|
|
240
|
+
identifier: "DestinationConfig",
|
|
241
|
+
}) as any as S.Schema<DestinationConfig>;
|
|
242
|
+
|
|
243
|
+
export interface CreateDestinationRequest {
|
|
244
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
245
|
+
projectId: string;
|
|
246
|
+
/** The STACKIT region name the resource is located in. */
|
|
247
|
+
regionId: CreateDestinationRequestRegionId | (string & {});
|
|
248
|
+
/** The Telemetry Router UUID. */
|
|
249
|
+
telemetryRouterId: string;
|
|
250
|
+
config: DestinationConfig;
|
|
251
|
+
/** The description is a longer text chosen by the user to provide more context for the resource. */
|
|
252
|
+
description?: string;
|
|
253
|
+
/** The display name is a short name chosen by the user to identify the resource. */
|
|
254
|
+
displayName: string;
|
|
255
|
+
}
|
|
256
|
+
export const CreateDestinationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
257
|
+
S.Struct({
|
|
258
|
+
projectId: S.String.pipe(T.Label()),
|
|
259
|
+
regionId: CreateDestinationRequestRegionId.pipe(T.Label()),
|
|
260
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
261
|
+
config: DestinationConfig,
|
|
262
|
+
description: S.optional(S.String),
|
|
263
|
+
displayName: S.String,
|
|
264
|
+
}).pipe(
|
|
265
|
+
T.Http({
|
|
266
|
+
method: "POST",
|
|
267
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/destinations",
|
|
268
|
+
code: 200,
|
|
269
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
270
|
+
}),
|
|
271
|
+
),
|
|
272
|
+
).annotate({
|
|
273
|
+
identifier: "CreateDestinationRequest",
|
|
274
|
+
}) as any as S.Schema<CreateDestinationRequest>;
|
|
275
|
+
|
|
276
|
+
/** The credential type for the resource. */
|
|
277
|
+
export type DestinationResponseCredentialType =
|
|
278
|
+
| "bearerToken"
|
|
279
|
+
| "basicAuth"
|
|
280
|
+
| "accessKey";
|
|
281
|
+
export const DestinationResponseCredentialType = /*@__PURE__*/ S.String;
|
|
282
|
+
|
|
283
|
+
/** The current status of the resource. */
|
|
284
|
+
export type DestinationResponseStatus = "reconciling" | "active" | "deleting";
|
|
285
|
+
export const DestinationResponseStatus = /*@__PURE__*/ S.String;
|
|
286
|
+
|
|
287
|
+
export interface DestinationResponse {
|
|
288
|
+
config: DestinationConfig;
|
|
289
|
+
/** The point in time the resource was created. */
|
|
290
|
+
creationTime: string;
|
|
291
|
+
/** The credential type for the resource. */
|
|
292
|
+
credentialType: DestinationResponseCredentialType;
|
|
293
|
+
/** The description is a longer text chosen by the user to provide more context for the resource. */
|
|
294
|
+
description?: string;
|
|
295
|
+
/** The display name is a short name chosen by the user to identify the resource. */
|
|
296
|
+
displayName: string;
|
|
297
|
+
/** A auto generated unique id which identifies the resource. */
|
|
298
|
+
id: string;
|
|
299
|
+
/** The current status of the resource. */
|
|
300
|
+
status: DestinationResponseStatus;
|
|
301
|
+
}
|
|
302
|
+
export const DestinationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
303
|
+
S.Struct({
|
|
304
|
+
config: DestinationConfig,
|
|
305
|
+
creationTime: S.String,
|
|
306
|
+
credentialType: DestinationResponseCredentialType,
|
|
307
|
+
description: S.optional(S.String),
|
|
308
|
+
displayName: S.String,
|
|
309
|
+
id: S.String,
|
|
310
|
+
status: DestinationResponseStatus,
|
|
311
|
+
}),
|
|
312
|
+
).annotate({
|
|
313
|
+
identifier: "DestinationResponse",
|
|
314
|
+
}) as any as S.Schema<DestinationResponse>;
|
|
315
|
+
|
|
316
|
+
export type CreateTelemetryRouterRequestRegionId = "eu01" | "eu02";
|
|
317
|
+
export const CreateTelemetryRouterRequestRegionId = /*@__PURE__*/ S.String;
|
|
318
|
+
|
|
319
|
+
export interface CreateTelemetryRouterRequest {
|
|
320
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
321
|
+
projectId: string;
|
|
322
|
+
/** The STACKIT region name the resource is located in. */
|
|
323
|
+
regionId: CreateTelemetryRouterRequestRegionId | (string & {});
|
|
324
|
+
/** The description is a longer text chosen by the user to provide more context for the resource. */
|
|
325
|
+
description?: string;
|
|
326
|
+
/** The display name is a short name chosen by the user to identify the resource. */
|
|
327
|
+
displayName: string;
|
|
328
|
+
filter?: ConfigFilter;
|
|
329
|
+
}
|
|
330
|
+
export const CreateTelemetryRouterRequest = /*@__PURE__*/ S.suspend(() =>
|
|
331
|
+
S.Struct({
|
|
332
|
+
projectId: S.String.pipe(T.Label()),
|
|
333
|
+
regionId: CreateTelemetryRouterRequestRegionId.pipe(T.Label()),
|
|
334
|
+
description: S.optional(S.String),
|
|
335
|
+
displayName: S.String,
|
|
336
|
+
filter: S.optional(ConfigFilter),
|
|
337
|
+
}).pipe(
|
|
338
|
+
T.Http({
|
|
339
|
+
method: "POST",
|
|
340
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers",
|
|
341
|
+
code: 200,
|
|
342
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
343
|
+
}),
|
|
344
|
+
),
|
|
345
|
+
).annotate({
|
|
346
|
+
identifier: "CreateTelemetryRouterRequest",
|
|
347
|
+
}) as any as S.Schema<CreateTelemetryRouterRequest>;
|
|
348
|
+
|
|
349
|
+
/** The current status of the resource. */
|
|
350
|
+
export type TelemetryRouterResponseStatus =
|
|
351
|
+
| "reconciling"
|
|
352
|
+
| "active"
|
|
353
|
+
| "deleting";
|
|
354
|
+
export const TelemetryRouterResponseStatus = /*@__PURE__*/ S.String;
|
|
355
|
+
|
|
356
|
+
export interface TelemetryRouterResponse {
|
|
357
|
+
/** The point in time the resource was created. */
|
|
358
|
+
creationTime: string;
|
|
359
|
+
/** The description is a longer text chosen by the user to provide more context for the resource. */
|
|
360
|
+
description?: string;
|
|
361
|
+
/** The display name is a short name chosen by the user to identify the resource. */
|
|
362
|
+
displayName: string;
|
|
363
|
+
filter?: ConfigFilter;
|
|
364
|
+
/** A auto generated unique id which identifies the resource. */
|
|
365
|
+
id: string;
|
|
366
|
+
/** The current status of the resource. */
|
|
367
|
+
status: TelemetryRouterResponseStatus;
|
|
368
|
+
/** The URI for reaching the resource. */
|
|
369
|
+
uri: string;
|
|
370
|
+
}
|
|
371
|
+
export const TelemetryRouterResponse = /*@__PURE__*/ S.suspend(() =>
|
|
372
|
+
S.Struct({
|
|
373
|
+
creationTime: S.String,
|
|
374
|
+
description: S.optional(S.String),
|
|
375
|
+
displayName: S.String,
|
|
376
|
+
filter: S.optional(ConfigFilter),
|
|
377
|
+
id: S.String,
|
|
378
|
+
status: TelemetryRouterResponseStatus,
|
|
379
|
+
uri: S.String,
|
|
380
|
+
}),
|
|
381
|
+
).annotate({
|
|
382
|
+
identifier: "TelemetryRouterResponse",
|
|
383
|
+
}) as any as S.Schema<TelemetryRouterResponse>;
|
|
384
|
+
|
|
385
|
+
export type DeleteAccessTokenRequestRegionId = "eu01" | "eu02";
|
|
386
|
+
export const DeleteAccessTokenRequestRegionId = /*@__PURE__*/ S.String;
|
|
387
|
+
|
|
388
|
+
export interface DeleteAccessTokenRequest {
|
|
389
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
390
|
+
projectId: string;
|
|
391
|
+
/** The STACKIT region name the resource is located in. */
|
|
392
|
+
regionId: DeleteAccessTokenRequestRegionId | (string & {});
|
|
393
|
+
/** The Telemetry Router UUID. */
|
|
394
|
+
telemetryRouterId: string;
|
|
395
|
+
/** The Access Token UUID. */
|
|
396
|
+
accessTokenId: string;
|
|
397
|
+
}
|
|
398
|
+
export const DeleteAccessTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
399
|
+
S.Struct({
|
|
400
|
+
projectId: S.String.pipe(T.Label()),
|
|
401
|
+
regionId: DeleteAccessTokenRequestRegionId.pipe(T.Label()),
|
|
402
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
403
|
+
accessTokenId: S.String.pipe(T.Label()),
|
|
404
|
+
}).pipe(
|
|
405
|
+
T.Http({
|
|
406
|
+
method: "DELETE",
|
|
407
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/access-tokens/{accessTokenId}",
|
|
408
|
+
code: 200,
|
|
409
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
410
|
+
}),
|
|
411
|
+
),
|
|
412
|
+
).annotate({
|
|
413
|
+
identifier: "DeleteAccessTokenRequest",
|
|
414
|
+
}) as any as S.Schema<DeleteAccessTokenRequest>;
|
|
415
|
+
|
|
416
|
+
export interface DeleteAccessTokenResponse {}
|
|
417
|
+
export const DeleteAccessTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
418
|
+
S.Struct({}),
|
|
419
|
+
).annotate({
|
|
420
|
+
identifier: "DeleteAccessTokenResponse",
|
|
421
|
+
}) as any as S.Schema<DeleteAccessTokenResponse>;
|
|
422
|
+
|
|
423
|
+
export type DeleteDestinationRequestRegionId = "eu01" | "eu02";
|
|
424
|
+
export const DeleteDestinationRequestRegionId = /*@__PURE__*/ S.String;
|
|
425
|
+
|
|
426
|
+
export interface DeleteDestinationRequest {
|
|
427
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
428
|
+
projectId: string;
|
|
429
|
+
/** The STACKIT region name the resource is located in. */
|
|
430
|
+
regionId: DeleteDestinationRequestRegionId | (string & {});
|
|
431
|
+
/** The Telemetry Router UUID. */
|
|
432
|
+
telemetryRouterId: string;
|
|
433
|
+
/** The Destination UUID. */
|
|
434
|
+
destinationId: string;
|
|
435
|
+
}
|
|
436
|
+
export const DeleteDestinationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
437
|
+
S.Struct({
|
|
438
|
+
projectId: S.String.pipe(T.Label()),
|
|
439
|
+
regionId: DeleteDestinationRequestRegionId.pipe(T.Label()),
|
|
440
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
441
|
+
destinationId: S.String.pipe(T.Label()),
|
|
442
|
+
}).pipe(
|
|
443
|
+
T.Http({
|
|
444
|
+
method: "DELETE",
|
|
445
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/destinations/{destinationId}",
|
|
446
|
+
code: 200,
|
|
447
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
448
|
+
}),
|
|
449
|
+
),
|
|
450
|
+
).annotate({
|
|
451
|
+
identifier: "DeleteDestinationRequest",
|
|
452
|
+
}) as any as S.Schema<DeleteDestinationRequest>;
|
|
453
|
+
|
|
454
|
+
export interface DeleteDestinationResponse {}
|
|
455
|
+
export const DeleteDestinationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
456
|
+
S.Struct({}),
|
|
457
|
+
).annotate({
|
|
458
|
+
identifier: "DeleteDestinationResponse",
|
|
459
|
+
}) as any as S.Schema<DeleteDestinationResponse>;
|
|
460
|
+
|
|
461
|
+
export type DeleteTelemetryRouterRequestRegionId = "eu01" | "eu02";
|
|
462
|
+
export const DeleteTelemetryRouterRequestRegionId = /*@__PURE__*/ S.String;
|
|
463
|
+
|
|
464
|
+
export interface DeleteTelemetryRouterRequest {
|
|
465
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
466
|
+
projectId: string;
|
|
467
|
+
/** The STACKIT region name the resource is located in. */
|
|
468
|
+
regionId: DeleteTelemetryRouterRequestRegionId | (string & {});
|
|
469
|
+
/** The Telemetry Router UUID. */
|
|
470
|
+
telemetryRouterId: string;
|
|
471
|
+
/** If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist. */
|
|
472
|
+
force?: boolean;
|
|
473
|
+
}
|
|
474
|
+
export const DeleteTelemetryRouterRequest = /*@__PURE__*/ S.suspend(() =>
|
|
475
|
+
S.Struct({
|
|
476
|
+
projectId: S.String.pipe(T.Label()),
|
|
477
|
+
regionId: DeleteTelemetryRouterRequestRegionId.pipe(T.Label()),
|
|
478
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
479
|
+
force: S.optional(S.Boolean.pipe(T.Query())),
|
|
480
|
+
}).pipe(
|
|
481
|
+
T.Http({
|
|
482
|
+
method: "DELETE",
|
|
483
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}",
|
|
484
|
+
code: 200,
|
|
485
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
486
|
+
}),
|
|
487
|
+
),
|
|
488
|
+
).annotate({
|
|
489
|
+
identifier: "DeleteTelemetryRouterRequest",
|
|
490
|
+
}) as any as S.Schema<DeleteTelemetryRouterRequest>;
|
|
491
|
+
|
|
492
|
+
export interface DeleteTelemetryRouterResponse {}
|
|
493
|
+
export const DeleteTelemetryRouterResponse = /*@__PURE__*/ S.suspend(() =>
|
|
494
|
+
S.Struct({}),
|
|
495
|
+
).annotate({
|
|
496
|
+
identifier: "DeleteTelemetryRouterResponse",
|
|
497
|
+
}) as any as S.Schema<DeleteTelemetryRouterResponse>;
|
|
498
|
+
|
|
499
|
+
export type GetAccessTokenRequestRegionId = "eu01" | "eu02";
|
|
500
|
+
export const GetAccessTokenRequestRegionId = /*@__PURE__*/ S.String;
|
|
501
|
+
|
|
502
|
+
export interface GetAccessTokenRequest {
|
|
503
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
504
|
+
projectId: string;
|
|
505
|
+
/** The STACKIT region name the resource is located in. */
|
|
506
|
+
regionId: GetAccessTokenRequestRegionId | (string & {});
|
|
507
|
+
/** The Telemetry Router UUID. */
|
|
508
|
+
telemetryRouterId: string;
|
|
509
|
+
/** The Access Token UUID. */
|
|
510
|
+
accessTokenId: string;
|
|
511
|
+
}
|
|
512
|
+
export const GetAccessTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
513
|
+
S.Struct({
|
|
514
|
+
projectId: S.String.pipe(T.Label()),
|
|
515
|
+
regionId: GetAccessTokenRequestRegionId.pipe(T.Label()),
|
|
516
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
517
|
+
accessTokenId: S.String.pipe(T.Label()),
|
|
518
|
+
}).pipe(
|
|
519
|
+
T.Http({
|
|
520
|
+
method: "GET",
|
|
521
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/access-tokens/{accessTokenId}",
|
|
522
|
+
code: 200,
|
|
523
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
524
|
+
}),
|
|
525
|
+
),
|
|
526
|
+
).annotate({
|
|
527
|
+
identifier: "GetAccessTokenRequest",
|
|
528
|
+
}) as any as S.Schema<GetAccessTokenRequest>;
|
|
529
|
+
|
|
530
|
+
export type GetAccessTokenResponseStatus = "active" | "expired" | "deleting";
|
|
531
|
+
export const GetAccessTokenResponseStatus = /*@__PURE__*/ S.String;
|
|
532
|
+
|
|
533
|
+
export interface GetAccessTokenResponse2 {
|
|
534
|
+
/** The user ID of the creator of the access token. */
|
|
535
|
+
creatorId: string;
|
|
536
|
+
/** The description of the access token. */
|
|
537
|
+
description?: string;
|
|
538
|
+
/** The selected display name of the access token. */
|
|
539
|
+
displayName: string;
|
|
540
|
+
/** The date and time until the access token is valid to (inclusively). */
|
|
541
|
+
expirationTime?: string | null;
|
|
542
|
+
/** An auto generated unique id which identifies the access token. */
|
|
543
|
+
id: string;
|
|
544
|
+
status: GetAccessTokenResponseStatus;
|
|
545
|
+
}
|
|
546
|
+
export const GetAccessTokenResponse2 = /*@__PURE__*/ S.suspend(() =>
|
|
547
|
+
S.Struct({
|
|
548
|
+
creatorId: S.String,
|
|
549
|
+
description: S.optional(S.String),
|
|
550
|
+
displayName: S.String,
|
|
551
|
+
expirationTime: S.optional(S.NullOr(S.String)),
|
|
552
|
+
id: S.String,
|
|
553
|
+
status: GetAccessTokenResponseStatus,
|
|
554
|
+
}),
|
|
555
|
+
).annotate({
|
|
556
|
+
identifier: "GetAccessTokenResponse2",
|
|
557
|
+
}) as any as S.Schema<GetAccessTokenResponse2>;
|
|
558
|
+
|
|
559
|
+
export type GetDestinationRequestRegionId = "eu01" | "eu02";
|
|
560
|
+
export const GetDestinationRequestRegionId = /*@__PURE__*/ S.String;
|
|
561
|
+
|
|
562
|
+
export interface GetDestinationRequest {
|
|
563
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
564
|
+
projectId: string;
|
|
565
|
+
/** The STACKIT region name the resource is located in. */
|
|
566
|
+
regionId: GetDestinationRequestRegionId | (string & {});
|
|
567
|
+
/** The Telemetry Router UUID. */
|
|
568
|
+
telemetryRouterId: string;
|
|
569
|
+
/** The Destination UUID. */
|
|
570
|
+
destinationId: string;
|
|
571
|
+
}
|
|
572
|
+
export const GetDestinationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
573
|
+
S.Struct({
|
|
574
|
+
projectId: S.String.pipe(T.Label()),
|
|
575
|
+
regionId: GetDestinationRequestRegionId.pipe(T.Label()),
|
|
576
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
577
|
+
destinationId: S.String.pipe(T.Label()),
|
|
578
|
+
}).pipe(
|
|
579
|
+
T.Http({
|
|
580
|
+
method: "GET",
|
|
581
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/destinations/{destinationId}",
|
|
582
|
+
code: 200,
|
|
583
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
584
|
+
}),
|
|
585
|
+
),
|
|
586
|
+
).annotate({
|
|
587
|
+
identifier: "GetDestinationRequest",
|
|
588
|
+
}) as any as S.Schema<GetDestinationRequest>;
|
|
589
|
+
|
|
590
|
+
export type GetTelemetryRouterRequestRegionId = "eu01" | "eu02";
|
|
591
|
+
export const GetTelemetryRouterRequestRegionId = /*@__PURE__*/ S.String;
|
|
592
|
+
|
|
593
|
+
export interface GetTelemetryRouterRequest {
|
|
594
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
595
|
+
projectId: string;
|
|
596
|
+
/** The STACKIT region name the resource is located in. */
|
|
597
|
+
regionId: GetTelemetryRouterRequestRegionId | (string & {});
|
|
598
|
+
/** The Telemetry Router UUID. */
|
|
599
|
+
telemetryRouterId: string;
|
|
600
|
+
}
|
|
601
|
+
export const GetTelemetryRouterRequest = /*@__PURE__*/ S.suspend(() =>
|
|
602
|
+
S.Struct({
|
|
603
|
+
projectId: S.String.pipe(T.Label()),
|
|
604
|
+
regionId: GetTelemetryRouterRequestRegionId.pipe(T.Label()),
|
|
605
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
606
|
+
}).pipe(
|
|
607
|
+
T.Http({
|
|
608
|
+
method: "GET",
|
|
609
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}",
|
|
610
|
+
code: 200,
|
|
611
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
612
|
+
}),
|
|
613
|
+
),
|
|
614
|
+
).annotate({
|
|
615
|
+
identifier: "GetTelemetryRouterRequest",
|
|
616
|
+
}) as any as S.Schema<GetTelemetryRouterRequest>;
|
|
617
|
+
|
|
618
|
+
export type ListAccessTokensRequestRegionId = "eu01" | "eu02";
|
|
619
|
+
export const ListAccessTokensRequestRegionId = /*@__PURE__*/ S.String;
|
|
620
|
+
|
|
621
|
+
export interface ListAccessTokensRequest {
|
|
622
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
623
|
+
projectId: string;
|
|
624
|
+
/** The STACKIT region name the resource is located in. */
|
|
625
|
+
regionId: ListAccessTokensRequestRegionId | (string & {});
|
|
626
|
+
/** The Telemetry Router UUID. */
|
|
627
|
+
telemetryRouterId: string;
|
|
628
|
+
/** A token to retrieve the next page of results. */
|
|
629
|
+
pageToken?: string;
|
|
630
|
+
/** Maximum number of items to return */
|
|
631
|
+
pageSize?: number;
|
|
632
|
+
}
|
|
633
|
+
export const ListAccessTokensRequest = /*@__PURE__*/ S.suspend(() =>
|
|
634
|
+
S.Struct({
|
|
635
|
+
projectId: S.String.pipe(T.Label()),
|
|
636
|
+
regionId: ListAccessTokensRequestRegionId.pipe(T.Label()),
|
|
637
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
638
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
639
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
640
|
+
}).pipe(
|
|
641
|
+
T.Http({
|
|
642
|
+
method: "GET",
|
|
643
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/access-tokens",
|
|
644
|
+
code: 200,
|
|
645
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
646
|
+
}),
|
|
647
|
+
),
|
|
648
|
+
).annotate({
|
|
649
|
+
identifier: "ListAccessTokensRequest",
|
|
650
|
+
}) as any as S.Schema<ListAccessTokensRequest>;
|
|
651
|
+
|
|
652
|
+
export type AccessTokenBaseResponseStatus = "active" | "expired" | "deleting";
|
|
653
|
+
export const AccessTokenBaseResponseStatus = /*@__PURE__*/ S.String;
|
|
654
|
+
|
|
655
|
+
export interface AccessTokenBaseResponse {
|
|
656
|
+
/** The user ID of the creator of the access token. */
|
|
657
|
+
creatorId: string;
|
|
658
|
+
/** The description of the access token. */
|
|
659
|
+
description?: string;
|
|
660
|
+
/** The selected display name of the access token. */
|
|
661
|
+
displayName: string;
|
|
662
|
+
/** The date and time until the access token is valid to (inclusively). */
|
|
663
|
+
expirationTime?: string | null;
|
|
664
|
+
/** An auto generated unique id which identifies the access token. */
|
|
665
|
+
id: string;
|
|
666
|
+
status: AccessTokenBaseResponseStatus;
|
|
667
|
+
}
|
|
668
|
+
export const AccessTokenBaseResponse = /*@__PURE__*/ S.suspend(() =>
|
|
669
|
+
S.Struct({
|
|
670
|
+
creatorId: S.String,
|
|
671
|
+
description: S.optional(S.String),
|
|
672
|
+
displayName: S.String,
|
|
673
|
+
expirationTime: S.optional(S.NullOr(S.String)),
|
|
674
|
+
id: S.String,
|
|
675
|
+
status: AccessTokenBaseResponseStatus,
|
|
676
|
+
}),
|
|
677
|
+
).annotate({
|
|
678
|
+
identifier: "AccessTokenBaseResponse",
|
|
679
|
+
}) as any as S.Schema<AccessTokenBaseResponse>;
|
|
680
|
+
|
|
681
|
+
export type ListAccessTokensResponseAccessTokensList =
|
|
682
|
+
Array<AccessTokenBaseResponse>;
|
|
683
|
+
export const ListAccessTokensResponseAccessTokensList = /*@__PURE__*/ S.Array(
|
|
684
|
+
AccessTokenBaseResponse,
|
|
685
|
+
) as any as S.Schema<ListAccessTokensResponseAccessTokensList>;
|
|
686
|
+
|
|
687
|
+
export interface ListAccessTokensResponse {
|
|
688
|
+
accessTokens: ListAccessTokensResponseAccessTokensList;
|
|
689
|
+
/** A token to retrieve the next page of results. */
|
|
690
|
+
nextPageToken?: string;
|
|
691
|
+
}
|
|
692
|
+
export const ListAccessTokensResponse = /*@__PURE__*/ S.suspend(() =>
|
|
693
|
+
S.Struct({
|
|
694
|
+
accessTokens: ListAccessTokensResponseAccessTokensList,
|
|
695
|
+
nextPageToken: S.optional(S.String),
|
|
696
|
+
}),
|
|
697
|
+
).annotate({
|
|
698
|
+
identifier: "ListAccessTokensResponse",
|
|
699
|
+
}) as any as S.Schema<ListAccessTokensResponse>;
|
|
700
|
+
|
|
701
|
+
export type ListDestinationsRequestRegionId = "eu01" | "eu02";
|
|
702
|
+
export const ListDestinationsRequestRegionId = /*@__PURE__*/ S.String;
|
|
703
|
+
|
|
704
|
+
export interface ListDestinationsRequest {
|
|
705
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
706
|
+
projectId: string;
|
|
707
|
+
/** The STACKIT region name the resource is located in. */
|
|
708
|
+
regionId: ListDestinationsRequestRegionId | (string & {});
|
|
709
|
+
/** The Telemetry Router UUID. */
|
|
710
|
+
telemetryRouterId: string;
|
|
711
|
+
/** A token to retrieve the next page of results. */
|
|
712
|
+
pageToken?: string;
|
|
713
|
+
/** Maximum number of items to return */
|
|
714
|
+
pageSize?: number;
|
|
715
|
+
}
|
|
716
|
+
export const ListDestinationsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
717
|
+
S.Struct({
|
|
718
|
+
projectId: S.String.pipe(T.Label()),
|
|
719
|
+
regionId: ListDestinationsRequestRegionId.pipe(T.Label()),
|
|
720
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
721
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
722
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
723
|
+
}).pipe(
|
|
724
|
+
T.Http({
|
|
725
|
+
method: "GET",
|
|
726
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/destinations",
|
|
727
|
+
code: 200,
|
|
728
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
729
|
+
}),
|
|
730
|
+
),
|
|
731
|
+
).annotate({
|
|
732
|
+
identifier: "ListDestinationsRequest",
|
|
733
|
+
}) as any as S.Schema<ListDestinationsRequest>;
|
|
734
|
+
|
|
735
|
+
export type ListDestinationsResponseDestinationsList =
|
|
736
|
+
Array<DestinationResponse>;
|
|
737
|
+
export const ListDestinationsResponseDestinationsList = /*@__PURE__*/ S.Array(
|
|
738
|
+
DestinationResponse,
|
|
739
|
+
) as any as S.Schema<ListDestinationsResponseDestinationsList>;
|
|
740
|
+
|
|
741
|
+
export interface ListDestinationsResponse {
|
|
742
|
+
destinations: ListDestinationsResponseDestinationsList;
|
|
743
|
+
/** A token to retrieve the next page of results. */
|
|
744
|
+
nextPageToken?: string;
|
|
745
|
+
}
|
|
746
|
+
export const ListDestinationsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
747
|
+
S.Struct({
|
|
748
|
+
destinations: ListDestinationsResponseDestinationsList,
|
|
749
|
+
nextPageToken: S.optional(S.String),
|
|
750
|
+
}),
|
|
751
|
+
).annotate({
|
|
752
|
+
identifier: "ListDestinationsResponse",
|
|
753
|
+
}) as any as S.Schema<ListDestinationsResponse>;
|
|
754
|
+
|
|
755
|
+
export type ListTelemetryRoutersRequestRegionId = "eu01" | "eu02";
|
|
756
|
+
export const ListTelemetryRoutersRequestRegionId = /*@__PURE__*/ S.String;
|
|
757
|
+
|
|
758
|
+
export interface ListTelemetryRoutersRequest {
|
|
759
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
760
|
+
projectId: string;
|
|
761
|
+
/** The STACKIT region name the resource is located in. */
|
|
762
|
+
regionId: ListTelemetryRoutersRequestRegionId | (string & {});
|
|
763
|
+
/** A token to retrieve the next page of results. */
|
|
764
|
+
pageToken?: string;
|
|
765
|
+
/** Maximum number of items to return */
|
|
766
|
+
pageSize?: number;
|
|
767
|
+
}
|
|
768
|
+
export const ListTelemetryRoutersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
769
|
+
S.Struct({
|
|
770
|
+
projectId: S.String.pipe(T.Label()),
|
|
771
|
+
regionId: ListTelemetryRoutersRequestRegionId.pipe(T.Label()),
|
|
772
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
773
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
774
|
+
}).pipe(
|
|
775
|
+
T.Http({
|
|
776
|
+
method: "GET",
|
|
777
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers",
|
|
778
|
+
code: 200,
|
|
779
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
780
|
+
}),
|
|
781
|
+
),
|
|
782
|
+
).annotate({
|
|
783
|
+
identifier: "ListTelemetryRoutersRequest",
|
|
784
|
+
}) as any as S.Schema<ListTelemetryRoutersRequest>;
|
|
785
|
+
|
|
786
|
+
export type ListTelemetryRoutersResponseTelemetryRoutersList =
|
|
787
|
+
Array<TelemetryRouterResponse>;
|
|
788
|
+
export const ListTelemetryRoutersResponseTelemetryRoutersList =
|
|
789
|
+
/*@__PURE__*/ S.Array(
|
|
790
|
+
TelemetryRouterResponse,
|
|
791
|
+
) as any as S.Schema<ListTelemetryRoutersResponseTelemetryRoutersList>;
|
|
792
|
+
|
|
793
|
+
export interface ListTelemetryRoutersResponse {
|
|
794
|
+
/** A token to retrieve the next page of results. */
|
|
795
|
+
nextPageToken?: string;
|
|
796
|
+
telemetryRouters: ListTelemetryRoutersResponseTelemetryRoutersList;
|
|
797
|
+
}
|
|
798
|
+
export const ListTelemetryRoutersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
799
|
+
S.Struct({
|
|
800
|
+
nextPageToken: S.optional(S.String),
|
|
801
|
+
telemetryRouters: ListTelemetryRoutersResponseTelemetryRoutersList,
|
|
802
|
+
}),
|
|
803
|
+
).annotate({
|
|
804
|
+
identifier: "ListTelemetryRoutersResponse",
|
|
805
|
+
}) as any as S.Schema<ListTelemetryRoutersResponse>;
|
|
806
|
+
|
|
807
|
+
export type UpdateAccessTokenRequestRegionId = "eu01" | "eu02";
|
|
808
|
+
export const UpdateAccessTokenRequestRegionId = /*@__PURE__*/ S.String;
|
|
809
|
+
|
|
810
|
+
export interface UpdateAccessTokenRequest {
|
|
811
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
812
|
+
projectId: string;
|
|
813
|
+
/** The STACKIT region name the resource is located in. */
|
|
814
|
+
regionId: UpdateAccessTokenRequestRegionId | (string & {});
|
|
815
|
+
/** The Telemetry Router UUID. */
|
|
816
|
+
telemetryRouterId: string;
|
|
817
|
+
/** The Access Token UUID. */
|
|
818
|
+
accessTokenId: string;
|
|
819
|
+
description?: string | null;
|
|
820
|
+
displayName?: string | null;
|
|
821
|
+
}
|
|
822
|
+
export const UpdateAccessTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
823
|
+
S.Struct({
|
|
824
|
+
projectId: S.String.pipe(T.Label()),
|
|
825
|
+
regionId: UpdateAccessTokenRequestRegionId.pipe(T.Label()),
|
|
826
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
827
|
+
accessTokenId: S.String.pipe(T.Label()),
|
|
828
|
+
description: S.optional(S.NullOr(S.String)),
|
|
829
|
+
displayName: S.optional(S.NullOr(S.String)),
|
|
830
|
+
}).pipe(
|
|
831
|
+
T.Http({
|
|
832
|
+
method: "PUT",
|
|
833
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/access-tokens/{accessTokenId}",
|
|
834
|
+
code: 200,
|
|
835
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
836
|
+
}),
|
|
837
|
+
),
|
|
838
|
+
).annotate({
|
|
839
|
+
identifier: "UpdateAccessTokenRequest",
|
|
840
|
+
}) as any as S.Schema<UpdateAccessTokenRequest>;
|
|
841
|
+
|
|
842
|
+
export type UpdateAccessTokenResponseStatus = "active" | "expired" | "deleting";
|
|
843
|
+
export const UpdateAccessTokenResponseStatus = /*@__PURE__*/ S.String;
|
|
844
|
+
|
|
845
|
+
export interface UpdateAccessTokenResponse {
|
|
846
|
+
/** The user ID of the creator of the access token. */
|
|
847
|
+
creatorId: string;
|
|
848
|
+
/** The description of the access token. */
|
|
849
|
+
description?: string;
|
|
850
|
+
/** The selected display name of the access token. */
|
|
851
|
+
displayName: string;
|
|
852
|
+
/** The date and time until the access token is valid to (inclusively). */
|
|
853
|
+
expirationTime?: string | null;
|
|
854
|
+
/** An auto generated unique id which identifies the access token. */
|
|
855
|
+
id: string;
|
|
856
|
+
status: UpdateAccessTokenResponseStatus;
|
|
857
|
+
}
|
|
858
|
+
export const UpdateAccessTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
859
|
+
S.Struct({
|
|
860
|
+
creatorId: S.String,
|
|
861
|
+
description: S.optional(S.String),
|
|
862
|
+
displayName: S.String,
|
|
863
|
+
expirationTime: S.optional(S.NullOr(S.String)),
|
|
864
|
+
id: S.String,
|
|
865
|
+
status: UpdateAccessTokenResponseStatus,
|
|
866
|
+
}),
|
|
867
|
+
).annotate({
|
|
868
|
+
identifier: "UpdateAccessTokenResponse",
|
|
869
|
+
}) as any as S.Schema<UpdateAccessTokenResponse>;
|
|
870
|
+
|
|
871
|
+
export type UpdateDestinationRequestRegionId = "eu01" | "eu02";
|
|
872
|
+
export const UpdateDestinationRequestRegionId = /*@__PURE__*/ S.String;
|
|
873
|
+
|
|
874
|
+
export interface UpdateDestinationRequest {
|
|
875
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
876
|
+
projectId: string;
|
|
877
|
+
/** The STACKIT region name the resource is located in. */
|
|
878
|
+
regionId: UpdateDestinationRequestRegionId | (string & {});
|
|
879
|
+
/** The Telemetry Router UUID. */
|
|
880
|
+
telemetryRouterId: string;
|
|
881
|
+
/** The Destination UUID. */
|
|
882
|
+
destinationId: string;
|
|
883
|
+
config?: DestinationConfig;
|
|
884
|
+
/** The description is a longer text chosen by the user to provide more context for the resource. */
|
|
885
|
+
description?: string;
|
|
886
|
+
/** The display name is a short name chosen by the user to identify the resource. */
|
|
887
|
+
displayName?: string;
|
|
888
|
+
}
|
|
889
|
+
export const UpdateDestinationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
890
|
+
S.Struct({
|
|
891
|
+
projectId: S.String.pipe(T.Label()),
|
|
892
|
+
regionId: UpdateDestinationRequestRegionId.pipe(T.Label()),
|
|
893
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
894
|
+
destinationId: S.String.pipe(T.Label()),
|
|
895
|
+
config: S.optional(DestinationConfig),
|
|
896
|
+
description: S.optional(S.String),
|
|
897
|
+
displayName: S.optional(S.String),
|
|
898
|
+
}).pipe(
|
|
899
|
+
T.Http({
|
|
900
|
+
method: "PUT",
|
|
901
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/destinations/{destinationId}",
|
|
902
|
+
code: 200,
|
|
903
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
904
|
+
}),
|
|
905
|
+
),
|
|
906
|
+
).annotate({
|
|
907
|
+
identifier: "UpdateDestinationRequest",
|
|
908
|
+
}) as any as S.Schema<UpdateDestinationRequest>;
|
|
909
|
+
|
|
910
|
+
export type UpdateTelemetryRouterRequestRegionId = "eu01" | "eu02";
|
|
911
|
+
export const UpdateTelemetryRouterRequestRegionId = /*@__PURE__*/ S.String;
|
|
912
|
+
|
|
913
|
+
export interface UpdateTelemetryRouterRequest {
|
|
914
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
915
|
+
projectId: string;
|
|
916
|
+
/** The STACKIT region name the resource is located in. */
|
|
917
|
+
regionId: UpdateTelemetryRouterRequestRegionId | (string & {});
|
|
918
|
+
/** The Telemetry Router UUID. */
|
|
919
|
+
telemetryRouterId: string;
|
|
920
|
+
/** The description is a longer text chosen by the user to provide more context for the resource. */
|
|
921
|
+
description?: string;
|
|
922
|
+
/** The display name is a short name chosen by the user to identify the resource. */
|
|
923
|
+
displayName?: string;
|
|
924
|
+
filter?: ConfigFilter;
|
|
925
|
+
}
|
|
926
|
+
export const UpdateTelemetryRouterRequest = /*@__PURE__*/ S.suspend(() =>
|
|
927
|
+
S.Struct({
|
|
928
|
+
projectId: S.String.pipe(T.Label()),
|
|
929
|
+
regionId: UpdateTelemetryRouterRequestRegionId.pipe(T.Label()),
|
|
930
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
931
|
+
description: S.optional(S.String),
|
|
932
|
+
displayName: S.optional(S.String),
|
|
933
|
+
filter: S.optional(ConfigFilter),
|
|
934
|
+
}).pipe(
|
|
935
|
+
T.Http({
|
|
936
|
+
method: "PUT",
|
|
937
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}",
|
|
938
|
+
code: 200,
|
|
939
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
940
|
+
}),
|
|
941
|
+
),
|
|
942
|
+
).annotate({
|
|
943
|
+
identifier: "UpdateTelemetryRouterRequest",
|
|
944
|
+
}) as any as S.Schema<UpdateTelemetryRouterRequest>;
|
|
945
|
+
|
|
946
|
+
export type CreateAccessTokenError =
|
|
947
|
+
| BadRequest
|
|
948
|
+
| NotFound
|
|
949
|
+
| Conflict
|
|
950
|
+
| StackitOpError;
|
|
951
|
+
/** Create a new access token for the given Telemetry Router. */
|
|
952
|
+
export const createAccessToken: API.OperationMethod<
|
|
953
|
+
CreateAccessTokenRequest,
|
|
954
|
+
CreateAccessTokenResponse,
|
|
955
|
+
CreateAccessTokenError,
|
|
956
|
+
StackitOpContext
|
|
957
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
958
|
+
input: CreateAccessTokenRequest,
|
|
959
|
+
output: CreateAccessTokenResponse,
|
|
960
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
961
|
+
protocol: StackitProtocol,
|
|
962
|
+
retry: Retry.Retry,
|
|
963
|
+
}));
|
|
964
|
+
|
|
965
|
+
export type CreateDestinationError = BadRequest | Conflict | StackitOpError;
|
|
966
|
+
/** Creates a new Destination within the project. */
|
|
967
|
+
export const createDestination: API.OperationMethod<
|
|
968
|
+
CreateDestinationRequest,
|
|
969
|
+
DestinationResponse,
|
|
970
|
+
CreateDestinationError,
|
|
971
|
+
StackitOpContext
|
|
972
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
973
|
+
input: CreateDestinationRequest,
|
|
974
|
+
output: DestinationResponse,
|
|
975
|
+
errors: [BadRequest, Conflict, UnknownStackitError],
|
|
976
|
+
protocol: StackitProtocol,
|
|
977
|
+
retry: Retry.Retry,
|
|
978
|
+
}));
|
|
979
|
+
|
|
980
|
+
export type CreateTelemetryRouterError = BadRequest | Conflict | StackitOpError;
|
|
981
|
+
/** Creates the new Telemetry Router within the project. */
|
|
982
|
+
export const createTelemetryRouter: API.OperationMethod<
|
|
983
|
+
CreateTelemetryRouterRequest,
|
|
984
|
+
TelemetryRouterResponse,
|
|
985
|
+
CreateTelemetryRouterError,
|
|
986
|
+
StackitOpContext
|
|
987
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
988
|
+
input: CreateTelemetryRouterRequest,
|
|
989
|
+
output: TelemetryRouterResponse,
|
|
990
|
+
errors: [BadRequest, Conflict, UnknownStackitError],
|
|
991
|
+
protocol: StackitProtocol,
|
|
992
|
+
retry: Retry.Retry,
|
|
993
|
+
}));
|
|
994
|
+
|
|
995
|
+
export type DeleteAccessTokenError =
|
|
996
|
+
| BadRequest
|
|
997
|
+
| NotFound
|
|
998
|
+
| Conflict
|
|
999
|
+
| StackitOpError;
|
|
1000
|
+
/** Delete an access token for the given Telemetry Router by its ID. */
|
|
1001
|
+
export const deleteAccessToken: API.OperationMethod<
|
|
1002
|
+
DeleteAccessTokenRequest,
|
|
1003
|
+
DeleteAccessTokenResponse,
|
|
1004
|
+
DeleteAccessTokenError,
|
|
1005
|
+
StackitOpContext
|
|
1006
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1007
|
+
input: DeleteAccessTokenRequest,
|
|
1008
|
+
output: DeleteAccessTokenResponse,
|
|
1009
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1010
|
+
protocol: StackitProtocol,
|
|
1011
|
+
retry: Retry.Retry,
|
|
1012
|
+
}));
|
|
1013
|
+
|
|
1014
|
+
export type DeleteDestinationError =
|
|
1015
|
+
| BadRequest
|
|
1016
|
+
| NotFound
|
|
1017
|
+
| Conflict
|
|
1018
|
+
| StackitOpError;
|
|
1019
|
+
/** Deletes the given Destination. */
|
|
1020
|
+
export const deleteDestination: API.OperationMethod<
|
|
1021
|
+
DeleteDestinationRequest,
|
|
1022
|
+
DeleteDestinationResponse,
|
|
1023
|
+
DeleteDestinationError,
|
|
1024
|
+
StackitOpContext
|
|
1025
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1026
|
+
input: DeleteDestinationRequest,
|
|
1027
|
+
output: DeleteDestinationResponse,
|
|
1028
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1029
|
+
protocol: StackitProtocol,
|
|
1030
|
+
retry: Retry.Retry,
|
|
1031
|
+
}));
|
|
1032
|
+
|
|
1033
|
+
export type DeleteTelemetryRouterError =
|
|
1034
|
+
| BadRequest
|
|
1035
|
+
| NotFound
|
|
1036
|
+
| Conflict
|
|
1037
|
+
| StackitOpError;
|
|
1038
|
+
/** Deletes the given Telemetry Router. */
|
|
1039
|
+
export const deleteTelemetryRouter: API.OperationMethod<
|
|
1040
|
+
DeleteTelemetryRouterRequest,
|
|
1041
|
+
DeleteTelemetryRouterResponse,
|
|
1042
|
+
DeleteTelemetryRouterError,
|
|
1043
|
+
StackitOpContext
|
|
1044
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1045
|
+
input: DeleteTelemetryRouterRequest,
|
|
1046
|
+
output: DeleteTelemetryRouterResponse,
|
|
1047
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1048
|
+
protocol: StackitProtocol,
|
|
1049
|
+
retry: Retry.Retry,
|
|
1050
|
+
}));
|
|
1051
|
+
|
|
1052
|
+
export type GetAccessTokenError =
|
|
1053
|
+
| BadRequest
|
|
1054
|
+
| NotFound
|
|
1055
|
+
| Conflict
|
|
1056
|
+
| StackitOpError;
|
|
1057
|
+
/** Get an access token for the given Telemetry Router by its ID. */
|
|
1058
|
+
export const getAccessToken: API.OperationMethod<
|
|
1059
|
+
GetAccessTokenRequest,
|
|
1060
|
+
GetAccessTokenResponse2,
|
|
1061
|
+
GetAccessTokenError,
|
|
1062
|
+
StackitOpContext
|
|
1063
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1064
|
+
input: GetAccessTokenRequest,
|
|
1065
|
+
output: GetAccessTokenResponse2,
|
|
1066
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1067
|
+
protocol: StackitProtocol,
|
|
1068
|
+
retry: Retry.Retry,
|
|
1069
|
+
}));
|
|
1070
|
+
|
|
1071
|
+
export type GetDestinationError = BadRequest | NotFound | StackitOpError;
|
|
1072
|
+
/** Returns the details for the given destination. */
|
|
1073
|
+
export const getDestination: API.OperationMethod<
|
|
1074
|
+
GetDestinationRequest,
|
|
1075
|
+
DestinationResponse,
|
|
1076
|
+
GetDestinationError,
|
|
1077
|
+
StackitOpContext
|
|
1078
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1079
|
+
input: GetDestinationRequest,
|
|
1080
|
+
output: DestinationResponse,
|
|
1081
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1082
|
+
protocol: StackitProtocol,
|
|
1083
|
+
retry: Retry.Retry,
|
|
1084
|
+
}));
|
|
1085
|
+
|
|
1086
|
+
export type GetTelemetryRouterError = BadRequest | Conflict | StackitOpError;
|
|
1087
|
+
/** Returns the details for the given Telemetry Router. */
|
|
1088
|
+
export const getTelemetryRouter: API.OperationMethod<
|
|
1089
|
+
GetTelemetryRouterRequest,
|
|
1090
|
+
TelemetryRouterResponse,
|
|
1091
|
+
GetTelemetryRouterError,
|
|
1092
|
+
StackitOpContext
|
|
1093
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1094
|
+
input: GetTelemetryRouterRequest,
|
|
1095
|
+
output: TelemetryRouterResponse,
|
|
1096
|
+
errors: [BadRequest, Conflict, UnknownStackitError],
|
|
1097
|
+
protocol: StackitProtocol,
|
|
1098
|
+
retry: Retry.Retry,
|
|
1099
|
+
}));
|
|
1100
|
+
|
|
1101
|
+
export type ListAccessTokensError =
|
|
1102
|
+
| BadRequest
|
|
1103
|
+
| NotFound
|
|
1104
|
+
| Conflict
|
|
1105
|
+
| StackitOpError;
|
|
1106
|
+
/** Get all access tokens for a telemetry router. */
|
|
1107
|
+
export const listAccessTokens: API.OperationMethod<
|
|
1108
|
+
ListAccessTokensRequest,
|
|
1109
|
+
ListAccessTokensResponse,
|
|
1110
|
+
ListAccessTokensError,
|
|
1111
|
+
StackitOpContext
|
|
1112
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1113
|
+
input: ListAccessTokensRequest,
|
|
1114
|
+
output: ListAccessTokensResponse,
|
|
1115
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1116
|
+
protocol: StackitProtocol,
|
|
1117
|
+
retry: Retry.Retry,
|
|
1118
|
+
}));
|
|
1119
|
+
|
|
1120
|
+
export type ListDestinationsError = BadRequest | StackitOpError;
|
|
1121
|
+
/** Returns a list of all destinations of a specific Telemetry Router within a project. */
|
|
1122
|
+
export const listDestinations: API.OperationMethod<
|
|
1123
|
+
ListDestinationsRequest,
|
|
1124
|
+
ListDestinationsResponse,
|
|
1125
|
+
ListDestinationsError,
|
|
1126
|
+
StackitOpContext
|
|
1127
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1128
|
+
input: ListDestinationsRequest,
|
|
1129
|
+
output: ListDestinationsResponse,
|
|
1130
|
+
errors: [BadRequest, UnknownStackitError],
|
|
1131
|
+
protocol: StackitProtocol,
|
|
1132
|
+
retry: Retry.Retry,
|
|
1133
|
+
}));
|
|
1134
|
+
|
|
1135
|
+
export type ListTelemetryRoutersError = BadRequest | StackitOpError;
|
|
1136
|
+
/** Returns a list of all Telemetry Routers within the project. */
|
|
1137
|
+
export const listTelemetryRouters: API.OperationMethod<
|
|
1138
|
+
ListTelemetryRoutersRequest,
|
|
1139
|
+
ListTelemetryRoutersResponse,
|
|
1140
|
+
ListTelemetryRoutersError,
|
|
1141
|
+
StackitOpContext
|
|
1142
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1143
|
+
input: ListTelemetryRoutersRequest,
|
|
1144
|
+
output: ListTelemetryRoutersResponse,
|
|
1145
|
+
errors: [BadRequest, UnknownStackitError],
|
|
1146
|
+
protocol: StackitProtocol,
|
|
1147
|
+
retry: Retry.Retry,
|
|
1148
|
+
}));
|
|
1149
|
+
|
|
1150
|
+
export type UpdateAccessTokenError =
|
|
1151
|
+
| BadRequest
|
|
1152
|
+
| NotFound
|
|
1153
|
+
| Conflict
|
|
1154
|
+
| StackitOpError;
|
|
1155
|
+
/** Update an existing access token for the given Telemetry Router by its ID. */
|
|
1156
|
+
export const updateAccessToken: API.OperationMethod<
|
|
1157
|
+
UpdateAccessTokenRequest,
|
|
1158
|
+
UpdateAccessTokenResponse,
|
|
1159
|
+
UpdateAccessTokenError,
|
|
1160
|
+
StackitOpContext
|
|
1161
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1162
|
+
input: UpdateAccessTokenRequest,
|
|
1163
|
+
output: UpdateAccessTokenResponse,
|
|
1164
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1165
|
+
protocol: StackitProtocol,
|
|
1166
|
+
retry: Retry.Retry,
|
|
1167
|
+
}));
|
|
1168
|
+
|
|
1169
|
+
export type UpdateDestinationError =
|
|
1170
|
+
| BadRequest
|
|
1171
|
+
| NotFound
|
|
1172
|
+
| Conflict
|
|
1173
|
+
| StackitOpError;
|
|
1174
|
+
/** Updates the given destination. */
|
|
1175
|
+
export const updateDestination: API.OperationMethod<
|
|
1176
|
+
UpdateDestinationRequest,
|
|
1177
|
+
DestinationResponse,
|
|
1178
|
+
UpdateDestinationError,
|
|
1179
|
+
StackitOpContext
|
|
1180
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1181
|
+
input: UpdateDestinationRequest,
|
|
1182
|
+
output: DestinationResponse,
|
|
1183
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1184
|
+
protocol: StackitProtocol,
|
|
1185
|
+
retry: Retry.Retry,
|
|
1186
|
+
}));
|
|
1187
|
+
|
|
1188
|
+
export type UpdateTelemetryRouterError =
|
|
1189
|
+
| BadRequest
|
|
1190
|
+
| NotFound
|
|
1191
|
+
| Conflict
|
|
1192
|
+
| StackitOpError;
|
|
1193
|
+
/** Updates the given Telemetry Router. */
|
|
1194
|
+
export const updateTelemetryRouter: API.OperationMethod<
|
|
1195
|
+
UpdateTelemetryRouterRequest,
|
|
1196
|
+
TelemetryRouterResponse,
|
|
1197
|
+
UpdateTelemetryRouterError,
|
|
1198
|
+
StackitOpContext
|
|
1199
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1200
|
+
input: UpdateTelemetryRouterRequest,
|
|
1201
|
+
output: TelemetryRouterResponse,
|
|
1202
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1203
|
+
protocol: StackitProtocol,
|
|
1204
|
+
retry: Retry.Retry,
|
|
1205
|
+
}));
|