@runlot/api 0.1.0-rc.21 → 0.1.0-rc.210

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/dist/index.d.ts CHANGED
@@ -1,12 +1,16 @@
1
1
  import type { components, operations } from "./schema.js";
2
2
  export type { components, paths, operations } from "./schema.js";
3
3
  export declare const API_VERSION: "v1";
4
+ /** The shared query for browsing. Empty values are not carried — the server reads "empty means default". */
5
+ /** base64url of the UTF-8 JSON, no padding — the `draft` parameter's encoding. */
6
+ export declare function base64urlJson(v: unknown): string;
4
7
  type Schemas = components["schemas"];
5
8
  /**
6
- * 오퍼레이션의 성공 응답 본문.
9
+ * The success response body of an operation.
7
10
  *
8
- * 메서드 반환형을 손으로 적지 않는 이유는, 손으로 적으면 스펙이 바뀌어도
9
- * 컴파일이 통과하기 때문이다 — 그 어긋남은 런타임에 `undefined` 로 나타난다.
11
+ * We do not write the method return types by hand because a hand-written type
12
+ * still compiles after the spec changes — and that drift shows up at runtime as
13
+ * `undefined`.
10
14
  */
11
15
  type Ok<K extends keyof operations> = operations[K]["responses"] extends {
12
16
  200: {
@@ -29,12 +33,157 @@ type Ok<K extends keyof operations> = operations[K]["responses"] extends {
29
33
  } ? B : never;
30
34
  export type Session = Schemas["Session"];
31
35
  export type User = Schemas["User"];
36
+ export type AuthEmailAccepted = Schemas["AuthEmailAccepted"];
37
+ export type TotpStatus = Schemas["TotpStatus"];
38
+ export type TotpEnrollment = Schemas["TotpEnrollment"];
32
39
  export type Org = Schemas["Org"];
33
40
  export type Project = Schemas["Project"];
34
41
  export type ProjectDetail = Schemas["ProjectDetail"];
35
42
  export type Placement = Schemas["Placement"];
36
43
  export type Deployment = Schemas["Deployment"];
44
+ /** What the deploy-time static checks found (proto/openapi.yaml DeployStaticChecks). */
45
+ export type DeployStaticChecks = Schemas["DeployStaticChecks"];
46
+ export type DeployStaticCheckFinding = Schemas["DeployStaticCheckFinding"];
47
+ export type Preview = Schemas["Preview"];
48
+ export type PreviewState = NonNullable<Preview["state"]>;
49
+ export type PreviewDbMode = NonNullable<Preview["dbMode"]>;
50
+ /**
51
+ * What `createDeployment` answers to a `?preview=` upload.
52
+ *
53
+ * The extra field is written here rather than in the 201 response schema because
54
+ * the schema is `Deployment` — shared with `listDeployments`, `rollback` and the
55
+ * overview, none of which have a preview to report. Widening it there would put an
56
+ * optional `preview` on every deployment a reader ever sees, which reads as "a
57
+ * deployment may belong to a preview" instead of "this one call returns the
58
+ * preview it just made". `proto/openapi.yaml` `createDeployment` says the same
59
+ * thing in prose.
60
+ */
61
+ export type DeployedPreview = Deployment & {
62
+ preview?: Preview;
63
+ };
64
+ export type OrgDatabases = Schemas["OrgDatabases"];
65
+ export type OrgDatabase = Schemas["OrgDatabase"];
66
+ export type DatabaseBinding = Schemas["DatabaseBinding"];
67
+ export type DatabaseBindingMode = DatabaseBinding["mode"];
68
+ export type ProjectOverview = Schemas["ProjectOverview"];
69
+ export type OverviewDeployment = Schemas["OverviewDeployment"];
37
70
  export type Manifest = Schemas["Manifest"];
71
+ export type CronOverview = Schemas["CronOverview"];
72
+ export type ErrorIssue = Schemas["ErrorIssue"];
73
+ export type ErrorIssuePage = Schemas["ErrorIssuePage"];
74
+ export type ErrorIssueDetail = Schemas["ErrorIssueDetail"];
75
+ export type ErrorIssueUpdate = Schemas["ErrorIssueUpdate"];
76
+ export type ErrorEvent = Schemas["ErrorEvent"];
77
+ export type ErrorEventSummary = Schemas["ErrorEventSummary"];
78
+ export type ErrorEventPage = Schemas["ErrorEventPage"];
79
+ export type ErrorFrame = Schemas["ErrorFrame"];
80
+ export type ErrorException = Schemas["ErrorException"];
81
+ export type ErrorBreadcrumb = Schemas["ErrorBreadcrumb"];
82
+ export type ErrorActivity = Schemas["ErrorActivity"];
83
+ export type ErrorOwnershipPolicy = Schemas["ErrorOwnershipPolicy"];
84
+ export type ErrorOwnershipPinInput = Schemas["ErrorOwnershipPinInput"];
85
+ export type ErrorOwnershipPin = Schemas["ErrorOwnershipPin"];
86
+ export type ErrorSettings = Schemas["ErrorSettings"];
87
+ export type RelatedErrorEvents = Schemas["RelatedErrorEvents"];
88
+ export type ErrorHistory = Schemas["ErrorHistory"];
89
+ export type UptimeCheck = Schemas["UptimeCheck"];
90
+ export type ObservabilityPermission = Schemas["ObservabilityPermission"];
91
+ export type ObservabilityCaps = Schemas["ObservabilityCaps"];
92
+ export type SpendingLimit = Schemas["SpendingLimit"];
93
+ export type ProjectLimits = Schemas["ProjectLimits"];
94
+ export type ProjectLimitsUpdate = Schemas["ProjectLimitsUpdate"];
95
+ export type ProjectSpendLine = Schemas["ProjectSpendLine"];
96
+ export type ObservabilityExport = Schemas["ObservabilityExport"];
97
+ export type ObservabilityRehydration = Schemas["ObservabilityRehydration"];
98
+ export type ObservabilityAuditEntry = Schemas["ObservabilityAuditEntry"];
99
+ export type ObservabilityData = Schemas["ObservabilityData"];
100
+ export type BugReport = Schemas["BugReport"];
101
+ export type UptimeCheckInput = Schemas["UptimeCheckInput"];
102
+ export type UptimeCheckList = Schemas["UptimeCheckList"];
103
+ export type ObsProfilerSettings = Schemas["ObsProfilerSettings"];
104
+ export type ObsSampling = Schemas["ObsSampling"];
105
+ export type ObsProfileList = Schemas["ObsProfileList"];
106
+ export type ObsFlamegraph = Schemas["ObsFlamegraph"];
107
+ export type ObsFlameNode = Schemas["ObsFlameNode"];
108
+ export type ObsProfileTop = Schemas["ObsProfileTop"];
109
+ export type ObsProfileCompare = Schemas["ObsProfileCompare"];
110
+ export type ObsHeapSnapshot = Schemas["ObsHeapSnapshot"];
111
+ export type ObsHeapSnapshotList = Schemas["ObsHeapSnapshotList"];
112
+ export type ObsRUMAggregate = Schemas["ObsRUMAggregate"];
113
+ export type ObsRUMOverview = Schemas["ObsRUMOverview"];
114
+ export type ObsRUMPages = Schemas["ObsRUMPages"];
115
+ export type ObsRUMDevices = Schemas["ObsRUMDevices"];
116
+ export type ObsRUMViewList = Schemas["ObsRUMViewList"];
117
+ export type ObsRUMView = Schemas["ObsRUMView"];
118
+ export type ObsRUMViewSummary = Schemas["ObsRUMViewSummary"];
119
+ export type ObsRUMTiming = Schemas["ObsRUMTiming"];
120
+ /** Filters of the RUM reads (customer-observability.md §17.12). */
121
+ export interface ObsRUMQuery {
122
+ from?: string;
123
+ to?: string;
124
+ step?: string;
125
+ template?: string;
126
+ device?: "mobile" | "tablet" | "desktop";
127
+ }
128
+ /** The window and filters of a profile read (customer-observability.md §17.13). */
129
+ export interface ObsProfileQuery {
130
+ from?: string;
131
+ to?: string;
132
+ version?: number;
133
+ route?: string;
134
+ limit?: number;
135
+ }
136
+ export type UptimeRun = Schemas["UptimeRun"];
137
+ export type ErrorPerformanceThresholds = Schemas["ErrorPerformanceThresholds"];
138
+ export type ErrorCapturePolicy = Schemas["ErrorCapturePolicy"];
139
+ export type ErrorCapturePolicyView = Schemas["ErrorCapturePolicyView"];
140
+ export type ErrorComment = Schemas["ErrorComment"];
141
+ export type ErrorCommentPage = Schemas["ErrorCommentPage"];
142
+ export type ErrorSimilar = Schemas["ErrorSimilar"];
143
+ export type ErrorFingerprintRule = Schemas["ErrorFingerprintRule"];
144
+ export type ErrorFingerprintRules = Schemas["ErrorFingerprintRules"];
145
+ export type ErrorInsights = Schemas["ErrorInsights"];
146
+ export type ProjectHealth = Schemas["ProjectHealth"];
147
+ export type OrgHealth = Schemas["OrgHealth"];
148
+ export type HealthRisk = Schemas["HealthRisk"];
149
+ export type HealthCheck = Schemas["HealthCheck"];
150
+ export type CapacityEstimate = Schemas["CapacityEstimate"];
151
+ export type ErrorInsightSourceContext = Schemas["ErrorInsightSourceContext"];
152
+ export type ErrorSuspectCommit = Schemas["ErrorSuspectCommit"];
153
+ export type ErrorInsightOwners = Schemas["ErrorInsightOwners"];
154
+ export type ErrorDiagnosis = Schemas["ErrorDiagnosis"];
155
+ export type ErrorFixProposal = Schemas["ErrorFixProposal"];
156
+ export type ErrorFixPreview = Schemas["ErrorFixPreview"];
157
+ export type ErrorFixPreviewVerification = Schemas["ErrorFixPreviewVerification"];
158
+ export type ErrorFixPreviewApproval = Schemas["ErrorFixPreviewApproval"];
159
+ export type ErrorFixPreviewVerificationApproval = Schemas["ErrorFixPreviewVerificationApproval"];
160
+ export type ErrorFixApplyResult = Schemas["ErrorFixApplyResult"];
161
+ /** Masked structural replay (not a pixel recording): settings, metadata and one batch. */
162
+ export type ErrorErasureResult = Schemas["ErrorErasureResult"];
163
+ export type BrowserTelemetrySummary = Schemas["BrowserTelemetrySummary"];
164
+ export type BrowserFeedback = Schemas["BrowserFeedback"];
165
+ export type ErrorReplaySettings = Schemas["ErrorReplaySettings"];
166
+ export type ErrorReplay = Schemas["ErrorReplay"];
167
+ export type ErrorReplayBatch = Schemas["ErrorReplayBatch"];
168
+ export type CronSchedule = Schemas["CronSchedule"];
169
+ export type CronMonitor = Schemas["CronMonitor"];
170
+ export type CronMonitorIncident = Schemas["CronMonitorIncident"];
171
+ export type CronRun = Schemas["CronRun"];
172
+ export type CronSummary = Schemas["CronSummary"];
173
+ export type QueueOverview = Schemas["QueueOverview"];
174
+ export type QueueStatus = Schemas["QueueStatus"];
175
+ export type QueueRun = Schemas["QueueRun"];
176
+ export type QueueDepth = Schemas["QueueDepth"];
177
+ export type QueueMessage = Schemas["QueueMessage"];
178
+ export type AppUser = Schemas["AppUser"];
179
+ export type AppUserPage = Schemas["AppUserPage"];
180
+ export type AILedgerRow = Schemas["AILedgerRow"];
181
+ /** The body of one development-lane `env.ai.run` (`devAIRun`). */
182
+ export type DevAIRunRequest = operations["devAIRun"]["requestBody"]["content"]["application/json"];
183
+ export type DevAIRunResult = Ok<"devAIRun">;
184
+ export type DurableObjectUsage = Schemas["DurableObjectUsage"];
185
+ export type VectorOverview = Schemas["VectorOverview"];
186
+ export type VectorNamespace = Schemas["VectorNamespace"];
38
187
  export type DatabaseConnect = Schemas["DatabaseConnect"];
39
188
  export type DatabaseEndpoint = Schemas["DatabaseEndpoint"];
40
189
  export type DatabaseToken = Schemas["DatabaseToken"];
@@ -47,20 +196,85 @@ export type GenerationRow = Schemas["GenerationRow"];
47
196
  export type OperationStarted = Schemas["OperationStarted"];
48
197
  export type Operation = Schemas["Operation"];
49
198
  export type ErrorEnvelope = Schemas["Error"];
199
+ export type License = Schemas["License"];
200
+ export type LicenseState = License["state"];
50
201
  export type Role = Schemas["Role"];
51
202
  export type Member = Schemas["Member"];
203
+ export type Invite = Schemas["Invite"];
204
+ export type OrgHolding = Schemas["OrgHolding"];
205
+ export type InviteView = Schemas["InviteView"];
206
+ export type InviteState = Schemas["InviteState"];
52
207
  export type SecretMeta = Schemas["SecretMeta"];
53
208
  export type SecretList = Schemas["SecretList"];
54
209
  export type LogEvent = Schemas["LogEvent"];
210
+ export type LogRecord = Schemas["LogRecord"];
211
+ export type ObsQuery = Schemas["ObsQuery"];
212
+ export type ObsFilter = Schemas["ObsFilter"];
213
+ export type ObsQueryResult = Schemas["ObsQueryResult"];
214
+ export type ObsInvocation = Schemas["ObsInvocation"];
215
+ export type ObsEvent = Schemas["ObsEvent"];
216
+ export type ObsRequestView = Schemas["ObsRequestView"];
217
+ export type SavedQuery = Schemas["SavedQuery"];
218
+ export type SavedQueryInput = Schemas["SavedQueryInput"];
219
+ export type ObsProcessor = Schemas["ObsProcessor"];
220
+ export type ObsScannerConfig = Schemas["ObsScannerConfig"];
221
+ export type ObsLogMetric = Schemas["ObsLogMetric"];
222
+ export type ObsLogsConfig = Schemas["ObsLogsConfig"];
223
+ /** Live-tail filters, applied on the node before a line is sent. */
224
+ export type LogTailFilter = {
225
+ level?: "debug" | "log" | "info" | "warn" | "error";
226
+ source?: "stdout" | "stderr" | "runlot";
227
+ q?: string;
228
+ requestId?: string;
229
+ };
230
+ export type LogHistoryLine = {
231
+ ts: string;
232
+ seq: number;
233
+ epoch?: number;
234
+ generation?: number;
235
+ stream: "stdout" | "stderr" | "runlot";
236
+ line: string;
237
+ };
238
+ export type LogHistoryPage = {
239
+ lines: LogHistoryLine[];
240
+ /** Absent means there is nothing older. */
241
+ cursor?: string | undefined;
242
+ keepDays: number;
243
+ linesPerDay: number;
244
+ };
55
245
  export type Usage = Schemas["Usage"];
246
+ export type ExecuteResult = Schemas["ExecuteResult"];
56
247
  export type StorageStatus = Schemas["StorageStatus"];
248
+ export type StorageObject = Schemas["StorageObject"];
249
+ export type StorageObjectPage = Schemas["StorageObjectPage"];
250
+ export type StorageObjectSigned = Schemas["StorageObjectSigned"];
251
+ export type BillingStatus = Schemas["BillingStatus"];
252
+ export type PlanLimits = Schemas["PlanLimits"];
253
+ export type EmailStatus = Schemas["EmailStatus"];
254
+ export type EmailDomain = Schemas["EmailDomain"];
255
+ export type EmailDNSRecord = Schemas["EmailDNSRecord"];
256
+ export type EmailDomainState = NonNullable<EmailDomain["state"]>;
257
+ export type MailLogEntry = Schemas["MailLogEntry"];
258
+ export type MailLogPage = Schemas["MailLogPage"];
57
259
  export type Repo = Schemas["Repo"];
58
260
  export type RepoVisibility = NonNullable<Repo["visibility"]>;
261
+ export type DeployHook = Schemas["DeployHook"];
262
+ export type Build = Schemas["Build"];
263
+ export type BuildState = NonNullable<Build["state"]>;
59
264
  export type RefUpdate = Schemas["RefUpdate"];
60
265
  export type SSHKey = Schemas["SSHKey"];
61
266
  export type AccessToken = Schemas["AccessToken"];
62
267
  export type AccessTokenCreated = Schemas["AccessTokenCreated"];
63
268
  export type TokenScope = NonNullable<AccessToken["scope"]>;
269
+ /**
270
+ * One name from the REST scope vocabulary (0067).
271
+ *
272
+ * `TokenScope` above is the **git** verdict and stays two-valued; this is the
273
+ * set a token actually carries. Keeping the two names apart is what stops the
274
+ * git front end and the REST middleware from drifting into one another.
275
+ */
276
+ export type ApiScope = Schemas["ApiScope"];
277
+ export declare const API_SCOPES: readonly ApiScope[];
64
278
  export type RepoRefs = Schemas["RepoRefs"];
65
279
  export type RepoRef = RepoRefs["refs"][number];
66
280
  export type RepoTree = Schemas["RepoTree"];
@@ -70,25 +284,123 @@ export type RepoCommit = Schemas["RepoCommit"];
70
284
  export type AccessPolicy = Schemas["AccessPolicy"];
71
285
  export type AccessBypass = Schemas["AccessBypass"];
72
286
  export type AccessAuthorize = Schemas["AccessAuthorize"];
73
- /** 정책 셋. 라디오 셋이 이 유니온에 붙는다 (docs/access.md §3.1). */
287
+ /** The four policies (`app` is docs/auth-access-unify.md §3). The radio buttons hang off this union (docs/access.md §3.1). */
74
288
  export type AccessMode = NonNullable<AccessPolicy["mode"]>;
75
289
  export type UsageRow = Schemas["UsageRow"];
76
290
  export type Notification = Schemas["Notification"];
77
- /** 알림 종류. 대시보드의 라벨 표가 이 유니온에 붙는다 (§3.1). */
291
+ /** The notification kinds. The dashboard's label table hangs off this union (§3.1). */
78
292
  export type NotificationKind = NonNullable<Notification["kind"]>;
79
293
  export type AuthStatus = Schemas["AuthStatus"];
80
294
  export type AuthSettings = Schemas["AuthSettings"];
81
295
  export type AuthBrand = Schemas["AuthBrand"];
296
+ /**
297
+ * One provider row (docs/auth-access-unify.md §5, §5A): `builtin` is the
298
+ * project's own GitHub or Google app, `oidc` a generic OpenID Connect provider
299
+ * under a project-chosen id, `runlot` Runlot's sign-in.
300
+ */
82
301
  export type AuthProviderMeta = Schemas["AuthProviderMeta"];
83
- /** 프로바이더 셋. 화면의 행과 CLI 의 인자가 이 유니온에 붙는다. */
302
+ export type AuthProviderKind = AuthProviderMeta["kind"];
303
+ /** The PUT body; its shape depends on `kind` (see `AuthProviderPut`). */
304
+ export type AuthProviderPut = Schemas["AuthProviderPut"];
305
+ /** Provider ids with a built-in meaning; any other id is an OIDC provider. */
306
+ export type BuiltinAuthProvider = "github" | "google";
307
+ export declare const BUILTIN_AUTH_PROVIDERS: readonly BuiltinAuthProvider[];
308
+ export declare const RESERVED_AUTH_PROVIDER_IDS: readonly string[];
309
+ /** The id pattern for an OIDC provider (`^[a-z][a-z0-9-]{1,30}$`). */
310
+ export declare const AUTH_PROVIDER_ID: RegExp;
311
+ /**
312
+ * `GET …/auth/schema`: the statements that install `runlot_auth` idempotently,
313
+ * one transaction from `BEGIN` to `COMMIT`. A migration that references
314
+ * `runlot_auth` runs them first.
315
+ */
316
+ export interface AuthSchema {
317
+ version: number;
318
+ statements: string[];
319
+ }
320
+ /** A provider id: `github`, `google`, `runlot`, or an OIDC id. */
84
321
  export type AuthProvider = Schemas["AuthProvider"];
85
- /** PATCH 의 본문 — `AuthSettings` 의 부분집합. 준 칸만 바뀐다. */
86
- export type AuthSettingsInput = NonNullable<Schemas["AuthSettingsPatch"]["settings"]>;
322
+ /** The PATCH body — a subset of `AuthSettings`. Only the fields given change. */
323
+ export type AuthSettingsInput = Omit<NonNullable<Schemas["AuthSettingsPatch"]["settings"]>, "brand"> & {
324
+ /** §12.3: attach a `runlot` identity to an existing user with the same verified email. Default true. */
325
+ linkByEmail?: boolean;
326
+ brand?: Partial<AuthBranding>;
327
+ };
328
+ export type AuthTheme = "light" | "dark" | "system";
329
+ export type AuthLayout = "centered" | "split" | "minimal";
330
+ export type AuthButtonShape = "rounded" | "pill" | "square";
331
+ export type AuthBackgroundKind = "none" | "color" | "gradient" | "image";
332
+ export type AuthBrandLang = "ko" | "en" | "ja";
333
+ export type AuthRunlotMethod = "password" | "google" | "github" | "passkey";
334
+ export declare const AUTH_RUNLOT_METHODS: readonly AuthRunlotMethod[];
335
+ export interface AuthBrandCopy {
336
+ /** ≤ 80 characters. */
337
+ title: string;
338
+ /** ≤ 200 characters. */
339
+ subtitle: string;
340
+ /** ≤ 200 characters. */
341
+ footer: string;
342
+ }
343
+ /** The whole branding object (`project_auth.settings.brand`, §12.3). */
344
+ export interface AuthBranding {
345
+ name: string;
346
+ logo: string;
347
+ color: string;
348
+ /** https URL or "". */
349
+ logoDark: string;
350
+ theme: AuthTheme;
351
+ layout: AuthLayout;
352
+ buttonShape: AuthButtonShape;
353
+ background: {
354
+ kind: AuthBackgroundKind;
355
+ value: string;
356
+ };
357
+ copy: Partial<Record<AuthBrandLang, AuthBrandCopy>>;
358
+ links: {
359
+ terms: string;
360
+ privacy: string;
361
+ support: string;
362
+ };
363
+ defaultLang: AuthBrandLang | "";
364
+ /** Empty = every method the deployment can broker. */
365
+ methods: AuthRunlotMethod[];
366
+ }
367
+ /** GET/PUT /auth/branding answer. */
368
+ export interface AuthBrandingAnswer {
369
+ brand: AuthBranding;
370
+ effectiveMethods: AuthRunlotMethod[];
371
+ }
372
+ /** `400 invalid_branding` carries one entry per bad field. */
373
+ export interface AuthBrandingFieldError {
374
+ path: string;
375
+ message: string;
376
+ }
377
+ export type AuthPreviewState = "password" | "passkey" | `error:${string}`;
378
+ export interface AuthPreviewOpts {
379
+ lang?: AuthBrandLang;
380
+ theme?: AuthTheme;
381
+ state?: AuthPreviewState;
382
+ /** Unsaved branding to render instead of the stored one. */
383
+ draft?: Partial<AuthBranding>;
384
+ }
385
+ /** One counter of `app_auth_funnel` (§12.2): per day, event and key. */
386
+ export interface AuthFunnelRow {
387
+ /** YYYY-MM-DD. */
388
+ day: string;
389
+ /** e.g. `start`, `chooser_view`, `method`, `success`, `error`. */
390
+ event: string;
391
+ /** The idp, method or error code the event is about; "" when none. */
392
+ key: string;
393
+ n: number;
394
+ }
395
+ export interface AuthFunnel {
396
+ days: number;
397
+ rows: AuthFunnelRow[];
398
+ }
87
399
  export type Hostname = Schemas["Hostname"];
88
400
  export type HostnameList = Schemas["HostnameList"];
89
401
  export type HostnameVerify = Schemas["HostnameVerify"];
90
402
  export type HostnameRecord = Schemas["HostnameRecord"];
91
- /** 상태 넷. 화면의 배지가 이 값에 붙는다 (docs/domains.md §3.3). */
403
+ /** The four states. The badge on screen hangs off this value (docs/domains.md §3.3). */
92
404
  export type HostnameState = NonNullable<Hostname["state"]>;
93
405
  export type Zone = Schemas["Zone"];
94
406
  export type ZoneDetail = Schemas["ZoneDetail"];
@@ -99,10 +411,41 @@ export type DomainDetail = Schemas["DomainDetail"];
99
411
  export type DomainList = Schemas["DomainList"];
100
412
  export type DomainAvailability = Schemas["DomainAvailability"];
101
413
  export type DomainContact = Schemas["DomainContact"];
414
+ export type DomainCharge = Schemas["DomainCharge"];
415
+ /**
416
+ * A purchase or renewal answers with the domain once it is paid and done, or with
417
+ * the charge while payment is still on its way (a checkout to pay in, or a charge
418
+ * settling). The charge is the one with a `chargeId`.
419
+ */
420
+ export declare function isDomainCharge(v: Domain | DomainCharge): v is DomainCharge;
102
421
  export type DomainEvent = Schemas["DomainEvent"];
103
- /** `Domain["state"]` 을 따로 내보낸다 — 화면이 배지 표를 이 유니온으로 못박는다. */
422
+ /** `Domain["state"]` is exported separately — the screen pins its badge table to this union. */
104
423
  export type DomainState = Domain["state"];
105
- /** 서버가 돌려준 오류 봉투를 그대로 들고 있는 예외. */
424
+ /**
425
+ * A status the edge in front of cp-public can produce on its own: 502–504, and
426
+ * Cloudflare's 520–527 (524 is its 100 s origin timeout). With no JSON body these
427
+ * are the edge's words, not the server's, and are raised as `edge_<status>`.
428
+ */
429
+ export declare function isEdgeStatus(status: number): boolean;
430
+ /** True for the `edge_<status>` ApiError `isEdgeStatus` produces. */
431
+ export declare function isEdgeError(err: unknown): boolean;
432
+ /** One entry of an incremental upload's list, in tar order (docs/incremental-deploy-upload.md §1.1). */
433
+ export type DeploymentUploadEntry = {
434
+ path: string;
435
+ sha256: string;
436
+ size: number;
437
+ type?: "file";
438
+ } | {
439
+ path: string;
440
+ type: "dir";
441
+ };
442
+ export type DeploymentUpload = Schemas["DeploymentUpload"];
443
+ export interface PreviewTarget {
444
+ preview: string;
445
+ db?: string | undefined;
446
+ from?: string | undefined;
447
+ }
448
+ /** The exception that carries the server's error envelope unchanged. */
106
449
  export declare class ApiError extends Error {
107
450
  readonly status: number;
108
451
  readonly code: string;
@@ -112,255 +455,1248 @@ export declare class ApiError extends Error {
112
455
  export interface ClientOptions {
113
456
  baseUrl: string;
114
457
  token?: string | undefined;
458
+ /**
459
+ * Sends a GET or HEAD again when the edge answered for the server (`edge_<status>`)
460
+ * or `transport` says the connection failed in a way worth another try. Never a
461
+ * write: after a cut its effect is unknown, and the caller has to check (the CLI's
462
+ * upload does, docs/incremental-deploy-upload.md §3). The delay doubles from
463
+ * `backoffMs`. Off when absent, so a screen shows a failure at once.
464
+ */
465
+ retry?: {
466
+ attempts: number;
467
+ backoffMs: number;
468
+ transport: (err: unknown) => boolean;
469
+ } | undefined;
115
470
  }
116
471
  export declare class Client {
117
472
  private readonly opts;
118
473
  constructor(opts: ClientOptions);
119
474
  private headers;
475
+ /** Runs one attempt again under `opts.retry`, for a safe method only. */
476
+ private retrying;
120
477
  private request;
478
+ private requestOnce;
479
+ /** A body that is not JSON (the raw mail). Error handling is the same as request. */
480
+ private text;
481
+ private textOnce;
121
482
  private json;
122
483
  devLogin(subject: string): Promise<Ok<"devLogin">>;
123
484
  /**
124
- * GitHub OAuth 시작 URL. 브라우저가 따라가는 302 라 fetch 로 부르지 않고
125
- * `window.location` 에 넣는다. `redirect` 는 서버 허용 목록에 있어야 한다.
485
+ * Takes the sign-up and sends the confirmation mail. Neither a session nor a
486
+ * password is created here — the password is chosen in `verifyEmail` by
487
+ * whoever opens the mailbox.
488
+ */
489
+ passwordSignUp(email: string, name?: string): Promise<Ok<"passwordSignUp">>;
490
+ passwordSignIn(email: string, password: string): Promise<Ok<"passwordSignIn">>;
491
+ /** The same accepted response comes back whether or not the email exists. */
492
+ passwordForgot(email: string): Promise<Ok<"passwordForgot">>;
493
+ passwordReset(token: string, password: string): Promise<Ok<"passwordReset">>;
494
+ /** Uses the confirmation link and sets the account's first password. */
495
+ verifyEmail(token: string, password: string): Promise<Ok<"verifyEmail">>;
496
+ /**
497
+ * Finishes a sign-in that came back `{mfa:"totp"}`.
498
+ *
499
+ * Callable without a token: `pending` is the credential, and it is not a
500
+ * session — no other endpoint accepts it.
501
+ */
502
+ completeTotpLogin(pending: string, factor: {
503
+ code: string;
504
+ } | {
505
+ recovery: string;
506
+ }): Promise<Ok<"completeTotpLogin">>;
507
+ /** This account's two-factor state, including which orgs require it. */
508
+ getTotp(): Promise<Ok<"getTotp">>;
509
+ /**
510
+ * Draws a secret to scan. It does **not** turn the factor on — `confirmTotp`
511
+ * does, after the app has proved it can produce a code.
512
+ */
513
+ enrollTotp(): Promise<Ok<"enrollTotp">>;
514
+ /** Turns the factor on and hands back the ten recovery codes. They are shown once. */
515
+ confirmTotp(code: string): Promise<Ok<"confirmTotp">>;
516
+ /** Turns it off. A code or a recovery code is required — the session alone is not. */
517
+ disableTotp(factor: {
518
+ code: string;
519
+ } | {
520
+ recovery: string;
521
+ }): Promise<void>;
522
+ /**
523
+ * Answers "How did you hear about Runlot?" once. An empty answer dismisses it;
524
+ * a second call changes nothing (the first answer stands).
525
+ */
526
+ answerHeardFrom(answer: string): Promise<void>;
527
+ /**
528
+ * Gives or withdraws consent to advertising email. `granted: true` must come
529
+ * only from a box the person ticked (opt-in, docs/marketing-consent.md).
530
+ */
531
+ setMarketingConsent(granted: boolean, source: "login" | "sign_up" | "account"): Promise<Ok<"setMarketingConsent">>;
532
+ /**
533
+ * Withdraws advertising-email consent with the token from a mail's unsubscribe link.
534
+ * No session: withdrawal must not ask for a login (docs/marketing-consent.md).
535
+ */
536
+ unsubscribeMarketing(token: string): Promise<Ok<"unsubscribeMarketing">>;
537
+ /**
538
+ * The GitHub OAuth start URL. It is a 302 the browser follows, so it goes into
539
+ * `window.location` rather than being called with fetch. `redirect` has to be
540
+ * on the server's allow-list.
126
541
  */
127
542
  githubStartUrl(redirect: string): string;
543
+ /** The Google OAuth start URL. Uses the same dashboard callback shape as GitHub. */
544
+ googleStartUrl(redirect: string): string;
545
+ /**
546
+ * The generic OIDC start URL (docs/onprem-delivery.md §7.7). Same 302-and-fragment
547
+ * shape as the other two; which provider is behind it is the installation's choice.
548
+ */
549
+ oidcStartUrl(redirect: string): string;
550
+ /**
551
+ * Does this deployment federate an identity provider?
552
+ *
553
+ * **There is no endpoint that answers "which logins are on"** — one existed and was
554
+ * deleted, because its only reader was the login screen and it put a round trip in
555
+ * front of every login button (cp/internal/public/public.go). This is not that
556
+ * endpoint coming back: cp-public **does not register** the two OIDC routes when no
557
+ * issuer is configured, so the mux's own 404 is the answer, and the probe is a HEAD
558
+ * that no handler runs.
559
+ *
560
+ * Any other status means the route is there — a 400 (this probe carries no
561
+ * `redirect`) or a 502 (the provider's discovery document could not be read) both say
562
+ * the handler exists, and a button that leads to a readable error beats no button.
563
+ * A network failure answers false: on SaaS, where the answer is false anyway, a dead
564
+ * API address must not draw a login that cannot work.
565
+ */
566
+ oidcAvailable(): Promise<boolean>;
567
+ /**
568
+ * This installation's licence (docs/onprem-delivery.md §6.5). Readable by any
569
+ * signed-in user: the footer it feeds is on every page for everybody.
570
+ *
571
+ * On SaaS it answers `onPrem: false` rather than 404, so the caller has one shape to
572
+ * read and the surfaces draw nothing on the flag.
573
+ */
574
+ license(): Promise<Ok<"getLicense">>;
575
+ /**
576
+ * The names of this deployment (app domain, docs address). Callable without auth.
577
+ *
578
+ * This exists so the dashboard does not hard-code a domain into the screen
579
+ * (docs/environments.md §3.2) — hard-coded, the dev screen tells people a
580
+ * production address, and because that address opens, nobody ever says it is
581
+ * wrong.
582
+ */
583
+ siteConfig(): Promise<Ok<"getSiteConfig">>;
128
584
  me(): Promise<Ok<"getMe">>;
129
585
  listOrgs(): Promise<Ok<"listOrgs">>;
586
+ /** Changes the display name only (admin). The slug is the name that becomes an address, so it is not on this surface. */
587
+ /**
588
+ * `requireTotp` is left out when it is not given, on purpose: the server reads
589
+ * an absent field as "leave it alone". Sending `false` by default would mean a
590
+ * rename silently switched the org's second-factor requirement off.
591
+ */
592
+ updateOrg(org: string, name: string, requireTotp?: boolean): Promise<Ok<"updateOrg">>;
593
+ /**
594
+ * Deletes the organization (admin). **This cannot be undone.**
595
+ *
596
+ * `confirm` has to be the organization slug exactly — the confirmation lives on
597
+ * the server because three places call this surface (the screen, the CLI, and
598
+ * scripts). If a live project, domain, repository, or DNS zone is left, it is a
599
+ * 409 `org_not_empty` and `details.holdings` says what is left — **projects
600
+ * already deleted are not counted.**
601
+ *
602
+ * The `purgeAfter` in the answer is when the rows actually disappear. By the
603
+ * moment it returns the organization is already gone from every surface; what
604
+ * remains is retention until that time.
605
+ */
606
+ deleteOrg(org: string, confirm: string): Promise<Ok<"deleteOrg">>;
130
607
  createOrg(slug: string, name: string): Promise<Ok<"createOrg">>;
131
608
  /**
132
- * org 의 최근 알림 (docs/limits.md §3.4).
609
+ * The organization's recent notifications (docs/limits.md §3.4).
133
610
  *
134
- * `sentAt` 이 없는 행은 아직 큐에 있거나 받을 이메일이 없는 것이다 — 후자에게
135
- * 이 목록이 유일한 통로라, 화면은 두 상태를 같게 그린다.
611
+ * A row with no `sentAt` is either still queued or has no email address to
612
+ * reach — and for the second, this list is the only channel, so the screen
613
+ * draws both states the same way.
136
614
  */
137
615
  listNotifications(org: string, limit?: number): Promise<Ok<"listNotifications">>;
616
+ /**
617
+ * The plan and billing state (docs/billing.md). If `enabled` is false, this
618
+ * deployment has no billing — the screen shows only a contact address.
619
+ */
620
+ getBilling(org: string): Promise<Ok<"getBilling">>;
621
+ /**
622
+ * A Pro checkout session. Send the browser to the `url` that comes back. Even
623
+ * once payment finishes, the thing that changes the plan is the webhook, so
624
+ * read `getBilling` again after the browser returns.
625
+ */
626
+ createBillingCheckout(org: string, returnTo: string): Promise<Ok<"createBillingCheckout">>;
627
+ /** A one-time `url` for the customer portal (payment method, receipts, cancellation). */
628
+ createBillingPortal(org: string, returnTo: string): Promise<Ok<"createBillingPortal">>;
629
+ /** The customer session token for the payment-method embed (1 hour). An org with no payment history gets a 404. */
630
+ createBillingSession(org: string): Promise<Ok<"createBillingSession">>;
631
+ /** Schedules cancellation at the end of the period (`cancel: true`), or undoes it. There is no immediate revocation. */
632
+ cancelBilling(org: string, body: {
633
+ cancel: boolean;
634
+ reason?: string;
635
+ comment?: string;
636
+ }): Promise<Ok<"cancelBilling">>;
637
+ /** The org's spending limit, this month's overage against it and the lock (docs/customer-limits.md §3). */
638
+ getSpendingLimit(org: string): Promise<Ok<"getSpendingLimit">>;
639
+ /** Sets the spending limit in cents (admin). A value below this month's overage locks the org at once. */
640
+ setSpendingLimit(org: string, cents: number): Promise<Ok<"setSpendingLimit">>;
641
+ /** A project's app memory, per-request CPU and spending limits (docs/customer-limits.md §4, §12). */
642
+ getProjectLimits(org: string, name: string): Promise<Ok<"getProjectLimits">>;
643
+ /** A field left out is unchanged; null puts it back on the plan's value, or removes the project's spending limit (admin). */
644
+ setProjectLimits(org: string, name: string, body: Schemas["ProjectLimitsUpdate"]): Promise<Ok<"setProjectLimits">>;
138
645
  listProjects(org: string): Promise<Ok<"listProjects">>;
139
646
  createProject(org: string, name: string): Promise<Ok<"createProject">>;
140
647
  getProject(org: string, name: string): Promise<Ok<"getProject">>;
648
+ /**
649
+ * Renames the project (admin). **The default address moves with it and there is
650
+ * no alias** — which is why the response carries the new address. Unlike the
651
+ * org slug, this name can change because it is the inner label of the org
652
+ * wildcard certificate.
653
+ */
654
+ updateProject(org: string, name: string, next: string): Promise<Ok<"updateProject">>;
655
+ /**
656
+ * Starts tearing the project down (admin). **This cannot be undone and leaves
657
+ * no recovery generation.** `confirm` has to be the project name exactly.
658
+ */
659
+ deleteProject(org: string, name: string, confirm: string): Promise<Ok<"deleteProject">>;
660
+ /**
661
+ * Disables a project (admin): it stops serving and taking new backups, and
662
+ * keeps everything it has. A project disabled for a year is deleted for good.
663
+ */
664
+ disableProject(org: string, name: string): Promise<Ok<"disableProject">>;
665
+ /** Enables a disabled project (admin). 409 `project_limit` when there is no room for it. */
666
+ enableProject(org: string, name: string): Promise<Ok<"enableProject">>;
667
+ /** Watches the teardown operation to its end even after the project is gone. */
668
+ getOrgOperation(org: string, opId: string): Promise<Ok<"getOrgOperation">>;
669
+ /** Everything the project's first screen takes in one call. Usage calls `getUsage` alongside it. */
670
+ getProjectOverview(org: string, name: string): Promise<Ok<"getProjectOverview">>;
141
671
  listDeployments(org: string, name: string): Promise<Ok<"listDeployments">>;
142
- /** 본문이 곧 번들이다. 다이제스트 하나가 코드와 자산 전부를 덮는다. */
143
- deploy(org: string, name: string, bundle: Uint8Array): Promise<Ok<"createDeployment">>;
144
- /** 멱등이다. 두 번 불러도 비밀번호는 굴지 않고 같은 접속 정보가 온다. */
145
- createDatabase(org: string, name: string): Promise<Ok<"createDatabase">>;
672
+ /**
673
+ * One deployment, with `migrations` when the control plane applied its
674
+ * `migrations/` — which today means a preview deployed with `db=branch`
675
+ * (docs/studio.md §6.6 step 2).
676
+ *
677
+ * A preview's deployment is read under **the parent project's name**, the name
678
+ * the caller deployed through: the preview is a project of its own, but the
679
+ * caller never learns its name.
680
+ */
681
+ getDeployment(org: string, name: string, deploymentId: string): Promise<Ok<"getDeployment">>;
682
+ /** Completed-front HTTP outcomes only; native crash-free health is unknown. */
683
+ getReleaseHealth(org: string, name: string): Promise<Ok<"getReleaseHealth">>;
684
+ /** Historical first transition per issue; never substitutes a latest occurrence. */
685
+ listReleaseIssues(org: string, name: string, version: number, opts: {
686
+ kind: "new" | "regressed";
687
+ windowStart: string;
688
+ windowEnd: string;
689
+ cursor?: string;
690
+ }): Promise<Ok<"listReleaseIssues">>;
691
+ /** Runlot Errors: the issue stream (docs/customer-error-tracking.md). */
692
+ listErrorIssues(org: string, name: string, opts?: {
693
+ status?: "unresolved" | "resolved" | "archived" | "all";
694
+ query?: string;
695
+ cursor?: string;
696
+ limit?: number;
697
+ }): Promise<Ok<"listErrorIssues">>;
698
+ getErrorIssue(org: string, name: string, issueId: string): Promise<Ok<"getErrorIssue">>;
699
+ updateErrorIssue(org: string, name: string, issueId: string, update: ErrorIssueUpdate): Promise<Ok<"updateErrorIssue">>;
700
+ /** Source context, suspects and owners for the selected stored occurrence, or latest when omitted. */
701
+ getErrorInsights(org: string, name: string, issueId: string, opts?: {
702
+ eventId?: string;
703
+ }): Promise<Ok<"getErrorInsights">>;
704
+ listErrorEvents(org: string, name: string, issueId: string, opts?: {
705
+ cursor?: string;
706
+ limit?: number;
707
+ }): Promise<Ok<"listErrorEvents">>;
708
+ getErrorEvent(org: string, name: string, issueId: string, eventId: string): Promise<Ok<"getErrorEvent">>;
709
+ /**
710
+ * Other events of the project joined to this one by front's request ID or a
711
+ * browser-minted trace ID (§12). Correlation only: issues are never merged.
712
+ */
713
+ getRelatedErrorEvents(org: string, name: string, issueId: string, eventId: string): Promise<Ok<"getRelatedErrorEvents">>;
714
+ /** An issue's hourly history from the ClickHouse store; `available: false` where there is none. */
715
+ getErrorHistory(org: string, name: string, issueId: string, days?: number): Promise<Ok<"getErrorHistory">>;
716
+ /** Assign an issue to an org member, or clear it with null. */
717
+ assignErrorIssue(org: string, name: string, issueId: string, userId: string | null): Promise<Ok<"assignErrorIssue">>;
718
+ listErrorComments(org: string, name: string, issueId: string): Promise<Ok<"listErrorComments">>;
719
+ /** Plain text, at most 4000 characters; the author is the signed-in user. */
720
+ addErrorComment(org: string, name: string, issueId: string, body: string): Promise<Ok<"addErrorComment">>;
721
+ /** Merge up to ten issues of the same origin into `targetIssueId`. */
722
+ mergeErrorIssues(org: string, name: string, targetIssueId: string, sourceIssueIds: string[]): Promise<Ok<"mergeErrorIssues">>;
723
+ /** Take a merged source back out of the issue it was merged into. */
724
+ unmergeErrorIssue(org: string, name: string, issueId: string): Promise<Ok<"unmergeErrorIssue">>;
725
+ /** Shared stack hints: frame overlap, never a merge or a causal claim. */
726
+ similarErrorIssues(org: string, name: string, issueId: string): Promise<Ok<"similarErrorIssues">>;
727
+ getErrorFingerprintRules(org: string, name: string): Promise<Ok<"getErrorFingerprintRules">>;
728
+ putErrorFingerprintRules(org: string, name: string, rules: ErrorFingerprintRule[]): Promise<Ok<"putErrorFingerprintRules">>;
729
+ getErrorAlerts(org: string, name: string): Promise<Ok<"getErrorAlerts">>;
730
+ putErrorAlertRule(org: string, name: string, id: string, rule: components["schemas"]["ErrorAlertRule"]): Promise<Ok<"putErrorAlertRule">>;
731
+ deleteErrorAlertRule(org: string, name: string, id: string): Promise<void>;
732
+ putErrorAlertDestination(org: string, name: string, id: string, input: components["schemas"]["ErrorAlertDestinationInput"]): Promise<Ok<"putErrorAlertDestination">>;
733
+ deleteErrorAlertDestination(org: string, name: string, id: string): Promise<void>;
734
+ getErrorAlertMail(org: string, name: string): Promise<Ok<"getErrorAlertMail">>;
735
+ putErrorAlertMail(org: string, name: string, preference: components["schemas"]["ErrorAlertMailPreference"]): Promise<Ok<"putErrorAlertMail">>;
736
+ listErrorAlertDeliveries(org: string, name: string): Promise<Ok<"listErrorAlertDeliveries">>;
737
+ listMonitors(org: string, name: string): Promise<Ok<"listMonitors">>;
738
+ exportMonitors(org: string, name: string): Promise<Ok<"exportMonitors">>;
739
+ getMonitor(org: string, name: string, id: string): Promise<Ok<"getMonitor">>;
740
+ putMonitor(org: string, name: string, id: string, monitor: components["schemas"]["Monitor"]): Promise<Ok<"putMonitor">>;
741
+ deleteMonitor(org: string, name: string, id: string): Promise<void>;
742
+ getMonitorHistory(org: string, name: string, id: string, limit?: number): Promise<Ok<"getMonitorHistory">>;
743
+ testMonitor(org: string, name: string, id: string): Promise<Ok<"testMonitor">>;
744
+ listDowntimes(org: string, name: string): Promise<Ok<"listDowntimes">>;
745
+ putDowntime(org: string, name: string, id: string, downtime: components["schemas"]["Downtime"]): Promise<Ok<"putDowntime">>;
746
+ deleteDowntime(org: string, name: string, id: string): Promise<void>;
747
+ listSLOs(org: string, name: string): Promise<Ok<"listSLOs">>;
748
+ getSLO(org: string, name: string, id: string): Promise<Ok<"getSLO">>;
749
+ putSLO(org: string, name: string, id: string, slo: components["schemas"]["SLO"]): Promise<Ok<"putSLO">>;
750
+ deleteSLO(org: string, name: string, id: string): Promise<void>;
751
+ /**
752
+ * Observability access and governance (customer-observability.md §12, §16, §17.15):
753
+ * the caller's grants, per-project role overrides, the audit trail, the data page,
754
+ * caps, export destinations and rehydration.
755
+ */
756
+ getObservabilityPermissions(org: string, name: string): Promise<Ok<"getObservabilityPermissions">>;
757
+ listObservabilityRoles(org: string, name: string): Promise<Ok<"listObservabilityRoles">>;
758
+ putObservabilityRole(org: string, name: string, userId: string, grants: ObservabilityPermission[]): Promise<Ok<"putObservabilityRole">>;
759
+ deleteObservabilityRole(org: string, name: string, userId: string): Promise<void>;
760
+ listObservabilityAudit(org: string, name: string, opts?: {
761
+ limit?: number;
762
+ before?: string;
763
+ }): Promise<Ok<"listObservabilityAudit">>;
764
+ getObservabilityData(org: string, name: string): Promise<Ok<"getObservabilityData">>;
765
+ getObservabilityCaps(org: string, name: string): Promise<Ok<"getObservabilityCaps">>;
766
+ /** Named meters only: a number, -1 (no cap, Pro) or null (the plan's included amount). */
767
+ putObservabilityCaps(org: string, name: string, caps: Schemas["ObservabilityCapsUpdate"]): Promise<Ok<"putObservabilityCaps">>;
768
+ listObservabilityExports(org: string, name: string): Promise<Ok<"listObservabilityExports">>;
769
+ getObservabilityExport(org: string, name: string, exportId: string): Promise<Ok<"getObservabilityExport">>;
770
+ createObservabilityExport(org: string, name: string, input: Schemas["ObservabilityExportCreate"]): Promise<Ok<"createObservabilityExport">>;
771
+ updateObservabilityExport(org: string, name: string, exportId: string, input: Schemas["ObservabilityExportUpdate"]): Promise<Ok<"updateObservabilityExport">>;
772
+ deleteObservabilityExport(org: string, name: string, exportId: string): Promise<void>;
773
+ listObservabilityRehydrations(org: string, name: string): Promise<Ok<"listObservabilityRehydrations">>;
774
+ getObservabilityRehydration(org: string, name: string, jobId: string): Promise<Ok<"getObservabilityRehydration">>;
775
+ /** Loads an archived range back for seven days; the answer is the queued job. */
776
+ createObservabilityRehydration(org: string, name: string, input: {
777
+ exportId: string;
778
+ from: string;
779
+ to: string;
780
+ }): Promise<Ok<"createObservabilityRehydration">>;
781
+ /** `runlot bug-report` (customer-observability.md §14): the CP snapshots what the references name. */
782
+ createBugReport(org: string, input: Schemas["BugReportCreate"]): Promise<Ok<"createBugReport">>;
783
+ listBugReports(org: string): Promise<Ok<"listBugReports">>;
784
+ getBugReport(org: string, reportId: string, opts?: {
785
+ snapshot?: boolean;
786
+ }): Promise<Ok<"getBugReport">>;
787
+ deleteBugReport(org: string, reportId: string): Promise<void>;
788
+ /** Synthetic HTTP checks of the project's own addresses (customer-observability.md §17.11). */
789
+ listUptimeChecks(org: string, name: string): Promise<Ok<"listUptimeChecks">>;
790
+ putUptimeCheck(org: string, name: string, id: string, input: components["schemas"]["UptimeCheckInput"]): Promise<Ok<"putUptimeCheck">>;
791
+ deleteUptimeCheck(org: string, name: string, id: string): Promise<void>;
792
+ listUptimeRuns(org: string, name: string, id: string, limit?: number): Promise<Ok<"listUptimeRuns">>;
793
+ /** Dashboards (customer-observability.md §17.7). A built-in's id is `builtin:<key>`. */
794
+ listDashboards(org: string, name: string): Promise<Ok<"listDashboards">>;
795
+ createDashboard(org: string, name: string, input: Schemas["DashboardInput"]): Promise<Ok<"createDashboard">>;
796
+ getDashboard(org: string, name: string, id: string): Promise<Ok<"getDashboard">>;
797
+ putDashboard(org: string, name: string, id: string, input: Schemas["DashboardInput"]): Promise<Ok<"putDashboard">>;
798
+ deleteDashboard(org: string, name: string, id: string): Promise<void>;
799
+ /** The `.runlot/dashboards/<key>.json` form of a dashboard. */
800
+ exportDashboard(org: string, name: string, id: string): Promise<Ok<"exportDashboard">>;
801
+ /** Make (or rotate) the public link; the token is shown once. */
802
+ shareDashboard(org: string, name: string, id: string, isPublic?: boolean): Promise<Ok<"shareDashboard">>;
803
+ unshareDashboard(org: string, name: string, id: string): Promise<void>;
804
+ getDashboardWidgetData(org: string, name: string, id: string, widgetId: string, req?: Schemas["WidgetDataRequest"]): Promise<Ok<"getDashboardWidgetData">>;
805
+ getDashboardSettings(org: string, name: string): Promise<Ok<"getDashboardSettings">>;
806
+ putDashboardSettings(org: string, name: string, settings: Schemas["DashboardSettings"]): Promise<Ok<"putDashboardSettings">>;
807
+ /** Deploy and OOM markers for every time series. */
808
+ getObservabilityMarkers(org: string, name: string, range?: {
809
+ from?: string;
810
+ to?: string;
811
+ }): Promise<Ok<"getObservabilityMarkers">>;
812
+ /** Watchdog insights (§17.10). Free: deploy regressions only. */
813
+ listInsights(org: string, name: string, opts?: {
814
+ state?: "open" | "resolved" | "all";
815
+ limit?: number;
816
+ }): Promise<Ok<"listInsights">>;
817
+ /** A project's capacity risks and every check (docs/capacity-risk-alerts.md §5.3). Every plan. */
818
+ getProjectHealth(org: string, name: string): Promise<Ok<"getProjectHealth">>;
819
+ /** Every project's capacity status and the organization's budget check. */
820
+ getOrgHealth(org: string): Promise<Ok<"getOrgHealth">>;
821
+ resolveInsight(org: string, name: string, id: string): Promise<void>;
822
+ /** Synthetic checks (§17.11): the uptime checks, including multi-step API checks. */
823
+ listSynthetics(org: string, name: string): Promise<Ok<"listSynthetics">>;
824
+ putSynthetic(org: string, name: string, id: string, input: Schemas["UptimeCheckInput"]): Promise<Ok<"putSynthetic">>;
825
+ deleteSynthetic(org: string, name: string, id: string): Promise<void>;
826
+ listSyntheticRuns(org: string, name: string, id: string, limit?: number): Promise<Ok<"listSyntheticRuns">>;
827
+ /** A public dashboard link. Needs no credential. */
828
+ getSharedDashboard(token: string): Promise<Ok<"getSharedDashboard">>;
829
+ getSharedDashboardWidgetData(token: string, widgetId: string, req?: Schemas["WidgetDataRequest"]): Promise<Ok<"getSharedDashboardWidgetData">>;
830
+ private obsApmPath;
831
+ getObsMetricsOverview(org: string, name: string, opts?: ObsRangeQuery & ObsRedQuery & {
832
+ groupBy?: "version";
833
+ }): Promise<Ok<"getObsMetricsOverview">>;
834
+ getObsMetricsMemory(org: string, name: string, opts?: ObsRangeQuery): Promise<Ok<"getObsMetricsMemory">>;
835
+ getObsMetricsInfrastructure(org: string, name: string, opts?: ObsRangeQuery): Promise<Ok<"getObsMetricsInfrastructure">>;
836
+ getObsMetricsCustom(org: string, name: string, opts: ObsRangeQuery & {
837
+ name: string;
838
+ agg?: string;
839
+ tags?: string;
840
+ groupBy?: string;
841
+ }): Promise<Ok<"getObsMetricsCustom">>;
842
+ getObsMetricsCustomNames(org: string, name: string): Promise<Ok<"getObsMetricsCustomNames">>;
843
+ listObsRoutes(org: string, name: string): Promise<Ok<"listObsRoutes">>;
844
+ putObsRoute(org: string, name: string, input: components["schemas"]["ObsRouteStateInput"]): Promise<Ok<"putObsRoute">>;
845
+ getObsAPMRoutes(org: string, name: string, opts?: ObsRangeQuery & ObsRedQuery): Promise<Ok<"getObsAPMRoutes">>;
846
+ getObsAPMBreakdown(org: string, name: string, route: string, opts?: ObsRangeQuery & {
847
+ version?: number;
848
+ }): Promise<Ok<"getObsAPMBreakdown">>;
849
+ getObsAPMServiceMap(org: string, name: string, opts?: ObsRangeQuery & {
850
+ version?: number;
851
+ }): Promise<Ok<"getObsAPMServiceMap">>;
852
+ getObsAPMCompare(org: string, name: string, a: number, b: number, opts?: ObsRangeQuery): Promise<Ok<"getObsAPMCompare">>;
853
+ listObsAPMTraces(org: string, name: string, opts?: {
854
+ from?: string;
855
+ to?: string;
856
+ before?: string;
857
+ route?: string;
858
+ status?: string;
859
+ minDuration?: number;
860
+ hasError?: boolean;
861
+ version?: number;
862
+ }): Promise<Ok<"listObsAPMTraces">>;
863
+ getObsAPMTrace(org: string, name: string, traceId: string): Promise<Ok<"getObsAPMTrace">>;
864
+ listObsTraceFilters(org: string, name: string): Promise<Ok<"listObsTraceFilters">>;
865
+ createObsTraceFilter(org: string, name: string, input: components["schemas"]["ObsTraceFilterInput"]): Promise<Ok<"createObsTraceFilter">>;
866
+ updateObsTraceFilter(org: string, name: string, id: string, input: components["schemas"]["ObsTraceFilterInput"]): Promise<Ok<"updateObsTraceFilter">>;
867
+ deleteObsTraceFilter(org: string, name: string, id: string): Promise<void>;
868
+ listObsDBQueries(org: string, name: string, opts?: {
869
+ from?: string;
870
+ to?: string;
871
+ }): Promise<Ok<"listObsDBQueries">>;
872
+ getObsDBQuery(org: string, name: string, fingerprint: string, opts?: {
873
+ from?: string;
874
+ to?: string;
875
+ }): Promise<Ok<"getObsDBQuery">>;
876
+ getObsDBHealth(org: string, name: string): Promise<Ok<"getObsDBHealth">>;
877
+ /** The continuous profiler's switch (customer-observability.md §17.13). */
878
+ getObsProfilerSettings(org: string, name: string): Promise<ObsProfilerSettings>;
879
+ /** On, off, or null for the default. Applies from the next deployment or restart. Admin. */
880
+ putObsProfilerSettings(org: string, name: string, enabled: boolean | null): Promise<ObsProfilerSettings>;
881
+ /** The logs/traces sampling override; a null field is the manifest's. */
882
+ getObsSampling(org: string, name: string): Promise<ObsSampling>;
883
+ /** Replaces the override (null = the manifest's). Admin. */
884
+ putObsSampling(org: string, name: string, body: ObsSampling): Promise<ObsSampling>;
885
+ listObsProfiles(org: string, name: string, q?: ObsProfileQuery): Promise<ObsProfileList>;
886
+ /** The windows within a minute of `ts` — the profile of a slow trace's minute. */
887
+ nearObsProfiles(org: string, name: string, ts: string): Promise<ObsProfileList>;
888
+ getObsFlamegraph(org: string, name: string, q?: Omit<ObsProfileQuery, "limit">): Promise<ObsFlamegraph>;
889
+ getObsProfileTop(org: string, name: string, q?: ObsProfileQuery): Promise<ObsProfileTop>;
890
+ /** Self-time share per function, version a against version b; `route` compares only the samples attributed to it. */
891
+ compareObsProfiles(org: string, name: string, a: number, b: number, q?: Pick<ObsProfileQuery, "from" | "to" | "route">): Promise<ObsProfileCompare>;
892
+ /** RUM: page views, sessions and p75 vitals over time (Pro). */
893
+ getObsRUMOverview(org: string, name: string, q?: ObsRUMQuery): Promise<ObsRUMOverview>;
894
+ /** RUM by page template, with vitals, long tasks and resource/fetch timings (Pro). */
895
+ listObsRUMPages(org: string, name: string, q?: ObsRUMQuery & {
896
+ sort?: "views" | "lcp" | "inp" | "cls";
897
+ }): Promise<ObsRUMPages>;
898
+ /** RUM by device class (Pro). */
899
+ listObsRUMDevices(org: string, name: string, q?: ObsRUMQuery): Promise<ObsRUMDevices>;
900
+ /** RUM page views, newest (or slowest LCP) first (Pro). */
901
+ listObsRUMViews(org: string, name: string, q?: ObsRUMQuery & {
902
+ session?: string;
903
+ sort?: "recent" | "slowest";
904
+ limit?: number;
905
+ }): Promise<ObsRUMViewList>;
906
+ /** One page view and the server requests it caused (Pro). */
907
+ getObsRUMView(org: string, name: string, viewId: string): Promise<ObsRUMView>;
908
+ /** Starts one heap snapshot (Pro, admin; pauses the app while taken). Poll the list. */
909
+ createObsHeapSnapshot(org: string, name: string): Promise<ObsHeapSnapshot>;
910
+ listObsHeapSnapshots(org: string, name: string): Promise<ObsHeapSnapshotList>;
911
+ /** The download URL of a ready snapshot (a `.heapsnapshot` file). */
912
+ obsHeapSnapshotURL(org: string, name: string, snapshotId: string): string;
913
+ /** A ready snapshot's text (Chrome DevTools heap snapshot JSON). */
914
+ downloadObsHeapSnapshot(org: string, name: string, snapshotId: string): Promise<string>;
915
+ getErrorOwnership(org: string, name: string): Promise<Ok<"getErrorOwnership">>;
916
+ createErrorOwnershipPin(org: string, name: string, input: Schemas["ErrorOwnershipPinInput"]): Promise<Ok<"createErrorOwnershipPin">>;
917
+ revokeErrorOwnershipPin(org: string, name: string, deploymentId: string, selector: string): Promise<void>;
918
+ getErrorCapturePolicy(org: string, name: string): Promise<Ok<"getErrorCapturePolicy">>;
919
+ putErrorCapturePolicy(org: string, name: string, policy: ErrorCapturePolicy, acknowledgePII?: boolean): Promise<Ok<"putErrorCapturePolicy">>;
920
+ private obsPath;
921
+ getObservabilityCapabilities(org: string, name: string): Promise<Ok<"getObservabilityCapabilities">>;
922
+ /** Runs a query; `{ available: false }` where there is no event store. */
923
+ queryObservability(org: string, name: string, query: ObsQuery): Promise<Ok<"queryObservability">>;
924
+ listObservabilityKeys(org: string, name: string, opts?: {
925
+ since?: string;
926
+ until?: string;
927
+ view?: "events" | "invocations" | "spans";
928
+ }): Promise<Ok<"listObservabilityKeys">>;
929
+ listObservabilityValues(org: string, name: string, key: string, opts?: {
930
+ since?: string;
931
+ until?: string;
932
+ view?: "events" | "invocations" | "spans";
933
+ }): Promise<Ok<"listObservabilityValues">>;
934
+ listObservabilityPatterns(org: string, name: string, opts?: {
935
+ since?: string;
936
+ until?: string;
937
+ level?: string;
938
+ }): Promise<Ok<"listObservabilityPatterns">>;
939
+ getObservabilityRequest(org: string, name: string, requestId: string): Promise<Ok<"getObservabilityRequest">>;
940
+ listSavedQueries(org: string, name: string): Promise<Ok<"listSavedQueries">>;
941
+ getSavedQuery(org: string, name: string, queryId: string): Promise<Ok<"getSavedQuery">>;
942
+ createSavedQuery(org: string, name: string, input: SavedQueryInput): Promise<Ok<"createSavedQuery">>;
943
+ updateSavedQuery(org: string, name: string, queryId: string, input: SavedQueryInput): Promise<Ok<"updateSavedQuery">>;
944
+ deleteSavedQuery(org: string, name: string, queryId: string): Promise<void>;
945
+ starSavedQuery(org: string, name: string, queryId: string): Promise<Ok<"starSavedQuery">>;
946
+ unstarSavedQuery(org: string, name: string, queryId: string): Promise<Ok<"unstarSavedQuery">>;
947
+ getObservabilityPipeline(org: string, name: string): Promise<Ok<"getObservabilityPipeline">>;
948
+ putObservabilityPipeline(org: string, name: string, processors: ObsProcessor[]): Promise<Ok<"putObservabilityPipeline">>;
949
+ getObservabilityScanner(org: string, name: string): Promise<Ok<"getObservabilityScanner">>;
950
+ putObservabilityScanner(org: string, name: string, scanner: ObsScannerConfig): Promise<Ok<"putObservabilityScanner">>;
951
+ /** Runs a scanner (the project's, or `scanner`) over a sample; nothing is stored. */
952
+ testObservabilityScanner(org: string, name: string, text: string, scanner?: ObsScannerConfig): Promise<Ok<"testObservabilityScanner">>;
953
+ /** The whole ingest configuration, shaped as `.runlot/logs.json`. */
954
+ exportObservabilityLogsConfig(org: string, name: string): Promise<Ok<"exportObservabilityLogsConfig">>;
955
+ listObservabilityLogMetrics(org: string, name: string): Promise<Ok<"listObservabilityLogMetrics">>;
956
+ putObservabilityLogMetric(org: string, name: string, metric: string, def: ObsLogMetric): Promise<Ok<"putObservabilityLogMetric">>;
957
+ deleteObservabilityLogMetric(org: string, name: string, metric: string): Promise<void>;
958
+ getErrorEventPII(org: string, name: string, issueId: string, eventId: string): Promise<Ok<"getErrorEvent">>;
959
+ getErrorSettings(org: string, name: string): Promise<Ok<"getErrorSettings">>;
960
+ putErrorSettings(org: string, name: string,
961
+ /** Omitted writable fields preserve their values; ownership assignment defaults off. */
962
+ settings: Schemas["ErrorSettingsUpdate"]): Promise<Ok<"putErrorSettings">>;
963
+ /**
964
+ * One AI diagnosis of an issue, billed to the org's AI credit. There is no
965
+ * prompt to pass: the control plane builds it from the issue's stored event.
966
+ * The same `idempotencyKey` again returns the stored answer without a second
967
+ * charge, so a caller retrying after a timeout must reuse its key.
968
+ */
969
+ diagnoseErrorIssue(org: string, name: string, issueId: string, body: {
970
+ model: string;
971
+ idempotencyKey: string;
972
+ }): Promise<Ok<"diagnoseErrorIssue">>;
973
+ listErrorDiagnoses(org: string, name: string, issueId: string): Promise<Ok<"listErrorDiagnoses">>;
974
+ private fixPath;
975
+ /**
976
+ * Ask a model to propose a fix for an issue. Billed to the org's AI credit and
977
+ * writes nothing: the repository, base commit and files are chosen by the control
978
+ * plane. Reuse `idempotencyKey` on a retry so it is not charged twice.
979
+ */
980
+ proposeErrorFix(org: string, name: string, issueId: string, body: {
981
+ model: string;
982
+ idempotencyKey: string;
983
+ }): Promise<Ok<"proposeErrorFix">>;
984
+ listErrorFixProposals(org: string, name: string, issueId: string): Promise<Ok<"listErrorFixProposals">>;
985
+ getErrorFixProposal(org: string, name: string, issueId: string, proposalId: string): Promise<Ok<"getErrorFixProposal">>;
986
+ /**
987
+ * Write a ready proposal as one commit on its own `runlot/autofix/` branch. It
988
+ * builds, deploys and merges nothing. `proposalSha` must be the proposal's exactly.
989
+ */
990
+ applyErrorFix(org: string, name: string, issueId: string, proposalId: string, proposalSha: string): Promise<Ok<"applyErrorFix">>;
991
+ lookupErrorFixProposal(org: string, name: string, issueId: string, key: string): Promise<ErrorFixProposal>;
992
+ lookupErrorFixPreview(org: string, name: string, issueId: string, proposalId: string, key: string): Promise<ErrorFixPreview>;
993
+ lookupErrorFixVerification(org: string, name: string, issueId: string, proposalId: string, jobId: string, key: string): Promise<ErrorFixPreviewVerification>;
994
+ approveErrorFixPreview(org: string, name: string, issueId: string, proposalId: string, body: ErrorFixPreviewApproval): Promise<Ok<"approveErrorFixPreview">>;
995
+ getErrorFixPreview(org: string, name: string, issueId: string, proposalId: string, jobId: string): Promise<Ok<"getErrorFixPreview">>;
996
+ approveErrorFixPreviewVerification(org: string, name: string, issueId: string, proposalId: string, jobId: string, body: ErrorFixPreviewVerificationApproval): Promise<Ok<"approveErrorFixPreviewVerification">>;
997
+ /** Erase captured issue data, after explicit review. Admin; unmerge first. */
998
+ deleteErrorIssue(org: string, name: string, issueId: string): Promise<Ok<"deleteErrorIssue">>;
999
+ /** Erase an exact application user ID; anonymous aggregates remain. Admin. */
1000
+ eraseErrorUser(org: string, name: string, userId: string): Promise<Ok<"eraseErrorUser">>;
1001
+ /** Untrusted browser histograms and technical-fuse counters, not billed usage. Viewer. */
1002
+ getBrowserTelemetry(org: string, name: string): Promise<Ok<"getBrowserTelemetry">>;
1003
+ /** Unverified feedback whose exact browser error anchor belongs to this issue. Never includes email. */
1004
+ listBrowserFeedback(org: string, name: string, issueId: string): Promise<Ok<"listBrowserFeedback">>;
1005
+ /** Explicit sensitive read. Admin + errors:pii; optional unverified email only while feedback-email retention is on. */
1006
+ listBrowserFeedbackWithPII(org: string, name: string, issueId: string): Promise<Ok<"listBrowserFeedback">>;
1007
+ /** The masked structural replay switch, cap and this month's count. Viewer. */
1008
+ getErrorReplaySettings(org: string, name: string): Promise<Ok<"getErrorReplaySettings">>;
1009
+ /**
1010
+ * Both fields are required: `monthlyCap` null is the plan's amount, `0` stops collection,
1011
+ * `-1` removes the cap (Pro). Admin.
1012
+ */
1013
+ putErrorReplaySettings(org: string, name: string, settings: {
1014
+ enabled: boolean;
1015
+ monthlyCap: number | null;
1016
+ }): Promise<Ok<"putErrorReplaySettings">>;
1017
+ /** An issue's complete masked structural replays. Admin, until a granular PII scope exists. */
1018
+ listErrorReplays(org: string, name: string, issueId: string): Promise<Ok<"listErrorReplays">>;
1019
+ /** One replay and its re-validated batches, for the sandboxed player. Admin. */
1020
+ getErrorReplay(org: string, name: string, issueId: string, replayId: string): Promise<Ok<"getErrorReplay">>;
1021
+ /**
1022
+ * Scheduled runs: what the live deployment declares, when each fires next, and
1023
+ * the recent history (docs/cron.md §8). `limit` bounds the history rows only —
1024
+ * the schedules and the per-schedule last run are never paged.
1025
+ */
1026
+ getProjectCron(org: string, name: string, limit?: number): Promise<Ok<"getProjectCron">>;
1027
+ /**
1028
+ * Queues: what the live deployment declares, how deep each one is, and the
1029
+ * recent batch history (docs/queues.md §6). The depth is read from the
1030
+ * project's own database; `depthError` on the answer says when it could not be.
1031
+ */
1032
+ getProjectQueues(org: string, name: string, limit?: number): Promise<Ok<"getProjectQueues">>;
1033
+ /**
1034
+ * Durable Objects: how many this project has placed, against the two caps
1035
+ * (docs/durable-objects.md).
1036
+ *
1037
+ * **It answers how much, never which.** There is no actor id in the response
1038
+ * and none is coming — those name individual objects, and a list of them would
1039
+ * be an object enumeration wearing a quota's name. `nodes` is keyed by node id
1040
+ * because `nodeLimit` is a separate bound that can refuse a placement while
1041
+ * the project-wide cap still has room.
1042
+ */
1043
+ getProjectDurableObjects(org: string, name: string): Promise<Ok<"getProjectDurableObjects">>;
1044
+ private queuePath;
1045
+ listQueueRuns(org: string, name: string, queue: string, limit?: number): Promise<Ok<"listQueueRuns">>;
1046
+ /** The head of the queue without leasing it — looking cannot delay a delivery. */
1047
+ peekQueue(org: string, name: string, queue: string, limit?: number): Promise<Ok<"peekQueue">>;
1048
+ /** Irreversible. The confirmation is the caller's — the server holds none. */
1049
+ purgeQueue(org: string, name: string, queue: string): Promise<Ok<"purgeQueue">>;
1050
+ /**
1051
+ * Moves a dead-letter queue's messages back. `to` is required only when the
1052
+ * dead-letter queue belongs to more than one consumer, or to none.
1053
+ */
1054
+ redriveQueue(org: string, name: string, queue: string, to?: string): Promise<Ok<"redriveQueue">>;
1055
+ /**
1056
+ * The vector store: every namespace with its count and width, and the plan's
1057
+ * bounds (docs/vectors.md §4). Read from the project's own database;
1058
+ * `readError` on the answer says when it could not be.
1059
+ */
1060
+ getProjectVectors(org: string, name: string): Promise<Ok<"getProjectVectors">>;
1061
+ /** Irreversible. The confirmation is the caller's — the server holds none. */
1062
+ deleteVectorNamespace(org: string, name: string, namespace: string): Promise<Ok<"deleteVectorNamespace">>;
1063
+ /** The body is the bundle. One digest covers all of the code and the assets. */
1064
+ /**
1065
+ * Uploads the bundle. `headers` carries the provenance headers
1066
+ * (`X-Runlot-Git-*`, openapi createDeployment) — the body is the bundle
1067
+ * itself, so the metadata can only travel in headers.
1068
+ */
1069
+ deploy(org: string, name: string, bundle: Uint8Array, headers?: Record<string, string>): Promise<Ok<"createDeployment">>;
1070
+ /**
1071
+ * The same upload, aimed at a preview (docs/preview.md). **It does not move
1072
+ * production's live pointer** — that is the whole difference, and it is why
1073
+ * this is a named method rather than an optional argument on `deploy`: a
1074
+ * caller that forgets the argument deploys to production.
1075
+ *
1076
+ * `db` picks what `env.db` points at (`branch` by default, `shared` at
1077
+ * production's own database, `none` for no database), and `from` pours the
1078
+ * branch from a named generation instead of the newest one.
1079
+ */
1080
+ deployPreview(org: string, name: string, bundle: Uint8Array, opts: {
1081
+ preview: string;
1082
+ db?: string | undefined;
1083
+ from?: string | undefined;
1084
+ }, headers?: Record<string, string>): Promise<DeployedPreview>;
1085
+ /**
1086
+ * Opens an incremental upload (docs/incremental-deploy-upload.md §1.1). `files` is
1087
+ * the bundle's entry list in tar order; the answer names the hashes to upload.
1088
+ * An older CP answers 404 here — the caller falls back to `deploy`.
1089
+ */
1090
+ createDeploymentUpload(org: string, name: string, files: DeploymentUploadEntry[], preview?: PreviewTarget): Promise<DeploymentUpload>;
1091
+ /** One batch: a gzip tar whose entries are named by their content's sha256 (§1.2). */
1092
+ uploadDeploymentBlobs(org: string, name: string, uploadId: string, batch: Uint8Array): Promise<{
1093
+ received: string[];
1094
+ missing: string[];
1095
+ }>;
1096
+ /**
1097
+ * Assembles and deploys the session (§1.3). The answer is `createDeployment`'s
1098
+ * (with `preview` for a preview session). Idempotent per session, so a retry
1099
+ * after an edge timeout returns the same deployment.
1100
+ */
1101
+ commitDeploymentUpload(org: string, name: string, uploadId: string, headers?: Record<string, string>, staticChecks?: DeployStaticChecks): Promise<DeployedPreview>;
1102
+ /** The parent's live previews (viewer). A deleted preview is not listed. */
1103
+ listPreviews(org: string, name: string): Promise<Ok<"listPreviews">>;
1104
+ /**
1105
+ * Deletes a preview and its branch (member).
1106
+ *
1107
+ * No confirmation string, unlike `deleteProject`: a branch is a copy taken at a
1108
+ * moment and nothing in it is the only copy of anything.
1109
+ */
1110
+ deletePreview(org: string, name: string, preview: string): Promise<void>;
1111
+ /**
1112
+ * Makes the preview's artifact the parent's live deployment (member).
1113
+ *
1114
+ * **The code, never the data** (docs/preview.md §7). The branch is not merged
1115
+ * and production's database is not replaced. The preview stays alive.
1116
+ */
1117
+ promotePreview(org: string, name: string, preview: string): Promise<Ok<"promotePreview">>;
1118
+ /**
1119
+ * The project's share link — `<label>.share.<app-domain>`, the one address
1120
+ * Studio hands to somebody who is not a developer (docs/studio.md §6.9).
1121
+ *
1122
+ * 404 when the project has never been shared: a link is minted by
1123
+ * `putShareLink`, never as a side effect of reading.
1124
+ */
1125
+ getShareLink(org: string, name: string): Promise<Ok<"getShareLink">>;
1126
+ /**
1127
+ * Points the share link at a preview, minting the label if there is none.
1128
+ *
1129
+ * Idempotent: the label is kept across shares, so somebody holding the link
1130
+ * keeps working. `rotate` mints a new label and retires the old name in the
1131
+ * same request ("링크 재발급"), so the project never has two live links.
1132
+ */
1133
+ putShareLink(org: string, name: string, opts?: {
1134
+ preview?: string;
1135
+ rotate?: boolean;
1136
+ }): Promise<Ok<"putShareLink">>;
1137
+ /** Stops the link answering and forgets the label. The preview keeps running. */
1138
+ deleteShareLink(org: string, name: string): Promise<void>;
1139
+ /**
1140
+ * Creates a database named `name` in the org (member). When `name` is a project
1141
+ * without a database, this is that project's own `env.db`. Idempotent for a
1142
+ * project's own database: the password is not rolled and the same connection
1143
+ * details come back.
1144
+ */
1145
+ createDatabase(org: string, name: string): Promise<Ok<"createOrgDatabase">>;
1146
+ /** One database: size, state and the projects that bind it. 404 when there is none. */
146
1147
  getDatabase(org: string, name: string): Promise<Ok<"getDatabase">>;
147
1148
  /**
148
- * 접속 자격까지. `getDatabase` 와 라우트가 갈린 것은 역할 때문이다 —
149
- * viewer 는 여부를 알아도 되지만 비밀번호는 아니다 (proto/openapi.yaml).
1149
+ * The connection credentials as well. The route is split from `getDatabase`
1150
+ * because of roles — a viewer may know whether there is a database, but not
1151
+ * the password (proto/openapi.yaml).
150
1152
  */
151
1153
  getDatabaseConnect(org: string, name: string): Promise<Ok<"getDatabaseConnect">>;
152
- /** 접속 끝점만 — 자격 없음. viewer 도 받는다. `runlot port-forward` 가 쓴다. */
1154
+ /** The endpoint only — no credentials. A viewer gets it too. Used by `runlot db forward`. */
153
1155
  getDatabaseEndpoint(org: string, name: string): Promise<Ok<"getDatabaseEndpoint">>;
154
- /** 단기 기계 자격 발급. 비밀번호는 이 응답에만 실린다. */
1156
+ /** Issues a short-lived machine credential. The password is carried in this response and nowhere else. */
155
1157
  createDatabaseToken(org: string, name: string, ttlSeconds?: number): Promise<Ok<"createDatabaseToken">>;
156
1158
  listDatabaseTokens(org: string, name: string): Promise<Ok<"listDatabaseTokens">>;
157
1159
  deleteDatabaseToken(org: string, name: string, user: string): Promise<void>;
158
1160
  /**
159
- * 진단 이미지를 하나 만든다.
1161
+ * Makes one diagnostic image.
160
1162
  *
161
- * **멱등이 아니다** — 부를 때마다 이미지가 하나 생긴다. 그리고 느리다:
162
- * 응답은 덤프가 끝난 뒤에 오고, 그동안 그 프로젝트의 액터는 붙잡혀 있다
163
- * (proto/openapi.yaml).
1163
+ * **Not idempotent** — every call makes another image. And it is slow: the
1164
+ * response comes after the dump finishes, and that project's actor is held
1165
+ * for the whole of it (proto/openapi.yaml).
164
1166
  */
165
1167
  exportDatabase(org: string, name: string): Promise<Ok<"exportDatabase">>;
166
1168
  /**
167
- * 복원이 고를 수 있는 세대 전부. 최신 순이고, `lastCheckedAt` 은 무변경
168
- * 스킵의 하트비트다 — 세대가 늘지 않는 것과 백업이 죽은 것을 가른다.
1169
+ * Every generation a restore can choose, newest first. `lastCheckedAt` is the
1170
+ * heartbeat of the no-change skip — it is what tells "no new generations"
1171
+ * apart from "the backup is dead".
169
1172
  */
170
1173
  listGenerations(org: string, name: string): Promise<Ok<"listGenerations">>;
171
1174
  /**
172
- * 세대로 되돌린다. **그 사이의 쓰기는 사라진다.**
1175
+ * Runs one statement in a database (the dashboard console).
1176
+ *
1177
+ * `readOnly` is **omitted, not sent as false**, when the caller wants the safe
1178
+ * mode: the server treats an absent field as read-only, so leaving it out is the
1179
+ * one spelling that cannot be misread. Sending `false` is the explicit ask for
1180
+ * write mode, and only then does the server run outside a transaction.
1181
+ *
1182
+ * SQL failures arrive as an `ApiError` whose body carries `details.sqlstate` —
1183
+ * PostgreSQL's own code, which is what the error panel shows.
1184
+ */
1185
+ executeSQL(org: string, name: string, sql: string, opts?: {
1186
+ readOnly?: boolean;
1187
+ params?: unknown[];
1188
+ }): Promise<Ok<"executeSQL">>;
1189
+ /**
1190
+ * Rolls back to a generation. **Writes made since then are lost.**
173
1191
  *
174
- * 202 로 끝난다 — 돌아오는 것은 연산 id 이고, 진행은
175
- * `getDatabaseOperation` 으로 본다. `latest` 는 서버가 풀지 않는다:
176
- * 목록에서 고른 `(epoch, seq)` 를 그대로 싣는다 (proto/openapi.yaml).
1192
+ * It ends at 202 — what comes back is an operation id, and progress is read
1193
+ * through `getDatabaseOperation`. The server does not resolve `latest`: the
1194
+ * `(epoch, seq)` chosen from the list is carried as-is (proto/openapi.yaml).
177
1195
  */
178
1196
  restoreDatabase(org: string, name: string, epoch: number, seq: number): Promise<Ok<"restoreDatabase">>;
179
1197
  /**
180
- * 데이터베이스를 없앤다. `confirm` 은 프로젝트 이름과 **정확히** 같아야
181
- * 하고, 다르면 서버가 400 `confirm_mismatch` 로 거절한다.
1198
+ * Rolls back to a restore point **inside** a backup (pg-feather docs/37):
1199
+ * `txnId` is that commit, `at` is the last commit at or before that time. One
1200
+ * backup carries the commits in between in order, so the place you can roll
1201
+ * back to is not tied to a backup boundary. Everything else is as in
1202
+ * restoreDatabase — 202, an operation id, and one safety backup before the
1203
+ * rollback.
1204
+ */
1205
+ restoreDatabaseTo(org: string, name: string, target: {
1206
+ txnId: number;
1207
+ } | {
1208
+ at: string;
1209
+ }): Promise<Ok<"restoreDatabase">>;
1210
+ /**
1211
+ * Removes a database (admin). `confirm` has to match the database name
1212
+ * **exactly**; if it does not, the server refuses with 400 `confirm_mismatch`.
1213
+ * A bound database answers 409 `database_bound` unless `unbindAll` is set.
1214
+ */
1215
+ deleteDatabase(org: string, name: string, confirm: string, opts?: {
1216
+ unbindAll?: boolean;
1217
+ }): Promise<Ok<"deleteDatabase">>;
1218
+ /**
1219
+ * Removes one project's binding to a database (admin), for a project nobody will
1220
+ * redeploy — a deploy otherwise reconciles bindings from runlot.json. 204.
182
1221
  */
183
- deleteDatabase(org: string, name: string, confirm: string): Promise<Ok<"deleteDatabase">>;
184
- /** 연산 하나의 진행. 연산 id 는 자격이 아니라 프로젝트 경로 아래에 있다. */
1222
+ unbindDatabase(org: string, database: string, project: string): Promise<void>;
1223
+ /** Every database in the org with the projects that bind it. Viewer and above. */
1224
+ listOrgDatabases(org: string): Promise<Ok<"listOrgDatabases">>;
1225
+ /** The progress of one operation. The operation id is not a credential; it lives under the database path. */
185
1226
  getDatabaseOperation(org: string, name: string, opId: string): Promise<Ok<"getDatabaseOperation">>;
186
- /** 되돌릴 수 없는 phase 앞의 연산을 중단한다. */
1227
+ /** Aborts an operation that has not yet reached a phase it cannot come back from. */
187
1228
  abortDatabaseOperation(org: string, name: string, opId: string): Promise<Ok<"abortDatabaseOperation">>;
188
1229
  /**
189
- * 로그 라이브 테일. **JSON 이 아니라 스트림**이라 `request` 를 안 지난다 —
190
- * 돌려주는 것은 줄 단위 `LogEvent` 의 async iterable 이고, `signal` 을 abort
191
- * 하면 연결이 끊긴다. 오류 응답(4xx/5xx)은 다른 메서드와 같은 `ApiError` 다.
1230
+ * A live tail of the logs. It is **a stream, not JSON**, so it does not go
1231
+ * through `request` — what comes back is an async iterable of line-by-line
1232
+ * `LogEvent`, and aborting `signal` closes the connection. An error response
1233
+ * (4xx/5xx) is the same `ApiError` as in every other method.
192
1234
  */
193
1235
  tailLogs(org: string, name: string, opts?: {
194
1236
  tail?: number;
195
1237
  follow?: boolean;
196
1238
  signal?: AbortSignal;
197
- }): AsyncGenerator<LogEvent, void, undefined>;
1239
+ } & LogTailFilter): AsyncGenerator<LogEvent, void, undefined>;
1240
+ /**
1241
+ * The live tail as `LogRecord`s — the stored event's shape (`--format json`).
1242
+ * Pings and the end event still arrive as `LogEvent`s.
1243
+ */
1244
+ tailLogRecords(org: string, name: string, opts?: {
1245
+ tail?: number;
1246
+ follow?: boolean;
1247
+ signal?: AbortSignal;
1248
+ } & LogTailFilter): AsyncGenerator<LogRecord | LogEvent, void, undefined>;
1249
+ private tailStream;
1250
+ /**
1251
+ * The stored lane (0062). It is a plain JSON page, not a stream: the history
1252
+ * does not reach a node, so it answers for a project that is cold, parked, or
1253
+ * has moved since the lines were written — every one of which is a 409 on
1254
+ * `tailLogs`.
1255
+ *
1256
+ * `q` is a plain substring, matched case-insensitively. It is not a regular
1257
+ * expression — `%` and `_` match themselves.
1258
+ *
1259
+ * Paging is keyset: pass the `cursor` from a page back to get the next, older
1260
+ * one. A page with no `cursor` is the end of what is kept.
1261
+ */
1262
+ getLogHistory(org: string, name: string, opts?: {
1263
+ since?: string | undefined;
1264
+ until?: string | undefined;
1265
+ q?: string | undefined;
1266
+ stream?: "stdout" | "stderr" | "runlot" | undefined;
1267
+ limit?: number | undefined;
1268
+ cursor?: string | undefined;
1269
+ }): Promise<LogHistoryPage>;
198
1270
  listSecrets(org: string, name: string): Promise<Ok<"listSecrets">>;
199
- /** 값은 이 호출로만 나간다. 어떤 응답에도 값은 없다. */
1271
+ /** The value travels in this call only. It is in no response at all. */
200
1272
  setSecret(org: string, name: string, secret: string, value: string): Promise<Ok<"setSecret">>;
201
1273
  deleteSecret(org: string, name: string, secret: string): Promise<void>;
202
1274
  getUsage(org: string, name: string, hours?: number): Promise<Ok<"getUsage">>;
203
- /** 부여 여부·접두·쿼터·사용량. `usedBytes` 는 노드 보고 주기만큼 늦다. */
1275
+ /** Grant, prefix, quota, usage. `usedBytes` lags by the node's reporting interval. */
204
1276
  getStorage(org: string, name: string): Promise<Ok<"getStorage">>;
205
1277
  /**
206
- * 스토리지를 부여한다. 멱등이라 두 번 눌러도 접두는 그대로다. 접두·쿼터를
207
- * 인자로 받지 않는 것이 요점이다 — 접두는 격리의 경계이고 쿼터는 요금제가
208
- * 정한다 (proto/openapi.yaml).
1278
+ * Grants storage. It is idempotent, so pressing twice leaves the prefix as it
1279
+ * was. Taking neither the prefix nor the quota as an argument is the point —
1280
+ * the prefix is the isolation boundary and the quota is set by the plan
1281
+ * (proto/openapi.yaml).
209
1282
  */
210
1283
  grantStorage(org: string, name: string): Promise<Ok<"grantStorage">>;
211
- /** 부여를 뗀다. **객체는 지워지지 않는다** (docs/storage.md §7). */
1284
+ /** Removes the grant. **The objects are not deleted** (docs/storage.md §7). */
212
1285
  revokeStorage(org: string, name: string): Promise<void>;
213
1286
  /**
214
- * 부여 여부·설정·프로바이더·호스트. **가입자는 안 온다** — 그 표는 프로젝트
215
- * DB 안이고 (docs/auth.md §6) 워커의 `env.auth` 만 본다.
1287
+ * The key prefixes this project serves unsigned (docs/storage.md §4.7).
1288
+ *
1289
+ * A prefix is stored normalized — `assets` becomes `assets/`, and `/` becomes
1290
+ * the empty string, which means every key. The value that comes back is the
1291
+ * value that governs, so a screen must render the response rather than what
1292
+ * the user typed.
1293
+ */
1294
+ listStoragePublic(org: string, name: string): Promise<Ok<"listStoragePublic">>;
1295
+ /** Publishes a prefix. Idempotent. All three verbs answer with the whole list. */
1296
+ addStoragePublic(org: string, name: string, prefix: string): Promise<Ok<"addStoragePublic">>;
1297
+ /**
1298
+ * Unpublishes a prefix. Idempotent.
1299
+ *
1300
+ * **The world keeps reading for up to a minute.** The object front caches the
1301
+ * list, so this call is not a revocation that takes effect at the instant it
1302
+ * returns — a screen that says "no longer public" the moment this resolves is
1303
+ * telling a small lie.
1304
+ */
1305
+ removeStoragePublic(org: string, name: string, prefix: string): Promise<Ok<"removeStoragePublic">>;
1306
+ /**
1307
+ * One page of objects grouped by `/` (`runlot storage ls`). `prefixes` are the
1308
+ * folders one level down; feed `cursor` back unchanged, its absence is the end.
1309
+ */
1310
+ listStorageObjects(org: string, name: string, opts?: {
1311
+ prefix?: string;
1312
+ cursor?: string;
1313
+ limit?: number;
1314
+ }): Promise<Ok<"listStorageObjects">>;
1315
+ /**
1316
+ * A five-minute signed GET for one object (`runlot storage download`). The key's
1317
+ * `/` segments stay in the path; each segment is encoded on its own.
1318
+ */
1319
+ signStorageObject(org: string, name: string, key: string): Promise<Ok<"signStorageObject">>;
1320
+ /** Grant, address, sender, limits, recent counts. The address comes back as a preview even without a grant. */
1321
+ getEmail(org: string, name: string): Promise<Ok<"getEmail">>;
1322
+ /** Turns it on. **Idempotent** — we choose the address. The deploy reads `"email": true` and calls this. */
1323
+ grantEmail(org: string, name: string): Promise<Ok<"grantEmail">>;
1324
+ /** Turns it off. Mail arriving at that address now gets a 550. */
1325
+ revokeEmail(org: string, name: string): Promise<void>;
1326
+ /** The project's own sending domains, each with the records to publish. */
1327
+ listEmailDomains(org: string, name: string): Promise<Ok<"listEmailDomains">>;
1328
+ /**
1329
+ * Creates the provider identity and answers with the records to publish.
1330
+ * `publish` writes them into the zone when we host one covering the domain.
1331
+ */
1332
+ addEmailDomain(org: string, name: string, domain: string, publish?: boolean): Promise<Ok<"addEmailDomain">>;
1333
+ /** Re-checks now. The background loop does the same once a minute while pending. */
1334
+ verifyEmailDomain(org: string, name: string, domain: string): Promise<Ok<"verifyEmailDomain">>;
1335
+ /** Deletes the identity and the row. Sending from it is refused from the next convergence. */
1336
+ removeEmailDomain(org: string, name: string, domain: string): Promise<void>;
1337
+ /**
1338
+ * The model catalogue. **Being logged in is enough to see it** — what you can
1339
+ * buy is not an organization's secret, and this list is the price table.
1340
+ *
1341
+ * Prices are integer **micro-cents** per million tokens (1 µ¢ = 1e-8 USD).
1342
+ * Not letting the server pick the decimal place is the point — a small call
1343
+ * rounded to cents becomes 0.
1344
+ */
1345
+ listAIModels(): Promise<Ok<"listAIModels">>;
1346
+ /** Grant, limits, the org balance, 24 h usage. The limits come back as a preview even without a grant. */
1347
+ getAI(org: string, name: string): Promise<Ok<"getAI">>;
1348
+ /** Turns it on. **Idempotent.** The deploy reads `"ai": true` and calls this. */
1349
+ grantAI(org: string, name: string): Promise<Ok<"grantAI">>;
1350
+ /**
1351
+ * Lends the org's own Claude/Codex subscriptions to this project's
1352
+ * `anthropic/*` and `openai/*` calls (docs/studio-byos-ai.md §3.1).
1353
+ *
1354
+ * **Omitting a field leaves it as it was**, so turning lending on does not
1355
+ * clear a fallback that was already set. Admin only: the subscription that
1356
+ * carries the vendor-terms risk belongs to a person, not to the org.
1357
+ */
1358
+ patchAI(org: string, name: string, body: {
1359
+ byos?: boolean;
1360
+ byosCreditFallback?: boolean;
1361
+ }): Promise<Ok<"patchAI">>;
1362
+ /** Turns it off. **The ledger and the balance are untouched** — the balance belongs to the org and the grant belongs to the project. */
1363
+ revokeAI(org: string, name: string): Promise<void>;
1364
+ /** The org's credit balance and its automatic top-up settings. The balance is in micro-cents and can be negative. */
1365
+ getAICredit(org: string): Promise<Ok<"getAICredit">>;
1366
+ /**
1367
+ * One page of this project's AI calls, newest first (docs/ai-observability.md §6.1).
1368
+ * `before` is the previous page's opaque `nextBefore`.
1369
+ */
1370
+ listAICalls(org: string, name: string, opts?: {
1371
+ from?: string;
1372
+ to?: string;
1373
+ model?: string;
1374
+ op?: "run" | "embed" | "judge";
1375
+ lane?: "credit" | "byos" | "none";
1376
+ byos?: "served" | "fellBack" | "refused" | "attempted";
1377
+ status?: "ok" | "error";
1378
+ sessionId?: string;
1379
+ userId?: string;
1380
+ requestId?: string;
1381
+ tag?: string;
1382
+ before?: string;
1383
+ limit?: number;
1384
+ }): Promise<Ok<"listAICalls">>;
1385
+ /** One AI call; the input and output ride only for a reader with observability:pii. */
1386
+ getAICall(org: string, name: string, callId: string): Promise<Ok<"getAICall">>;
1387
+ /** AI calls over time, by model, and the reasons lending did not serve (§6.3). */
1388
+ getAISummary(org: string, name: string, opts?: {
1389
+ from?: string;
1390
+ to?: string;
1391
+ }): Promise<Ok<"getAISummary">>;
1392
+ /** AI calls grouped by the app's `metadata.sessionId` (§6.4). */
1393
+ listAISessions(org: string, name: string, opts?: {
1394
+ from?: string;
1395
+ to?: string;
1396
+ before?: string;
1397
+ limit?: number;
1398
+ }): Promise<Ok<"listAISessions">>;
1399
+ /** The org members' desktops that can lend to this project right now (§6.5). */
1400
+ getAILenders(org: string, name: string): Promise<Ok<"getAILenders">>;
1401
+ /** Whether this project records prompts and answers (§5). */
1402
+ getAICapture(org: string, name: string): Promise<Ok<"getAICapture">>;
1403
+ /** Turns prompt capture on or off. observability:admin; audited. */
1404
+ setAICapture(org: string, name: string, captureBodies: boolean): Promise<Ok<"setAICapture">>;
1405
+ /** One page of the org ledger. The cursor is `ledger_id` — cutting on time splits the same millisecond. */
1406
+ listAILedger(org: string, opts?: {
1407
+ limit?: number;
1408
+ before?: number;
1409
+ kind?: "call" | "topup" | "adjust";
1410
+ since?: string;
1411
+ }): Promise<Ok<"listAILedger">>;
1412
+ /**
1413
+ * The credit top-up checkout. **A browser coming back is not evidence** — the
1414
+ * one thing that raises the balance is the `order.paid` webhook, and the
1415
+ * screen polls the balance after the success event.
1416
+ */
1417
+ createAICreditCheckout(org: string, microCents: number, returnTo: string): Promise<Ok<"createAICreditCheckout">>;
1418
+ /**
1419
+ * Turns automatic top-up on or off. **Turning it on is explicit consent**
1420
+ * (docs/ai.md §3.5) — the screen shows the charging terms verbatim and calls
1421
+ * this only after the box is checked.
1422
+ */
1423
+ setAIAutoTopup(org: string, body: {
1424
+ enabled: boolean;
1425
+ belowMicroCents?: number;
1426
+ microCents?: number;
1427
+ }): Promise<Ok<"setAIAutoTopup"> | void>;
1428
+ /** One page of the mail log (docs/email.md §6.1). Newest first, cursor-paged. */
1429
+ listMailLog(org: string, name: string, opts?: {
1430
+ direction?: "in" | "out";
1431
+ cursor?: string;
1432
+ limit?: number;
1433
+ }): Promise<Ok<"listMailLog">>;
1434
+ /** The metadata of one message. */
1435
+ getMailLog(org: string, name: string, mailId: string): Promise<Ok<"getMailLog">>;
1436
+ /** The URL of the raw message — the screen uses it as a download link (.eml). */
1437
+ mailLogRawURL(org: string, name: string, mailId: string): string;
1438
+ /** The raw text. What the detail view draws the headers and body from. */
1439
+ getMailLogRaw(org: string, name: string, mailId: string): Promise<string>;
1440
+ /**
1441
+ * Grant, settings, providers, hosts. **The signed-up users do not come** —
1442
+ * that table is inside the project DB (docs/auth.md §6) and only the worker's
1443
+ * `env.auth` sees it.
216
1444
  *
217
- * `providers` 에는 client id 만 있다. 클라이언트 시크릿은 봉인돼 어느
218
- * 응답에도 안 나온다.
1445
+ * `providers` carries the client id only. The client secret is sealed and
1446
+ * appears in no response.
219
1447
  */
220
- getAuth(org: string, name: string): Promise<Ok<"getAuth">>;
1448
+ getAuth(org: string, name: string): Promise<AuthStatus>;
221
1449
  /**
222
- * 인증을 켠다 (member). 멱등이다.
1450
+ * Turns auth on (member). Idempotent.
223
1451
  *
224
- * **데이터베이스가 없으면 409 `database_required`** 다 — 가입자 표가
225
- * 프로젝트 DB 안이라 부여만 세우면 워커가 뜨는 순간 표가 없다. 부르는 쪽은
226
- * 그 코드를 잡아 `runlot pg create` 를 안내한다.
1452
+ * **With no database it is 409 `database_required`** — the user table lives
1453
+ * inside the project DB, so standing up the grant alone leaves no table the
1454
+ * moment the worker starts. The caller catches that code and points at the
1455
+ * `"database": true` declaration — the deploy never sees this code, because
1456
+ * its ordering rules it out.
227
1457
  */
228
- grantAuth(org: string, name: string): Promise<Ok<"grantAuth">>;
1458
+ grantAuth(org: string, name: string): Promise<AuthStatus>;
229
1459
  /**
230
- * 설정을 바꾼다 (member). **부분 갱신이다** — 준 칸만 바뀐다. 스위치 하나에
231
- * 전체를 실어 보내면 두 사람이 같은 카드를 만질 때 나중 저장이 앞 저장을
232
- * 덮는다. 부여가 없으면 404 `not_granted`.
1460
+ * The app's end users, newest first (`runlot auth users`). Read-only, and read
1461
+ * from the project's own database — a parked or unreachable one answers 502/504.
1462
+ * Feed `cursor` back unchanged; its absence is the end.
233
1463
  */
234
- updateAuthSettings(org: string, name: string, settings: AuthSettingsInput): Promise<Ok<"updateAuthSettings">>;
1464
+ listAppUsers(org: string, name: string, opts?: {
1465
+ search?: string;
1466
+ cursor?: string;
1467
+ limit?: number;
1468
+ }): Promise<Ok<"listAppUsers">>;
235
1469
  /**
236
- * 인증을 해제한다 (admin). **가입자는 안 지워진다** — `runlot_auth` 의 표는
237
- * 프로젝트 DB 에 남고, 다시 켜면 같은 사람들이 그대로 로그인한다.
1470
+ * One `env.ai.run` on the development lane: catalog models, the free plan's caps,
1471
+ * the org's credit, recorded as `lane = dev`. One JSON answer, no streaming.
1472
+ */
1473
+ devAIRun(org: string, name: string, body: DevAIRunRequest): Promise<Ok<"devAIRun">>;
1474
+ /**
1475
+ * Changes the settings (member). **A partial update** — only the fields given
1476
+ * change. Sending the whole thing on one switch means that when two people
1477
+ * touch the same card, the later save overwrites the earlier one. With no
1478
+ * grant it is 404 `not_granted`.
1479
+ */
1480
+ updateAuthSettings(org: string, name: string, settings: AuthSettingsInput): Promise<AuthStatus>;
1481
+ /**
1482
+ * Turns auth off (admin). **The signed-up users are not deleted** — the
1483
+ * `runlot_auth` tables stay in the project DB, and turning it back on lets the
1484
+ * same people log in unchanged.
238
1485
  */
239
1486
  revokeAuth(org: string, name: string): Promise<void>;
240
1487
  /**
241
- * 소셜 프로바이더를 등록하거나 교체한다 (admin). 같은 PUT 이라 멱등이다.
1488
+ * Registers or replaces a social provider (admin). It is the same PUT, so it
1489
+ * is idempotent.
242
1490
  *
243
- * **`clientSecret` 은 다시 볼 수 없다.** 콜백 URL 은 호스트마다
244
- * `https://<host>/__runlot/auth/callback/<provider>` 이고, 호스트 목록은
245
- * 응답의 `hosts` 에 있다.
1491
+ * **`clientSecret` cannot be read back.** The callback URL is
1492
+ * `https://<host>/__runlot/auth/callback/<provider>` for each host, and the
1493
+ * list of hosts is in the response's `hosts`.
1494
+ *
1495
+ * `issuer` is the base URL of your own GitHub Enterprise Server installation,
1496
+ * and only `github` takes one. **This PUT is the whole row** — the same reason
1497
+ * `clientSecret` has to be sent every time — so an empty string clears it and
1498
+ * puts that provider back on github.com. The key is left out entirely when the
1499
+ * argument is omitted, so a caller that does not know about issuers sends the
1500
+ * body it always sent.
1501
+ */
1502
+ setAuthProvider(org: string, name: string, provider: AuthProvider, clientId: string, clientSecret: string, issuer?: string): Promise<AuthStatus>;
1503
+ /**
1504
+ * Turns on the Runlot provider (admin): "Continue with Runlot", with email,
1505
+ * Google and GitHub at Runlot behind it and nothing to register. 409
1506
+ * `runlot_unavailable` when this deployment has no sign-in broker.
1507
+ */
1508
+ setRunlotAuthProvider(org: string, name: string): Promise<AuthStatus>;
1509
+ /**
1510
+ * Registers or replaces a generic OIDC provider under a project-chosen id
1511
+ * (admin). The CP reads `<issuer>/.well-known/openid-configuration` when
1512
+ * saving; a failure is 400 `oidc_discovery_failed` quoting the provider.
1513
+ */
1514
+ setOidcAuthProvider(org: string, name: string, id: string, body: {
1515
+ issuer: string;
1516
+ clientId: string;
1517
+ clientSecret: string;
1518
+ displayName?: string;
1519
+ iconUrl?: string;
1520
+ scopes?: string;
1521
+ }): Promise<AuthStatus>;
1522
+ /**
1523
+ * The statements that create the `runlot_auth` schema (member). 404 when
1524
+ * login is not turned on for the project.
1525
+ */
1526
+ getAuthSchema(org: string, name: string): Promise<AuthSchema>;
1527
+ /** The project's sign-in branding with defaults filled (docs/custom-sign-in.md §12.3). */
1528
+ getAuthBranding(org: string, name: string): Promise<AuthBranding>;
1529
+ /** The GET answer whole: the filled brand plus the methods the chooser would draw now. */
1530
+ getAuthBrandingAnswer(org: string, name: string): Promise<AuthBrandingAnswer>;
1531
+ /**
1532
+ * Replaces the whole branding object (member). Validated server-side; a bad
1533
+ * field is 400 `invalid_branding` with `fields: [{path, message}]`.
246
1534
  */
247
- setAuthProvider(org: string, name: string, provider: AuthProvider, clientId: string, clientSecret: string): Promise<Ok<"setAuthProvider">>;
1535
+ putAuthBranding(org: string, name: string, branding: Partial<AuthBranding>): Promise<AuthBranding>;
248
1536
  /**
249
- * 프로바이더를 뗀다 (admin). 그 프로바이더로만 가입한 사람은 로그인할 길을
250
- * 잃지만 사용자 행은 남는다 — 다시 등록하면 같은 계정으로 돌아온다.
1537
+ * The URL of the rendered chooser with (draft) branding (§12.4). A page, not
1538
+ * JSON: the dashboard puts it in an iframe and the CLI opens it in a browser.
1539
+ * `draft` travels as base64url JSON.
1540
+ */
1541
+ authBrandingPreviewUrl(org: string, name: string, opts?: AuthPreviewOpts): string;
1542
+ /** Sign-in funnel counters for the last `days` days (§9.4). No per-person data. */
1543
+ getAuthFunnel(org: string, name: string, days?: number): Promise<AuthFunnel>;
1544
+ /**
1545
+ * Removes a provider (admin). Someone who signed up only through that provider
1546
+ * loses their way in, but the user row stays — register it again and they come
1547
+ * back to the same account.
251
1548
  */
252
1549
  deleteAuthProvider(org: string, name: string, provider: AuthProvider): Promise<void>;
253
1550
  /**
254
- * 이 배포에 누가 닿을 수 있는가. **값은 없다** — 비밀번호도 우회 시크릿도
255
- * 해시로만 살고, 여기 오는 것은 `hasPassword`·`hasBypass` 라는 사실이다.
1551
+ * Who can reach this deployment. **No values** — both the password and the
1552
+ * bypass secret live only as hashes, and what comes back here is the fact that
1553
+ * there is one: `hasPassword` and `hasBypass`.
256
1554
  *
257
- * 정책을 한 번도 안 정한 프로젝트는 `mode: "public"` 에 `updatedAt` 이
258
- * 없다. 화면이 그 둘을 가르는 이유는 §7 — 빈 상태 대신 상태 문장이다.
1555
+ * A project that has never set a policy is `mode: "public"` with no
1556
+ * `updatedAt`. The screen tells those two apart for the reason in §7 — a
1557
+ * sentence about the state instead of an empty state.
259
1558
  */
260
1559
  getAccess(org: string, name: string): Promise<Ok<"getAccess">>;
261
1560
  /**
262
- * 정책을 바꾼다 (admin). `password` 를 안 보내면 **있던 비밀번호가 남는다** —
263
- * 모드만 바꾸는 저장이 비밀번호를 지우면 되돌아왔을 때 다시 정해야 한다.
1561
+ * Changes the policy (admin). Without a `password`, **the existing password
1562
+ * stays** — if a save that only changes the mode wiped the password, coming
1563
+ * back to that mode would mean setting it again.
264
1564
  */
265
1565
  setAccess(org: string, name: string, mode: AccessMode, password?: string): Promise<Ok<"setAccess">>;
266
1566
  /**
267
- * 자동화 우회 시크릿을 만든다 (admin). **값은 이 답에만 있다** — 화면은
268
- * 받은 즉시 한 번 보여주고 다시 못 가져온다. 다시 부르면 옛 값이 죽는다.
1567
+ * Makes a bypass secret for automation (admin). **The value is in this answer
1568
+ * and nowhere else** — the screen shows it once on arrival and can never fetch
1569
+ * it again. Calling again kills the old value.
269
1570
  */
270
1571
  newAccessBypass(org: string, name: string): Promise<Ok<"newAccessBypass">>;
271
- /** 우회를 뗀다 (admin). 없는 우회를 떼는 것도 성공이다. */
1572
+ /** Removes the bypass (admin). Removing one that does not exist also succeeds. */
272
1573
  revokeAccessBypass(org: string, name: string): Promise<void>;
273
1574
  /**
274
- * 보호된 배포로 돌아가는 1 회용 주소를 받는다 (docs/access.md §3.4-3).
1575
+ * Gets a one-time address back into a protected deployment (docs/access.md §3.4-3).
275
1576
  *
276
- * 프로젝트 경로 아래가 **아니다**: 부르는 화면이 아는 것은 호스트네임뿐이고
277
- * (원 요청이 그리로 갔다), org·프로젝트 이름은 서버가 그것에서 유도한다.
278
- * 받은 `redirect` 로 `location.replace` 하는 것이 호출부의 일이다.
1577
+ * It is **not** under the project path: all the calling screen knows is the
1578
+ * hostname (the original request went there), and the server derives the org
1579
+ * and project names from it. Doing `location.replace` with the `redirect` that
1580
+ * comes back is the caller's job.
279
1581
  */
280
1582
  authorizeAccess(to: string, next?: string): Promise<Ok<"authorizeAccess">>;
281
1583
  listMembers(org: string): Promise<Ok<"listMembers">>;
282
- /** 초대가 아니다 — 사용자는 이미 한 번 로그인해 있어야 한다 (404 `user_not_found`). */
1584
+ /** This is not an invite — the user must already have logged in once (404 `user_not_found`). */
283
1585
  addMember(org: string, provider: "dev" | "github", subject: string, role: Role): Promise<Ok<"addMember">>;
284
1586
  setMemberRole(org: string, userId: string, role: Role): Promise<Ok<"setMemberRole">>;
1587
+ /**
1588
+ * Removing someone else is admin; **removing yourself is leaving**, which
1589
+ * anyone can do (docs/members.md). The last admin can do neither
1590
+ * (409 `last_admin`).
1591
+ */
285
1592
  removeMember(org: string, userId: string): Promise<void>;
286
- /** 기본 호스트네임과 커스텀 도메인이 함께 온다 (viewer). */
1593
+ /** Pending and expired invites (admin). Accepted and revoked ones are history, so they do not come. */
1594
+ listInvites(org: string): Promise<Ok<"listInvites">>;
1595
+ /**
1596
+ * Invites by email (admin). **Calling again with the same address is a
1597
+ * resend** — the same row is updated rather than a new one created, and the
1598
+ * server gives 200 instead of 201.
1599
+ */
1600
+ createInvite(org: string, email: string, role: Role): Promise<Ok<"createInvite">>;
1601
+ /** Revokes an invite (admin). Mail that has not gone out yet does not go out. */
1602
+ revokeInvite(org: string, inviteId: string): Promise<void>;
1603
+ /**
1604
+ * A preview of the invite. **No session needed** — whoever got the link has
1605
+ * not logged in yet, and they need to know what they are accepting before
1606
+ * they do.
1607
+ */
1608
+ getInvite(token: string): Promise<Ok<"getInvite">>;
1609
+ /** Accepts (login required). If they are already a member the role does not change. */
1610
+ acceptInvite(token: string): Promise<Ok<"acceptInvite">>;
1611
+ /** The default hostname and the custom domains come together (viewer). */
287
1612
  listHostnames(org: string, name: string): Promise<Ok<"listHostnames">>;
288
1613
  /**
289
- * 커스텀 도메인을 건다 (member).
1614
+ * Attaches a custom domain (member).
290
1615
  *
291
- * 멱등이다 — 같은 이름을 다시 보내면 있던 행이 그대로 온다. 응답의 `verify`
292
- * 가 고객이 넣어야 하는 CNAME·TXT 다.
1616
+ * Idempotent — sending the same name again returns the existing row
1617
+ * unchanged. The response's `verify` is the CNAME and TXT the customer has to
1618
+ * add.
293
1619
  */
294
- addHostname(org: string, name: string, hostname: string): Promise<Ok<"addHostname">>;
295
- /** 배경 검증과 같은 판정을 즉시 부른다 (member). */
1620
+ addHostname(org: string, name: string, hostname: string, role?: "app" | "login"): Promise<Ok<"addHostname">>;
1621
+ /** Runs the same check the background verifier makes, right now (member). */
296
1622
  verifyHostname(org: string, name: string, host: string): Promise<Ok<"verifyHostname">>;
297
- /** 커스텀 도메인을 뗀다 (member). 기본 호스트네임은 400 이다. */
1623
+ /** Detaches a custom domain (member). The default hostname gives a 400. */
298
1624
  deleteHostname(org: string, name: string, host: string): Promise<void>;
299
- /** 이 조직의 존 목록. `rrsets` 는 없다 — 단건 조회에만 실려요. */
1625
+ /** The organization's zones. No `rrsets` — those ride only on a single-zone lookup. */
300
1626
  listZones(org: string): Promise<Ok<"listZones">>;
301
- /** 멱등이에요. 이미 있는 존은 그대로 돌아와요. */
1627
+ /** Idempotent. A zone that already exists comes back unchanged. */
302
1628
  createZone(org: string, name: string): Promise<Ok<"createZone">>;
303
1629
  getZone(org: string, zone: string): Promise<Ok<"getZone">>;
304
1630
  deleteZone(org: string, zone: string): Promise<void>;
305
1631
  /**
306
- * rrset 하나를 **통째로** 바꿔요. `records` 가 그 (이름, 타입) 의 새 전부라,
307
- * 값 하나를 더하려면 지금 값을 함께 보내야 해요.
1632
+ * Replaces one rrset **whole**. `records` is the complete new set for that
1633
+ * (name, type), so adding a single value means sending the current ones with
1634
+ * it.
308
1635
  */
309
1636
  putRRset(org: string, zone: string, name: string, type: RRsetType, ttl: number, records: string[]): Promise<Ok<"putRRset">>;
310
1637
  deleteRRset(org: string, zone: string, name: string, type: RRsetType): Promise<void>;
311
1638
  setZoneDNSSEC(org: string, zone: string, enabled: boolean): Promise<Ok<"setZoneDNSSEC">>;
312
1639
  setZoneDS(org: string, zone: string, ds: string[]): Promise<Ok<"setZoneDS">>;
313
- /** DNS 표면의 공통 접두. */
1640
+ /** The shared prefix of the DNS surface. */
314
1641
  private dnsPath;
315
- /** `@` 도 `*` 도 이름으로 와요. 네 군데에 같은 문자열을 적지 않아요. */
1642
+ /** Both `@` and `*` arrive as a name. Keeps the same string out of four places. */
316
1643
  private rrsetPath;
317
1644
  /**
318
- * 이름을 찾아본다 (member 이상).
1645
+ * Looks a name up (member or above).
319
1646
  *
320
- * `priceCents` 는 첫 등록 1 년, `renewalCents` 는 갱신 1 년이다. 둘이
321
- * 나뉘어 있는 이유는 첫해 할인이 흔해서다 — 하나로 접으면 "1 달러에 사서
322
- * 다음 해 15 달러" 를 화면이 말할 수 없다.
1647
+ * `priceCents` is the first year of registration; `renewalCents` is one year
1648
+ * of renewal. They are separate because a first-year discount is common —
1649
+ * folded into one, the screen cannot say "buy it for $1, then $15 next year".
323
1650
  */
324
1651
  checkDomains(org: string, names: string[]): Promise<Ok<"checkDomains">>;
325
1652
  /**
326
- * 도메인을 산다 (admin — 돈을 써요).
1653
+ * Buys a domain (admin — this spends money).
327
1654
  *
328
- * **ICANN 검증 메일이 `contact.email` 로 가요.** 화면은 사기 전에 그
329
- * 사실을 알려야 해요 (docs/domains.md §5.5).
1655
+ * **Payment comes first** (docs/domains.md §5.8). With a saved payment method
1656
+ * the answer is the registered domain; otherwise a `DomainCharge` whose
1657
+ * `checkoutUrl` is where to pay — follow it with `getDomainCharge`. Paying also
1658
+ * agrees to the automatic yearly renewal charge.
330
1659
  *
331
- * 같은 요청을 다시 보내는 것이 안전해요 — 끝난 도메인이면 그대로 오고,
332
- * 중간에 멈춘 구매면 그 자리에서 이어 가요.
1660
+ * **The ICANN verification mail goes to `contact.email`.** The screen has to
1661
+ * say so before the purchase (docs/domains.md §5.5).
333
1662
  */
334
1663
  purchaseDomain(org: string, body: {
335
1664
  name: string;
336
1665
  years?: number;
337
1666
  contact: DomainContact;
338
1667
  projectId?: string;
339
- }): Promise<Ok<"purchaseDomain">>;
340
- /** 이미 가진 도메인을 가져와요 (admin). 등록기관을 부르지 않고 존만 만들어요. */
1668
+ checkout?: boolean;
1669
+ returnTo?: string;
1670
+ }): Promise<Domain | DomainCharge>;
1671
+ /** One domain payment — how a `DomainCharge` from purchase or renewal is followed. */
1672
+ getDomainCharge(org: string, chargeId: string): Promise<Ok<"getDomainCharge">>;
1673
+ /** Domain payments, newest first. */
1674
+ listDomainCharges(org: string): Promise<Ok<"listDomainCharges">>;
1675
+ /** Imports a domain you already own (admin). Creates the zone only; the registrar is not called. */
341
1676
  importDomain(org: string, name: string): Promise<Ok<"importDomain">>;
342
1677
  listDomains(org: string): Promise<Ok<"listDomains">>;
343
1678
  getDomain(org: string, name: string): Promise<Ok<"getDomain">>;
344
- renewDomain(org: string, name: string, years: number): Promise<Ok<"renewDomain">>;
1679
+ /** Renews now, paid the same way as a purchase. */
1680
+ renewDomain(org: string, name: string, years: number, pay?: {
1681
+ checkout?: boolean;
1682
+ returnTo?: string;
1683
+ }): Promise<Domain | DomainCharge>;
345
1684
  /**
346
- * 자동 갱신 **의사**만 바꿔요.
347
- *
348
- * 등록기관 쪽 자동 갱신은 그대로 켜져 있어요 — 도메인은 하루 늦으면 잃는
349
- * 자산이라 우리가 먼저 갱신하고 뒤에 청구해요. 화면은 이 사실을 함께
350
- * 말해야 해요.
1685
+ * Turns automatic renewal on or off. On: one year is charged 30 days before
1686
+ * expiry. Off: nothing is charged and the domain lapses at expiry.
351
1687
  */
352
1688
  setDomainAutoRenew(org: string, name: string, enabled: boolean): Promise<Ok<"setDomainAutoRenew">>;
353
1689
  setDomainLock(org: string, name: string, locked: boolean): Promise<Ok<"setDomainLock">>;
354
- /** 이전 코드예요. 감사에 발급 사실이 남고 **코드는 남지 않아요**. */
1690
+ /** The transfer auth code. The audit records that one was issued and **not the code itself**. */
355
1691
  domainAuthCode(org: string, name: string): Promise<Ok<"getDomainAuthCode">>;
356
- /** 지금 등록기관에서 다시 읽어요 (member). */
1692
+ /** Re-reads from the registrar right now (member). */
357
1693
  syncDomain(org: string, name: string): Promise<Ok<"syncDomain">>;
358
- /** 도메인 표면의 공통 접두. 열 군데에 같은 문자열을 적지 않아요. */
1694
+ /** The shared prefix of the domain surface. Keeps the same string out of ten places. */
359
1695
  private domainsPath;
360
1696
  private domainPath;
361
- /** 프로젝트 표면의 공통 접두다. */
1697
+ /** The shared prefix of the project surface. */
362
1698
  private projectPath;
363
- /** 데이터베이스 표면의 공통 접두다. 다섯 군데에 같은 문자열을 적지 않는다. */
1699
+ /** The shared prefix of the database surface. Keeps the same string out of five places. */
364
1700
  private dbPath;
365
1701
  listRepos(org: string, project: string): Promise<Ok<"listRepos">>;
366
1702
  createRepo(org: string, project: string, body: {
@@ -375,25 +1711,71 @@ export declare class Client {
375
1711
  defaultBranch?: string | undefined;
376
1712
  }): Promise<void>;
377
1713
  deleteRepo(org: string, project: string, name: string): Promise<void>;
378
- /** ref 이력. force-push 로 잃은 커밋을 되찾는 단서가 여기 있다. */
1714
+ /** The ref history. The lead for recovering a commit lost to a force-push is here. */
379
1715
  listRefUpdates(org: string, project: string, name: string): Promise<Ok<"listRefUpdates">>;
1716
+ getDeployHook(org: string, project: string, name: string): Promise<Ok<"getDeployHook">>;
1717
+ setDeployHook(org: string, project: string, name: string, body: {
1718
+ enabled?: boolean | undefined;
1719
+ branch?: string | undefined;
1720
+ rootDir?: string | undefined;
1721
+ }): Promise<Ok<"setDeployHook">>;
1722
+ deleteDeployHook(org: string, project: string, name: string): Promise<void>;
1723
+ /** Build a commit without pushing. Omit `commitSha` for the hooked branch's tip. */
1724
+ deployRepoNow(org: string, project: string, name: string, commitSha?: string): Promise<Ok<"deployRepoNow">>;
1725
+ listBuilds(org: string, project: string, limit?: number): Promise<Ok<"listBuilds">>;
1726
+ getBuild(org: string, project: string, buildId: string): Promise<Ok<"getBuild">>;
1727
+ /**
1728
+ * A build's output. It comes back as **text**, not JSON — see the endpoint's
1729
+ * description. `json()` would try to parse it and fail on the first line.
1730
+ */
1731
+ getBuildLog(org: string, project: string, buildId: string): Promise<string>;
1732
+ cancelBuild(org: string, project: string, buildId: string): Promise<void>;
380
1733
  listSSHKeys(): Promise<Ok<"listSSHKeys">>;
381
1734
  addSSHKey(publicKey: string, name?: string): Promise<Ok<"addSSHKey">>;
382
1735
  deleteSSHKey(keyId: string): Promise<void>;
383
1736
  listAccessTokens(): Promise<Ok<"listAccessTokens">>;
384
- /** 평문은 이 응답에 **한 번만** 실린다. */
1737
+ /** The plaintext is carried in this response **once** and never again. */
385
1738
  createAccessToken(body: {
386
1739
  name: string;
1740
+ /** 0032's single-valued field. `scopes` is the one to send. */
387
1741
  scope?: TokenScope | undefined;
1742
+ scopes?: readonly ApiScope[] | undefined;
1743
+ /** Restrict the token to one org, and optionally to one project inside it. */
1744
+ org?: string | undefined;
1745
+ project?: string | undefined;
388
1746
  ttlHours?: number | undefined;
1747
+ /** Days until expiry. The server defaults to 90 and refuses more than 365. */
1748
+ expiresInDays?: number | undefined;
1749
+ noExpiry?: boolean | undefined;
389
1750
  }): Promise<Ok<"createAccessToken">>;
390
1751
  revokeAccessToken(tokenId: string): Promise<void>;
391
1752
  getRepoRefs(org: string, project: string, name: string): Promise<Ok<"getRepoRefs">>;
392
1753
  getRepoTree(org: string, project: string, name: string, ref?: string, path?: string): Promise<Ok<"getRepoTree">>;
393
1754
  getRepoBlob(org: string, project: string, name: string, ref?: string, path?: string): Promise<Ok<"getRepoBlob">>;
394
1755
  getRepoCommits(org: string, project: string, name: string, ref?: string, limit?: number): Promise<Ok<"getRepoCommits">>;
395
- /** 저장소 표면의 공통 접두다. 프로젝트 아래에 있다 (§19). */
1756
+ /** The shared prefix of the repository surface. It sits under the project (§19). */
396
1757
  private repoPath;
397
1758
  rollback(org: string, name: string, version: number): Promise<Ok<"rollback">>;
398
1759
  }
1760
+ /** A metric read's range (customer-observability.md §8). */
1761
+ export type ObsRangeQuery = {
1762
+ from?: string;
1763
+ to?: string;
1764
+ step?: string;
1765
+ };
1766
+ /** RED filters shared by the overview and the APM routes. */
1767
+ export type ObsRedQuery = {
1768
+ version?: number;
1769
+ handler?: string;
1770
+ route?: string;
1771
+ synthetic?: "exclude" | "include" | "only";
1772
+ };
1773
+ export type ObsMetricsOverview = components["schemas"]["ObsMetricsOverview"];
1774
+ export type ObsAPMRoutes = components["schemas"]["ObsAPMRoutes"];
1775
+ export type ObsTrace = components["schemas"]["ObsTrace"];
1776
+ export type ObsTraceFilter = components["schemas"]["ObsTraceFilter"];
1777
+ export type ReleaseIssuePage = components["schemas"]["ReleaseIssuePage"];
1778
+ export type ReleaseIssueTransition = components["schemas"]["ReleaseIssueTransition"];
1779
+ export type ReleaseHealthSummary = components["schemas"]["ReleaseHealthSummary"];
1780
+ export type ReleaseHealthRelease = components["schemas"]["ReleaseHealthRelease"];
399
1781
  //# sourceMappingURL=index.d.ts.map