@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,379 +1,74 @@
|
|
|
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";
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
6
|
import { UnknownStackitError } from "../errors.js";
|
|
6
7
|
import { StackitProtocol } from "../protocol.js";
|
|
7
8
|
import * as Retry from "../retry.js";
|
|
8
9
|
import * as T from "../traits.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
const __0 = __L.at;
|
|
11
|
+
const __1 = T.Http;
|
|
12
|
+
const __2 = T.Label;
|
|
13
|
+
const __3 = S.String;
|
|
14
|
+
const __4 = T.Query;
|
|
15
|
+
const __5 = S.optional;
|
|
16
|
+
const __6 = S.Struct;
|
|
17
|
+
const __7 = S.suspend;
|
|
18
|
+
const __8 = S.Boolean;
|
|
19
|
+
const __9 = S.Number;
|
|
20
|
+
const __10 = S.Array;
|
|
21
|
+
const __11 = S.TaggedError;
|
|
22
|
+
const __12 = T.applyErrorMatchers;
|
|
23
|
+
export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
|
|
24
|
+
return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __9, __3, __11, __12]]);
|
|
25
|
+
});
|
|
26
|
+
export const Conflict = /*@__PURE__*/ API.error(function Conflict(i) {
|
|
27
|
+
return API.newError(i, new.target, ['$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])', [__0, C.withConflictError, __9, __3, __11, __12]]);
|
|
28
|
+
});
|
|
29
|
+
export const Forbidden = /*@__PURE__*/ API.error(function Forbidden(i) {
|
|
30
|
+
return API.newError(i, new.target, ['$5($4()("Forbidden",{code:$2,message:$3}).pipe($1),[{status:403}])', [__0, C.withAuthError, __9, __3, __11, __12]]);
|
|
31
|
+
});
|
|
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, __9, __3, __11, __12]]);
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export const approveSubscription = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$6(>2)@"ApproveSubscriptionRequest";$5({projectId:$3.pipe($2()),subscriptionId:$3.pipe($2()),instanceTarget:$4($3)}).pipe($1({method:"POST",uri:"/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}/approve",code:200,baseUrl:"https://stackit-marketplace.api.stackit.cloud"}))', [__0, __1, __2, __3, __5, __6, __7, __d0, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(approveSubscription, i));
|
|
37
|
+
|
|
38
|
+
export const cancelConsumersSubscription = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9,$10,$11],protocol:$12,retry:$13};$5(>2)@"CancelConsumersSubscriptionRequest";$4({projectId:$3.pipe($2()),subscriptionId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}",code:200,baseUrl:"https://stackit-marketplace.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __7, __d0, BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(cancelConsumersSubscription, i));
|
|
39
|
+
|
|
40
|
+
export const consumersSubscriptionsListByOrganization = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#10:1,errors:[$11,$12,$13],protocol:$14,retry:$15};$9(>2)@"ConsumersSubscriptionsListByOrganizationRequest";$8({organizationId:$3.pipe($2()),cursor:$5($3.pipe($4())),limit:$5($6.pipe($4())),productId:$5($3.pipe($4())),includeExpired:$5($7.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/consumers/organizations/{organizationId}/subscriptions",code:200,baseUrl:"https://stackit-marketplace.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __9, __8, __6, __7, __d1, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(consumersSubscriptionsListByOrganization, i));
|
|
41
|
+
|
|
42
|
+
export const consumersSubscriptionsListByProject = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#10:1,errors:[$11,$12,$13],protocol:$14,retry:$15};$9(>2)@"ConsumersSubscriptionsListByProjectRequest";$8({projectId:$3.pipe($2()),cursor:$5($3.pipe($4())),limit:$5($6.pipe($4())),productId:$5($3.pipe($4())),includeExpired:$5($7.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/consumers/projects/{projectId}/subscriptions",code:200,baseUrl:"https://stackit-marketplace.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __9, __8, __6, __7, __d1, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(consumersSubscriptionsListByProject, i));
|
|
43
|
+
|
|
44
|
+
export const createConsumersSubscription = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:4,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$6(>2)@"CreateConsumersSubscriptionRequest";$5({projectId:$3.pipe($2()),consumerNotificationEmail:$4($3),productId:$3,sku:$3}).pipe($1({method:"POST",uri:"/v1/consumers/projects/{projectId}/subscriptions",code:200,baseUrl:"https://stackit-marketplace.api.stackit.cloud"}))', [__0, __1, __2, __3, __5, __6, __7, __d2, BadRequest, Forbidden, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createConsumersSubscription, i));
|
|
45
|
+
|
|
46
|
+
export const getConsumersSubscription = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:4,errors:[$10,$11,$12,$13],protocol:$14,retry:$15};$8(>2)@"GetConsumersSubscriptionRequest";$7({projectId:$3.pipe($2()),subscriptionId:$3.pipe($2()),includeExpired:$6($5.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}",code:200,baseUrl:"https://stackit-marketplace.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __8, __5, __6, __7, __d2, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getConsumersSubscription, i));
|
|
47
|
+
|
|
48
|
+
export const getConsumersSubscriptionsRedirect = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9,$10],protocol:$11,retry:$12};$7(>3)@"GetConsumersSubscriptionsRedirectRequest";$7(>4)@"MarketplaceSubscriptionV1SubscriptionRedirect";$6({projectId:$3.pipe($2()),subscriptionId:$3.pipe($2()),redirectTarget:$5($3.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}/redirects",code:200,baseUrl:"https://stackit-marketplace.api.stackit.cloud"}));$6({redirectTarget:$3,redirectUrl:$3})', [__0, __1, __2, __3, __4, __5, __6, __7, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getConsumersSubscriptionsRedirect, i));
|
|
49
|
+
|
|
50
|
+
export const getVendorsSubscription = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:4,errors:[$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"GetVendorsSubscriptionRequest";$7({projectId:$3.pipe($2()),subscriptionId:$3.pipe($2()),includeExpired:$6($5.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}",code:200,baseUrl:"https://stackit-marketplace.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __8, __5, __6, __7, __d2, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getVendorsSubscription, i));
|
|
51
|
+
|
|
52
|
+
export const rejectVendorsSubscription = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"RejectVendorsSubscriptionRequest";$4({projectId:$3.pipe($2()),subscriptionId:$3.pipe($2())}).pipe($1({method:"POST",uri:"/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}/reject",code:200,baseUrl:"https://stackit-marketplace.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __7, __d0, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(rejectVendorsSubscription, i));
|
|
53
|
+
|
|
54
|
+
export const resolveCustomer = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:4,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"ResolveCustomerRequest";$4({projectId:$3.pipe($2()),token:$3}).pipe($1({method:"POST",uri:"/v1/vendors/projects/{projectId}/resolve-customer",code:200,baseUrl:"https://stackit-marketplace.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __7, __d2, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(resolveCustomer, i));
|
|
55
|
+
|
|
56
|
+
export const terminateConsumersSubscription = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"TerminateConsumersSubscriptionRequest";$4({projectId:$3.pipe($2()),subscriptionId:$3.pipe($2())}).pipe($1({method:"POST",uri:"/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}/terminate",code:200,baseUrl:"https://stackit-marketplace.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __7, __d0, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(terminateConsumersSubscription, i));
|
|
57
|
+
|
|
58
|
+
export const vendorsSubscriptionsListByOrganization = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#10:1,errors:[$11,$12,$13],protocol:$14,retry:$15};$9(>2)@"VendorsSubscriptionsListByOrganizationRequest";$8({organizationId:$3.pipe($2()),cursor:$5($3.pipe($4())),limit:$5($6.pipe($4())),productId:$5($3.pipe($4())),includeExpired:$5($7.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/vendors/organizations/{organizationId}/subscriptions",code:200,baseUrl:"https://stackit-marketplace.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __9, __8, __6, __7, __d1, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(vendorsSubscriptionsListByOrganization, i));
|
|
59
|
+
|
|
60
|
+
export const vendorsSubscriptionsListByProject = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#10:1,errors:[$11,$12,$13],protocol:$14,retry:$15};$9(>2)@"VendorsSubscriptionsListByProjectRequest";$8({projectId:$3.pipe($2()),cursor:$5($3.pipe($4())),limit:$5($6.pipe($4())),productId:$5($3.pipe($4())),includeExpired:$5($7.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/vendors/projects/{projectId}/subscriptions",code:200,baseUrl:"https://stackit-marketplace.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __9, __8, __6, __7, __d1, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(vendorsSubscriptionsListByProject, i));
|
|
61
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
62
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
// Shared schema data (see `op` in core/api).
|
|
66
|
+
function __d0() {
|
|
67
|
+
return ['$2(>1)@"ApproveSubscriptionResponse";$1({})', [__0, __6, __7]];
|
|
14
68
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
code: S.Number,
|
|
18
|
-
message: S.String,
|
|
19
|
-
}).pipe(C.withConflictError), [{ status: 409 }]) {
|
|
69
|
+
function __d1() {
|
|
70
|
+
return ['$2(#1:4);$7(>2)@"MarketplaceSubscriptionV1ListSubscriptionsResponse";$6({cursor:$4($3),items:$4(#0),limit:$4($5)})', [__0, __d2, __10, __3, __5, __9, __6, __7]];
|
|
20
71
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
code: S.Number,
|
|
24
|
-
message: S.String,
|
|
25
|
-
}).pipe(C.withAuthError), [{ status: 403 }]) {
|
|
72
|
+
function __d2() {
|
|
73
|
+
return ['$4(>5)@"MarketplaceSubscriptionV1FileLocalizedVersion";$4(>6)@"MarketplaceSubscriptionV1File";$4(>7)@"MarketplaceSubscriptionV1Assets";$4(>8)@"MarketplaceSubscriptionV1SubscriptionProduct";$4(>9)@"MarketplaceSubscriptionV1Subscription";$3({de:$2($1),en:$2($1)});$3({version:$2(#0)});$3({endUserLicenseAgreement:$2(#1),productDescription:$2(#1),serviceCertificate:$2(#1),serviceLevelAgreement:$2(#1)});$3({assets:$2(#2),deliveryMethod:$1,lifecycleState:$1,noticePeriod:$1,planId:$1,priceType:$1,pricingPlan:$1,productId:$1,productName:$1,rate:$1,validityPeriod:$1,vendorName:$1,vendorPlanId:$2($1),vendorProductId:$2($1),vendorWebsiteUrl:$1});$3({approvalTimeout:$2($1),autoRenewal:$2($5),lifecycleState:$1,orderedAt:$1,organizationId:$1,product:#3,projectId:$1,subscriptionId:$1,terminatesAt:$2($1),validFrom:$2($1),validUntil:$2($1)})', [__0, __3, __5, __6, __7, __8]];
|
|
26
74
|
}
|
|
27
|
-
export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
28
|
-
/*@__PURE__*/ S.TaggedError()("NotFound", {
|
|
29
|
-
code: S.Number,
|
|
30
|
-
message: S.String,
|
|
31
|
-
}).pipe(C.withBadRequestError), [{ status: 404 }]) {
|
|
32
|
-
}
|
|
33
|
-
export const ApproveSubscriptionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
34
|
-
projectId: S.String.pipe(T.Label()),
|
|
35
|
-
subscriptionId: S.String.pipe(T.Label()),
|
|
36
|
-
instanceTarget: S.optional(S.String),
|
|
37
|
-
}).pipe(T.Http({
|
|
38
|
-
method: "POST",
|
|
39
|
-
uri: "/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}/approve",
|
|
40
|
-
code: 200,
|
|
41
|
-
baseUrl: "https://stackit-marketplace.api.stackit.cloud",
|
|
42
|
-
}))).annotate({
|
|
43
|
-
identifier: "ApproveSubscriptionRequest",
|
|
44
|
-
});
|
|
45
|
-
export const ApproveSubscriptionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
46
|
-
identifier: "ApproveSubscriptionResponse",
|
|
47
|
-
});
|
|
48
|
-
export const CancelConsumersSubscriptionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
49
|
-
projectId: S.String.pipe(T.Label()),
|
|
50
|
-
subscriptionId: S.String.pipe(T.Label()),
|
|
51
|
-
}).pipe(T.Http({
|
|
52
|
-
method: "DELETE",
|
|
53
|
-
uri: "/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}",
|
|
54
|
-
code: 200,
|
|
55
|
-
baseUrl: "https://stackit-marketplace.api.stackit.cloud",
|
|
56
|
-
}))).annotate({
|
|
57
|
-
identifier: "CancelConsumersSubscriptionRequest",
|
|
58
|
-
});
|
|
59
|
-
export const CancelConsumersSubscriptionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
60
|
-
identifier: "CancelConsumersSubscriptionResponse",
|
|
61
|
-
});
|
|
62
|
-
export const ConsumersSubscriptionsListByOrganizationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
63
|
-
organizationId: S.String.pipe(T.Label()),
|
|
64
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
65
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
66
|
-
productId: S.optional(S.String.pipe(T.Query())),
|
|
67
|
-
includeExpired: S.optional(S.Boolean.pipe(T.Query())),
|
|
68
|
-
}).pipe(T.Http({
|
|
69
|
-
method: "GET",
|
|
70
|
-
uri: "/v1/consumers/organizations/{organizationId}/subscriptions",
|
|
71
|
-
code: 200,
|
|
72
|
-
baseUrl: "https://stackit-marketplace.api.stackit.cloud",
|
|
73
|
-
}))).annotate({
|
|
74
|
-
identifier: "ConsumersSubscriptionsListByOrganizationRequest",
|
|
75
|
-
});
|
|
76
|
-
export const MarketplaceSubscriptionV1SubscriptionLifecycleState = S.String;
|
|
77
|
-
export const MarketplaceSubscriptionV1FileLocalizedVersion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
78
|
-
de: S.optional(S.String),
|
|
79
|
-
en: S.optional(S.String),
|
|
80
|
-
})).annotate({
|
|
81
|
-
identifier: "MarketplaceSubscriptionV1FileLocalizedVersion",
|
|
82
|
-
});
|
|
83
|
-
export const MarketplaceSubscriptionV1File = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
84
|
-
version: S.optional(MarketplaceSubscriptionV1FileLocalizedVersion),
|
|
85
|
-
})).annotate({
|
|
86
|
-
identifier: "MarketplaceSubscriptionV1File",
|
|
87
|
-
});
|
|
88
|
-
export const MarketplaceSubscriptionV1Assets = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
89
|
-
endUserLicenseAgreement: S.optional(MarketplaceSubscriptionV1File),
|
|
90
|
-
productDescription: S.optional(MarketplaceSubscriptionV1File),
|
|
91
|
-
serviceCertificate: S.optional(MarketplaceSubscriptionV1File),
|
|
92
|
-
serviceLevelAgreement: S.optional(MarketplaceSubscriptionV1File),
|
|
93
|
-
})).annotate({
|
|
94
|
-
identifier: "MarketplaceSubscriptionV1Assets",
|
|
95
|
-
});
|
|
96
|
-
export const MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod = S.String;
|
|
97
|
-
export const MarketplaceSubscriptionV1SubscriptionProductLifecycleState = S.String;
|
|
98
|
-
export const MarketplaceSubscriptionV1SubscriptionProductPriceType = S.String;
|
|
99
|
-
export const MarketplaceSubscriptionV1SubscriptionProduct = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
100
|
-
assets: S.optional(MarketplaceSubscriptionV1Assets),
|
|
101
|
-
deliveryMethod: MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod,
|
|
102
|
-
lifecycleState: MarketplaceSubscriptionV1SubscriptionProductLifecycleState,
|
|
103
|
-
noticePeriod: S.String,
|
|
104
|
-
planId: S.String,
|
|
105
|
-
priceType: MarketplaceSubscriptionV1SubscriptionProductPriceType,
|
|
106
|
-
pricingPlan: S.String,
|
|
107
|
-
productId: S.String,
|
|
108
|
-
productName: S.String,
|
|
109
|
-
rate: S.String,
|
|
110
|
-
validityPeriod: S.String,
|
|
111
|
-
vendorName: S.String,
|
|
112
|
-
vendorPlanId: S.optional(S.String),
|
|
113
|
-
vendorProductId: S.optional(S.String),
|
|
114
|
-
vendorWebsiteUrl: S.String,
|
|
115
|
-
})).annotate({
|
|
116
|
-
identifier: "MarketplaceSubscriptionV1SubscriptionProduct",
|
|
117
|
-
});
|
|
118
|
-
export const MarketplaceSubscriptionV1Subscription = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
119
|
-
approvalTimeout: S.optional(S.String),
|
|
120
|
-
autoRenewal: S.optional(S.Boolean),
|
|
121
|
-
lifecycleState: MarketplaceSubscriptionV1SubscriptionLifecycleState,
|
|
122
|
-
orderedAt: S.String,
|
|
123
|
-
organizationId: S.String,
|
|
124
|
-
product: MarketplaceSubscriptionV1SubscriptionProduct,
|
|
125
|
-
projectId: S.String,
|
|
126
|
-
subscriptionId: S.String,
|
|
127
|
-
terminatesAt: S.optional(S.String),
|
|
128
|
-
validFrom: S.optional(S.String),
|
|
129
|
-
validUntil: S.optional(S.String),
|
|
130
|
-
})).annotate({
|
|
131
|
-
identifier: "MarketplaceSubscriptionV1Subscription",
|
|
132
|
-
});
|
|
133
|
-
export const MarketplaceSubscriptionV1ListSubscriptionsResponseItemsList = /*@__PURE__*/ S.Array(MarketplaceSubscriptionV1Subscription);
|
|
134
|
-
export const MarketplaceSubscriptionV1ListSubscriptionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
135
|
-
cursor: S.optional(S.String),
|
|
136
|
-
items: S.optional(MarketplaceSubscriptionV1ListSubscriptionsResponseItemsList),
|
|
137
|
-
limit: S.optional(S.Number),
|
|
138
|
-
})).annotate({
|
|
139
|
-
identifier: "MarketplaceSubscriptionV1ListSubscriptionsResponse",
|
|
140
|
-
});
|
|
141
|
-
export const ConsumersSubscriptionsListByProjectRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
142
|
-
projectId: S.String.pipe(T.Label()),
|
|
143
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
144
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
145
|
-
productId: S.optional(S.String.pipe(T.Query())),
|
|
146
|
-
includeExpired: S.optional(S.Boolean.pipe(T.Query())),
|
|
147
|
-
}).pipe(T.Http({
|
|
148
|
-
method: "GET",
|
|
149
|
-
uri: "/v1/consumers/projects/{projectId}/subscriptions",
|
|
150
|
-
code: 200,
|
|
151
|
-
baseUrl: "https://stackit-marketplace.api.stackit.cloud",
|
|
152
|
-
}))).annotate({
|
|
153
|
-
identifier: "ConsumersSubscriptionsListByProjectRequest",
|
|
154
|
-
});
|
|
155
|
-
export const CreateConsumersSubscriptionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
156
|
-
projectId: S.String.pipe(T.Label()),
|
|
157
|
-
consumerNotificationEmail: S.optional(S.String),
|
|
158
|
-
productId: S.String,
|
|
159
|
-
sku: S.String,
|
|
160
|
-
}).pipe(T.Http({
|
|
161
|
-
method: "POST",
|
|
162
|
-
uri: "/v1/consumers/projects/{projectId}/subscriptions",
|
|
163
|
-
code: 200,
|
|
164
|
-
baseUrl: "https://stackit-marketplace.api.stackit.cloud",
|
|
165
|
-
}))).annotate({
|
|
166
|
-
identifier: "CreateConsumersSubscriptionRequest",
|
|
167
|
-
});
|
|
168
|
-
export const GetConsumersSubscriptionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
169
|
-
projectId: S.String.pipe(T.Label()),
|
|
170
|
-
subscriptionId: S.String.pipe(T.Label()),
|
|
171
|
-
includeExpired: S.optional(S.Boolean.pipe(T.Query())),
|
|
172
|
-
}).pipe(T.Http({
|
|
173
|
-
method: "GET",
|
|
174
|
-
uri: "/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}",
|
|
175
|
-
code: 200,
|
|
176
|
-
baseUrl: "https://stackit-marketplace.api.stackit.cloud",
|
|
177
|
-
}))).annotate({
|
|
178
|
-
identifier: "GetConsumersSubscriptionRequest",
|
|
179
|
-
});
|
|
180
|
-
export const GetConsumersSubscriptionsRedirectRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
181
|
-
projectId: S.String.pipe(T.Label()),
|
|
182
|
-
subscriptionId: S.String.pipe(T.Label()),
|
|
183
|
-
redirectTarget: S.optional(S.String.pipe(T.Query())),
|
|
184
|
-
}).pipe(T.Http({
|
|
185
|
-
method: "GET",
|
|
186
|
-
uri: "/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}/redirects",
|
|
187
|
-
code: 200,
|
|
188
|
-
baseUrl: "https://stackit-marketplace.api.stackit.cloud",
|
|
189
|
-
}))).annotate({
|
|
190
|
-
identifier: "GetConsumersSubscriptionsRedirectRequest",
|
|
191
|
-
});
|
|
192
|
-
export const MarketplaceSubscriptionV1SubscriptionRedirect = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
193
|
-
redirectTarget: S.String,
|
|
194
|
-
redirectUrl: S.String,
|
|
195
|
-
})).annotate({
|
|
196
|
-
identifier: "MarketplaceSubscriptionV1SubscriptionRedirect",
|
|
197
|
-
});
|
|
198
|
-
export const GetVendorsSubscriptionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
199
|
-
projectId: S.String.pipe(T.Label()),
|
|
200
|
-
subscriptionId: S.String.pipe(T.Label()),
|
|
201
|
-
includeExpired: S.optional(S.Boolean.pipe(T.Query())),
|
|
202
|
-
}).pipe(T.Http({
|
|
203
|
-
method: "GET",
|
|
204
|
-
uri: "/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}",
|
|
205
|
-
code: 200,
|
|
206
|
-
baseUrl: "https://stackit-marketplace.api.stackit.cloud",
|
|
207
|
-
}))).annotate({
|
|
208
|
-
identifier: "GetVendorsSubscriptionRequest",
|
|
209
|
-
});
|
|
210
|
-
export const RejectVendorsSubscriptionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
211
|
-
projectId: S.String.pipe(T.Label()),
|
|
212
|
-
subscriptionId: S.String.pipe(T.Label()),
|
|
213
|
-
}).pipe(T.Http({
|
|
214
|
-
method: "POST",
|
|
215
|
-
uri: "/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}/reject",
|
|
216
|
-
code: 200,
|
|
217
|
-
baseUrl: "https://stackit-marketplace.api.stackit.cloud",
|
|
218
|
-
}))).annotate({
|
|
219
|
-
identifier: "RejectVendorsSubscriptionRequest",
|
|
220
|
-
});
|
|
221
|
-
export const RejectVendorsSubscriptionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
222
|
-
identifier: "RejectVendorsSubscriptionResponse",
|
|
223
|
-
});
|
|
224
|
-
export const ResolveCustomerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
225
|
-
projectId: S.String.pipe(T.Label()),
|
|
226
|
-
token: S.String,
|
|
227
|
-
}).pipe(T.Http({
|
|
228
|
-
method: "POST",
|
|
229
|
-
uri: "/v1/vendors/projects/{projectId}/resolve-customer",
|
|
230
|
-
code: 200,
|
|
231
|
-
baseUrl: "https://stackit-marketplace.api.stackit.cloud",
|
|
232
|
-
}))).annotate({ identifier: "ResolveCustomerRequest" });
|
|
233
|
-
export const TerminateConsumersSubscriptionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
234
|
-
projectId: S.String.pipe(T.Label()),
|
|
235
|
-
subscriptionId: S.String.pipe(T.Label()),
|
|
236
|
-
}).pipe(T.Http({
|
|
237
|
-
method: "POST",
|
|
238
|
-
uri: "/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}/terminate",
|
|
239
|
-
code: 200,
|
|
240
|
-
baseUrl: "https://stackit-marketplace.api.stackit.cloud",
|
|
241
|
-
}))).annotate({
|
|
242
|
-
identifier: "TerminateConsumersSubscriptionRequest",
|
|
243
|
-
});
|
|
244
|
-
export const TerminateConsumersSubscriptionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
245
|
-
identifier: "TerminateConsumersSubscriptionResponse",
|
|
246
|
-
});
|
|
247
|
-
export const VendorsSubscriptionsListByOrganizationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
248
|
-
organizationId: S.String.pipe(T.Label()),
|
|
249
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
250
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
251
|
-
productId: S.optional(S.String.pipe(T.Query())),
|
|
252
|
-
includeExpired: S.optional(S.Boolean.pipe(T.Query())),
|
|
253
|
-
}).pipe(T.Http({
|
|
254
|
-
method: "GET",
|
|
255
|
-
uri: "/v1/vendors/organizations/{organizationId}/subscriptions",
|
|
256
|
-
code: 200,
|
|
257
|
-
baseUrl: "https://stackit-marketplace.api.stackit.cloud",
|
|
258
|
-
}))).annotate({
|
|
259
|
-
identifier: "VendorsSubscriptionsListByOrganizationRequest",
|
|
260
|
-
});
|
|
261
|
-
export const VendorsSubscriptionsListByProjectRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
262
|
-
projectId: S.String.pipe(T.Label()),
|
|
263
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
264
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
265
|
-
productId: S.optional(S.String.pipe(T.Query())),
|
|
266
|
-
includeExpired: S.optional(S.Boolean.pipe(T.Query())),
|
|
267
|
-
}).pipe(T.Http({
|
|
268
|
-
method: "GET",
|
|
269
|
-
uri: "/v1/vendors/projects/{projectId}/subscriptions",
|
|
270
|
-
code: 200,
|
|
271
|
-
baseUrl: "https://stackit-marketplace.api.stackit.cloud",
|
|
272
|
-
}))).annotate({
|
|
273
|
-
identifier: "VendorsSubscriptionsListByProjectRequest",
|
|
274
|
-
});
|
|
275
|
-
/** Approve a pending subscription. Approve a pending subscription. */
|
|
276
|
-
export const approveSubscription = /*@__PURE__*/ API.make(() => ({
|
|
277
|
-
input: ApproveSubscriptionRequest,
|
|
278
|
-
output: ApproveSubscriptionResponse,
|
|
279
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
280
|
-
protocol: StackitProtocol,
|
|
281
|
-
retry: Retry.Retry,
|
|
282
|
-
}));
|
|
283
|
-
/** Cancel a subscription. Cancel a subscription. */
|
|
284
|
-
export const cancelConsumersSubscription = /*@__PURE__*/ API.make(() => ({
|
|
285
|
-
input: CancelConsumersSubscriptionRequest,
|
|
286
|
-
output: CancelConsumersSubscriptionResponse,
|
|
287
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
288
|
-
protocol: StackitProtocol,
|
|
289
|
-
retry: Retry.Retry,
|
|
290
|
-
}));
|
|
291
|
-
/** List all subscriptions of an organization. List all subscriptions of an organization. */
|
|
292
|
-
export const consumersSubscriptionsListByOrganization = /*@__PURE__*/ API.make(() => ({
|
|
293
|
-
input: ConsumersSubscriptionsListByOrganizationRequest,
|
|
294
|
-
output: MarketplaceSubscriptionV1ListSubscriptionsResponse,
|
|
295
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
296
|
-
protocol: StackitProtocol,
|
|
297
|
-
retry: Retry.Retry,
|
|
298
|
-
}));
|
|
299
|
-
/** List all subscriptions of an project. List all subscriptions of an project. */
|
|
300
|
-
export const consumersSubscriptionsListByProject = /*@__PURE__*/ API.make(() => ({
|
|
301
|
-
input: ConsumersSubscriptionsListByProjectRequest,
|
|
302
|
-
output: MarketplaceSubscriptionV1ListSubscriptionsResponse,
|
|
303
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
304
|
-
protocol: StackitProtocol,
|
|
305
|
-
retry: Retry.Retry,
|
|
306
|
-
}));
|
|
307
|
-
/** Create a new subscription. Create a new subscription. */
|
|
308
|
-
export const createConsumersSubscription = /*@__PURE__*/ API.make(() => ({
|
|
309
|
-
input: CreateConsumersSubscriptionRequest,
|
|
310
|
-
output: MarketplaceSubscriptionV1Subscription,
|
|
311
|
-
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
312
|
-
protocol: StackitProtocol,
|
|
313
|
-
retry: Retry.Retry,
|
|
314
|
-
}));
|
|
315
|
-
/** Get a subscription. Get a subscription. */
|
|
316
|
-
export const getConsumersSubscription = /*@__PURE__*/ API.make(() => ({
|
|
317
|
-
input: GetConsumersSubscriptionRequest,
|
|
318
|
-
output: MarketplaceSubscriptionV1Subscription,
|
|
319
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
320
|
-
protocol: StackitProtocol,
|
|
321
|
-
retry: Retry.Retry,
|
|
322
|
-
}));
|
|
323
|
-
/** Get a subscription redirect. Get a subscription redirect. */
|
|
324
|
-
export const getConsumersSubscriptionsRedirect = /*@__PURE__*/ API.make(() => ({
|
|
325
|
-
input: GetConsumersSubscriptionsRedirectRequest,
|
|
326
|
-
output: MarketplaceSubscriptionV1SubscriptionRedirect,
|
|
327
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
328
|
-
protocol: StackitProtocol,
|
|
329
|
-
retry: Retry.Retry,
|
|
330
|
-
}));
|
|
331
|
-
/** Get a subscription. Get a subscription. */
|
|
332
|
-
export const getVendorsSubscription = /*@__PURE__*/ API.make(() => ({
|
|
333
|
-
input: GetVendorsSubscriptionRequest,
|
|
334
|
-
output: MarketplaceSubscriptionV1Subscription,
|
|
335
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
336
|
-
protocol: StackitProtocol,
|
|
337
|
-
retry: Retry.Retry,
|
|
338
|
-
}));
|
|
339
|
-
/** Reject a subscription. Reject a subscription (in any lifecycle state). Only available for subscriptions to products with lifecycle state `PRODUCT_PREVIEW`. */
|
|
340
|
-
export const rejectVendorsSubscription = /*@__PURE__*/ API.make(() => ({
|
|
341
|
-
input: RejectVendorsSubscriptionRequest,
|
|
342
|
-
output: RejectVendorsSubscriptionResponse,
|
|
343
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
344
|
-
protocol: StackitProtocol,
|
|
345
|
-
retry: Retry.Retry,
|
|
346
|
-
}));
|
|
347
|
-
/** Resolve customer. Resolve customer. */
|
|
348
|
-
export const resolveCustomer = /*@__PURE__*/ API.make(() => ({
|
|
349
|
-
input: ResolveCustomerRequest,
|
|
350
|
-
output: MarketplaceSubscriptionV1Subscription,
|
|
351
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
352
|
-
protocol: StackitProtocol,
|
|
353
|
-
retry: Retry.Retry,
|
|
354
|
-
}));
|
|
355
|
-
/** Terminates a consumer subscription early. Terminates a consumer subscription early. */
|
|
356
|
-
export const terminateConsumersSubscription = /*@__PURE__*/ API.make(() => ({
|
|
357
|
-
input: TerminateConsumersSubscriptionRequest,
|
|
358
|
-
output: TerminateConsumersSubscriptionResponse,
|
|
359
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
360
|
-
protocol: StackitProtocol,
|
|
361
|
-
retry: Retry.Retry,
|
|
362
|
-
}));
|
|
363
|
-
/** List all subscriptions of an organization. List all subscriptions of an organization. */
|
|
364
|
-
export const vendorsSubscriptionsListByOrganization = /*@__PURE__*/ API.make(() => ({
|
|
365
|
-
input: VendorsSubscriptionsListByOrganizationRequest,
|
|
366
|
-
output: MarketplaceSubscriptionV1ListSubscriptionsResponse,
|
|
367
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
368
|
-
protocol: StackitProtocol,
|
|
369
|
-
retry: Retry.Retry,
|
|
370
|
-
}));
|
|
371
|
-
/** List all subscriptions of an project. List all subscriptions of an project. */
|
|
372
|
-
export const vendorsSubscriptionsListByProject = /*@__PURE__*/ API.make(() => ({
|
|
373
|
-
input: VendorsSubscriptionsListByProjectRequest,
|
|
374
|
-
output: MarketplaceSubscriptionV1ListSubscriptionsResponse,
|
|
375
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
376
|
-
protocol: StackitProtocol,
|
|
377
|
-
retry: Retry.Retry,
|
|
378
|
-
}));
|
|
379
|
-
//# sourceMappingURL=stackit_marketplace.js.map
|