@distilled.cloud/stackit 1.0.0-rc.15 → 1.0.0-rc.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +32 -28
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +13 -13
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +16 -16
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +22 -22
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +15 -15
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +31 -29
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +24 -23
- package/lib/retry.js.map +1 -1
- package/lib/services/alb.d.ts +10 -87
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +73 -502
- package/lib/services/alb_waf.d.ts +9 -82
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +84 -510
- package/lib/services/authorization.d.ts +5 -47
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +67 -314
- package/lib/services/automation.d.ts +7 -47
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +58 -353
- package/lib/services/cdn.d.ts +8 -220
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +81 -896
- package/lib/services/certificates.d.ts +8 -27
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +45 -171
- package/lib/services/cost.d.ts +10 -37
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +39 -169
- package/lib/services/dns.d.ts +9 -104
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +98 -714
- package/lib/services/dremio.d.ts +8 -50
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +56 -307
- package/lib/services/edge.d.ts +7 -40
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +66 -347
- package/lib/services/functions.d.ts +1 -48
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +64 -393
- package/lib/services/git.d.ts +8 -61
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +87 -510
- package/lib/services/iaas.d.ts +9 -337
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +409 -3532
- package/lib/services/intake.d.ts +8 -75
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +74 -465
- package/lib/services/kms.d.ts +9 -92
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +95 -650
- package/lib/services/lb_ip_lists.d.ts +9 -25
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +45 -146
- package/lib/services/load_balancer.d.ts +10 -81
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +76 -486
- package/lib/services/logme.d.ts +8 -69
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +82 -564
- package/lib/services/logs.d.ts +8 -64
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +84 -465
- package/lib/services/mariadb.d.ts +8 -65
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +84 -541
- package/lib/services/model_experiments.d.ts +9 -48
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +66 -325
- package/lib/services/model_serving.d.ts +7 -47
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +55 -277
- package/lib/services/mongodb_flex.d.ts +8 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +102 -793
- package/lib/services/object_storage.d.ts +12 -59
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +93 -528
- package/lib/services/observability.d.ts +8 -407
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +375 -3148
- package/lib/services/opensearch.d.ts +8 -71
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +85 -553
- package/lib/services/pim.d.ts +12 -108
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +81 -726
- package/lib/services/postgres_flex.d.ts +14 -136
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +114 -841
- package/lib/services/pubsub.d.ts +11 -73
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +92 -507
- package/lib/services/rabbitmq.d.ts +8 -76
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +88 -564
- package/lib/services/registry.d.ts +10 -28
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +49 -189
- package/lib/services/resource_manager.d.ts +9 -61
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +92 -462
- package/lib/services/run_command.d.ts +5 -28
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +38 -176
- package/lib/services/sca.d.ts +8 -79
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +63 -435
- package/lib/services/scf.d.ts +8 -64
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +99 -660
- package/lib/services/secrets_manager.d.ts +8 -61
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +99 -601
- package/lib/services/server_backup.d.ts +7 -50
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +70 -444
- package/lib/services/server_update.d.ts +7 -35
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +58 -342
- package/lib/services/service_account.d.ts +10 -68
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +75 -495
- package/lib/services/service_enablement.d.ts +7 -29
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +40 -147
- package/lib/services/sfs.d.ts +4 -96
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +117 -782
- package/lib/services/ske.d.ts +9 -108
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +67 -549
- package/lib/services/sqlserverflex.d.ts +11 -152
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +112 -925
- package/lib/services/stackit_marketplace.d.ts +9 -38
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +64 -369
- package/lib/services/telemetry_link.d.ts +8 -61
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +81 -522
- package/lib/services/telemetry_router.d.ts +8 -72
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +73 -474
- package/lib/services/ufw.d.ts +7 -42
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +55 -269
- package/lib/services/valkey.d.ts +8 -68
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +85 -557
- package/lib/services/vpn.d.ts +21 -186
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +105 -920
- package/lib/services/workflows.d.ts +15 -84
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +67 -497
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +10 -10
- package/package.json +13 -9
- package/src/credentials.ts +21 -18
- package/src/errors.ts +10 -14
- package/src/index.ts +2 -2
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +12 -9
- package/src/retry.ts +6 -4
- package/src/services/alb.ts +599 -655
- package/src/services/alb_waf.ts +597 -637
- package/src/services/authorization.ts +400 -383
- package/src/services/automation.ts +422 -405
- package/src/services/cdn.ts +817 -1375
- package/src/services/certificates.ts +209 -190
- package/src/services/cost.ts +100 -207
- package/src/services/dns.ts +793 -833
- package/src/services/dremio.ts +356 -349
- package/src/services/edge.ts +406 -366
- package/src/services/functions.ts +465 -463
- package/src/services/git.ts +602 -547
- package/src/services/iaas.ts +3931 -3821
- package/src/services/intake.ts +521 -549
- package/src/services/kms.ts +715 -692
- package/src/services/lb_ip_lists.ts +173 -152
- package/src/services/load_balancer.ts +576 -619
- package/src/services/logme.ts +696 -641
- package/src/services/logs.ts +510 -493
- package/src/services/mariadb.ts +671 -604
- package/src/services/model_experiments.ts +343 -356
- package/src/services/model_serving.ts +337 -328
- package/src/services/mongodb_flex.ts +955 -1007
- package/src/services/object_storage.ts +614 -557
- package/src/services/observability.ts +3469 -3866
- package/src/services/opensearch.ts +679 -628
- package/src/services/pim.ts +672 -909
- package/src/services/postgres_flex.ts +966 -986
- package/src/services/pubsub.ts +524 -546
- package/src/services/rabbitmq.ts +693 -654
- package/src/services/registry.ts +227 -194
- package/src/services/resource_manager.ts +520 -517
- package/src/services/run_command.ts +219 -211
- package/src/services/sca.ts +543 -570
- package/src/services/scf.ts +790 -716
- package/src/services/secrets_manager.ts +707 -622
- package/src/services/server_backup.ts +490 -475
- package/src/services/server_update.ts +353 -356
- package/src/services/service_account.ts +515 -553
- package/src/services/service_enablement.ts +162 -166
- package/src/services/sfs.ts +879 -958
- package/src/services/ske.ts +694 -769
- package/src/services/sqlserverflex.ts +1042 -1117
- package/src/services/stackit_marketplace.ts +377 -372
- package/src/services/telemetry_link.ts +530 -531
- package/src/services/telemetry_router.ts +509 -534
- package/src/services/ufw.ts +305 -307
- package/src/services/valkey.ts +684 -629
- package/src/services/vpn.ts +935 -1195
- package/src/services/workflows.ts +426 -586
- package/src/traits.ts +1 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -181
- package/lib/protocol.test.js.map +0 -1
- package/lib/services/alb.js.map +0 -1
- package/lib/services/alb_waf.js.map +0 -1
- package/lib/services/authorization.js.map +0 -1
- package/lib/services/automation.js.map +0 -1
- package/lib/services/cdn.js.map +0 -1
- package/lib/services/certificates.js.map +0 -1
- package/lib/services/cost.js.map +0 -1
- package/lib/services/dns.js.map +0 -1
- package/lib/services/dremio.js.map +0 -1
- package/lib/services/edge.js.map +0 -1
- package/lib/services/functions.js.map +0 -1
- package/lib/services/git.js.map +0 -1
- package/lib/services/iaas.js.map +0 -1
- package/lib/services/intake.js.map +0 -1
- package/lib/services/kms.js.map +0 -1
- package/lib/services/lb_ip_lists.js.map +0 -1
- package/lib/services/load_balancer.js.map +0 -1
- package/lib/services/logme.js.map +0 -1
- package/lib/services/logs.js.map +0 -1
- package/lib/services/mariadb.js.map +0 -1
- package/lib/services/model_experiments.js.map +0 -1
- package/lib/services/model_serving.js.map +0 -1
- package/lib/services/mongodb_flex.js.map +0 -1
- package/lib/services/object_storage.js.map +0 -1
- package/lib/services/observability.js.map +0 -1
- package/lib/services/opensearch.js.map +0 -1
- package/lib/services/pim.js.map +0 -1
- package/lib/services/postgres_flex.js.map +0 -1
- package/lib/services/pubsub.js.map +0 -1
- package/lib/services/rabbitmq.js.map +0 -1
- package/lib/services/registry.js.map +0 -1
- package/lib/services/resource_manager.js.map +0 -1
- package/lib/services/run_command.js.map +0 -1
- package/lib/services/sca.js.map +0 -1
- package/lib/services/scf.js.map +0 -1
- package/lib/services/secrets_manager.js.map +0 -1
- package/lib/services/server_backup.js.map +0 -1
- package/lib/services/server_update.js.map +0 -1
- package/lib/services/service_account.js.map +0 -1
- package/lib/services/service_enablement.js.map +0 -1
- package/lib/services/sfs.js.map +0 -1
- package/lib/services/ske.js.map +0 -1
- package/lib/services/sqlserverflex.js.map +0 -1
- package/lib/services/stackit_marketplace.js.map +0 -1
- package/lib/services/telemetry_link.js.map +0 -1
- package/lib/services/telemetry_router.js.map +0 -1
- package/lib/services/ufw.js.map +0 -1
- package/lib/services/valkey.js.map +0 -1
- package/lib/services/vpn.js.map +0 -1
- package/lib/services/workflows.js.map +0 -1
- package/src/protocol.test.ts +0 -304
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
import * as C from "@distilled.cloud/core/category";
|
|
3
3
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
4
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
6
|
import { UnknownStackitError } from "../errors.ts";
|
|
6
7
|
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
7
8
|
import * as Retry from "../retry.ts";
|
|
8
9
|
import * as T from "../traits.ts";
|
|
10
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
11
|
+
const __s: any[] = [];
|
|
9
12
|
|
|
10
13
|
export type { StackitOpError, StackitOpContext };
|
|
11
14
|
|
|
@@ -38,8 +41,6 @@ export class NotFound
|
|
|
38
41
|
|
|
39
42
|
/** 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. */
|
|
40
43
|
export type Labels = { [key: string]: string | undefined };
|
|
41
|
-
export const Labels = /*@__PURE__*/ S.Record(S.String, S.String) as any as S.Schema<Labels>;
|
|
42
|
-
|
|
43
44
|
export interface CreateTokenRequest {
|
|
44
45
|
/** portal project id */
|
|
45
46
|
projectId: string;
|
|
@@ -51,27 +52,7 @@ export interface CreateTokenRequest {
|
|
|
51
52
|
/** time to live duration. Must be valid duration string. If not set the token will never expire. */
|
|
52
53
|
ttlDuration?: string;
|
|
53
54
|
}
|
|
54
|
-
export const CreateTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
55
|
-
S.Struct({
|
|
56
|
-
projectId: S.String.pipe(T.Label()),
|
|
57
|
-
regionId: S.String.pipe(T.Label()),
|
|
58
|
-
description: S.optional(S.String),
|
|
59
|
-
labels: S.optional(Labels),
|
|
60
|
-
name: S.String,
|
|
61
|
-
ttlDuration: S.optional(S.String),
|
|
62
|
-
}).pipe(
|
|
63
|
-
T.Http({
|
|
64
|
-
method: "POST",
|
|
65
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/tokens",
|
|
66
|
-
code: 200,
|
|
67
|
-
baseUrl: "https://model-serving.api.stackit.cloud",
|
|
68
|
-
}),
|
|
69
|
-
),
|
|
70
|
-
).annotate({ identifier: "CreateTokenRequest" }) as any as S.Schema<CreateTokenRequest>;
|
|
71
|
-
|
|
72
55
|
export type TokenCreatedState = "creating" | "active" | "deleting";
|
|
73
|
-
export const TokenCreatedState = S.String;
|
|
74
|
-
|
|
75
56
|
export interface TokenCreated {
|
|
76
57
|
content: string;
|
|
77
58
|
description?: string;
|
|
@@ -82,30 +63,10 @@ export interface TokenCreated {
|
|
|
82
63
|
state: TokenCreatedState;
|
|
83
64
|
validUntil: string;
|
|
84
65
|
}
|
|
85
|
-
export const TokenCreated = /*@__PURE__*/ S.suspend(() =>
|
|
86
|
-
S.Struct({
|
|
87
|
-
content: S.String,
|
|
88
|
-
description: S.optional(S.String),
|
|
89
|
-
id: S.String,
|
|
90
|
-
labels: S.optional(Labels),
|
|
91
|
-
name: S.String,
|
|
92
|
-
region: S.String,
|
|
93
|
-
state: TokenCreatedState,
|
|
94
|
-
validUntil: S.String,
|
|
95
|
-
}),
|
|
96
|
-
).annotate({ identifier: "TokenCreated" }) as any as S.Schema<TokenCreated>;
|
|
97
|
-
|
|
98
66
|
export interface CreateTokenResponse {
|
|
99
67
|
message?: string;
|
|
100
68
|
token: TokenCreated;
|
|
101
69
|
}
|
|
102
|
-
export const CreateTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
103
|
-
S.Struct({
|
|
104
|
-
message: S.optional(S.String),
|
|
105
|
-
token: TokenCreated,
|
|
106
|
-
}),
|
|
107
|
-
).annotate({ identifier: "CreateTokenResponse" }) as any as S.Schema<CreateTokenResponse>;
|
|
108
|
-
|
|
109
70
|
export interface DeleteTokenRequest {
|
|
110
71
|
/** portal project id */
|
|
111
72
|
projectId: string;
|
|
@@ -114,82 +75,25 @@ export interface DeleteTokenRequest {
|
|
|
114
75
|
/** token id */
|
|
115
76
|
tId: string;
|
|
116
77
|
}
|
|
117
|
-
export const DeleteTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
118
|
-
S.Struct({
|
|
119
|
-
projectId: S.String.pipe(T.Label()),
|
|
120
|
-
regionId: S.String.pipe(T.Label()),
|
|
121
|
-
tId: S.String.pipe(T.Label()),
|
|
122
|
-
}).pipe(
|
|
123
|
-
T.Http({
|
|
124
|
-
method: "DELETE",
|
|
125
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/tokens/{tId}",
|
|
126
|
-
code: 200,
|
|
127
|
-
baseUrl: "https://model-serving.api.stackit.cloud",
|
|
128
|
-
}),
|
|
129
|
-
),
|
|
130
|
-
).annotate({ identifier: "DeleteTokenRequest" }) as any as S.Schema<DeleteTokenRequest>;
|
|
131
|
-
|
|
132
78
|
export interface MessageResponse {
|
|
133
79
|
message?: string;
|
|
134
80
|
}
|
|
135
|
-
export const MessageResponse = /*@__PURE__*/ S.suspend(() =>
|
|
136
|
-
S.Struct({
|
|
137
|
-
message: S.optional(S.String),
|
|
138
|
-
}),
|
|
139
|
-
).annotate({ identifier: "MessageResponse" }) as any as S.Schema<MessageResponse>;
|
|
140
|
-
|
|
141
81
|
export interface GetChatModelRequest {
|
|
142
82
|
/** region name */
|
|
143
83
|
regionId: string;
|
|
144
84
|
/** model id */
|
|
145
85
|
modelId: string;
|
|
146
86
|
}
|
|
147
|
-
export const GetChatModelRequest = /*@__PURE__*/ S.suspend(() =>
|
|
148
|
-
S.Struct({
|
|
149
|
-
regionId: S.String.pipe(T.Label()),
|
|
150
|
-
modelId: S.String.pipe(T.Label()),
|
|
151
|
-
}).pipe(
|
|
152
|
-
T.Http({
|
|
153
|
-
method: "GET",
|
|
154
|
-
uri: "/v1/regions/{regionId}/chat/models/{modelId}",
|
|
155
|
-
code: 200,
|
|
156
|
-
baseUrl: "https://model-serving.api.stackit.cloud",
|
|
157
|
-
}),
|
|
158
|
-
),
|
|
159
|
-
).annotate({ identifier: "GetChatModelRequest" }) as any as S.Schema<GetChatModelRequest>;
|
|
160
|
-
|
|
161
87
|
export type ChatModelDetailsBits = 1 | 2 | 4 | 8 | 16;
|
|
162
|
-
export const ChatModelDetailsBits = S.Number;
|
|
163
|
-
|
|
164
88
|
export type ChatModelDetailsCategory = "standard" | "plus" | "premium";
|
|
165
|
-
export const ChatModelDetailsCategory = S.String;
|
|
166
|
-
|
|
167
89
|
export type ChatModelDetailsQuantizationMethod = "PTQ" | "QAT";
|
|
168
|
-
export const ChatModelDetailsQuantizationMethod = S.String;
|
|
169
|
-
|
|
170
90
|
export interface SKU {
|
|
171
91
|
description?: string;
|
|
172
92
|
id: string;
|
|
173
93
|
type?: string;
|
|
174
94
|
}
|
|
175
|
-
export const SKU = /*@__PURE__*/ S.suspend(() =>
|
|
176
|
-
S.Struct({
|
|
177
|
-
description: S.optional(S.String),
|
|
178
|
-
id: S.String,
|
|
179
|
-
type: S.optional(S.String),
|
|
180
|
-
}),
|
|
181
|
-
).annotate({ identifier: "SKU" }) as any as S.Schema<SKU>;
|
|
182
|
-
|
|
183
95
|
export type ChatModelDetailsSkusList = Array<SKU>;
|
|
184
|
-
export const ChatModelDetailsSkusList = /*@__PURE__*/ S.Array(
|
|
185
|
-
SKU,
|
|
186
|
-
) as any as S.Schema<ChatModelDetailsSkusList>;
|
|
187
|
-
|
|
188
96
|
export type ChatModelDetailsTagsList = Array<string>;
|
|
189
|
-
export const ChatModelDetailsTagsList = /*@__PURE__*/ S.Array(
|
|
190
|
-
S.String,
|
|
191
|
-
) as any as S.Schema<ChatModelDetailsTagsList>;
|
|
192
|
-
|
|
193
97
|
export interface ChatModelDetails {
|
|
194
98
|
bits?: ChatModelDetailsBits;
|
|
195
99
|
category: ChatModelDetailsCategory;
|
|
@@ -209,68 +113,19 @@ export interface ChatModelDetails {
|
|
|
209
113
|
/** url of the model */
|
|
210
114
|
url: string;
|
|
211
115
|
}
|
|
212
|
-
export const ChatModelDetails = /*@__PURE__*/ S.suspend(() =>
|
|
213
|
-
S.Struct({
|
|
214
|
-
bits: S.optional(ChatModelDetailsBits),
|
|
215
|
-
category: ChatModelDetailsCategory,
|
|
216
|
-
contextLength: S.Number,
|
|
217
|
-
description: S.String,
|
|
218
|
-
displayedName: S.String,
|
|
219
|
-
id: S.String,
|
|
220
|
-
name: S.String,
|
|
221
|
-
quantizationMethod: S.optional(ChatModelDetailsQuantizationMethod),
|
|
222
|
-
region: S.String,
|
|
223
|
-
size: S.Number,
|
|
224
|
-
skus: ChatModelDetailsSkusList,
|
|
225
|
-
tags: ChatModelDetailsTagsList,
|
|
226
|
-
url: S.String,
|
|
227
|
-
}),
|
|
228
|
-
).annotate({ identifier: "ChatModelDetails" }) as any as S.Schema<ChatModelDetails>;
|
|
229
|
-
|
|
230
116
|
export interface GetChatModelResponse {
|
|
231
117
|
message?: string;
|
|
232
118
|
model: ChatModelDetails;
|
|
233
119
|
}
|
|
234
|
-
export const GetChatModelResponse = /*@__PURE__*/ S.suspend(() =>
|
|
235
|
-
S.Struct({
|
|
236
|
-
message: S.optional(S.String),
|
|
237
|
-
model: ChatModelDetails,
|
|
238
|
-
}),
|
|
239
|
-
).annotate({ identifier: "GetChatModelResponse" }) as any as S.Schema<GetChatModelResponse>;
|
|
240
|
-
|
|
241
120
|
export interface GetEmbeddingModelRequest {
|
|
242
121
|
/** region name */
|
|
243
122
|
regionId: string;
|
|
244
123
|
/** model id */
|
|
245
124
|
modelId: string;
|
|
246
125
|
}
|
|
247
|
-
export const GetEmbeddingModelRequest = /*@__PURE__*/ S.suspend(() =>
|
|
248
|
-
S.Struct({
|
|
249
|
-
regionId: S.String.pipe(T.Label()),
|
|
250
|
-
modelId: S.String.pipe(T.Label()),
|
|
251
|
-
}).pipe(
|
|
252
|
-
T.Http({
|
|
253
|
-
method: "GET",
|
|
254
|
-
uri: "/v1/regions/{regionId}/embedding/models/{modelId}",
|
|
255
|
-
code: 200,
|
|
256
|
-
baseUrl: "https://model-serving.api.stackit.cloud",
|
|
257
|
-
}),
|
|
258
|
-
),
|
|
259
|
-
).annotate({ identifier: "GetEmbeddingModelRequest" }) as any as S.Schema<GetEmbeddingModelRequest>;
|
|
260
|
-
|
|
261
126
|
export type EmbeddingModelDetailsCategory = "standard" | "plus" | "premium";
|
|
262
|
-
export const EmbeddingModelDetailsCategory = S.String;
|
|
263
|
-
|
|
264
127
|
export type EmbeddingModelDetailsSkusList = Array<SKU>;
|
|
265
|
-
export const EmbeddingModelDetailsSkusList = /*@__PURE__*/ S.Array(
|
|
266
|
-
SKU,
|
|
267
|
-
) as any as S.Schema<EmbeddingModelDetailsSkusList>;
|
|
268
|
-
|
|
269
128
|
export type EmbeddingModelDetailsTagsList = Array<string>;
|
|
270
|
-
export const EmbeddingModelDetailsTagsList = /*@__PURE__*/ S.Array(
|
|
271
|
-
S.String,
|
|
272
|
-
) as any as S.Schema<EmbeddingModelDetailsTagsList>;
|
|
273
|
-
|
|
274
129
|
export interface EmbeddingModelDetails {
|
|
275
130
|
category: EmbeddingModelDetailsCategory;
|
|
276
131
|
description: string;
|
|
@@ -286,32 +141,10 @@ export interface EmbeddingModelDetails {
|
|
|
286
141
|
/** url of the model */
|
|
287
142
|
url: string;
|
|
288
143
|
}
|
|
289
|
-
export const EmbeddingModelDetails = /*@__PURE__*/ S.suspend(() =>
|
|
290
|
-
S.Struct({
|
|
291
|
-
category: EmbeddingModelDetailsCategory,
|
|
292
|
-
description: S.String,
|
|
293
|
-
displayedName: S.String,
|
|
294
|
-
id: S.String,
|
|
295
|
-
name: S.String,
|
|
296
|
-
outputDimension: S.Number,
|
|
297
|
-
region: S.String,
|
|
298
|
-
skus: EmbeddingModelDetailsSkusList,
|
|
299
|
-
tags: S.optional(EmbeddingModelDetailsTagsList),
|
|
300
|
-
url: S.String,
|
|
301
|
-
}),
|
|
302
|
-
).annotate({ identifier: "EmbeddingModelDetails" }) as any as S.Schema<EmbeddingModelDetails>;
|
|
303
|
-
|
|
304
144
|
export interface GetEmbeddingsModelResp {
|
|
305
145
|
message?: string;
|
|
306
146
|
model: EmbeddingModelDetails;
|
|
307
147
|
}
|
|
308
|
-
export const GetEmbeddingsModelResp = /*@__PURE__*/ S.suspend(() =>
|
|
309
|
-
S.Struct({
|
|
310
|
-
message: S.optional(S.String),
|
|
311
|
-
model: EmbeddingModelDetails,
|
|
312
|
-
}),
|
|
313
|
-
).annotate({ identifier: "GetEmbeddingsModelResp" }) as any as S.Schema<GetEmbeddingsModelResp>;
|
|
314
|
-
|
|
315
148
|
export interface GetTokenRequest {
|
|
316
149
|
/** portal project id */
|
|
317
150
|
projectId: string;
|
|
@@ -320,24 +153,7 @@ export interface GetTokenRequest {
|
|
|
320
153
|
/** token id */
|
|
321
154
|
tId: string;
|
|
322
155
|
}
|
|
323
|
-
export const GetTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
324
|
-
S.Struct({
|
|
325
|
-
projectId: S.String.pipe(T.Label()),
|
|
326
|
-
regionId: S.String.pipe(T.Label()),
|
|
327
|
-
tId: S.String.pipe(T.Label()),
|
|
328
|
-
}).pipe(
|
|
329
|
-
T.Http({
|
|
330
|
-
method: "GET",
|
|
331
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/tokens/{tId}",
|
|
332
|
-
code: 200,
|
|
333
|
-
baseUrl: "https://model-serving.api.stackit.cloud",
|
|
334
|
-
}),
|
|
335
|
-
),
|
|
336
|
-
).annotate({ identifier: "GetTokenRequest" }) as any as S.Schema<GetTokenRequest>;
|
|
337
|
-
|
|
338
156
|
export type TokenState = "creating" | "active" | "deleting" | "inactive";
|
|
339
|
-
export const TokenState = S.String;
|
|
340
|
-
|
|
341
157
|
export interface Token {
|
|
342
158
|
description?: string;
|
|
343
159
|
id: string;
|
|
@@ -347,58 +163,18 @@ export interface Token {
|
|
|
347
163
|
state: TokenState;
|
|
348
164
|
validUntil: string;
|
|
349
165
|
}
|
|
350
|
-
export const Token = /*@__PURE__*/ S.suspend(() =>
|
|
351
|
-
S.Struct({
|
|
352
|
-
description: S.optional(S.String),
|
|
353
|
-
id: S.String,
|
|
354
|
-
labels: S.optional(Labels),
|
|
355
|
-
name: S.String,
|
|
356
|
-
region: S.String,
|
|
357
|
-
state: TokenState,
|
|
358
|
-
validUntil: S.String,
|
|
359
|
-
}),
|
|
360
|
-
).annotate({ identifier: "Token" }) as any as S.Schema<Token>;
|
|
361
|
-
|
|
362
166
|
export interface GetTokenResponse {
|
|
363
167
|
message?: string;
|
|
364
168
|
token: Token;
|
|
365
169
|
}
|
|
366
|
-
export const GetTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
367
|
-
S.Struct({
|
|
368
|
-
message: S.optional(S.String),
|
|
369
|
-
token: Token,
|
|
370
|
-
}),
|
|
371
|
-
).annotate({ identifier: "GetTokenResponse" }) as any as S.Schema<GetTokenResponse>;
|
|
372
|
-
|
|
373
170
|
export interface ListModelsRequest {
|
|
374
171
|
/** region name */
|
|
375
172
|
regionId: string;
|
|
376
173
|
}
|
|
377
|
-
export const ListModelsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
378
|
-
S.Struct({
|
|
379
|
-
regionId: S.String.pipe(T.Label()),
|
|
380
|
-
}).pipe(
|
|
381
|
-
T.Http({
|
|
382
|
-
method: "GET",
|
|
383
|
-
uri: "/v1/regions/{regionId}/models",
|
|
384
|
-
code: 200,
|
|
385
|
-
baseUrl: "https://model-serving.api.stackit.cloud",
|
|
386
|
-
}),
|
|
387
|
-
),
|
|
388
|
-
).annotate({ identifier: "ListModelsRequest" }) as any as S.Schema<ListModelsRequest>;
|
|
389
|
-
|
|
390
174
|
export type ModelCategory = "standard" | "plus" | "premium";
|
|
391
|
-
export const ModelCategory = S.String;
|
|
392
|
-
|
|
393
175
|
export type ModelSkusList = Array<SKU>;
|
|
394
|
-
export const ModelSkusList = /*@__PURE__*/ S.Array(SKU) as any as S.Schema<ModelSkusList>;
|
|
395
|
-
|
|
396
176
|
export type ModelTagsList = Array<string>;
|
|
397
|
-
export const ModelTagsList = /*@__PURE__*/ S.Array(S.String) as any as S.Schema<ModelTagsList>;
|
|
398
|
-
|
|
399
177
|
export type ModelType = "chat" | "embedding" | "audio" | "image";
|
|
400
|
-
export const ModelType = S.String;
|
|
401
|
-
|
|
402
178
|
export interface Model {
|
|
403
179
|
category: ModelCategory;
|
|
404
180
|
description: string;
|
|
@@ -414,37 +190,11 @@ export interface Model {
|
|
|
414
190
|
/** url of the model */
|
|
415
191
|
url: string;
|
|
416
192
|
}
|
|
417
|
-
export const Model = /*@__PURE__*/ S.suspend(() =>
|
|
418
|
-
S.Struct({
|
|
419
|
-
category: ModelCategory,
|
|
420
|
-
description: S.String,
|
|
421
|
-
displayedName: S.String,
|
|
422
|
-
id: S.String,
|
|
423
|
-
name: S.String,
|
|
424
|
-
region: S.String,
|
|
425
|
-
skus: ModelSkusList,
|
|
426
|
-
tags: S.optional(ModelTagsList),
|
|
427
|
-
type: ModelType,
|
|
428
|
-
url: S.String,
|
|
429
|
-
}),
|
|
430
|
-
).annotate({ identifier: "Model" }) as any as S.Schema<Model>;
|
|
431
|
-
|
|
432
193
|
export type ListModelsResponseModelsList = Array<Model>;
|
|
433
|
-
export const ListModelsResponseModelsList = /*@__PURE__*/ S.Array(
|
|
434
|
-
Model,
|
|
435
|
-
) as any as S.Schema<ListModelsResponseModelsList>;
|
|
436
|
-
|
|
437
194
|
export interface ListModelsResponse {
|
|
438
195
|
message?: string;
|
|
439
196
|
models: ListModelsResponseModelsList;
|
|
440
197
|
}
|
|
441
|
-
export const ListModelsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
442
|
-
S.Struct({
|
|
443
|
-
message: S.optional(S.String),
|
|
444
|
-
models: ListModelsResponseModelsList,
|
|
445
|
-
}),
|
|
446
|
-
).annotate({ identifier: "ListModelsResponse" }) as any as S.Schema<ListModelsResponse>;
|
|
447
|
-
|
|
448
198
|
export interface ListTokensRequest {
|
|
449
199
|
/** portal project id */
|
|
450
200
|
projectId: string;
|
|
@@ -453,44 +203,13 @@ export interface ListTokensRequest {
|
|
|
453
203
|
/** Filter token resource by labels */
|
|
454
204
|
label_selector?: string;
|
|
455
205
|
}
|
|
456
|
-
export const ListTokensRequest = /*@__PURE__*/ S.suspend(() =>
|
|
457
|
-
S.Struct({
|
|
458
|
-
projectId: S.String.pipe(T.Label()),
|
|
459
|
-
regionId: S.String.pipe(T.Label()),
|
|
460
|
-
label_selector: S.optional(S.String.pipe(T.Query())),
|
|
461
|
-
}).pipe(
|
|
462
|
-
T.Http({
|
|
463
|
-
method: "GET",
|
|
464
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/tokens",
|
|
465
|
-
code: 200,
|
|
466
|
-
baseUrl: "https://model-serving.api.stackit.cloud",
|
|
467
|
-
}),
|
|
468
|
-
),
|
|
469
|
-
).annotate({ identifier: "ListTokensRequest" }) as any as S.Schema<ListTokensRequest>;
|
|
470
|
-
|
|
471
206
|
export type ListTokenRespTokensList = Array<Token>;
|
|
472
|
-
export const ListTokenRespTokensList = /*@__PURE__*/ S.Array(
|
|
473
|
-
Token,
|
|
474
|
-
) as any as S.Schema<ListTokenRespTokensList>;
|
|
475
|
-
|
|
476
207
|
export interface ListTokenResp {
|
|
477
208
|
message?: string;
|
|
478
209
|
tokens: ListTokenRespTokensList;
|
|
479
210
|
}
|
|
480
|
-
export const ListTokenResp = /*@__PURE__*/ S.suspend(() =>
|
|
481
|
-
S.Struct({
|
|
482
|
-
message: S.optional(S.String),
|
|
483
|
-
tokens: ListTokenRespTokensList,
|
|
484
|
-
}),
|
|
485
|
-
).annotate({ identifier: "ListTokenResp" }) as any as S.Schema<ListTokenResp>;
|
|
486
|
-
|
|
487
211
|
/** 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. */
|
|
488
212
|
export type LabelPatch = { [key: string]: string | null | undefined };
|
|
489
|
-
export const LabelPatch = /*@__PURE__*/ S.Record(
|
|
490
|
-
S.String,
|
|
491
|
-
S.NullOr(S.String),
|
|
492
|
-
) as any as S.Schema<LabelPatch>;
|
|
493
|
-
|
|
494
213
|
export interface PartialUpdateTokenRequest {
|
|
495
214
|
/** portal project id */
|
|
496
215
|
projectId: string;
|
|
@@ -502,37 +221,10 @@ export interface PartialUpdateTokenRequest {
|
|
|
502
221
|
labels?: LabelPatch;
|
|
503
222
|
name?: string;
|
|
504
223
|
}
|
|
505
|
-
export const PartialUpdateTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
506
|
-
S.Struct({
|
|
507
|
-
projectId: S.String.pipe(T.Label()),
|
|
508
|
-
regionId: S.String.pipe(T.Label()),
|
|
509
|
-
tId: S.String.pipe(T.Label()),
|
|
510
|
-
description: S.optional(S.String),
|
|
511
|
-
labels: S.optional(LabelPatch),
|
|
512
|
-
name: S.optional(S.String),
|
|
513
|
-
}).pipe(
|
|
514
|
-
T.Http({
|
|
515
|
-
method: "PATCH",
|
|
516
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/tokens/{tId}",
|
|
517
|
-
code: 200,
|
|
518
|
-
baseUrl: "https://model-serving.api.stackit.cloud",
|
|
519
|
-
}),
|
|
520
|
-
),
|
|
521
|
-
).annotate({
|
|
522
|
-
identifier: "PartialUpdateTokenRequest",
|
|
523
|
-
}) as any as S.Schema<PartialUpdateTokenRequest>;
|
|
524
|
-
|
|
525
224
|
export interface UpdateTokenResponse {
|
|
526
225
|
message?: string;
|
|
527
226
|
token: Token;
|
|
528
227
|
}
|
|
529
|
-
export const UpdateTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
530
|
-
S.Struct({
|
|
531
|
-
message: S.optional(S.String),
|
|
532
|
-
token: Token,
|
|
533
|
-
}),
|
|
534
|
-
).annotate({ identifier: "UpdateTokenResponse" }) as any as S.Schema<UpdateTokenResponse>;
|
|
535
|
-
|
|
536
228
|
export type CreateTokenError = BadRequest | Conflict | StackitOpError;
|
|
537
229
|
/** create auth token for shared model use create auth token for shared model use */
|
|
538
230
|
export const createToken: API.OperationMethod<
|
|
@@ -541,8 +233,8 @@ export const createToken: API.OperationMethod<
|
|
|
541
233
|
CreateTokenError,
|
|
542
234
|
StackitOpContext
|
|
543
235
|
> = /*@__PURE__*/ API.make(() => ({
|
|
544
|
-
input: CreateTokenRequest
|
|
545
|
-
output: CreateTokenResponse
|
|
236
|
+
input: __S(4, __c1, 0) as any as S.Schema<CreateTokenRequest>,
|
|
237
|
+
output: __S(6, __c1, 2) as any as S.Schema<CreateTokenResponse>,
|
|
546
238
|
errors: [BadRequest, Conflict, UnknownStackitError],
|
|
547
239
|
protocol: StackitProtocol,
|
|
548
240
|
retry: Retry.Retry,
|
|
@@ -556,8 +248,8 @@ export const deleteToken: API.OperationMethod<
|
|
|
556
248
|
DeleteTokenError,
|
|
557
249
|
StackitOpContext
|
|
558
250
|
> = /*@__PURE__*/ API.make(() => ({
|
|
559
|
-
input: DeleteTokenRequest
|
|
560
|
-
output: MessageResponse
|
|
251
|
+
input: __S(12, __c3, 0) as any as S.Schema<DeleteTokenRequest>,
|
|
252
|
+
output: __S(13, __c3, 1) as any as S.Schema<MessageResponse>,
|
|
561
253
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
562
254
|
protocol: StackitProtocol,
|
|
563
255
|
retry: Retry.Retry,
|
|
@@ -571,8 +263,8 @@ export const getChatModel: API.OperationMethod<
|
|
|
571
263
|
GetChatModelError,
|
|
572
264
|
StackitOpContext
|
|
573
265
|
> = /*@__PURE__*/ API.make(() => ({
|
|
574
|
-
input: GetChatModelRequest
|
|
575
|
-
output: GetChatModelResponse
|
|
266
|
+
input: __S(16, __c4, 0) as any as S.Schema<GetChatModelRequest>,
|
|
267
|
+
output: __S(18, __c4, 2) as any as S.Schema<GetChatModelResponse>,
|
|
576
268
|
errors: [BadRequest, UnknownStackitError],
|
|
577
269
|
protocol: StackitProtocol,
|
|
578
270
|
retry: Retry.Retry,
|
|
@@ -586,8 +278,8 @@ export const getEmbeddingModel: API.OperationMethod<
|
|
|
586
278
|
GetEmbeddingModelError,
|
|
587
279
|
StackitOpContext
|
|
588
280
|
> = /*@__PURE__*/ API.make(() => ({
|
|
589
|
-
input: GetEmbeddingModelRequest
|
|
590
|
-
output: GetEmbeddingsModelResp
|
|
281
|
+
input: __S(24, __c6, 0) as any as S.Schema<GetEmbeddingModelRequest>,
|
|
282
|
+
output: __S(26, __c6, 2) as any as S.Schema<GetEmbeddingsModelResp>,
|
|
591
283
|
errors: [BadRequest, UnknownStackitError],
|
|
592
284
|
protocol: StackitProtocol,
|
|
593
285
|
retry: Retry.Retry,
|
|
@@ -601,8 +293,8 @@ export const getToken: API.OperationMethod<
|
|
|
601
293
|
GetTokenError,
|
|
602
294
|
StackitOpContext
|
|
603
295
|
> = /*@__PURE__*/ API.make(() => ({
|
|
604
|
-
input: GetTokenRequest
|
|
605
|
-
output: GetTokenResponse
|
|
296
|
+
input: __S(28, __c7, 0) as any as S.Schema<GetTokenRequest>,
|
|
297
|
+
output: __S(32, __c8, 0) as any as S.Schema<GetTokenResponse>,
|
|
606
298
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
607
299
|
protocol: StackitProtocol,
|
|
608
300
|
retry: Retry.Retry,
|
|
@@ -616,8 +308,8 @@ export const listModels: API.OperationMethod<
|
|
|
616
308
|
ListModelsError,
|
|
617
309
|
StackitOpContext
|
|
618
310
|
> = /*@__PURE__*/ API.make(() => ({
|
|
619
|
-
input: ListModelsRequest
|
|
620
|
-
output: ListModelsResponse
|
|
311
|
+
input: __S(40, __c10, 0) as any as S.Schema<ListModelsRequest>,
|
|
312
|
+
output: __S(43, __c10, 3) as any as S.Schema<ListModelsResponse>,
|
|
621
313
|
errors: [BadRequest, UnknownStackitError],
|
|
622
314
|
protocol: StackitProtocol,
|
|
623
315
|
retry: Retry.Retry,
|
|
@@ -631,8 +323,8 @@ export const listTokens: API.OperationMethod<
|
|
|
631
323
|
ListTokensError,
|
|
632
324
|
StackitOpContext
|
|
633
325
|
> = /*@__PURE__*/ API.make(() => ({
|
|
634
|
-
input: ListTokensRequest
|
|
635
|
-
output: ListTokenResp
|
|
326
|
+
input: __S(44, __c11, 0) as any as S.Schema<ListTokensRequest>,
|
|
327
|
+
output: __S(46, __c11, 2) as any as S.Schema<ListTokenResp>,
|
|
636
328
|
errors: [BadRequest, UnknownStackitError],
|
|
637
329
|
protocol: StackitProtocol,
|
|
638
330
|
retry: Retry.Retry,
|
|
@@ -646,9 +338,326 @@ export const partialUpdateToken: API.OperationMethod<
|
|
|
646
338
|
PartialUpdateTokenError,
|
|
647
339
|
StackitOpContext
|
|
648
340
|
> = /*@__PURE__*/ API.make(() => ({
|
|
649
|
-
input: PartialUpdateTokenRequest
|
|
650
|
-
output: UpdateTokenResponse
|
|
341
|
+
input: __S(1, __c0, 1) as any as S.Schema<PartialUpdateTokenRequest>,
|
|
342
|
+
output: __S(32, __c8, 0) as any as S.Schema<UpdateTokenResponse>,
|
|
651
343
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
652
344
|
protocol: StackitProtocol,
|
|
653
345
|
retry: Retry.Retry,
|
|
654
346
|
}));
|
|
347
|
+
|
|
348
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
349
|
+
function __c0(j: number): any {
|
|
350
|
+
switch (j) {
|
|
351
|
+
case 0:
|
|
352
|
+
return S.Record(S.String, /*@__PURE__*/ S.NullOr(S.String));
|
|
353
|
+
case 1:
|
|
354
|
+
return S.suspend(() =>
|
|
355
|
+
S.Struct({
|
|
356
|
+
projectId: S.String.pipe(T.Label()),
|
|
357
|
+
regionId: S.String.pipe(T.Label()),
|
|
358
|
+
tId: S.String.pipe(T.Label()),
|
|
359
|
+
description: S.optional(S.String),
|
|
360
|
+
labels: S.optional(__S(0, __c0, 0)),
|
|
361
|
+
name: S.optional(S.String),
|
|
362
|
+
}).pipe(
|
|
363
|
+
T.Http({
|
|
364
|
+
method: "PATCH",
|
|
365
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/tokens/{tId}",
|
|
366
|
+
code: 200,
|
|
367
|
+
baseUrl: "https://model-serving.api.stackit.cloud",
|
|
368
|
+
}),
|
|
369
|
+
),
|
|
370
|
+
).annotate({ identifier: "PartialUpdateTokenRequest" });
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
function __c1(j: number): any {
|
|
374
|
+
switch (j) {
|
|
375
|
+
case 0:
|
|
376
|
+
return S.suspend(() =>
|
|
377
|
+
S.Struct({
|
|
378
|
+
projectId: S.String.pipe(T.Label()),
|
|
379
|
+
regionId: S.String.pipe(T.Label()),
|
|
380
|
+
description: S.optional(S.String),
|
|
381
|
+
labels: S.optional(__S(8, __c2, 0)),
|
|
382
|
+
name: S.String,
|
|
383
|
+
ttlDuration: S.optional(S.String),
|
|
384
|
+
}).pipe(
|
|
385
|
+
T.Http({
|
|
386
|
+
method: "POST",
|
|
387
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/tokens",
|
|
388
|
+
code: 200,
|
|
389
|
+
baseUrl: "https://model-serving.api.stackit.cloud",
|
|
390
|
+
}),
|
|
391
|
+
),
|
|
392
|
+
).annotate({ identifier: "CreateTokenRequest" });
|
|
393
|
+
case 1:
|
|
394
|
+
return S.suspend(() =>
|
|
395
|
+
S.Struct({
|
|
396
|
+
content: S.String,
|
|
397
|
+
description: S.optional(S.String),
|
|
398
|
+
id: S.String,
|
|
399
|
+
labels: S.optional(__S(8, __c2, 0)),
|
|
400
|
+
name: S.String,
|
|
401
|
+
region: S.String,
|
|
402
|
+
state: S.String,
|
|
403
|
+
validUntil: S.String,
|
|
404
|
+
}),
|
|
405
|
+
).annotate({ identifier: "TokenCreated" });
|
|
406
|
+
case 2:
|
|
407
|
+
return S.suspend(() =>
|
|
408
|
+
S.Struct({
|
|
409
|
+
message: S.optional(S.String),
|
|
410
|
+
token: __S(5, __c1, 1),
|
|
411
|
+
}),
|
|
412
|
+
).annotate({ identifier: "CreateTokenResponse" });
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
function __c2(j: number): any {
|
|
416
|
+
switch (j) {
|
|
417
|
+
case 0:
|
|
418
|
+
return S.Record(S.String, S.String);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
function __c3(j: number): any {
|
|
422
|
+
switch (j) {
|
|
423
|
+
case 0:
|
|
424
|
+
return S.suspend(() =>
|
|
425
|
+
S.Struct({
|
|
426
|
+
projectId: S.String.pipe(T.Label()),
|
|
427
|
+
regionId: S.String.pipe(T.Label()),
|
|
428
|
+
tId: S.String.pipe(T.Label()),
|
|
429
|
+
}).pipe(
|
|
430
|
+
T.Http({
|
|
431
|
+
method: "DELETE",
|
|
432
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/tokens/{tId}",
|
|
433
|
+
code: 200,
|
|
434
|
+
baseUrl: "https://model-serving.api.stackit.cloud",
|
|
435
|
+
}),
|
|
436
|
+
),
|
|
437
|
+
).annotate({ identifier: "DeleteTokenRequest" });
|
|
438
|
+
case 1:
|
|
439
|
+
return S.suspend(() =>
|
|
440
|
+
S.Struct({
|
|
441
|
+
message: S.optional(S.String),
|
|
442
|
+
}),
|
|
443
|
+
).annotate({ identifier: "MessageResponse" });
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
function __c4(j: number): any {
|
|
447
|
+
switch (j) {
|
|
448
|
+
case 0:
|
|
449
|
+
return S.suspend(() =>
|
|
450
|
+
S.Struct({
|
|
451
|
+
regionId: S.String.pipe(T.Label()),
|
|
452
|
+
modelId: S.String.pipe(T.Label()),
|
|
453
|
+
}).pipe(
|
|
454
|
+
T.Http({
|
|
455
|
+
method: "GET",
|
|
456
|
+
uri: "/v1/regions/{regionId}/chat/models/{modelId}",
|
|
457
|
+
code: 200,
|
|
458
|
+
baseUrl: "https://model-serving.api.stackit.cloud",
|
|
459
|
+
}),
|
|
460
|
+
),
|
|
461
|
+
).annotate({ identifier: "GetChatModelRequest" });
|
|
462
|
+
case 1:
|
|
463
|
+
return S.suspend(() =>
|
|
464
|
+
S.Struct({
|
|
465
|
+
bits: S.optional(S.Number),
|
|
466
|
+
category: S.String,
|
|
467
|
+
contextLength: S.Number,
|
|
468
|
+
description: S.String,
|
|
469
|
+
displayedName: S.String,
|
|
470
|
+
id: S.String,
|
|
471
|
+
name: S.String,
|
|
472
|
+
quantizationMethod: S.optional(S.String),
|
|
473
|
+
region: S.String,
|
|
474
|
+
size: S.Number,
|
|
475
|
+
skus: __S(21, __c5, 1),
|
|
476
|
+
tags: __S(22, __c5, 2),
|
|
477
|
+
url: S.String,
|
|
478
|
+
}),
|
|
479
|
+
).annotate({ identifier: "ChatModelDetails" });
|
|
480
|
+
case 2:
|
|
481
|
+
return S.suspend(() =>
|
|
482
|
+
S.Struct({
|
|
483
|
+
message: S.optional(S.String),
|
|
484
|
+
model: __S(17, __c4, 1),
|
|
485
|
+
}),
|
|
486
|
+
).annotate({ identifier: "GetChatModelResponse" });
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
function __c5(j: number): any {
|
|
490
|
+
switch (j) {
|
|
491
|
+
case 0:
|
|
492
|
+
return S.suspend(() =>
|
|
493
|
+
S.Struct({
|
|
494
|
+
description: S.optional(S.String),
|
|
495
|
+
id: S.String,
|
|
496
|
+
type: S.optional(S.String),
|
|
497
|
+
}),
|
|
498
|
+
).annotate({ identifier: "SKU" });
|
|
499
|
+
case 1:
|
|
500
|
+
return S.Array(__S(20, __c5, 0));
|
|
501
|
+
case 2:
|
|
502
|
+
return S.Array(S.String);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
function __c6(j: number): any {
|
|
506
|
+
switch (j) {
|
|
507
|
+
case 0:
|
|
508
|
+
return S.suspend(() =>
|
|
509
|
+
S.Struct({
|
|
510
|
+
regionId: S.String.pipe(T.Label()),
|
|
511
|
+
modelId: S.String.pipe(T.Label()),
|
|
512
|
+
}).pipe(
|
|
513
|
+
T.Http({
|
|
514
|
+
method: "GET",
|
|
515
|
+
uri: "/v1/regions/{regionId}/embedding/models/{modelId}",
|
|
516
|
+
code: 200,
|
|
517
|
+
baseUrl: "https://model-serving.api.stackit.cloud",
|
|
518
|
+
}),
|
|
519
|
+
),
|
|
520
|
+
).annotate({ identifier: "GetEmbeddingModelRequest" });
|
|
521
|
+
case 1:
|
|
522
|
+
return S.suspend(() =>
|
|
523
|
+
S.Struct({
|
|
524
|
+
category: S.String,
|
|
525
|
+
description: S.String,
|
|
526
|
+
displayedName: S.String,
|
|
527
|
+
id: S.String,
|
|
528
|
+
name: S.String,
|
|
529
|
+
outputDimension: S.Number,
|
|
530
|
+
region: S.String,
|
|
531
|
+
skus: __S(21, __c5, 1),
|
|
532
|
+
tags: S.optional(__S(22, __c5, 2)),
|
|
533
|
+
url: S.String,
|
|
534
|
+
}),
|
|
535
|
+
).annotate({ identifier: "EmbeddingModelDetails" });
|
|
536
|
+
case 2:
|
|
537
|
+
return S.suspend(() =>
|
|
538
|
+
S.Struct({
|
|
539
|
+
message: S.optional(S.String),
|
|
540
|
+
model: __S(25, __c6, 1),
|
|
541
|
+
}),
|
|
542
|
+
).annotate({ identifier: "GetEmbeddingsModelResp" });
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
function __c7(j: number): any {
|
|
546
|
+
switch (j) {
|
|
547
|
+
case 0:
|
|
548
|
+
return S.suspend(() =>
|
|
549
|
+
S.Struct({
|
|
550
|
+
projectId: S.String.pipe(T.Label()),
|
|
551
|
+
regionId: S.String.pipe(T.Label()),
|
|
552
|
+
tId: S.String.pipe(T.Label()),
|
|
553
|
+
}).pipe(
|
|
554
|
+
T.Http({
|
|
555
|
+
method: "GET",
|
|
556
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/tokens/{tId}",
|
|
557
|
+
code: 200,
|
|
558
|
+
baseUrl: "https://model-serving.api.stackit.cloud",
|
|
559
|
+
}),
|
|
560
|
+
),
|
|
561
|
+
).annotate({ identifier: "GetTokenRequest" });
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
function __c8(j: number): any {
|
|
565
|
+
switch (j) {
|
|
566
|
+
case 0:
|
|
567
|
+
return S.suspend(() =>
|
|
568
|
+
S.Struct({
|
|
569
|
+
message: S.optional(S.String),
|
|
570
|
+
token: __S(36, __c9, 0),
|
|
571
|
+
}),
|
|
572
|
+
).annotate({ identifier: "GetTokenResponse" });
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
function __c9(j: number): any {
|
|
576
|
+
switch (j) {
|
|
577
|
+
case 0:
|
|
578
|
+
return S.suspend(() =>
|
|
579
|
+
S.Struct({
|
|
580
|
+
description: S.optional(S.String),
|
|
581
|
+
id: S.String,
|
|
582
|
+
labels: S.optional(__S(8, __c2, 0)),
|
|
583
|
+
name: S.String,
|
|
584
|
+
region: S.String,
|
|
585
|
+
state: S.String,
|
|
586
|
+
validUntil: S.String,
|
|
587
|
+
}),
|
|
588
|
+
).annotate({ identifier: "Token" });
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
function __c10(j: number): any {
|
|
592
|
+
switch (j) {
|
|
593
|
+
case 0:
|
|
594
|
+
return S.suspend(() =>
|
|
595
|
+
S.Struct({
|
|
596
|
+
regionId: S.String.pipe(T.Label()),
|
|
597
|
+
}).pipe(
|
|
598
|
+
T.Http({
|
|
599
|
+
method: "GET",
|
|
600
|
+
uri: "/v1/regions/{regionId}/models",
|
|
601
|
+
code: 200,
|
|
602
|
+
baseUrl: "https://model-serving.api.stackit.cloud",
|
|
603
|
+
}),
|
|
604
|
+
),
|
|
605
|
+
).annotate({ identifier: "ListModelsRequest" });
|
|
606
|
+
case 1:
|
|
607
|
+
return S.suspend(() =>
|
|
608
|
+
S.Struct({
|
|
609
|
+
category: S.String,
|
|
610
|
+
description: S.String,
|
|
611
|
+
displayedName: S.String,
|
|
612
|
+
id: S.String,
|
|
613
|
+
name: S.String,
|
|
614
|
+
region: S.String,
|
|
615
|
+
skus: __S(21, __c5, 1),
|
|
616
|
+
tags: S.optional(__S(22, __c5, 2)),
|
|
617
|
+
type: S.String,
|
|
618
|
+
url: S.String,
|
|
619
|
+
}),
|
|
620
|
+
).annotate({ identifier: "Model" });
|
|
621
|
+
case 2:
|
|
622
|
+
return S.Array(__S(41, __c10, 1));
|
|
623
|
+
case 3:
|
|
624
|
+
return S.suspend(() =>
|
|
625
|
+
S.Struct({
|
|
626
|
+
message: S.optional(S.String),
|
|
627
|
+
models: __S(42, __c10, 2),
|
|
628
|
+
}),
|
|
629
|
+
).annotate({ identifier: "ListModelsResponse" });
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
function __c11(j: number): any {
|
|
633
|
+
switch (j) {
|
|
634
|
+
case 0:
|
|
635
|
+
return S.suspend(() =>
|
|
636
|
+
S.Struct({
|
|
637
|
+
projectId: S.String.pipe(T.Label()),
|
|
638
|
+
regionId: S.String.pipe(T.Label()),
|
|
639
|
+
label_selector: S.optional(S.String.pipe(T.Query())),
|
|
640
|
+
}).pipe(
|
|
641
|
+
T.Http({
|
|
642
|
+
method: "GET",
|
|
643
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/tokens",
|
|
644
|
+
code: 200,
|
|
645
|
+
baseUrl: "https://model-serving.api.stackit.cloud",
|
|
646
|
+
}),
|
|
647
|
+
),
|
|
648
|
+
).annotate({ identifier: "ListTokensRequest" });
|
|
649
|
+
case 1:
|
|
650
|
+
return S.Array(__S(36, __c9, 0));
|
|
651
|
+
case 2:
|
|
652
|
+
return S.suspend(() =>
|
|
653
|
+
S.Struct({
|
|
654
|
+
message: S.optional(S.String),
|
|
655
|
+
tokens: __S(45, __c11, 1),
|
|
656
|
+
}),
|
|
657
|
+
).annotate({ identifier: "ListTokenResp" });
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
661
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
662
|
+
return (__s[i] ??= __L.at(f, j));
|
|
663
|
+
}
|