@madebyentropy/tnl 0.0.0-stage → 0.1.0
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 +28 -0
- package/NOTICE +5 -0
- package/THIRD_PARTY_LICENSES.txt +3297 -0
- package/dist/adapters/ioredis.d.ts +7 -0
- package/dist/adapters/ioredis.js +87 -0
- package/dist/adapters/node-postgres.d.ts +8 -0
- package/dist/adapters/node-postgres.js +41 -0
- package/dist/adapters/postgres-js.d.ts +7 -0
- package/dist/adapters/postgres-js.js +55 -0
- package/dist/bin/tnl.d.ts +2 -0
- package/dist/bin/tnl.js +16 -0
- package/dist/browser.d.ts +18 -0
- package/dist/browser.js +43 -0
- package/dist/bun.d.ts +9 -0
- package/dist/bun.js +6 -0
- package/dist/cloudflare.d.ts +9 -0
- package/dist/cloudflare.js +16 -0
- package/dist/config.d.ts +107 -0
- package/dist/config.gen.d.ts +1185 -0
- package/dist/config.gen.js +2 -0
- package/dist/config.js +3 -0
- package/dist/control.d.ts +5 -0
- package/dist/control.js +9 -0
- package/dist/durable-object.d.ts +51 -0
- package/dist/durable-object.js +374 -0
- package/dist/durable-object.worker.d.ts +5 -0
- package/dist/durable-object.worker.js +11 -0
- package/dist/errors.d.ts +17 -0
- package/dist/errors.js +230 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +2 -0
- package/dist/internal/connector/cancellation.d.ts +7 -0
- package/dist/internal/connector/cancellation.js +30 -0
- package/dist/internal/connector/client.d.ts +62 -0
- package/dist/internal/connector/client.js +504 -0
- package/dist/internal/connector/client_factory.d.ts +6 -0
- package/dist/internal/connector/client_factory.js +123 -0
- package/dist/internal/connector/connection.d.ts +39 -0
- package/dist/internal/connector/connection.js +739 -0
- package/dist/internal/connector/connection_ipc.d.ts +12 -0
- package/dist/internal/connector/connection_ipc.js +198 -0
- package/dist/internal/connector/context.d.ts +28 -0
- package/dist/internal/connector/context.js +19 -0
- package/dist/internal/connector/contract.d.ts +392 -0
- package/dist/internal/connector/contract.js +56 -0
- package/dist/internal/connector/deployment_types.d.ts +27 -0
- package/dist/internal/connector/deployment_types.js +1 -0
- package/dist/internal/connector/driver_socket.d.ts +21 -0
- package/dist/internal/connector/driver_socket.js +129 -0
- package/dist/internal/connector/management.d.ts +29 -0
- package/dist/internal/connector/management.js +118 -0
- package/dist/internal/connector/native_operations.d.ts +16 -0
- package/dist/internal/connector/native_operations.js +30 -0
- package/dist/internal/connector/native_stream.d.ts +7 -0
- package/dist/internal/connector/native_stream.js +219 -0
- package/dist/internal/connector/operation_handles.d.ts +9 -0
- package/dist/internal/connector/operation_handles.js +18 -0
- package/dist/internal/connector/portable_operations.d.ts +13 -0
- package/dist/internal/connector/portable_operations.js +25 -0
- package/dist/internal/connector/snapshot.d.ts +183 -0
- package/dist/internal/connector/snapshot.js +47 -0
- package/dist/internal/connector/wasm_abi.d.ts +76 -0
- package/dist/internal/connector/wasm_abi.js +5 -0
- package/dist/internal/connector/wasm_client.d.ts +58 -0
- package/dist/internal/connector/wasm_client.js +545 -0
- package/dist/internal/connector/wasm_loader.d.ts +15 -0
- package/dist/internal/connector/wasm_loader.js +99 -0
- package/dist/internal/connector/wasm_stream.d.ts +4 -0
- package/dist/internal/connector/wasm_stream.js +177 -0
- package/dist/internal/connector/workload/contract.d.ts +54 -0
- package/dist/internal/connector/workload/contract.js +14 -0
- package/dist/internal/connector/workload/provider.d.ts +24 -0
- package/dist/internal/connector/workload/provider.js +130 -0
- package/dist/internal/enrollment_source.d.ts +4 -0
- package/dist/internal/enrollment_source.js +34 -0
- package/dist/internal/management/client/client.gen.d.ts +2 -0
- package/dist/internal/management/client/client.gen.js +216 -0
- package/dist/internal/management/client/index.d.ts +10 -0
- package/dist/internal/management/client/index.js +6 -0
- package/dist/internal/management/client/types.gen.d.ts +120 -0
- package/dist/internal/management/client/types.gen.js +2 -0
- package/dist/internal/management/client/utils.gen.d.ts +37 -0
- package/dist/internal/management/client/utils.gen.js +228 -0
- package/dist/internal/management/client.gen.d.ts +12 -0
- package/dist/internal/management/client.gen.js +3 -0
- package/dist/internal/management/core/auth.gen.d.ts +25 -0
- package/dist/internal/management/core/auth.gen.js +14 -0
- package/dist/internal/management/core/bodySerializer.gen.d.ts +25 -0
- package/dist/internal/management/core/bodySerializer.gen.js +57 -0
- package/dist/internal/management/core/params.gen.d.ts +43 -0
- package/dist/internal/management/core/params.gen.js +109 -0
- package/dist/internal/management/core/pathSerializer.gen.d.ts +33 -0
- package/dist/internal/management/core/pathSerializer.gen.js +106 -0
- package/dist/internal/management/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/internal/management/core/queryKeySerializer.gen.js +92 -0
- package/dist/internal/management/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/internal/management/core/serverSentEvents.gen.js +132 -0
- package/dist/internal/management/core/types.gen.d.ts +83 -0
- package/dist/internal/management/core/types.gen.js +2 -0
- package/dist/internal/management/core/utils.gen.d.ts +19 -0
- package/dist/internal/management/core/utils.gen.js +87 -0
- package/dist/internal/management/index.d.ts +2 -0
- package/dist/internal/management/index.js +2 -0
- package/dist/internal/management/sdk.gen.d.ts +73 -0
- package/dist/internal/management/sdk.gen.js +191 -0
- package/dist/internal/management/types.gen.d.ts +464 -0
- package/dist/internal/management/types.gen.js +2 -0
- package/dist/internal/management/zod.gen.d.ts +850 -0
- package/dist/internal/management/zod.gen.js +252 -0
- package/dist/internal/native/launcher.d.ts +8 -0
- package/dist/internal/native/launcher.js +75 -0
- package/dist/internal/native/native-targets.d.ts +9 -0
- package/dist/internal/native/native-targets.js +8 -0
- package/dist/internal/portable/cloudflare-publisher-client.d.ts +54 -0
- package/dist/internal/portable/cloudflare-publisher-client.js +91 -0
- package/dist/internal/portable/cloudflare-publisher.d.ts +19 -0
- package/dist/internal/portable/cloudflare-publisher.js +210 -0
- package/dist/internal/portable/durable-deployment.d.ts +10 -0
- package/dist/internal/portable/durable-deployment.js +22 -0
- package/dist/internal/portable/enrollment.d.ts +26 -0
- package/dist/internal/portable/enrollment.js +196 -0
- package/dist/internal/portable/publication.d.ts +54 -0
- package/dist/internal/portable/publication.js +304 -0
- package/dist/internal/portable/request.d.ts +1 -0
- package/dist/internal/portable/request.js +20 -0
- package/dist/internal/portable/storage-browser.d.ts +9 -0
- package/dist/internal/portable/storage-browser.js +115 -0
- package/dist/internal/portable/storage-durable-object.d.ts +11 -0
- package/dist/internal/portable/storage-durable-object.js +110 -0
- package/dist/internal/portable/storage-host.d.ts +8 -0
- package/dist/internal/portable/storage-host.js +142 -0
- package/dist/internal/portable/storage.d.ts +15 -0
- package/dist/internal/portable/storage.js +29 -0
- package/dist/internal/project/native_runtime.d.ts +24 -0
- package/dist/internal/project/native_runtime.js +23 -0
- package/dist/internal/project/runtime.d.ts +467 -0
- package/dist/internal/project/runtime.js +183 -0
- package/dist/internal/project/service_metadata.d.ts +3 -0
- package/dist/internal/project/service_metadata.js +12 -0
- package/dist/internal/publication_certificate.d.ts +28 -0
- package/dist/internal/publication_certificate.js +32 -0
- package/dist/internal/publication_run.d.ts +8 -0
- package/dist/internal/publication_run.js +19 -0
- package/dist/internal/publisher/app.d.ts +33 -0
- package/dist/internal/publisher/app.js +317 -0
- package/dist/internal/publisher/fetch.d.ts +6 -0
- package/dist/internal/publisher/fetch.js +135 -0
- package/dist/internal/publisher/fetch_types.d.ts +1 -0
- package/dist/internal/publisher/fetch_types.js +1 -0
- package/dist/internal/publisher/framework.d.ts +27 -0
- package/dist/internal/publisher/framework.js +82 -0
- package/dist/internal/publisher/local.d.ts +39 -0
- package/dist/internal/publisher/local.js +312 -0
- package/dist/internal/publisher/native_publisher.d.ts +25 -0
- package/dist/internal/publisher/native_publisher.js +228 -0
- package/dist/internal/publisher/port.d.ts +2 -0
- package/dist/internal/publisher/port.js +15 -0
- package/dist/internal/publisher/publication.d.ts +88 -0
- package/dist/internal/publisher/publication.js +627 -0
- package/dist/internal/publisher/register.d.ts +31 -0
- package/dist/internal/publisher/register.js +136 -0
- package/dist/internal/publisher/registration.d.ts +385 -0
- package/dist/internal/publisher/registration.js +223 -0
- package/dist/internal/publisher/status.d.ts +47 -0
- package/dist/internal/publisher/status.js +137 -0
- package/dist/internal/publisher/target.d.ts +6 -0
- package/dist/internal/publisher/target.js +44 -0
- package/dist/internal/runtime_resources.d.ts +38 -0
- package/dist/internal/runtime_resources.js +52 -0
- package/dist/internal/tracing.d.ts +10 -0
- package/dist/internal/tracing.js +78 -0
- package/dist/internal/validation.d.ts +3 -0
- package/dist/internal/validation.js +9 -0
- package/dist/internal/values.d.ts +27 -0
- package/dist/internal/values.js +54 -0
- package/dist/next.d.ts +12 -0
- package/dist/next.js +82 -0
- package/dist/node.d.ts +9 -0
- package/dist/node.js +6 -0
- package/dist/project.d.ts +173 -0
- package/dist/project.js +1 -0
- package/dist/response.d.ts +1 -0
- package/dist/response.js +34 -0
- package/dist/third-party-licenses.txt +1537 -0
- package/dist/vite.d.ts +5 -0
- package/dist/vite.js +200 -0
- package/dist/wasm/build.json +16 -0
- package/dist/wasm/connector.wasm +0 -0
- package/dist/wasm/go-license.txt +27 -0
- package/dist/wasm/publisher.wasm +0 -0
- package/dist/wasm/third-party-licenses.txt +3297 -0
- package/dist/wasm/wasm_exec.d.ts +1 -0
- package/dist/wasm/wasm_exec.js +575 -0
- package/dist/workload.d.ts +11 -0
- package/dist/workload.js +4 -0
- package/package.json +159 -4
- package/readme.md +13 -0
- package/README.md +0 -3
|
@@ -0,0 +1,464 @@
|
|
|
1
|
+
export type ClientOptions = {
|
|
2
|
+
baseUrl: "https://control.example.com" | (string & {});
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* Verified publisher-to-target TLS. CA is system (the default), aws-rds, or PEM-encoded CA certificates; never a path or URL. aws-rds selects only the supplied endpoint's regional roots offline and requires its hostname for verification. Reads return captured CA material, not a discovery credential.
|
|
6
|
+
*/
|
|
7
|
+
export type DeploymentTargetTls = {
|
|
8
|
+
ca?: string;
|
|
9
|
+
hostname?: string;
|
|
10
|
+
};
|
|
11
|
+
export type CreateDeploymentPublisherEnrollmentRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* Exact existing bindings to approve. Control captures their saved IDs and protocols; future names, reused names, and protocol changes never expand approval.
|
|
14
|
+
*/
|
|
15
|
+
services: Array<string>;
|
|
16
|
+
max_members?: number;
|
|
17
|
+
expires_in?: number;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Privately deliver the bounded enrollment key to the publisher. deployment_id is the selected deployment ID. Recovery preserves this secret, captured scope, capacity, and expiration; it never renews or replaces exhausted setup authority.
|
|
21
|
+
*/
|
|
22
|
+
export type DeploymentPublisherEnrollment = {
|
|
23
|
+
enrollment_id: string;
|
|
24
|
+
enrollment_key: string;
|
|
25
|
+
deployment_id: string;
|
|
26
|
+
expires_at: string;
|
|
27
|
+
max_members: number;
|
|
28
|
+
services: {
|
|
29
|
+
[key: string]: ServiceProtocol;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* One publisher in the selected deployment (deployment_id), including its retained last observation after revocation. No enrollment secret, signing key, access token, or target is returned. Healthy reports configuration acknowledgement and a current lease, not database login or SQL readiness.
|
|
34
|
+
*/
|
|
35
|
+
export type DeploymentPublisher = {
|
|
36
|
+
team_id: string;
|
|
37
|
+
project_key: string;
|
|
38
|
+
deployment_id: string;
|
|
39
|
+
deployment_name: string;
|
|
40
|
+
publisher_identity_id: string;
|
|
41
|
+
key_id: string;
|
|
42
|
+
observed_revision: string;
|
|
43
|
+
current_revision: string;
|
|
44
|
+
snapshot_at: string;
|
|
45
|
+
acknowledged_at?: string;
|
|
46
|
+
healthy: boolean;
|
|
47
|
+
lease_expires_at?: string;
|
|
48
|
+
runtime?: PublisherRuntimeStatus;
|
|
49
|
+
/**
|
|
50
|
+
* Captured service/protocol approval, not a claim of current reachability. Services added later are not approved.
|
|
51
|
+
*/
|
|
52
|
+
services: {
|
|
53
|
+
[key: string]: ServiceProtocol;
|
|
54
|
+
};
|
|
55
|
+
revoked_at?: string;
|
|
56
|
+
};
|
|
57
|
+
export type DeploymentPublisherPage = {
|
|
58
|
+
publishers: Array<DeploymentPublisher>;
|
|
59
|
+
next_cursor?: string;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* An explicit address and optional publisher-to-target TLS. Declared Kubernetes services require tls; an empty tls object uses verified system roots and the address hostname.
|
|
63
|
+
*/
|
|
64
|
+
export type DeploymentTarget = {
|
|
65
|
+
/**
|
|
66
|
+
* Explicit host:port, or an HTTP origin for a declared HTTP service. Does not evaluate local configuration or discover cloud resources.
|
|
67
|
+
*/
|
|
68
|
+
address: string;
|
|
69
|
+
tls?: DeploymentTargetTls;
|
|
70
|
+
};
|
|
71
|
+
export type DeploymentTargets = {
|
|
72
|
+
[key: string]: DeploymentTarget;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* One saved explicit address/TLS binding or a publisher-side discovery declaration saved by manager apply. Runtime mutations accept explicit addresses only and never evaluate these discovery declarations on control.
|
|
76
|
+
*/
|
|
77
|
+
export type DeploymentTargetStatus = {
|
|
78
|
+
/**
|
|
79
|
+
* The application supplies its bound HTTP listener at publication time.
|
|
80
|
+
*/
|
|
81
|
+
app?: true;
|
|
82
|
+
address?: string;
|
|
83
|
+
tls?: DeploymentTargetTls;
|
|
84
|
+
discovery?: ProjectTargetDiscovery;
|
|
85
|
+
};
|
|
86
|
+
export type CreateDeploymentRequest = {
|
|
87
|
+
/**
|
|
88
|
+
* Project-unique name; local is reserved for client-side selection.
|
|
89
|
+
*/
|
|
90
|
+
name: string;
|
|
91
|
+
targets: DeploymentTargets;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Update addresses and TLS for selected existing bindings. Omitted services, visitor policy, hostname ownership, service names/protocols, and publisher authority remain unchanged. Does not add or remove bindings.
|
|
95
|
+
*/
|
|
96
|
+
export type UpdateDeploymentRequest = {
|
|
97
|
+
targets: DeploymentTargets;
|
|
98
|
+
};
|
|
99
|
+
export type DeploymentService = {
|
|
100
|
+
/**
|
|
101
|
+
* The bound service ID.
|
|
102
|
+
*/
|
|
103
|
+
id: ResourceId;
|
|
104
|
+
protocol: ServiceProtocol;
|
|
105
|
+
trust_revision: number;
|
|
106
|
+
endpoint?: ServiceEndpoint;
|
|
107
|
+
};
|
|
108
|
+
export type Deployment = {
|
|
109
|
+
id: string;
|
|
110
|
+
team_id: ResourceId;
|
|
111
|
+
project_key: string;
|
|
112
|
+
name: string;
|
|
113
|
+
revision: number;
|
|
114
|
+
targets: {
|
|
115
|
+
[key: string]: DeploymentTargetStatus;
|
|
116
|
+
};
|
|
117
|
+
services: {
|
|
118
|
+
[key: string]: DeploymentService;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
export type DeploymentPage = {
|
|
122
|
+
deployments: Array<Deployment>;
|
|
123
|
+
next_cursor?: string;
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* Exact provider selector resolved by the assigned publisher with its own AWS credentials. Control does not discover targets or credentials. EKS requires kubernetes; RDS requires postgres or mysql, verified against provider metadata.
|
|
127
|
+
*/
|
|
128
|
+
export type ProjectTargetDiscovery = {
|
|
129
|
+
type: "eks" | "rds";
|
|
130
|
+
region: string;
|
|
131
|
+
cluster?: string;
|
|
132
|
+
instance?: string;
|
|
133
|
+
endpoint?: "writer" | "reader";
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Deployment metadata reported by a deployment publisher and covered by its signed runtime assertion. It is not cloud attestation or permission. Values cannot change within a process run; deployment, provider, replica, and instance remain bound to the publisher identity across restarts.
|
|
137
|
+
*/
|
|
138
|
+
export type PublisherDeploymentReport = {
|
|
139
|
+
deployment_id: string;
|
|
140
|
+
provider: "aws";
|
|
141
|
+
replica_key: string;
|
|
142
|
+
instance: string;
|
|
143
|
+
/**
|
|
144
|
+
* Reported digest-pinned image reference, without a tag, scheme or credentials. Control does not inspect the running image.
|
|
145
|
+
*/
|
|
146
|
+
image: string;
|
|
147
|
+
software_version: string;
|
|
148
|
+
template_version: string;
|
|
149
|
+
template_sha256: string;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* An accepted publisher deployment report, with control receipt times and a control-derived deployment_id. It does not prove cloud state, image identity, or target health. The deployment/deployment/replica combination belongs to this publisher identity.
|
|
153
|
+
*/
|
|
154
|
+
export type PublisherDeploymentObservation = {
|
|
155
|
+
report: PublisherDeploymentReport;
|
|
156
|
+
deployment_id: string;
|
|
157
|
+
evidence: "publisher_reported";
|
|
158
|
+
first_observed_at: string;
|
|
159
|
+
observed_at: string;
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* Last explicitly started runtime for this publisher identity, retained after stop or lease expiry. Active means its lease is live, not that the target is reachable or its egress IP is fixed. The source address seen by control can differ from the address used to reach targets and grants no access.
|
|
163
|
+
*/
|
|
164
|
+
export type PublisherRuntimeStatus = {
|
|
165
|
+
publisher_identity_id: string;
|
|
166
|
+
team_id: string;
|
|
167
|
+
process_run_id: string;
|
|
168
|
+
epoch: string;
|
|
169
|
+
evidence: "control_observed";
|
|
170
|
+
address_family: "ipv4" | "ipv6" | "unknown";
|
|
171
|
+
started_at: string;
|
|
172
|
+
observed_at: string;
|
|
173
|
+
last_seen_at: string;
|
|
174
|
+
lease_expires_at: string;
|
|
175
|
+
stopped_at?: string;
|
|
176
|
+
active: boolean;
|
|
177
|
+
deployment?: PublisherDeploymentObservation;
|
|
178
|
+
};
|
|
179
|
+
export type ServiceProtocol = "http" | "tcp" | "mysql" | "postgres" | "kubernetes";
|
|
180
|
+
/**
|
|
181
|
+
* Control-owned service TLS identity. HTTP uses shared port 443 without an exclusive ingress reservation, including when public access is disabled. Other protocols use zero when no public ingress port is reserved; an allocated port remains reserved during temporary disablement. Only public enables ingress access. This port is never a machine-local connector port. Target trust is a separate publisher-side boundary.
|
|
182
|
+
*/
|
|
183
|
+
export type ServiceEndpoint = {
|
|
184
|
+
hostname: string;
|
|
185
|
+
port: number;
|
|
186
|
+
public: boolean;
|
|
187
|
+
};
|
|
188
|
+
export type ResourceId = string;
|
|
189
|
+
export type ProblemCode = "invalid_request" | "traffic_selection_invalid" | "unauthenticated" | "forbidden" | "guest_demo_only" | "guest_ip_changed" | "guest_issuance_limited" | "guest_trial_exhausted" | "not_found" | "conflict" | "credential_delivery_unavailable" | "stale_network_binding" | "project_managed" | "rate_limited" | "unavailable" | "internal" | "name_unavailable" | "policy_revision_stale" | "dns_setup_pending" | "placement_unavailable" | "member_hostname_depth_exceeded" | "issuance_retry";
|
|
190
|
+
export type Problem = {
|
|
191
|
+
type: string;
|
|
192
|
+
title: string;
|
|
193
|
+
status: number;
|
|
194
|
+
code: ProblemCode;
|
|
195
|
+
request_id: string;
|
|
196
|
+
detail: string;
|
|
197
|
+
retry_at?: string;
|
|
198
|
+
/**
|
|
199
|
+
* Optional code-specific diagnostic fields. A not_found problem with HTTP status 404 may include allowed_namespace, a canonical ASCII hostname of at most 253 bytes from the current actor's authorized namespace. It is omitted after membership loss and when the namespace denial includes an independent fault. It never identifies the rejected hostname's owner or whether a foreign service exists. Clients must validate this field before displaying it and ignore unknown detail keys.
|
|
200
|
+
*/
|
|
201
|
+
details?: {
|
|
202
|
+
[key: string]: unknown;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
export type TeamIdQuery = ResourceId;
|
|
206
|
+
export type ListDeploymentsData = {
|
|
207
|
+
body?: never;
|
|
208
|
+
path: {
|
|
209
|
+
project_key: string;
|
|
210
|
+
};
|
|
211
|
+
query: {
|
|
212
|
+
team_id: ResourceId;
|
|
213
|
+
after?: string;
|
|
214
|
+
limit?: number;
|
|
215
|
+
};
|
|
216
|
+
url: "/v1/projects/{project_key}/deployments";
|
|
217
|
+
};
|
|
218
|
+
export type ListDeploymentsErrors = {
|
|
219
|
+
/**
|
|
220
|
+
* Request failed
|
|
221
|
+
*/
|
|
222
|
+
default: Problem;
|
|
223
|
+
};
|
|
224
|
+
export type ListDeploymentsError = ListDeploymentsErrors[keyof ListDeploymentsErrors];
|
|
225
|
+
export type ListDeploymentsResponses = {
|
|
226
|
+
/**
|
|
227
|
+
* Authorized deployment page
|
|
228
|
+
*/
|
|
229
|
+
200: DeploymentPage;
|
|
230
|
+
};
|
|
231
|
+
export type ListDeploymentsResponse = ListDeploymentsResponses[keyof ListDeploymentsResponses];
|
|
232
|
+
export type CreateDeploymentData = {
|
|
233
|
+
body: CreateDeploymentRequest;
|
|
234
|
+
headers: {
|
|
235
|
+
"Idempotency-Key": string;
|
|
236
|
+
};
|
|
237
|
+
path: {
|
|
238
|
+
project_key: string;
|
|
239
|
+
};
|
|
240
|
+
query: {
|
|
241
|
+
team_id: ResourceId;
|
|
242
|
+
};
|
|
243
|
+
url: "/v1/projects/{project_key}/deployments";
|
|
244
|
+
};
|
|
245
|
+
export type CreateDeploymentErrors = {
|
|
246
|
+
/**
|
|
247
|
+
* Request failed
|
|
248
|
+
*/
|
|
249
|
+
default: Problem;
|
|
250
|
+
};
|
|
251
|
+
export type CreateDeploymentError = CreateDeploymentErrors[keyof CreateDeploymentErrors];
|
|
252
|
+
export type CreateDeploymentResponses = {
|
|
253
|
+
/**
|
|
254
|
+
* Created or recovered deployment
|
|
255
|
+
*/
|
|
256
|
+
201: Deployment;
|
|
257
|
+
};
|
|
258
|
+
export type CreateDeploymentResponse = CreateDeploymentResponses[keyof CreateDeploymentResponses];
|
|
259
|
+
export type DeleteDeploymentData = {
|
|
260
|
+
body?: never;
|
|
261
|
+
headers?: {
|
|
262
|
+
/**
|
|
263
|
+
* Required by the operation; omission returns 428.
|
|
264
|
+
*/
|
|
265
|
+
"If-Match"?: string;
|
|
266
|
+
};
|
|
267
|
+
path: {
|
|
268
|
+
project_key: string;
|
|
269
|
+
/**
|
|
270
|
+
* Deployment name or ID within the selected project.
|
|
271
|
+
*/
|
|
272
|
+
deployment: string;
|
|
273
|
+
};
|
|
274
|
+
query: {
|
|
275
|
+
team_id: ResourceId;
|
|
276
|
+
};
|
|
277
|
+
url: "/v1/projects/{project_key}/deployments/{deployment}";
|
|
278
|
+
};
|
|
279
|
+
export type DeleteDeploymentErrors = {
|
|
280
|
+
/**
|
|
281
|
+
* Request failed
|
|
282
|
+
*/
|
|
283
|
+
default: Problem;
|
|
284
|
+
};
|
|
285
|
+
export type DeleteDeploymentError = DeleteDeploymentErrors[keyof DeleteDeploymentErrors];
|
|
286
|
+
export type DeleteDeploymentResponses = {
|
|
287
|
+
/**
|
|
288
|
+
* Deployment retired
|
|
289
|
+
*/
|
|
290
|
+
204: void;
|
|
291
|
+
};
|
|
292
|
+
export type DeleteDeploymentResponse = DeleteDeploymentResponses[keyof DeleteDeploymentResponses];
|
|
293
|
+
export type GetDeploymentData = {
|
|
294
|
+
body?: never;
|
|
295
|
+
path: {
|
|
296
|
+
project_key: string;
|
|
297
|
+
/**
|
|
298
|
+
* Deployment name or ID within the selected project.
|
|
299
|
+
*/
|
|
300
|
+
deployment: string;
|
|
301
|
+
};
|
|
302
|
+
query: {
|
|
303
|
+
team_id: ResourceId;
|
|
304
|
+
};
|
|
305
|
+
url: "/v1/projects/{project_key}/deployments/{deployment}";
|
|
306
|
+
};
|
|
307
|
+
export type GetDeploymentErrors = {
|
|
308
|
+
/**
|
|
309
|
+
* Request failed
|
|
310
|
+
*/
|
|
311
|
+
default: Problem;
|
|
312
|
+
};
|
|
313
|
+
export type GetDeploymentError = GetDeploymentErrors[keyof GetDeploymentErrors];
|
|
314
|
+
export type GetDeploymentResponses = {
|
|
315
|
+
/**
|
|
316
|
+
* Saved deployment
|
|
317
|
+
*/
|
|
318
|
+
200: Deployment;
|
|
319
|
+
};
|
|
320
|
+
export type GetDeploymentResponse = GetDeploymentResponses[keyof GetDeploymentResponses];
|
|
321
|
+
export type UpdateDeploymentData = {
|
|
322
|
+
body: UpdateDeploymentRequest;
|
|
323
|
+
headers?: {
|
|
324
|
+
/**
|
|
325
|
+
* Required by the operation; omission returns 428.
|
|
326
|
+
*/
|
|
327
|
+
"If-Match"?: string;
|
|
328
|
+
};
|
|
329
|
+
path: {
|
|
330
|
+
project_key: string;
|
|
331
|
+
/**
|
|
332
|
+
* Deployment name or ID within the selected project.
|
|
333
|
+
*/
|
|
334
|
+
deployment: string;
|
|
335
|
+
};
|
|
336
|
+
query: {
|
|
337
|
+
team_id: ResourceId;
|
|
338
|
+
};
|
|
339
|
+
url: "/v1/projects/{project_key}/deployments/{deployment}";
|
|
340
|
+
};
|
|
341
|
+
export type UpdateDeploymentErrors = {
|
|
342
|
+
/**
|
|
343
|
+
* Request failed
|
|
344
|
+
*/
|
|
345
|
+
default: Problem;
|
|
346
|
+
};
|
|
347
|
+
export type UpdateDeploymentError = UpdateDeploymentErrors[keyof UpdateDeploymentErrors];
|
|
348
|
+
export type UpdateDeploymentResponses = {
|
|
349
|
+
/**
|
|
350
|
+
* Updated deployment
|
|
351
|
+
*/
|
|
352
|
+
200: Deployment;
|
|
353
|
+
};
|
|
354
|
+
export type UpdateDeploymentResponse = UpdateDeploymentResponses[keyof UpdateDeploymentResponses];
|
|
355
|
+
export type CreateDeploymentPublisherEnrollmentData = {
|
|
356
|
+
body: CreateDeploymentPublisherEnrollmentRequest;
|
|
357
|
+
headers: {
|
|
358
|
+
"Idempotency-Key": string;
|
|
359
|
+
};
|
|
360
|
+
path: {
|
|
361
|
+
project_key: string;
|
|
362
|
+
/**
|
|
363
|
+
* Deployment name or ID within the selected project.
|
|
364
|
+
*/
|
|
365
|
+
deployment: string;
|
|
366
|
+
};
|
|
367
|
+
query: {
|
|
368
|
+
team_id: ResourceId;
|
|
369
|
+
};
|
|
370
|
+
url: "/v1/projects/{project_key}/deployments/{deployment}/publisher-enrollments";
|
|
371
|
+
};
|
|
372
|
+
export type CreateDeploymentPublisherEnrollmentErrors = {
|
|
373
|
+
/**
|
|
374
|
+
* Request failed
|
|
375
|
+
*/
|
|
376
|
+
default: Problem;
|
|
377
|
+
};
|
|
378
|
+
export type CreateDeploymentPublisherEnrollmentError = CreateDeploymentPublisherEnrollmentErrors[keyof CreateDeploymentPublisherEnrollmentErrors];
|
|
379
|
+
export type CreateDeploymentPublisherEnrollmentResponses = {
|
|
380
|
+
/**
|
|
381
|
+
* New or recovered bounded enrollment
|
|
382
|
+
*/
|
|
383
|
+
201: DeploymentPublisherEnrollment;
|
|
384
|
+
};
|
|
385
|
+
export type CreateDeploymentPublisherEnrollmentResponse = CreateDeploymentPublisherEnrollmentResponses[keyof CreateDeploymentPublisherEnrollmentResponses];
|
|
386
|
+
export type ListDeploymentPublishersData = {
|
|
387
|
+
body?: never;
|
|
388
|
+
path: {
|
|
389
|
+
project_key: string;
|
|
390
|
+
deployment: string;
|
|
391
|
+
};
|
|
392
|
+
query: {
|
|
393
|
+
team_id: ResourceId;
|
|
394
|
+
after?: string;
|
|
395
|
+
limit?: number;
|
|
396
|
+
};
|
|
397
|
+
url: "/v1/projects/{project_key}/deployments/{deployment}/publishers";
|
|
398
|
+
};
|
|
399
|
+
export type ListDeploymentPublishersErrors = {
|
|
400
|
+
/**
|
|
401
|
+
* Request failed
|
|
402
|
+
*/
|
|
403
|
+
default: Problem;
|
|
404
|
+
};
|
|
405
|
+
export type ListDeploymentPublishersError = ListDeploymentPublishersErrors[keyof ListDeploymentPublishersErrors];
|
|
406
|
+
export type ListDeploymentPublishersResponses = {
|
|
407
|
+
/**
|
|
408
|
+
* Deployment publisher page in bytewise publisher ID order
|
|
409
|
+
*/
|
|
410
|
+
200: DeploymentPublisherPage;
|
|
411
|
+
};
|
|
412
|
+
export type ListDeploymentPublishersResponse = ListDeploymentPublishersResponses[keyof ListDeploymentPublishersResponses];
|
|
413
|
+
export type RevokeDeploymentPublisherData = {
|
|
414
|
+
body?: never;
|
|
415
|
+
path: {
|
|
416
|
+
project_key: string;
|
|
417
|
+
deployment: string;
|
|
418
|
+
publisher: string;
|
|
419
|
+
};
|
|
420
|
+
query: {
|
|
421
|
+
team_id: ResourceId;
|
|
422
|
+
};
|
|
423
|
+
url: "/v1/projects/{project_key}/deployments/{deployment}/publishers/{publisher}";
|
|
424
|
+
};
|
|
425
|
+
export type RevokeDeploymentPublisherErrors = {
|
|
426
|
+
/**
|
|
427
|
+
* Request failed
|
|
428
|
+
*/
|
|
429
|
+
default: Problem;
|
|
430
|
+
};
|
|
431
|
+
export type RevokeDeploymentPublisherError = RevokeDeploymentPublisherErrors[keyof RevokeDeploymentPublisherErrors];
|
|
432
|
+
export type RevokeDeploymentPublisherResponses = {
|
|
433
|
+
/**
|
|
434
|
+
* Publisher revoked
|
|
435
|
+
*/
|
|
436
|
+
204: void;
|
|
437
|
+
};
|
|
438
|
+
export type RevokeDeploymentPublisherResponse = RevokeDeploymentPublisherResponses[keyof RevokeDeploymentPublisherResponses];
|
|
439
|
+
export type GetDeploymentPublisherData = {
|
|
440
|
+
body?: never;
|
|
441
|
+
path: {
|
|
442
|
+
project_key: string;
|
|
443
|
+
deployment: string;
|
|
444
|
+
publisher: string;
|
|
445
|
+
};
|
|
446
|
+
query: {
|
|
447
|
+
team_id: ResourceId;
|
|
448
|
+
};
|
|
449
|
+
url: "/v1/projects/{project_key}/deployments/{deployment}/publishers/{publisher}";
|
|
450
|
+
};
|
|
451
|
+
export type GetDeploymentPublisherErrors = {
|
|
452
|
+
/**
|
|
453
|
+
* Request failed
|
|
454
|
+
*/
|
|
455
|
+
default: Problem;
|
|
456
|
+
};
|
|
457
|
+
export type GetDeploymentPublisherError = GetDeploymentPublisherErrors[keyof GetDeploymentPublisherErrors];
|
|
458
|
+
export type GetDeploymentPublisherResponses = {
|
|
459
|
+
/**
|
|
460
|
+
* Publisher observation without credentials or targets
|
|
461
|
+
*/
|
|
462
|
+
200: DeploymentPublisher;
|
|
463
|
+
};
|
|
464
|
+
export type GetDeploymentPublisherResponse = GetDeploymentPublisherResponses[keyof GetDeploymentPublisherResponses];
|