@distilled.cloud/stackit 1.0.0-rc.15 → 1.0.0-rc.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +32 -28
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +13 -13
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +16 -16
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +22 -22
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +15 -15
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +31 -29
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +24 -23
- package/lib/retry.js.map +1 -1
- package/lib/services/alb.d.ts +10 -87
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +73 -502
- package/lib/services/alb_waf.d.ts +9 -82
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +84 -510
- package/lib/services/authorization.d.ts +5 -47
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +67 -314
- package/lib/services/automation.d.ts +7 -47
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +58 -353
- package/lib/services/cdn.d.ts +8 -220
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +81 -896
- package/lib/services/certificates.d.ts +8 -27
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +45 -171
- package/lib/services/cost.d.ts +10 -37
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +39 -169
- package/lib/services/dns.d.ts +9 -104
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +98 -714
- package/lib/services/dremio.d.ts +8 -50
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +56 -307
- package/lib/services/edge.d.ts +7 -40
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +66 -347
- package/lib/services/functions.d.ts +1 -48
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +64 -393
- package/lib/services/git.d.ts +8 -61
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +87 -510
- package/lib/services/iaas.d.ts +9 -337
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +409 -3532
- package/lib/services/intake.d.ts +8 -75
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +74 -465
- package/lib/services/kms.d.ts +9 -92
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +95 -650
- package/lib/services/lb_ip_lists.d.ts +9 -25
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +45 -146
- package/lib/services/load_balancer.d.ts +10 -81
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +76 -486
- package/lib/services/logme.d.ts +8 -69
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +82 -564
- package/lib/services/logs.d.ts +8 -64
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +84 -465
- package/lib/services/mariadb.d.ts +8 -65
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +84 -541
- package/lib/services/model_experiments.d.ts +9 -48
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +66 -325
- package/lib/services/model_serving.d.ts +7 -47
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +55 -277
- package/lib/services/mongodb_flex.d.ts +8 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +102 -793
- package/lib/services/object_storage.d.ts +12 -59
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +93 -528
- package/lib/services/observability.d.ts +8 -407
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +375 -3148
- package/lib/services/opensearch.d.ts +8 -71
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +85 -553
- package/lib/services/pim.d.ts +12 -108
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +81 -726
- package/lib/services/postgres_flex.d.ts +14 -136
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +114 -841
- package/lib/services/pubsub.d.ts +11 -73
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +92 -507
- package/lib/services/rabbitmq.d.ts +8 -76
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +88 -564
- package/lib/services/registry.d.ts +10 -28
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +49 -189
- package/lib/services/resource_manager.d.ts +9 -61
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +92 -462
- package/lib/services/run_command.d.ts +5 -28
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +38 -176
- package/lib/services/sca.d.ts +8 -79
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +63 -435
- package/lib/services/scf.d.ts +8 -64
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +99 -660
- package/lib/services/secrets_manager.d.ts +8 -61
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +99 -601
- package/lib/services/server_backup.d.ts +7 -50
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +70 -444
- package/lib/services/server_update.d.ts +7 -35
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +58 -342
- package/lib/services/service_account.d.ts +10 -68
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +75 -495
- package/lib/services/service_enablement.d.ts +7 -29
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +40 -147
- package/lib/services/sfs.d.ts +4 -96
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +117 -782
- package/lib/services/ske.d.ts +9 -108
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +67 -549
- package/lib/services/sqlserverflex.d.ts +11 -152
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +112 -925
- package/lib/services/stackit_marketplace.d.ts +9 -38
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +64 -369
- package/lib/services/telemetry_link.d.ts +8 -61
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +81 -522
- package/lib/services/telemetry_router.d.ts +8 -72
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +73 -474
- package/lib/services/ufw.d.ts +7 -42
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +55 -269
- package/lib/services/valkey.d.ts +8 -68
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +85 -557
- package/lib/services/vpn.d.ts +21 -186
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +105 -920
- package/lib/services/workflows.d.ts +15 -84
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +67 -497
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +10 -10
- package/package.json +13 -9
- package/src/credentials.ts +21 -18
- package/src/errors.ts +10 -14
- package/src/index.ts +2 -2
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +12 -9
- package/src/retry.ts +6 -4
- package/src/services/alb.ts +599 -655
- package/src/services/alb_waf.ts +597 -637
- package/src/services/authorization.ts +400 -383
- package/src/services/automation.ts +422 -405
- package/src/services/cdn.ts +817 -1375
- package/src/services/certificates.ts +209 -190
- package/src/services/cost.ts +100 -207
- package/src/services/dns.ts +793 -833
- package/src/services/dremio.ts +356 -349
- package/src/services/edge.ts +406 -366
- package/src/services/functions.ts +465 -463
- package/src/services/git.ts +602 -547
- package/src/services/iaas.ts +3931 -3821
- package/src/services/intake.ts +521 -549
- package/src/services/kms.ts +715 -692
- package/src/services/lb_ip_lists.ts +173 -152
- package/src/services/load_balancer.ts +576 -619
- package/src/services/logme.ts +696 -641
- package/src/services/logs.ts +510 -493
- package/src/services/mariadb.ts +671 -604
- package/src/services/model_experiments.ts +343 -356
- package/src/services/model_serving.ts +337 -328
- package/src/services/mongodb_flex.ts +955 -1007
- package/src/services/object_storage.ts +614 -557
- package/src/services/observability.ts +3469 -3866
- package/src/services/opensearch.ts +679 -628
- package/src/services/pim.ts +672 -909
- package/src/services/postgres_flex.ts +966 -986
- package/src/services/pubsub.ts +524 -546
- package/src/services/rabbitmq.ts +693 -654
- package/src/services/registry.ts +227 -194
- package/src/services/resource_manager.ts +520 -517
- package/src/services/run_command.ts +219 -211
- package/src/services/sca.ts +543 -570
- package/src/services/scf.ts +790 -716
- package/src/services/secrets_manager.ts +707 -622
- package/src/services/server_backup.ts +490 -475
- package/src/services/server_update.ts +353 -356
- package/src/services/service_account.ts +515 -553
- package/src/services/service_enablement.ts +162 -166
- package/src/services/sfs.ts +879 -958
- package/src/services/ske.ts +694 -769
- package/src/services/sqlserverflex.ts +1042 -1117
- package/src/services/stackit_marketplace.ts +377 -372
- package/src/services/telemetry_link.ts +530 -531
- package/src/services/telemetry_router.ts +509 -534
- package/src/services/ufw.ts +305 -307
- package/src/services/valkey.ts +684 -629
- package/src/services/vpn.ts +935 -1195
- package/src/services/workflows.ts +426 -586
- package/src/traits.ts +1 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -181
- package/lib/protocol.test.js.map +0 -1
- package/lib/services/alb.js.map +0 -1
- package/lib/services/alb_waf.js.map +0 -1
- package/lib/services/authorization.js.map +0 -1
- package/lib/services/automation.js.map +0 -1
- package/lib/services/cdn.js.map +0 -1
- package/lib/services/certificates.js.map +0 -1
- package/lib/services/cost.js.map +0 -1
- package/lib/services/dns.js.map +0 -1
- package/lib/services/dremio.js.map +0 -1
- package/lib/services/edge.js.map +0 -1
- package/lib/services/functions.js.map +0 -1
- package/lib/services/git.js.map +0 -1
- package/lib/services/iaas.js.map +0 -1
- package/lib/services/intake.js.map +0 -1
- package/lib/services/kms.js.map +0 -1
- package/lib/services/lb_ip_lists.js.map +0 -1
- package/lib/services/load_balancer.js.map +0 -1
- package/lib/services/logme.js.map +0 -1
- package/lib/services/logs.js.map +0 -1
- package/lib/services/mariadb.js.map +0 -1
- package/lib/services/model_experiments.js.map +0 -1
- package/lib/services/model_serving.js.map +0 -1
- package/lib/services/mongodb_flex.js.map +0 -1
- package/lib/services/object_storage.js.map +0 -1
- package/lib/services/observability.js.map +0 -1
- package/lib/services/opensearch.js.map +0 -1
- package/lib/services/pim.js.map +0 -1
- package/lib/services/postgres_flex.js.map +0 -1
- package/lib/services/pubsub.js.map +0 -1
- package/lib/services/rabbitmq.js.map +0 -1
- package/lib/services/registry.js.map +0 -1
- package/lib/services/resource_manager.js.map +0 -1
- package/lib/services/run_command.js.map +0 -1
- package/lib/services/sca.js.map +0 -1
- package/lib/services/scf.js.map +0 -1
- package/lib/services/secrets_manager.js.map +0 -1
- package/lib/services/server_backup.js.map +0 -1
- package/lib/services/server_update.js.map +0 -1
- package/lib/services/service_account.js.map +0 -1
- package/lib/services/service_enablement.js.map +0 -1
- package/lib/services/sfs.js.map +0 -1
- package/lib/services/ske.js.map +0 -1
- package/lib/services/sqlserverflex.js.map +0 -1
- package/lib/services/stackit_marketplace.js.map +0 -1
- package/lib/services/telemetry_link.js.map +0 -1
- package/lib/services/telemetry_router.js.map +0 -1
- package/lib/services/ufw.js.map +0 -1
- package/lib/services/valkey.js.map +0 -1
- package/lib/services/vpn.js.map +0 -1
- package/lib/services/workflows.js.map +0 -1
- package/src/protocol.test.ts +0 -304
|
@@ -1,336 +1,77 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
import * as C from "@distilled.cloud/core/category";
|
|
3
3
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
4
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
6
|
import { UnknownStackitError } from "../errors.js";
|
|
6
7
|
import { StackitProtocol } from "../protocol.js";
|
|
7
8
|
import * as Retry from "../retry.js";
|
|
8
9
|
import * as T from "../traits.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/*@__PURE__*/
|
|
23
|
-
|
|
24
|
-
message: S.String,
|
|
25
|
-
}).pipe(C.withAuthError), [{ status: 403 }]) {
|
|
26
|
-
}
|
|
27
|
-
export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
28
|
-
/*@__PURE__*/ S.TaggedError()("NotFound", {
|
|
29
|
-
code: S.Number,
|
|
30
|
-
message: S.String,
|
|
31
|
-
}).pipe(C.withBadRequestError), [{ status: 404 }]) {
|
|
32
|
-
}
|
|
33
|
-
export const CreateInstanceRequestRegionId = S.String;
|
|
34
|
-
export const Labels = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
35
|
-
export const CreateInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
36
|
-
projectId: S.String.pipe(T.Label()),
|
|
37
|
-
regionId: CreateInstanceRequestRegionId.pipe(T.Label()),
|
|
38
|
-
deletedExperimentRetention: S.optional(S.String),
|
|
39
|
-
description: S.optional(S.String),
|
|
40
|
-
labels: S.optional(Labels),
|
|
41
|
-
name: S.String,
|
|
42
|
-
}).pipe(T.Http({
|
|
43
|
-
method: "POST",
|
|
44
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/instances",
|
|
45
|
-
code: 200,
|
|
46
|
-
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
47
|
-
}))).annotate({ identifier: "CreateInstanceRequest" });
|
|
48
|
-
export const InstanceState = S.String;
|
|
49
|
-
export const Instance = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
50
|
-
bucketName: S.optional(S.String),
|
|
51
|
-
deletedExperimentRetention: S.optional(S.String),
|
|
52
|
-
description: S.optional(S.String),
|
|
53
|
-
errorMessage: S.optional(S.String),
|
|
54
|
-
id: S.String,
|
|
55
|
-
labels: S.optional(Labels),
|
|
56
|
-
name: S.String,
|
|
57
|
-
region: S.optional(S.String),
|
|
58
|
-
state: InstanceState,
|
|
59
|
-
url: S.String,
|
|
60
|
-
})).annotate({ identifier: "Instance" });
|
|
61
|
-
export const CreateInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
62
|
-
instance: Instance,
|
|
63
|
-
message: S.optional(S.String),
|
|
64
|
-
})).annotate({ identifier: "CreateInstanceResponse" });
|
|
65
|
-
export const CreateInstanceTokenRequestRegionId = S.String;
|
|
66
|
-
export const CreateInstanceTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
67
|
-
projectId: S.String.pipe(T.Label()),
|
|
68
|
-
regionId: CreateInstanceTokenRequestRegionId.pipe(T.Label()),
|
|
69
|
-
instanceId: S.String.pipe(T.Label()),
|
|
70
|
-
description: S.optional(S.String),
|
|
71
|
-
labels: S.optional(Labels),
|
|
72
|
-
name: S.String,
|
|
73
|
-
ttlDuration: S.optional(S.String),
|
|
74
|
-
}).pipe(T.Http({
|
|
75
|
-
method: "POST",
|
|
76
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/tokens",
|
|
77
|
-
code: 200,
|
|
78
|
-
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
79
|
-
}))).annotate({
|
|
80
|
-
identifier: "CreateInstanceTokenRequest",
|
|
81
|
-
});
|
|
82
|
-
export const TokenState = S.String;
|
|
83
|
-
export const Token = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
84
|
-
content: S.String,
|
|
85
|
-
description: S.optional(S.String),
|
|
86
|
-
id: S.String,
|
|
87
|
-
labels: S.optional(Labels),
|
|
88
|
-
name: S.String,
|
|
89
|
-
region: S.String,
|
|
90
|
-
state: TokenState,
|
|
91
|
-
validUntil: S.String,
|
|
92
|
-
})).annotate({ identifier: "Token" });
|
|
93
|
-
export const CreateInstanceTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
94
|
-
message: S.optional(S.String),
|
|
95
|
-
token: Token,
|
|
96
|
-
})).annotate({
|
|
97
|
-
identifier: "CreateInstanceTokenResponse",
|
|
98
|
-
});
|
|
99
|
-
export const DeleteInstanceRequestRegionId = S.String;
|
|
100
|
-
export const DeleteInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
101
|
-
projectId: S.String.pipe(T.Label()),
|
|
102
|
-
regionId: DeleteInstanceRequestRegionId.pipe(T.Label()),
|
|
103
|
-
instanceId: S.String.pipe(T.Label()),
|
|
104
|
-
}).pipe(T.Http({
|
|
105
|
-
method: "DELETE",
|
|
106
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
107
|
-
code: 200,
|
|
108
|
-
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
109
|
-
}))).annotate({ identifier: "DeleteInstanceRequest" });
|
|
110
|
-
export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
111
|
-
instance: Instance,
|
|
112
|
-
message: S.optional(S.String),
|
|
113
|
-
})).annotate({ identifier: "DeleteInstanceResponse" });
|
|
114
|
-
export const DeleteInstanceTokenRequestRegionId = S.String;
|
|
115
|
-
export const DeleteInstanceTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
116
|
-
projectId: S.String.pipe(T.Label()),
|
|
117
|
-
regionId: DeleteInstanceTokenRequestRegionId.pipe(T.Label()),
|
|
118
|
-
instanceId: S.String.pipe(T.Label()),
|
|
119
|
-
tokenId: S.String.pipe(T.Label()),
|
|
120
|
-
}).pipe(T.Http({
|
|
121
|
-
method: "DELETE",
|
|
122
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/tokens/{tokenId}",
|
|
123
|
-
code: 200,
|
|
124
|
-
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
125
|
-
}))).annotate({
|
|
126
|
-
identifier: "DeleteInstanceTokenRequest",
|
|
127
|
-
});
|
|
128
|
-
export const TokenMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
129
|
-
description: S.optional(S.String),
|
|
130
|
-
id: S.String,
|
|
131
|
-
labels: S.optional(Labels),
|
|
132
|
-
name: S.String,
|
|
133
|
-
region: S.String,
|
|
134
|
-
state: TokenState,
|
|
135
|
-
validUntil: S.String,
|
|
136
|
-
})).annotate({ identifier: "TokenMetadata" });
|
|
137
|
-
export const DeleteInstanceTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
138
|
-
message: S.optional(S.String),
|
|
139
|
-
token: TokenMetadata,
|
|
140
|
-
})).annotate({
|
|
141
|
-
identifier: "DeleteInstanceTokenResponse",
|
|
142
|
-
});
|
|
143
|
-
export const GetInstanceRequestRegionId = S.String;
|
|
144
|
-
export const GetInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
145
|
-
projectId: S.String.pipe(T.Label()),
|
|
146
|
-
regionId: GetInstanceRequestRegionId.pipe(T.Label()),
|
|
147
|
-
instanceId: S.String.pipe(T.Label()),
|
|
148
|
-
}).pipe(T.Http({
|
|
149
|
-
method: "GET",
|
|
150
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
151
|
-
code: 200,
|
|
152
|
-
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
153
|
-
}))).annotate({ identifier: "GetInstanceRequest" });
|
|
154
|
-
export const GetInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
155
|
-
instance: Instance,
|
|
156
|
-
message: S.optional(S.String),
|
|
157
|
-
})).annotate({ identifier: "GetInstanceResponse" });
|
|
158
|
-
export const GetInstanceTokenRequestRegionId = S.String;
|
|
159
|
-
export const GetInstanceTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
160
|
-
projectId: S.String.pipe(T.Label()),
|
|
161
|
-
regionId: GetInstanceTokenRequestRegionId.pipe(T.Label()),
|
|
162
|
-
instanceId: S.String.pipe(T.Label()),
|
|
163
|
-
tokenId: S.String.pipe(T.Label()),
|
|
164
|
-
}).pipe(T.Http({
|
|
165
|
-
method: "GET",
|
|
166
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/tokens/{tokenId}",
|
|
167
|
-
code: 200,
|
|
168
|
-
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
169
|
-
}))).annotate({ identifier: "GetInstanceTokenRequest" });
|
|
170
|
-
export const GetInstanceTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
171
|
-
message: S.optional(S.String),
|
|
172
|
-
token: TokenMetadata,
|
|
173
|
-
})).annotate({ identifier: "GetInstanceTokenResponse" });
|
|
174
|
-
export const ListInstancesRequestRegionId = S.String;
|
|
175
|
-
export const ListInstancesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
176
|
-
projectId: S.String.pipe(T.Label()),
|
|
177
|
-
regionId: ListInstancesRequestRegionId.pipe(T.Label()),
|
|
178
|
-
}).pipe(T.Http({
|
|
179
|
-
method: "GET",
|
|
180
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/instances",
|
|
181
|
-
code: 200,
|
|
182
|
-
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
183
|
-
}))).annotate({ identifier: "ListInstancesRequest" });
|
|
184
|
-
export const ListInstancesResponseInstancesList = /*@__PURE__*/ S.Array(Instance);
|
|
185
|
-
export const ListInstancesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
186
|
-
instances: ListInstancesResponseInstancesList,
|
|
187
|
-
message: S.optional(S.String),
|
|
188
|
-
})).annotate({ identifier: "ListInstancesResponse" });
|
|
189
|
-
export const ListInstanceTokensRequestRegionId = S.String;
|
|
190
|
-
export const ListInstanceTokensRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
191
|
-
projectId: S.String.pipe(T.Label()),
|
|
192
|
-
regionId: ListInstanceTokensRequestRegionId.pipe(T.Label()),
|
|
193
|
-
instanceId: S.String.pipe(T.Label()),
|
|
194
|
-
}).pipe(T.Http({
|
|
195
|
-
method: "GET",
|
|
196
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/tokens",
|
|
197
|
-
code: 200,
|
|
198
|
-
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
199
|
-
}))).annotate({
|
|
200
|
-
identifier: "ListInstanceTokensRequest",
|
|
10
|
+
const __0 = __L.at;
|
|
11
|
+
const __1 = T.Http;
|
|
12
|
+
const __2 = T.Label;
|
|
13
|
+
const __3 = S.String;
|
|
14
|
+
const __4 = S.Struct;
|
|
15
|
+
const __5 = S.suspend;
|
|
16
|
+
const __6 = S.Array;
|
|
17
|
+
const __7 = S.optional;
|
|
18
|
+
const __8 = S.NullOr;
|
|
19
|
+
const __9 = S.Record;
|
|
20
|
+
const __10 = S.Number;
|
|
21
|
+
const __11 = S.TaggedError;
|
|
22
|
+
const __12 = T.applyErrorMatchers;
|
|
23
|
+
export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
|
|
24
|
+
return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __10, __3, __11, __12]]);
|
|
201
25
|
});
|
|
202
|
-
export const
|
|
203
|
-
|
|
204
|
-
message: S.optional(S.String),
|
|
205
|
-
tokens: ListInstanceTokensResponseTokensList,
|
|
206
|
-
})).annotate({
|
|
207
|
-
identifier: "ListInstanceTokensResponse",
|
|
26
|
+
export const Conflict = /*@__PURE__*/ API.error(function Conflict(i) {
|
|
27
|
+
return API.newError(i, new.target, ['$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])', [__0, C.withConflictError, __10, __3, __11, __12]]);
|
|
208
28
|
});
|
|
209
|
-
export const
|
|
210
|
-
|
|
211
|
-
export const PartialUpdateInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
212
|
-
projectId: S.String.pipe(T.Label()),
|
|
213
|
-
regionId: PartialUpdateInstanceRequestRegionId.pipe(T.Label()),
|
|
214
|
-
instanceId: S.String.pipe(T.Label()),
|
|
215
|
-
deletedExperimentRetention: S.optional(S.String),
|
|
216
|
-
description: S.optional(S.String),
|
|
217
|
-
labels: S.optional(LabelPatch),
|
|
218
|
-
name: S.optional(S.String),
|
|
219
|
-
}).pipe(T.Http({
|
|
220
|
-
method: "PATCH",
|
|
221
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
222
|
-
code: 200,
|
|
223
|
-
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
224
|
-
}))).annotate({
|
|
225
|
-
identifier: "PartialUpdateInstanceRequest",
|
|
29
|
+
export const Forbidden = /*@__PURE__*/ API.error(function Forbidden(i) {
|
|
30
|
+
return API.newError(i, new.target, ['$5($4()("Forbidden",{code:$2,message:$3}).pipe($1),[{status:403}])', [__0, C.withAuthError, __10, __3, __11, __12]]);
|
|
226
31
|
});
|
|
227
|
-
export const
|
|
228
|
-
|
|
229
|
-
message: S.optional(S.String),
|
|
230
|
-
})).annotate({
|
|
231
|
-
identifier: "PartialUpdateInstanceResponse",
|
|
32
|
+
export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
|
|
33
|
+
return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __10, __3, __11, __12]]);
|
|
232
34
|
});
|
|
233
|
-
|
|
234
|
-
export const
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
}).pipe(
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
export const
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
})
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
277
|
-
protocol: StackitProtocol,
|
|
278
|
-
retry: Retry.Retry,
|
|
279
|
-
}));
|
|
280
|
-
/** delete an auth token in an instance delete an auth token in an instance */
|
|
281
|
-
export const deleteInstanceToken = /*@__PURE__*/ API.make(() => ({
|
|
282
|
-
input: DeleteInstanceTokenRequest,
|
|
283
|
-
output: DeleteInstanceTokenResponse,
|
|
284
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
285
|
-
protocol: StackitProtocol,
|
|
286
|
-
retry: Retry.Retry,
|
|
287
|
-
}));
|
|
288
|
-
/** get an instance in a project get an instance in a project */
|
|
289
|
-
export const getInstance = /*@__PURE__*/ API.make(() => ({
|
|
290
|
-
input: GetInstanceRequest,
|
|
291
|
-
output: GetInstanceResponse,
|
|
292
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
293
|
-
protocol: StackitProtocol,
|
|
294
|
-
retry: Retry.Retry,
|
|
295
|
-
}));
|
|
296
|
-
/** get an auth token for an instance get an auth token for an instance */
|
|
297
|
-
export const getInstanceToken = /*@__PURE__*/ API.make(() => ({
|
|
298
|
-
input: GetInstanceTokenRequest,
|
|
299
|
-
output: GetInstanceTokenResponse,
|
|
300
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
301
|
-
protocol: StackitProtocol,
|
|
302
|
-
retry: Retry.Retry,
|
|
303
|
-
}));
|
|
304
|
-
/** list instances in a project list instances in a project */
|
|
305
|
-
export const listInstances = /*@__PURE__*/ API.make(() => ({
|
|
306
|
-
input: ListInstancesRequest,
|
|
307
|
-
output: ListInstancesResponse,
|
|
308
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
309
|
-
protocol: StackitProtocol,
|
|
310
|
-
retry: Retry.Retry,
|
|
311
|
-
}));
|
|
312
|
-
/** list all auth tokens for an instance list all auth tokens for an instance */
|
|
313
|
-
export const listInstanceTokens = /*@__PURE__*/ API.make(() => ({
|
|
314
|
-
input: ListInstanceTokensRequest,
|
|
315
|
-
output: ListInstanceTokensResponse,
|
|
316
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
317
|
-
protocol: StackitProtocol,
|
|
318
|
-
retry: Retry.Retry,
|
|
319
|
-
}));
|
|
320
|
-
/** partial update an instance in a project partial update an instance in a project */
|
|
321
|
-
export const partialUpdateInstance = /*@__PURE__*/ API.make(() => ({
|
|
322
|
-
input: PartialUpdateInstanceRequest,
|
|
323
|
-
output: PartialUpdateInstanceResponse,
|
|
324
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
325
|
-
protocol: StackitProtocol,
|
|
326
|
-
retry: Retry.Retry,
|
|
327
|
-
}));
|
|
328
|
-
/** partial update an auth token for an instance partial update an auth token for an instance */
|
|
329
|
-
export const partialUpdateInstanceToken = /*@__PURE__*/ API.make(() => ({
|
|
330
|
-
input: PartialUpdateInstanceTokenRequest,
|
|
331
|
-
output: PartialUpdateInstanceTokenResponse,
|
|
332
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
333
|
-
protocol: StackitProtocol,
|
|
334
|
-
retry: Retry.Retry,
|
|
335
|
-
}));
|
|
336
|
-
//# sourceMappingURL=model_experiments.js.map
|
|
35
|
+
|
|
36
|
+
export const createInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"CreateInstanceRequest";$6({projectId:$4.pipe($3()),regionId:$4.pipe($3()),deletedExperimentRetention:$5($4),description:$5($4),labels:$5(#1:0),name:$4}).pipe($2({method:"POST",uri:"/v1/projects/{projectId}/regions/{regionId}/instances",code:200,baseUrl:~1:1}))', [__0, __d1, __1, __2, __3, __7, __4, __5, __d3, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createInstance, i));
|
|
37
|
+
|
|
38
|
+
export const createInstanceToken = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("Token", '{input:#1,output:#3,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$7(>4)@"CreateInstance%Request";$7(>5)@"%";$7(>6)@"CreateInstance%Response";$6({projectId:$4.pipe($3()),regionId:$4.pipe($3()),instanceId:$4.pipe($3()),description:$5($4),labels:$5(#1:0),name:$4,ttlDuration:$5($4)}).pipe($2({method:"POST",uri:"/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/tokens",code:200,baseUrl:~1:1}));$6({content:$4,description:$5($4),id:$4,labels:$5(#1:0),name:$4,region:$4,state:$4,validUntil:$4});$6({message:$5($4),token:#2})', [__0, __d1, __1, __2, __3, __7, __4, __5, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(createInstanceToken, i));
|
|
39
|
+
|
|
40
|
+
export const deleteInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10,$11,$12],protocol:$13,retry:$14};$6(>2)@"DeleteInstanceRequest";$5({projectId:$4.pipe($3()),regionId:$4.pipe($3()),instanceId:$4.pipe($3())}).pipe($2({method:"DELETE",uri:"/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}",code:200,baseUrl:~1:1}))', [__0, __d1, __1, __2, __3, __4, __5, __d3, BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteInstance, i));
|
|
41
|
+
|
|
42
|
+
export const deleteInstanceToken = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#1:0,errors:[$8,$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"DeleteInstanceTokenRequest";$6({projectId:$5.pipe($4()),regionId:$5.pipe($4()),instanceId:$5.pipe($4()),tokenId:$5.pipe($4())}).pipe($3({method:"DELETE",uri:~1:1,code:200,baseUrl:~2:1}))', [__0, __d5, __d1, __1, __2, __3, __4, __5, BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteInstanceToken, i));
|
|
43
|
+
|
|
44
|
+
export const getInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$6(>2)@"GetInstanceRequest";$5({projectId:$4.pipe($3()),regionId:$4.pipe($3()),instanceId:$4.pipe($3())}).pipe($2({method:"GET",uri:"/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}",code:200,baseUrl:~1:1}))', [__0, __d1, __1, __2, __3, __4, __5, __d3, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getInstance, i));
|
|
45
|
+
|
|
46
|
+
export const getInstanceToken = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#1:0,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"GetInstanceTokenRequest";$6({projectId:$5.pipe($4()),regionId:$5.pipe($4()),instanceId:$5.pipe($4()),tokenId:$5.pipe($4())}).pipe($3({method:"GET",uri:~1:1,code:200,baseUrl:~2:1}))', [__0, __d5, __d1, __1, __2, __3, __4, __5, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getInstanceToken, i));
|
|
47
|
+
|
|
48
|
+
export const listInstances = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$10,$11,$12,$13],protocol:$14,retry:$15};$6(>4)@"ListInstancesRequest";$8(#7:0);$6(>5)@"ListInstancesResponse";$5({projectId:$4.pipe($3()),regionId:$4.pipe($3())}).pipe($2({method:"GET",uri:"/v1/projects/{projectId}/regions/{regionId}/instances",code:200,baseUrl:~1:1}));$5({instances:#2,message:$9($4)})', [__0, __d1, __1, __2, __3, __4, __5, __d2, __6, __7, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listInstances, i));
|
|
49
|
+
|
|
50
|
+
export const listInstanceTokens = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$10,$11,$12,$13],protocol:$14,retry:$15};$6(>4)@"ListInstanceTokensRequest";$8(#7:0);$6(>5)@"ListInstanceTokensResponse";$5({projectId:$4.pipe($3()),regionId:$4.pipe($3()),instanceId:$4.pipe($3())}).pipe($2({method:"GET",uri:"/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/tokens",code:200,baseUrl:~1:1}));$5({message:$9($4),tokens:#2})', [__0, __d1, __1, __2, __3, __4, __5, __d4, __6, __7, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listInstanceTokens, i));
|
|
51
|
+
|
|
52
|
+
export const partialUpdateInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10,$11,$12,$13,$14],protocol:$15,retry:$16};$8(>2)@"PartialUpdateInstanceRequest";$7({projectId:$4.pipe($3()),regionId:$4.pipe($3()),instanceId:$4.pipe($3()),deletedExperimentRetention:$5($4),description:$5($4),labels:$5(#6:0),name:$5($4)}).pipe($2({method:"PATCH",uri:"/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}",code:200,baseUrl:~1:1}))', [__0, __d1, __1, __2, __3, __7, __d0, __4, __5, __d3, BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(partialUpdateInstance, i));
|
|
53
|
+
|
|
54
|
+
export const partialUpdateInstanceToken = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#1:0,errors:[$10,$11,$12,$13,$14],protocol:$15,retry:$16};$9(>2)@"PartialUpdateInstanceTokenRequest";$8({projectId:$5.pipe($4()),regionId:$5.pipe($4()),instanceId:$5.pipe($4()),tokenId:$5.pipe($4()),description:$6($5),labels:$6(#7:0),name:$6($5)}).pipe($3({method:"PATCH",uri:~1:1,code:200,baseUrl:~2:1}))', [__0, __d5, __d1, __1, __2, __3, __7, __d0, __4, __5, BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(partialUpdateInstanceToken, i));
|
|
55
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
56
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
// Shared schema data (see `op` in core/api).
|
|
60
|
+
function __d0() {
|
|
61
|
+
return ['$3($1,$2($1))', [__0, __3, __8, __9]];
|
|
62
|
+
}
|
|
63
|
+
function __d1() {
|
|
64
|
+
return ['$2($1,$1);"https://model-experiments.api.stackit.cloud"', [__0, __3, __9]];
|
|
65
|
+
}
|
|
66
|
+
function __d2() {
|
|
67
|
+
return ['$5(>1)@"Instance";$4({bucketName:$2($1),deletedExperimentRetention:$2($1),description:$2($1),errorMessage:$2($1),id:$1,labels:$2(#3:0),name:$1,region:$2($1),state:$1,url:$1})', [__0, __3, __7, __d1, __4, __5]];
|
|
68
|
+
}
|
|
69
|
+
function __d3() {
|
|
70
|
+
return ['$5(>1)@"CreateInstanceResponse";$4({instance:#1:0,message:$3($2)})', [__0, __d2, __3, __7, __4, __5]];
|
|
71
|
+
}
|
|
72
|
+
function __d4() {
|
|
73
|
+
return ['$5(>1)@"TokenMetadata";$4({description:$2($1),id:$1,labels:$2(#3:0),name:$1,region:$1,state:$1,validUntil:$1})', [__0, __3, __7, __d1, __4, __5]];
|
|
74
|
+
}
|
|
75
|
+
function __d5() {
|
|
76
|
+
return ['$5(>2)@"DeleteInstanceTokenResponse";"/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/tokens/{tokenId}";$4({message:$2($1),token:#3:0})', [__0, __3, __7, __d4, __4, __5]];
|
|
77
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
3
3
|
import { type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
4
4
|
export type { StackitOpError, StackitOpContext };
|
|
5
|
-
declare const BadRequest_base: S.
|
|
5
|
+
declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
|
|
6
6
|
readonly code: any;
|
|
7
7
|
readonly message: any;
|
|
8
|
-
}
|
|
8
|
+
}> & (new (...args: any[]) => {
|
|
9
9
|
"@distilled.cloud/error/categories": {
|
|
10
10
|
BadRequestError: true;
|
|
11
11
|
};
|
|
12
12
|
});
|
|
13
13
|
export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
|
|
14
14
|
}
|
|
15
|
-
declare const Conflict_base: S.
|
|
15
|
+
declare const Conflict_base: S.TaggedErrorClass<"Conflict", {
|
|
16
16
|
readonly code: any;
|
|
17
17
|
readonly message: any;
|
|
18
|
-
}
|
|
18
|
+
}> & (new (...args: any[]) => {
|
|
19
19
|
"@distilled.cloud/error/categories": {
|
|
20
20
|
ConflictError: true;
|
|
21
21
|
};
|
|
22
22
|
});
|
|
23
23
|
export declare class Conflict extends /*@__PURE__*/ Conflict_base {
|
|
24
24
|
}
|
|
25
|
-
declare const NotFound_base: S.
|
|
25
|
+
declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
|
|
26
26
|
readonly code: any;
|
|
27
27
|
readonly message: any;
|
|
28
|
-
}
|
|
28
|
+
}> & (new (...args: any[]) => {
|
|
29
29
|
"@distilled.cloud/error/categories": {
|
|
30
30
|
BadRequestError: true;
|
|
31
31
|
};
|
|
@@ -36,7 +36,6 @@ export declare class NotFound extends /*@__PURE__*/ NotFound_base {
|
|
|
36
36
|
export type Labels = {
|
|
37
37
|
[key: string]: string | undefined;
|
|
38
38
|
};
|
|
39
|
-
export declare const Labels: S.Schema<Labels>;
|
|
40
39
|
export interface CreateTokenRequest {
|
|
41
40
|
/** portal project id */
|
|
42
41
|
projectId: string;
|
|
@@ -48,9 +47,7 @@ export interface CreateTokenRequest {
|
|
|
48
47
|
/** time to live duration. Must be valid duration string. If not set the token will never expire. */
|
|
49
48
|
ttlDuration?: string;
|
|
50
49
|
}
|
|
51
|
-
export declare const CreateTokenRequest: S.Schema<CreateTokenRequest>;
|
|
52
50
|
export type TokenCreatedState = "creating" | "active" | "deleting";
|
|
53
|
-
export declare const TokenCreatedState: any;
|
|
54
51
|
export interface TokenCreated {
|
|
55
52
|
content: string;
|
|
56
53
|
description?: string;
|
|
@@ -61,12 +58,10 @@ export interface TokenCreated {
|
|
|
61
58
|
state: TokenCreatedState;
|
|
62
59
|
validUntil: string;
|
|
63
60
|
}
|
|
64
|
-
export declare const TokenCreated: S.Schema<TokenCreated>;
|
|
65
61
|
export interface CreateTokenResponse {
|
|
66
62
|
message?: string;
|
|
67
63
|
token: TokenCreated;
|
|
68
64
|
}
|
|
69
|
-
export declare const CreateTokenResponse: S.Schema<CreateTokenResponse>;
|
|
70
65
|
export interface DeleteTokenRequest {
|
|
71
66
|
/** portal project id */
|
|
72
67
|
projectId: string;
|
|
@@ -75,34 +70,25 @@ export interface DeleteTokenRequest {
|
|
|
75
70
|
/** token id */
|
|
76
71
|
tId: string;
|
|
77
72
|
}
|
|
78
|
-
export declare const DeleteTokenRequest: S.Schema<DeleteTokenRequest>;
|
|
79
73
|
export interface MessageResponse {
|
|
80
74
|
message?: string;
|
|
81
75
|
}
|
|
82
|
-
export declare const MessageResponse: S.Schema<MessageResponse>;
|
|
83
76
|
export interface GetChatModelRequest {
|
|
84
77
|
/** region name */
|
|
85
78
|
regionId: string;
|
|
86
79
|
/** model id */
|
|
87
80
|
modelId: string;
|
|
88
81
|
}
|
|
89
|
-
export declare const GetChatModelRequest: S.Schema<GetChatModelRequest>;
|
|
90
82
|
export type ChatModelDetailsBits = 1 | 2 | 4 | 8 | 16;
|
|
91
|
-
export declare const ChatModelDetailsBits: any;
|
|
92
83
|
export type ChatModelDetailsCategory = "standard" | "plus" | "premium";
|
|
93
|
-
export declare const ChatModelDetailsCategory: any;
|
|
94
84
|
export type ChatModelDetailsQuantizationMethod = "PTQ" | "QAT";
|
|
95
|
-
export declare const ChatModelDetailsQuantizationMethod: any;
|
|
96
85
|
export interface SKU {
|
|
97
86
|
description?: string;
|
|
98
87
|
id: string;
|
|
99
88
|
type?: string;
|
|
100
89
|
}
|
|
101
|
-
export declare const SKU: S.Schema<SKU>;
|
|
102
90
|
export type ChatModelDetailsSkusList = Array<SKU>;
|
|
103
|
-
export declare const ChatModelDetailsSkusList: S.Schema<ChatModelDetailsSkusList>;
|
|
104
91
|
export type ChatModelDetailsTagsList = Array<string>;
|
|
105
|
-
export declare const ChatModelDetailsTagsList: S.Schema<ChatModelDetailsTagsList>;
|
|
106
92
|
export interface ChatModelDetails {
|
|
107
93
|
bits?: ChatModelDetailsBits;
|
|
108
94
|
category: ChatModelDetailsCategory;
|
|
@@ -122,25 +108,19 @@ export interface ChatModelDetails {
|
|
|
122
108
|
/** url of the model */
|
|
123
109
|
url: string;
|
|
124
110
|
}
|
|
125
|
-
export declare const ChatModelDetails: S.Schema<ChatModelDetails>;
|
|
126
111
|
export interface GetChatModelResponse {
|
|
127
112
|
message?: string;
|
|
128
113
|
model: ChatModelDetails;
|
|
129
114
|
}
|
|
130
|
-
export declare const GetChatModelResponse: S.Schema<GetChatModelResponse>;
|
|
131
115
|
export interface GetEmbeddingModelRequest {
|
|
132
116
|
/** region name */
|
|
133
117
|
regionId: string;
|
|
134
118
|
/** model id */
|
|
135
119
|
modelId: string;
|
|
136
120
|
}
|
|
137
|
-
export declare const GetEmbeddingModelRequest: S.Schema<GetEmbeddingModelRequest>;
|
|
138
121
|
export type EmbeddingModelDetailsCategory = "standard" | "plus" | "premium";
|
|
139
|
-
export declare const EmbeddingModelDetailsCategory: any;
|
|
140
122
|
export type EmbeddingModelDetailsSkusList = Array<SKU>;
|
|
141
|
-
export declare const EmbeddingModelDetailsSkusList: S.Schema<EmbeddingModelDetailsSkusList>;
|
|
142
123
|
export type EmbeddingModelDetailsTagsList = Array<string>;
|
|
143
|
-
export declare const EmbeddingModelDetailsTagsList: S.Schema<EmbeddingModelDetailsTagsList>;
|
|
144
124
|
export interface EmbeddingModelDetails {
|
|
145
125
|
category: EmbeddingModelDetailsCategory;
|
|
146
126
|
description: string;
|
|
@@ -156,12 +136,10 @@ export interface EmbeddingModelDetails {
|
|
|
156
136
|
/** url of the model */
|
|
157
137
|
url: string;
|
|
158
138
|
}
|
|
159
|
-
export declare const EmbeddingModelDetails: S.Schema<EmbeddingModelDetails>;
|
|
160
139
|
export interface GetEmbeddingsModelResp {
|
|
161
140
|
message?: string;
|
|
162
141
|
model: EmbeddingModelDetails;
|
|
163
142
|
}
|
|
164
|
-
export declare const GetEmbeddingsModelResp: S.Schema<GetEmbeddingsModelResp>;
|
|
165
143
|
export interface GetTokenRequest {
|
|
166
144
|
/** portal project id */
|
|
167
145
|
projectId: string;
|
|
@@ -170,9 +148,7 @@ export interface GetTokenRequest {
|
|
|
170
148
|
/** token id */
|
|
171
149
|
tId: string;
|
|
172
150
|
}
|
|
173
|
-
export declare const GetTokenRequest: S.Schema<GetTokenRequest>;
|
|
174
151
|
export type TokenState = "creating" | "active" | "deleting" | "inactive";
|
|
175
|
-
export declare const TokenState: any;
|
|
176
152
|
export interface Token {
|
|
177
153
|
description?: string;
|
|
178
154
|
id: string;
|
|
@@ -182,25 +158,18 @@ export interface Token {
|
|
|
182
158
|
state: TokenState;
|
|
183
159
|
validUntil: string;
|
|
184
160
|
}
|
|
185
|
-
export declare const Token: S.Schema<Token>;
|
|
186
161
|
export interface GetTokenResponse {
|
|
187
162
|
message?: string;
|
|
188
163
|
token: Token;
|
|
189
164
|
}
|
|
190
|
-
export declare const GetTokenResponse: S.Schema<GetTokenResponse>;
|
|
191
165
|
export interface ListModelsRequest {
|
|
192
166
|
/** region name */
|
|
193
167
|
regionId: string;
|
|
194
168
|
}
|
|
195
|
-
export declare const ListModelsRequest: S.Schema<ListModelsRequest>;
|
|
196
169
|
export type ModelCategory = "standard" | "plus" | "premium";
|
|
197
|
-
export declare const ModelCategory: any;
|
|
198
170
|
export type ModelSkusList = Array<SKU>;
|
|
199
|
-
export declare const ModelSkusList: S.Schema<ModelSkusList>;
|
|
200
171
|
export type ModelTagsList = Array<string>;
|
|
201
|
-
export declare const ModelTagsList: S.Schema<ModelTagsList>;
|
|
202
172
|
export type ModelType = "chat" | "embedding" | "audio" | "image";
|
|
203
|
-
export declare const ModelType: any;
|
|
204
173
|
export interface Model {
|
|
205
174
|
category: ModelCategory;
|
|
206
175
|
description: string;
|
|
@@ -216,14 +185,11 @@ export interface Model {
|
|
|
216
185
|
/** url of the model */
|
|
217
186
|
url: string;
|
|
218
187
|
}
|
|
219
|
-
export declare const Model: S.Schema<Model>;
|
|
220
188
|
export type ListModelsResponseModelsList = Array<Model>;
|
|
221
|
-
export declare const ListModelsResponseModelsList: S.Schema<ListModelsResponseModelsList>;
|
|
222
189
|
export interface ListModelsResponse {
|
|
223
190
|
message?: string;
|
|
224
191
|
models: ListModelsResponseModelsList;
|
|
225
192
|
}
|
|
226
|
-
export declare const ListModelsResponse: S.Schema<ListModelsResponse>;
|
|
227
193
|
export interface ListTokensRequest {
|
|
228
194
|
/** portal project id */
|
|
229
195
|
projectId: string;
|
|
@@ -232,19 +198,15 @@ export interface ListTokensRequest {
|
|
|
232
198
|
/** Filter token resource by labels */
|
|
233
199
|
label_selector?: string;
|
|
234
200
|
}
|
|
235
|
-
export declare const ListTokensRequest: S.Schema<ListTokensRequest>;
|
|
236
201
|
export type ListTokenRespTokensList = Array<Token>;
|
|
237
|
-
export declare const ListTokenRespTokensList: S.Schema<ListTokenRespTokensList>;
|
|
238
202
|
export interface ListTokenResp {
|
|
239
203
|
message?: string;
|
|
240
204
|
tokens: ListTokenRespTokensList;
|
|
241
205
|
}
|
|
242
|
-
export declare const ListTokenResp: S.Schema<ListTokenResp>;
|
|
243
206
|
/** Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Send empty object {} to remove all labels. The `stackit` prefix is reserved and cannot be used for Keys. */
|
|
244
207
|
export type LabelPatch = {
|
|
245
208
|
[key: string]: string | null | undefined;
|
|
246
209
|
};
|
|
247
|
-
export declare const LabelPatch: S.Schema<LabelPatch>;
|
|
248
210
|
export interface PartialUpdateTokenRequest {
|
|
249
211
|
/** portal project id */
|
|
250
212
|
projectId: string;
|
|
@@ -256,12 +218,10 @@ export interface PartialUpdateTokenRequest {
|
|
|
256
218
|
labels?: LabelPatch;
|
|
257
219
|
name?: string;
|
|
258
220
|
}
|
|
259
|
-
export declare const PartialUpdateTokenRequest: S.Schema<PartialUpdateTokenRequest>;
|
|
260
221
|
export interface UpdateTokenResponse {
|
|
261
222
|
message?: string;
|
|
262
223
|
token: Token;
|
|
263
224
|
}
|
|
264
|
-
export declare const UpdateTokenResponse: S.Schema<UpdateTokenResponse>;
|
|
265
225
|
export type CreateTokenError = BadRequest | Conflict | StackitOpError;
|
|
266
226
|
/** create auth token for shared model use create auth token for shared model use */
|
|
267
227
|
export declare const createToken: API.OperationMethod<CreateTokenRequest, CreateTokenResponse, CreateTokenError, StackitOpContext>;
|