@distilled.cloud/stackit 0.0.0-stage → 1.0.0-rc.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +33 -2
- package/lib/credentials.d.ts +29 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +49 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +36 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +26 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +30 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +9 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +45 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +32 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +147 -0
- package/lib/protocol.js.map +1 -0
- package/lib/protocol.test.d.ts +2 -0
- package/lib/protocol.test.d.ts.map +1 -0
- package/lib/protocol.test.js +181 -0
- package/lib/protocol.test.js.map +1 -0
- package/lib/retry.d.ts +31 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +31 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/alb.d.ts +603 -0
- package/lib/services/alb.d.ts.map +1 -0
- package/lib/services/alb.js +513 -0
- package/lib/services/alb.js.map +1 -0
- package/lib/services/alb_waf.d.ts +526 -0
- package/lib/services/alb_waf.d.ts.map +1 -0
- package/lib/services/alb_waf.js +521 -0
- package/lib/services/alb_waf.js.map +1 -0
- package/lib/services/authorization.d.ts +251 -0
- package/lib/services/authorization.d.ts.map +1 -0
- package/lib/services/authorization.js +323 -0
- package/lib/services/authorization.js.map +1 -0
- package/lib/services/automation.d.ts +321 -0
- package/lib/services/automation.d.ts.map +1 -0
- package/lib/services/automation.js +363 -0
- package/lib/services/automation.js.map +1 -0
- package/lib/services/cdn.d.ts +1239 -0
- package/lib/services/cdn.d.ts.map +1 -0
- package/lib/services/cdn.js +906 -0
- package/lib/services/cdn.js.map +1 -0
- package/lib/services/certificates.d.ts +201 -0
- package/lib/services/certificates.d.ts.map +1 -0
- package/lib/services/certificates.js +179 -0
- package/lib/services/certificates.js.map +1 -0
- package/lib/services/cost.d.ts +222 -0
- package/lib/services/cost.d.ts.map +1 -0
- package/lib/services/cost.js +177 -0
- package/lib/services/cost.js.map +1 -0
- package/lib/services/dns.d.ts +842 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +726 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/dremio.d.ts +358 -0
- package/lib/services/dremio.d.ts.map +1 -0
- package/lib/services/dremio.js +317 -0
- package/lib/services/dremio.js.map +1 -0
- package/lib/services/edge.d.ts +312 -0
- package/lib/services/edge.d.ts.map +1 -0
- package/lib/services/edge.js +357 -0
- package/lib/services/edge.js.map +1 -0
- package/lib/services/functions.d.ts +409 -0
- package/lib/services/functions.d.ts.map +1 -0
- package/lib/services/functions.js +399 -0
- package/lib/services/functions.js.map +1 -0
- package/lib/services/git.d.ts +497 -0
- package/lib/services/git.d.ts.map +1 -0
- package/lib/services/git.js +520 -0
- package/lib/services/git.js.map +1 -0
- package/lib/services/iaas.d.ts +2986 -0
- package/lib/services/iaas.d.ts.map +1 -0
- package/lib/services/iaas.js +3543 -0
- package/lib/services/iaas.js.map +1 -0
- package/lib/services/index.d.ts +51 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +52 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/intake.d.ts +555 -0
- package/lib/services/intake.d.ts.map +1 -0
- package/lib/services/intake.js +475 -0
- package/lib/services/intake.js.map +1 -0
- package/lib/services/kms.d.ts +654 -0
- package/lib/services/kms.d.ts.map +1 -0
- package/lib/services/kms.js +663 -0
- package/lib/services/kms.js.map +1 -0
- package/lib/services/lb_ip_lists.d.ts +160 -0
- package/lib/services/lb_ip_lists.d.ts.map +1 -0
- package/lib/services/lb_ip_lists.js +154 -0
- package/lib/services/lb_ip_lists.js.map +1 -0
- package/lib/services/load_balancer.d.ts +563 -0
- package/lib/services/load_balancer.d.ts.map +1 -0
- package/lib/services/load_balancer.js +497 -0
- package/lib/services/load_balancer.js.map +1 -0
- package/lib/services/logme.d.ts +516 -0
- package/lib/services/logme.d.ts.map +1 -0
- package/lib/services/logme.js +574 -0
- package/lib/services/logme.js.map +1 -0
- package/lib/services/logs.d.ts +436 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +475 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/mariadb.d.ts +479 -0
- package/lib/services/mariadb.d.ts.map +1 -0
- package/lib/services/mariadb.js +551 -0
- package/lib/services/mariadb.js.map +1 -0
- package/lib/services/model_experiments.d.ts +306 -0
- package/lib/services/model_experiments.d.ts.map +1 -0
- package/lib/services/model_experiments.js +336 -0
- package/lib/services/model_experiments.js.map +1 -0
- package/lib/services/model_serving.d.ts +289 -0
- package/lib/services/model_serving.d.ts.map +1 -0
- package/lib/services/model_serving.js +287 -0
- package/lib/services/model_serving.js.map +1 -0
- package/lib/services/mongodb_flex.d.ts +826 -0
- package/lib/services/mongodb_flex.d.ts.map +1 -0
- package/lib/services/mongodb_flex.js +803 -0
- package/lib/services/mongodb_flex.js.map +1 -0
- package/lib/services/object_storage.d.ts +470 -0
- package/lib/services/object_storage.d.ts.map +1 -0
- package/lib/services/object_storage.js +540 -0
- package/lib/services/object_storage.js.map +1 -0
- package/lib/services/observability.d.ts +2750 -0
- package/lib/services/observability.d.ts.map +1 -0
- package/lib/services/observability.js +3158 -0
- package/lib/services/observability.js.map +1 -0
- package/lib/services/opensearch.d.ts +505 -0
- package/lib/services/opensearch.d.ts.map +1 -0
- package/lib/services/opensearch.js +563 -0
- package/lib/services/opensearch.js.map +1 -0
- package/lib/services/pim.d.ts +997 -0
- package/lib/services/pim.d.ts.map +1 -0
- package/lib/services/pim.js +736 -0
- package/lib/services/pim.js.map +1 -0
- package/lib/services/postgres_flex.d.ts +854 -0
- package/lib/services/postgres_flex.d.ts.map +1 -0
- package/lib/services/postgres_flex.js +853 -0
- package/lib/services/postgres_flex.js.map +1 -0
- package/lib/services/pubsub.d.ts +489 -0
- package/lib/services/pubsub.d.ts.map +1 -0
- package/lib/services/pubsub.js +519 -0
- package/lib/services/pubsub.js.map +1 -0
- package/lib/services/rabbitmq.d.ts +523 -0
- package/lib/services/rabbitmq.d.ts.map +1 -0
- package/lib/services/rabbitmq.js +574 -0
- package/lib/services/rabbitmq.js.map +1 -0
- package/lib/services/registry.d.ts +212 -0
- package/lib/services/registry.d.ts.map +1 -0
- package/lib/services/registry.js +198 -0
- package/lib/services/registry.js.map +1 -0
- package/lib/services/resource_manager.d.ts +458 -0
- package/lib/services/resource_manager.d.ts.map +1 -0
- package/lib/services/resource_manager.js +473 -0
- package/lib/services/resource_manager.js.map +1 -0
- package/lib/services/run_command.d.ts +175 -0
- package/lib/services/run_command.d.ts.map +1 -0
- package/lib/services/run_command.js +185 -0
- package/lib/services/run_command.js.map +1 -0
- package/lib/services/sca.d.ts +553 -0
- package/lib/services/sca.d.ts.map +1 -0
- package/lib/services/sca.js +445 -0
- package/lib/services/sca.js.map +1 -0
- package/lib/services/scf.d.ts +498 -0
- package/lib/services/scf.d.ts.map +1 -0
- package/lib/services/scf.js +670 -0
- package/lib/services/scf.js.map +1 -0
- package/lib/services/secrets_manager.d.ts +505 -0
- package/lib/services/secrets_manager.d.ts.map +1 -0
- package/lib/services/secrets_manager.js +613 -0
- package/lib/services/secrets_manager.js.map +1 -0
- package/lib/services/server_backup.d.ts +380 -0
- package/lib/services/server_backup.d.ts.map +1 -0
- package/lib/services/server_backup.js +454 -0
- package/lib/services/server_backup.js.map +1 -0
- package/lib/services/server_update.d.ts +292 -0
- package/lib/services/server_update.d.ts.map +1 -0
- package/lib/services/server_update.js +352 -0
- package/lib/services/server_update.js.map +1 -0
- package/lib/services/service_account.d.ts +465 -0
- package/lib/services/service_account.d.ts.map +1 -0
- package/lib/services/service_account.js +506 -0
- package/lib/services/service_account.js.map +1 -0
- package/lib/services/service_enablement.d.ts +149 -0
- package/lib/services/service_enablement.d.ts.map +1 -0
- package/lib/services/service_enablement.js +157 -0
- package/lib/services/service_enablement.js.map +1 -0
- package/lib/services/sfs.d.ts +721 -0
- package/lib/services/sfs.d.ts.map +1 -0
- package/lib/services/sfs.js +790 -0
- package/lib/services/sfs.js.map +1 -0
- package/lib/services/ske.d.ts +562 -0
- package/lib/services/ske.d.ts.map +1 -0
- package/lib/services/ske.js +558 -0
- package/lib/services/ske.js.map +1 -0
- package/lib/services/sqlserverflex.d.ts +956 -0
- package/lib/services/sqlserverflex.d.ts.map +1 -0
- package/lib/services/sqlserverflex.js +936 -0
- package/lib/services/sqlserverflex.js.map +1 -0
- package/lib/services/stackit_marketplace.d.ts +288 -0
- package/lib/services/stackit_marketplace.d.ts.map +1 -0
- package/lib/services/stackit_marketplace.js +379 -0
- package/lib/services/stackit_marketplace.js.map +1 -0
- package/lib/services/telemetry_link.d.ts +443 -0
- package/lib/services/telemetry_link.d.ts.map +1 -0
- package/lib/services/telemetry_link.js +532 -0
- package/lib/services/telemetry_link.js.map +1 -0
- package/lib/services/telemetry_router.d.ts +493 -0
- package/lib/services/telemetry_router.d.ts.map +1 -0
- package/lib/services/telemetry_router.js +484 -0
- package/lib/services/telemetry_router.js.map +1 -0
- package/lib/services/ufw.d.ts +295 -0
- package/lib/services/ufw.d.ts.map +1 -0
- package/lib/services/ufw.js +279 -0
- package/lib/services/ufw.js.map +1 -0
- package/lib/services/valkey.d.ts +505 -0
- package/lib/services/valkey.d.ts.map +1 -0
- package/lib/services/valkey.js +567 -0
- package/lib/services/valkey.js.map +1 -0
- package/lib/services/vpn.d.ts +1024 -0
- package/lib/services/vpn.d.ts.map +1 -0
- package/lib/services/vpn.js +931 -0
- package/lib/services/vpn.js.map +1 -0
- package/lib/services/workflows.d.ts +600 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +508 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/traits.d.ts +24 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +15 -0
- package/lib/traits.js.map +1 -0
- package/package.json +85 -3
- package/src/credentials.ts +84 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +34 -0
- package/src/pagination.ts +57 -0
- package/src/protocol.test.ts +304 -0
- package/src/protocol.ts +225 -0
- package/src/retry.ts +47 -0
- package/src/services/alb.ts +1326 -0
- package/src/services/alb_waf.ts +1288 -0
- package/src/services/authorization.ts +704 -0
- package/src/services/automation.ts +796 -0
- package/src/services/cdn.ts +2576 -0
- package/src/services/certificates.ts +418 -0
- package/src/services/cost.ts +449 -0
- package/src/services/dns.ts +1936 -0
- package/src/services/dremio.ts +753 -0
- package/src/services/edge.ts +780 -0
- package/src/services/functions.ts +957 -0
- package/src/services/git.ts +1194 -0
- package/src/services/iaas.ts +7878 -0
- package/src/services/index.ts +51 -0
- package/src/services/intake.ts +1166 -0
- package/src/services/kms.ts +1537 -0
- package/src/services/lb_ip_lists.ts +342 -0
- package/src/services/load_balancer.ts +1266 -0
- package/src/services/logme.ts +1284 -0
- package/src/services/logs.ts +1049 -0
- package/src/services/mariadb.ts +1212 -0
- package/src/services/model_experiments.ts +741 -0
- package/src/services/model_serving.ts +654 -0
- package/src/services/mongodb_flex.ts +1932 -0
- package/src/services/object_storage.ts +1195 -0
- package/src/services/observability.ts +7364 -0
- package/src/services/opensearch.ts +1265 -0
- package/src/services/pim.ts +1985 -0
- package/src/services/postgres_flex.ts +2080 -0
- package/src/services/pubsub.ts +1193 -0
- package/src/services/rabbitmq.ts +1310 -0
- package/src/services/registry.ts +446 -0
- package/src/services/resource_manager.ts +1072 -0
- package/src/services/run_command.ts +413 -0
- package/src/services/sca.ts +1187 -0
- package/src/services/scf.ts +1396 -0
- package/src/services/secrets_manager.ts +1317 -0
- package/src/services/server_backup.ts +983 -0
- package/src/services/server_update.ts +738 -0
- package/src/services/service_account.ts +1121 -0
- package/src/services/service_enablement.ts +330 -0
- package/src/services/sfs.ts +1831 -0
- package/src/services/ske.ts +1386 -0
- package/src/services/sqlserverflex.ts +2307 -0
- package/src/services/stackit_marketplace.ts +787 -0
- package/src/services/telemetry_link.ts +1166 -0
- package/src/services/telemetry_router.ts +1110 -0
- package/src/services/ufw.ts +654 -0
- package/src/services/valkey.ts +1266 -0
- package/src/services/vpn.ts +2365 -0
- package/src/services/workflows.ts +1249 -0
- package/src/traits.ts +60 -0
|
@@ -0,0 +1,1193 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as C from "@distilled.cloud/core/category";
|
|
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 { UnknownStackitError } from "../errors.ts";
|
|
6
|
+
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
7
|
+
import * as Retry from "../retry.ts";
|
|
8
|
+
import * as T from "../traits.ts";
|
|
9
|
+
|
|
10
|
+
export type { StackitOpError, StackitOpContext };
|
|
11
|
+
|
|
12
|
+
export class BadRequest
|
|
13
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
14
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
15
|
+
code: S.Number,
|
|
16
|
+
message: S.String,
|
|
17
|
+
}).pipe(C.withBadRequestError),
|
|
18
|
+
[{ status: 400 }],
|
|
19
|
+
) {}
|
|
20
|
+
|
|
21
|
+
export class Conflict
|
|
22
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
23
|
+
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
24
|
+
code: S.Number,
|
|
25
|
+
message: S.String,
|
|
26
|
+
}).pipe(C.withConflictError),
|
|
27
|
+
[{ status: 409 }],
|
|
28
|
+
) {}
|
|
29
|
+
|
|
30
|
+
export class Forbidden
|
|
31
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
32
|
+
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
33
|
+
code: S.Number,
|
|
34
|
+
message: S.String,
|
|
35
|
+
}).pipe(C.withAuthError),
|
|
36
|
+
[{ status: 403 }],
|
|
37
|
+
) {}
|
|
38
|
+
|
|
39
|
+
export class NotFound
|
|
40
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
41
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
42
|
+
code: S.Number,
|
|
43
|
+
message: S.String,
|
|
44
|
+
}).pipe(C.withBadRequestError),
|
|
45
|
+
[{ status: 404 }],
|
|
46
|
+
) {}
|
|
47
|
+
|
|
48
|
+
export class UnprocessableEntity
|
|
49
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
50
|
+
/*@__PURE__*/ S.TaggedError<UnprocessableEntity>()("UnprocessableEntity", {
|
|
51
|
+
code: S.Number,
|
|
52
|
+
message: S.String,
|
|
53
|
+
}).pipe(C.withBadRequestError),
|
|
54
|
+
[{ status: 422 }],
|
|
55
|
+
) {}
|
|
56
|
+
|
|
57
|
+
export type CreateSubscriptionRequestRegionId = "eu01";
|
|
58
|
+
export const CreateSubscriptionRequestRegionId = S.String;
|
|
59
|
+
|
|
60
|
+
/** Labels are key-value pairs used to group and organize subsets of resources. **Key constraints:** - May contain an optional domain prefix separated by a slash (`/`). - The domain prefix must be less than or equal to 250 characters and a valid DNS subdomain containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), separated by dots (`.`). - The name part (excluding the domain prefix) must be between 1 and 63 characters long. - The name part must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - The name part may contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. - Keys starting with the prefix `stackit-` or having a domain prefix of `stackit.cloud` (including its subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. **Value constraints:** - Must be less than or equal to 63 characters long (can be empty). - Must begin and end with an alphanumeric character (`[a-z0-9A-Z]`) if not empty. - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. **Count constraint:** - A maximum of 64 labels can be applied per resource. Restricted labels are excluded from this count. */
|
|
61
|
+
export type Labels = { [key: string]: string | null | undefined };
|
|
62
|
+
export const Labels = /*@__PURE__*/ S.Record(
|
|
63
|
+
S.String,
|
|
64
|
+
S.NullOr(S.String),
|
|
65
|
+
) as any as S.Schema<Labels>;
|
|
66
|
+
|
|
67
|
+
/** Configuration settings for the subscription. */
|
|
68
|
+
export interface SubscriptionSettings {
|
|
69
|
+
/** The maximum amount of time the system waits for a message acknowledgment. If a message is not acknowledged within this window, it will be redelivered. **Format:** Must be a duration string consisting of a number (integer or decimal) followed by a unit ('s', 'm', or 'h'). **Constraints:** - **Minimum:** "1s" - **Maximum:** "168h" (7 days) */
|
|
70
|
+
ackDeadline?: string;
|
|
71
|
+
}
|
|
72
|
+
export const SubscriptionSettings = /*@__PURE__*/ S.suspend(() =>
|
|
73
|
+
S.Struct({
|
|
74
|
+
ackDeadline: S.optional(S.String),
|
|
75
|
+
}),
|
|
76
|
+
).annotate({ identifier: "SubscriptionSettings" }) as any as S.Schema<SubscriptionSettings>;
|
|
77
|
+
|
|
78
|
+
export interface CreateSubscriptionRequest {
|
|
79
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
80
|
+
projectId: string;
|
|
81
|
+
/** The STACKIT region name the resource is located in. */
|
|
82
|
+
regionId: CreateSubscriptionRequestRegionId | (string & {});
|
|
83
|
+
/** The topic UUID. */
|
|
84
|
+
topicId: string;
|
|
85
|
+
/** The description is a longer text chosen by the user to provide more context for the resource. */
|
|
86
|
+
description?: string;
|
|
87
|
+
/** The display name is a short name chosen by the user to identify the resource. */
|
|
88
|
+
displayName: string;
|
|
89
|
+
labels?: Labels;
|
|
90
|
+
settings?: SubscriptionSettings;
|
|
91
|
+
}
|
|
92
|
+
export const CreateSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
93
|
+
S.Struct({
|
|
94
|
+
projectId: S.String.pipe(T.Label()),
|
|
95
|
+
regionId: CreateSubscriptionRequestRegionId.pipe(T.Label()),
|
|
96
|
+
topicId: S.String.pipe(T.Label()),
|
|
97
|
+
description: S.optional(S.String),
|
|
98
|
+
displayName: S.String,
|
|
99
|
+
labels: S.optional(Labels),
|
|
100
|
+
settings: S.optional(SubscriptionSettings),
|
|
101
|
+
}).pipe(
|
|
102
|
+
T.Http({
|
|
103
|
+
method: "POST",
|
|
104
|
+
uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions",
|
|
105
|
+
code: 200,
|
|
106
|
+
baseUrl: "https://pubsub.api.stackit.cloud",
|
|
107
|
+
}),
|
|
108
|
+
),
|
|
109
|
+
).annotate({
|
|
110
|
+
identifier: "CreateSubscriptionRequest",
|
|
111
|
+
}) as any as S.Schema<CreateSubscriptionRequest>;
|
|
112
|
+
|
|
113
|
+
/** The current state of the resource. */
|
|
114
|
+
export type SubscriptionResponseState = "reconciling" | "active" | "deleting";
|
|
115
|
+
export const SubscriptionResponseState = S.String;
|
|
116
|
+
|
|
117
|
+
export interface SubscriptionResponse {
|
|
118
|
+
/** The point in time the resource was created. */
|
|
119
|
+
createTime: string;
|
|
120
|
+
/** The description is a longer text chosen by the user to provide more context for the resource. */
|
|
121
|
+
description?: string;
|
|
122
|
+
/** The display name is a short name chosen by the user to identify the resource. */
|
|
123
|
+
displayName: string;
|
|
124
|
+
/** An auto generated unique id which identifies the resource. */
|
|
125
|
+
id: string;
|
|
126
|
+
labels?: Labels;
|
|
127
|
+
settings?: SubscriptionSettings;
|
|
128
|
+
/** The current state of the resource. */
|
|
129
|
+
state: SubscriptionResponseState;
|
|
130
|
+
/** The id of the topic to which the subscription belongs. */
|
|
131
|
+
topicId: string;
|
|
132
|
+
}
|
|
133
|
+
export const SubscriptionResponse = /*@__PURE__*/ S.suspend(() =>
|
|
134
|
+
S.Struct({
|
|
135
|
+
createTime: S.String,
|
|
136
|
+
description: S.optional(S.String),
|
|
137
|
+
displayName: S.String,
|
|
138
|
+
id: S.String,
|
|
139
|
+
labels: S.optional(Labels),
|
|
140
|
+
settings: S.optional(SubscriptionSettings),
|
|
141
|
+
state: SubscriptionResponseState,
|
|
142
|
+
topicId: S.String,
|
|
143
|
+
}),
|
|
144
|
+
).annotate({ identifier: "SubscriptionResponse" }) as any as S.Schema<SubscriptionResponse>;
|
|
145
|
+
|
|
146
|
+
export type CreateTopicRequestRegionId = "eu01";
|
|
147
|
+
export const CreateTopicRequestRegionId = S.String;
|
|
148
|
+
|
|
149
|
+
/** Whitelist of IPs in CIDR notation that can access the topic and its underlying subscriptions. */
|
|
150
|
+
export type TopicSettingsAclList = Array<string>;
|
|
151
|
+
export const TopicSettingsAclList = /*@__PURE__*/ S.Array(
|
|
152
|
+
S.String,
|
|
153
|
+
) as any as S.Schema<TopicSettingsAclList>;
|
|
154
|
+
|
|
155
|
+
/** Configuration settings for the topic. */
|
|
156
|
+
export interface TopicSettings {
|
|
157
|
+
/** Whitelist of IPs in CIDR notation that can access the topic and its underlying subscriptions. */
|
|
158
|
+
acl?: TopicSettingsAclList;
|
|
159
|
+
/** Enables or disables metrics collection for the topic. */
|
|
160
|
+
metrics?: boolean;
|
|
161
|
+
/** The maximum length of time a message is persisted in storage. Messages older than this duration are automatically discarded/deleted. **Format:** Must be a scalar duration: a number (integer or decimal) followed by a unit ('s', 'm', or 'h'). **Constraints:** - **Minimum:** "1s" - **Maximum:** "168h" (7 days) */
|
|
162
|
+
retention?: string;
|
|
163
|
+
/** Enables or disables sending of service logs for the topic. */
|
|
164
|
+
serviceLogs?: boolean;
|
|
165
|
+
}
|
|
166
|
+
export const TopicSettings = /*@__PURE__*/ S.suspend(() =>
|
|
167
|
+
S.Struct({
|
|
168
|
+
acl: S.optional(TopicSettingsAclList),
|
|
169
|
+
metrics: S.optional(S.Boolean),
|
|
170
|
+
retention: S.optional(S.String),
|
|
171
|
+
serviceLogs: S.optional(S.Boolean),
|
|
172
|
+
}),
|
|
173
|
+
).annotate({ identifier: "TopicSettings" }) as any as S.Schema<TopicSettings>;
|
|
174
|
+
|
|
175
|
+
export interface CreateTopicRequest {
|
|
176
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
177
|
+
projectId: string;
|
|
178
|
+
/** The STACKIT region name the resource is located in. */
|
|
179
|
+
regionId: CreateTopicRequestRegionId | (string & {});
|
|
180
|
+
/** The description is a longer text chosen by the user to provide more context for the resource. */
|
|
181
|
+
description?: string;
|
|
182
|
+
/** The display name is a short name chosen by the user to identify the resource. */
|
|
183
|
+
displayName: string;
|
|
184
|
+
labels?: Labels;
|
|
185
|
+
settings?: TopicSettings;
|
|
186
|
+
}
|
|
187
|
+
export const CreateTopicRequest = /*@__PURE__*/ S.suspend(() =>
|
|
188
|
+
S.Struct({
|
|
189
|
+
projectId: S.String.pipe(T.Label()),
|
|
190
|
+
regionId: CreateTopicRequestRegionId.pipe(T.Label()),
|
|
191
|
+
description: S.optional(S.String),
|
|
192
|
+
displayName: S.String,
|
|
193
|
+
labels: S.optional(Labels),
|
|
194
|
+
settings: S.optional(TopicSettings),
|
|
195
|
+
}).pipe(
|
|
196
|
+
T.Http({
|
|
197
|
+
method: "POST",
|
|
198
|
+
uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics",
|
|
199
|
+
code: 200,
|
|
200
|
+
baseUrl: "https://pubsub.api.stackit.cloud",
|
|
201
|
+
}),
|
|
202
|
+
),
|
|
203
|
+
).annotate({ identifier: "CreateTopicRequest" }) as any as S.Schema<CreateTopicRequest>;
|
|
204
|
+
|
|
205
|
+
/** The current state of the resource. */
|
|
206
|
+
export type TopicResponseState = "reconciling" | "active" | "deleting";
|
|
207
|
+
export const TopicResponseState = S.String;
|
|
208
|
+
|
|
209
|
+
export interface TopicResponse {
|
|
210
|
+
/** The point in time the resource was created. */
|
|
211
|
+
createTime: string;
|
|
212
|
+
/** The description is a longer text chosen by the user to provide more context for the resource. */
|
|
213
|
+
description?: string;
|
|
214
|
+
/** The display name is a short name chosen by the user to identify the resource. */
|
|
215
|
+
displayName: string;
|
|
216
|
+
/** An auto generated unique id which identifies the resource. */
|
|
217
|
+
id: string;
|
|
218
|
+
labels?: Labels;
|
|
219
|
+
settings?: TopicSettings;
|
|
220
|
+
/** The current state of the resource. */
|
|
221
|
+
state: TopicResponseState;
|
|
222
|
+
/** The URI for reaching the resource. */
|
|
223
|
+
uri?: string;
|
|
224
|
+
}
|
|
225
|
+
export const TopicResponse = /*@__PURE__*/ S.suspend(() =>
|
|
226
|
+
S.Struct({
|
|
227
|
+
createTime: S.String,
|
|
228
|
+
description: S.optional(S.String),
|
|
229
|
+
displayName: S.String,
|
|
230
|
+
id: S.String,
|
|
231
|
+
labels: S.optional(Labels),
|
|
232
|
+
settings: S.optional(TopicSettings),
|
|
233
|
+
state: TopicResponseState,
|
|
234
|
+
uri: S.optional(S.String),
|
|
235
|
+
}),
|
|
236
|
+
).annotate({ identifier: "TopicResponse" }) as any as S.Schema<TopicResponse>;
|
|
237
|
+
|
|
238
|
+
export type DeleteSubscriptionRequestRegionId = "eu01";
|
|
239
|
+
export const DeleteSubscriptionRequestRegionId = S.String;
|
|
240
|
+
|
|
241
|
+
export interface DeleteSubscriptionRequest {
|
|
242
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
243
|
+
projectId: string;
|
|
244
|
+
/** The STACKIT region name the resource is located in. */
|
|
245
|
+
regionId: DeleteSubscriptionRequestRegionId | (string & {});
|
|
246
|
+
/** The topic UUID. */
|
|
247
|
+
topicId: string;
|
|
248
|
+
/** The subscription UUID. */
|
|
249
|
+
subscriptionId: string;
|
|
250
|
+
/** If true, deletes the topic and all its active subscriptions (cascading delete). If false (default), the operation returns a 409 conflict if active subscriptions exist. */
|
|
251
|
+
force?: boolean;
|
|
252
|
+
}
|
|
253
|
+
export const DeleteSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
254
|
+
S.Struct({
|
|
255
|
+
projectId: S.String.pipe(T.Label()),
|
|
256
|
+
regionId: DeleteSubscriptionRequestRegionId.pipe(T.Label()),
|
|
257
|
+
topicId: S.String.pipe(T.Label()),
|
|
258
|
+
subscriptionId: S.String.pipe(T.Label()),
|
|
259
|
+
force: S.optional(S.Boolean.pipe(T.Query())),
|
|
260
|
+
}).pipe(
|
|
261
|
+
T.Http({
|
|
262
|
+
method: "DELETE",
|
|
263
|
+
uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}",
|
|
264
|
+
code: 200,
|
|
265
|
+
baseUrl: "https://pubsub.api.stackit.cloud",
|
|
266
|
+
}),
|
|
267
|
+
),
|
|
268
|
+
).annotate({
|
|
269
|
+
identifier: "DeleteSubscriptionRequest",
|
|
270
|
+
}) as any as S.Schema<DeleteSubscriptionRequest>;
|
|
271
|
+
|
|
272
|
+
export interface DeleteSubscriptionResponse {}
|
|
273
|
+
export const DeleteSubscriptionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
274
|
+
identifier: "DeleteSubscriptionResponse",
|
|
275
|
+
}) as any as S.Schema<DeleteSubscriptionResponse>;
|
|
276
|
+
|
|
277
|
+
export type DeleteTopicRequestRegionId = "eu01";
|
|
278
|
+
export const DeleteTopicRequestRegionId = S.String;
|
|
279
|
+
|
|
280
|
+
export interface DeleteTopicRequest {
|
|
281
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
282
|
+
projectId: string;
|
|
283
|
+
/** The STACKIT region name the resource is located in. */
|
|
284
|
+
regionId: DeleteTopicRequestRegionId | (string & {});
|
|
285
|
+
/** The topic UUID. */
|
|
286
|
+
topicId: string;
|
|
287
|
+
/** If true, deletes the topic and all its active subscriptions (cascading delete). If false (default), the operation returns a 409 conflict if active subscriptions exist. */
|
|
288
|
+
force?: boolean;
|
|
289
|
+
}
|
|
290
|
+
export const DeleteTopicRequest = /*@__PURE__*/ S.suspend(() =>
|
|
291
|
+
S.Struct({
|
|
292
|
+
projectId: S.String.pipe(T.Label()),
|
|
293
|
+
regionId: DeleteTopicRequestRegionId.pipe(T.Label()),
|
|
294
|
+
topicId: S.String.pipe(T.Label()),
|
|
295
|
+
force: S.optional(S.Boolean.pipe(T.Query())),
|
|
296
|
+
}).pipe(
|
|
297
|
+
T.Http({
|
|
298
|
+
method: "DELETE",
|
|
299
|
+
uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}",
|
|
300
|
+
code: 200,
|
|
301
|
+
baseUrl: "https://pubsub.api.stackit.cloud",
|
|
302
|
+
}),
|
|
303
|
+
),
|
|
304
|
+
).annotate({ identifier: "DeleteTopicRequest" }) as any as S.Schema<DeleteTopicRequest>;
|
|
305
|
+
|
|
306
|
+
export interface DeleteTopicResponse {}
|
|
307
|
+
export const DeleteTopicResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
308
|
+
identifier: "DeleteTopicResponse",
|
|
309
|
+
}) as any as S.Schema<DeleteTopicResponse>;
|
|
310
|
+
|
|
311
|
+
export type GetSubscriptionRequestRegionId = "eu01";
|
|
312
|
+
export const GetSubscriptionRequestRegionId = S.String;
|
|
313
|
+
|
|
314
|
+
export interface GetSubscriptionRequest {
|
|
315
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
316
|
+
projectId: string;
|
|
317
|
+
/** The STACKIT region name the resource is located in. */
|
|
318
|
+
regionId: GetSubscriptionRequestRegionId | (string & {});
|
|
319
|
+
/** The topic UUID. */
|
|
320
|
+
topicId: string;
|
|
321
|
+
/** The subscription UUID. */
|
|
322
|
+
subscriptionId: string;
|
|
323
|
+
}
|
|
324
|
+
export const GetSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
325
|
+
S.Struct({
|
|
326
|
+
projectId: S.String.pipe(T.Label()),
|
|
327
|
+
regionId: GetSubscriptionRequestRegionId.pipe(T.Label()),
|
|
328
|
+
topicId: S.String.pipe(T.Label()),
|
|
329
|
+
subscriptionId: S.String.pipe(T.Label()),
|
|
330
|
+
}).pipe(
|
|
331
|
+
T.Http({
|
|
332
|
+
method: "GET",
|
|
333
|
+
uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}",
|
|
334
|
+
code: 200,
|
|
335
|
+
baseUrl: "https://pubsub.api.stackit.cloud",
|
|
336
|
+
}),
|
|
337
|
+
),
|
|
338
|
+
).annotate({ identifier: "GetSubscriptionRequest" }) as any as S.Schema<GetSubscriptionRequest>;
|
|
339
|
+
|
|
340
|
+
export type GetTopicRequestRegionId = "eu01";
|
|
341
|
+
export const GetTopicRequestRegionId = S.String;
|
|
342
|
+
|
|
343
|
+
export interface GetTopicRequest {
|
|
344
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
345
|
+
projectId: string;
|
|
346
|
+
/** The STACKIT region name the resource is located in. */
|
|
347
|
+
regionId: GetTopicRequestRegionId | (string & {});
|
|
348
|
+
/** The topic UUID. */
|
|
349
|
+
topicId: string;
|
|
350
|
+
}
|
|
351
|
+
export const GetTopicRequest = /*@__PURE__*/ S.suspend(() =>
|
|
352
|
+
S.Struct({
|
|
353
|
+
projectId: S.String.pipe(T.Label()),
|
|
354
|
+
regionId: GetTopicRequestRegionId.pipe(T.Label()),
|
|
355
|
+
topicId: S.String.pipe(T.Label()),
|
|
356
|
+
}).pipe(
|
|
357
|
+
T.Http({
|
|
358
|
+
method: "GET",
|
|
359
|
+
uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}",
|
|
360
|
+
code: 200,
|
|
361
|
+
baseUrl: "https://pubsub.api.stackit.cloud",
|
|
362
|
+
}),
|
|
363
|
+
),
|
|
364
|
+
).annotate({ identifier: "GetTopicRequest" }) as any as S.Schema<GetTopicRequest>;
|
|
365
|
+
|
|
366
|
+
export type GrantSubscriptionSubscriberAccessRequestRegionId = "eu01";
|
|
367
|
+
export const GrantSubscriptionSubscriberAccessRequestRegionId = S.String;
|
|
368
|
+
|
|
369
|
+
export interface GrantSubscriptionSubscriberAccessRequest {
|
|
370
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
371
|
+
projectId: string;
|
|
372
|
+
/** The STACKIT region name the resource is located in. */
|
|
373
|
+
regionId: GrantSubscriptionSubscriberAccessRequestRegionId | (string & {});
|
|
374
|
+
/** The topic UUID. */
|
|
375
|
+
topicId: string;
|
|
376
|
+
/** The subscription UUID. */
|
|
377
|
+
subscriptionId: string;
|
|
378
|
+
/** A single RFC 5322 compliant email address. */
|
|
379
|
+
emailAddress: string;
|
|
380
|
+
}
|
|
381
|
+
export const GrantSubscriptionSubscriberAccessRequest = /*@__PURE__*/ S.suspend(() =>
|
|
382
|
+
S.Struct({
|
|
383
|
+
projectId: S.String.pipe(T.Label()),
|
|
384
|
+
regionId: GrantSubscriptionSubscriberAccessRequestRegionId.pipe(T.Label()),
|
|
385
|
+
topicId: S.String.pipe(T.Label()),
|
|
386
|
+
subscriptionId: S.String.pipe(T.Label()),
|
|
387
|
+
emailAddress: S.String,
|
|
388
|
+
}).pipe(
|
|
389
|
+
T.Http({
|
|
390
|
+
method: "PATCH",
|
|
391
|
+
uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}/subscribers",
|
|
392
|
+
code: 200,
|
|
393
|
+
baseUrl: "https://pubsub.api.stackit.cloud",
|
|
394
|
+
}),
|
|
395
|
+
),
|
|
396
|
+
).annotate({
|
|
397
|
+
identifier: "GrantSubscriptionSubscriberAccessRequest",
|
|
398
|
+
}) as any as S.Schema<GrantSubscriptionSubscriberAccessRequest>;
|
|
399
|
+
|
|
400
|
+
export interface GrantSubscriptionSubscriberAccessResponse {}
|
|
401
|
+
export const GrantSubscriptionSubscriberAccessResponse = /*@__PURE__*/ S.suspend(() =>
|
|
402
|
+
S.Struct({}),
|
|
403
|
+
).annotate({
|
|
404
|
+
identifier: "GrantSubscriptionSubscriberAccessResponse",
|
|
405
|
+
}) as any as S.Schema<GrantSubscriptionSubscriberAccessResponse>;
|
|
406
|
+
|
|
407
|
+
export type GrantTopicPublisherAccessRequestRegionId = "eu01";
|
|
408
|
+
export const GrantTopicPublisherAccessRequestRegionId = S.String;
|
|
409
|
+
|
|
410
|
+
export interface GrantTopicPublisherAccessRequest {
|
|
411
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
412
|
+
projectId: string;
|
|
413
|
+
/** The STACKIT region name the resource is located in. */
|
|
414
|
+
regionId: GrantTopicPublisherAccessRequestRegionId | (string & {});
|
|
415
|
+
/** The topic UUID. */
|
|
416
|
+
topicId: string;
|
|
417
|
+
/** A single RFC 5322 compliant email address. */
|
|
418
|
+
emailAddress: string;
|
|
419
|
+
}
|
|
420
|
+
export const GrantTopicPublisherAccessRequest = /*@__PURE__*/ S.suspend(() =>
|
|
421
|
+
S.Struct({
|
|
422
|
+
projectId: S.String.pipe(T.Label()),
|
|
423
|
+
regionId: GrantTopicPublisherAccessRequestRegionId.pipe(T.Label()),
|
|
424
|
+
topicId: S.String.pipe(T.Label()),
|
|
425
|
+
emailAddress: S.String,
|
|
426
|
+
}).pipe(
|
|
427
|
+
T.Http({
|
|
428
|
+
method: "PATCH",
|
|
429
|
+
uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/publishers",
|
|
430
|
+
code: 200,
|
|
431
|
+
baseUrl: "https://pubsub.api.stackit.cloud",
|
|
432
|
+
}),
|
|
433
|
+
),
|
|
434
|
+
).annotate({
|
|
435
|
+
identifier: "GrantTopicPublisherAccessRequest",
|
|
436
|
+
}) as any as S.Schema<GrantTopicPublisherAccessRequest>;
|
|
437
|
+
|
|
438
|
+
export interface GrantTopicPublisherAccessResponse {}
|
|
439
|
+
export const GrantTopicPublisherAccessResponse = /*@__PURE__*/ S.suspend(() =>
|
|
440
|
+
S.Struct({}),
|
|
441
|
+
).annotate({
|
|
442
|
+
identifier: "GrantTopicPublisherAccessResponse",
|
|
443
|
+
}) as any as S.Schema<GrantTopicPublisherAccessResponse>;
|
|
444
|
+
|
|
445
|
+
export type ListSubscriptionsRequestRegionId = "eu01";
|
|
446
|
+
export const ListSubscriptionsRequestRegionId = S.String;
|
|
447
|
+
|
|
448
|
+
export interface ListSubscriptionsRequest {
|
|
449
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
450
|
+
projectId: string;
|
|
451
|
+
/** The STACKIT region name the resource is located in. */
|
|
452
|
+
regionId: ListSubscriptionsRequestRegionId | (string & {});
|
|
453
|
+
/** The topic UUID. */
|
|
454
|
+
topicId: string;
|
|
455
|
+
/** A token to retrieve the next page of results. */
|
|
456
|
+
pageToken?: string;
|
|
457
|
+
/** Maximum number of items to return */
|
|
458
|
+
pageSize?: number;
|
|
459
|
+
/** Supply a query string to filter the results. */
|
|
460
|
+
query?: string;
|
|
461
|
+
}
|
|
462
|
+
export const ListSubscriptionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
463
|
+
S.Struct({
|
|
464
|
+
projectId: S.String.pipe(T.Label()),
|
|
465
|
+
regionId: ListSubscriptionsRequestRegionId.pipe(T.Label()),
|
|
466
|
+
topicId: S.String.pipe(T.Label()),
|
|
467
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
468
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
469
|
+
query: S.optional(S.String.pipe(T.Query())),
|
|
470
|
+
}).pipe(
|
|
471
|
+
T.Http({
|
|
472
|
+
method: "GET",
|
|
473
|
+
uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions",
|
|
474
|
+
code: 200,
|
|
475
|
+
baseUrl: "https://pubsub.api.stackit.cloud",
|
|
476
|
+
}),
|
|
477
|
+
),
|
|
478
|
+
).annotate({ identifier: "ListSubscriptionsRequest" }) as any as S.Schema<ListSubscriptionsRequest>;
|
|
479
|
+
|
|
480
|
+
export type ListSubscriptionsResponseSubscriptionsList = Array<SubscriptionResponse>;
|
|
481
|
+
export const ListSubscriptionsResponseSubscriptionsList = /*@__PURE__*/ S.Array(
|
|
482
|
+
SubscriptionResponse,
|
|
483
|
+
) as any as S.Schema<ListSubscriptionsResponseSubscriptionsList>;
|
|
484
|
+
|
|
485
|
+
export interface ListSubscriptionsResponse {
|
|
486
|
+
/** A token to retrieve the next page of results. */
|
|
487
|
+
nextPageToken?: string;
|
|
488
|
+
subscriptions: ListSubscriptionsResponseSubscriptionsList;
|
|
489
|
+
}
|
|
490
|
+
export const ListSubscriptionsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
491
|
+
S.Struct({
|
|
492
|
+
nextPageToken: S.optional(S.String),
|
|
493
|
+
subscriptions: ListSubscriptionsResponseSubscriptionsList,
|
|
494
|
+
}),
|
|
495
|
+
).annotate({
|
|
496
|
+
identifier: "ListSubscriptionsResponse",
|
|
497
|
+
}) as any as S.Schema<ListSubscriptionsResponse>;
|
|
498
|
+
|
|
499
|
+
export type ListSubscriptionSubscribersRequestRegionId = "eu01";
|
|
500
|
+
export const ListSubscriptionSubscribersRequestRegionId = S.String;
|
|
501
|
+
|
|
502
|
+
export interface ListSubscriptionSubscribersRequest {
|
|
503
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
504
|
+
projectId: string;
|
|
505
|
+
/** The STACKIT region name the resource is located in. */
|
|
506
|
+
regionId: ListSubscriptionSubscribersRequestRegionId | (string & {});
|
|
507
|
+
/** The topic UUID. */
|
|
508
|
+
topicId: string;
|
|
509
|
+
/** The subscription UUID. */
|
|
510
|
+
subscriptionId: string;
|
|
511
|
+
}
|
|
512
|
+
export const ListSubscriptionSubscribersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
513
|
+
S.Struct({
|
|
514
|
+
projectId: S.String.pipe(T.Label()),
|
|
515
|
+
regionId: ListSubscriptionSubscribersRequestRegionId.pipe(T.Label()),
|
|
516
|
+
topicId: S.String.pipe(T.Label()),
|
|
517
|
+
subscriptionId: S.String.pipe(T.Label()),
|
|
518
|
+
}).pipe(
|
|
519
|
+
T.Http({
|
|
520
|
+
method: "GET",
|
|
521
|
+
uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}/subscribers",
|
|
522
|
+
code: 200,
|
|
523
|
+
baseUrl: "https://pubsub.api.stackit.cloud",
|
|
524
|
+
}),
|
|
525
|
+
),
|
|
526
|
+
).annotate({
|
|
527
|
+
identifier: "ListSubscriptionSubscribersRequest",
|
|
528
|
+
}) as any as S.Schema<ListSubscriptionSubscribersRequest>;
|
|
529
|
+
|
|
530
|
+
export type ListEmailAddressesResponseEmailAddressesList = Array<string>;
|
|
531
|
+
export const ListEmailAddressesResponseEmailAddressesList = /*@__PURE__*/ S.Array(
|
|
532
|
+
S.String,
|
|
533
|
+
) as any as S.Schema<ListEmailAddressesResponseEmailAddressesList>;
|
|
534
|
+
|
|
535
|
+
export interface ListEmailAddressesResponse {
|
|
536
|
+
emailAddresses: ListEmailAddressesResponseEmailAddressesList;
|
|
537
|
+
}
|
|
538
|
+
export const ListEmailAddressesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
539
|
+
S.Struct({
|
|
540
|
+
emailAddresses: ListEmailAddressesResponseEmailAddressesList,
|
|
541
|
+
}),
|
|
542
|
+
).annotate({
|
|
543
|
+
identifier: "ListEmailAddressesResponse",
|
|
544
|
+
}) as any as S.Schema<ListEmailAddressesResponse>;
|
|
545
|
+
|
|
546
|
+
export type ListTopicPublishersRequestRegionId = "eu01";
|
|
547
|
+
export const ListTopicPublishersRequestRegionId = S.String;
|
|
548
|
+
|
|
549
|
+
export interface ListTopicPublishersRequest {
|
|
550
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
551
|
+
projectId: string;
|
|
552
|
+
/** The STACKIT region name the resource is located in. */
|
|
553
|
+
regionId: ListTopicPublishersRequestRegionId | (string & {});
|
|
554
|
+
/** The topic UUID. */
|
|
555
|
+
topicId: string;
|
|
556
|
+
}
|
|
557
|
+
export const ListTopicPublishersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
558
|
+
S.Struct({
|
|
559
|
+
projectId: S.String.pipe(T.Label()),
|
|
560
|
+
regionId: ListTopicPublishersRequestRegionId.pipe(T.Label()),
|
|
561
|
+
topicId: S.String.pipe(T.Label()),
|
|
562
|
+
}).pipe(
|
|
563
|
+
T.Http({
|
|
564
|
+
method: "GET",
|
|
565
|
+
uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/publishers",
|
|
566
|
+
code: 200,
|
|
567
|
+
baseUrl: "https://pubsub.api.stackit.cloud",
|
|
568
|
+
}),
|
|
569
|
+
),
|
|
570
|
+
).annotate({
|
|
571
|
+
identifier: "ListTopicPublishersRequest",
|
|
572
|
+
}) as any as S.Schema<ListTopicPublishersRequest>;
|
|
573
|
+
|
|
574
|
+
export type ListTopicsRequestRegionId = "eu01";
|
|
575
|
+
export const ListTopicsRequestRegionId = S.String;
|
|
576
|
+
|
|
577
|
+
export interface ListTopicsRequest {
|
|
578
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
579
|
+
projectId: string;
|
|
580
|
+
/** The STACKIT region name the resource is located in. */
|
|
581
|
+
regionId: ListTopicsRequestRegionId | (string & {});
|
|
582
|
+
/** A token to retrieve the next page of results. */
|
|
583
|
+
pageToken?: string;
|
|
584
|
+
/** Maximum number of items to return */
|
|
585
|
+
pageSize?: number;
|
|
586
|
+
/** Supply a query string to filter the results. */
|
|
587
|
+
query?: string;
|
|
588
|
+
}
|
|
589
|
+
export const ListTopicsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
590
|
+
S.Struct({
|
|
591
|
+
projectId: S.String.pipe(T.Label()),
|
|
592
|
+
regionId: ListTopicsRequestRegionId.pipe(T.Label()),
|
|
593
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
594
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
595
|
+
query: S.optional(S.String.pipe(T.Query())),
|
|
596
|
+
}).pipe(
|
|
597
|
+
T.Http({
|
|
598
|
+
method: "GET",
|
|
599
|
+
uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics",
|
|
600
|
+
code: 200,
|
|
601
|
+
baseUrl: "https://pubsub.api.stackit.cloud",
|
|
602
|
+
}),
|
|
603
|
+
),
|
|
604
|
+
).annotate({ identifier: "ListTopicsRequest" }) as any as S.Schema<ListTopicsRequest>;
|
|
605
|
+
|
|
606
|
+
export type ListTopicsResponseTopicsList = Array<TopicResponse>;
|
|
607
|
+
export const ListTopicsResponseTopicsList = /*@__PURE__*/ S.Array(
|
|
608
|
+
TopicResponse,
|
|
609
|
+
) as any as S.Schema<ListTopicsResponseTopicsList>;
|
|
610
|
+
|
|
611
|
+
export interface ListTopicsResponse {
|
|
612
|
+
/** A token to retrieve the next page of results. */
|
|
613
|
+
nextPageToken?: string;
|
|
614
|
+
topics: ListTopicsResponseTopicsList;
|
|
615
|
+
}
|
|
616
|
+
export const ListTopicsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
617
|
+
S.Struct({
|
|
618
|
+
nextPageToken: S.optional(S.String),
|
|
619
|
+
topics: ListTopicsResponseTopicsList,
|
|
620
|
+
}),
|
|
621
|
+
).annotate({ identifier: "ListTopicsResponse" }) as any as S.Schema<ListTopicsResponse>;
|
|
622
|
+
|
|
623
|
+
export type RevokeSubscriptionSubscriberAccessRequestRegionId = "eu01";
|
|
624
|
+
export const RevokeSubscriptionSubscriberAccessRequestRegionId = S.String;
|
|
625
|
+
|
|
626
|
+
export interface RevokeSubscriptionSubscriberAccessRequest {
|
|
627
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
628
|
+
projectId: string;
|
|
629
|
+
/** The STACKIT region name the resource is located in. */
|
|
630
|
+
regionId: RevokeSubscriptionSubscriberAccessRequestRegionId | (string & {});
|
|
631
|
+
/** The topic UUID. */
|
|
632
|
+
topicId: string;
|
|
633
|
+
/** The subscription UUID. */
|
|
634
|
+
subscriptionId: string;
|
|
635
|
+
}
|
|
636
|
+
export const RevokeSubscriptionSubscriberAccessRequest = /*@__PURE__*/ S.suspend(() =>
|
|
637
|
+
S.Struct({
|
|
638
|
+
projectId: S.String.pipe(T.Label()),
|
|
639
|
+
regionId: RevokeSubscriptionSubscriberAccessRequestRegionId.pipe(T.Label()),
|
|
640
|
+
topicId: S.String.pipe(T.Label()),
|
|
641
|
+
subscriptionId: S.String.pipe(T.Label()),
|
|
642
|
+
}).pipe(
|
|
643
|
+
T.Http({
|
|
644
|
+
method: "DELETE",
|
|
645
|
+
uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}/subscribers",
|
|
646
|
+
code: 200,
|
|
647
|
+
baseUrl: "https://pubsub.api.stackit.cloud",
|
|
648
|
+
}),
|
|
649
|
+
),
|
|
650
|
+
).annotate({
|
|
651
|
+
identifier: "RevokeSubscriptionSubscriberAccessRequest",
|
|
652
|
+
}) as any as S.Schema<RevokeSubscriptionSubscriberAccessRequest>;
|
|
653
|
+
|
|
654
|
+
export interface RevokeSubscriptionSubscriberAccessResponse {}
|
|
655
|
+
export const RevokeSubscriptionSubscriberAccessResponse = /*@__PURE__*/ S.suspend(() =>
|
|
656
|
+
S.Struct({}),
|
|
657
|
+
).annotate({
|
|
658
|
+
identifier: "RevokeSubscriptionSubscriberAccessResponse",
|
|
659
|
+
}) as any as S.Schema<RevokeSubscriptionSubscriberAccessResponse>;
|
|
660
|
+
|
|
661
|
+
export type RevokeTopicPublisherAccessRequestRegionId = "eu01";
|
|
662
|
+
export const RevokeTopicPublisherAccessRequestRegionId = S.String;
|
|
663
|
+
|
|
664
|
+
export interface RevokeTopicPublisherAccessRequest {
|
|
665
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
666
|
+
projectId: string;
|
|
667
|
+
/** The STACKIT region name the resource is located in. */
|
|
668
|
+
regionId: RevokeTopicPublisherAccessRequestRegionId | (string & {});
|
|
669
|
+
/** The topic UUID. */
|
|
670
|
+
topicId: string;
|
|
671
|
+
}
|
|
672
|
+
export const RevokeTopicPublisherAccessRequest = /*@__PURE__*/ S.suspend(() =>
|
|
673
|
+
S.Struct({
|
|
674
|
+
projectId: S.String.pipe(T.Label()),
|
|
675
|
+
regionId: RevokeTopicPublisherAccessRequestRegionId.pipe(T.Label()),
|
|
676
|
+
topicId: S.String.pipe(T.Label()),
|
|
677
|
+
}).pipe(
|
|
678
|
+
T.Http({
|
|
679
|
+
method: "DELETE",
|
|
680
|
+
uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/publishers",
|
|
681
|
+
code: 200,
|
|
682
|
+
baseUrl: "https://pubsub.api.stackit.cloud",
|
|
683
|
+
}),
|
|
684
|
+
),
|
|
685
|
+
).annotate({
|
|
686
|
+
identifier: "RevokeTopicPublisherAccessRequest",
|
|
687
|
+
}) as any as S.Schema<RevokeTopicPublisherAccessRequest>;
|
|
688
|
+
|
|
689
|
+
export interface RevokeTopicPublisherAccessResponse {}
|
|
690
|
+
export const RevokeTopicPublisherAccessResponse = /*@__PURE__*/ S.suspend(() =>
|
|
691
|
+
S.Struct({}),
|
|
692
|
+
).annotate({
|
|
693
|
+
identifier: "RevokeTopicPublisherAccessResponse",
|
|
694
|
+
}) as any as S.Schema<RevokeTopicPublisherAccessResponse>;
|
|
695
|
+
|
|
696
|
+
export type UpdatePublisherAccessRequestRegionId = "eu01";
|
|
697
|
+
export const UpdatePublisherAccessRequestRegionId = S.String;
|
|
698
|
+
|
|
699
|
+
/** A list of valid subscriber email addresses. */
|
|
700
|
+
export type UpdatePublisherAccessRequestEmailAddressesList = Array<string>;
|
|
701
|
+
export const UpdatePublisherAccessRequestEmailAddressesList = /*@__PURE__*/ S.Array(
|
|
702
|
+
S.String,
|
|
703
|
+
) as any as S.Schema<UpdatePublisherAccessRequestEmailAddressesList>;
|
|
704
|
+
|
|
705
|
+
export interface UpdatePublisherAccessRequest {
|
|
706
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
707
|
+
projectId: string;
|
|
708
|
+
/** The STACKIT region name the resource is located in. */
|
|
709
|
+
regionId: UpdatePublisherAccessRequestRegionId | (string & {});
|
|
710
|
+
/** The topic UUID. */
|
|
711
|
+
topicId: string;
|
|
712
|
+
/** A list of valid subscriber email addresses. */
|
|
713
|
+
emailAddresses: UpdatePublisherAccessRequestEmailAddressesList;
|
|
714
|
+
}
|
|
715
|
+
export const UpdatePublisherAccessRequest = /*@__PURE__*/ S.suspend(() =>
|
|
716
|
+
S.Struct({
|
|
717
|
+
projectId: S.String.pipe(T.Label()),
|
|
718
|
+
regionId: UpdatePublisherAccessRequestRegionId.pipe(T.Label()),
|
|
719
|
+
topicId: S.String.pipe(T.Label()),
|
|
720
|
+
emailAddresses: UpdatePublisherAccessRequestEmailAddressesList,
|
|
721
|
+
}).pipe(
|
|
722
|
+
T.Http({
|
|
723
|
+
method: "PUT",
|
|
724
|
+
uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/publishers",
|
|
725
|
+
code: 200,
|
|
726
|
+
baseUrl: "https://pubsub.api.stackit.cloud",
|
|
727
|
+
}),
|
|
728
|
+
),
|
|
729
|
+
).annotate({
|
|
730
|
+
identifier: "UpdatePublisherAccessRequest",
|
|
731
|
+
}) as any as S.Schema<UpdatePublisherAccessRequest>;
|
|
732
|
+
|
|
733
|
+
export interface UpdatePublisherAccessResponse {}
|
|
734
|
+
export const UpdatePublisherAccessResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
735
|
+
identifier: "UpdatePublisherAccessResponse",
|
|
736
|
+
}) as any as S.Schema<UpdatePublisherAccessResponse>;
|
|
737
|
+
|
|
738
|
+
export type UpdateSubscriptionRequestRegionId = "eu01";
|
|
739
|
+
export const UpdateSubscriptionRequestRegionId = S.String;
|
|
740
|
+
|
|
741
|
+
export interface UpdateSubscriptionRequest {
|
|
742
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
743
|
+
projectId: string;
|
|
744
|
+
/** The STACKIT region name the resource is located in. */
|
|
745
|
+
regionId: UpdateSubscriptionRequestRegionId | (string & {});
|
|
746
|
+
/** The topic UUID. */
|
|
747
|
+
topicId: string;
|
|
748
|
+
/** The subscription UUID. */
|
|
749
|
+
subscriptionId: string;
|
|
750
|
+
/** The description is a longer text chosen by the user to provide more context for the resource. */
|
|
751
|
+
description?: string;
|
|
752
|
+
/** The display name is a short name chosen by the user to identify the resource. */
|
|
753
|
+
displayName?: string;
|
|
754
|
+
labels?: Labels;
|
|
755
|
+
settings?: SubscriptionSettings;
|
|
756
|
+
}
|
|
757
|
+
export const UpdateSubscriptionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
758
|
+
S.Struct({
|
|
759
|
+
projectId: S.String.pipe(T.Label()),
|
|
760
|
+
regionId: UpdateSubscriptionRequestRegionId.pipe(T.Label()),
|
|
761
|
+
topicId: S.String.pipe(T.Label()),
|
|
762
|
+
subscriptionId: S.String.pipe(T.Label()),
|
|
763
|
+
description: S.optional(S.String),
|
|
764
|
+
displayName: S.optional(S.String),
|
|
765
|
+
labels: S.optional(Labels),
|
|
766
|
+
settings: S.optional(SubscriptionSettings),
|
|
767
|
+
}).pipe(
|
|
768
|
+
T.Http({
|
|
769
|
+
method: "PATCH",
|
|
770
|
+
uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}",
|
|
771
|
+
code: 200,
|
|
772
|
+
baseUrl: "https://pubsub.api.stackit.cloud",
|
|
773
|
+
}),
|
|
774
|
+
),
|
|
775
|
+
).annotate({
|
|
776
|
+
identifier: "UpdateSubscriptionRequest",
|
|
777
|
+
}) as any as S.Schema<UpdateSubscriptionRequest>;
|
|
778
|
+
|
|
779
|
+
export interface UpdateSubscriptionResponse {}
|
|
780
|
+
export const UpdateSubscriptionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
781
|
+
identifier: "UpdateSubscriptionResponse",
|
|
782
|
+
}) as any as S.Schema<UpdateSubscriptionResponse>;
|
|
783
|
+
|
|
784
|
+
export type UpdateSubscriptionSubscriberAccessRequestRegionId = "eu01";
|
|
785
|
+
export const UpdateSubscriptionSubscriberAccessRequestRegionId = S.String;
|
|
786
|
+
|
|
787
|
+
/** A list of valid subscriber email addresses. */
|
|
788
|
+
export type UpdateSubscriptionSubscriberAccessRequestEmailAddressesList = Array<string>;
|
|
789
|
+
export const UpdateSubscriptionSubscriberAccessRequestEmailAddressesList = /*@__PURE__*/ S.Array(
|
|
790
|
+
S.String,
|
|
791
|
+
) as any as S.Schema<UpdateSubscriptionSubscriberAccessRequestEmailAddressesList>;
|
|
792
|
+
|
|
793
|
+
export interface UpdateSubscriptionSubscriberAccessRequest {
|
|
794
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
795
|
+
projectId: string;
|
|
796
|
+
/** The STACKIT region name the resource is located in. */
|
|
797
|
+
regionId: UpdateSubscriptionSubscriberAccessRequestRegionId | (string & {});
|
|
798
|
+
/** The topic UUID. */
|
|
799
|
+
topicId: string;
|
|
800
|
+
/** The subscription UUID. */
|
|
801
|
+
subscriptionId: string;
|
|
802
|
+
/** A list of valid subscriber email addresses. */
|
|
803
|
+
emailAddresses: UpdateSubscriptionSubscriberAccessRequestEmailAddressesList;
|
|
804
|
+
}
|
|
805
|
+
export const UpdateSubscriptionSubscriberAccessRequest = /*@__PURE__*/ S.suspend(() =>
|
|
806
|
+
S.Struct({
|
|
807
|
+
projectId: S.String.pipe(T.Label()),
|
|
808
|
+
regionId: UpdateSubscriptionSubscriberAccessRequestRegionId.pipe(T.Label()),
|
|
809
|
+
topicId: S.String.pipe(T.Label()),
|
|
810
|
+
subscriptionId: S.String.pipe(T.Label()),
|
|
811
|
+
emailAddresses: UpdateSubscriptionSubscriberAccessRequestEmailAddressesList,
|
|
812
|
+
}).pipe(
|
|
813
|
+
T.Http({
|
|
814
|
+
method: "PUT",
|
|
815
|
+
uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}/subscriptions/{subscriptionId}/subscribers",
|
|
816
|
+
code: 200,
|
|
817
|
+
baseUrl: "https://pubsub.api.stackit.cloud",
|
|
818
|
+
}),
|
|
819
|
+
),
|
|
820
|
+
).annotate({
|
|
821
|
+
identifier: "UpdateSubscriptionSubscriberAccessRequest",
|
|
822
|
+
}) as any as S.Schema<UpdateSubscriptionSubscriberAccessRequest>;
|
|
823
|
+
|
|
824
|
+
export interface UpdateSubscriptionSubscriberAccessResponse {}
|
|
825
|
+
export const UpdateSubscriptionSubscriberAccessResponse = /*@__PURE__*/ S.suspend(() =>
|
|
826
|
+
S.Struct({}),
|
|
827
|
+
).annotate({
|
|
828
|
+
identifier: "UpdateSubscriptionSubscriberAccessResponse",
|
|
829
|
+
}) as any as S.Schema<UpdateSubscriptionSubscriberAccessResponse>;
|
|
830
|
+
|
|
831
|
+
export type UpdateTopicRequestRegionId = "eu01";
|
|
832
|
+
export const UpdateTopicRequestRegionId = S.String;
|
|
833
|
+
|
|
834
|
+
export interface UpdateTopicRequest {
|
|
835
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
836
|
+
projectId: string;
|
|
837
|
+
/** The STACKIT region name the resource is located in. */
|
|
838
|
+
regionId: UpdateTopicRequestRegionId | (string & {});
|
|
839
|
+
/** The topic UUID. */
|
|
840
|
+
topicId: string;
|
|
841
|
+
/** The description is a longer text chosen by the user to provide more context for the resource. */
|
|
842
|
+
description?: string;
|
|
843
|
+
/** The display name is a short name chosen by the user to identify the resource. */
|
|
844
|
+
displayName?: string;
|
|
845
|
+
labels?: Labels;
|
|
846
|
+
settings?: TopicSettings;
|
|
847
|
+
}
|
|
848
|
+
export const UpdateTopicRequest = /*@__PURE__*/ S.suspend(() =>
|
|
849
|
+
S.Struct({
|
|
850
|
+
projectId: S.String.pipe(T.Label()),
|
|
851
|
+
regionId: UpdateTopicRequestRegionId.pipe(T.Label()),
|
|
852
|
+
topicId: S.String.pipe(T.Label()),
|
|
853
|
+
description: S.optional(S.String),
|
|
854
|
+
displayName: S.optional(S.String),
|
|
855
|
+
labels: S.optional(Labels),
|
|
856
|
+
settings: S.optional(TopicSettings),
|
|
857
|
+
}).pipe(
|
|
858
|
+
T.Http({
|
|
859
|
+
method: "PATCH",
|
|
860
|
+
uri: "/v1beta/projects/{projectId}/regions/{regionId}/topics/{topicId}",
|
|
861
|
+
code: 200,
|
|
862
|
+
baseUrl: "https://pubsub.api.stackit.cloud",
|
|
863
|
+
}),
|
|
864
|
+
),
|
|
865
|
+
).annotate({ identifier: "UpdateTopicRequest" }) as any as S.Schema<UpdateTopicRequest>;
|
|
866
|
+
|
|
867
|
+
export interface UpdateTopicResponse {}
|
|
868
|
+
export const UpdateTopicResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
869
|
+
identifier: "UpdateTopicResponse",
|
|
870
|
+
}) as any as S.Schema<UpdateTopicResponse>;
|
|
871
|
+
|
|
872
|
+
export type CreateSubscriptionError =
|
|
873
|
+
| BadRequest
|
|
874
|
+
| Forbidden
|
|
875
|
+
| NotFound
|
|
876
|
+
| Conflict
|
|
877
|
+
| UnprocessableEntity
|
|
878
|
+
| StackitOpError;
|
|
879
|
+
/** Creates a new subscription for a topic within the PubSub project. */
|
|
880
|
+
export const createSubscription: API.OperationMethod<
|
|
881
|
+
CreateSubscriptionRequest,
|
|
882
|
+
SubscriptionResponse,
|
|
883
|
+
CreateSubscriptionError,
|
|
884
|
+
StackitOpContext
|
|
885
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
886
|
+
input: CreateSubscriptionRequest,
|
|
887
|
+
output: SubscriptionResponse,
|
|
888
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity, UnknownStackitError],
|
|
889
|
+
protocol: StackitProtocol,
|
|
890
|
+
retry: Retry.Retry,
|
|
891
|
+
}));
|
|
892
|
+
|
|
893
|
+
export type CreateTopicError = BadRequest | Forbidden | NotFound | Conflict | StackitOpError;
|
|
894
|
+
/** Creates a new topic within the PubSub project. */
|
|
895
|
+
export const createTopic: API.OperationMethod<
|
|
896
|
+
CreateTopicRequest,
|
|
897
|
+
TopicResponse,
|
|
898
|
+
CreateTopicError,
|
|
899
|
+
StackitOpContext
|
|
900
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
901
|
+
input: CreateTopicRequest,
|
|
902
|
+
output: TopicResponse,
|
|
903
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
904
|
+
protocol: StackitProtocol,
|
|
905
|
+
retry: Retry.Retry,
|
|
906
|
+
}));
|
|
907
|
+
|
|
908
|
+
export type DeleteSubscriptionError = BadRequest | Forbidden | NotFound | Conflict | StackitOpError;
|
|
909
|
+
/** Deletes the given subscription. */
|
|
910
|
+
export const deleteSubscription: API.OperationMethod<
|
|
911
|
+
DeleteSubscriptionRequest,
|
|
912
|
+
DeleteSubscriptionResponse,
|
|
913
|
+
DeleteSubscriptionError,
|
|
914
|
+
StackitOpContext
|
|
915
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
916
|
+
input: DeleteSubscriptionRequest,
|
|
917
|
+
output: DeleteSubscriptionResponse,
|
|
918
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
919
|
+
protocol: StackitProtocol,
|
|
920
|
+
retry: Retry.Retry,
|
|
921
|
+
}));
|
|
922
|
+
|
|
923
|
+
export type DeleteTopicError =
|
|
924
|
+
| BadRequest
|
|
925
|
+
| Forbidden
|
|
926
|
+
| NotFound
|
|
927
|
+
| UnprocessableEntity
|
|
928
|
+
| StackitOpError;
|
|
929
|
+
/** Deletes the given topic. */
|
|
930
|
+
export const deleteTopic: API.OperationMethod<
|
|
931
|
+
DeleteTopicRequest,
|
|
932
|
+
DeleteTopicResponse,
|
|
933
|
+
DeleteTopicError,
|
|
934
|
+
StackitOpContext
|
|
935
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
936
|
+
input: DeleteTopicRequest,
|
|
937
|
+
output: DeleteTopicResponse,
|
|
938
|
+
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
939
|
+
protocol: StackitProtocol,
|
|
940
|
+
retry: Retry.Retry,
|
|
941
|
+
}));
|
|
942
|
+
|
|
943
|
+
export type GetSubscriptionError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
944
|
+
/** Returns the details for the given subscription. */
|
|
945
|
+
export const getSubscription: API.OperationMethod<
|
|
946
|
+
GetSubscriptionRequest,
|
|
947
|
+
SubscriptionResponse,
|
|
948
|
+
GetSubscriptionError,
|
|
949
|
+
StackitOpContext
|
|
950
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
951
|
+
input: GetSubscriptionRequest,
|
|
952
|
+
output: SubscriptionResponse,
|
|
953
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
954
|
+
protocol: StackitProtocol,
|
|
955
|
+
retry: Retry.Retry,
|
|
956
|
+
}));
|
|
957
|
+
|
|
958
|
+
export type GetTopicError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
959
|
+
/** Returns the details for the given topic. */
|
|
960
|
+
export const getTopic: API.OperationMethod<
|
|
961
|
+
GetTopicRequest,
|
|
962
|
+
TopicResponse,
|
|
963
|
+
GetTopicError,
|
|
964
|
+
StackitOpContext
|
|
965
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
966
|
+
input: GetTopicRequest,
|
|
967
|
+
output: TopicResponse,
|
|
968
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
969
|
+
protocol: StackitProtocol,
|
|
970
|
+
retry: Retry.Retry,
|
|
971
|
+
}));
|
|
972
|
+
|
|
973
|
+
export type GrantSubscriptionSubscriberAccessError =
|
|
974
|
+
| BadRequest
|
|
975
|
+
| Forbidden
|
|
976
|
+
| NotFound
|
|
977
|
+
| UnprocessableEntity
|
|
978
|
+
| StackitOpError;
|
|
979
|
+
/** Grants an emailAddress access to pull from the given subscription. */
|
|
980
|
+
export const grantSubscriptionSubscriberAccess: API.OperationMethod<
|
|
981
|
+
GrantSubscriptionSubscriberAccessRequest,
|
|
982
|
+
GrantSubscriptionSubscriberAccessResponse,
|
|
983
|
+
GrantSubscriptionSubscriberAccessError,
|
|
984
|
+
StackitOpContext
|
|
985
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
986
|
+
input: GrantSubscriptionSubscriberAccessRequest,
|
|
987
|
+
output: GrantSubscriptionSubscriberAccessResponse,
|
|
988
|
+
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
989
|
+
protocol: StackitProtocol,
|
|
990
|
+
retry: Retry.Retry,
|
|
991
|
+
}));
|
|
992
|
+
|
|
993
|
+
export type GrantTopicPublisherAccessError =
|
|
994
|
+
| BadRequest
|
|
995
|
+
| Forbidden
|
|
996
|
+
| NotFound
|
|
997
|
+
| UnprocessableEntity
|
|
998
|
+
| StackitOpError;
|
|
999
|
+
/** Grants an emailAddress access to publish to the given topic. */
|
|
1000
|
+
export const grantTopicPublisherAccess: API.OperationMethod<
|
|
1001
|
+
GrantTopicPublisherAccessRequest,
|
|
1002
|
+
GrantTopicPublisherAccessResponse,
|
|
1003
|
+
GrantTopicPublisherAccessError,
|
|
1004
|
+
StackitOpContext
|
|
1005
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1006
|
+
input: GrantTopicPublisherAccessRequest,
|
|
1007
|
+
output: GrantTopicPublisherAccessResponse,
|
|
1008
|
+
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
1009
|
+
protocol: StackitProtocol,
|
|
1010
|
+
retry: Retry.Retry,
|
|
1011
|
+
}));
|
|
1012
|
+
|
|
1013
|
+
export type ListSubscriptionsError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
1014
|
+
/** Returns a list of all topic subscriptions. */
|
|
1015
|
+
export const listSubscriptions: API.OperationMethod<
|
|
1016
|
+
ListSubscriptionsRequest,
|
|
1017
|
+
ListSubscriptionsResponse,
|
|
1018
|
+
ListSubscriptionsError,
|
|
1019
|
+
StackitOpContext
|
|
1020
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1021
|
+
input: ListSubscriptionsRequest,
|
|
1022
|
+
output: ListSubscriptionsResponse,
|
|
1023
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1024
|
+
protocol: StackitProtocol,
|
|
1025
|
+
retry: Retry.Retry,
|
|
1026
|
+
}));
|
|
1027
|
+
|
|
1028
|
+
export type ListSubscriptionSubscribersError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
1029
|
+
/** Returns a list of emailAddresses that are allowed to pull from the given subscription. */
|
|
1030
|
+
export const listSubscriptionSubscribers: API.OperationMethod<
|
|
1031
|
+
ListSubscriptionSubscribersRequest,
|
|
1032
|
+
ListEmailAddressesResponse,
|
|
1033
|
+
ListSubscriptionSubscribersError,
|
|
1034
|
+
StackitOpContext
|
|
1035
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1036
|
+
input: ListSubscriptionSubscribersRequest,
|
|
1037
|
+
output: ListEmailAddressesResponse,
|
|
1038
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1039
|
+
protocol: StackitProtocol,
|
|
1040
|
+
retry: Retry.Retry,
|
|
1041
|
+
}));
|
|
1042
|
+
|
|
1043
|
+
export type ListTopicPublishersError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
1044
|
+
/** Returns a list of emailAddresses that are allowed to publish to the given topic. */
|
|
1045
|
+
export const listTopicPublishers: API.OperationMethod<
|
|
1046
|
+
ListTopicPublishersRequest,
|
|
1047
|
+
ListEmailAddressesResponse,
|
|
1048
|
+
ListTopicPublishersError,
|
|
1049
|
+
StackitOpContext
|
|
1050
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1051
|
+
input: ListTopicPublishersRequest,
|
|
1052
|
+
output: ListEmailAddressesResponse,
|
|
1053
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1054
|
+
protocol: StackitProtocol,
|
|
1055
|
+
retry: Retry.Retry,
|
|
1056
|
+
}));
|
|
1057
|
+
|
|
1058
|
+
export type ListTopicsError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
1059
|
+
/** Returns a list of all topics within the PubSub project. */
|
|
1060
|
+
export const listTopics: API.OperationMethod<
|
|
1061
|
+
ListTopicsRequest,
|
|
1062
|
+
ListTopicsResponse,
|
|
1063
|
+
ListTopicsError,
|
|
1064
|
+
StackitOpContext
|
|
1065
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1066
|
+
input: ListTopicsRequest,
|
|
1067
|
+
output: ListTopicsResponse,
|
|
1068
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1069
|
+
protocol: StackitProtocol,
|
|
1070
|
+
retry: Retry.Retry,
|
|
1071
|
+
}));
|
|
1072
|
+
|
|
1073
|
+
export type RevokeSubscriptionSubscriberAccessError =
|
|
1074
|
+
| BadRequest
|
|
1075
|
+
| Forbidden
|
|
1076
|
+
| NotFound
|
|
1077
|
+
| UnprocessableEntity
|
|
1078
|
+
| StackitOpError;
|
|
1079
|
+
/** Revokes all email-addresses access to pull from the given subscription. */
|
|
1080
|
+
export const revokeSubscriptionSubscriberAccess: API.OperationMethod<
|
|
1081
|
+
RevokeSubscriptionSubscriberAccessRequest,
|
|
1082
|
+
RevokeSubscriptionSubscriberAccessResponse,
|
|
1083
|
+
RevokeSubscriptionSubscriberAccessError,
|
|
1084
|
+
StackitOpContext
|
|
1085
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1086
|
+
input: RevokeSubscriptionSubscriberAccessRequest,
|
|
1087
|
+
output: RevokeSubscriptionSubscriberAccessResponse,
|
|
1088
|
+
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
1089
|
+
protocol: StackitProtocol,
|
|
1090
|
+
retry: Retry.Retry,
|
|
1091
|
+
}));
|
|
1092
|
+
|
|
1093
|
+
export type RevokeTopicPublisherAccessError =
|
|
1094
|
+
| BadRequest
|
|
1095
|
+
| Forbidden
|
|
1096
|
+
| NotFound
|
|
1097
|
+
| UnprocessableEntity
|
|
1098
|
+
| StackitOpError;
|
|
1099
|
+
/** Revokes all email-addresses access to publish to the given topic. */
|
|
1100
|
+
export const revokeTopicPublisherAccess: API.OperationMethod<
|
|
1101
|
+
RevokeTopicPublisherAccessRequest,
|
|
1102
|
+
RevokeTopicPublisherAccessResponse,
|
|
1103
|
+
RevokeTopicPublisherAccessError,
|
|
1104
|
+
StackitOpContext
|
|
1105
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1106
|
+
input: RevokeTopicPublisherAccessRequest,
|
|
1107
|
+
output: RevokeTopicPublisherAccessResponse,
|
|
1108
|
+
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
1109
|
+
protocol: StackitProtocol,
|
|
1110
|
+
retry: Retry.Retry,
|
|
1111
|
+
}));
|
|
1112
|
+
|
|
1113
|
+
export type UpdatePublisherAccessError =
|
|
1114
|
+
| BadRequest
|
|
1115
|
+
| Forbidden
|
|
1116
|
+
| NotFound
|
|
1117
|
+
| UnprocessableEntity
|
|
1118
|
+
| StackitOpError;
|
|
1119
|
+
/** Updates the access list of email-addresses to publish to the given topic. */
|
|
1120
|
+
export const updatePublisherAccess: API.OperationMethod<
|
|
1121
|
+
UpdatePublisherAccessRequest,
|
|
1122
|
+
UpdatePublisherAccessResponse,
|
|
1123
|
+
UpdatePublisherAccessError,
|
|
1124
|
+
StackitOpContext
|
|
1125
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1126
|
+
input: UpdatePublisherAccessRequest,
|
|
1127
|
+
output: UpdatePublisherAccessResponse,
|
|
1128
|
+
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
1129
|
+
protocol: StackitProtocol,
|
|
1130
|
+
retry: Retry.Retry,
|
|
1131
|
+
}));
|
|
1132
|
+
|
|
1133
|
+
export type UpdateSubscriptionError =
|
|
1134
|
+
| BadRequest
|
|
1135
|
+
| Forbidden
|
|
1136
|
+
| NotFound
|
|
1137
|
+
| Conflict
|
|
1138
|
+
| UnprocessableEntity
|
|
1139
|
+
| StackitOpError;
|
|
1140
|
+
/** Will update the given subscription. */
|
|
1141
|
+
export const updateSubscription: API.OperationMethod<
|
|
1142
|
+
UpdateSubscriptionRequest,
|
|
1143
|
+
UpdateSubscriptionResponse,
|
|
1144
|
+
UpdateSubscriptionError,
|
|
1145
|
+
StackitOpContext
|
|
1146
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1147
|
+
input: UpdateSubscriptionRequest,
|
|
1148
|
+
output: UpdateSubscriptionResponse,
|
|
1149
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity, UnknownStackitError],
|
|
1150
|
+
protocol: StackitProtocol,
|
|
1151
|
+
retry: Retry.Retry,
|
|
1152
|
+
}));
|
|
1153
|
+
|
|
1154
|
+
export type UpdateSubscriptionSubscriberAccessError =
|
|
1155
|
+
| BadRequest
|
|
1156
|
+
| Forbidden
|
|
1157
|
+
| NotFound
|
|
1158
|
+
| UnprocessableEntity
|
|
1159
|
+
| StackitOpError;
|
|
1160
|
+
/** Updates the access list of emailAddresses to pull from the given subscription. */
|
|
1161
|
+
export const updateSubscriptionSubscriberAccess: API.OperationMethod<
|
|
1162
|
+
UpdateSubscriptionSubscriberAccessRequest,
|
|
1163
|
+
UpdateSubscriptionSubscriberAccessResponse,
|
|
1164
|
+
UpdateSubscriptionSubscriberAccessError,
|
|
1165
|
+
StackitOpContext
|
|
1166
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1167
|
+
input: UpdateSubscriptionSubscriberAccessRequest,
|
|
1168
|
+
output: UpdateSubscriptionSubscriberAccessResponse,
|
|
1169
|
+
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
1170
|
+
protocol: StackitProtocol,
|
|
1171
|
+
retry: Retry.Retry,
|
|
1172
|
+
}));
|
|
1173
|
+
|
|
1174
|
+
export type UpdateTopicError =
|
|
1175
|
+
| BadRequest
|
|
1176
|
+
| Forbidden
|
|
1177
|
+
| NotFound
|
|
1178
|
+
| Conflict
|
|
1179
|
+
| UnprocessableEntity
|
|
1180
|
+
| StackitOpError;
|
|
1181
|
+
/** Will update the given topic. */
|
|
1182
|
+
export const updateTopic: API.OperationMethod<
|
|
1183
|
+
UpdateTopicRequest,
|
|
1184
|
+
UpdateTopicResponse,
|
|
1185
|
+
UpdateTopicError,
|
|
1186
|
+
StackitOpContext
|
|
1187
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1188
|
+
input: UpdateTopicRequest,
|
|
1189
|
+
output: UpdateTopicResponse,
|
|
1190
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity, UnknownStackitError],
|
|
1191
|
+
protocol: StackitProtocol,
|
|
1192
|
+
retry: Retry.Retry,
|
|
1193
|
+
}));
|