@distilled.cloud/stackit 0.0.0-stage → 1.0.0-rc.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +33 -2
- package/lib/credentials.d.ts +29 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +49 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +36 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +26 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +30 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +9 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +45 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +32 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +147 -0
- package/lib/protocol.js.map +1 -0
- package/lib/protocol.test.d.ts +2 -0
- package/lib/protocol.test.d.ts.map +1 -0
- package/lib/protocol.test.js +181 -0
- package/lib/protocol.test.js.map +1 -0
- package/lib/retry.d.ts +31 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +31 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/alb.d.ts +603 -0
- package/lib/services/alb.d.ts.map +1 -0
- package/lib/services/alb.js +513 -0
- package/lib/services/alb.js.map +1 -0
- package/lib/services/alb_waf.d.ts +526 -0
- package/lib/services/alb_waf.d.ts.map +1 -0
- package/lib/services/alb_waf.js +521 -0
- package/lib/services/alb_waf.js.map +1 -0
- package/lib/services/authorization.d.ts +251 -0
- package/lib/services/authorization.d.ts.map +1 -0
- package/lib/services/authorization.js +323 -0
- package/lib/services/authorization.js.map +1 -0
- package/lib/services/automation.d.ts +321 -0
- package/lib/services/automation.d.ts.map +1 -0
- package/lib/services/automation.js +363 -0
- package/lib/services/automation.js.map +1 -0
- package/lib/services/cdn.d.ts +1239 -0
- package/lib/services/cdn.d.ts.map +1 -0
- package/lib/services/cdn.js +906 -0
- package/lib/services/cdn.js.map +1 -0
- package/lib/services/certificates.d.ts +201 -0
- package/lib/services/certificates.d.ts.map +1 -0
- package/lib/services/certificates.js +179 -0
- package/lib/services/certificates.js.map +1 -0
- package/lib/services/cost.d.ts +222 -0
- package/lib/services/cost.d.ts.map +1 -0
- package/lib/services/cost.js +177 -0
- package/lib/services/cost.js.map +1 -0
- package/lib/services/dns.d.ts +842 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +726 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/dremio.d.ts +358 -0
- package/lib/services/dremio.d.ts.map +1 -0
- package/lib/services/dremio.js +317 -0
- package/lib/services/dremio.js.map +1 -0
- package/lib/services/edge.d.ts +312 -0
- package/lib/services/edge.d.ts.map +1 -0
- package/lib/services/edge.js +357 -0
- package/lib/services/edge.js.map +1 -0
- package/lib/services/functions.d.ts +409 -0
- package/lib/services/functions.d.ts.map +1 -0
- package/lib/services/functions.js +399 -0
- package/lib/services/functions.js.map +1 -0
- package/lib/services/git.d.ts +497 -0
- package/lib/services/git.d.ts.map +1 -0
- package/lib/services/git.js +520 -0
- package/lib/services/git.js.map +1 -0
- package/lib/services/iaas.d.ts +2986 -0
- package/lib/services/iaas.d.ts.map +1 -0
- package/lib/services/iaas.js +3543 -0
- package/lib/services/iaas.js.map +1 -0
- package/lib/services/index.d.ts +51 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +52 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/intake.d.ts +555 -0
- package/lib/services/intake.d.ts.map +1 -0
- package/lib/services/intake.js +475 -0
- package/lib/services/intake.js.map +1 -0
- package/lib/services/kms.d.ts +654 -0
- package/lib/services/kms.d.ts.map +1 -0
- package/lib/services/kms.js +663 -0
- package/lib/services/kms.js.map +1 -0
- package/lib/services/lb_ip_lists.d.ts +160 -0
- package/lib/services/lb_ip_lists.d.ts.map +1 -0
- package/lib/services/lb_ip_lists.js +154 -0
- package/lib/services/lb_ip_lists.js.map +1 -0
- package/lib/services/load_balancer.d.ts +563 -0
- package/lib/services/load_balancer.d.ts.map +1 -0
- package/lib/services/load_balancer.js +497 -0
- package/lib/services/load_balancer.js.map +1 -0
- package/lib/services/logme.d.ts +516 -0
- package/lib/services/logme.d.ts.map +1 -0
- package/lib/services/logme.js +574 -0
- package/lib/services/logme.js.map +1 -0
- package/lib/services/logs.d.ts +436 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +475 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/mariadb.d.ts +479 -0
- package/lib/services/mariadb.d.ts.map +1 -0
- package/lib/services/mariadb.js +551 -0
- package/lib/services/mariadb.js.map +1 -0
- package/lib/services/model_experiments.d.ts +306 -0
- package/lib/services/model_experiments.d.ts.map +1 -0
- package/lib/services/model_experiments.js +336 -0
- package/lib/services/model_experiments.js.map +1 -0
- package/lib/services/model_serving.d.ts +289 -0
- package/lib/services/model_serving.d.ts.map +1 -0
- package/lib/services/model_serving.js +287 -0
- package/lib/services/model_serving.js.map +1 -0
- package/lib/services/mongodb_flex.d.ts +826 -0
- package/lib/services/mongodb_flex.d.ts.map +1 -0
- package/lib/services/mongodb_flex.js +803 -0
- package/lib/services/mongodb_flex.js.map +1 -0
- package/lib/services/object_storage.d.ts +470 -0
- package/lib/services/object_storage.d.ts.map +1 -0
- package/lib/services/object_storage.js +540 -0
- package/lib/services/object_storage.js.map +1 -0
- package/lib/services/observability.d.ts +2750 -0
- package/lib/services/observability.d.ts.map +1 -0
- package/lib/services/observability.js +3158 -0
- package/lib/services/observability.js.map +1 -0
- package/lib/services/opensearch.d.ts +505 -0
- package/lib/services/opensearch.d.ts.map +1 -0
- package/lib/services/opensearch.js +563 -0
- package/lib/services/opensearch.js.map +1 -0
- package/lib/services/pim.d.ts +997 -0
- package/lib/services/pim.d.ts.map +1 -0
- package/lib/services/pim.js +736 -0
- package/lib/services/pim.js.map +1 -0
- package/lib/services/postgres_flex.d.ts +854 -0
- package/lib/services/postgres_flex.d.ts.map +1 -0
- package/lib/services/postgres_flex.js +853 -0
- package/lib/services/postgres_flex.js.map +1 -0
- package/lib/services/pubsub.d.ts +489 -0
- package/lib/services/pubsub.d.ts.map +1 -0
- package/lib/services/pubsub.js +519 -0
- package/lib/services/pubsub.js.map +1 -0
- package/lib/services/rabbitmq.d.ts +523 -0
- package/lib/services/rabbitmq.d.ts.map +1 -0
- package/lib/services/rabbitmq.js +574 -0
- package/lib/services/rabbitmq.js.map +1 -0
- package/lib/services/registry.d.ts +212 -0
- package/lib/services/registry.d.ts.map +1 -0
- package/lib/services/registry.js +198 -0
- package/lib/services/registry.js.map +1 -0
- package/lib/services/resource_manager.d.ts +458 -0
- package/lib/services/resource_manager.d.ts.map +1 -0
- package/lib/services/resource_manager.js +473 -0
- package/lib/services/resource_manager.js.map +1 -0
- package/lib/services/run_command.d.ts +175 -0
- package/lib/services/run_command.d.ts.map +1 -0
- package/lib/services/run_command.js +185 -0
- package/lib/services/run_command.js.map +1 -0
- package/lib/services/sca.d.ts +553 -0
- package/lib/services/sca.d.ts.map +1 -0
- package/lib/services/sca.js +445 -0
- package/lib/services/sca.js.map +1 -0
- package/lib/services/scf.d.ts +498 -0
- package/lib/services/scf.d.ts.map +1 -0
- package/lib/services/scf.js +670 -0
- package/lib/services/scf.js.map +1 -0
- package/lib/services/secrets_manager.d.ts +505 -0
- package/lib/services/secrets_manager.d.ts.map +1 -0
- package/lib/services/secrets_manager.js +613 -0
- package/lib/services/secrets_manager.js.map +1 -0
- package/lib/services/server_backup.d.ts +380 -0
- package/lib/services/server_backup.d.ts.map +1 -0
- package/lib/services/server_backup.js +454 -0
- package/lib/services/server_backup.js.map +1 -0
- package/lib/services/server_update.d.ts +292 -0
- package/lib/services/server_update.d.ts.map +1 -0
- package/lib/services/server_update.js +352 -0
- package/lib/services/server_update.js.map +1 -0
- package/lib/services/service_account.d.ts +465 -0
- package/lib/services/service_account.d.ts.map +1 -0
- package/lib/services/service_account.js +506 -0
- package/lib/services/service_account.js.map +1 -0
- package/lib/services/service_enablement.d.ts +149 -0
- package/lib/services/service_enablement.d.ts.map +1 -0
- package/lib/services/service_enablement.js +157 -0
- package/lib/services/service_enablement.js.map +1 -0
- package/lib/services/sfs.d.ts +721 -0
- package/lib/services/sfs.d.ts.map +1 -0
- package/lib/services/sfs.js +790 -0
- package/lib/services/sfs.js.map +1 -0
- package/lib/services/ske.d.ts +562 -0
- package/lib/services/ske.d.ts.map +1 -0
- package/lib/services/ske.js +558 -0
- package/lib/services/ske.js.map +1 -0
- package/lib/services/sqlserverflex.d.ts +956 -0
- package/lib/services/sqlserverflex.d.ts.map +1 -0
- package/lib/services/sqlserverflex.js +936 -0
- package/lib/services/sqlserverflex.js.map +1 -0
- package/lib/services/stackit_marketplace.d.ts +288 -0
- package/lib/services/stackit_marketplace.d.ts.map +1 -0
- package/lib/services/stackit_marketplace.js +379 -0
- package/lib/services/stackit_marketplace.js.map +1 -0
- package/lib/services/telemetry_link.d.ts +443 -0
- package/lib/services/telemetry_link.d.ts.map +1 -0
- package/lib/services/telemetry_link.js +532 -0
- package/lib/services/telemetry_link.js.map +1 -0
- package/lib/services/telemetry_router.d.ts +493 -0
- package/lib/services/telemetry_router.d.ts.map +1 -0
- package/lib/services/telemetry_router.js +484 -0
- package/lib/services/telemetry_router.js.map +1 -0
- package/lib/services/ufw.d.ts +295 -0
- package/lib/services/ufw.d.ts.map +1 -0
- package/lib/services/ufw.js +279 -0
- package/lib/services/ufw.js.map +1 -0
- package/lib/services/valkey.d.ts +505 -0
- package/lib/services/valkey.d.ts.map +1 -0
- package/lib/services/valkey.js +567 -0
- package/lib/services/valkey.js.map +1 -0
- package/lib/services/vpn.d.ts +1024 -0
- package/lib/services/vpn.d.ts.map +1 -0
- package/lib/services/vpn.js +931 -0
- package/lib/services/vpn.js.map +1 -0
- package/lib/services/workflows.d.ts +600 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +508 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/traits.d.ts +24 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +15 -0
- package/lib/traits.js.map +1 -0
- package/package.json +85 -3
- package/src/credentials.ts +84 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +34 -0
- package/src/pagination.ts +57 -0
- package/src/protocol.test.ts +304 -0
- package/src/protocol.ts +225 -0
- package/src/retry.ts +47 -0
- package/src/services/alb.ts +1326 -0
- package/src/services/alb_waf.ts +1288 -0
- package/src/services/authorization.ts +704 -0
- package/src/services/automation.ts +796 -0
- package/src/services/cdn.ts +2576 -0
- package/src/services/certificates.ts +418 -0
- package/src/services/cost.ts +449 -0
- package/src/services/dns.ts +1936 -0
- package/src/services/dremio.ts +753 -0
- package/src/services/edge.ts +780 -0
- package/src/services/functions.ts +957 -0
- package/src/services/git.ts +1194 -0
- package/src/services/iaas.ts +7878 -0
- package/src/services/index.ts +51 -0
- package/src/services/intake.ts +1166 -0
- package/src/services/kms.ts +1537 -0
- package/src/services/lb_ip_lists.ts +342 -0
- package/src/services/load_balancer.ts +1266 -0
- package/src/services/logme.ts +1284 -0
- package/src/services/logs.ts +1049 -0
- package/src/services/mariadb.ts +1212 -0
- package/src/services/model_experiments.ts +741 -0
- package/src/services/model_serving.ts +654 -0
- package/src/services/mongodb_flex.ts +1932 -0
- package/src/services/object_storage.ts +1195 -0
- package/src/services/observability.ts +7364 -0
- package/src/services/opensearch.ts +1265 -0
- package/src/services/pim.ts +1985 -0
- package/src/services/postgres_flex.ts +2080 -0
- package/src/services/pubsub.ts +1193 -0
- package/src/services/rabbitmq.ts +1310 -0
- package/src/services/registry.ts +446 -0
- package/src/services/resource_manager.ts +1072 -0
- package/src/services/run_command.ts +413 -0
- package/src/services/sca.ts +1187 -0
- package/src/services/scf.ts +1396 -0
- package/src/services/secrets_manager.ts +1317 -0
- package/src/services/server_backup.ts +983 -0
- package/src/services/server_update.ts +738 -0
- package/src/services/service_account.ts +1121 -0
- package/src/services/service_enablement.ts +330 -0
- package/src/services/sfs.ts +1831 -0
- package/src/services/ske.ts +1386 -0
- package/src/services/sqlserverflex.ts +2307 -0
- package/src/services/stackit_marketplace.ts +787 -0
- package/src/services/telemetry_link.ts +1166 -0
- package/src/services/telemetry_router.ts +1110 -0
- package/src/services/ufw.ts +654 -0
- package/src/services/valkey.ts +1266 -0
- package/src/services/vpn.ts +2365 -0
- package/src/services/workflows.ts +1249 -0
- package/src/traits.ts +60 -0
|
@@ -0,0 +1,957 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
3
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
4
|
+
import * as Redacted from "effect/Redacted";
|
|
5
|
+
import { UnknownStackitError } from "../errors.ts";
|
|
6
|
+
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
7
|
+
import * as Retry from "../retry.ts";
|
|
8
|
+
import * as T from "../traits.ts";
|
|
9
|
+
|
|
10
|
+
export type { StackitOpError, StackitOpContext };
|
|
11
|
+
|
|
12
|
+
export type CreateFunctionRequestLabelsMap = { [key: string]: string | undefined };
|
|
13
|
+
export const CreateFunctionRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
14
|
+
S.String,
|
|
15
|
+
S.String,
|
|
16
|
+
) as any as S.Schema<CreateFunctionRequestLabelsMap>;
|
|
17
|
+
|
|
18
|
+
/** Status of this function's latest revision. */
|
|
19
|
+
export type CreateFunctionRequestState = "CREATING" | "ACTIVE" | "FAILED";
|
|
20
|
+
export const CreateFunctionRequestState = S.String;
|
|
21
|
+
|
|
22
|
+
/** URLs that resolve to the function. */
|
|
23
|
+
export type CreateFunctionRequestUrlList = Array<string>;
|
|
24
|
+
export const CreateFunctionRequestUrlList = /*@__PURE__*/ S.Array(
|
|
25
|
+
S.String,
|
|
26
|
+
) as any as S.Schema<CreateFunctionRequestUrlList>;
|
|
27
|
+
|
|
28
|
+
export interface CreateFunctionRequest {
|
|
29
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
30
|
+
projectId: string;
|
|
31
|
+
/** Time the function was created. */
|
|
32
|
+
created_at?: string;
|
|
33
|
+
/** The ID of the currently-deployed revision associated with this function. */
|
|
34
|
+
current_revision?: string;
|
|
35
|
+
/** Unique identifier for the function. */
|
|
36
|
+
id?: string;
|
|
37
|
+
labels?: CreateFunctionRequestLabelsMap;
|
|
38
|
+
/** User-defined name of the function. */
|
|
39
|
+
name: string;
|
|
40
|
+
/** Status of this function's latest revision. */
|
|
41
|
+
state?: CreateFunctionRequestState | (string & {});
|
|
42
|
+
/** Error message related to this function's status. */
|
|
43
|
+
state_error?: string;
|
|
44
|
+
/** Time the function was last updated. */
|
|
45
|
+
updated_at?: string;
|
|
46
|
+
/** URLs that resolve to the function. */
|
|
47
|
+
url?: CreateFunctionRequestUrlList;
|
|
48
|
+
}
|
|
49
|
+
export const CreateFunctionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
50
|
+
S.Struct({
|
|
51
|
+
projectId: S.String.pipe(T.Label()),
|
|
52
|
+
created_at: S.optional(S.String),
|
|
53
|
+
current_revision: S.optional(S.String),
|
|
54
|
+
id: S.optional(S.String),
|
|
55
|
+
labels: S.optional(CreateFunctionRequestLabelsMap),
|
|
56
|
+
name: S.String,
|
|
57
|
+
state: S.optional(CreateFunctionRequestState),
|
|
58
|
+
state_error: S.optional(S.String),
|
|
59
|
+
updated_at: S.optional(S.String),
|
|
60
|
+
url: S.optional(CreateFunctionRequestUrlList),
|
|
61
|
+
}).pipe(
|
|
62
|
+
T.Http({
|
|
63
|
+
method: "POST",
|
|
64
|
+
uri: "/v1alpha/projects/{projectId}/functions",
|
|
65
|
+
code: 200,
|
|
66
|
+
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
67
|
+
}),
|
|
68
|
+
),
|
|
69
|
+
).annotate({ identifier: "CreateFunctionRequest" }) as any as S.Schema<CreateFunctionRequest>;
|
|
70
|
+
|
|
71
|
+
export type FunctionLabelsMap = { [key: string]: string | undefined };
|
|
72
|
+
export const FunctionLabelsMap = /*@__PURE__*/ S.Record(
|
|
73
|
+
S.String,
|
|
74
|
+
S.String,
|
|
75
|
+
) as any as S.Schema<FunctionLabelsMap>;
|
|
76
|
+
|
|
77
|
+
/** Status of this function's latest revision. */
|
|
78
|
+
export type FunctionState = "CREATING" | "ACTIVE" | "FAILED";
|
|
79
|
+
export const FunctionState = S.String;
|
|
80
|
+
|
|
81
|
+
/** URLs that resolve to the function. */
|
|
82
|
+
export type FunctionUrlList = Array<string>;
|
|
83
|
+
export const FunctionUrlList = /*@__PURE__*/ S.Array(S.String) as any as S.Schema<FunctionUrlList>;
|
|
84
|
+
|
|
85
|
+
/** Represents a STACKIT Functions function. */
|
|
86
|
+
export interface Function {
|
|
87
|
+
/** Time the function was created. */
|
|
88
|
+
created_at?: string;
|
|
89
|
+
/** The ID of the currently-deployed revision associated with this function. */
|
|
90
|
+
current_revision?: string;
|
|
91
|
+
/** Unique identifier for the function. */
|
|
92
|
+
id?: string;
|
|
93
|
+
labels?: FunctionLabelsMap;
|
|
94
|
+
/** User-defined name of the function. */
|
|
95
|
+
name: string;
|
|
96
|
+
/** Status of this function's latest revision. */
|
|
97
|
+
state?: FunctionState;
|
|
98
|
+
/** Error message related to this function's status. */
|
|
99
|
+
state_error?: string;
|
|
100
|
+
/** Time the function was last updated. */
|
|
101
|
+
updated_at?: string;
|
|
102
|
+
/** URLs that resolve to the function. */
|
|
103
|
+
url?: FunctionUrlList;
|
|
104
|
+
}
|
|
105
|
+
export const Function = /*@__PURE__*/ S.suspend(() =>
|
|
106
|
+
S.Struct({
|
|
107
|
+
created_at: S.optional(S.String),
|
|
108
|
+
current_revision: S.optional(S.String),
|
|
109
|
+
id: S.optional(S.String),
|
|
110
|
+
labels: S.optional(FunctionLabelsMap),
|
|
111
|
+
name: S.String,
|
|
112
|
+
state: S.optional(FunctionState),
|
|
113
|
+
state_error: S.optional(S.String),
|
|
114
|
+
updated_at: S.optional(S.String),
|
|
115
|
+
url: S.optional(FunctionUrlList),
|
|
116
|
+
}),
|
|
117
|
+
).annotate({ identifier: "Function" }) as any as S.Schema<Function>;
|
|
118
|
+
|
|
119
|
+
export type CreateFunctionRevisionRequestLabelsMap = { [key: string]: string | undefined };
|
|
120
|
+
export const CreateFunctionRevisionRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
121
|
+
S.String,
|
|
122
|
+
S.String,
|
|
123
|
+
) as any as S.Schema<CreateFunctionRevisionRequestLabelsMap>;
|
|
124
|
+
|
|
125
|
+
/** Resource utilization limitations */
|
|
126
|
+
export interface ResourceLimits {
|
|
127
|
+
concurrency: number;
|
|
128
|
+
plan: string;
|
|
129
|
+
}
|
|
130
|
+
export const ResourceLimits = /*@__PURE__*/ S.suspend(() =>
|
|
131
|
+
S.Struct({
|
|
132
|
+
concurrency: S.Number,
|
|
133
|
+
plan: S.String,
|
|
134
|
+
}),
|
|
135
|
+
).annotate({ identifier: "ResourceLimits" }) as any as S.Schema<ResourceLimits>;
|
|
136
|
+
|
|
137
|
+
/** Status of this revision. */
|
|
138
|
+
export type CreateFunctionRevisionRequestState = "CANCELLED" | "CREATING" | "ACTIVE" | "FAILED";
|
|
139
|
+
export const CreateFunctionRevisionRequestState = S.String;
|
|
140
|
+
|
|
141
|
+
/** Represents a variable value for a specific revision. */
|
|
142
|
+
export interface RevisionVariable {
|
|
143
|
+
/** Name of the variable (must match a variable definition on the function). */
|
|
144
|
+
name: string;
|
|
145
|
+
/** The value of the variable. Only present for normal variables. Secrets will have a vault reference instead. */
|
|
146
|
+
value?: string | null;
|
|
147
|
+
/** Reference to the vault secret. Only present for secret variables. */
|
|
148
|
+
vault_reference?: string | null;
|
|
149
|
+
}
|
|
150
|
+
export const RevisionVariable = /*@__PURE__*/ S.suspend(() =>
|
|
151
|
+
S.Struct({
|
|
152
|
+
name: S.String,
|
|
153
|
+
value: S.optional(S.NullOr(S.String)),
|
|
154
|
+
vault_reference: S.optional(S.NullOr(S.String)),
|
|
155
|
+
}),
|
|
156
|
+
).annotate({ identifier: "RevisionVariable" }) as any as S.Schema<RevisionVariable>;
|
|
157
|
+
|
|
158
|
+
/** Variable values for this revision. Each variable must reference a variable definition on the function. */
|
|
159
|
+
export type CreateFunctionRevisionRequestVariablesList = Array<RevisionVariable>;
|
|
160
|
+
export const CreateFunctionRevisionRequestVariablesList = /*@__PURE__*/ S.Array(
|
|
161
|
+
RevisionVariable,
|
|
162
|
+
) as any as S.Schema<CreateFunctionRevisionRequestVariablesList>;
|
|
163
|
+
|
|
164
|
+
export interface CreateFunctionRevisionRequest {
|
|
165
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
166
|
+
projectId: string;
|
|
167
|
+
/** The STACKIT Functions functionId */
|
|
168
|
+
functionId: string;
|
|
169
|
+
/** Time the function was created. */
|
|
170
|
+
created_at?: string;
|
|
171
|
+
/** A hashed fingerprint of the revision artifact. */
|
|
172
|
+
digest?: string;
|
|
173
|
+
/** The ID of the function associated with this revision. */
|
|
174
|
+
function_id?: string;
|
|
175
|
+
/** The revision identifier. */
|
|
176
|
+
id?: string;
|
|
177
|
+
labels?: CreateFunctionRevisionRequestLabelsMap;
|
|
178
|
+
limits: ResourceLimits;
|
|
179
|
+
/** Revision message */
|
|
180
|
+
message?: string;
|
|
181
|
+
/** The name of the the revision. Must be unique within the function. */
|
|
182
|
+
name?: string;
|
|
183
|
+
/** OCI Registry pull credential to use for pulling the revision's image. */
|
|
184
|
+
oci_pull_credential_id?: string;
|
|
185
|
+
/** OCI reference for the revision. */
|
|
186
|
+
oci_reference: string;
|
|
187
|
+
/** Status of this revision. */
|
|
188
|
+
state?: CreateFunctionRevisionRequestState | (string & {});
|
|
189
|
+
/** Error message related to this revision. */
|
|
190
|
+
state_error?: string;
|
|
191
|
+
/** Time the function was last updated. */
|
|
192
|
+
updated_at?: string;
|
|
193
|
+
/** Variable values for this revision. Each variable must reference a variable definition on the function. */
|
|
194
|
+
variables?: CreateFunctionRevisionRequestVariablesList;
|
|
195
|
+
/** The version number of the revision. */
|
|
196
|
+
version?: number;
|
|
197
|
+
}
|
|
198
|
+
export const CreateFunctionRevisionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
199
|
+
S.Struct({
|
|
200
|
+
projectId: S.String.pipe(T.Label()),
|
|
201
|
+
functionId: S.String.pipe(T.Label()),
|
|
202
|
+
created_at: S.optional(S.String),
|
|
203
|
+
digest: S.optional(S.String),
|
|
204
|
+
function_id: S.optional(S.String),
|
|
205
|
+
id: S.optional(S.String),
|
|
206
|
+
labels: S.optional(CreateFunctionRevisionRequestLabelsMap),
|
|
207
|
+
limits: ResourceLimits,
|
|
208
|
+
message: S.optional(S.String),
|
|
209
|
+
name: S.optional(S.String),
|
|
210
|
+
oci_pull_credential_id: S.optional(S.String),
|
|
211
|
+
oci_reference: S.String,
|
|
212
|
+
state: S.optional(CreateFunctionRevisionRequestState),
|
|
213
|
+
state_error: S.optional(S.String),
|
|
214
|
+
updated_at: S.optional(S.String),
|
|
215
|
+
variables: S.optional(CreateFunctionRevisionRequestVariablesList),
|
|
216
|
+
version: S.optional(S.Number),
|
|
217
|
+
}).pipe(
|
|
218
|
+
T.Http({
|
|
219
|
+
method: "POST",
|
|
220
|
+
uri: "/v1alpha/projects/{projectId}/functions/{functionId}/revisions",
|
|
221
|
+
code: 200,
|
|
222
|
+
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
223
|
+
}),
|
|
224
|
+
),
|
|
225
|
+
).annotate({
|
|
226
|
+
identifier: "CreateFunctionRevisionRequest",
|
|
227
|
+
}) as any as S.Schema<CreateFunctionRevisionRequest>;
|
|
228
|
+
|
|
229
|
+
export type RevisionLabelsMap = { [key: string]: string | undefined };
|
|
230
|
+
export const RevisionLabelsMap = /*@__PURE__*/ S.Record(
|
|
231
|
+
S.String,
|
|
232
|
+
S.String,
|
|
233
|
+
) as any as S.Schema<RevisionLabelsMap>;
|
|
234
|
+
|
|
235
|
+
/** Status of this revision. */
|
|
236
|
+
export type RevisionState = "CANCELLED" | "CREATING" | "ACTIVE" | "FAILED";
|
|
237
|
+
export const RevisionState = S.String;
|
|
238
|
+
|
|
239
|
+
/** Variable values for this revision. Each variable must reference a variable definition on the function. */
|
|
240
|
+
export type RevisionVariablesList = Array<RevisionVariable>;
|
|
241
|
+
export const RevisionVariablesList = /*@__PURE__*/ S.Array(
|
|
242
|
+
RevisionVariable,
|
|
243
|
+
) as any as S.Schema<RevisionVariablesList>;
|
|
244
|
+
|
|
245
|
+
/** The function revision */
|
|
246
|
+
export interface Revision {
|
|
247
|
+
/** Time the function was created. */
|
|
248
|
+
created_at?: string;
|
|
249
|
+
/** A hashed fingerprint of the revision artifact. */
|
|
250
|
+
digest?: string;
|
|
251
|
+
/** The ID of the function associated with this revision. */
|
|
252
|
+
function_id?: string;
|
|
253
|
+
/** The revision identifier. */
|
|
254
|
+
id?: string;
|
|
255
|
+
labels?: RevisionLabelsMap;
|
|
256
|
+
limits: ResourceLimits;
|
|
257
|
+
/** Revision message */
|
|
258
|
+
message?: string;
|
|
259
|
+
/** The name of the the revision. Must be unique within the function. */
|
|
260
|
+
name?: string;
|
|
261
|
+
/** OCI Registry pull credential to use for pulling the revision's image. */
|
|
262
|
+
oci_pull_credential_id?: string;
|
|
263
|
+
/** OCI reference for the revision. */
|
|
264
|
+
oci_reference: string;
|
|
265
|
+
/** Status of this revision. */
|
|
266
|
+
state?: RevisionState;
|
|
267
|
+
/** Error message related to this revision. */
|
|
268
|
+
state_error?: string;
|
|
269
|
+
/** Time the function was last updated. */
|
|
270
|
+
updated_at?: string;
|
|
271
|
+
/** Variable values for this revision. Each variable must reference a variable definition on the function. */
|
|
272
|
+
variables?: RevisionVariablesList;
|
|
273
|
+
/** The version number of the revision. */
|
|
274
|
+
version?: number;
|
|
275
|
+
}
|
|
276
|
+
export const Revision = /*@__PURE__*/ S.suspend(() =>
|
|
277
|
+
S.Struct({
|
|
278
|
+
created_at: S.optional(S.String),
|
|
279
|
+
digest: S.optional(S.String),
|
|
280
|
+
function_id: S.optional(S.String),
|
|
281
|
+
id: S.optional(S.String),
|
|
282
|
+
labels: S.optional(RevisionLabelsMap),
|
|
283
|
+
limits: ResourceLimits,
|
|
284
|
+
message: S.optional(S.String),
|
|
285
|
+
name: S.optional(S.String),
|
|
286
|
+
oci_pull_credential_id: S.optional(S.String),
|
|
287
|
+
oci_reference: S.String,
|
|
288
|
+
state: S.optional(RevisionState),
|
|
289
|
+
state_error: S.optional(S.String),
|
|
290
|
+
updated_at: S.optional(S.String),
|
|
291
|
+
variables: S.optional(RevisionVariablesList),
|
|
292
|
+
version: S.optional(S.Number),
|
|
293
|
+
}),
|
|
294
|
+
).annotate({ identifier: "Revision" }) as any as S.Schema<Revision>;
|
|
295
|
+
|
|
296
|
+
export type CreatePullCredentialRequestLabelsMap = { [key: string]: string | undefined };
|
|
297
|
+
export const CreatePullCredentialRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
298
|
+
S.String,
|
|
299
|
+
S.String,
|
|
300
|
+
) as any as S.Schema<CreatePullCredentialRequestLabelsMap>;
|
|
301
|
+
|
|
302
|
+
export interface CreatePullCredentialRequest {
|
|
303
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
304
|
+
projectId: string;
|
|
305
|
+
/** The OCI registry address. */
|
|
306
|
+
address: string;
|
|
307
|
+
/** Unique identifier for the OCI registry pull credential. */
|
|
308
|
+
id?: string;
|
|
309
|
+
labels?: CreatePullCredentialRequestLabelsMap;
|
|
310
|
+
/** Unique name for the OCI registry pull credential. */
|
|
311
|
+
name?: string;
|
|
312
|
+
/** The password for the OCI registry pull-credentials. */
|
|
313
|
+
password: string | Redacted.Redacted<string>;
|
|
314
|
+
/** The username for the OCI registry pull-credentials. */
|
|
315
|
+
username: string;
|
|
316
|
+
}
|
|
317
|
+
export const CreatePullCredentialRequest = /*@__PURE__*/ S.suspend(() =>
|
|
318
|
+
S.Struct({
|
|
319
|
+
projectId: S.String.pipe(T.Label()),
|
|
320
|
+
address: S.String,
|
|
321
|
+
id: S.optional(S.String),
|
|
322
|
+
labels: S.optional(CreatePullCredentialRequestLabelsMap),
|
|
323
|
+
name: S.optional(S.String),
|
|
324
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
325
|
+
username: S.String,
|
|
326
|
+
}).pipe(
|
|
327
|
+
T.Http({
|
|
328
|
+
method: "POST",
|
|
329
|
+
uri: "/v1alpha/projects/{projectId}/pull-credentials",
|
|
330
|
+
code: 200,
|
|
331
|
+
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
332
|
+
}),
|
|
333
|
+
),
|
|
334
|
+
).annotate({
|
|
335
|
+
identifier: "CreatePullCredentialRequest",
|
|
336
|
+
}) as any as S.Schema<CreatePullCredentialRequest>;
|
|
337
|
+
|
|
338
|
+
export type PullCredentialLabelsMap = { [key: string]: string | undefined };
|
|
339
|
+
export const PullCredentialLabelsMap = /*@__PURE__*/ S.Record(
|
|
340
|
+
S.String,
|
|
341
|
+
S.String,
|
|
342
|
+
) as any as S.Schema<PullCredentialLabelsMap>;
|
|
343
|
+
|
|
344
|
+
export interface PullCredential {
|
|
345
|
+
/** The OCI registry address. */
|
|
346
|
+
address: string;
|
|
347
|
+
/** Unique identifier for the OCI registry pull credential. */
|
|
348
|
+
id?: string;
|
|
349
|
+
labels?: PullCredentialLabelsMap;
|
|
350
|
+
/** Unique name for the OCI registry pull credential. */
|
|
351
|
+
name?: string;
|
|
352
|
+
/** The password for the OCI registry pull-credentials. */
|
|
353
|
+
password: string | Redacted.Redacted<string>;
|
|
354
|
+
/** The username for the OCI registry pull-credentials. */
|
|
355
|
+
username: string;
|
|
356
|
+
}
|
|
357
|
+
export const PullCredential = /*@__PURE__*/ S.suspend(() =>
|
|
358
|
+
S.Struct({
|
|
359
|
+
address: S.String,
|
|
360
|
+
id: S.optional(S.String),
|
|
361
|
+
labels: S.optional(PullCredentialLabelsMap),
|
|
362
|
+
name: S.optional(S.String),
|
|
363
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
364
|
+
username: S.String,
|
|
365
|
+
}),
|
|
366
|
+
).annotate({ identifier: "PullCredential" }) as any as S.Schema<PullCredential>;
|
|
367
|
+
|
|
368
|
+
export interface DeleteFunctionRequest {
|
|
369
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
370
|
+
projectId: string;
|
|
371
|
+
/** The STACKIT Functions functionId */
|
|
372
|
+
functionId: string;
|
|
373
|
+
}
|
|
374
|
+
export const DeleteFunctionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
375
|
+
S.Struct({
|
|
376
|
+
projectId: S.String.pipe(T.Label()),
|
|
377
|
+
functionId: S.String.pipe(T.Label()),
|
|
378
|
+
}).pipe(
|
|
379
|
+
T.Http({
|
|
380
|
+
method: "DELETE",
|
|
381
|
+
uri: "/v1alpha/projects/{projectId}/functions/{functionId}",
|
|
382
|
+
code: 200,
|
|
383
|
+
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
384
|
+
}),
|
|
385
|
+
),
|
|
386
|
+
).annotate({ identifier: "DeleteFunctionRequest" }) as any as S.Schema<DeleteFunctionRequest>;
|
|
387
|
+
|
|
388
|
+
export interface DeleteFunctionResponse {}
|
|
389
|
+
export const DeleteFunctionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
390
|
+
identifier: "DeleteFunctionResponse",
|
|
391
|
+
}) as any as S.Schema<DeleteFunctionResponse>;
|
|
392
|
+
|
|
393
|
+
export interface DeletePullCredentialRequest {
|
|
394
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
395
|
+
projectId: string;
|
|
396
|
+
/** The identifier of the OCI registry pull credential configuration */
|
|
397
|
+
pullCredentialId: string;
|
|
398
|
+
}
|
|
399
|
+
export const DeletePullCredentialRequest = /*@__PURE__*/ S.suspend(() =>
|
|
400
|
+
S.Struct({
|
|
401
|
+
projectId: S.String.pipe(T.Label()),
|
|
402
|
+
pullCredentialId: S.String.pipe(T.Label()),
|
|
403
|
+
}).pipe(
|
|
404
|
+
T.Http({
|
|
405
|
+
method: "DELETE",
|
|
406
|
+
uri: "/v1alpha/projects/{projectId}/pull-credentials/{pullCredentialId}",
|
|
407
|
+
code: 200,
|
|
408
|
+
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
409
|
+
}),
|
|
410
|
+
),
|
|
411
|
+
).annotate({
|
|
412
|
+
identifier: "DeletePullCredentialRequest",
|
|
413
|
+
}) as any as S.Schema<DeletePullCredentialRequest>;
|
|
414
|
+
|
|
415
|
+
export interface DeletePullCredentialResponse {}
|
|
416
|
+
export const DeletePullCredentialResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
417
|
+
identifier: "DeletePullCredentialResponse",
|
|
418
|
+
}) as any as S.Schema<DeletePullCredentialResponse>;
|
|
419
|
+
|
|
420
|
+
export interface DeleteRevisionRequest {
|
|
421
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
422
|
+
projectId: string;
|
|
423
|
+
/** The STACKIT Functions functionId */
|
|
424
|
+
functionId: string;
|
|
425
|
+
/** The identifier of the revision */
|
|
426
|
+
revisionId: string;
|
|
427
|
+
}
|
|
428
|
+
export const DeleteRevisionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
429
|
+
S.Struct({
|
|
430
|
+
projectId: S.String.pipe(T.Label()),
|
|
431
|
+
functionId: S.String.pipe(T.Label()),
|
|
432
|
+
revisionId: S.String.pipe(T.Label()),
|
|
433
|
+
}).pipe(
|
|
434
|
+
T.Http({
|
|
435
|
+
method: "DELETE",
|
|
436
|
+
uri: "/v1alpha/projects/{projectId}/functions/{functionId}/revisions/{revisionId}",
|
|
437
|
+
code: 200,
|
|
438
|
+
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
439
|
+
}),
|
|
440
|
+
),
|
|
441
|
+
).annotate({ identifier: "DeleteRevisionRequest" }) as any as S.Schema<DeleteRevisionRequest>;
|
|
442
|
+
|
|
443
|
+
export interface DeleteRevisionResponse {}
|
|
444
|
+
export const DeleteRevisionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
445
|
+
identifier: "DeleteRevisionResponse",
|
|
446
|
+
}) as any as S.Schema<DeleteRevisionResponse>;
|
|
447
|
+
|
|
448
|
+
export interface GetFunctionRequest {
|
|
449
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
450
|
+
projectId: string;
|
|
451
|
+
/** The STACKIT Functions functionId */
|
|
452
|
+
functionId: string;
|
|
453
|
+
}
|
|
454
|
+
export const GetFunctionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
455
|
+
S.Struct({
|
|
456
|
+
projectId: S.String.pipe(T.Label()),
|
|
457
|
+
functionId: S.String.pipe(T.Label()),
|
|
458
|
+
}).pipe(
|
|
459
|
+
T.Http({
|
|
460
|
+
method: "GET",
|
|
461
|
+
uri: "/v1alpha/projects/{projectId}/functions/{functionId}",
|
|
462
|
+
code: 200,
|
|
463
|
+
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
464
|
+
}),
|
|
465
|
+
),
|
|
466
|
+
).annotate({ identifier: "GetFunctionRequest" }) as any as S.Schema<GetFunctionRequest>;
|
|
467
|
+
|
|
468
|
+
export interface GetPullCredentialRequest {
|
|
469
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
470
|
+
projectId: string;
|
|
471
|
+
/** The identifier of the OCI registry pull credential configuration */
|
|
472
|
+
pullCredentialId: string;
|
|
473
|
+
}
|
|
474
|
+
export const GetPullCredentialRequest = /*@__PURE__*/ S.suspend(() =>
|
|
475
|
+
S.Struct({
|
|
476
|
+
projectId: S.String.pipe(T.Label()),
|
|
477
|
+
pullCredentialId: S.String.pipe(T.Label()),
|
|
478
|
+
}).pipe(
|
|
479
|
+
T.Http({
|
|
480
|
+
method: "GET",
|
|
481
|
+
uri: "/v1alpha/projects/{projectId}/pull-credentials/{pullCredentialId}",
|
|
482
|
+
code: 200,
|
|
483
|
+
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
484
|
+
}),
|
|
485
|
+
),
|
|
486
|
+
).annotate({ identifier: "GetPullCredentialRequest" }) as any as S.Schema<GetPullCredentialRequest>;
|
|
487
|
+
|
|
488
|
+
export interface GetRevisionRequest {
|
|
489
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
490
|
+
projectId: string;
|
|
491
|
+
/** The STACKIT Functions functionId */
|
|
492
|
+
functionId: string;
|
|
493
|
+
/** The identifier of the revision */
|
|
494
|
+
revisionId: string;
|
|
495
|
+
}
|
|
496
|
+
export const GetRevisionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
497
|
+
S.Struct({
|
|
498
|
+
projectId: S.String.pipe(T.Label()),
|
|
499
|
+
functionId: S.String.pipe(T.Label()),
|
|
500
|
+
revisionId: S.String.pipe(T.Label()),
|
|
501
|
+
}).pipe(
|
|
502
|
+
T.Http({
|
|
503
|
+
method: "GET",
|
|
504
|
+
uri: "/v1alpha/projects/{projectId}/functions/{functionId}/revisions/{revisionId}",
|
|
505
|
+
code: 200,
|
|
506
|
+
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
507
|
+
}),
|
|
508
|
+
),
|
|
509
|
+
).annotate({ identifier: "GetRevisionRequest" }) as any as S.Schema<GetRevisionRequest>;
|
|
510
|
+
|
|
511
|
+
export interface ListFunctionsRequest {
|
|
512
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
513
|
+
projectId: string;
|
|
514
|
+
}
|
|
515
|
+
export const ListFunctionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
516
|
+
S.Struct({
|
|
517
|
+
projectId: S.String.pipe(T.Label()),
|
|
518
|
+
}).pipe(
|
|
519
|
+
T.Http({
|
|
520
|
+
method: "GET",
|
|
521
|
+
uri: "/v1alpha/projects/{projectId}/functions",
|
|
522
|
+
code: 200,
|
|
523
|
+
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
524
|
+
}),
|
|
525
|
+
),
|
|
526
|
+
).annotate({ identifier: "ListFunctionsRequest" }) as any as S.Schema<ListFunctionsRequest>;
|
|
527
|
+
|
|
528
|
+
/** List of functions. */
|
|
529
|
+
export type ListFunctionsFunctionsList = Array<Function>;
|
|
530
|
+
export const ListFunctionsFunctionsList = /*@__PURE__*/ S.Array(
|
|
531
|
+
Function,
|
|
532
|
+
) as any as S.Schema<ListFunctionsFunctionsList>;
|
|
533
|
+
|
|
534
|
+
export interface ListFunctions {
|
|
535
|
+
/** List of functions. */
|
|
536
|
+
functions?: ListFunctionsFunctionsList;
|
|
537
|
+
/** Token for the next page of results. */
|
|
538
|
+
next_page_token?: string;
|
|
539
|
+
}
|
|
540
|
+
export const ListFunctions = /*@__PURE__*/ S.suspend(() =>
|
|
541
|
+
S.Struct({
|
|
542
|
+
functions: S.optional(ListFunctionsFunctionsList),
|
|
543
|
+
next_page_token: S.optional(S.String),
|
|
544
|
+
}),
|
|
545
|
+
).annotate({ identifier: "ListFunctions" }) as any as S.Schema<ListFunctions>;
|
|
546
|
+
|
|
547
|
+
export interface ListPullCredentialsRequest {
|
|
548
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
549
|
+
projectId: string;
|
|
550
|
+
}
|
|
551
|
+
export const ListPullCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
552
|
+
S.Struct({
|
|
553
|
+
projectId: S.String.pipe(T.Label()),
|
|
554
|
+
}).pipe(
|
|
555
|
+
T.Http({
|
|
556
|
+
method: "GET",
|
|
557
|
+
uri: "/v1alpha/projects/{projectId}/pull-credentials",
|
|
558
|
+
code: 200,
|
|
559
|
+
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
560
|
+
}),
|
|
561
|
+
),
|
|
562
|
+
).annotate({
|
|
563
|
+
identifier: "ListPullCredentialsRequest",
|
|
564
|
+
}) as any as S.Schema<ListPullCredentialsRequest>;
|
|
565
|
+
|
|
566
|
+
/** List of oci registries pull credentials associated with the project. */
|
|
567
|
+
export type ListPullCredentialsPullCredentialsList = Array<PullCredential>;
|
|
568
|
+
export const ListPullCredentialsPullCredentialsList = /*@__PURE__*/ S.Array(
|
|
569
|
+
PullCredential,
|
|
570
|
+
) as any as S.Schema<ListPullCredentialsPullCredentialsList>;
|
|
571
|
+
|
|
572
|
+
export interface ListPullCredentials {
|
|
573
|
+
/** Token for the next page of results. */
|
|
574
|
+
next_page_token?: string;
|
|
575
|
+
/** List of oci registries pull credentials associated with the project. */
|
|
576
|
+
pull_credentials?: ListPullCredentialsPullCredentialsList;
|
|
577
|
+
}
|
|
578
|
+
export const ListPullCredentials = /*@__PURE__*/ S.suspend(() =>
|
|
579
|
+
S.Struct({
|
|
580
|
+
next_page_token: S.optional(S.String),
|
|
581
|
+
pull_credentials: S.optional(ListPullCredentialsPullCredentialsList),
|
|
582
|
+
}),
|
|
583
|
+
).annotate({ identifier: "ListPullCredentials" }) as any as S.Schema<ListPullCredentials>;
|
|
584
|
+
|
|
585
|
+
export interface ListRevisionsRequest {
|
|
586
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
587
|
+
projectId: string;
|
|
588
|
+
/** The STACKIT Functions functionId */
|
|
589
|
+
functionId: string;
|
|
590
|
+
}
|
|
591
|
+
export const ListRevisionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
592
|
+
S.Struct({
|
|
593
|
+
projectId: S.String.pipe(T.Label()),
|
|
594
|
+
functionId: S.String.pipe(T.Label()),
|
|
595
|
+
}).pipe(
|
|
596
|
+
T.Http({
|
|
597
|
+
method: "GET",
|
|
598
|
+
uri: "/v1alpha/projects/{projectId}/functions/{functionId}/revisions",
|
|
599
|
+
code: 200,
|
|
600
|
+
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
601
|
+
}),
|
|
602
|
+
),
|
|
603
|
+
).annotate({ identifier: "ListRevisionsRequest" }) as any as S.Schema<ListRevisionsRequest>;
|
|
604
|
+
|
|
605
|
+
/** List of revisions. */
|
|
606
|
+
export type ListRevisionsRevisionListList = Array<Revision>;
|
|
607
|
+
export const ListRevisionsRevisionListList = /*@__PURE__*/ S.Array(
|
|
608
|
+
Revision,
|
|
609
|
+
) as any as S.Schema<ListRevisionsRevisionListList>;
|
|
610
|
+
|
|
611
|
+
export interface ListRevisions {
|
|
612
|
+
/** Maximum number of items */
|
|
613
|
+
maxItems?: number;
|
|
614
|
+
/** Token for the next page of results. */
|
|
615
|
+
next_page_token?: string;
|
|
616
|
+
/** List of revisions. */
|
|
617
|
+
revisionList?: ListRevisionsRevisionListList;
|
|
618
|
+
}
|
|
619
|
+
export const ListRevisions = /*@__PURE__*/ S.suspend(() =>
|
|
620
|
+
S.Struct({
|
|
621
|
+
maxItems: S.optional(S.Number),
|
|
622
|
+
next_page_token: S.optional(S.String),
|
|
623
|
+
revisionList: S.optional(ListRevisionsRevisionListList),
|
|
624
|
+
}),
|
|
625
|
+
).annotate({ identifier: "ListRevisions" }) as any as S.Schema<ListRevisions>;
|
|
626
|
+
|
|
627
|
+
export type UpdateFunctionRequestLabelsMap = { [key: string]: string | undefined };
|
|
628
|
+
export const UpdateFunctionRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
629
|
+
S.String,
|
|
630
|
+
S.String,
|
|
631
|
+
) as any as S.Schema<UpdateFunctionRequestLabelsMap>;
|
|
632
|
+
|
|
633
|
+
export interface UpdateFunctionRequest {
|
|
634
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
635
|
+
projectId: string;
|
|
636
|
+
/** The STACKIT Functions functionId */
|
|
637
|
+
functionId: string;
|
|
638
|
+
labels?: UpdateFunctionRequestLabelsMap;
|
|
639
|
+
/** User-defined name of the function. */
|
|
640
|
+
name?: string;
|
|
641
|
+
}
|
|
642
|
+
export const UpdateFunctionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
643
|
+
S.Struct({
|
|
644
|
+
projectId: S.String.pipe(T.Label()),
|
|
645
|
+
functionId: S.String.pipe(T.Label()),
|
|
646
|
+
labels: S.optional(UpdateFunctionRequestLabelsMap),
|
|
647
|
+
name: S.optional(S.String),
|
|
648
|
+
}).pipe(
|
|
649
|
+
T.Http({
|
|
650
|
+
method: "PATCH",
|
|
651
|
+
uri: "/v1alpha/projects/{projectId}/functions/{functionId}",
|
|
652
|
+
code: 200,
|
|
653
|
+
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
654
|
+
}),
|
|
655
|
+
),
|
|
656
|
+
).annotate({ identifier: "UpdateFunctionRequest" }) as any as S.Schema<UpdateFunctionRequest>;
|
|
657
|
+
|
|
658
|
+
export type UpdatePullCredentialRequestLabelsMap = { [key: string]: string | undefined };
|
|
659
|
+
export const UpdatePullCredentialRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
660
|
+
S.String,
|
|
661
|
+
S.String,
|
|
662
|
+
) as any as S.Schema<UpdatePullCredentialRequestLabelsMap>;
|
|
663
|
+
|
|
664
|
+
export interface UpdatePullCredentialRequest {
|
|
665
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
666
|
+
projectId: string;
|
|
667
|
+
/** The identifier of the OCI registry pull credential configuration */
|
|
668
|
+
pullCredentialId: string;
|
|
669
|
+
/** The OCI registry address. */
|
|
670
|
+
address?: string;
|
|
671
|
+
labels?: UpdatePullCredentialRequestLabelsMap;
|
|
672
|
+
/** Unique name for the OCI registry pull secret. */
|
|
673
|
+
name?: string;
|
|
674
|
+
/** The password for the OCI registry pull-credentials. */
|
|
675
|
+
password?: string | Redacted.Redacted<string>;
|
|
676
|
+
/** The username for the OCI registry pull-credentials. */
|
|
677
|
+
username?: string;
|
|
678
|
+
}
|
|
679
|
+
export const UpdatePullCredentialRequest = /*@__PURE__*/ S.suspend(() =>
|
|
680
|
+
S.Struct({
|
|
681
|
+
projectId: S.String.pipe(T.Label()),
|
|
682
|
+
pullCredentialId: S.String.pipe(T.Label()),
|
|
683
|
+
address: S.optional(S.String),
|
|
684
|
+
labels: S.optional(UpdatePullCredentialRequestLabelsMap),
|
|
685
|
+
name: S.optional(S.String),
|
|
686
|
+
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
687
|
+
username: S.optional(S.String),
|
|
688
|
+
}).pipe(
|
|
689
|
+
T.Http({
|
|
690
|
+
method: "PATCH",
|
|
691
|
+
uri: "/v1alpha/projects/{projectId}/pull-credentials/{pullCredentialId}",
|
|
692
|
+
code: 200,
|
|
693
|
+
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
694
|
+
}),
|
|
695
|
+
),
|
|
696
|
+
).annotate({
|
|
697
|
+
identifier: "UpdatePullCredentialRequest",
|
|
698
|
+
}) as any as S.Schema<UpdatePullCredentialRequest>;
|
|
699
|
+
|
|
700
|
+
export type UpdateRevisionRequestLabelsMap = { [key: string]: string | undefined };
|
|
701
|
+
export const UpdateRevisionRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
702
|
+
S.String,
|
|
703
|
+
S.String,
|
|
704
|
+
) as any as S.Schema<UpdateRevisionRequestLabelsMap>;
|
|
705
|
+
|
|
706
|
+
export interface UpdateRevisionRequest {
|
|
707
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
708
|
+
projectId: string;
|
|
709
|
+
/** The STACKIT Functions functionId */
|
|
710
|
+
functionId: string;
|
|
711
|
+
/** The identifier of the revision */
|
|
712
|
+
revisionId: string;
|
|
713
|
+
labels?: UpdateRevisionRequestLabelsMap;
|
|
714
|
+
/** The name of the the revision. Must be unique within the function. */
|
|
715
|
+
name?: string;
|
|
716
|
+
}
|
|
717
|
+
export const UpdateRevisionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
718
|
+
S.Struct({
|
|
719
|
+
projectId: S.String.pipe(T.Label()),
|
|
720
|
+
functionId: S.String.pipe(T.Label()),
|
|
721
|
+
revisionId: S.String.pipe(T.Label()),
|
|
722
|
+
labels: S.optional(UpdateRevisionRequestLabelsMap),
|
|
723
|
+
name: S.optional(S.String),
|
|
724
|
+
}).pipe(
|
|
725
|
+
T.Http({
|
|
726
|
+
method: "PATCH",
|
|
727
|
+
uri: "/v1alpha/projects/{projectId}/functions/{functionId}/revisions/{revisionId}",
|
|
728
|
+
code: 200,
|
|
729
|
+
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
730
|
+
}),
|
|
731
|
+
),
|
|
732
|
+
).annotate({ identifier: "UpdateRevisionRequest" }) as any as S.Schema<UpdateRevisionRequest>;
|
|
733
|
+
|
|
734
|
+
export type CreateFunctionError = StackitOpError;
|
|
735
|
+
/** Creates a new function. */
|
|
736
|
+
export const createFunction: API.OperationMethod<
|
|
737
|
+
CreateFunctionRequest,
|
|
738
|
+
Function,
|
|
739
|
+
CreateFunctionError,
|
|
740
|
+
StackitOpContext
|
|
741
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
742
|
+
input: CreateFunctionRequest,
|
|
743
|
+
output: Function,
|
|
744
|
+
errors: [UnknownStackitError],
|
|
745
|
+
protocol: StackitProtocol,
|
|
746
|
+
retry: Retry.Retry,
|
|
747
|
+
}));
|
|
748
|
+
|
|
749
|
+
export type CreateFunctionRevisionError = StackitOpError;
|
|
750
|
+
/** Create a new function revision */
|
|
751
|
+
export const createFunctionRevision: API.OperationMethod<
|
|
752
|
+
CreateFunctionRevisionRequest,
|
|
753
|
+
Revision,
|
|
754
|
+
CreateFunctionRevisionError,
|
|
755
|
+
StackitOpContext
|
|
756
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
757
|
+
input: CreateFunctionRevisionRequest,
|
|
758
|
+
output: Revision,
|
|
759
|
+
errors: [UnknownStackitError],
|
|
760
|
+
protocol: StackitProtocol,
|
|
761
|
+
retry: Retry.Retry,
|
|
762
|
+
}));
|
|
763
|
+
|
|
764
|
+
export type CreatePullCredentialError = StackitOpError;
|
|
765
|
+
/** Create OCI image registry pull credential definition Create a new OCI image registry pull credential configuration. */
|
|
766
|
+
export const createPullCredential: API.OperationMethod<
|
|
767
|
+
CreatePullCredentialRequest,
|
|
768
|
+
PullCredential,
|
|
769
|
+
CreatePullCredentialError,
|
|
770
|
+
StackitOpContext
|
|
771
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
772
|
+
input: CreatePullCredentialRequest,
|
|
773
|
+
output: PullCredential,
|
|
774
|
+
errors: [UnknownStackitError],
|
|
775
|
+
protocol: StackitProtocol,
|
|
776
|
+
retry: Retry.Retry,
|
|
777
|
+
}));
|
|
778
|
+
|
|
779
|
+
export type DeleteFunctionError = StackitOpError;
|
|
780
|
+
/** Deletes a specific function. */
|
|
781
|
+
export const deleteFunction: API.OperationMethod<
|
|
782
|
+
DeleteFunctionRequest,
|
|
783
|
+
DeleteFunctionResponse,
|
|
784
|
+
DeleteFunctionError,
|
|
785
|
+
StackitOpContext
|
|
786
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
787
|
+
input: DeleteFunctionRequest,
|
|
788
|
+
output: DeleteFunctionResponse,
|
|
789
|
+
errors: [UnknownStackitError],
|
|
790
|
+
protocol: StackitProtocol,
|
|
791
|
+
retry: Retry.Retry,
|
|
792
|
+
}));
|
|
793
|
+
|
|
794
|
+
export type DeletePullCredentialError = StackitOpError;
|
|
795
|
+
/** Remove OCI image registry pull credential definition Removes the OCI image pull credential registry configuration. */
|
|
796
|
+
export const deletePullCredential: API.OperationMethod<
|
|
797
|
+
DeletePullCredentialRequest,
|
|
798
|
+
DeletePullCredentialResponse,
|
|
799
|
+
DeletePullCredentialError,
|
|
800
|
+
StackitOpContext
|
|
801
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
802
|
+
input: DeletePullCredentialRequest,
|
|
803
|
+
output: DeletePullCredentialResponse,
|
|
804
|
+
errors: [UnknownStackitError],
|
|
805
|
+
protocol: StackitProtocol,
|
|
806
|
+
retry: Retry.Retry,
|
|
807
|
+
}));
|
|
808
|
+
|
|
809
|
+
export type DeleteRevisionError = StackitOpError;
|
|
810
|
+
/** Deletes a specific revision. */
|
|
811
|
+
export const deleteRevision: API.OperationMethod<
|
|
812
|
+
DeleteRevisionRequest,
|
|
813
|
+
DeleteRevisionResponse,
|
|
814
|
+
DeleteRevisionError,
|
|
815
|
+
StackitOpContext
|
|
816
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
817
|
+
input: DeleteRevisionRequest,
|
|
818
|
+
output: DeleteRevisionResponse,
|
|
819
|
+
errors: [UnknownStackitError],
|
|
820
|
+
protocol: StackitProtocol,
|
|
821
|
+
retry: Retry.Retry,
|
|
822
|
+
}));
|
|
823
|
+
|
|
824
|
+
export type GetFunctionError = StackitOpError;
|
|
825
|
+
/** Retrieves details of a specific function. */
|
|
826
|
+
export const getFunction: API.OperationMethod<
|
|
827
|
+
GetFunctionRequest,
|
|
828
|
+
Function,
|
|
829
|
+
GetFunctionError,
|
|
830
|
+
StackitOpContext
|
|
831
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
832
|
+
input: GetFunctionRequest,
|
|
833
|
+
output: Function,
|
|
834
|
+
errors: [UnknownStackitError],
|
|
835
|
+
protocol: StackitProtocol,
|
|
836
|
+
retry: Retry.Retry,
|
|
837
|
+
}));
|
|
838
|
+
|
|
839
|
+
export type GetPullCredentialError = StackitOpError;
|
|
840
|
+
/** Get OCI image registry pull credential definition Returns the current OCI image registry pull credential configuration. */
|
|
841
|
+
export const getPullCredential: API.OperationMethod<
|
|
842
|
+
GetPullCredentialRequest,
|
|
843
|
+
PullCredential,
|
|
844
|
+
GetPullCredentialError,
|
|
845
|
+
StackitOpContext
|
|
846
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
847
|
+
input: GetPullCredentialRequest,
|
|
848
|
+
output: PullCredential,
|
|
849
|
+
errors: [UnknownStackitError],
|
|
850
|
+
protocol: StackitProtocol,
|
|
851
|
+
retry: Retry.Retry,
|
|
852
|
+
}));
|
|
853
|
+
|
|
854
|
+
export type GetRevisionError = StackitOpError;
|
|
855
|
+
/** Retrieves a specific revision. */
|
|
856
|
+
export const getRevision: API.OperationMethod<
|
|
857
|
+
GetRevisionRequest,
|
|
858
|
+
Revision,
|
|
859
|
+
GetRevisionError,
|
|
860
|
+
StackitOpContext
|
|
861
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
862
|
+
input: GetRevisionRequest,
|
|
863
|
+
output: Revision,
|
|
864
|
+
errors: [UnknownStackitError],
|
|
865
|
+
protocol: StackitProtocol,
|
|
866
|
+
retry: Retry.Retry,
|
|
867
|
+
}));
|
|
868
|
+
|
|
869
|
+
export type ListFunctions2Error = StackitOpError;
|
|
870
|
+
/** Lists all functions. */
|
|
871
|
+
export const listFunctions2: API.OperationMethod<
|
|
872
|
+
ListFunctionsRequest,
|
|
873
|
+
ListFunctions,
|
|
874
|
+
ListFunctions2Error,
|
|
875
|
+
StackitOpContext
|
|
876
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
877
|
+
input: ListFunctionsRequest,
|
|
878
|
+
output: ListFunctions,
|
|
879
|
+
errors: [UnknownStackitError],
|
|
880
|
+
protocol: StackitProtocol,
|
|
881
|
+
retry: Retry.Retry,
|
|
882
|
+
}));
|
|
883
|
+
|
|
884
|
+
export type ListPullCredentials2Error = StackitOpError;
|
|
885
|
+
/** List OCI image registry pull credential definitions Returns all the current OCI image registry pull credential configurations for a project. */
|
|
886
|
+
export const listPullCredentials2: API.OperationMethod<
|
|
887
|
+
ListPullCredentialsRequest,
|
|
888
|
+
ListPullCredentials,
|
|
889
|
+
ListPullCredentials2Error,
|
|
890
|
+
StackitOpContext
|
|
891
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
892
|
+
input: ListPullCredentialsRequest,
|
|
893
|
+
output: ListPullCredentials,
|
|
894
|
+
errors: [UnknownStackitError],
|
|
895
|
+
protocol: StackitProtocol,
|
|
896
|
+
retry: Retry.Retry,
|
|
897
|
+
}));
|
|
898
|
+
|
|
899
|
+
export type ListRevisions2Error = StackitOpError;
|
|
900
|
+
/** Lists all revisions. */
|
|
901
|
+
export const listRevisions2: API.OperationMethod<
|
|
902
|
+
ListRevisionsRequest,
|
|
903
|
+
ListRevisions,
|
|
904
|
+
ListRevisions2Error,
|
|
905
|
+
StackitOpContext
|
|
906
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
907
|
+
input: ListRevisionsRequest,
|
|
908
|
+
output: ListRevisions,
|
|
909
|
+
errors: [UnknownStackitError],
|
|
910
|
+
protocol: StackitProtocol,
|
|
911
|
+
retry: Retry.Retry,
|
|
912
|
+
}));
|
|
913
|
+
|
|
914
|
+
export type UpdateFunctionError = StackitOpError;
|
|
915
|
+
/** Updates a specific function. */
|
|
916
|
+
export const updateFunction: API.OperationMethod<
|
|
917
|
+
UpdateFunctionRequest,
|
|
918
|
+
Function,
|
|
919
|
+
UpdateFunctionError,
|
|
920
|
+
StackitOpContext
|
|
921
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
922
|
+
input: UpdateFunctionRequest,
|
|
923
|
+
output: Function,
|
|
924
|
+
errors: [UnknownStackitError],
|
|
925
|
+
protocol: StackitProtocol,
|
|
926
|
+
retry: Retry.Retry,
|
|
927
|
+
}));
|
|
928
|
+
|
|
929
|
+
export type UpdatePullCredentialError = StackitOpError;
|
|
930
|
+
/** Update OCI image registry pull credential definition Updates the OCI image registry pull credential configuration. */
|
|
931
|
+
export const updatePullCredential: API.OperationMethod<
|
|
932
|
+
UpdatePullCredentialRequest,
|
|
933
|
+
PullCredential,
|
|
934
|
+
UpdatePullCredentialError,
|
|
935
|
+
StackitOpContext
|
|
936
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
937
|
+
input: UpdatePullCredentialRequest,
|
|
938
|
+
output: PullCredential,
|
|
939
|
+
errors: [UnknownStackitError],
|
|
940
|
+
protocol: StackitProtocol,
|
|
941
|
+
retry: Retry.Retry,
|
|
942
|
+
}));
|
|
943
|
+
|
|
944
|
+
export type UpdateRevisionError = StackitOpError;
|
|
945
|
+
/** Updates a specific revision. */
|
|
946
|
+
export const updateRevision: API.OperationMethod<
|
|
947
|
+
UpdateRevisionRequest,
|
|
948
|
+
Revision,
|
|
949
|
+
UpdateRevisionError,
|
|
950
|
+
StackitOpContext
|
|
951
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
952
|
+
input: UpdateRevisionRequest,
|
|
953
|
+
output: Revision,
|
|
954
|
+
errors: [UnknownStackitError],
|
|
955
|
+
protocol: StackitProtocol,
|
|
956
|
+
retry: Retry.Retry,
|
|
957
|
+
}));
|