@distilled.cloud/stackit 1.0.0-rc.14 → 1.0.0-rc.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +32 -28
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +13 -13
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +16 -16
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +22 -22
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +15 -15
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +31 -29
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +24 -23
- package/lib/retry.js.map +1 -1
- package/lib/services/alb.d.ts +10 -87
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +73 -502
- package/lib/services/alb_waf.d.ts +9 -82
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +84 -510
- package/lib/services/authorization.d.ts +5 -47
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +67 -314
- package/lib/services/automation.d.ts +7 -47
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +58 -353
- package/lib/services/cdn.d.ts +8 -220
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +81 -896
- package/lib/services/certificates.d.ts +8 -27
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +45 -171
- package/lib/services/cost.d.ts +10 -37
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +39 -169
- package/lib/services/dns.d.ts +9 -104
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +98 -714
- package/lib/services/dremio.d.ts +8 -50
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +56 -307
- package/lib/services/edge.d.ts +7 -40
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +66 -347
- package/lib/services/functions.d.ts +1 -48
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +64 -393
- package/lib/services/git.d.ts +8 -61
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +87 -510
- package/lib/services/iaas.d.ts +9 -337
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +409 -3532
- package/lib/services/intake.d.ts +8 -75
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +74 -465
- package/lib/services/kms.d.ts +9 -92
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +95 -650
- package/lib/services/lb_ip_lists.d.ts +9 -25
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +45 -146
- package/lib/services/load_balancer.d.ts +10 -81
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +76 -486
- package/lib/services/logme.d.ts +8 -69
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +82 -564
- package/lib/services/logs.d.ts +8 -64
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +84 -465
- package/lib/services/mariadb.d.ts +8 -65
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +84 -541
- package/lib/services/model_experiments.d.ts +9 -48
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +66 -325
- package/lib/services/model_serving.d.ts +7 -47
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +55 -277
- package/lib/services/mongodb_flex.d.ts +8 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +102 -793
- package/lib/services/object_storage.d.ts +12 -59
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +93 -528
- package/lib/services/observability.d.ts +8 -407
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +375 -3148
- package/lib/services/opensearch.d.ts +8 -71
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +85 -553
- package/lib/services/pim.d.ts +12 -108
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +81 -726
- package/lib/services/postgres_flex.d.ts +14 -136
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +114 -841
- package/lib/services/pubsub.d.ts +11 -73
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +92 -507
- package/lib/services/rabbitmq.d.ts +8 -76
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +88 -564
- package/lib/services/registry.d.ts +10 -28
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +49 -189
- package/lib/services/resource_manager.d.ts +9 -61
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +92 -462
- package/lib/services/run_command.d.ts +5 -28
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +38 -176
- package/lib/services/sca.d.ts +8 -79
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +63 -435
- package/lib/services/scf.d.ts +8 -64
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +99 -660
- package/lib/services/secrets_manager.d.ts +8 -61
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +99 -601
- package/lib/services/server_backup.d.ts +7 -50
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +70 -444
- package/lib/services/server_update.d.ts +7 -35
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +58 -342
- package/lib/services/service_account.d.ts +10 -68
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +75 -495
- package/lib/services/service_enablement.d.ts +7 -29
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +40 -147
- package/lib/services/sfs.d.ts +4 -96
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +117 -782
- package/lib/services/ske.d.ts +9 -108
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +67 -549
- package/lib/services/sqlserverflex.d.ts +11 -152
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +112 -925
- package/lib/services/stackit_marketplace.d.ts +9 -38
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +64 -369
- package/lib/services/telemetry_link.d.ts +8 -61
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +81 -522
- package/lib/services/telemetry_router.d.ts +8 -72
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +73 -474
- package/lib/services/ufw.d.ts +7 -42
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +55 -269
- package/lib/services/valkey.d.ts +8 -68
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +85 -557
- package/lib/services/vpn.d.ts +21 -186
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +105 -920
- package/lib/services/workflows.d.ts +15 -84
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +67 -497
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +10 -10
- package/package.json +13 -9
- package/src/credentials.ts +21 -18
- package/src/errors.ts +10 -14
- package/src/index.ts +2 -2
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +12 -9
- package/src/retry.ts +6 -4
- package/src/services/alb.ts +599 -655
- package/src/services/alb_waf.ts +597 -637
- package/src/services/authorization.ts +400 -383
- package/src/services/automation.ts +422 -405
- package/src/services/cdn.ts +817 -1375
- package/src/services/certificates.ts +209 -190
- package/src/services/cost.ts +100 -207
- package/src/services/dns.ts +793 -833
- package/src/services/dremio.ts +356 -349
- package/src/services/edge.ts +406 -366
- package/src/services/functions.ts +465 -463
- package/src/services/git.ts +602 -547
- package/src/services/iaas.ts +3931 -3821
- package/src/services/intake.ts +521 -549
- package/src/services/kms.ts +715 -692
- package/src/services/lb_ip_lists.ts +173 -152
- package/src/services/load_balancer.ts +576 -619
- package/src/services/logme.ts +696 -641
- package/src/services/logs.ts +510 -493
- package/src/services/mariadb.ts +671 -604
- package/src/services/model_experiments.ts +343 -356
- package/src/services/model_serving.ts +337 -328
- package/src/services/mongodb_flex.ts +955 -1007
- package/src/services/object_storage.ts +614 -557
- package/src/services/observability.ts +3469 -3866
- package/src/services/opensearch.ts +679 -628
- package/src/services/pim.ts +672 -909
- package/src/services/postgres_flex.ts +966 -986
- package/src/services/pubsub.ts +524 -546
- package/src/services/rabbitmq.ts +693 -654
- package/src/services/registry.ts +227 -194
- package/src/services/resource_manager.ts +520 -517
- package/src/services/run_command.ts +219 -211
- package/src/services/sca.ts +543 -570
- package/src/services/scf.ts +790 -716
- package/src/services/secrets_manager.ts +707 -622
- package/src/services/server_backup.ts +490 -475
- package/src/services/server_update.ts +353 -356
- package/src/services/service_account.ts +515 -553
- package/src/services/service_enablement.ts +162 -166
- package/src/services/sfs.ts +879 -958
- package/src/services/ske.ts +694 -769
- package/src/services/sqlserverflex.ts +1042 -1117
- package/src/services/stackit_marketplace.ts +377 -372
- package/src/services/telemetry_link.ts +530 -531
- package/src/services/telemetry_router.ts +509 -534
- package/src/services/ufw.ts +305 -307
- package/src/services/valkey.ts +684 -629
- package/src/services/vpn.ts +935 -1195
- package/src/services/workflows.ts +426 -586
- package/src/traits.ts +1 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -181
- package/lib/protocol.test.js.map +0 -1
- package/lib/services/alb.js.map +0 -1
- package/lib/services/alb_waf.js.map +0 -1
- package/lib/services/authorization.js.map +0 -1
- package/lib/services/automation.js.map +0 -1
- package/lib/services/cdn.js.map +0 -1
- package/lib/services/certificates.js.map +0 -1
- package/lib/services/cost.js.map +0 -1
- package/lib/services/dns.js.map +0 -1
- package/lib/services/dremio.js.map +0 -1
- package/lib/services/edge.js.map +0 -1
- package/lib/services/functions.js.map +0 -1
- package/lib/services/git.js.map +0 -1
- package/lib/services/iaas.js.map +0 -1
- package/lib/services/intake.js.map +0 -1
- package/lib/services/kms.js.map +0 -1
- package/lib/services/lb_ip_lists.js.map +0 -1
- package/lib/services/load_balancer.js.map +0 -1
- package/lib/services/logme.js.map +0 -1
- package/lib/services/logs.js.map +0 -1
- package/lib/services/mariadb.js.map +0 -1
- package/lib/services/model_experiments.js.map +0 -1
- package/lib/services/model_serving.js.map +0 -1
- package/lib/services/mongodb_flex.js.map +0 -1
- package/lib/services/object_storage.js.map +0 -1
- package/lib/services/observability.js.map +0 -1
- package/lib/services/opensearch.js.map +0 -1
- package/lib/services/pim.js.map +0 -1
- package/lib/services/postgres_flex.js.map +0 -1
- package/lib/services/pubsub.js.map +0 -1
- package/lib/services/rabbitmq.js.map +0 -1
- package/lib/services/registry.js.map +0 -1
- package/lib/services/resource_manager.js.map +0 -1
- package/lib/services/run_command.js.map +0 -1
- package/lib/services/sca.js.map +0 -1
- package/lib/services/scf.js.map +0 -1
- package/lib/services/secrets_manager.js.map +0 -1
- package/lib/services/server_backup.js.map +0 -1
- package/lib/services/server_update.js.map +0 -1
- package/lib/services/service_account.js.map +0 -1
- package/lib/services/service_enablement.js.map +0 -1
- package/lib/services/sfs.js.map +0 -1
- package/lib/services/ske.js.map +0 -1
- package/lib/services/sqlserverflex.js.map +0 -1
- package/lib/services/stackit_marketplace.js.map +0 -1
- package/lib/services/telemetry_link.js.map +0 -1
- package/lib/services/telemetry_router.js.map +0 -1
- package/lib/services/ufw.js.map +0 -1
- package/lib/services/valkey.js.map +0 -1
- package/lib/services/vpn.js.map +0 -1
- package/lib/services/workflows.js.map +0 -1
- package/src/protocol.test.ts +0 -304
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
-
import * as Redacted from "effect/Redacted";
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
3
|
+
import type * as Redacted from "effect/Redacted";
|
|
4
4
|
import { type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
5
5
|
export type { StackitOpError, StackitOpContext };
|
|
6
|
-
declare const BadRequest_base: S.
|
|
6
|
+
declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
|
|
7
7
|
readonly code: any;
|
|
8
8
|
readonly message: any;
|
|
9
|
-
}
|
|
9
|
+
}> & (new (...args: any[]) => {
|
|
10
10
|
"@distilled.cloud/error/categories": {
|
|
11
11
|
BadRequestError: true;
|
|
12
12
|
};
|
|
13
13
|
});
|
|
14
14
|
export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
|
|
15
15
|
}
|
|
16
|
-
declare const Conflict_base: S.
|
|
16
|
+
declare const Conflict_base: S.TaggedErrorClass<"Conflict", {
|
|
17
17
|
readonly code: any;
|
|
18
18
|
readonly message: any;
|
|
19
|
-
}
|
|
19
|
+
}> & (new (...args: any[]) => {
|
|
20
20
|
"@distilled.cloud/error/categories": {
|
|
21
21
|
ConflictError: true;
|
|
22
22
|
};
|
|
23
23
|
});
|
|
24
24
|
export declare class Conflict extends /*@__PURE__*/ Conflict_base {
|
|
25
25
|
}
|
|
26
|
-
declare const Forbidden_base: S.
|
|
26
|
+
declare const Forbidden_base: S.TaggedErrorClass<"Forbidden", {
|
|
27
27
|
readonly code: any;
|
|
28
28
|
readonly message: any;
|
|
29
|
-
}
|
|
29
|
+
}> & (new (...args: any[]) => {
|
|
30
30
|
"@distilled.cloud/error/categories": {
|
|
31
31
|
AuthError: true;
|
|
32
32
|
};
|
|
33
33
|
});
|
|
34
34
|
export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
|
|
35
35
|
}
|
|
36
|
-
declare const NotFound_base: S.
|
|
36
|
+
declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
|
|
37
37
|
readonly code: any;
|
|
38
38
|
readonly message: any;
|
|
39
|
-
}
|
|
39
|
+
}> & (new (...args: any[]) => {
|
|
40
40
|
"@distilled.cloud/error/categories": {
|
|
41
41
|
BadRequestError: true;
|
|
42
42
|
};
|
|
@@ -48,7 +48,6 @@ export interface Credentials {
|
|
|
48
48
|
access_key?: string;
|
|
49
49
|
access_secret?: string | Redacted.Redacted<string>;
|
|
50
50
|
}
|
|
51
|
-
export declare const Credentials: S.Schema<Credentials>;
|
|
52
51
|
/** Provide an upstream repository this project is a proxy for */
|
|
53
52
|
export interface CreateProxyRequest {
|
|
54
53
|
credentials?: Credentials;
|
|
@@ -59,7 +58,6 @@ export interface CreateProxyRequest {
|
|
|
59
58
|
/** Upstream registry url to proxy */
|
|
60
59
|
url: string;
|
|
61
60
|
}
|
|
62
|
-
export declare const CreateProxyRequest: S.Schema<CreateProxyRequest>;
|
|
63
61
|
export interface CreateArtifactoryRequest {
|
|
64
62
|
/** Project identifier. */
|
|
65
63
|
projectId: string;
|
|
@@ -72,12 +70,10 @@ export interface CreateArtifactoryRequest {
|
|
|
72
70
|
/** If proxy configuration is provided, this project will be created as a proxy-cache for the upstream registry. */
|
|
73
71
|
proxy?: CreateProxyRequest;
|
|
74
72
|
}
|
|
75
|
-
export declare const CreateArtifactoryRequest: S.Schema<CreateArtifactoryRequest>;
|
|
76
73
|
/** Credentials for upstream registry, redacted */
|
|
77
74
|
export interface RedactedCredentials {
|
|
78
75
|
access_key?: string;
|
|
79
76
|
}
|
|
80
|
-
export declare const RedactedCredentials: S.Schema<RedactedCredentials>;
|
|
81
77
|
/** Replication settings for a proxy-cache artifactory */
|
|
82
78
|
export interface Proxy {
|
|
83
79
|
credentials?: RedactedCredentials;
|
|
@@ -88,7 +84,6 @@ export interface Proxy {
|
|
|
88
84
|
/** Upstream registry url to proxy */
|
|
89
85
|
url: string;
|
|
90
86
|
}
|
|
91
|
-
export declare const Proxy: S.Schema<Proxy>;
|
|
92
87
|
/** Artifactory Information. */
|
|
93
88
|
export interface Artifactory {
|
|
94
89
|
/** How many bytes of quota is consumed. Read Only. */
|
|
@@ -107,7 +102,6 @@ export interface Artifactory {
|
|
|
107
102
|
/** How many users does this artifactory have. Read Only. */
|
|
108
103
|
user_count: number;
|
|
109
104
|
}
|
|
110
|
-
export declare const Artifactory: S.Schema<Artifactory>;
|
|
111
105
|
export interface DeleteArtifactoryRequest {
|
|
112
106
|
/** Project identifier. */
|
|
113
107
|
projectId: string;
|
|
@@ -116,10 +110,8 @@ export interface DeleteArtifactoryRequest {
|
|
|
116
110
|
/** Artifactory identifier. */
|
|
117
111
|
artifactoryId: string;
|
|
118
112
|
}
|
|
119
|
-
export declare const DeleteArtifactoryRequest: S.Schema<DeleteArtifactoryRequest>;
|
|
120
113
|
export interface DeleteArtifactoryResponse {
|
|
121
114
|
}
|
|
122
|
-
export declare const DeleteArtifactoryResponse: S.Schema<DeleteArtifactoryResponse>;
|
|
123
115
|
export interface GetArtifactoryRequest {
|
|
124
116
|
/** Project identifier. */
|
|
125
117
|
projectId: string;
|
|
@@ -128,7 +120,6 @@ export interface GetArtifactoryRequest {
|
|
|
128
120
|
/** Artifactory identifier. */
|
|
129
121
|
artifactoryId: string;
|
|
130
122
|
}
|
|
131
|
-
export declare const GetArtifactoryRequest: S.Schema<GetArtifactoryRequest>;
|
|
132
123
|
export interface ListArtifactoriesRequest {
|
|
133
124
|
/** Project identifier. */
|
|
134
125
|
projectId: string;
|
|
@@ -139,39 +130,32 @@ export interface ListArtifactoriesRequest {
|
|
|
139
130
|
/** A page token, received from a previous `ListArtifactories` call. Provide this to retrieve the subsequent page. */
|
|
140
131
|
next_page_token?: string;
|
|
141
132
|
}
|
|
142
|
-
export declare const ListArtifactoriesRequest: S.Schema<ListArtifactoriesRequest>;
|
|
143
133
|
export type ArtifactoryListArtifactoriesList = Array<Artifactory>;
|
|
144
|
-
export declare const ArtifactoryListArtifactoriesList: S.Schema<ArtifactoryListArtifactoriesList>;
|
|
145
134
|
/** A list of artifactories inside a STACKIT project. */
|
|
146
135
|
export interface ArtifactoryList {
|
|
147
136
|
artifactories: ArtifactoryListArtifactoriesList;
|
|
148
137
|
/** A token to retrieve the next page of results. Pass this value as `page_token` in the subsequent request. If empty, there are no more pages. */
|
|
149
138
|
next_page_token?: string;
|
|
150
139
|
}
|
|
151
|
-
export declare const ArtifactoryList: S.Schema<ArtifactoryList>;
|
|
152
140
|
export interface ListReplicationAdaptersRequest {
|
|
153
141
|
/** Project identifier. */
|
|
154
142
|
projectId: string;
|
|
155
143
|
/** STACKIT region identification */
|
|
156
144
|
regionId: string;
|
|
157
145
|
}
|
|
158
|
-
export declare const ListReplicationAdaptersRequest: S.Schema<ListReplicationAdaptersRequest>;
|
|
159
146
|
export interface ReplicationAdapter {
|
|
160
147
|
/** Human-friendly name of the provider the adapter relates to. */
|
|
161
148
|
display_name: string;
|
|
162
149
|
/** Identifies the replication adapter */
|
|
163
150
|
registry_type: string;
|
|
164
151
|
}
|
|
165
|
-
export declare const ReplicationAdapter: S.Schema<ReplicationAdapter>;
|
|
166
152
|
export type ReplicationAdapterListReplicationAdaptersList = Array<ReplicationAdapter>;
|
|
167
|
-
export declare const ReplicationAdapterListReplicationAdaptersList: S.Schema<ReplicationAdapterListReplicationAdaptersList>;
|
|
168
153
|
/** A list of replication adapters */
|
|
169
154
|
export interface ReplicationAdapterList {
|
|
170
155
|
/** A token to retrieve the next page of results. Pass this value as `page_token` in the subsequent request. If empty, there are no more pages. */
|
|
171
156
|
next_page_token?: string;
|
|
172
157
|
replication_adapters: ReplicationAdapterListReplicationAdaptersList;
|
|
173
158
|
}
|
|
174
|
-
export declare const ReplicationAdapterList: S.Schema<ReplicationAdapterList>;
|
|
175
159
|
/** Update an upstream repository for a proxy-cache project */
|
|
176
160
|
export interface UpdateProxyRequest {
|
|
177
161
|
credentials?: Credentials;
|
|
@@ -180,7 +164,6 @@ export interface UpdateProxyRequest {
|
|
|
180
164
|
/** Upstream registry url to proxy */
|
|
181
165
|
url?: string;
|
|
182
166
|
}
|
|
183
|
-
export declare const UpdateProxyRequest: S.Schema<UpdateProxyRequest>;
|
|
184
167
|
export interface PatchArtifactoryRequest {
|
|
185
168
|
/** Project identifier. */
|
|
186
169
|
projectId: string;
|
|
@@ -190,7 +173,6 @@ export interface PatchArtifactoryRequest {
|
|
|
190
173
|
artifactoryId: string;
|
|
191
174
|
proxy?: UpdateProxyRequest;
|
|
192
175
|
}
|
|
193
|
-
export declare const PatchArtifactoryRequest: S.Schema<PatchArtifactoryRequest>;
|
|
194
176
|
export type CreateArtifactoryError = BadRequest | Forbidden | NotFound | Conflict | StackitOpError;
|
|
195
177
|
/** Creates an artifactory Creates an artifactory associated to the specified project. */
|
|
196
178
|
export declare const createArtifactory: API.OperationMethod<CreateArtifactoryRequest, Artifactory, CreateArtifactoryError, StackitOpContext>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/services/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAGjD,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/services/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAGjD,OAAO,KAAK,CAAC,MAAM,mCAAmC,CAAC;AAEvD,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAmB,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAM7F,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,CAAC;;;;;;;;;AAEjD,qBAAa,UACX,SAAQ,aAAa,CAAC,eAMrB;CAAG;;;;;;;;;AAEN,qB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ACtF,eAAO,MAAM,cAAc,EAAE,GAAG,CAAC,eAAe,CAC9C,qBAAqB,EACrB,WAAW,EACX,mBAAmB,EACnB,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,sBAAsB,GAAG,UAAU,GAAG,SAAS,GAAG,cAAc,CAAC;AAC7E,+GAA+G;AAC/G,eAAO,MAAM,iBAAiB,EAAE,GAAG,CAAC,eAAe,CACjD,wBAAwB,EACxB,eAAe,EACf,sBAAsB,EACtB,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,4BAA4B,GAAG,UAAU,GAAG,cAAc,CAAC;AACvE,uEAAuE;AACvE,eAAO,MAAM,uBAAuB,EAAE,GAAG,CAAC,eAAe,CACvD,8BAA8B,EAC9B,sBAAsB,EACtB,4BAA4B,EAC5B,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,qBAAqB,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,cAAc,CAAC;AACvF,yBAAyB;AACzB,eAAO,MAAM,gBAAgB,EAAE,GAAG,CAAC,eAAe,CAChD,uBAAuB,EACvB,WAAW,EACX,qBAAqB,EACrB,gBAAgB,CAOf,CAAC"}
|
package/lib/services/registry.js
CHANGED
|
@@ -1,198 +1,58 @@
|
|
|
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.withAuthError), [{ status: 403 }]) {
|
|
27
|
-
}
|
|
28
|
-
export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
29
|
-
/*@__PURE__*/ S.TaggedError()("NotFound", {
|
|
30
|
-
code: S.Number,
|
|
31
|
-
message: S.String,
|
|
32
|
-
}).pipe(C.withBadRequestError), [{ status: 404 }]) {
|
|
33
|
-
}
|
|
34
|
-
export const Credentials = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
35
|
-
access_key: S.optional(S.String),
|
|
36
|
-
access_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
37
|
-
})).annotate({ identifier: "Credentials" });
|
|
38
|
-
export const CreateProxyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
39
|
-
credentials: S.optional(Credentials),
|
|
40
|
-
description: S.optional(S.String),
|
|
41
|
-
registry_type: S.String,
|
|
42
|
-
url: S.String,
|
|
43
|
-
})).annotate({ identifier: "CreateProxyRequest" });
|
|
44
|
-
export const CreateArtifactoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
45
|
-
projectId: S.String.pipe(T.Label()),
|
|
46
|
-
regionId: S.String.pipe(T.Label()),
|
|
47
|
-
claim: S.optional(S.Boolean.pipe(T.Query())),
|
|
48
|
-
name: S.String,
|
|
49
|
-
proxy: S.optional(CreateProxyRequest),
|
|
50
|
-
}).pipe(T.Http({
|
|
51
|
-
method: "POST",
|
|
52
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/artifactories",
|
|
53
|
-
code: 200,
|
|
54
|
-
baseUrl: "https://registry.api.stackit.cloud",
|
|
55
|
-
}))).annotate({ identifier: "CreateArtifactoryRequest" });
|
|
56
|
-
export const RedactedCredentials = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
57
|
-
access_key: S.optional(S.String),
|
|
58
|
-
})).annotate({ identifier: "RedactedCredentials" });
|
|
59
|
-
export const Proxy = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
60
|
-
credentials: S.optional(RedactedCredentials),
|
|
61
|
-
description: S.optional(S.String),
|
|
62
|
-
registry_type: S.String,
|
|
63
|
-
url: S.String,
|
|
64
|
-
})).annotate({ identifier: "Proxy" });
|
|
65
|
-
export const Artifactory = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
66
|
-
consumed_quota_bytes: S.Number,
|
|
67
|
-
create_time: S.String,
|
|
68
|
-
id: S.String,
|
|
69
|
-
name: S.String,
|
|
70
|
-
proxy: S.optional(Proxy),
|
|
71
|
-
state: S.String,
|
|
72
|
-
url: S.String,
|
|
73
|
-
user_count: S.Number,
|
|
74
|
-
})).annotate({ identifier: "Artifactory" });
|
|
75
|
-
export const DeleteArtifactoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
76
|
-
projectId: S.String.pipe(T.Label()),
|
|
77
|
-
regionId: S.String.pipe(T.Label()),
|
|
78
|
-
artifactoryId: S.String.pipe(T.Label()),
|
|
79
|
-
}).pipe(T.Http({
|
|
80
|
-
method: "DELETE",
|
|
81
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/artifactories/{artifactoryId}",
|
|
82
|
-
code: 200,
|
|
83
|
-
baseUrl: "https://registry.api.stackit.cloud",
|
|
84
|
-
}))).annotate({ identifier: "DeleteArtifactoryRequest" });
|
|
85
|
-
export const DeleteArtifactoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
86
|
-
identifier: "DeleteArtifactoryResponse",
|
|
10
|
+
const __0 = __L.at;
|
|
11
|
+
const __1 = S.optional;
|
|
12
|
+
const __2 = S.String;
|
|
13
|
+
const __3 = S.Struct;
|
|
14
|
+
const __4 = S.suspend;
|
|
15
|
+
const __5 = T.Http;
|
|
16
|
+
const __6 = T.Label;
|
|
17
|
+
const __7 = T.Query;
|
|
18
|
+
const __8 = S.Boolean;
|
|
19
|
+
const __9 = S.Number;
|
|
20
|
+
const __10 = T.SensitiveValue;
|
|
21
|
+
const __11 = S.Array;
|
|
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, __9, __2, __12, __13]]);
|
|
87
26
|
});
|
|
88
|
-
export const
|
|
89
|
-
|
|
90
|
-
regionId: S.String.pipe(T.Label()),
|
|
91
|
-
artifactoryId: S.String.pipe(T.Label()),
|
|
92
|
-
}).pipe(T.Http({
|
|
93
|
-
method: "GET",
|
|
94
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/artifactories/{artifactoryId}",
|
|
95
|
-
code: 200,
|
|
96
|
-
baseUrl: "https://registry.api.stackit.cloud",
|
|
97
|
-
}))).annotate({ identifier: "GetArtifactoryRequest" });
|
|
98
|
-
export const ListArtifactoriesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
99
|
-
projectId: S.String.pipe(T.Label()),
|
|
100
|
-
regionId: S.String.pipe(T.Label()),
|
|
101
|
-
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
102
|
-
next_page_token: S.optional(S.String.pipe(T.Query())),
|
|
103
|
-
}).pipe(T.Http({
|
|
104
|
-
method: "GET",
|
|
105
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/artifactories",
|
|
106
|
-
code: 200,
|
|
107
|
-
baseUrl: "https://registry.api.stackit.cloud",
|
|
108
|
-
}))).annotate({ identifier: "ListArtifactoriesRequest" });
|
|
109
|
-
export const ArtifactoryListArtifactoriesList = /*@__PURE__*/ S.Array(Artifactory);
|
|
110
|
-
export const ArtifactoryList = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
111
|
-
artifactories: ArtifactoryListArtifactoriesList,
|
|
112
|
-
next_page_token: S.optional(S.String),
|
|
113
|
-
})).annotate({ identifier: "ArtifactoryList" });
|
|
114
|
-
export const ListReplicationAdaptersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
115
|
-
projectId: S.String.pipe(T.Label()),
|
|
116
|
-
regionId: S.String.pipe(T.Label()),
|
|
117
|
-
}).pipe(T.Http({
|
|
118
|
-
method: "GET",
|
|
119
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/replication/adapters",
|
|
120
|
-
code: 200,
|
|
121
|
-
baseUrl: "https://registry.api.stackit.cloud",
|
|
122
|
-
}))).annotate({
|
|
123
|
-
identifier: "ListReplicationAdaptersRequest",
|
|
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, __9, __2, __12, __13]]);
|
|
124
29
|
});
|
|
125
|
-
export const
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
export const
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
})).
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
})))
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
155
|
-
protocol: StackitProtocol,
|
|
156
|
-
retry: Retry.Retry,
|
|
157
|
-
}));
|
|
158
|
-
/** Soft delete the artifactory. Deletes the artifactory associated to the specified project. */
|
|
159
|
-
export const deleteArtifactory = /*@__PURE__*/ API.make(() => ({
|
|
160
|
-
input: DeleteArtifactoryRequest,
|
|
161
|
-
output: DeleteArtifactoryResponse,
|
|
162
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
163
|
-
protocol: StackitProtocol,
|
|
164
|
-
retry: Retry.Retry,
|
|
165
|
-
}));
|
|
166
|
-
/** Get Artifactory information. Retrieves information about a STACKIT Artifactory. */
|
|
167
|
-
export const getArtifactory = /*@__PURE__*/ API.make(() => ({
|
|
168
|
-
input: GetArtifactoryRequest,
|
|
169
|
-
output: Artifactory,
|
|
170
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
171
|
-
protocol: StackitProtocol,
|
|
172
|
-
retry: Retry.Retry,
|
|
173
|
-
}));
|
|
174
|
-
/** List artifactories inside a STACKIT project Lists all artifactories associated to the specified project. */
|
|
175
|
-
export const listArtifactories = /*@__PURE__*/ API.make(() => ({
|
|
176
|
-
input: ListArtifactoriesRequest,
|
|
177
|
-
output: ArtifactoryList,
|
|
178
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
179
|
-
protocol: StackitProtocol,
|
|
180
|
-
retry: Retry.Retry,
|
|
181
|
-
}));
|
|
182
|
-
/** List available adapters for replication to/from other registries */
|
|
183
|
-
export const listReplicationAdapters = /*@__PURE__*/ API.make(() => ({
|
|
184
|
-
input: ListReplicationAdaptersRequest,
|
|
185
|
-
output: ReplicationAdapterList,
|
|
186
|
-
errors: [BadRequest, UnknownStackitError],
|
|
187
|
-
protocol: StackitProtocol,
|
|
188
|
-
retry: Retry.Retry,
|
|
189
|
-
}));
|
|
190
|
-
/** Update Artifactory */
|
|
191
|
-
export const patchArtifactory = /*@__PURE__*/ API.make(() => ({
|
|
192
|
-
input: PatchArtifactoryRequest,
|
|
193
|
-
output: Artifactory,
|
|
194
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
195
|
-
protocol: StackitProtocol,
|
|
196
|
-
retry: Retry.Retry,
|
|
197
|
-
}));
|
|
198
|
-
//# sourceMappingURL=registry.js.map
|
|
30
|
+
export const Forbidden = /*@__PURE__*/ API.error(function Forbidden(i) {
|
|
31
|
+
return API.newError(i, new.target, ['$5($4()("Forbidden",{code:$2,message:$3}).pipe($1),[{status:403}])', [__0, C.withAuthError, __9, __2, __12, __13]]);
|
|
32
|
+
});
|
|
33
|
+
export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
|
|
34
|
+
return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __9, __2, __12, __13]]);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export const createArtifactory = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#2,output:#10:2,errors:[$11,$12,$13,$14,$15],protocol:$16,retry:$17};$5(>3)@"CreateProxyRequest";$5(>4)@"CreateArtifactoryRequest";$4({credentials:$2(#1:0),description:$2($3),registry_type:$3,url:$3});$4({projectId:$3.pipe($7()),regionId:$3.pipe($7()),claim:$2($9.pipe($8())),name:$3,proxy:$2(#1)}).pipe($6({method:"POST",uri:"/v1/projects/{projectId}/regions/{regionId}/artifactories",code:200,baseUrl:"https://registry.api.stackit.cloud"}))', [__0, __d1, __1, __2, __3, __4, __5, __6, __7, __8, __d0, BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createArtifactory, i));
|
|
38
|
+
|
|
39
|
+
export const deleteArtifactory = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$6,$7,$8,$9,$10],protocol:$11,retry:$12};$5(>3)@"DeleteArtifactoryRequest";$5(>4)@"DeleteArtifactoryResponse";$4({projectId:$3.pipe($2()),regionId:$3.pipe($2()),artifactoryId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/regions/{regionId}/artifactories/{artifactoryId}",code:200,baseUrl:"https://registry.api.stackit.cloud"}));$4({})', [__0, __5, __6, __2, __3, __4, BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteArtifactory, i));
|
|
40
|
+
|
|
41
|
+
export const getArtifactory = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:2,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"GetArtifactoryRequest";$4({projectId:$3.pipe($2()),regionId:$3.pipe($2()),artifactoryId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{regionId}/artifactories/{artifactoryId}",code:200,baseUrl:"https://registry.api.stackit.cloud"}))', [__0, __5, __6, __2, __3, __4, __d0, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getArtifactory, i));
|
|
42
|
+
|
|
43
|
+
export const listArtifactories = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$11,$12,$13],protocol:$14,retry:$15};$8(>4)@"ListArtifactoriesRequest";$10(#9:2);$8(>5)@"ArtifactoryList";$7({projectId:$3.pipe($2()),regionId:$3.pipe($2()),page_size:$6($5.pipe($4())),next_page_token:$6($3.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{regionId}/artifactories",code:200,baseUrl:"https://registry.api.stackit.cloud"}));$7({artifactories:#2,next_page_token:$6($3)})', [__0, __5, __6, __2, __7, __9, __1, __3, __4, __d0, __11, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listArtifactories, i));
|
|
44
|
+
|
|
45
|
+
export const listReplicationAdapters = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("ReplicationAdapter", '{input:#1,output:#4,errors:[$8,$9],protocol:$10,retry:$11};$5(>5)@"List%sRequest";$5(>6)@"%";$6(#2);$5(>7)@"%List";$4({projectId:$3.pipe($2()),regionId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{regionId}/replication/adapters",code:200,baseUrl:"https://registry.api.stackit.cloud"}));$4({display_name:$3,registry_type:$3});$4({next_page_token:$7($3),replication_adapters:#3})', [__0, __5, __6, __2, __3, __4, __11, __1, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listReplicationAdapters, i));
|
|
46
|
+
|
|
47
|
+
export const patchArtifactory = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#2,output:#8:2,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$5(>3)@"UpdateProxyRequest";$5(>4)@"PatchArtifactoryRequest";$4({credentials:$2(#1:0),description:$2($3),url:$2($3)});$4({projectId:$3.pipe($7()),regionId:$3.pipe($7()),artifactoryId:$3.pipe($7()),proxy:$2(#1)}).pipe($6({method:"PATCH",uri:"/v1/projects/{projectId}/regions/{regionId}/artifactories/{artifactoryId}",code:200,baseUrl:"https://registry.api.stackit.cloud"}))', [__0, __d1, __1, __2, __3, __4, __5, __6, __d0, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(patchArtifactory, i));
|
|
48
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
49
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
// Shared schema data (see `op` in core/api).
|
|
53
|
+
function __d0() {
|
|
54
|
+
return ['$4(>3)@"RedactedCredentials";$4(>4)@"Proxy";$4(>5)@"Artifactory";$3({access_key:$2($1)});$3({credentials:$2(#0),description:$2($1),registry_type:$1,url:$1});$3({consumed_quota_bytes:$5,create_time:$1,id:$1,name:$1,proxy:$2(#1),state:$1,url:$1,user_count:$5})', [__0, __2, __1, __3, __4, __9]];
|
|
55
|
+
}
|
|
56
|
+
function __d1() {
|
|
57
|
+
return ['$5(>1)@"Credentials";$4({access_key:$2($1),access_secret:$2($1.pipe($3({})))})', [__0, __2, __1, __10, __3, __4]];
|
|
58
|
+
}
|