@distilled.cloud/stackit 1.0.0-rc.20 → 1.0.0-rc.21
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/README.md +13 -2
- package/lib/.lazy.json +1 -1
- package/lib/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +17 -3
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +1 -1
- package/lib/errors.d.ts +8 -0
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/index.d.ts +9 -6
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/pagination.d.ts.map +1 -1
- package/lib/protocol.d.ts +33 -12
- package/lib/protocol.d.ts.map +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/services/alb.d.ts +8 -0
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +26 -26
- package/lib/services/alb.js.map +1 -1
- package/lib/services/alb_waf.d.ts +8 -0
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +31 -31
- package/lib/services/alb_waf.js.map +1 -1
- package/lib/services/authorization.d.ts +13 -0
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +1 -1
- package/lib/services/authorization.js.map +1 -1
- package/lib/services/automation.d.ts +23 -0
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +23 -22
- package/lib/services/automation.js.map +1 -1
- package/lib/services/cdn.d.ts +39 -1
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +31 -30
- package/lib/services/cdn.js.map +1 -1
- package/lib/services/certificates.d.ts +6 -0
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +1 -1
- package/lib/services/certificates.js.map +1 -1
- package/lib/services/cost.d.ts +19 -0
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +1 -1
- package/lib/services/cost.js.map +1 -1
- package/lib/services/dns.d.ts +16 -0
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +40 -40
- package/lib/services/dns.js.map +1 -1
- package/lib/services/iaas.d.ts +17 -0
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +181 -180
- package/lib/services/iaas.js.map +1 -1
- package/lib/services/identity.d.ts +19 -0
- package/lib/services/identity.d.ts.map +1 -1
- package/lib/services/identity.js +1 -1
- package/lib/services/identity.js.map +1 -1
- package/lib/services/index.d.ts +0 -10
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +0 -10
- package/lib/services/kms.d.ts +16 -0
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +41 -40
- package/lib/services/kms.js.map +1 -1
- package/lib/services/load_balancer.d.ts +8 -0
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +27 -27
- package/lib/services/load_balancer.js.map +1 -1
- package/lib/services/logme.d.ts +14 -1
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +36 -35
- package/lib/services/logme.js.map +1 -1
- package/lib/services/logs.d.ts +6 -0
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +34 -34
- package/lib/services/logs.js.map +1 -1
- package/lib/services/mariadb.d.ts +14 -1
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +37 -36
- package/lib/services/mariadb.js.map +1 -1
- package/lib/services/model_experiments.d.ts +20 -0
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +1 -1
- package/lib/services/model_experiments.js.map +1 -1
- package/lib/services/model_serving.d.ts +13 -0
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +1 -1
- package/lib/services/model_serving.js.map +1 -1
- package/lib/services/mongodb_flex.d.ts +19 -0
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +42 -41
- package/lib/services/mongodb_flex.js.map +1 -1
- package/lib/services/object_storage.d.ts +34 -0
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +38 -37
- package/lib/services/object_storage.js.map +1 -1
- package/lib/services/observability.d.ts +34 -8
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +159 -158
- package/lib/services/observability.js.map +1 -1
- package/lib/services/opensearch.d.ts +14 -1
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +37 -36
- package/lib/services/opensearch.js.map +1 -1
- package/lib/services/pim.d.ts +22 -0
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +31 -30
- package/lib/services/pim.js.map +1 -1
- package/lib/services/postgres_flex.d.ts +37 -0
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +48 -47
- package/lib/services/postgres_flex.js.map +1 -1
- package/lib/services/rabbitmq.d.ts +14 -1
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +38 -37
- package/lib/services/rabbitmq.js.map +1 -1
- package/lib/services/registry.d.ts +37 -0
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +1 -1
- package/lib/services/registry.js.map +1 -1
- package/lib/services/resource_manager.d.ts +24 -0
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +36 -35
- package/lib/services/resource_manager.js.map +1 -1
- package/lib/services/run_command.d.ts +12 -0
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +1 -1
- package/lib/services/run_command.js.map +1 -1
- package/lib/services/scf.d.ts +13 -0
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +40 -39
- package/lib/services/scf.js.map +1 -1
- package/lib/services/secrets_manager.d.ts +21 -0
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +42 -41
- package/lib/services/secrets_manager.js.map +1 -1
- package/lib/services/server_backup.d.ts +6 -0
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +28 -28
- package/lib/services/server_backup.js.map +1 -1
- package/lib/services/server_update.d.ts +6 -0
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +1 -1
- package/lib/services/server_update.js.map +1 -1
- package/lib/services/service_account.d.ts +28 -0
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +30 -29
- package/lib/services/service_account.js.map +1 -1
- package/lib/services/service_enablement.d.ts +14 -0
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +1 -1
- package/lib/services/service_enablement.js.map +1 -1
- package/lib/services/sfs.d.ts +33 -0
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +46 -46
- package/lib/services/sfs.js.map +1 -1
- package/lib/services/ske.d.ts +8 -3
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +25 -25
- package/lib/services/ske.js.map +1 -1
- package/lib/services/sqlserverflex.d.ts +34 -0
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +46 -45
- package/lib/services/sqlserverflex.js.map +1 -1
- package/lib/services/stackit_marketplace.d.ts +26 -1
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +26 -25
- package/lib/services/stackit_marketplace.js.map +1 -1
- package/lib/services/telemetry_link.d.ts +12 -0
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +35 -34
- package/lib/services/telemetry_link.js.map +1 -1
- package/lib/services/telemetry_router.d.ts +49 -3
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +33 -31
- package/lib/services/telemetry_router.js.map +1 -1
- package/lib/services/ufw.d.ts +15 -0
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +1 -1
- package/lib/services/ufw.js.map +1 -1
- package/lib/services/valkey.d.ts +14 -1
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +37 -36
- package/lib/services/valkey.js.map +1 -1
- package/lib/services/vpn.d.ts +43 -1
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +43 -42
- package/lib/services/vpn.js.map +1 -1
- package/lib/services.lazy/alb.js +1 -1
- package/lib/services.lazy/alb_waf.js +1 -1
- package/lib/services.lazy/automation.js +1 -1
- package/lib/services.lazy/cdn.js +1 -1
- package/lib/services.lazy/dns.js +1 -1
- package/lib/services.lazy/iaas.js +1 -1
- package/lib/services.lazy/index.js +2 -2
- package/lib/services.lazy/kms.js +1 -1
- package/lib/services.lazy/load_balancer.js +1 -1
- package/lib/services.lazy/logme.js +1 -1
- package/lib/services.lazy/logs.js +1 -1
- package/lib/services.lazy/mariadb.js +1 -1
- package/lib/services.lazy/mongodb_flex.js +1 -1
- package/lib/services.lazy/object_storage.js +1 -1
- package/lib/services.lazy/observability.js +1 -1
- package/lib/services.lazy/opensearch.js +1 -1
- package/lib/services.lazy/pim.js +1 -1
- package/lib/services.lazy/postgres_flex.js +1 -1
- package/lib/services.lazy/rabbitmq.js +1 -1
- package/lib/services.lazy/resource_manager.js +1 -1
- package/lib/services.lazy/scf.js +1 -1
- package/lib/services.lazy/secrets_manager.js +1 -1
- package/lib/services.lazy/server_backup.js +1 -1
- package/lib/services.lazy/service_account.js +1 -1
- package/lib/services.lazy/sfs.js +1 -1
- package/lib/services.lazy/ske.js +1 -1
- package/lib/services.lazy/sqlserverflex.js +1 -1
- package/lib/services.lazy/stackit_marketplace.js +1 -1
- package/lib/services.lazy/telemetry_link.js +1 -1
- package/lib/services.lazy/telemetry_router.js +1 -1
- package/lib/services.lazy/valkey.js +1 -1
- package/lib/services.lazy/vpn.js +1 -1
- package/lib/traits.d.ts.map +1 -1
- package/lib/{services → unstable-services}/dremio.d.ts +19 -4
- package/lib/unstable-services/dremio.d.ts.map +1 -0
- package/lib/unstable-services/dremio.js +2 -0
- package/lib/unstable-services/dremio.js.map +1 -0
- package/lib/{services → unstable-services}/edge.d.ts +13 -1
- package/lib/unstable-services/edge.d.ts.map +1 -0
- package/lib/unstable-services/edge.js +29 -0
- package/lib/unstable-services/edge.js.map +1 -0
- package/lib/unstable-services/functions.d.ts.map +1 -0
- package/lib/unstable-services/functions.js +28 -0
- package/lib/unstable-services/functions.js.map +1 -0
- package/lib/{services → unstable-services}/git.d.ts +42 -1
- package/lib/unstable-services/git.d.ts.map +1 -0
- package/lib/unstable-services/git.js +43 -0
- package/lib/unstable-services/git.js.map +1 -0
- package/lib/unstable-services/index.d.ts +11 -0
- package/lib/unstable-services/index.d.ts.map +1 -0
- package/lib/unstable-services/index.js +10 -0
- package/lib/{services → unstable-services}/intake.d.ts +8 -2
- package/lib/unstable-services/intake.d.ts.map +1 -0
- package/lib/unstable-services/intake.js +31 -0
- package/lib/unstable-services/intake.js.map +1 -0
- package/lib/{services → unstable-services}/lb_ip_lists.d.ts +9 -1
- package/lib/unstable-services/lb_ip_lists.d.ts.map +1 -0
- package/lib/unstable-services/lb_ip_lists.js +2 -0
- package/lib/unstable-services/lb_ip_lists.js.map +1 -0
- package/lib/{services → unstable-services}/mailout.d.ts +95 -126
- package/lib/unstable-services/mailout.d.ts.map +1 -0
- package/lib/unstable-services/mailout.js +30 -0
- package/lib/unstable-services/mailout.js.map +1 -0
- package/lib/{services → unstable-services}/pubsub.d.ts +10 -0
- package/lib/unstable-services/pubsub.d.ts.map +1 -0
- package/lib/unstable-services/pubsub.js +39 -0
- package/lib/unstable-services/pubsub.js.map +1 -0
- package/lib/{services → unstable-services}/sca.d.ts +73 -23
- package/lib/unstable-services/sca.d.ts.map +1 -0
- package/lib/unstable-services/sca.js +41 -0
- package/lib/unstable-services/sca.js.map +1 -0
- package/lib/{services → unstable-services}/workflows.d.ts +29 -1
- package/lib/unstable-services/workflows.d.ts.map +1 -0
- package/lib/unstable-services/workflows.js +30 -0
- package/lib/unstable-services/workflows.js.map +1 -0
- package/lib/unstable-services.lazy/dremio.js +1 -0
- package/lib/{services.lazy → unstable-services.lazy}/edge.js +1 -1
- package/lib/{services.lazy → unstable-services.lazy}/functions.js +1 -1
- package/lib/{services.lazy → unstable-services.lazy}/git.js +2 -2
- package/lib/unstable-services.lazy/index.js +3 -0
- package/lib/{services.lazy → unstable-services.lazy}/intake.js +1 -1
- package/lib/unstable-services.lazy/lb_ip_lists.js +1 -0
- package/lib/unstable-services.lazy/mailout.js +4 -0
- package/lib/{services.lazy → unstable-services.lazy}/pubsub.js +1 -1
- package/lib/{services.lazy → unstable-services.lazy}/sca.js +2 -2
- package/lib/{services.lazy → unstable-services.lazy}/workflows.js +1 -1
- package/package.json +12 -6
- package/src/credentials.ts +44 -7
- package/src/errors.ts +10 -1
- package/src/index.ts +9 -6
- package/src/protocol.ts +108 -127
- package/src/services/alb.ts +35 -14
- package/src/services/alb_waf.ts +41 -17
- package/src/services/authorization.ts +121 -75
- package/src/services/automation.ts +151 -76
- package/src/services/cdn.ts +284 -187
- package/src/services/certificates.ts +17 -6
- package/src/services/cost.ts +75 -17
- package/src/services/dns.ts +219 -149
- package/src/services/iaas.ts +888 -708
- package/src/services/identity.ts +109 -51
- package/src/services/index.ts +0 -10
- package/src/services/kms.ts +185 -118
- package/src/services/load_balancer.ts +35 -14
- package/src/services/logme.ts +181 -123
- package/src/services/logs.ts +43 -19
- package/src/services/mariadb.ts +179 -121
- package/src/services/model_experiments.ts +122 -64
- package/src/services/model_serving.ts +102 -58
- package/src/services/mongodb_flex.ts +196 -131
- package/src/services/object_storage.ts +226 -106
- package/src/services/observability.ts +880 -709
- package/src/services/opensearch.ts +182 -124
- package/src/services/pim.ts +166 -104
- package/src/services/postgres_flex.ts +291 -170
- package/src/services/rabbitmq.ts +188 -130
- package/src/services/registry.ts +146 -40
- package/src/services/resource_manager.ts +180 -110
- package/src/services/run_command.ts +73 -37
- package/src/services/scf.ts +178 -119
- package/src/services/secrets_manager.ts +198 -129
- package/src/services/server_backup.ts +39 -17
- package/src/services/server_update.ts +31 -13
- package/src/services/service_account.ts +180 -85
- package/src/services/service_enablement.ts +64 -28
- package/src/services/sfs.ts +265 -163
- package/src/services/ske.ts +39 -20
- package/src/services/sqlserverflex.ts +290 -175
- package/src/services/stackit_marketplace.ts +138 -70
- package/src/services/telemetry_link.ts +151 -100
- package/src/services/telemetry_router.ts +241 -109
- package/src/services/ufw.ts +97 -50
- package/src/services/valkey.ts +179 -121
- package/src/services/vpn.ts +305 -194
- package/src/{services → unstable-services}/dremio.ts +113 -74
- package/src/{services → unstable-services}/edge.ts +113 -72
- package/src/{services → unstable-services}/functions.ts +31 -16
- package/src/{services → unstable-services}/git.ts +285 -133
- package/src/unstable-services/index.ts +11 -0
- package/src/{services → unstable-services}/intake.ts +41 -20
- package/src/{services → unstable-services}/lb_ip_lists.ts +20 -7
- package/src/{services → unstable-services}/mailout.ts +290 -381
- package/src/{services → unstable-services}/pubsub.ts +47 -19
- package/src/{services → unstable-services}/sca.ts +349 -172
- package/src/{services → unstable-services}/workflows.ts +149 -76
- package/lib/index.lazy.js +0 -7
- package/lib/index.lazy.js.map +0 -1
- package/lib/services/dremio.d.ts.map +0 -1
- package/lib/services/dremio.js +0 -2
- package/lib/services/dremio.js.map +0 -1
- package/lib/services/edge.d.ts.map +0 -1
- package/lib/services/edge.js +0 -29
- package/lib/services/edge.js.map +0 -1
- package/lib/services/functions.d.ts.map +0 -1
- package/lib/services/functions.js +0 -28
- package/lib/services/functions.js.map +0 -1
- package/lib/services/git.d.ts.map +0 -1
- package/lib/services/git.js +0 -41
- package/lib/services/git.js.map +0 -1
- package/lib/services/intake.d.ts.map +0 -1
- package/lib/services/intake.js +0 -31
- package/lib/services/intake.js.map +0 -1
- package/lib/services/lb_ip_lists.d.ts.map +0 -1
- package/lib/services/lb_ip_lists.js +0 -2
- package/lib/services/lb_ip_lists.js.map +0 -1
- package/lib/services/mailout.d.ts.map +0 -1
- package/lib/services/mailout.js +0 -33
- package/lib/services/mailout.js.map +0 -1
- package/lib/services/pubsub.d.ts.map +0 -1
- package/lib/services/pubsub.js +0 -39
- package/lib/services/pubsub.js.map +0 -1
- package/lib/services/sca.d.ts.map +0 -1
- package/lib/services/sca.js +0 -35
- package/lib/services/sca.js.map +0 -1
- package/lib/services/workflows.d.ts.map +0 -1
- package/lib/services/workflows.js +0 -29
- package/lib/services/workflows.js.map +0 -1
- package/lib/services.lazy/dremio.js +0 -1
- package/lib/services.lazy/lb_ip_lists.js +0 -1
- package/lib/services.lazy/mailout.js +0 -4
- /package/lib/{services → unstable-services}/functions.d.ts +0 -0
|
@@ -3,7 +3,7 @@ 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
4
|
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
5
|
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
|
-
import {
|
|
6
|
+
import { StackitServiceErrors } from "../errors.ts";
|
|
7
7
|
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
8
8
|
import * as Retry from "../retry.ts";
|
|
9
9
|
import * as T from "../traits.ts";
|
|
@@ -30,27 +30,48 @@ export class BadRequest
|
|
|
30
30
|
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
31
31
|
code: S.Number,
|
|
32
32
|
message: S.String,
|
|
33
|
+
body: /*@__PURE__*/ S.optional(
|
|
34
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)), S.String]),
|
|
35
|
+
),
|
|
36
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
33
37
|
}).pipe(C.withBadRequestError),
|
|
34
38
|
[{ status: 400 }],
|
|
35
|
-
)
|
|
39
|
+
)
|
|
40
|
+
{
|
|
41
|
+
declare readonly body?: ErrorMessageResponse | string;
|
|
42
|
+
}
|
|
36
43
|
|
|
37
44
|
export class Conflict
|
|
38
45
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
39
46
|
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
40
47
|
code: S.Number,
|
|
41
48
|
message: S.String,
|
|
49
|
+
body: /*@__PURE__*/ S.optional(
|
|
50
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)), S.String]),
|
|
51
|
+
),
|
|
52
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
42
53
|
}).pipe(C.withConflictError),
|
|
43
54
|
[{ status: 409 }],
|
|
44
|
-
)
|
|
55
|
+
)
|
|
56
|
+
{
|
|
57
|
+
declare readonly body?: ErrorMessageResponse | string;
|
|
58
|
+
}
|
|
45
59
|
|
|
46
60
|
export class NotFound
|
|
47
61
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
48
62
|
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
49
63
|
code: S.Number,
|
|
50
64
|
message: S.String,
|
|
65
|
+
body: /*@__PURE__*/ S.optional(
|
|
66
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)), S.String]),
|
|
67
|
+
),
|
|
68
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
51
69
|
}).pipe(C.withBadRequestError),
|
|
52
70
|
[{ status: 404 }],
|
|
53
|
-
)
|
|
71
|
+
)
|
|
72
|
+
{
|
|
73
|
+
declare readonly body?: ErrorMessageResponse | string;
|
|
74
|
+
}
|
|
54
75
|
|
|
55
76
|
/** 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. */
|
|
56
77
|
export type Labels = { [key: string]: string | undefined };
|
|
@@ -238,6 +259,10 @@ export interface UpdateTokenResponse {
|
|
|
238
259
|
message?: string | undefined;
|
|
239
260
|
token: Token;
|
|
240
261
|
}
|
|
262
|
+
export interface ErrorMessageResponse {
|
|
263
|
+
error?: string | undefined;
|
|
264
|
+
message?: string | undefined;
|
|
265
|
+
}
|
|
241
266
|
export type CreateTokenError = BadRequest | Conflict | StackitOpError;
|
|
242
267
|
/** create auth token for shared model use create auth token for shared model use */
|
|
243
268
|
export const createToken: API.OperationMethod<
|
|
@@ -246,9 +271,10 @@ export const createToken: API.OperationMethod<
|
|
|
246
271
|
CreateTokenError,
|
|
247
272
|
StackitOpContext
|
|
248
273
|
> = /*@__PURE__*/ API.make(() => ({
|
|
249
|
-
input: __S(
|
|
250
|
-
output: __S(
|
|
251
|
-
errors: [BadRequest, Conflict
|
|
274
|
+
input: __S(8, __c2, 0) as any as S.Schema<CreateTokenRequest>,
|
|
275
|
+
output: __S(10, __c2, 2) as any as S.Schema<CreateTokenResponse>,
|
|
276
|
+
errors: [BadRequest, Conflict],
|
|
277
|
+
serviceErrors: StackitServiceErrors,
|
|
252
278
|
protocol: StackitProtocol,
|
|
253
279
|
retry: Retry.Retry,
|
|
254
280
|
telemetry: TELEMETRY,
|
|
@@ -263,9 +289,10 @@ export const deleteToken: API.OperationMethod<
|
|
|
263
289
|
DeleteTokenError,
|
|
264
290
|
StackitOpContext
|
|
265
291
|
> = /*@__PURE__*/ API.make(() => ({
|
|
266
|
-
input: __S(
|
|
267
|
-
output: __S(
|
|
268
|
-
errors: [BadRequest, NotFound
|
|
292
|
+
input: __S(16, __c4, 0) as any as S.Schema<DeleteTokenRequest>,
|
|
293
|
+
output: __S(17, __c4, 1) as any as S.Schema<MessageResponse>,
|
|
294
|
+
errors: [BadRequest, NotFound],
|
|
295
|
+
serviceErrors: StackitServiceErrors,
|
|
269
296
|
protocol: StackitProtocol,
|
|
270
297
|
retry: Retry.Retry,
|
|
271
298
|
telemetry: TELEMETRY,
|
|
@@ -280,9 +307,10 @@ export const getChatModel: API.OperationMethod<
|
|
|
280
307
|
GetChatModelError,
|
|
281
308
|
StackitOpContext
|
|
282
309
|
> = /*@__PURE__*/ API.make(() => ({
|
|
283
|
-
input: __S(
|
|
284
|
-
output: __S(
|
|
285
|
-
errors: [BadRequest
|
|
310
|
+
input: __S(20, __c5, 0) as any as S.Schema<GetChatModelRequest>,
|
|
311
|
+
output: __S(22, __c5, 2) as any as S.Schema<GetChatModelResponse>,
|
|
312
|
+
errors: [BadRequest],
|
|
313
|
+
serviceErrors: StackitServiceErrors,
|
|
286
314
|
protocol: StackitProtocol,
|
|
287
315
|
retry: Retry.Retry,
|
|
288
316
|
telemetry: TELEMETRY,
|
|
@@ -297,9 +325,10 @@ export const getEmbeddingModel: API.OperationMethod<
|
|
|
297
325
|
GetEmbeddingModelError,
|
|
298
326
|
StackitOpContext
|
|
299
327
|
> = /*@__PURE__*/ API.make(() => ({
|
|
300
|
-
input: __S(
|
|
301
|
-
output: __S(
|
|
302
|
-
errors: [BadRequest
|
|
328
|
+
input: __S(28, __c7, 0) as any as S.Schema<GetEmbeddingModelRequest>,
|
|
329
|
+
output: __S(30, __c7, 2) as any as S.Schema<GetEmbeddingsModelResp>,
|
|
330
|
+
errors: [BadRequest],
|
|
331
|
+
serviceErrors: StackitServiceErrors,
|
|
303
332
|
protocol: StackitProtocol,
|
|
304
333
|
retry: Retry.Retry,
|
|
305
334
|
telemetry: TELEMETRY,
|
|
@@ -314,9 +343,10 @@ export const getToken: API.OperationMethod<
|
|
|
314
343
|
GetTokenError,
|
|
315
344
|
StackitOpContext
|
|
316
345
|
> = /*@__PURE__*/ API.make(() => ({
|
|
317
|
-
input: __S(
|
|
318
|
-
output: __S(
|
|
319
|
-
errors: [BadRequest, NotFound
|
|
346
|
+
input: __S(32, __c8, 0) as any as S.Schema<GetTokenRequest>,
|
|
347
|
+
output: __S(36, __c9, 0) as any as S.Schema<GetTokenResponse>,
|
|
348
|
+
errors: [BadRequest, NotFound],
|
|
349
|
+
serviceErrors: StackitServiceErrors,
|
|
320
350
|
protocol: StackitProtocol,
|
|
321
351
|
retry: Retry.Retry,
|
|
322
352
|
telemetry: TELEMETRY,
|
|
@@ -331,9 +361,10 @@ export const listModels: API.OperationMethod<
|
|
|
331
361
|
ListModelsError,
|
|
332
362
|
StackitOpContext
|
|
333
363
|
> = /*@__PURE__*/ API.make(() => ({
|
|
334
|
-
input: __S(
|
|
335
|
-
output: __S(
|
|
336
|
-
errors: [BadRequest
|
|
364
|
+
input: __S(44, __c11, 0) as any as S.Schema<ListModelsRequest>,
|
|
365
|
+
output: __S(47, __c11, 3) as any as S.Schema<ListModelsResponse>,
|
|
366
|
+
errors: [BadRequest],
|
|
367
|
+
serviceErrors: StackitServiceErrors,
|
|
337
368
|
protocol: StackitProtocol,
|
|
338
369
|
retry: Retry.Retry,
|
|
339
370
|
telemetry: TELEMETRY,
|
|
@@ -348,9 +379,10 @@ export const listTokens: API.OperationMethod<
|
|
|
348
379
|
ListTokensError,
|
|
349
380
|
StackitOpContext
|
|
350
381
|
> = /*@__PURE__*/ API.make(() => ({
|
|
351
|
-
input: __S(
|
|
352
|
-
output: __S(
|
|
353
|
-
errors: [BadRequest
|
|
382
|
+
input: __S(48, __c12, 0) as any as S.Schema<ListTokensRequest>,
|
|
383
|
+
output: __S(50, __c12, 2) as any as S.Schema<ListTokenResp>,
|
|
384
|
+
errors: [BadRequest],
|
|
385
|
+
serviceErrors: StackitServiceErrors,
|
|
354
386
|
protocol: StackitProtocol,
|
|
355
387
|
retry: Retry.Retry,
|
|
356
388
|
telemetry: TELEMETRY,
|
|
@@ -365,9 +397,10 @@ export const partialUpdateToken: API.OperationMethod<
|
|
|
365
397
|
PartialUpdateTokenError,
|
|
366
398
|
StackitOpContext
|
|
367
399
|
> = /*@__PURE__*/ API.make(() => ({
|
|
368
|
-
input: __S(
|
|
369
|
-
output: __S(
|
|
370
|
-
errors: [BadRequest, NotFound
|
|
400
|
+
input: __S(5, __c1, 1) as any as S.Schema<PartialUpdateTokenRequest>,
|
|
401
|
+
output: __S(36, __c9, 0) as any as S.Schema<UpdateTokenResponse>,
|
|
402
|
+
errors: [BadRequest, NotFound],
|
|
403
|
+
serviceErrors: StackitServiceErrors,
|
|
371
404
|
protocol: StackitProtocol,
|
|
372
405
|
retry: Retry.Retry,
|
|
373
406
|
telemetry: TELEMETRY,
|
|
@@ -376,6 +409,17 @@ export const partialUpdateToken: API.OperationMethod<
|
|
|
376
409
|
|
|
377
410
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
378
411
|
function __c0(j: number): any {
|
|
412
|
+
switch (j) {
|
|
413
|
+
case 0:
|
|
414
|
+
return S.suspend(() =>
|
|
415
|
+
S.Struct({
|
|
416
|
+
error: S.optional(S.String),
|
|
417
|
+
message: S.optional(S.String),
|
|
418
|
+
}),
|
|
419
|
+
).annotate({ identifier: "ErrorMessageResponse" });
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
function __c1(j: number): any {
|
|
379
423
|
switch (j) {
|
|
380
424
|
case 0:
|
|
381
425
|
return S.Record(S.String, /*@__PURE__*/ S.NullOr(S.String));
|
|
@@ -386,7 +430,7 @@ function __c0(j: number): any {
|
|
|
386
430
|
regionId: S.String.pipe(T.Label()),
|
|
387
431
|
tId: S.String.pipe(T.Label()),
|
|
388
432
|
description: S.optional(S.String),
|
|
389
|
-
labels: S.optional(__S(
|
|
433
|
+
labels: S.optional(__S(4, __c1, 0)),
|
|
390
434
|
name: S.optional(S.String),
|
|
391
435
|
}).pipe(
|
|
392
436
|
T.Http({
|
|
@@ -399,7 +443,7 @@ function __c0(j: number): any {
|
|
|
399
443
|
).annotate({ identifier: "PartialUpdateTokenRequest" });
|
|
400
444
|
}
|
|
401
445
|
}
|
|
402
|
-
function
|
|
446
|
+
function __c2(j: number): any {
|
|
403
447
|
switch (j) {
|
|
404
448
|
case 0:
|
|
405
449
|
return S.suspend(() =>
|
|
@@ -407,7 +451,7 @@ function __c1(j: number): any {
|
|
|
407
451
|
projectId: S.String.pipe(T.Label()),
|
|
408
452
|
regionId: S.String.pipe(T.Label()),
|
|
409
453
|
description: S.optional(S.String),
|
|
410
|
-
labels: S.optional(__S(
|
|
454
|
+
labels: S.optional(__S(12, __c3, 0)),
|
|
411
455
|
name: S.String,
|
|
412
456
|
ttlDuration: S.optional(S.String),
|
|
413
457
|
}).pipe(
|
|
@@ -425,7 +469,7 @@ function __c1(j: number): any {
|
|
|
425
469
|
content: S.String,
|
|
426
470
|
description: S.optional(S.String),
|
|
427
471
|
id: S.String,
|
|
428
|
-
labels: S.optional(__S(
|
|
472
|
+
labels: S.optional(__S(12, __c3, 0)),
|
|
429
473
|
name: S.String,
|
|
430
474
|
region: S.String,
|
|
431
475
|
state: S.String,
|
|
@@ -436,18 +480,18 @@ function __c1(j: number): any {
|
|
|
436
480
|
return S.suspend(() =>
|
|
437
481
|
S.Struct({
|
|
438
482
|
message: S.optional(S.String),
|
|
439
|
-
token: __S(
|
|
483
|
+
token: __S(9, __c2, 1),
|
|
440
484
|
}),
|
|
441
485
|
).annotate({ identifier: "CreateTokenResponse" });
|
|
442
486
|
}
|
|
443
487
|
}
|
|
444
|
-
function
|
|
488
|
+
function __c3(j: number): any {
|
|
445
489
|
switch (j) {
|
|
446
490
|
case 0:
|
|
447
491
|
return S.Record(S.String, S.String);
|
|
448
492
|
}
|
|
449
493
|
}
|
|
450
|
-
function
|
|
494
|
+
function __c4(j: number): any {
|
|
451
495
|
switch (j) {
|
|
452
496
|
case 0:
|
|
453
497
|
return S.suspend(() =>
|
|
@@ -472,7 +516,7 @@ function __c3(j: number): any {
|
|
|
472
516
|
).annotate({ identifier: "MessageResponse" });
|
|
473
517
|
}
|
|
474
518
|
}
|
|
475
|
-
function
|
|
519
|
+
function __c5(j: number): any {
|
|
476
520
|
switch (j) {
|
|
477
521
|
case 0:
|
|
478
522
|
return S.suspend(() =>
|
|
@@ -501,8 +545,8 @@ function __c4(j: number): any {
|
|
|
501
545
|
quantizationMethod: S.optional(S.String),
|
|
502
546
|
region: S.String,
|
|
503
547
|
size: S.Number,
|
|
504
|
-
skus: __S(
|
|
505
|
-
tags: __S(
|
|
548
|
+
skus: __S(25, __c6, 1),
|
|
549
|
+
tags: __S(26, __c6, 2),
|
|
506
550
|
url: S.String,
|
|
507
551
|
}),
|
|
508
552
|
).annotate({ identifier: "ChatModelDetails" });
|
|
@@ -510,12 +554,12 @@ function __c4(j: number): any {
|
|
|
510
554
|
return S.suspend(() =>
|
|
511
555
|
S.Struct({
|
|
512
556
|
message: S.optional(S.String),
|
|
513
|
-
model: __S(
|
|
557
|
+
model: __S(21, __c5, 1),
|
|
514
558
|
}),
|
|
515
559
|
).annotate({ identifier: "GetChatModelResponse" });
|
|
516
560
|
}
|
|
517
561
|
}
|
|
518
|
-
function
|
|
562
|
+
function __c6(j: number): any {
|
|
519
563
|
switch (j) {
|
|
520
564
|
case 0:
|
|
521
565
|
return S.suspend(() =>
|
|
@@ -526,12 +570,12 @@ function __c5(j: number): any {
|
|
|
526
570
|
}),
|
|
527
571
|
).annotate({ identifier: "SKU" });
|
|
528
572
|
case 1:
|
|
529
|
-
return S.Array(__S(
|
|
573
|
+
return S.Array(__S(24, __c6, 0));
|
|
530
574
|
case 2:
|
|
531
575
|
return S.Array(S.String);
|
|
532
576
|
}
|
|
533
577
|
}
|
|
534
|
-
function
|
|
578
|
+
function __c7(j: number): any {
|
|
535
579
|
switch (j) {
|
|
536
580
|
case 0:
|
|
537
581
|
return S.suspend(() =>
|
|
@@ -557,8 +601,8 @@ function __c6(j: number): any {
|
|
|
557
601
|
name: S.String,
|
|
558
602
|
outputDimension: S.Number,
|
|
559
603
|
region: S.String,
|
|
560
|
-
skus: __S(
|
|
561
|
-
tags: S.optional(__S(
|
|
604
|
+
skus: __S(25, __c6, 1),
|
|
605
|
+
tags: S.optional(__S(26, __c6, 2)),
|
|
562
606
|
url: S.String,
|
|
563
607
|
}),
|
|
564
608
|
).annotate({ identifier: "EmbeddingModelDetails" });
|
|
@@ -566,12 +610,12 @@ function __c6(j: number): any {
|
|
|
566
610
|
return S.suspend(() =>
|
|
567
611
|
S.Struct({
|
|
568
612
|
message: S.optional(S.String),
|
|
569
|
-
model: __S(
|
|
613
|
+
model: __S(29, __c7, 1),
|
|
570
614
|
}),
|
|
571
615
|
).annotate({ identifier: "GetEmbeddingsModelResp" });
|
|
572
616
|
}
|
|
573
617
|
}
|
|
574
|
-
function
|
|
618
|
+
function __c8(j: number): any {
|
|
575
619
|
switch (j) {
|
|
576
620
|
case 0:
|
|
577
621
|
return S.suspend(() =>
|
|
@@ -590,25 +634,25 @@ function __c7(j: number): any {
|
|
|
590
634
|
).annotate({ identifier: "GetTokenRequest" });
|
|
591
635
|
}
|
|
592
636
|
}
|
|
593
|
-
function
|
|
637
|
+
function __c9(j: number): any {
|
|
594
638
|
switch (j) {
|
|
595
639
|
case 0:
|
|
596
640
|
return S.suspend(() =>
|
|
597
641
|
S.Struct({
|
|
598
642
|
message: S.optional(S.String),
|
|
599
|
-
token: __S(
|
|
643
|
+
token: __S(40, __c10, 0),
|
|
600
644
|
}),
|
|
601
645
|
).annotate({ identifier: "GetTokenResponse" });
|
|
602
646
|
}
|
|
603
647
|
}
|
|
604
|
-
function
|
|
648
|
+
function __c10(j: number): any {
|
|
605
649
|
switch (j) {
|
|
606
650
|
case 0:
|
|
607
651
|
return S.suspend(() =>
|
|
608
652
|
S.Struct({
|
|
609
653
|
description: S.optional(S.String),
|
|
610
654
|
id: S.String,
|
|
611
|
-
labels: S.optional(__S(
|
|
655
|
+
labels: S.optional(__S(12, __c3, 0)),
|
|
612
656
|
name: S.String,
|
|
613
657
|
region: S.String,
|
|
614
658
|
state: S.String,
|
|
@@ -617,7 +661,7 @@ function __c9(j: number): any {
|
|
|
617
661
|
).annotate({ identifier: "Token" });
|
|
618
662
|
}
|
|
619
663
|
}
|
|
620
|
-
function
|
|
664
|
+
function __c11(j: number): any {
|
|
621
665
|
switch (j) {
|
|
622
666
|
case 0:
|
|
623
667
|
return S.suspend(() =>
|
|
@@ -641,24 +685,24 @@ function __c10(j: number): any {
|
|
|
641
685
|
id: S.String,
|
|
642
686
|
name: S.String,
|
|
643
687
|
region: S.String,
|
|
644
|
-
skus: __S(
|
|
645
|
-
tags: S.optional(__S(
|
|
688
|
+
skus: __S(25, __c6, 1),
|
|
689
|
+
tags: S.optional(__S(26, __c6, 2)),
|
|
646
690
|
type: S.String,
|
|
647
691
|
url: S.String,
|
|
648
692
|
}),
|
|
649
693
|
).annotate({ identifier: "Model" });
|
|
650
694
|
case 2:
|
|
651
|
-
return S.Array(__S(
|
|
695
|
+
return S.Array(__S(45, __c11, 1));
|
|
652
696
|
case 3:
|
|
653
697
|
return S.suspend(() =>
|
|
654
698
|
S.Struct({
|
|
655
699
|
message: S.optional(S.String),
|
|
656
|
-
models: __S(
|
|
700
|
+
models: __S(46, __c11, 2),
|
|
657
701
|
}),
|
|
658
702
|
).annotate({ identifier: "ListModelsResponse" });
|
|
659
703
|
}
|
|
660
704
|
}
|
|
661
|
-
function
|
|
705
|
+
function __c12(j: number): any {
|
|
662
706
|
switch (j) {
|
|
663
707
|
case 0:
|
|
664
708
|
return S.suspend(() =>
|
|
@@ -676,12 +720,12 @@ function __c11(j: number): any {
|
|
|
676
720
|
),
|
|
677
721
|
).annotate({ identifier: "ListTokensRequest" });
|
|
678
722
|
case 1:
|
|
679
|
-
return S.Array(__S(
|
|
723
|
+
return S.Array(__S(40, __c10, 0));
|
|
680
724
|
case 2:
|
|
681
725
|
return S.suspend(() =>
|
|
682
726
|
S.Struct({
|
|
683
727
|
message: S.optional(S.String),
|
|
684
|
-
tokens: __S(
|
|
728
|
+
tokens: __S(49, __c12, 1),
|
|
685
729
|
}),
|
|
686
730
|
).annotate({ identifier: "ListTokenResp" });
|
|
687
731
|
}
|