@distilled.cloud/stackit 1.0.0-rc.15 → 1.0.0-rc.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +32 -28
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +13 -13
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +16 -16
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +22 -22
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +15 -15
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +31 -29
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +24 -23
- package/lib/retry.js.map +1 -1
- package/lib/services/alb.d.ts +10 -87
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +73 -502
- package/lib/services/alb_waf.d.ts +9 -82
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +84 -510
- package/lib/services/authorization.d.ts +5 -47
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +67 -314
- package/lib/services/automation.d.ts +7 -47
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +58 -353
- package/lib/services/cdn.d.ts +8 -220
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +81 -896
- package/lib/services/certificates.d.ts +8 -27
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +45 -171
- package/lib/services/cost.d.ts +10 -37
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +39 -169
- package/lib/services/dns.d.ts +9 -104
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +98 -714
- package/lib/services/dremio.d.ts +8 -50
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +56 -307
- package/lib/services/edge.d.ts +7 -40
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +66 -347
- package/lib/services/functions.d.ts +1 -48
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +64 -393
- package/lib/services/git.d.ts +8 -61
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +87 -510
- package/lib/services/iaas.d.ts +9 -337
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +409 -3532
- package/lib/services/intake.d.ts +8 -75
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +74 -465
- package/lib/services/kms.d.ts +9 -92
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +95 -650
- package/lib/services/lb_ip_lists.d.ts +9 -25
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +45 -146
- package/lib/services/load_balancer.d.ts +10 -81
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +76 -486
- package/lib/services/logme.d.ts +8 -69
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +82 -564
- package/lib/services/logs.d.ts +8 -64
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +84 -465
- package/lib/services/mariadb.d.ts +8 -65
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +84 -541
- package/lib/services/model_experiments.d.ts +9 -48
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +66 -325
- package/lib/services/model_serving.d.ts +7 -47
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +55 -277
- package/lib/services/mongodb_flex.d.ts +8 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +102 -793
- package/lib/services/object_storage.d.ts +12 -59
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +93 -528
- package/lib/services/observability.d.ts +8 -407
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +375 -3148
- package/lib/services/opensearch.d.ts +8 -71
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +85 -553
- package/lib/services/pim.d.ts +12 -108
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +81 -726
- package/lib/services/postgres_flex.d.ts +14 -136
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +114 -841
- package/lib/services/pubsub.d.ts +11 -73
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +92 -507
- package/lib/services/rabbitmq.d.ts +8 -76
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +88 -564
- package/lib/services/registry.d.ts +10 -28
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +49 -189
- package/lib/services/resource_manager.d.ts +9 -61
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +92 -462
- package/lib/services/run_command.d.ts +5 -28
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +38 -176
- package/lib/services/sca.d.ts +8 -79
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +63 -435
- package/lib/services/scf.d.ts +8 -64
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +99 -660
- package/lib/services/secrets_manager.d.ts +8 -61
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +99 -601
- package/lib/services/server_backup.d.ts +7 -50
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +70 -444
- package/lib/services/server_update.d.ts +7 -35
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +58 -342
- package/lib/services/service_account.d.ts +10 -68
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +75 -495
- package/lib/services/service_enablement.d.ts +7 -29
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +40 -147
- package/lib/services/sfs.d.ts +4 -96
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +117 -782
- package/lib/services/ske.d.ts +9 -108
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +67 -549
- package/lib/services/sqlserverflex.d.ts +11 -152
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +112 -925
- package/lib/services/stackit_marketplace.d.ts +9 -38
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +64 -369
- package/lib/services/telemetry_link.d.ts +8 -61
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +81 -522
- package/lib/services/telemetry_router.d.ts +8 -72
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +73 -474
- package/lib/services/ufw.d.ts +7 -42
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +55 -269
- package/lib/services/valkey.d.ts +8 -68
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +85 -557
- package/lib/services/vpn.d.ts +21 -186
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +105 -920
- package/lib/services/workflows.d.ts +15 -84
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +67 -497
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +10 -10
- package/package.json +13 -9
- package/src/credentials.ts +21 -18
- package/src/errors.ts +10 -14
- package/src/index.ts +2 -2
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +12 -9
- package/src/retry.ts +6 -4
- package/src/services/alb.ts +599 -655
- package/src/services/alb_waf.ts +597 -637
- package/src/services/authorization.ts +400 -383
- package/src/services/automation.ts +422 -405
- package/src/services/cdn.ts +817 -1375
- package/src/services/certificates.ts +209 -190
- package/src/services/cost.ts +100 -207
- package/src/services/dns.ts +793 -833
- package/src/services/dremio.ts +356 -349
- package/src/services/edge.ts +406 -366
- package/src/services/functions.ts +465 -463
- package/src/services/git.ts +602 -547
- package/src/services/iaas.ts +3931 -3821
- package/src/services/intake.ts +521 -549
- package/src/services/kms.ts +715 -692
- package/src/services/lb_ip_lists.ts +173 -152
- package/src/services/load_balancer.ts +576 -619
- package/src/services/logme.ts +696 -641
- package/src/services/logs.ts +510 -493
- package/src/services/mariadb.ts +671 -604
- package/src/services/model_experiments.ts +343 -356
- package/src/services/model_serving.ts +337 -328
- package/src/services/mongodb_flex.ts +955 -1007
- package/src/services/object_storage.ts +614 -557
- package/src/services/observability.ts +3469 -3866
- package/src/services/opensearch.ts +679 -628
- package/src/services/pim.ts +672 -909
- package/src/services/postgres_flex.ts +966 -986
- package/src/services/pubsub.ts +524 -546
- package/src/services/rabbitmq.ts +693 -654
- package/src/services/registry.ts +227 -194
- package/src/services/resource_manager.ts +520 -517
- package/src/services/run_command.ts +219 -211
- package/src/services/sca.ts +543 -570
- package/src/services/scf.ts +790 -716
- package/src/services/secrets_manager.ts +707 -622
- package/src/services/server_backup.ts +490 -475
- package/src/services/server_update.ts +353 -356
- package/src/services/service_account.ts +515 -553
- package/src/services/service_enablement.ts +162 -166
- package/src/services/sfs.ts +879 -958
- package/src/services/ske.ts +694 -769
- package/src/services/sqlserverflex.ts +1042 -1117
- package/src/services/stackit_marketplace.ts +377 -372
- package/src/services/telemetry_link.ts +530 -531
- package/src/services/telemetry_router.ts +509 -534
- package/src/services/ufw.ts +305 -307
- package/src/services/valkey.ts +684 -629
- package/src/services/vpn.ts +935 -1195
- package/src/services/workflows.ts +426 -586
- package/src/traits.ts +1 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -181
- package/lib/protocol.test.js.map +0 -1
- package/lib/services/alb.js.map +0 -1
- package/lib/services/alb_waf.js.map +0 -1
- package/lib/services/authorization.js.map +0 -1
- package/lib/services/automation.js.map +0 -1
- package/lib/services/cdn.js.map +0 -1
- package/lib/services/certificates.js.map +0 -1
- package/lib/services/cost.js.map +0 -1
- package/lib/services/dns.js.map +0 -1
- package/lib/services/dremio.js.map +0 -1
- package/lib/services/edge.js.map +0 -1
- package/lib/services/functions.js.map +0 -1
- package/lib/services/git.js.map +0 -1
- package/lib/services/iaas.js.map +0 -1
- package/lib/services/intake.js.map +0 -1
- package/lib/services/kms.js.map +0 -1
- package/lib/services/lb_ip_lists.js.map +0 -1
- package/lib/services/load_balancer.js.map +0 -1
- package/lib/services/logme.js.map +0 -1
- package/lib/services/logs.js.map +0 -1
- package/lib/services/mariadb.js.map +0 -1
- package/lib/services/model_experiments.js.map +0 -1
- package/lib/services/model_serving.js.map +0 -1
- package/lib/services/mongodb_flex.js.map +0 -1
- package/lib/services/object_storage.js.map +0 -1
- package/lib/services/observability.js.map +0 -1
- package/lib/services/opensearch.js.map +0 -1
- package/lib/services/pim.js.map +0 -1
- package/lib/services/postgres_flex.js.map +0 -1
- package/lib/services/pubsub.js.map +0 -1
- package/lib/services/rabbitmq.js.map +0 -1
- package/lib/services/registry.js.map +0 -1
- package/lib/services/resource_manager.js.map +0 -1
- package/lib/services/run_command.js.map +0 -1
- package/lib/services/sca.js.map +0 -1
- package/lib/services/scf.js.map +0 -1
- package/lib/services/secrets_manager.js.map +0 -1
- package/lib/services/server_backup.js.map +0 -1
- package/lib/services/server_update.js.map +0 -1
- package/lib/services/service_account.js.map +0 -1
- package/lib/services/service_enablement.js.map +0 -1
- package/lib/services/sfs.js.map +0 -1
- package/lib/services/ske.js.map +0 -1
- package/lib/services/sqlserverflex.js.map +0 -1
- package/lib/services/stackit_marketplace.js.map +0 -1
- package/lib/services/telemetry_link.js.map +0 -1
- package/lib/services/telemetry_router.js.map +0 -1
- package/lib/services/ufw.js.map +0 -1
- package/lib/services/valkey.js.map +0 -1
- package/lib/services/vpn.js.map +0 -1
- package/lib/services/workflows.js.map +0 -1
- package/src/protocol.test.ts +0 -304
package/lib/services/git.js
CHANGED
|
@@ -1,520 +1,97 @@
|
|
|
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
|
-
|
|
27
|
-
}
|
|
28
|
-
export const CreateAuthenticationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
29
|
-
projectId: S.String.pipe(T.Label()),
|
|
30
|
-
instanceId: S.String.pipe(T.Label()),
|
|
31
|
-
auto_discover_url: S.String,
|
|
32
|
-
client_id: S.String,
|
|
33
|
-
client_secret: S.String.pipe(T.SensitiveValue({})),
|
|
34
|
-
icon_url: S.optional(S.String),
|
|
35
|
-
name: S.String,
|
|
36
|
-
provider: S.optional(S.String),
|
|
37
|
-
scopes: S.optional(S.String),
|
|
38
|
-
}).pipe(T.Http({
|
|
39
|
-
method: "POST",
|
|
40
|
-
uri: "/v1beta/projects/{projectId}/instances/{instanceId}/authentications",
|
|
41
|
-
code: 200,
|
|
42
|
-
baseUrl: "https://git.api.stackit.cloud",
|
|
43
|
-
}))).annotate({
|
|
44
|
-
identifier: "CreateAuthenticationRequest",
|
|
45
|
-
});
|
|
46
|
-
export const AuthenticationStatus = S.String;
|
|
47
|
-
export const Authentication = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
48
|
-
auto_discover_url: S.String,
|
|
49
|
-
client_id: S.String,
|
|
50
|
-
created_at: S.String,
|
|
51
|
-
icon_url: S.String,
|
|
52
|
-
id: S.String,
|
|
53
|
-
name: S.String,
|
|
54
|
-
provider: S.String,
|
|
55
|
-
scopes: S.String,
|
|
56
|
-
status: AuthenticationStatus,
|
|
57
|
-
status_message: S.optional(S.String),
|
|
58
|
-
})).annotate({ identifier: "Authentication" });
|
|
59
|
-
export const Acl = /*@__PURE__*/ S.Array(S.String);
|
|
60
|
-
export const CreateInstanceRequestFlavor = S.String;
|
|
61
|
-
export const CreateInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
62
|
-
projectId: S.String.pipe(T.Label()),
|
|
63
|
-
acl: S.optional(Acl),
|
|
64
|
-
flavor: S.optional(CreateInstanceRequestFlavor),
|
|
65
|
-
name: S.String,
|
|
66
|
-
}).pipe(T.Http({
|
|
67
|
-
method: "POST",
|
|
68
|
-
uri: "/v1beta/projects/{projectId}/instances",
|
|
69
|
-
code: 200,
|
|
70
|
-
baseUrl: "https://git.api.stackit.cloud",
|
|
71
|
-
}))).annotate({ identifier: "CreateInstanceRequest" });
|
|
72
|
-
export const InstanceAclList = /*@__PURE__*/ S.Array(S.String);
|
|
73
|
-
export const FeatureToggleDefaultEmailNotifications = S.String;
|
|
74
|
-
export const Pipelines = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
75
|
-
action_url: S.optional(S.NullOr(S.String)),
|
|
76
|
-
enabled: S.optional(S.NullOr(S.Boolean)),
|
|
77
|
-
})).annotate({ identifier: "Pipelines" });
|
|
78
|
-
export const FeatureToggle = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
79
|
-
default_email_notifications: S.optional(S.NullOr(FeatureToggleDefaultEmailNotifications)),
|
|
80
|
-
enable_local_login: S.optional(S.NullOr(S.Boolean)),
|
|
81
|
-
pipelines: S.optional(Pipelines),
|
|
82
|
-
})).annotate({ identifier: "FeatureToggle" });
|
|
83
|
-
export const Labels = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
84
|
-
export const InstanceState = S.String;
|
|
85
|
-
export const Instance = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
86
|
-
acl: InstanceAclList,
|
|
87
|
-
admin_login: S.Boolean,
|
|
88
|
-
consumed_disk: S.String,
|
|
89
|
-
consumed_object_storage: S.String,
|
|
90
|
-
created: S.String,
|
|
91
|
-
feature_toggle: FeatureToggle,
|
|
92
|
-
flavor: S.String,
|
|
93
|
-
id: S.String,
|
|
94
|
-
labels: S.optional(Labels),
|
|
95
|
-
name: S.String,
|
|
96
|
-
state: InstanceState,
|
|
97
|
-
url: S.String,
|
|
98
|
-
version: S.String,
|
|
99
|
-
})).annotate({ identifier: "Instance" });
|
|
100
|
-
export const CreateRunnerRequestLabelsList = /*@__PURE__*/ S.Array(S.String);
|
|
101
|
-
export const CreateRunnerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
102
|
-
projectId: S.String.pipe(T.Label()),
|
|
103
|
-
instanceId: S.String.pipe(T.Label()),
|
|
104
|
-
labels: CreateRunnerRequestLabelsList,
|
|
105
|
-
}).pipe(T.Http({
|
|
106
|
-
method: "POST",
|
|
107
|
-
uri: "/v1beta/projects/{projectId}/instances/{instanceId}/runner",
|
|
108
|
-
code: 200,
|
|
109
|
-
baseUrl: "https://git.api.stackit.cloud",
|
|
110
|
-
}))).annotate({ identifier: "CreateRunnerRequest" });
|
|
111
|
-
export const RunnerLabelsList = /*@__PURE__*/ S.Array(S.String);
|
|
112
|
-
export const Runner = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
113
|
-
created_at: S.String,
|
|
114
|
-
id: S.String,
|
|
115
|
-
labels: RunnerLabelsList,
|
|
116
|
-
status: S.String,
|
|
117
|
-
})).annotate({ identifier: "Runner" });
|
|
118
|
-
export const CreateUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
119
|
-
projectId: S.String.pipe(T.Label()),
|
|
120
|
-
instanceId: S.String.pipe(T.Label()),
|
|
121
|
-
email: S.String,
|
|
122
|
-
force_send_reset_password: S.optional(S.Boolean),
|
|
123
|
-
name: S.String,
|
|
124
|
-
password: S.String.pipe(T.SensitiveValue({})),
|
|
125
|
-
username: S.String,
|
|
126
|
-
}).pipe(T.Http({
|
|
127
|
-
method: "POST",
|
|
128
|
-
uri: "/v1beta/projects/{projectId}/instances/{instanceId}/users",
|
|
129
|
-
code: 200,
|
|
130
|
-
baseUrl: "https://git.api.stackit.cloud",
|
|
131
|
-
}))).annotate({ identifier: "CreateUserRequest" });
|
|
132
|
-
export const User = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
133
|
-
email: S.String,
|
|
134
|
-
id: S.optional(S.Number),
|
|
135
|
-
name: S.String,
|
|
136
|
-
username: S.String,
|
|
137
|
-
})).annotate({ identifier: "User" });
|
|
138
|
-
export const DeleteAuthenticationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
139
|
-
projectId: S.String.pipe(T.Label()),
|
|
140
|
-
instanceId: S.String.pipe(T.Label()),
|
|
141
|
-
authenticationId: S.String.pipe(T.Label()),
|
|
142
|
-
}).pipe(T.Http({
|
|
143
|
-
method: "DELETE",
|
|
144
|
-
uri: "/v1beta/projects/{projectId}/instances/{instanceId}/authentications/{authenticationId}",
|
|
145
|
-
code: 200,
|
|
146
|
-
baseUrl: "https://git.api.stackit.cloud",
|
|
147
|
-
}))).annotate({
|
|
148
|
-
identifier: "DeleteAuthenticationRequest",
|
|
149
|
-
});
|
|
150
|
-
export const DeleteAuthenticationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
151
|
-
identifier: "DeleteAuthenticationResponse",
|
|
152
|
-
});
|
|
153
|
-
export const DeleteInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
154
|
-
projectId: S.String.pipe(T.Label()),
|
|
155
|
-
instanceId: S.String.pipe(T.Label()),
|
|
156
|
-
}).pipe(T.Http({
|
|
157
|
-
method: "DELETE",
|
|
158
|
-
uri: "/v1beta/projects/{projectId}/instances/{instanceId}",
|
|
159
|
-
code: 200,
|
|
160
|
-
baseUrl: "https://git.api.stackit.cloud",
|
|
161
|
-
}))).annotate({ identifier: "DeleteInstanceRequest" });
|
|
162
|
-
export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
163
|
-
identifier: "DeleteInstanceResponse",
|
|
164
|
-
});
|
|
165
|
-
export const DeleteRunnerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
166
|
-
projectId: S.String.pipe(T.Label()),
|
|
167
|
-
instanceId: S.String.pipe(T.Label()),
|
|
168
|
-
}).pipe(T.Http({
|
|
169
|
-
method: "DELETE",
|
|
170
|
-
uri: "/v1beta/projects/{projectId}/instances/{instanceId}/runner",
|
|
171
|
-
code: 200,
|
|
172
|
-
baseUrl: "https://git.api.stackit.cloud",
|
|
173
|
-
}))).annotate({ identifier: "DeleteRunnerRequest" });
|
|
174
|
-
export const DeleteRunnerResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
175
|
-
identifier: "DeleteRunnerResponse",
|
|
176
|
-
});
|
|
177
|
-
export const DeleteUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
178
|
-
projectId: S.String.pipe(T.Label()),
|
|
179
|
-
instanceId: S.String.pipe(T.Label()),
|
|
180
|
-
username: S.String.pipe(T.Label()),
|
|
181
|
-
}).pipe(T.Http({
|
|
182
|
-
method: "DELETE",
|
|
183
|
-
uri: "/v1beta/projects/{projectId}/instances/{instanceId}/users/{username}",
|
|
184
|
-
code: 200,
|
|
185
|
-
baseUrl: "https://git.api.stackit.cloud",
|
|
186
|
-
}))).annotate({ identifier: "DeleteUserRequest" });
|
|
187
|
-
export const DeleteUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
188
|
-
identifier: "DeleteUserResponse",
|
|
10
|
+
const __0 = __L.at;
|
|
11
|
+
const __1 = T.Http;
|
|
12
|
+
const __2 = T.Label;
|
|
13
|
+
const __3 = S.String;
|
|
14
|
+
const __4 = S.Struct;
|
|
15
|
+
const __5 = S.suspend;
|
|
16
|
+
const __6 = T.Query;
|
|
17
|
+
const __7 = S.Number;
|
|
18
|
+
const __8 = S.optional;
|
|
19
|
+
const __9 = S.Array;
|
|
20
|
+
const __10 = T.SensitiveValue;
|
|
21
|
+
const __11 = S.NullOr;
|
|
22
|
+
const __12 = S.Boolean;
|
|
23
|
+
const __13 = S.Record;
|
|
24
|
+
const __14 = S.TaggedError;
|
|
25
|
+
const __15 = T.applyErrorMatchers;
|
|
26
|
+
export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
|
|
27
|
+
return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __7, __3, __14, __15]]);
|
|
189
28
|
});
|
|
190
|
-
export const
|
|
191
|
-
|
|
192
|
-
instanceId: S.String.pipe(T.Label()),
|
|
193
|
-
authenticationId: S.String.pipe(T.Label()),
|
|
194
|
-
}).pipe(T.Http({
|
|
195
|
-
method: "GET",
|
|
196
|
-
uri: "/v1beta/projects/{projectId}/instances/{instanceId}/authentications/{authenticationId}",
|
|
197
|
-
code: 200,
|
|
198
|
-
baseUrl: "https://git.api.stackit.cloud",
|
|
199
|
-
}))).annotate({ identifier: "GetAuthenticationRequest" });
|
|
200
|
-
export const GetInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
201
|
-
projectId: S.String.pipe(T.Label()),
|
|
202
|
-
instanceId: S.String.pipe(T.Label()),
|
|
203
|
-
}).pipe(T.Http({
|
|
204
|
-
method: "GET",
|
|
205
|
-
uri: "/v1beta/projects/{projectId}/instances/{instanceId}",
|
|
206
|
-
code: 200,
|
|
207
|
-
baseUrl: "https://git.api.stackit.cloud",
|
|
208
|
-
}))).annotate({ identifier: "GetInstanceRequest" });
|
|
209
|
-
export const GetRunnerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
210
|
-
projectId: S.String.pipe(T.Label()),
|
|
211
|
-
instanceId: S.String.pipe(T.Label()),
|
|
212
|
-
}).pipe(T.Http({
|
|
213
|
-
method: "GET",
|
|
214
|
-
uri: "/v1beta/projects/{projectId}/instances/{instanceId}/runner",
|
|
215
|
-
code: 200,
|
|
216
|
-
baseUrl: "https://git.api.stackit.cloud",
|
|
217
|
-
}))).annotate({ identifier: "GetRunnerRequest" });
|
|
218
|
-
export const GetUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
219
|
-
projectId: S.String.pipe(T.Label()),
|
|
220
|
-
instanceId: S.String.pipe(T.Label()),
|
|
221
|
-
username: S.String.pipe(T.Label()),
|
|
222
|
-
}).pipe(T.Http({
|
|
223
|
-
method: "GET",
|
|
224
|
-
uri: "/v1beta/projects/{projectId}/instances/{instanceId}/users/{username}",
|
|
225
|
-
code: 200,
|
|
226
|
-
baseUrl: "https://git.api.stackit.cloud",
|
|
227
|
-
}))).annotate({ identifier: "GetUserRequest" });
|
|
228
|
-
export const GetUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
229
|
-
identifier: "GetUserResponse",
|
|
29
|
+
export const Conflict = /*@__PURE__*/ API.error(function Conflict(i) {
|
|
30
|
+
return API.newError(i, new.target, ['$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])', [__0, C.withConflictError, __7, __3, __14, __15]]);
|
|
230
31
|
});
|
|
231
|
-
export const
|
|
232
|
-
|
|
233
|
-
instanceId: S.String.pipe(T.Label()),
|
|
234
|
-
page: S.optional(S.Number.pipe(T.Query())),
|
|
235
|
-
}).pipe(T.Http({
|
|
236
|
-
method: "GET",
|
|
237
|
-
uri: "/v1beta/projects/{projectId}/instances/{instanceId}/users",
|
|
238
|
-
code: 200,
|
|
239
|
-
baseUrl: "https://git.api.stackit.cloud",
|
|
240
|
-
}))).annotate({ identifier: "GetUsersRequest" });
|
|
241
|
-
export const ListUsersUsersList = /*@__PURE__*/ S.Array(User);
|
|
242
|
-
export const ListUsers = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
243
|
-
itemsCount: S.Number,
|
|
244
|
-
offset: S.Number,
|
|
245
|
-
totalPages: S.Number,
|
|
246
|
-
users: ListUsersUsersList,
|
|
247
|
-
})).annotate({ identifier: "ListUsers" });
|
|
248
|
-
export const ListAuthenticationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
249
|
-
projectId: S.String.pipe(T.Label()),
|
|
250
|
-
instanceId: S.String.pipe(T.Label()),
|
|
251
|
-
}).pipe(T.Http({
|
|
252
|
-
method: "GET",
|
|
253
|
-
uri: "/v1beta/projects/{projectId}/instances/{instanceId}/authentications",
|
|
254
|
-
code: 200,
|
|
255
|
-
baseUrl: "https://git.api.stackit.cloud",
|
|
256
|
-
}))).annotate({
|
|
257
|
-
identifier: "ListAuthenticationRequest",
|
|
32
|
+
export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
|
|
33
|
+
return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __7, __3, __14, __15]]);
|
|
258
34
|
});
|
|
259
|
-
|
|
260
|
-
export const
|
|
261
|
-
|
|
262
|
-
})).
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
}))).
|
|
271
|
-
|
|
272
|
-
export const
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
})).
|
|
279
|
-
|
|
280
|
-
export const
|
|
281
|
-
|
|
282
|
-
})).
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
}))).
|
|
291
|
-
|
|
292
|
-
export const
|
|
293
|
-
|
|
294
|
-
})).
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
323
|
-
icon_url: S.optional(S.String),
|
|
324
|
-
provider: S.optional(S.String),
|
|
325
|
-
scopes: S.optional(S.String),
|
|
326
|
-
}).pipe(T.Http({
|
|
327
|
-
method: "PATCH",
|
|
328
|
-
uri: "/v1beta/projects/{projectId}/instances/{instanceId}/authentications/{authenticationId}",
|
|
329
|
-
code: 200,
|
|
330
|
-
baseUrl: "https://git.api.stackit.cloud",
|
|
331
|
-
}))).annotate({
|
|
332
|
-
identifier: "PatchAuthenticationRequest",
|
|
333
|
-
});
|
|
334
|
-
export const PatchInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
335
|
-
projectId: S.String.pipe(T.Label()),
|
|
336
|
-
instanceId: S.String.pipe(T.Label()),
|
|
337
|
-
acl: S.optional(S.NullOr(Acl)),
|
|
338
|
-
admin_login: S.optional(S.Boolean),
|
|
339
|
-
feature_toggle: S.optional(FeatureToggle),
|
|
340
|
-
labels: S.optional(Labels),
|
|
341
|
-
}).pipe(T.Http({
|
|
342
|
-
method: "PATCH",
|
|
343
|
-
uri: "/v1beta/projects/{projectId}/instances/{instanceId}",
|
|
344
|
-
code: 200,
|
|
345
|
-
baseUrl: "https://git.api.stackit.cloud",
|
|
346
|
-
}))).annotate({ identifier: "PatchInstanceRequest" });
|
|
347
|
-
export const UpdateUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
348
|
-
projectId: S.String.pipe(T.Label()),
|
|
349
|
-
instanceId: S.String.pipe(T.Label()),
|
|
350
|
-
username: S.String.pipe(T.Label()),
|
|
351
|
-
email: S.optional(S.String),
|
|
352
|
-
name: S.optional(S.String),
|
|
353
|
-
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
354
|
-
}).pipe(T.Http({
|
|
355
|
-
method: "PATCH",
|
|
356
|
-
uri: "/v1beta/projects/{projectId}/instances/{instanceId}/users/{username}",
|
|
357
|
-
code: 200,
|
|
358
|
-
baseUrl: "https://git.api.stackit.cloud",
|
|
359
|
-
}))).annotate({ identifier: "UpdateUserRequest" });
|
|
360
|
-
/** Creates an authentication source Creates an authentication source for the corresponding STACKIT Git instance */
|
|
361
|
-
export const createAuthentication = /*@__PURE__*/ API.make(() => ({
|
|
362
|
-
input: CreateAuthenticationRequest,
|
|
363
|
-
output: Authentication,
|
|
364
|
-
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
365
|
-
protocol: StackitProtocol,
|
|
366
|
-
retry: Retry.Retry,
|
|
367
|
-
}));
|
|
368
|
-
/** Create an Instance. Creates a new STACKIT Git instance as a project resource. */
|
|
369
|
-
export const createInstance = /*@__PURE__*/ API.make(() => ({
|
|
370
|
-
input: CreateInstanceRequest,
|
|
371
|
-
output: Instance,
|
|
372
|
-
errors: [BadRequest, Conflict, UnknownStackitError],
|
|
373
|
-
protocol: StackitProtocol,
|
|
374
|
-
retry: Retry.Retry,
|
|
375
|
-
}));
|
|
376
|
-
/** Create the runner associated to this instance. Creates the runner associated to this STACKIT Git instance. */
|
|
377
|
-
export const createRunner = /*@__PURE__*/ API.make(() => ({
|
|
378
|
-
input: CreateRunnerRequest,
|
|
379
|
-
output: Runner,
|
|
380
|
-
errors: [BadRequest, Conflict, UnknownStackitError],
|
|
381
|
-
protocol: StackitProtocol,
|
|
382
|
-
retry: Retry.Retry,
|
|
383
|
-
}));
|
|
384
|
-
/** Create an Instance Local/Technical User. Creates a new STACKIT Git instance Local/Technical User. */
|
|
385
|
-
export const createUser = /*@__PURE__*/ API.make(() => ({
|
|
386
|
-
input: CreateUserRequest,
|
|
387
|
-
output: User,
|
|
388
|
-
errors: [BadRequest, Conflict, UnknownStackitError],
|
|
389
|
-
protocol: StackitProtocol,
|
|
390
|
-
retry: Retry.Retry,
|
|
391
|
-
}));
|
|
392
|
-
/** Delete Authentication Source Deletes the authentication source associated to this STACKIT Git instance. */
|
|
393
|
-
export const deleteAuthentication = /*@__PURE__*/ API.make(() => ({
|
|
394
|
-
input: DeleteAuthenticationRequest,
|
|
395
|
-
output: DeleteAuthenticationResponse,
|
|
396
|
-
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
397
|
-
protocol: StackitProtocol,
|
|
398
|
-
retry: Retry.Retry,
|
|
399
|
-
}));
|
|
400
|
-
/** Delete Instance. Deletes a STACKIT Git instance and destroys all associated data. */
|
|
401
|
-
export const deleteInstance = /*@__PURE__*/ API.make(() => ({
|
|
402
|
-
input: DeleteInstanceRequest,
|
|
403
|
-
output: DeleteInstanceResponse,
|
|
404
|
-
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
405
|
-
protocol: StackitProtocol,
|
|
406
|
-
retry: Retry.Retry,
|
|
407
|
-
}));
|
|
408
|
-
/** Delete Runner. Deletes the runner associated to this STACKIT Git instance and destroys all associated data. */
|
|
409
|
-
export const deleteRunner = /*@__PURE__*/ API.make(() => ({
|
|
410
|
-
input: DeleteRunnerRequest,
|
|
411
|
-
output: DeleteRunnerResponse,
|
|
412
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
413
|
-
protocol: StackitProtocol,
|
|
414
|
-
retry: Retry.Retry,
|
|
415
|
-
}));
|
|
416
|
-
/** Delete Instance User. Deletes a STACKIT Git instance User and destroys all associated data. */
|
|
417
|
-
export const deleteUser = /*@__PURE__*/ API.make(() => ({
|
|
418
|
-
input: DeleteUserRequest,
|
|
419
|
-
output: DeleteUserResponse,
|
|
420
|
-
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
421
|
-
protocol: StackitProtocol,
|
|
422
|
-
retry: Retry.Retry,
|
|
423
|
-
}));
|
|
424
|
-
/** Get authentication provider Get authentication provider */
|
|
425
|
-
export const getAuthentication = /*@__PURE__*/ API.make(() => ({
|
|
426
|
-
input: GetAuthenticationRequest,
|
|
427
|
-
output: Authentication,
|
|
428
|
-
errors: [BadRequest, UnknownStackitError],
|
|
429
|
-
protocol: StackitProtocol,
|
|
430
|
-
retry: Retry.Retry,
|
|
431
|
-
}));
|
|
432
|
-
/** Get Instance information. Retrieves information about a STACKIT Git instance. */
|
|
433
|
-
export const getInstance = /*@__PURE__*/ API.make(() => ({
|
|
434
|
-
input: GetInstanceRequest,
|
|
435
|
-
output: Instance,
|
|
436
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
437
|
-
protocol: StackitProtocol,
|
|
438
|
-
retry: Retry.Retry,
|
|
439
|
-
}));
|
|
440
|
-
/** Get Runner information. Retrieves information about a runner in a STACKIT Git instance. */
|
|
441
|
-
export const getRunner = /*@__PURE__*/ API.make(() => ({
|
|
442
|
-
input: GetRunnerRequest,
|
|
443
|
-
output: Runner,
|
|
444
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
445
|
-
protocol: StackitProtocol,
|
|
446
|
-
retry: Retry.Retry,
|
|
447
|
-
}));
|
|
448
|
-
/** Get Instance User information. Retrieves information about a STACKIT Git instance User. */
|
|
449
|
-
export const getUser = /*@__PURE__*/ API.make(() => ({
|
|
450
|
-
input: GetUserRequest,
|
|
451
|
-
output: GetUserResponse,
|
|
452
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
453
|
-
protocol: StackitProtocol,
|
|
454
|
-
retry: Retry.Retry,
|
|
455
|
-
}));
|
|
456
|
-
/** Get instance Users. Lists STACKIT Git Users within an instance. Supports pagination via the optional `page` query parameter. Each page returns up to 50 users. */
|
|
457
|
-
export const getUsers = /*@__PURE__*/ API.make(() => ({
|
|
458
|
-
input: GetUsersRequest,
|
|
459
|
-
output: ListUsers,
|
|
460
|
-
errors: [BadRequest, UnknownStackitError],
|
|
461
|
-
protocol: StackitProtocol,
|
|
462
|
-
retry: Retry.Retry,
|
|
463
|
-
}));
|
|
464
|
-
/** List authentication sources Lists all authentication sources belonging to a specific instance */
|
|
465
|
-
export const listAuthentication = /*@__PURE__*/ API.make(() => ({
|
|
466
|
-
input: ListAuthenticationRequest,
|
|
467
|
-
output: AuthenticationList,
|
|
468
|
-
errors: [BadRequest, UnknownStackitError],
|
|
469
|
-
protocol: StackitProtocol,
|
|
470
|
-
retry: Retry.Retry,
|
|
471
|
-
}));
|
|
472
|
-
/** Returns the details for the given STACKIT Git flavors. Provides detailed information about possible Git Flavors. */
|
|
473
|
-
export const listFlavors2 = /*@__PURE__*/ API.make(() => ({
|
|
474
|
-
input: ListFlavorsRequest,
|
|
475
|
-
output: ListFlavors,
|
|
476
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
477
|
-
protocol: StackitProtocol,
|
|
478
|
-
retry: Retry.Retry,
|
|
479
|
-
}));
|
|
480
|
-
/** List Instances. Lists all STACKIT Git instances within a project. */
|
|
481
|
-
export const listInstances2 = /*@__PURE__*/ API.make(() => ({
|
|
482
|
-
input: ListInstancesRequest,
|
|
483
|
-
output: ListInstances,
|
|
484
|
-
errors: [BadRequest, UnknownStackitError],
|
|
485
|
-
protocol: StackitProtocol,
|
|
486
|
-
retry: Retry.Retry,
|
|
487
|
-
}));
|
|
488
|
-
/** A list of runner runtimes that are available to be enabled for the project. */
|
|
489
|
-
export const listRunnerRuntimes = /*@__PURE__*/ API.make(() => ({
|
|
490
|
-
input: ListRunnerRuntimesRequest,
|
|
491
|
-
output: RunnerRuntimeList,
|
|
492
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
493
|
-
protocol: StackitProtocol,
|
|
494
|
-
retry: Retry.Retry,
|
|
495
|
-
}));
|
|
496
|
-
/** Patch Authentication. Patches the Authentication Provider. */
|
|
497
|
-
export const patchAuthentication = /*@__PURE__*/ API.make(() => ({
|
|
498
|
-
input: PatchAuthenticationRequest,
|
|
499
|
-
output: Authentication,
|
|
500
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
501
|
-
protocol: StackitProtocol,
|
|
502
|
-
retry: Retry.Retry,
|
|
503
|
-
}));
|
|
504
|
-
/** Patch Instance. Patches the Instance. */
|
|
505
|
-
export const patchInstance = /*@__PURE__*/ API.make(() => ({
|
|
506
|
-
input: PatchInstanceRequest,
|
|
507
|
-
output: Instance,
|
|
508
|
-
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
509
|
-
protocol: StackitProtocol,
|
|
510
|
-
retry: Retry.Retry,
|
|
511
|
-
}));
|
|
512
|
-
/** Update Instance User. Updates the Instance User. */
|
|
513
|
-
export const updateUser = /*@__PURE__*/ API.make(() => ({
|
|
514
|
-
input: UpdateUserRequest,
|
|
515
|
-
output: User,
|
|
516
|
-
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
517
|
-
protocol: StackitProtocol,
|
|
518
|
-
retry: Retry.Retry,
|
|
519
|
-
}));
|
|
520
|
-
//# sourceMappingURL=git.js.map
|
|
35
|
+
|
|
36
|
+
export const createAuthentication = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"CreateAuthenticationRequest";$6({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),auto_discover_url:$3,client_id:$3,client_secret:$3.pipe($4({})),icon_url:$5($3),name:$3,provider:$5($3),scopes:$5($3)}).pipe($1({method:"POST",uri:"/v1beta/projects/{projectId}/instances/{instanceId}/authentications",code:200,baseUrl:"https://git.api.stackit.cloud"}))', [__0, __1, __2, __3, __10, __8, __4, __5, __d0, BadRequest, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createAuthentication, i));
|
|
37
|
+
|
|
38
|
+
export const createInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:3,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"CreateInstanceRequest";$6({projectId:$3.pipe($2()),acl:$5(#4:0),flavor:$5($3),name:$3}).pipe($1({method:"POST",uri:"/v1beta/projects/{projectId}/instances",code:200,baseUrl:"https://git.api.stackit.cloud"}))', [__0, __1, __2, __3, __d2, __8, __4, __5, __d1, BadRequest, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createInstance, i));
|
|
39
|
+
|
|
40
|
+
export const createRunner = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"CreateRunnerRequest";$5({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),labels:#4:0}).pipe($1({method:"POST",uri:"/v1beta/projects/{projectId}/instances/{instanceId}/runner",code:200,baseUrl:"https://git.api.stackit.cloud"}))', [__0, __1, __2, __3, __d2, __4, __5, __d3, BadRequest, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createRunner, i));
|
|
41
|
+
|
|
42
|
+
export const createUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"CreateUserRequest";$7({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),email:$3,force_send_reset_password:$5($4),name:$3,password:$3.pipe($6({})),username:$3}).pipe($1({method:"POST",uri:"/v1beta/projects/{projectId}/instances/{instanceId}/users",code:200,baseUrl:"https://git.api.stackit.cloud"}))', [__0, __1, __2, __3, __12, __8, __10, __4, __5, __d4, BadRequest, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createUser, i));
|
|
43
|
+
|
|
44
|
+
export const deleteAuthentication = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"DeleteAuthenticationRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),authenticationId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1beta/projects/{projectId}/instances/{instanceId}/authentications/{authenticationId}",code:200,baseUrl:"https://git.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d5, BadRequest, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteAuthentication, i));
|
|
45
|
+
|
|
46
|
+
export const deleteInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"DeleteInstanceRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1beta/projects/{projectId}/instances/{instanceId}",code:200,baseUrl:"https://git.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d5, BadRequest, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteInstance, i));
|
|
47
|
+
|
|
48
|
+
export const deleteRunner = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteRunnerRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1beta/projects/{projectId}/instances/{instanceId}/runner",code:200,baseUrl:"https://git.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d5, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteRunner, i));
|
|
49
|
+
|
|
50
|
+
export const deleteUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"DeleteUserRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),username:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1beta/projects/{projectId}/instances/{instanceId}/users/{username}",code:200,baseUrl:"https://git.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d5, BadRequest, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteUser, i));
|
|
51
|
+
|
|
52
|
+
export const getAuthentication = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetAuthenticationRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),authenticationId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1beta/projects/{projectId}/instances/{instanceId}/authentications/{authenticationId}",code:200,baseUrl:"https://git.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d0, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getAuthentication, i));
|
|
53
|
+
|
|
54
|
+
export const getInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:3,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetInstanceRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1beta/projects/{projectId}/instances/{instanceId}",code:200,baseUrl:"https://git.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d1, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getInstance, i));
|
|
55
|
+
|
|
56
|
+
export const getRunner = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetRunnerRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1beta/projects/{projectId}/instances/{instanceId}/runner",code:200,baseUrl:"https://git.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d3, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getRunner, i));
|
|
57
|
+
|
|
58
|
+
export const getUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetUserRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),username:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1beta/projects/{projectId}/instances/{instanceId}/users/{username}",code:200,baseUrl:"https://git.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d5, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getUser, i));
|
|
59
|
+
|
|
60
|
+
export const getUsers = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$11,$12],protocol:$13,retry:$14};$8(>4)@"GetUsersRequest";$10(#9:0);$8(>5)@"ListUsers";$7({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),page:$6($5.pipe($4()))}).pipe($1({method:"GET",uri:"/v1beta/projects/{projectId}/instances/{instanceId}/users",code:200,baseUrl:"https://git.api.stackit.cloud"}));$7({itemsCount:$5,offset:$5,totalPages:$5,users:#2})', [__0, __1, __2, __3, __6, __7, __8, __4, __5, __d4, __9, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getUsers, i));
|
|
61
|
+
|
|
62
|
+
export const listAuthentication = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$8,$9],protocol:$10,retry:$11};$5(>4)@"ListAuthenticationRequest";$7(#6:0);$5(>5)@"AuthenticationList";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1beta/projects/{projectId}/instances/{instanceId}/authentications",code:200,baseUrl:"https://git.api.stackit.cloud"}));$4({authentication:#2})', [__0, __1, __2, __3, __4, __5, __d0, __9, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listAuthentication, i));
|
|
63
|
+
|
|
64
|
+
export const listFlavors2 = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("Flavor", '{input:#1,output:#4,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>5)@"List%sRequest";$5(>6)@"%";$6(#2);$5(>7)@"List%s";$4({projectId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1beta/projects/{projectId}/flavors",code:200,baseUrl:"https://git.api.stackit.cloud"}));$4({availability:$3,description:$3,display_name:$3,id:$3,sku:$3});$4({flavors:#3})', [__0, __1, __2, __3, __4, __5, __9, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listFlavors2, i));
|
|
65
|
+
|
|
66
|
+
export const listInstances2 = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("ListInstances", '{input:#1,output:#3,errors:[$8,$9],protocol:$10,retry:$11};$5(>4)@"%Request";$7(#6:3);$5(>5)@"%";$4({projectId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1beta/projects/{projectId}/instances",code:200,baseUrl:"https://git.api.stackit.cloud"}));$4({instances:#2})', [__0, __1, __2, __3, __4, __5, __d1, __9, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listInstances2, i));
|
|
67
|
+
|
|
68
|
+
export const listRunnerRuntimes = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("RunnerRuntime", '{input:#1,output:#4,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>5)@"List%sRequest";$5(>6)@"%";$6(#2);$5(>7)@"%List";$4({projectId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1beta/projects/{projectId}/runner-runtimes",code:200,baseUrl:"https://git.api.stackit.cloud"}));$4({availability:$3,description:$3,display_name:$3,id:$3,label:$3});$4({items:#3})', [__0, __1, __2, __3, __4, __5, __9, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listRunnerRuntimes, i));
|
|
69
|
+
|
|
70
|
+
export const patchAuthentication = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"PatchAuthenticationRequest";$6({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),authenticationId:$3.pipe($2()),auto_discover_url:$4($3),client_id:$4($3),client_secret:$4($3.pipe($5({}))),icon_url:$4($3),provider:$4($3),scopes:$4($3)}).pipe($1({method:"PATCH",uri:"/v1beta/projects/{projectId}/instances/{instanceId}/authentications/{authenticationId}",code:200,baseUrl:"https://git.api.stackit.cloud"}))', [__0, __1, __2, __3, __8, __10, __4, __5, __d0, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(patchAuthentication, i));
|
|
71
|
+
|
|
72
|
+
export const patchInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:3,errors:[$11,$12,$13,$14],protocol:$15,retry:$16};$10(>2)@"PatchInstanceRequest";$9({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),acl:$6($5(#4:0)),admin_login:$6($7),feature_toggle:$6(#8:1),labels:$6(#8:2)}).pipe($1({method:"PATCH",uri:"/v1beta/projects/{projectId}/instances/{instanceId}",code:200,baseUrl:"https://git.api.stackit.cloud"}))', [__0, __1, __2, __3, __d2, __11, __8, __12, __d1, __4, __5, BadRequest, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(patchInstance, i));
|
|
73
|
+
|
|
74
|
+
export const updateUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"UpdateUserRequest";$6({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),username:$3.pipe($2()),email:$4($3),name:$4($3),password:$4($3.pipe($5({})))}).pipe($1({method:"PATCH",uri:"/v1beta/projects/{projectId}/instances/{instanceId}/users/{username}",code:200,baseUrl:"https://git.api.stackit.cloud"}))', [__0, __1, __2, __3, __8, __10, __4, __5, __d4, BadRequest, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateUser, i));
|
|
75
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
76
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
// Shared schema data (see `op` in core/api).
|
|
80
|
+
function __d0() {
|
|
81
|
+
return ['$4(>1)@"Authentication";$3({auto_discover_url:$1,client_id:$1,created_at:$1,icon_url:$1,id:$1,name:$1,provider:$1,scopes:$1,status:$1,status_message:$2($1)})', [__0, __3, __8, __4, __5]];
|
|
82
|
+
}
|
|
83
|
+
function __d1() {
|
|
84
|
+
return ['$6(>4)@"Pipelines";$6(>5)@"FeatureToggle";$7($1,$1);$6(>6)@"Instance";$5({action_url:$3($2($1)),enabled:$3($2($4))});$5({default_email_notifications:$3($2($1)),enable_local_login:$3($2($4)),pipelines:$3(#0)});$5({acl:#8:0,admin_login:$4,consumed_disk:$1,consumed_object_storage:$1,created:$1,feature_toggle:#1,flavor:$1,id:$1,labels:$3(#2),name:$1,state:$1,url:$1,version:$1})', [__0, __3, __11, __8, __12, __4, __5, __13, __d2]];
|
|
85
|
+
}
|
|
86
|
+
function __d2() {
|
|
87
|
+
return ['$2($1)', [__0, __3, __9]];
|
|
88
|
+
}
|
|
89
|
+
function __d3() {
|
|
90
|
+
return ['$4(>1)@"Runner";$3({created_at:$1,id:$1,labels:#2:0,status:$1})', [__0, __3, __d2, __4, __5]];
|
|
91
|
+
}
|
|
92
|
+
function __d4() {
|
|
93
|
+
return ['$5(>1)@"User";$4({email:$1,id:$3($2),name:$1,username:$1})', [__0, __3, __7, __8, __4, __5]];
|
|
94
|
+
}
|
|
95
|
+
function __d5() {
|
|
96
|
+
return ['$2(>1)@"DeleteAuthenticationResponse";$1({})', [__0, __4, __5]];
|
|
97
|
+
}
|