@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
package/lib/services/sca.js
CHANGED
|
@@ -1,445 +1,73 @@
|
|
|
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";
|
|
5
|
-
import * as
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
6
|
import { UnknownStackitError } from "../errors.js";
|
|
7
7
|
import { StackitProtocol } from "../protocol.js";
|
|
8
8
|
import * as Retry from "../retry.js";
|
|
9
9
|
import * as T from "../traits.js";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}).pipe(C.withBadRequestError), [{ status: 404 }]) {
|
|
27
|
-
}
|
|
28
|
-
export const ContainerArgsList = /*@__PURE__*/ S.Array(S.String);
|
|
29
|
-
export const ContainerCommandList = /*@__PURE__*/ S.Array(S.String);
|
|
30
|
-
export const EnvVarType = S.String;
|
|
31
|
-
export const EnvVar = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
32
|
-
key: S.String,
|
|
33
|
-
origin: S.optional(EnvVarType),
|
|
34
|
-
value: S.String,
|
|
35
|
-
})).annotate({ identifier: "EnvVar" });
|
|
36
|
-
export const ContainerEnvironmentVariablesList = /*@__PURE__*/ S.Array(EnvVar);
|
|
37
|
-
export const Container = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
38
|
-
args: S.optional(ContainerArgsList),
|
|
39
|
-
command: S.optional(ContainerCommandList),
|
|
40
|
-
cpu: S.optional(S.Number),
|
|
41
|
-
environmentVariables: S.optional(ContainerEnvironmentVariablesList),
|
|
42
|
-
image: S.String,
|
|
43
|
-
memory: S.optional(S.Number),
|
|
44
|
-
name: S.String,
|
|
45
|
-
})).annotate({ identifier: "Container" });
|
|
46
|
-
export const CreateApplicationRequestContainersList = /*@__PURE__*/ S.Array(Container);
|
|
47
|
-
export const NetworkIngressAclList = /*@__PURE__*/ S.Array(S.String);
|
|
48
|
-
export const Network = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
49
|
-
ingressAcl: S.optional(NetworkIngressAclList),
|
|
50
|
-
internalPort: S.optional(S.Number),
|
|
51
|
-
port: S.optional(S.Number),
|
|
52
|
-
publicIngress: S.optional(S.Boolean),
|
|
53
|
-
})).annotate({ identifier: "Network" });
|
|
54
|
-
export const ApplicationRegistryCredentialsAuth = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
55
|
-
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
56
|
-
url: S.String,
|
|
57
|
-
user: S.String,
|
|
58
|
-
})).annotate({
|
|
59
|
-
identifier: "ApplicationRegistryCredentialsAuth",
|
|
60
|
-
});
|
|
61
|
-
export const ApplicationRegistryAuthType = S.String;
|
|
62
|
-
export const ApplicationRegistry = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
63
|
-
credentials: S.optional(ApplicationRegistryCredentialsAuth),
|
|
64
|
-
type: ApplicationRegistryAuthType,
|
|
65
|
-
})).annotate({ identifier: "ApplicationRegistry" });
|
|
66
|
-
export const CreateApplicationRequestRegistryList = /*@__PURE__*/ S.Array(ApplicationRegistry);
|
|
67
|
-
export const CurrentStatus = S.String;
|
|
68
|
-
export const RuntimeStatusInput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
69
|
-
currentStatus: S.optional(CurrentStatus),
|
|
70
|
-
})).annotate({ identifier: "RuntimeStatusInput" });
|
|
71
|
-
export const CustomRuleParameter = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
72
|
-
name: S.String,
|
|
73
|
-
value: S.String,
|
|
74
|
-
})).annotate({ identifier: "CustomRuleParameter" });
|
|
75
|
-
export const CustomScaleRuleParametersList = /*@__PURE__*/ S.Array(CustomRuleParameter);
|
|
76
|
-
export const CustomRuleSecretMapping = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
77
|
-
parameter: S.String,
|
|
78
|
-
secret: S.String.pipe(T.SensitiveValue({})),
|
|
79
|
-
})).annotate({ identifier: "CustomRuleSecretMapping" });
|
|
80
|
-
export const CustomScaleRuleSecretsMappingList = /*@__PURE__*/ S.Array(CustomRuleSecretMapping);
|
|
81
|
-
export const CustomScaleRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
82
|
-
parameters: S.optional(CustomScaleRuleParametersList),
|
|
83
|
-
secretsMapping: S.optional(CustomScaleRuleSecretsMappingList),
|
|
84
|
-
type: S.String,
|
|
85
|
-
})).annotate({ identifier: "CustomScaleRule" });
|
|
86
|
-
export const HttpScaleRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
87
|
-
concurrency: S.optional(S.Number),
|
|
88
|
-
rps: S.optional(S.Number),
|
|
89
|
-
})).annotate({ identifier: "HttpScaleRule" });
|
|
90
|
-
export const RuleType = S.String;
|
|
91
|
-
export const ScaleRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
92
|
-
customRule: S.optional(CustomScaleRule),
|
|
93
|
-
httpRule: S.optional(HttpScaleRule),
|
|
94
|
-
name: S.String,
|
|
95
|
-
type: RuleType,
|
|
96
|
-
})).annotate({ identifier: "ScaleRule" });
|
|
97
|
-
export const AutoScalingRulesList = /*@__PURE__*/ S.Array(ScaleRule);
|
|
98
|
-
export const AutoScaling = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
99
|
-
allowScaleToZero: S.optional(S.Boolean),
|
|
100
|
-
maxInstances: S.Number,
|
|
101
|
-
minInstances: S.Number,
|
|
102
|
-
rules: AutoScalingRulesList,
|
|
103
|
-
})).annotate({ identifier: "AutoScaling" });
|
|
104
|
-
export const ManualScaling = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
105
|
-
instances: S.Number,
|
|
106
|
-
})).annotate({ identifier: "ManualScaling" });
|
|
107
|
-
export const ScalingType = S.String;
|
|
108
|
-
export const Scaling = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
109
|
-
autoScaling: S.optional(AutoScaling),
|
|
110
|
-
manualScaling: S.optional(ManualScaling),
|
|
111
|
-
type: ScalingType,
|
|
112
|
-
})).annotate({ identifier: "Scaling" });
|
|
113
|
-
export const ApplicationSecret = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
114
|
-
key: S.String,
|
|
115
|
-
value: S.optional(S.String),
|
|
116
|
-
})).annotate({ identifier: "ApplicationSecret" });
|
|
117
|
-
export const CreateApplicationRequestSecretsList = /*@__PURE__*/ S.Array(ApplicationSecret);
|
|
118
|
-
export const CreateApplicationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
119
|
-
projectId: S.String.pipe(T.Label()),
|
|
120
|
-
environmentId: S.String.pipe(T.Label()),
|
|
121
|
-
containers: CreateApplicationRequestContainersList,
|
|
122
|
-
displayName: S.String,
|
|
123
|
-
network: S.optional(Network),
|
|
124
|
-
registry: S.optional(CreateApplicationRequestRegistryList),
|
|
125
|
-
runtimeStatus: S.optional(RuntimeStatusInput),
|
|
126
|
-
scaling: Scaling,
|
|
127
|
-
secrets: S.optional(CreateApplicationRequestSecretsList),
|
|
128
|
-
stopped: S.optional(S.Boolean),
|
|
129
|
-
}).pipe(T.Http({
|
|
130
|
-
method: "POST",
|
|
131
|
-
uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications",
|
|
132
|
-
code: 200,
|
|
133
|
-
baseUrl: "https://sca.api.{region}stackit.cloud",
|
|
134
|
-
}))).annotate({ identifier: "CreateApplicationRequest" });
|
|
135
|
-
export const ApplicationContainersList = /*@__PURE__*/ S.Array(Container);
|
|
136
|
-
export const ApplicationRegistryList = /*@__PURE__*/ S.Array(ApplicationRegistry);
|
|
137
|
-
export const RuntimeStatusFailureReasonsList = /*@__PURE__*/ S.Array(S.String);
|
|
138
|
-
export const InstanceStatus = S.String;
|
|
139
|
-
export const Instance = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
140
|
-
name: S.optional(S.String),
|
|
141
|
-
status: S.optional(InstanceStatus),
|
|
142
|
-
})).annotate({ identifier: "Instance" });
|
|
143
|
-
export const RuntimeStatusInstancesList = /*@__PURE__*/ S.Array(Instance);
|
|
144
|
-
export const RuntimeStatusUrlsList = /*@__PURE__*/ S.Array(S.String);
|
|
145
|
-
export const RuntimeStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
146
|
-
currentStatus: S.optional(CurrentStatus),
|
|
147
|
-
failureReasons: S.optional(RuntimeStatusFailureReasonsList),
|
|
148
|
-
instances: S.optional(RuntimeStatusInstancesList),
|
|
149
|
-
internalUrl: S.optional(S.String),
|
|
150
|
-
lastDeployment: S.optional(S.String),
|
|
151
|
-
urls: S.optional(RuntimeStatusUrlsList),
|
|
152
|
-
})).annotate({ identifier: "RuntimeStatus" });
|
|
153
|
-
export const ApplicationSecretsList = /*@__PURE__*/ S.Array(ApplicationSecret);
|
|
154
|
-
export const Application = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
155
|
-
containers: ApplicationContainersList,
|
|
156
|
-
displayName: S.String,
|
|
157
|
-
environmentId: S.optional(S.String),
|
|
158
|
-
environmentName: S.optional(S.String),
|
|
159
|
-
id: S.optional(S.String),
|
|
160
|
-
network: S.optional(Network),
|
|
161
|
-
registry: S.optional(ApplicationRegistryList),
|
|
162
|
-
runtimeStatus: S.optional(RuntimeStatus),
|
|
163
|
-
scaling: Scaling,
|
|
164
|
-
secrets: S.optional(ApplicationSecretsList),
|
|
165
|
-
stopped: S.optional(S.Boolean),
|
|
166
|
-
})).annotate({ identifier: "Application" });
|
|
167
|
-
export const EnvironmentStatus = S.String;
|
|
168
|
-
export const CreateEnvironmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
169
|
-
projectId: S.String.pipe(T.Label()),
|
|
170
|
-
displayName: S.String,
|
|
171
|
-
status: S.optional(EnvironmentStatus),
|
|
172
|
-
}).pipe(T.Http({
|
|
173
|
-
method: "POST",
|
|
174
|
-
uri: "/v1alpha/projects/{projectId}/environments",
|
|
175
|
-
code: 200,
|
|
176
|
-
baseUrl: "https://sca.api.{region}stackit.cloud",
|
|
177
|
-
}))).annotate({ identifier: "CreateEnvironmentRequest" });
|
|
178
|
-
export const Environment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
179
|
-
createdAt: S.optional(S.String),
|
|
180
|
-
default: S.optional(S.Boolean),
|
|
181
|
-
displayName: S.String,
|
|
182
|
-
id: S.optional(S.String),
|
|
183
|
-
status: S.optional(EnvironmentStatus),
|
|
184
|
-
})).annotate({ identifier: "Environment" });
|
|
185
|
-
export const DeleteApplicationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
186
|
-
projectId: S.String.pipe(T.Label()),
|
|
187
|
-
environmentId: S.String.pipe(T.Label()),
|
|
188
|
-
applicationId: S.String.pipe(T.Label()),
|
|
189
|
-
}).pipe(T.Http({
|
|
190
|
-
method: "DELETE",
|
|
191
|
-
uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}",
|
|
192
|
-
code: 200,
|
|
193
|
-
baseUrl: "https://sca.api.{region}stackit.cloud",
|
|
194
|
-
}))).annotate({ identifier: "DeleteApplicationRequest" });
|
|
195
|
-
export const GetApplicationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
196
|
-
projectId: S.String.pipe(T.Label()),
|
|
197
|
-
environmentId: S.String.pipe(T.Label()),
|
|
198
|
-
applicationId: S.String.pipe(T.Label()),
|
|
199
|
-
}).pipe(T.Http({
|
|
200
|
-
method: "GET",
|
|
201
|
-
uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}",
|
|
202
|
-
code: 200,
|
|
203
|
-
baseUrl: "https://sca.api.{region}stackit.cloud",
|
|
204
|
-
}))).annotate({ identifier: "GetApplicationRequest" });
|
|
205
|
-
export const GetApplicationEventsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
206
|
-
projectId: S.String.pipe(T.Label()),
|
|
207
|
-
environmentId: S.String.pipe(T.Label()),
|
|
208
|
-
applicationId: S.String.pipe(T.Label()),
|
|
209
|
-
}).pipe(T.Http({
|
|
210
|
-
method: "GET",
|
|
211
|
-
uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}/events",
|
|
212
|
-
code: 200,
|
|
213
|
-
baseUrl: "https://sca.api.{region}stackit.cloud",
|
|
214
|
-
}))).annotate({
|
|
215
|
-
identifier: "GetApplicationEventsRequest",
|
|
216
|
-
});
|
|
217
|
-
export const Event = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
218
|
-
message: S.optional(S.String),
|
|
219
|
-
})).annotate({ identifier: "Event" });
|
|
220
|
-
export const GetApplicationEventsResponseEventsList = /*@__PURE__*/ S.Array(Event);
|
|
221
|
-
export const GetApplicationEventsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
222
|
-
events: S.optional(GetApplicationEventsResponseEventsList),
|
|
223
|
-
})).annotate({
|
|
224
|
-
identifier: "GetApplicationEventsResponse",
|
|
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.Number;
|
|
17
|
+
const __7 = S.optional;
|
|
18
|
+
const __8 = S.Boolean;
|
|
19
|
+
const __9 = S.Array;
|
|
20
|
+
const __10 = T.SensitiveValue;
|
|
21
|
+
const __11 = T.Query;
|
|
22
|
+
const __12 = S.TaggedError;
|
|
23
|
+
const __13 = T.applyErrorMatchers;
|
|
24
|
+
export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
|
|
25
|
+
return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __6, __3, __12, __13]]);
|
|
225
26
|
});
|
|
226
|
-
export const
|
|
227
|
-
|
|
228
|
-
environmentId: S.String.pipe(T.Label()),
|
|
229
|
-
applicationId: S.String.pipe(T.Label()),
|
|
230
|
-
instance: S.String.pipe(T.Query()),
|
|
231
|
-
container: S.String.pipe(T.Query()),
|
|
232
|
-
previous: S.optional(S.Boolean.pipe(T.Query())),
|
|
233
|
-
}).pipe(T.Http({
|
|
234
|
-
method: "GET",
|
|
235
|
-
uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}/logs",
|
|
236
|
-
code: 200,
|
|
237
|
-
baseUrl: "https://sca.api.{region}stackit.cloud",
|
|
238
|
-
}))).annotate({
|
|
239
|
-
identifier: "GetApplicationLogsRequest",
|
|
27
|
+
export const Conflict = /*@__PURE__*/ API.error(function Conflict(i) {
|
|
28
|
+
return API.newError(i, new.target, ['$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])', [__0, C.withConflictError, __6, __3, __12, __13]]);
|
|
240
29
|
});
|
|
241
|
-
export const
|
|
242
|
-
|
|
243
|
-
})).annotate({ identifier: "Log" });
|
|
244
|
-
export const GetApplicationLogsResponseLogsList = /*@__PURE__*/ S.Array(Log);
|
|
245
|
-
export const GetApplicationLogsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
246
|
-
logs: S.optional(GetApplicationLogsResponseLogsList),
|
|
247
|
-
})).annotate({
|
|
248
|
-
identifier: "GetApplicationLogsResponse",
|
|
30
|
+
export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
|
|
31
|
+
return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __6, __3, __12, __13]]);
|
|
249
32
|
});
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
}).pipe(
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
export const
|
|
260
|
-
|
|
261
|
-
}).pipe(
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
export const
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
export const
|
|
272
|
-
|
|
273
|
-
})).
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
internalUrl: S.optional(S.String),
|
|
292
|
-
lastDeployment: S.optional(S.String),
|
|
293
|
-
status: S.optional(CurrentStatus),
|
|
294
|
-
stopped: S.optional(S.Boolean),
|
|
295
|
-
url: S.optional(S.String),
|
|
296
|
-
})).annotate({ identifier: "ApplicationSummary" });
|
|
297
|
-
export const ListApplicationsResponseItemsList = /*@__PURE__*/ S.Array(ApplicationSummary);
|
|
298
|
-
export const ListApplicationsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
299
|
-
items: S.optional(ListApplicationsResponseItemsList),
|
|
300
|
-
})).annotate({ identifier: "ListApplicationsResponse" });
|
|
301
|
-
export const ListEnvironmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
302
|
-
projectId: S.String.pipe(T.Label()),
|
|
303
|
-
}).pipe(T.Http({
|
|
304
|
-
method: "GET",
|
|
305
|
-
uri: "/v1alpha/projects/{projectId}/environments",
|
|
306
|
-
code: 200,
|
|
307
|
-
baseUrl: "https://sca.api.{region}stackit.cloud",
|
|
308
|
-
}))).annotate({ identifier: "ListEnvironmentsRequest" });
|
|
309
|
-
export const EnvironmentSummary = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
310
|
-
applicationsNumber: S.optional(S.Number),
|
|
311
|
-
createdAt: S.optional(S.String),
|
|
312
|
-
default: S.optional(S.Boolean),
|
|
313
|
-
displayName: S.optional(S.String),
|
|
314
|
-
id: S.optional(S.String),
|
|
315
|
-
})).annotate({ identifier: "EnvironmentSummary" });
|
|
316
|
-
export const ListEnvironmentsResponseItemsList = /*@__PURE__*/ S.Array(EnvironmentSummary);
|
|
317
|
-
export const ListEnvironmentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
318
|
-
items: S.optional(ListEnvironmentsResponseItemsList),
|
|
319
|
-
})).annotate({ identifier: "ListEnvironmentsResponse" });
|
|
320
|
-
export const ListProjectApplicationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
321
|
-
projectId: S.String.pipe(T.Label()),
|
|
322
|
-
}).pipe(T.Http({
|
|
323
|
-
method: "GET",
|
|
324
|
-
uri: "/v1alpha/projects/{projectId}/applications",
|
|
325
|
-
code: 200,
|
|
326
|
-
baseUrl: "https://sca.api.{region}stackit.cloud",
|
|
327
|
-
}))).annotate({
|
|
328
|
-
identifier: "ListProjectApplicationsRequest",
|
|
329
|
-
});
|
|
330
|
-
export const UpdateApplicationRequestContainersList = /*@__PURE__*/ S.Array(Container);
|
|
331
|
-
export const UpdateApplicationRequestRegistryList = /*@__PURE__*/ S.Array(ApplicationRegistry);
|
|
332
|
-
export const UpdateApplicationRequestSecretsList = /*@__PURE__*/ S.Array(ApplicationSecret);
|
|
333
|
-
export const UpdateApplicationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
334
|
-
projectId: S.String.pipe(T.Label()),
|
|
335
|
-
environmentId: S.String.pipe(T.Label()),
|
|
336
|
-
applicationId: S.String.pipe(T.Label()),
|
|
337
|
-
containers: S.optional(UpdateApplicationRequestContainersList),
|
|
338
|
-
network: S.optional(Network),
|
|
339
|
-
registry: S.optional(UpdateApplicationRequestRegistryList),
|
|
340
|
-
scaling: S.optional(Scaling),
|
|
341
|
-
secrets: S.optional(UpdateApplicationRequestSecretsList),
|
|
342
|
-
stopped: S.optional(S.Boolean),
|
|
343
|
-
}).pipe(T.Http({
|
|
344
|
-
method: "PATCH",
|
|
345
|
-
uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}",
|
|
346
|
-
code: 200,
|
|
347
|
-
baseUrl: "https://sca.api.{region}stackit.cloud",
|
|
348
|
-
}))).annotate({ identifier: "UpdateApplicationRequest" });
|
|
349
|
-
/** Creates a new application within a environment. */
|
|
350
|
-
export const createApplication = /*@__PURE__*/ API.make(() => ({
|
|
351
|
-
input: CreateApplicationRequest,
|
|
352
|
-
output: Application,
|
|
353
|
-
errors: [BadRequest, Conflict, UnknownStackitError],
|
|
354
|
-
protocol: StackitProtocol,
|
|
355
|
-
retry: Retry.Retry,
|
|
356
|
-
}));
|
|
357
|
-
/** Creates a new environment within a project. */
|
|
358
|
-
export const createEnvironment = /*@__PURE__*/ API.make(() => ({
|
|
359
|
-
input: CreateEnvironmentRequest,
|
|
360
|
-
output: Environment,
|
|
361
|
-
errors: [BadRequest, Conflict, UnknownStackitError],
|
|
362
|
-
protocol: StackitProtocol,
|
|
363
|
-
retry: Retry.Retry,
|
|
364
|
-
}));
|
|
365
|
-
/** Deletes an application by resource name. */
|
|
366
|
-
export const deleteApplication = /*@__PURE__*/ API.make(() => ({
|
|
367
|
-
input: DeleteApplicationRequest,
|
|
368
|
-
output: Application,
|
|
369
|
-
errors: [NotFound, UnknownStackitError],
|
|
370
|
-
protocol: StackitProtocol,
|
|
371
|
-
retry: Retry.Retry,
|
|
372
|
-
}));
|
|
373
|
-
/** Retrieves a application by resource name. */
|
|
374
|
-
export const getApplication = /*@__PURE__*/ API.make(() => ({
|
|
375
|
-
input: GetApplicationRequest,
|
|
376
|
-
output: Application,
|
|
377
|
-
errors: [NotFound, UnknownStackitError],
|
|
378
|
-
protocol: StackitProtocol,
|
|
379
|
-
retry: Retry.Retry,
|
|
380
|
-
}));
|
|
381
|
-
/** Retrieves events of an application. */
|
|
382
|
-
export const getApplicationEvents = /*@__PURE__*/ API.make(() => ({
|
|
383
|
-
input: GetApplicationEventsRequest,
|
|
384
|
-
output: GetApplicationEventsResponse,
|
|
385
|
-
errors: [NotFound, UnknownStackitError],
|
|
386
|
-
protocol: StackitProtocol,
|
|
387
|
-
retry: Retry.Retry,
|
|
388
|
-
}));
|
|
389
|
-
/** Retrieves logs of an application. */
|
|
390
|
-
export const getApplicationLogs = /*@__PURE__*/ API.make(() => ({
|
|
391
|
-
input: GetApplicationLogsRequest,
|
|
392
|
-
output: GetApplicationLogsResponse,
|
|
393
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
394
|
-
protocol: StackitProtocol,
|
|
395
|
-
retry: Retry.Retry,
|
|
396
|
-
}));
|
|
397
|
-
/** Retrieves an environment by resource name. */
|
|
398
|
-
export const getEnvironment = /*@__PURE__*/ API.make(() => ({
|
|
399
|
-
input: GetEnvironmentRequest,
|
|
400
|
-
output: Environment,
|
|
401
|
-
errors: [NotFound, UnknownStackitError],
|
|
402
|
-
protocol: StackitProtocol,
|
|
403
|
-
retry: Retry.Retry,
|
|
404
|
-
}));
|
|
405
|
-
/** Retrieves the overview for an environment. */
|
|
406
|
-
export const getOverview = /*@__PURE__*/ API.make(() => ({
|
|
407
|
-
input: GetOverviewRequest,
|
|
408
|
-
output: GetOverviewResponse,
|
|
409
|
-
errors: [UnknownStackitError],
|
|
410
|
-
protocol: StackitProtocol,
|
|
411
|
-
retry: Retry.Retry,
|
|
412
|
-
}));
|
|
413
|
-
/** Lists applications within an environment. */
|
|
414
|
-
export const listApplications = /*@__PURE__*/ API.make(() => ({
|
|
415
|
-
input: ListApplicationsRequest,
|
|
416
|
-
output: ListApplicationsResponse,
|
|
417
|
-
errors: [BadRequest, UnknownStackitError],
|
|
418
|
-
protocol: StackitProtocol,
|
|
419
|
-
retry: Retry.Retry,
|
|
420
|
-
}));
|
|
421
|
-
/** Lists environments within a project. */
|
|
422
|
-
export const listEnvironments = /*@__PURE__*/ API.make(() => ({
|
|
423
|
-
input: ListEnvironmentsRequest,
|
|
424
|
-
output: ListEnvironmentsResponse,
|
|
425
|
-
errors: [BadRequest, UnknownStackitError],
|
|
426
|
-
protocol: StackitProtocol,
|
|
427
|
-
retry: Retry.Retry,
|
|
428
|
-
}));
|
|
429
|
-
/** Lists applications within a project. */
|
|
430
|
-
export const listProjectApplications = /*@__PURE__*/ API.make(() => ({
|
|
431
|
-
input: ListProjectApplicationsRequest,
|
|
432
|
-
output: ListApplicationsResponse,
|
|
433
|
-
errors: [BadRequest, UnknownStackitError],
|
|
434
|
-
protocol: StackitProtocol,
|
|
435
|
-
retry: Retry.Retry,
|
|
436
|
-
}));
|
|
437
|
-
/** Updates an existing application. */
|
|
438
|
-
export const updateApplication = /*@__PURE__*/ API.make(() => ({
|
|
439
|
-
input: UpdateApplicationRequest,
|
|
440
|
-
output: Application,
|
|
441
|
-
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
442
|
-
protocol: StackitProtocol,
|
|
443
|
-
retry: Retry.Retry,
|
|
444
|
-
}));
|
|
445
|
-
//# sourceMappingURL=sca.js.map
|
|
33
|
+
|
|
34
|
+
export const createApplication = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#2,output:#7:25,errors:[$9,$10,$11],protocol:$12,retry:$13};$4(>3)@"RuntimeStatusInput";$4(>4)@"CreateApplicationRequest";$3({currentStatus:$2($1)});$3({projectId:$1.pipe($6()),environmentId:$1.pipe($6()),containers:#7:4,displayName:$1,network:$2(#7:5),registry:$2(#7:8),runtimeStatus:$2(#1),scaling:#7:19,secrets:$2(#7:21),stopped:$2($8)}).pipe($5({method:"POST",uri:"/v1alpha/projects/{projectId}/environments/{environmentId}/applications",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}))', [__0, __3, __7, __4, __5, __1, __2, __d1, __8, BadRequest, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createApplication, i));
|
|
35
|
+
|
|
36
|
+
export const createEnvironment = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"CreateEnvironmentRequest";$5({projectId:$3.pipe($2()),displayName:$3,status:$4($3)}).pipe($1({method:"POST",uri:"/v1alpha/projects/{projectId}/environments",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __7, __4, __5, __d2, BadRequest, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createEnvironment, i));
|
|
37
|
+
|
|
38
|
+
export const deleteApplication = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:25,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteApplicationRequest";$4({projectId:$3.pipe($2()),environmentId:$3.pipe($2()),applicationId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d1, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteApplication, i));
|
|
39
|
+
|
|
40
|
+
export const getApplication = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:25,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetApplicationRequest";$4({projectId:$3.pipe($2()),environmentId:$3.pipe($2()),applicationId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d1, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getApplication, i));
|
|
41
|
+
|
|
42
|
+
export const getApplicationEvents = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$5(>3)@"GetApplicationEventsRequest";$5(>4)@"GetApplicationEventsResponse";$4({projectId:$3.pipe($2()),environmentId:$3.pipe($2()),applicationId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}/events",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}));$4({events:$7(#6:1)})', [__0, __1, __2, __3, __4, __5, __d3, __7, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getApplicationEvents, i));
|
|
43
|
+
|
|
44
|
+
export const getApplicationLogs = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$10,$11,$12],protocol:$13,retry:$14};$8(>3)@"GetApplicationLogsRequest";$8(>4)@"GetApplicationLogsResponse";$7({projectId:$3.pipe($2()),environmentId:$3.pipe($2()),applicationId:$3.pipe($2()),instance:$3.pipe($4()),container:$3.pipe($4()),previous:$6($5.pipe($4()))}).pipe($1({method:"GET",uri:"/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}/logs",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}));$7({logs:$6(#9:1)})', [__0, __1, __2, __3, __11, __8, __7, __4, __5, __d3, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getApplicationLogs, i));
|
|
45
|
+
|
|
46
|
+
export const getEnvironment = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetEnvironmentRequest";$4({projectId:$3.pipe($2()),environmentId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1alpha/projects/{projectId}/environments/{environmentId}",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d2, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getEnvironment, i));
|
|
47
|
+
|
|
48
|
+
export const getOverview = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$8],protocol:$9,retry:$10};$5(>4)@"GetOverviewRequest";$5(>5)@"Summary";$5(>6)@"GetOverviewResponse";$4({projectId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1alpha/projects/{projectId}/overview",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}));$4({applicationsRunning:$7($6),applicationsTotal:$7($6)});$4({summary:#2})', [__0, __1, __2, __3, __4, __5, __6, __7, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getOverview, i));
|
|
49
|
+
|
|
50
|
+
export const listApplications = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:2,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"ListApplicationsRequest";$4({projectId:$3.pipe($2()),environmentId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1alpha/projects/{projectId}/environments/{environmentId}/applications",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d0, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listApplications, i));
|
|
51
|
+
|
|
52
|
+
export const listEnvironments = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4,errors:[$10,$11],protocol:$12,retry:$13};$5(>5)@"ListEnvironmentsRequest";$5(>6)@"EnvironmentSummary";$9(#2);$5(>7)@"ListEnvironmentsResponse";$4({projectId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1alpha/projects/{projectId}/environments",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}));$4({applicationsNumber:$7($6),createdAt:$7($3),default:$7($8),displayName:$7($3),id:$7($3)});$4({items:$7(#3)})', [__0, __1, __2, __3, __4, __5, __6, __7, __8, __9, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listEnvironments, i));
|
|
53
|
+
|
|
54
|
+
export const listProjectApplications = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:2,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"ListProjectApplicationsRequest";$4({projectId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1alpha/projects/{projectId}/applications",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d0, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listProjectApplications, i));
|
|
55
|
+
|
|
56
|
+
export const updateApplication = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4:25,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"UpdateApplicationRequest";$7({projectId:$3.pipe($2()),environmentId:$3.pipe($2()),applicationId:$3.pipe($2()),containers:$5(#4:4),network:$5(#4:5),registry:$5(#4:8),scaling:$5(#4:19),secrets:$5(#4:21),stopped:$5($6)}).pipe($1({method:"PATCH",uri:"/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __d1, __7, __8, __4, __5, BadRequest, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateApplication, i));
|
|
57
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
58
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
// Shared schema data (see `op` in core/api).
|
|
62
|
+
function __d0() {
|
|
63
|
+
return ['$6(>3)@"ApplicationSummary";$7(#0);$6(>4)@"ListApplicationsResponse";$5({containers:$2($1),createdAt:$2($3),displayName:$2($3),environmentId:$2($3),environmentName:$2($3),id:$2($3),instances:$2($1),internalUrl:$2($3),lastDeployment:$2($3),status:$2($3),stopped:$2($4),url:$2($3)});$5({items:$2(#1)})', [__0, __6, __7, __3, __8, __4, __5, __9]];
|
|
64
|
+
}
|
|
65
|
+
function __d1() {
|
|
66
|
+
return ['$2($1);$5(>26)@"EnvVar";$2(#1);$5(>27)@"Container";$2(#3);$5(>28)@"Network";$5(>29)@"ApplicationRegistryCredentialsAuth";$5(>30)@"ApplicationRegistry";$2(#7);$5(>31)@"CustomRuleParameter";$2(#9);$5(>32)@"CustomRuleSecretMapping";$2(#11);$5(>33)@"CustomScaleRule";$5(>34)@"HttpScaleRule";$5(>35)@"ScaleRule";$2(#15);$5(>36)@"AutoScaling";$5(>37)@"ManualScaling";$5(>38)@"Scaling";$5(>39)@"ApplicationSecret";$2(#20);$5(>40)@"Instance";$2(#22);$5(>41)@"RuntimeStatus";$5(>42)@"Application";$4({key:$1,origin:$3($1),value:$1});$4({args:$3(#0),command:$3(#0),cpu:$3($6),environmentVariables:$3(#2),image:$1,memory:$3($6),name:$1});$4({ingressAcl:$3(#0),internalPort:$3($6),port:$3($6),publicIngress:$3($7)});$4({password:$3($1.pipe($8({}))),url:$1,user:$1});$4({credentials:$3(#6),type:$1});$4({name:$1,value:$1});$4({parameter:$1,secret:$1.pipe($8({}))});$4({parameters:$3(#10),secretsMapping:$3(#12),type:$1});$4({concurrency:$3($6),rps:$3($6)});$4({customRule:$3(#13),httpRule:$3(#14),name:$1,type:$1});$4({allowScaleToZero:$3($7),maxInstances:$6,minInstances:$6,rules:#16});$4({instances:$6});$4({autoScaling:$3(#17),manualScaling:$3(#18),type:$1});$4({key:$1,value:$3($1)});$4({name:$3($1),status:$3($1)});$4({currentStatus:$3($1),failureReasons:$3(#0),instances:$3(#23),internalUrl:$3($1),lastDeployment:$3($1),urls:$3(#0)});$4({containers:#4,displayName:$1,environmentId:$3($1),environmentName:$3($1),id:$3($1),network:$3(#5),registry:$3(#8),runtimeStatus:$3(#24),scaling:#19,secrets:$3(#21),stopped:$3($7)})', [__0, __3, __9, __7, __4, __5, __6, __8, __10]];
|
|
67
|
+
}
|
|
68
|
+
function __d2() {
|
|
69
|
+
return ['$5(>1)@"Environment";$4({createdAt:$2($1),default:$2($3),displayName:$1,id:$2($1),status:$2($1)})', [__0, __3, __7, __8, __4, __5]];
|
|
70
|
+
}
|
|
71
|
+
function __d3() {
|
|
72
|
+
return ['$4(>2)@"Event";$5(#0);$3({message:$2($1)})', [__0, __3, __7, __4, __5, __9]];
|
|
73
|
+
}
|