@amerged/ohmyhost-sdk 0.1.10

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.
Files changed (90) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +4 -0
  3. package/README.md +11 -0
  4. package/THIRD_PARTY_NOTICES.md +3 -0
  5. package/dist/generated/client/client.gen.d.ts +3 -0
  6. package/dist/generated/client/client.gen.d.ts.map +1 -0
  7. package/dist/generated/client/client.gen.js +217 -0
  8. package/dist/generated/client/client.gen.js.map +1 -0
  9. package/dist/generated/client/index.d.ts +11 -0
  10. package/dist/generated/client/index.d.ts.map +1 -0
  11. package/dist/generated/client/index.js +7 -0
  12. package/dist/generated/client/index.js.map +1 -0
  13. package/dist/generated/client/types.gen.d.ts +121 -0
  14. package/dist/generated/client/types.gen.d.ts.map +1 -0
  15. package/dist/generated/client/types.gen.js +3 -0
  16. package/dist/generated/client/types.gen.js.map +1 -0
  17. package/dist/generated/client/utils.gen.d.ts +38 -0
  18. package/dist/generated/client/utils.gen.d.ts.map +1 -0
  19. package/dist/generated/client/utils.gen.js +229 -0
  20. package/dist/generated/client/utils.gen.js.map +1 -0
  21. package/dist/generated/client.gen.d.ts +13 -0
  22. package/dist/generated/client.gen.d.ts.map +1 -0
  23. package/dist/generated/client.gen.js +4 -0
  24. package/dist/generated/client.gen.js.map +1 -0
  25. package/dist/generated/core/auth.gen.d.ts +26 -0
  26. package/dist/generated/core/auth.gen.d.ts.map +1 -0
  27. package/dist/generated/core/auth.gen.js +15 -0
  28. package/dist/generated/core/auth.gen.js.map +1 -0
  29. package/dist/generated/core/bodySerializer.gen.d.ts +26 -0
  30. package/dist/generated/core/bodySerializer.gen.d.ts.map +1 -0
  31. package/dist/generated/core/bodySerializer.gen.js +58 -0
  32. package/dist/generated/core/bodySerializer.gen.js.map +1 -0
  33. package/dist/generated/core/params.gen.d.ts +44 -0
  34. package/dist/generated/core/params.gen.d.ts.map +1 -0
  35. package/dist/generated/core/params.gen.js +110 -0
  36. package/dist/generated/core/params.gen.js.map +1 -0
  37. package/dist/generated/core/pathSerializer.gen.d.ts +34 -0
  38. package/dist/generated/core/pathSerializer.gen.d.ts.map +1 -0
  39. package/dist/generated/core/pathSerializer.gen.js +107 -0
  40. package/dist/generated/core/pathSerializer.gen.js.map +1 -0
  41. package/dist/generated/core/queryKeySerializer.gen.d.ts +19 -0
  42. package/dist/generated/core/queryKeySerializer.gen.d.ts.map +1 -0
  43. package/dist/generated/core/queryKeySerializer.gen.js +93 -0
  44. package/dist/generated/core/queryKeySerializer.gen.js.map +1 -0
  45. package/dist/generated/core/serverSentEvents.gen.d.ts +72 -0
  46. package/dist/generated/core/serverSentEvents.gen.d.ts.map +1 -0
  47. package/dist/generated/core/serverSentEvents.gen.js +133 -0
  48. package/dist/generated/core/serverSentEvents.gen.js.map +1 -0
  49. package/dist/generated/core/types.gen.d.ts +84 -0
  50. package/dist/generated/core/types.gen.d.ts.map +1 -0
  51. package/dist/generated/core/types.gen.js +3 -0
  52. package/dist/generated/core/types.gen.js.map +1 -0
  53. package/dist/generated/core/utils.gen.d.ts +20 -0
  54. package/dist/generated/core/utils.gen.d.ts.map +1 -0
  55. package/dist/generated/core/utils.gen.js +88 -0
  56. package/dist/generated/core/utils.gen.js.map +1 -0
  57. package/dist/generated/index.d.ts +3 -0
  58. package/dist/generated/index.d.ts.map +1 -0
  59. package/dist/generated/index.js +3 -0
  60. package/dist/generated/index.js.map +1 -0
  61. package/dist/generated/sdk.gen.d.ts +759 -0
  62. package/dist/generated/sdk.gen.d.ts.map +1 -0
  63. package/dist/generated/sdk.gen.js +1827 -0
  64. package/dist/generated/sdk.gen.js.map +1 -0
  65. package/dist/generated/types.gen.d.ts +5061 -0
  66. package/dist/generated/types.gen.d.ts.map +1 -0
  67. package/dist/generated/types.gen.js +3 -0
  68. package/dist/generated/types.gen.js.map +1 -0
  69. package/dist/index.d.ts +3 -0
  70. package/dist/index.d.ts.map +1 -0
  71. package/dist/index.js +3 -0
  72. package/dist/index.js.map +1 -0
  73. package/package.json +29 -0
  74. package/src/packages/sdk-ts/generated/client/client.gen.ts +277 -0
  75. package/src/packages/sdk-ts/generated/client/index.ts +27 -0
  76. package/src/packages/sdk-ts/generated/client/types.gen.ts +217 -0
  77. package/src/packages/sdk-ts/generated/client/utils.gen.ts +316 -0
  78. package/src/packages/sdk-ts/generated/client.gen.ts +24 -0
  79. package/src/packages/sdk-ts/generated/core/auth.gen.ts +48 -0
  80. package/src/packages/sdk-ts/generated/core/bodySerializer.gen.ts +82 -0
  81. package/src/packages/sdk-ts/generated/core/params.gen.ts +178 -0
  82. package/src/packages/sdk-ts/generated/core/pathSerializer.gen.ts +171 -0
  83. package/src/packages/sdk-ts/generated/core/queryKeySerializer.gen.ts +117 -0
  84. package/src/packages/sdk-ts/generated/core/serverSentEvents.gen.ts +242 -0
  85. package/src/packages/sdk-ts/generated/core/types.gen.ts +114 -0
  86. package/src/packages/sdk-ts/generated/core/utils.gen.ts +140 -0
  87. package/src/packages/sdk-ts/generated/index.ts +578 -0
  88. package/src/packages/sdk-ts/generated/sdk.gen.ts +3440 -0
  89. package/src/packages/sdk-ts/generated/types.gen.ts +5790 -0
  90. package/src/packages/sdk-ts/index.ts +7 -0
@@ -0,0 +1,5061 @@
1
+ export type ClientOptions = {
2
+ baseUrl: "https://app.ohmyho.st" | "https://dev.app.ohmyho.st" | (string & {});
3
+ };
4
+ /**
5
+ * One entry for each roadmap topic; no personal data or other browsers' votes.
6
+ */
7
+ export type FeatureVoteChoices = [
8
+ {
9
+ feature: "eu" | "iso27001" | "soc2";
10
+ choice: "up" | "down" | null;
11
+ },
12
+ {
13
+ feature: "eu" | "iso27001" | "soc2";
14
+ choice: "up" | "down" | null;
15
+ },
16
+ {
17
+ feature: "eu" | "iso27001" | "soc2";
18
+ choice: "up" | "down" | null;
19
+ }
20
+ ];
21
+ export type FeatureVoteState = {
22
+ votes: FeatureVoteChoices;
23
+ };
24
+ export type UserApiKeyId = string;
25
+ export type UserApiKey = {
26
+ id: UserApiKeyId;
27
+ organization_id: Ulid;
28
+ name: string;
29
+ obfuscated_value: string;
30
+ permissions: Array<string>;
31
+ expires_at: string | null;
32
+ created_at: string;
33
+ last_used_at: string | null;
34
+ };
35
+ export type UserApiKeyCreation = ({
36
+ replayed?: false;
37
+ value?: string;
38
+ } | {
39
+ replayed?: true;
40
+ value?: null;
41
+ }) & {
42
+ request_id: Ulid;
43
+ replayed: boolean;
44
+ key: UserApiKey;
45
+ value: string | null;
46
+ };
47
+ export type UserApiKeyPage = {
48
+ data: Array<UserApiKey>;
49
+ next_cursor: string | null;
50
+ };
51
+ /**
52
+ * Non-negative microcredits, at most 9223372036854775807. One credit equals 1000000 microcredits.
53
+ */
54
+ export type CreditMicros = string;
55
+ /**
56
+ * Verified issue on an existing Stripe invoice; no new purchase is needed.
57
+ */
58
+ export type BillingTaxIssue = {
59
+ code: "billing_tax_location_required" | "billing_tax_calculation_failed" | "billing_tax_configuration_required";
60
+ invoice_id: string;
61
+ observed_at: string;
62
+ required_action: "open_billing_portal" | "contact_support";
63
+ } | null;
64
+ export type BillingRecharge = {
65
+ organization_id: Ulid;
66
+ /**
67
+ * An existing customer in this billing account is ready for a hosted billing-portal handoff; this does not imply a paid subscription.
68
+ */
69
+ portal_available: boolean;
70
+ enabled: boolean;
71
+ revision: number;
72
+ status: "off" | "setup_required" | "on" | "payment_required" | "monthly_limit" | "needs_reconciliation" | "tax_required";
73
+ monthly_limit_minor: number;
74
+ spent_minor: number;
75
+ currency: "usd";
76
+ amount_minor: 900;
77
+ credits: 1000;
78
+ threshold_credits: 100;
79
+ setup_url: string | null;
80
+ invoice_url: string | null;
81
+ billing_issue: BillingTaxIssue;
82
+ };
83
+ export type BillingCheckout = {
84
+ organization_id: Ulid;
85
+ checkout_id: Ulid;
86
+ offer: "topup" | "paid";
87
+ state: "open" | "complete" | "expired";
88
+ payment_confirmed: boolean;
89
+ url: string | null;
90
+ expires_at: string;
91
+ packs: number;
92
+ credited_micros: string;
93
+ revoked_micros: string;
94
+ paid_until: string | null;
95
+ /**
96
+ * Human payment handoff. Complete the returned Checkout URL, request a fresh billing portal URL to correct billing details, or contact ohmyho.st when tax configuration requires review. none includes a draft invoice awaiting automatic processing; it is not a claim of current Paid coverage. Never infer renewal success from the historical payment_confirmed flag.
97
+ */
98
+ required_action: "none" | "complete_checkout" | "open_billing_portal" | "contact_support";
99
+ billing_issue: BillingTaxIssue;
100
+ };
101
+ export type BillingPortal = {
102
+ organization_id: Ulid;
103
+ url: string;
104
+ created_at: string;
105
+ };
106
+ export type OrganizationCredits = {
107
+ organization_id: Ulid;
108
+ unit: "microcredits";
109
+ as_of: string;
110
+ available_micros: CreditMicros;
111
+ reserved_micros: CreditMicros;
112
+ spent_micros: CreditMicros;
113
+ expired_micros: CreditMicros;
114
+ platform_overrun_micros: CreditMicros;
115
+ /**
116
+ * First confirmed exhaustion in this continuous period; null while funded.
117
+ */
118
+ grace_started_at: string | null;
119
+ /**
120
+ * Seven days after first confirmed exhaustion. Existing services and domains are retained during this grace; no automatic data deletion. Explicit project stop budgets are separate.
121
+ */
122
+ grace_expires_at: string | null;
123
+ active_meters: Array<string>;
124
+ /**
125
+ * Published integer prices, newest first. A published rate is not proof of enabled billing; only active_meters names currently billed sources. Builds retain their accepted quote. Provider cost is a list-price basis before platform allowances, not an invoice.
126
+ */
127
+ rate_cards: Array<PublishedCreditRateCard>;
128
+ };
129
+ /**
130
+ * Non-negative integer aggregate, serialized exactly without floating-point rounding.
131
+ */
132
+ export type UsageTotal = string;
133
+ export type OrganizationCreditUsage = {
134
+ organization_id: Ulid;
135
+ month: string;
136
+ as_of: string;
137
+ unit: "microcredits";
138
+ next_cursor: Ulid | null;
139
+ data: Array<{
140
+ project_id: Ulid;
141
+ reserved_micros: UsageTotal;
142
+ meters: Array<{
143
+ environment_id: Ulid | null;
144
+ meter: string;
145
+ unit: string;
146
+ rate_card_id: string;
147
+ quantity: UsageTotal;
148
+ charged_micros: UsageTotal;
149
+ funded_micros: UsageTotal;
150
+ platform_overrun_micros: UsageTotal;
151
+ }>;
152
+ }>;
153
+ };
154
+ export type PublishedCreditRateCard = {
155
+ id: string;
156
+ currency: "USD";
157
+ published_at: string;
158
+ effective_from: string;
159
+ rates: Array<{
160
+ meter: string;
161
+ unit: string;
162
+ units_per_charge: string;
163
+ /**
164
+ * Provider list-cost basis for units_per_charge, in USD micro-units (1000000 equals 1 USD), before shared allowances and discounts.
165
+ */
166
+ provider_cost_micros: string;
167
+ credit_micros: CreditMicros;
168
+ }>;
169
+ };
170
+ export type SetProjectCreditBudgetRequest = {
171
+ amount_micros: CreditMicros | null;
172
+ mode: "continue" | "stop";
173
+ };
174
+ export type ProjectCreditBudget = {
175
+ project_id: Ulid;
176
+ amount_micros: CreditMicros | null;
177
+ mode: "continue" | "stop";
178
+ used_micros: CreditMicros;
179
+ reserved_micros: CreditMicros;
180
+ period_start: string;
181
+ period_end: string;
182
+ as_of: string;
183
+ };
184
+ export type CreateCloudflareDnsAuthorizationRequest = {
185
+ zone: string;
186
+ };
187
+ /**
188
+ * Short-lived credential-free redirect information for one Cloudflare OAuth authorization.
189
+ */
190
+ export type CloudflareDnsAuthorization = {
191
+ authorization_id: Ulid;
192
+ authorization_url: string;
193
+ expires_at: string;
194
+ };
195
+ /**
196
+ * Credential-free project authorization state. Without an authorization, status is not_authorized, zone and expires_at are null, and scopes is empty. All other states name the actual customer zone; no platform or customer zone is inferred.
197
+ */
198
+ export type CloudflareDnsAuthorizationStatus = {
199
+ status: "not_authorized" | "pending" | "authorized" | "expired" | "revoked";
200
+ zone: string | null;
201
+ scopes: Array<"dns.write" | "zone.read">;
202
+ expires_at: string | null;
203
+ };
204
+ export type PaidDomainRequest = {
205
+ hostname: string;
206
+ };
207
+ export type PaidDomainPlan = {
208
+ status: "planned";
209
+ hostname: string;
210
+ environment: "prod";
211
+ cname_target: "customers.omh.st" | "customers.ohmyho.st";
212
+ effects: Array<string>;
213
+ risks: Array<string>;
214
+ };
215
+ export type PaidDomain = {
216
+ status: "not_configured" | "pending" | "active" | "reconciliation_required" | "deleted" | "suspended";
217
+ /**
218
+ * Non-null only while suspended by the same Paid, credit-grace or stop-budget policy used by the gateway. DNS/TLS receipts remain intact; url is null while suspended.
219
+ */
220
+ suspension_reason: "paid_plan_required" | "insufficient_organization_credits" | "project_budget_exceeded" | null;
221
+ hostname: string | null;
222
+ environment: "prod";
223
+ cname_target: "customers.omh.st" | "customers.ohmyho.st";
224
+ custom_hostname_status: string | null;
225
+ ssl_status: string | null;
226
+ validation_records: Array<{
227
+ type: "CNAME" | "TXT";
228
+ name: string;
229
+ content: string;
230
+ purpose: "traffic" | "ownership" | "ssl" | "dcv_delegation";
231
+ }>;
232
+ url: string | null;
233
+ };
234
+ export type ConfigureProjectMailDomainRequest = {
235
+ domain: string;
236
+ };
237
+ export type ProjectMailDomain = ConfiguredProjectMailDomain | DelegatedProjectMailDomain;
238
+ export type ConfiguredProjectMailDomain = {
239
+ domain: string;
240
+ status: "configured";
241
+ configured_at: string;
242
+ };
243
+ export type DelegatedProjectMailDomain = {
244
+ domain: string;
245
+ status: "delegation_required" | "verification_pending" | "verification_failed" | "ready";
246
+ configured_at: string;
247
+ name_servers: [string, string, string, string];
248
+ change_id: string;
249
+ /**
250
+ * Time of the fresh read-only provider verification, not the original configuration time.
251
+ */
252
+ observed_at?: string;
253
+ /**
254
+ * Ask the agent to check pending or failed verification again after one hour; null when ready.
255
+ */
256
+ next_check_after_seconds?: 3600 | null;
257
+ /**
258
+ * A missing tenant association is platform provisioning, not a request to rewrite DNS. Read the original operation and its failure action.
259
+ */
260
+ verification_issue?: "identity_missing" | "identity_verification_failed" | "dkim_verification_failed" | "dkim_records_changed" | "tenant_association_missing" | null;
261
+ };
262
+ export type PutEnvironmentSecretRequest = {
263
+ /**
264
+ * Write-only plaintext value. It is encrypted before persistence and never returned.
265
+ */
266
+ value: string;
267
+ };
268
+ /**
269
+ * Environment secret metadata. The plaintext and ciphertext are never returned.
270
+ */
271
+ export type EnvironmentSecret = {
272
+ name: string;
273
+ revision: number;
274
+ key_version: number;
275
+ created_at: string;
276
+ updated_at: string;
277
+ desired_generation: number;
278
+ applied_generation: number;
279
+ delivery_state: "not_deployed" | "pending" | "ready" | "failed";
280
+ runtime_provider: "wfp" | null;
281
+ applied_secret_count: number;
282
+ last_error: string | null;
283
+ };
284
+ export type EnvironmentSecretPage = {
285
+ items: Array<EnvironmentSecret>;
286
+ desired_generation: number;
287
+ applied_generation: number;
288
+ delivery_state: "not_deployed" | "pending" | "ready" | "failed";
289
+ runtime_provider: "wfp" | null;
290
+ applied_secret_count: number;
291
+ last_error: string | null;
292
+ };
293
+ export type DeleteEnvironmentSecretResult = {
294
+ name: string;
295
+ status: "deleted" | "absent";
296
+ desired_generation: number;
297
+ applied_generation: number;
298
+ delivery_state: "not_deployed" | "pending" | "ready" | "failed";
299
+ runtime_provider: "wfp" | null;
300
+ applied_secret_count: number;
301
+ last_error: string | null;
302
+ };
303
+ export type LinkProjectSourceRequest = {
304
+ repository_owner: string;
305
+ repository_name: string;
306
+ };
307
+ export type ConfigureSourceAutoDeployRequest = {
308
+ /**
309
+ * Exact Git branch accepted by Git check-ref-format branch rules; control/space, dot-lock, reflog, range and metacharacter forms are rejected.
310
+ */
311
+ branch: string;
312
+ enabled: boolean;
313
+ };
314
+ export type SourceAutoDeploy = {
315
+ branch: string;
316
+ ref: string;
317
+ environment: "dev";
318
+ enabled: boolean;
319
+ generation: number;
320
+ grant_status: "active" | "revoked";
321
+ updated_at: string;
322
+ };
323
+ export type ConnectGithubOrganizationRequest = {
324
+ [key: string]: never;
325
+ };
326
+ export type GithubOrganizationConnection = {
327
+ connection_id: Ulid;
328
+ organization_id: Ulid;
329
+ installation_id: string;
330
+ account_id: string;
331
+ account_login: string;
332
+ account_type: "User" | "Organization";
333
+ github_user_id: string;
334
+ github_user_login: string;
335
+ connected_at: string;
336
+ revoked_at: string | null;
337
+ settings_url: string;
338
+ };
339
+ export type GithubOrganizationConnectionStatus = {
340
+ status: "not_connected" | "connected" | "revoked";
341
+ connection: GithubOrganizationConnection | null;
342
+ };
343
+ export type GithubConnectionAuthorization = {
344
+ authorization_id: string | null;
345
+ status: "pending" | "authorizing" | "connected" | "failed" | "expired";
346
+ last_failure: "installation_access_required" | "account_admin_required" | "authorization_code_rejected" | "provider_unavailable" | "expired" | "session_inactive" | "denied" | "code_spent" | "state_unknown" | null;
347
+ /**
348
+ * One GitHub browser authorization link when pending; contains only the bound single-use state, never a provider credential.
349
+ */
350
+ authorization_url: string | null;
351
+ expires_at: string | null;
352
+ connection: GithubOrganizationConnection | null;
353
+ };
354
+ export type GithubSourceAuthorization = {
355
+ authorization_id: Ulid;
356
+ status: "pending" | "authorizing" | "authorized" | "failed" | "expired";
357
+ /**
358
+ * Why the last callback did not finish. A pending authorization that carries one is resumable; resolve the named cause, then open authorization_url again without a new key.
359
+ */
360
+ last_failure: "repository_not_installed" | "repository_access_required" | "authorization_code_rejected" | "provider_unavailable" | "expired" | "session_inactive" | "denied" | "code_spent" | null;
361
+ /**
362
+ * Open only when pending; contains the single-use state and PKCE challenge, never a provider credential.
363
+ */
364
+ authorization_url: string | null;
365
+ /**
366
+ * Install or update the GitHub App's selected repository access before authorizing, if required.
367
+ */
368
+ installation_url: string | null;
369
+ expires_at: string;
370
+ operation_id: string | null;
371
+ installation_id: string | null;
372
+ repository_id: string | null;
373
+ repository_owner: string;
374
+ repository_name: string;
375
+ };
376
+ export type ProjectSource = {
377
+ provider: "github";
378
+ installation_id: string;
379
+ repository_full_name: string;
380
+ status: "pending" | "ready" | "failed" | "revoked";
381
+ linked_at: string;
382
+ updated_at: string;
383
+ failure_summary?: string;
384
+ };
385
+ export type FunctionRun = {
386
+ id: Ulid;
387
+ deployment_id: Ulid;
388
+ cron: string;
389
+ scheduled_at: string;
390
+ state: "due" | "running" | "retry" | "succeeded" | "failed";
391
+ attempt: number;
392
+ status_code: number | null;
393
+ started_at: string | null;
394
+ finished_at: string | null;
395
+ };
396
+ export type FunctionRunPage = {
397
+ items: Array<FunctionRun>;
398
+ };
399
+ export type DeploymentDiagnostic = {
400
+ id: Ulid;
401
+ source: "build" | "control" | "runtime" | "function";
402
+ code: string;
403
+ message: string;
404
+ exception_class?: string;
405
+ file?: string;
406
+ line?: number;
407
+ column?: number;
408
+ route?: string;
409
+ request_id?: string;
410
+ trace_id?: string;
411
+ duration_ms?: number;
412
+ /**
413
+ * The sanitized tail of the customer's own install/build output, newest lines last. Present only on a BUILD_FAILED diagnostic; terminal escapes and control characters are removed before storage.
414
+ */
415
+ excerpt?: string;
416
+ /**
417
+ * Whether earlier build output was omitted from excerpt. Present exactly when excerpt is present.
418
+ */
419
+ excerpt_truncated?: boolean;
420
+ occurred_at: string;
421
+ };
422
+ export type DeploymentDiagnosticPage = {
423
+ items: Array<DeploymentDiagnostic>;
424
+ next_cursor?: string;
425
+ };
426
+ export type ProjectDatabaseWriteRequest = {
427
+ environment: "dev" | "prod";
428
+ /**
429
+ * One direct INSERT, UPDATE or DELETE, max 64 KiB UTF-8; entire JSON request is limited to 65,600 bytes.
430
+ */
431
+ statement: string;
432
+ /**
433
+ * JSON values, at most 8 levels and 10000 nodes, max 64 KiB encoded.
434
+ */
435
+ parameters: Array<unknown>;
436
+ };
437
+ export type ProjectDatabaseWriteReceipt = {
438
+ operation_id: Ulid;
439
+ environment: "dev" | "prod";
440
+ state: "running" | "succeeded" | "failed";
441
+ command: "INSERT" | "UPDATE" | "DELETE" | null;
442
+ affected_rows: number | null;
443
+ error: OperationFailure | null;
444
+ };
445
+ export type ProjectDatabaseQueryRequest = {
446
+ environment: "dev" | "prod";
447
+ statement: string;
448
+ parameters: Array<string | number | boolean | null>;
449
+ };
450
+ export type ProjectDatabaseQueryResult = {
451
+ environment: "dev" | "prod";
452
+ rows: Array<{
453
+ [key: string]: unknown;
454
+ }>;
455
+ row_count: number;
456
+ truncated: boolean;
457
+ };
458
+ export type ProjectDatabaseAccessRequest = {
459
+ environment: "dev" | "prod";
460
+ /**
461
+ * read joins the read-only role; write joins the restricted runtime role. Neither can change schema.
462
+ */
463
+ mode?: "read" | "write";
464
+ /**
465
+ * Credential lifetime between 5 minutes and 24 hours.
466
+ */
467
+ ttl_seconds?: number;
468
+ /**
469
+ * Optional customer label without control characters or surrounding whitespace.
470
+ */
471
+ label?: string | null;
472
+ };
473
+ export type ProjectDatabaseAccess = {
474
+ access_id: Ulid;
475
+ environment: "dev" | "prod";
476
+ mode: "read" | "write";
477
+ role_name: string;
478
+ host: string;
479
+ database: "neondb";
480
+ label: string | null;
481
+ state: "active" | "expired" | "revoked";
482
+ issued_at: string;
483
+ expires_at: string;
484
+ revoked_at: string | null;
485
+ revocation_reason: "principal" | "expired" | "budget" | "creation_failed" | null;
486
+ };
487
+ export type ProjectDatabaseAccessCredential = ProjectDatabaseAccess & {
488
+ /**
489
+ * Returned exactly once. Use it immediately and never store it in files, notes or source.
490
+ */
491
+ connection_uri: string;
492
+ /**
493
+ * The same credential as a ready psql invocation.
494
+ */
495
+ psql_command: string;
496
+ };
497
+ export type ProjectDatabaseAccessPage = {
498
+ items: Array<ProjectDatabaseAccess>;
499
+ };
500
+ export type DevAccessTicket = {
501
+ ticket_id: Ulid;
502
+ project_id: Ulid;
503
+ environment_id: Ulid;
504
+ origin: string;
505
+ redeem_url: string;
506
+ expires_at: string;
507
+ };
508
+ export type PlanDeploymentRequest = {
509
+ commit_sha: GitCommitSha;
510
+ };
511
+ export type CreateDeploymentRequest = {
512
+ plan_id: Ulid;
513
+ };
514
+ /**
515
+ * Immutable pre-build deployment plan. It expires exactly fifteen minutes after creation.
516
+ */
517
+ export type DeploymentPlan = {
518
+ id: Ulid;
519
+ project_id: Ulid;
520
+ commit_sha: GitCommitSha;
521
+ source_digest: Sha256Digest;
522
+ build_plan_digest: Sha256Digest;
523
+ /**
524
+ * Canonical repository-relative application root selected from immutable source evidence.
525
+ */
526
+ readonly application_root: string;
527
+ artifact_digest?: Sha256Digest;
528
+ runtime: "cloudflare_workers_static_assets" | "cloudflare_workers_edge_ssr";
529
+ /**
530
+ * Server-derived project-isolated public deployment URL; clients cannot select its gateway host or target Worker.
531
+ */
532
+ route: string;
533
+ resource_effects: Array<string>;
534
+ limits: Array<string>;
535
+ estimated_cost: CostEstimate;
536
+ risks: Array<string>;
537
+ destructive_effects: Array<string>;
538
+ required_confirmations: Array<string>;
539
+ created_at: string;
540
+ expires_at: string;
541
+ };
542
+ /**
543
+ * Build-compute reservation quote, not the lifetime cost of the application. amount_micros is the customer USD equivalent of credit_micros; provider_cost_micros is the corresponding published provider-list basis. The versioned price is fixed by this immutable deployment plan. reserved_seconds is the reserved build time in seconds. The measured build seconds settle the reservation and unused credits are released. Storage, mail and runtime costs are separate.
544
+ */
545
+ export type CostEstimate = {
546
+ amount_micros: string;
547
+ currency: string;
548
+ rate_card_version: string;
549
+ credit_micros: string;
550
+ provider_cost_micros: string;
551
+ scope: "build_compute";
552
+ reserved_seconds: string;
553
+ };
554
+ export type Deployment = {
555
+ id: Ulid;
556
+ project_id: Ulid;
557
+ operation_id: Ulid;
558
+ commit_sha: GitCommitSha;
559
+ source_digest: Sha256Digest;
560
+ build_plan_digest: Sha256Digest;
561
+ artifact_digest?: Sha256Digest;
562
+ status: "queued" | "building" | "publishing" | "active" | "failed" | "rolled_back" | "deleting" | "deleted" | "reconciliation_required";
563
+ /**
564
+ * Project-isolated public gateway URL for the observed deployment.
565
+ */
566
+ url?: string;
567
+ created_at: string;
568
+ updated_at: string;
569
+ };
570
+ export type DeploymentPage = {
571
+ items: Array<Deployment>;
572
+ next_cursor?: string | null;
573
+ };
574
+ export type GuardedActionPlan = ({
575
+ action?: "rollback";
576
+ } | {
577
+ action?: "promote";
578
+ } | {
579
+ action?: "delete";
580
+ }) & {
581
+ action: "rollback" | "promote" | "delete";
582
+ project_id: Ulid;
583
+ target_deployment_id?: Ulid;
584
+ target_artifact_digest?: Sha256Digest;
585
+ source_deployment_id?: Ulid;
586
+ source_artifact_digest?: Sha256Digest;
587
+ source_environment?: "dev";
588
+ target_environment?: "prod";
589
+ resource_etag: string;
590
+ effects: Array<string>;
591
+ risks: Array<string>;
592
+ confirmation_token: ConfirmationToken;
593
+ created_at: string;
594
+ expires_at: string;
595
+ };
596
+ /**
597
+ * Opaque, single-action token bound to the planned action, project, target resource, and resource ETag.
598
+ */
599
+ export type ConfirmationToken = string;
600
+ /**
601
+ * Exact full Git commit object identifier; abbreviated or branch references are forbidden.
602
+ */
603
+ export type GitCommitSha = string;
604
+ export type Sha256Digest = string;
605
+ /**
606
+ * Chosen when the project is created. shared uses one database and a shared file namespace across Dev/Prod; isolated keeps their database/Auth records and files separate. Skills recommend isolated development, but the customer chooses the additional measured database consumption. Promotion applies pending schema migrations to an isolated Prod database without copying Dev data. Changing an established mode requires an explicit data migration.
607
+ */
608
+ export type ProjectDataMode = "shared" | "isolated";
609
+ /**
610
+ * Chosen when the project is created and immutable afterwards. us (default) places the project's database, files, build sandbox and build objects in the US; eu places them in the EU. Prices are identical. ohmyhost.yaml storage.jurisdiction must equal this value.
611
+ */
612
+ export type HostingRegion = "us" | "eu";
613
+ export type FeedbackSubmission = {
614
+ organization_id: Ulid;
615
+ project_id?: Ulid;
616
+ environment_id?: Ulid;
617
+ operation_id?: Ulid;
618
+ kind: "bug" | "issue" | "feature_request";
619
+ /**
620
+ * Trimmed title without control characters.
621
+ */
622
+ title: string;
623
+ /**
624
+ * Trimmed, redacted expected/actual behavior and minimal reproduction. Line breaks and tabs are accepted; other control characters are rejected. Never include raw logs, environment files, credentials or personal records.
625
+ */
626
+ description: string;
627
+ error_code?: string;
628
+ client_version?: string;
629
+ };
630
+ export type FeedbackReceipt = {
631
+ id: Ulid;
632
+ organization_id: Ulid;
633
+ submitted_at: string;
634
+ };
635
+ /**
636
+ * Phase 1 project creation request. The server assigns resource identifiers.
637
+ */
638
+ export type CreateProjectRequest = {
639
+ organization_id: Ulid;
640
+ data_mode?: ProjectDataMode;
641
+ region?: HostingRegion;
642
+ name: string;
643
+ };
644
+ export type CreateOrganizationRequest = {
645
+ /**
646
+ * Optional public acquisition source from a link's r parameter. Signup is open and this value grants nothing; omit it when the customer arrived directly. Promotional credits are server-configured, attribution is fixed for the user, and rewards are never multiplied by retries or additional organizations.
647
+ */
648
+ signup_source?: string;
649
+ name: string;
650
+ };
651
+ export type Organization = {
652
+ id: Ulid;
653
+ name: string;
654
+ };
655
+ export type AccountProfile = {
656
+ user_id: string;
657
+ name: string;
658
+ email: string;
659
+ email_verified: boolean;
660
+ organizations: Array<{
661
+ id: Ulid;
662
+ workos_id: string;
663
+ name: string;
664
+ }>;
665
+ organization_ids: Array<Ulid>;
666
+ signup_source: string | null;
667
+ attributed_at: string | null;
668
+ initial_workspace_id: string | null;
669
+ };
670
+ export type OrganizationAccount = {
671
+ organization_id: Ulid;
672
+ name: string;
673
+ workos_organization_id: string;
674
+ plan: "free" | "paid";
675
+ plan_source: "free" | "stripe" | "beta" | "manual";
676
+ paid_until: string | null;
677
+ available_micros: CreditMicros;
678
+ monthly_micros: CreditMicros;
679
+ one_time_micros: CreditMicros;
680
+ reserved_micros: CreditMicros;
681
+ next_expiry: string | null;
682
+ as_of: string;
683
+ };
684
+ /**
685
+ * Minimal customer-visible identity and organization scope for authenticated agent clients.
686
+ */
687
+ export type CurrentIdentity = {
688
+ actor_id: string;
689
+ organization_ids: Array<Ulid>;
690
+ };
691
+ export type Project = {
692
+ id: Ulid;
693
+ organization_id: Ulid;
694
+ name: string;
695
+ handle: string;
696
+ data_mode: ProjectDataMode;
697
+ region: HostingRegion;
698
+ created_at: string;
699
+ };
700
+ export type ProjectPage = {
701
+ items: Array<Project>;
702
+ next_cursor?: string | null;
703
+ };
704
+ export type ProjectEnvironment = {
705
+ id: Ulid;
706
+ name: string;
707
+ };
708
+ export type ProjectStatus = {
709
+ project_id: Ulid;
710
+ handle: string;
711
+ region: HostingRegion;
712
+ lifecycle: "active" | "deleting" | "deleted";
713
+ source: ProjectSource | null;
714
+ default_environment: ProjectEnvironment | null;
715
+ /**
716
+ * Tenant-scoped Dev and Prod environment IDs for secrets and other environment-scoped commands. Select by name; never infer the Prod ID from the default Dev environment.
717
+ */
718
+ environments?: Array<ProjectEnvironment>;
719
+ head_deployment: Deployment | null;
720
+ dev_url: string | null;
721
+ prod_url: string | null;
722
+ latest_operation: Operation | null;
723
+ cleanup_state: "not_started" | "pending" | "completed" | "reconciliation_required";
724
+ };
725
+ /**
726
+ * RFC 9457 Problem Details extended with stable ohmyhost recovery fields.
727
+ */
728
+ export type ProblemDetails = {
729
+ type: string;
730
+ title: string;
731
+ status: number;
732
+ detail?: string;
733
+ instance?: string;
734
+ code: "invalid_request" | "unauthenticated" | "forbidden" | "organization_required" | "resource_not_found" | "idempotency_key_reused" | "project_handle_unavailable" | "project_identity_unavailable" | "deployment_plan_expired" | "deployment_plan_incompatible" | "confirmation_expired" | "confirmation_invalid" | "etag_mismatch" | "promotion_source_stale" | "promotion_target_stale" | "promotion_invalid_target" | "mail_domain_conflict" | "mail_domain_required" | "storage_jurisdiction_conflict" | "framework_conversion_required" | "migration_filename_noncanonical" | "environment_secret_mutation_blocked" | "workers_runtime_incompatible" | "payload_too_large" | "rate_limited" | "insufficient_organization_credits" | "paid_plan_required" | "project_budget_exceeded" | "compute_performance_paid_required" | "compute_performance_unavailable" | "database_write_pending" | "database_access_limit" | "compute_change_pending" | "compute_change_conflict" | "billing_purchase_conflict" | "billing_recharge_conflict" | "github_connection_required" | "github_connection_revoked" | "repository_not_installed" | "cloudflare_zone_not_bound" | "cloudflare_authorization_closed" | "project_notes_conflict" | "project_export_not_ready" | "interactive_login_required" | "api_key_creation_uncertain" | "api_key_permissions_unavailable" | "reconciliation_exhausted" | "service_unavailable";
735
+ request_id: string;
736
+ retryable: boolean;
737
+ /**
738
+ * Optional machine-readable retry delay for a rate limit, matching Retry-After.
739
+ */
740
+ retry_after_seconds?: number;
741
+ suggested_action: string;
742
+ };
743
+ /**
744
+ * Durable record returned for an accepted asynchronous mutation. Optional reconciliation is a current observation for queued/running work, separate from immutable terminal state. A completed reconciliation attempt alone does not mean the operation succeeded.
745
+ */
746
+ export type Operation = {
747
+ /**
748
+ * The active operation holding this queued operation's project mutation claim.
749
+ */
750
+ blocking_operation_id?: Ulid;
751
+ id: Ulid;
752
+ state: "queued" | "running" | "succeeded" | "failed" | "cancelled";
753
+ created_at: string;
754
+ updated_at: string;
755
+ result?: {
756
+ [key: string]: unknown;
757
+ };
758
+ error?: OperationFailure;
759
+ progress?: OperationDeploymentProgress;
760
+ reconciliation?: OperationReconciliation;
761
+ };
762
+ /**
763
+ * Current deployment dependency observation, separate from immutable operation history. Poll the same operation; mail readiness does not mean application activation.
764
+ */
765
+ export type OperationDeploymentProgress = {
766
+ /**
767
+ * Actual successful build completion time when this operation ran a build; omitted for reused artifacts without a current build.
768
+ */
769
+ build_completed_at?: string;
770
+ phase: "queued" | "building" | "publishing" | "waiting_for_mail" | "mail_status_unavailable";
771
+ project_id: Ulid;
772
+ deployment_id: Ulid;
773
+ observed_at: string;
774
+ next_poll_after_seconds: 60;
775
+ suggested_action: string;
776
+ };
777
+ export type OperationReconciliation = {
778
+ state: "required" | "pending";
779
+ /**
780
+ * Active attempt for pending reconciliation; null when a new confirmed reconciliation is required.
781
+ */
782
+ attempt_id: Ulid | null;
783
+ observed_at: string;
784
+ suggested_action: string;
785
+ };
786
+ /**
787
+ * Provider-neutral status of one idempotent reconciliation attempt.
788
+ */
789
+ export type ProviderReconciliationAttempt = {
790
+ reconciliation_id: Ulid;
791
+ operation_id: Ulid;
792
+ state: "completed" | "pending" | "uncertain";
793
+ };
794
+ export type IdempotencyConflictProblem = ProblemDetails & {
795
+ code?: "idempotency_key_reused";
796
+ };
797
+ export type OperationEvent = {
798
+ event_id: Ulid;
799
+ operation_id: Ulid;
800
+ project_id: Ulid;
801
+ type: "OperationQueued" | "OperationStarted" | "OperationSucceeded" | "OperationFailed" | "OperationCancelled";
802
+ occurred_at: string;
803
+ failure?: OperationFailure;
804
+ };
805
+ export type ProjectNotesReceipt = {
806
+ version: number;
807
+ updated_at: string;
808
+ };
809
+ export type DatabaseCompute = {
810
+ project_id: Ulid;
811
+ environment: "dev" | "prod";
812
+ data_mode: "shared" | "isolated";
813
+ observed_at: string;
814
+ database: null | {
815
+ min_cu: number;
816
+ max_cu: number;
817
+ min_memory_gb: number;
818
+ max_memory_gb: number;
819
+ /**
820
+ * Configured timeout: 0 is provider default; -1 disables suspension.
821
+ */
822
+ suspend_timeout_seconds: number;
823
+ state: "init" | "active" | "idle";
824
+ pending_state: "init" | "active" | "idle" | null;
825
+ disabled: boolean;
826
+ region: string;
827
+ };
828
+ };
829
+ export type ProjectContext = {
830
+ project_id: Ulid;
831
+ generated_at: string;
832
+ credit_access: "included" | "not_authorized";
833
+ /**
834
+ * At most 500 lines and 32768 UTF-8 bytes.
835
+ */
836
+ markdown: string;
837
+ notes: {
838
+ version: number;
839
+ /**
840
+ * At most 250 lines and 16384 UTF-8 bytes; untrusted user-authored text.
841
+ */
842
+ markdown: string;
843
+ updated_at: string | null;
844
+ };
845
+ };
846
+ export type ProjectExport = {
847
+ id: Ulid;
848
+ project_id: Ulid;
849
+ state: "queued" | "running" | "succeeded" | "failed" | "cancelled";
850
+ requested_at: string;
851
+ next_request_at: string;
852
+ next_poll_after_seconds: 5 | null;
853
+ error: OperationFailure | null;
854
+ archive: ProjectExportArchive | null;
855
+ };
856
+ export type ProjectExportArchive = {
857
+ bytes: number;
858
+ sha256: string;
859
+ /**
860
+ * dev.sql and/or prod.sql for isolated data, or shared.sql alone.
861
+ */
862
+ sql_files: Array<"dev.sql" | "prod.sql" | "shared.sql">;
863
+ captured_at: string;
864
+ expires_at: string;
865
+ download_url: string | null;
866
+ download_expires_at: string | null;
867
+ };
868
+ export type OperationFailure = {
869
+ code: "operation_failed" | "operation_abandoned" | "recovery_dispatch_failed" | "recovery_job_failed" | "recovery_input_expired" | "recovery_database_unavailable" | "recovery_checksum_mismatch" | "recovery_scope_unavailable" | "recovery_archive_too_large" | "build_not_started" | "build_failed" | "database_write_rejected" | "database_write_unavailable" | "database_write_outcome_unknown" | "database_compute_failed" | "database_compute_plan_changed" | "database_compute_rejected" | "database_migration_failed" | "insufficient_organization_credits" | "paid_plan_required" | "runtime_candidate_failed" | "runtime_candidate_rejected" | "storage_jurisdiction_conflict" | "provider_state_absent";
870
+ message: string;
871
+ /**
872
+ * A terminal operation cannot be retried in place; follow suggested_action.
873
+ */
874
+ retryable: false;
875
+ suggested_action: string;
876
+ };
877
+ export type AuditEvent = {
878
+ audit_event_id: Ulid;
879
+ project_id: Ulid;
880
+ operation_id?: Ulid;
881
+ event_type: string;
882
+ actor_type: string;
883
+ actor_id: string;
884
+ payload: AuditPayloadSummary;
885
+ occurred_at: string;
886
+ };
887
+ /**
888
+ * A redacted, public summary of an internal audit payload.
889
+ */
890
+ export type AuditPayloadSummary = {
891
+ summary: string;
892
+ };
893
+ export type AuditEventPage = {
894
+ items: Array<AuditEvent>;
895
+ next_cursor?: string | null;
896
+ };
897
+ export type Ulid = string;
898
+ /**
899
+ * Immutable pre-build deployment plan. It expires exactly fifteen minutes after creation.
900
+ */
901
+ export type DeploymentPlanWritable = {
902
+ id: Ulid;
903
+ project_id: Ulid;
904
+ commit_sha: GitCommitSha;
905
+ source_digest: Sha256Digest;
906
+ build_plan_digest: Sha256Digest;
907
+ artifact_digest?: Sha256Digest;
908
+ runtime: "cloudflare_workers_static_assets" | "cloudflare_workers_edge_ssr";
909
+ /**
910
+ * Server-derived project-isolated public deployment URL; clients cannot select its gateway host or target Worker.
911
+ */
912
+ route: string;
913
+ resource_effects: Array<string>;
914
+ limits: Array<string>;
915
+ estimated_cost: CostEstimate;
916
+ risks: Array<string>;
917
+ destructive_effects: Array<string>;
918
+ required_confirmations: Array<string>;
919
+ created_at: string;
920
+ expires_at: string;
921
+ };
922
+ /**
923
+ * Opaque continuation cursor returned by the preceding page.
924
+ */
925
+ export type AuditCursor = string;
926
+ /**
927
+ * Maximum number of audit events to return.
928
+ */
929
+ export type AuditLimit = number;
930
+ /**
931
+ * Identifies one mutation and its canonical request payload.
932
+ */
933
+ export type IdempotencyKey = string;
934
+ /**
935
+ * Exact ETag returned for the current project or deployment state.
936
+ */
937
+ export type IfMatch = string;
938
+ /**
939
+ * Ten-minute token bound to the planned action, project, target resource, and resource ETag.
940
+ */
941
+ export type ConfirmationToken2 = ConfirmationToken;
942
+ /**
943
+ * Optional caller-provided correlation identifier.
944
+ */
945
+ export type RequestId = string;
946
+ /**
947
+ * Project identifier.
948
+ */
949
+ export type ProjectId = Ulid;
950
+ /**
951
+ * Issued database credential identifier.
952
+ */
953
+ export type DatabaseAccessId = Ulid;
954
+ /**
955
+ * Restrict the listing to one application environment.
956
+ */
957
+ export type DatabaseEnvironmentFilter = "dev" | "prod";
958
+ /**
959
+ * Opaque continuation cursor returned by the preceding project page.
960
+ */
961
+ export type ProjectCursor = Ulid;
962
+ /**
963
+ * Maximum number of projects to return.
964
+ */
965
+ export type ProjectLimit = number;
966
+ /**
967
+ * Environment identifier.
968
+ */
969
+ export type EnvironmentId = Ulid;
970
+ /**
971
+ * Uppercase environment-variable name.
972
+ */
973
+ export type SecretName = string;
974
+ /**
975
+ * Operation identifier.
976
+ */
977
+ export type OperationId = Ulid;
978
+ /**
979
+ * Deployment identifier.
980
+ */
981
+ export type DeploymentId = Ulid;
982
+ /**
983
+ * Immutable deployment selected as the rollback target.
984
+ */
985
+ export type TargetDeploymentId = Ulid;
986
+ /**
987
+ * Current succeeded dev deployment whose immutable artifact will be promoted.
988
+ */
989
+ export type SourceDeploymentId = Ulid;
990
+ /**
991
+ * Opaque continuation cursor returned by the preceding deployment page.
992
+ */
993
+ export type DeploymentCursor = string;
994
+ /**
995
+ * Maximum number of deployments to return.
996
+ */
997
+ export type DeploymentLimit = number;
998
+ /**
999
+ * Restricts the page to one visible project.
1000
+ */
1001
+ export type ProjectFilter = Ulid;
1002
+ /**
1003
+ * Restricts the page to one visible operation.
1004
+ */
1005
+ export type OperationFilter = Ulid;
1006
+ export type GetAccountProfileData = {
1007
+ body?: never;
1008
+ path?: never;
1009
+ query?: never;
1010
+ url: "/v1/me/profile";
1011
+ };
1012
+ export type GetAccountProfileErrors = {
1013
+ /**
1014
+ * The request failed.
1015
+ */
1016
+ 400: ProblemDetails;
1017
+ /**
1018
+ * The request failed.
1019
+ */
1020
+ 401: ProblemDetails;
1021
+ /**
1022
+ * The request failed.
1023
+ */
1024
+ 403: ProblemDetails;
1025
+ /**
1026
+ * The request failed.
1027
+ */
1028
+ 404: ProblemDetails;
1029
+ /**
1030
+ * The request failed.
1031
+ */
1032
+ 429: ProblemDetails;
1033
+ /**
1034
+ * The request failed.
1035
+ */
1036
+ 503: ProblemDetails;
1037
+ };
1038
+ export type GetAccountProfileError = GetAccountProfileErrors[keyof GetAccountProfileErrors];
1039
+ export type GetAccountProfileResponses = {
1040
+ /**
1041
+ * Authenticated account data.
1042
+ */
1043
+ 200: AccountProfile;
1044
+ };
1045
+ export type GetAccountProfileResponse = GetAccountProfileResponses[keyof GetAccountProfileResponses];
1046
+ export type RecordSignupSourceData = {
1047
+ body: {
1048
+ source: string | null;
1049
+ };
1050
+ path?: never;
1051
+ query?: never;
1052
+ url: "/v1/me/signup-source";
1053
+ };
1054
+ export type RecordSignupSourceErrors = {
1055
+ /**
1056
+ * The request failed.
1057
+ */
1058
+ 400: ProblemDetails;
1059
+ /**
1060
+ * The request failed.
1061
+ */
1062
+ 401: ProblemDetails;
1063
+ /**
1064
+ * The request failed.
1065
+ */
1066
+ 403: ProblemDetails;
1067
+ /**
1068
+ * The request failed.
1069
+ */
1070
+ 404: ProblemDetails;
1071
+ /**
1072
+ * The request failed.
1073
+ */
1074
+ 429: ProblemDetails;
1075
+ /**
1076
+ * The request failed.
1077
+ */
1078
+ 503: ProblemDetails;
1079
+ };
1080
+ export type RecordSignupSourceError = RecordSignupSourceErrors[keyof RecordSignupSourceErrors];
1081
+ export type RecordSignupSourceResponses = {
1082
+ /**
1083
+ * Authenticated account data.
1084
+ */
1085
+ 200: AccountProfile;
1086
+ };
1087
+ export type RecordSignupSourceResponse = RecordSignupSourceResponses[keyof RecordSignupSourceResponses];
1088
+ export type ConnectGithubOrganizationData = {
1089
+ body: ConnectGithubOrganizationRequest;
1090
+ headers: {
1091
+ /**
1092
+ * Optional caller-provided correlation identifier.
1093
+ */
1094
+ "X-Request-Id"?: string;
1095
+ /**
1096
+ * Identifies one mutation and its canonical request payload.
1097
+ */
1098
+ "Idempotency-Key": string;
1099
+ };
1100
+ path: {
1101
+ organization_id: Ulid;
1102
+ };
1103
+ query?: never;
1104
+ url: "/v1/organizations/{organization_id}/github:connect";
1105
+ };
1106
+ export type ConnectGithubOrganizationErrors = {
1107
+ /**
1108
+ * The request failed.
1109
+ */
1110
+ 400: ProblemDetails;
1111
+ /**
1112
+ * The request failed.
1113
+ */
1114
+ 401: ProblemDetails;
1115
+ /**
1116
+ * The request failed.
1117
+ */
1118
+ 403: ProblemDetails;
1119
+ /**
1120
+ * The resource does not exist or is not visible to the authenticated principal.
1121
+ */
1122
+ 404: ProblemDetails;
1123
+ /**
1124
+ * The request failed.
1125
+ */
1126
+ 409: ProblemDetails;
1127
+ /**
1128
+ * The request failed.
1129
+ */
1130
+ 429: ProblemDetails;
1131
+ /**
1132
+ * The request failed.
1133
+ */
1134
+ 503: ProblemDetails;
1135
+ };
1136
+ export type ConnectGithubOrganizationError = ConnectGithubOrganizationErrors[keyof ConnectGithubOrganizationErrors];
1137
+ export type ConnectGithubOrganizationResponses = {
1138
+ /**
1139
+ * Bound authorization handoff, replay status, or the existing connection.
1140
+ */
1141
+ 201: GithubConnectionAuthorization;
1142
+ };
1143
+ export type ConnectGithubOrganizationResponse = ConnectGithubOrganizationResponses[keyof ConnectGithubOrganizationResponses];
1144
+ export type GetGithubOrganizationConnectionData = {
1145
+ body?: never;
1146
+ headers?: {
1147
+ /**
1148
+ * Optional caller-provided correlation identifier.
1149
+ */
1150
+ "X-Request-Id"?: string;
1151
+ };
1152
+ path: {
1153
+ organization_id: Ulid;
1154
+ };
1155
+ query?: never;
1156
+ url: "/v1/organizations/{organization_id}/github";
1157
+ };
1158
+ export type GetGithubOrganizationConnectionErrors = {
1159
+ /**
1160
+ * The request failed.
1161
+ */
1162
+ 400: ProblemDetails;
1163
+ /**
1164
+ * The request failed.
1165
+ */
1166
+ 401: ProblemDetails;
1167
+ /**
1168
+ * The request failed.
1169
+ */
1170
+ 403: ProblemDetails;
1171
+ /**
1172
+ * The resource does not exist or is not visible to the authenticated principal.
1173
+ */
1174
+ 404: ProblemDetails;
1175
+ /**
1176
+ * The request failed.
1177
+ */
1178
+ 429: ProblemDetails;
1179
+ /**
1180
+ * The request failed.
1181
+ */
1182
+ 503: ProblemDetails;
1183
+ };
1184
+ export type GetGithubOrganizationConnectionError = GetGithubOrganizationConnectionErrors[keyof GetGithubOrganizationConnectionErrors];
1185
+ export type GetGithubOrganizationConnectionResponses = {
1186
+ /**
1187
+ * Current workspace connection status.
1188
+ */
1189
+ 200: GithubOrganizationConnectionStatus;
1190
+ };
1191
+ export type GetGithubOrganizationConnectionResponse = GetGithubOrganizationConnectionResponses[keyof GetGithubOrganizationConnectionResponses];
1192
+ export type GetOrganizationAccountData = {
1193
+ body?: never;
1194
+ path: {
1195
+ organization_id: Ulid;
1196
+ };
1197
+ query?: never;
1198
+ url: "/v1/organizations/{organization_id}/account";
1199
+ };
1200
+ export type GetOrganizationAccountErrors = {
1201
+ /**
1202
+ * The request failed.
1203
+ */
1204
+ 400: ProblemDetails;
1205
+ /**
1206
+ * The request failed.
1207
+ */
1208
+ 401: ProblemDetails;
1209
+ /**
1210
+ * The request failed.
1211
+ */
1212
+ 403: ProblemDetails;
1213
+ /**
1214
+ * The request failed.
1215
+ */
1216
+ 404: ProblemDetails;
1217
+ /**
1218
+ * The request failed.
1219
+ */
1220
+ 429: ProblemDetails;
1221
+ /**
1222
+ * The request failed.
1223
+ */
1224
+ 503: ProblemDetails;
1225
+ };
1226
+ export type GetOrganizationAccountError = GetOrganizationAccountErrors[keyof GetOrganizationAccountErrors];
1227
+ export type GetOrganizationAccountResponses = {
1228
+ /**
1229
+ * Authenticated account data.
1230
+ */
1231
+ 200: OrganizationAccount;
1232
+ };
1233
+ export type GetOrganizationAccountResponse = GetOrganizationAccountResponses[keyof GetOrganizationAccountResponses];
1234
+ export type SubmitContactRequestData = {
1235
+ body: {
1236
+ name: string;
1237
+ email: string;
1238
+ /**
1239
+ * Empty for an individual.
1240
+ */
1241
+ company: string;
1242
+ message: string;
1243
+ idempotency_key: string;
1244
+ };
1245
+ path?: never;
1246
+ query?: never;
1247
+ url: "/v1/contact-requests";
1248
+ };
1249
+ export type SubmitContactRequestErrors = {
1250
+ /**
1251
+ * The request failed.
1252
+ */
1253
+ 400: ProblemDetails;
1254
+ /**
1255
+ * The request failed.
1256
+ */
1257
+ 403: ProblemDetails;
1258
+ /**
1259
+ * The request failed.
1260
+ */
1261
+ 409: ProblemDetails;
1262
+ /**
1263
+ * The request failed.
1264
+ */
1265
+ 413: ProblemDetails;
1266
+ /**
1267
+ * The request failed.
1268
+ */
1269
+ 429: ProblemDetails;
1270
+ /**
1271
+ * The request failed.
1272
+ */
1273
+ 503: ProblemDetails;
1274
+ };
1275
+ export type SubmitContactRequestError = SubmitContactRequestErrors[keyof SubmitContactRequestErrors];
1276
+ export type SubmitContactRequestResponses = {
1277
+ /**
1278
+ * Request durably received; repeat submissions with the same key do not create duplicates.
1279
+ */
1280
+ 202: {
1281
+ accepted: true;
1282
+ };
1283
+ };
1284
+ export type SubmitContactRequestResponse = SubmitContactRequestResponses[keyof SubmitContactRequestResponses];
1285
+ export type GetFeatureInterestsData = {
1286
+ body?: never;
1287
+ headers: {
1288
+ /**
1289
+ * Random UUIDv4 identifying only this anonymous browser's votes; not an account credential or proof of a unique person. Keep it out of URLs and logs.
1290
+ */
1291
+ "X-Ohmyho-Voter": string;
1292
+ };
1293
+ path?: never;
1294
+ query?: never;
1295
+ url: "/v1/beta/feature-interests";
1296
+ };
1297
+ export type GetFeatureInterestsErrors = {
1298
+ /**
1299
+ * The request failed.
1300
+ */
1301
+ 400: ProblemDetails;
1302
+ /**
1303
+ * The request failed.
1304
+ */
1305
+ 429: ProblemDetails;
1306
+ /**
1307
+ * The request failed.
1308
+ */
1309
+ 503: ProblemDetails;
1310
+ };
1311
+ export type GetFeatureInterestsError = GetFeatureInterestsErrors[keyof GetFeatureInterestsErrors];
1312
+ export type GetFeatureInterestsResponses = {
1313
+ /**
1314
+ * Current choices; a missing, removed or expired choice is null.
1315
+ */
1316
+ 200: FeatureVoteState;
1317
+ };
1318
+ export type GetFeatureInterestsResponse = GetFeatureInterestsResponses[keyof GetFeatureInterestsResponses];
1319
+ export type RegisterFeatureInterestData = {
1320
+ body: {
1321
+ feature: "eu" | "iso27001" | "soc2";
1322
+ choice: "up" | "down" | null;
1323
+ idempotency_key: string;
1324
+ };
1325
+ headers: {
1326
+ /**
1327
+ * Random UUIDv4 identifying only this anonymous browser's votes; not an account credential or proof of a unique person. Keep it out of URLs and logs.
1328
+ */
1329
+ "X-Ohmyho-Voter": string;
1330
+ };
1331
+ path?: never;
1332
+ query?: never;
1333
+ url: "/v1/beta/feature-interests";
1334
+ };
1335
+ export type RegisterFeatureInterestErrors = {
1336
+ /**
1337
+ * The request failed.
1338
+ */
1339
+ 400: ProblemDetails;
1340
+ /**
1341
+ * The request failed.
1342
+ */
1343
+ 403: ProblemDetails;
1344
+ /**
1345
+ * The request failed.
1346
+ */
1347
+ 409: ProblemDetails;
1348
+ /**
1349
+ * The request failed.
1350
+ */
1351
+ 413: ProblemDetails;
1352
+ /**
1353
+ * The request failed.
1354
+ */
1355
+ 429: ProblemDetails;
1356
+ /**
1357
+ * The request failed.
1358
+ */
1359
+ 503: ProblemDetails;
1360
+ };
1361
+ export type RegisterFeatureInterestError = RegisterFeatureInterestErrors[keyof RegisterFeatureInterestErrors];
1362
+ export type RegisterFeatureInterestResponses = {
1363
+ /**
1364
+ * The request is persisted, with the browser's current state after this request or replay.
1365
+ */
1366
+ 202: {
1367
+ accepted: true;
1368
+ votes: FeatureVoteChoices;
1369
+ };
1370
+ };
1371
+ export type RegisterFeatureInterestResponse = RegisterFeatureInterestResponses[keyof RegisterFeatureInterestResponses];
1372
+ export type GetPublicDeploymentStatsData = {
1373
+ body?: never;
1374
+ path?: never;
1375
+ query?: never;
1376
+ url: "/v1/beta/stats";
1377
+ };
1378
+ export type GetPublicDeploymentStatsErrors = {
1379
+ /**
1380
+ * The request failed.
1381
+ */
1382
+ 429: ProblemDetails;
1383
+ /**
1384
+ * The request failed.
1385
+ */
1386
+ 503: ProblemDetails;
1387
+ };
1388
+ export type GetPublicDeploymentStatsError = GetPublicDeploymentStatsErrors[keyof GetPublicDeploymentStatsErrors];
1389
+ export type GetPublicDeploymentStatsResponses = {
1390
+ /**
1391
+ * Aggregate measurements without customer or repository identifiers.
1392
+ */
1393
+ 200: {
1394
+ deploys_7d: number;
1395
+ observed_at: string;
1396
+ };
1397
+ };
1398
+ export type GetPublicDeploymentStatsResponse = GetPublicDeploymentStatsResponses[keyof GetPublicDeploymentStatsResponses];
1399
+ export type ListUserApiKeysData = {
1400
+ body?: never;
1401
+ headers?: {
1402
+ /**
1403
+ * Optional caller-provided correlation identifier.
1404
+ */
1405
+ "X-Request-Id"?: string;
1406
+ };
1407
+ path: {
1408
+ organization_id: Ulid;
1409
+ };
1410
+ query?: {
1411
+ after?: UserApiKeyId;
1412
+ };
1413
+ url: "/v1/organizations/{organization_id}/user-api-keys";
1414
+ };
1415
+ export type ListUserApiKeysErrors = {
1416
+ /**
1417
+ * The request failed.
1418
+ */
1419
+ 400: ProblemDetails;
1420
+ /**
1421
+ * The request failed.
1422
+ */
1423
+ 401: ProblemDetails;
1424
+ /**
1425
+ * The request failed.
1426
+ */
1427
+ 403: ProblemDetails;
1428
+ /**
1429
+ * The resource does not exist or is not visible to the authenticated principal.
1430
+ */
1431
+ 404: ProblemDetails;
1432
+ /**
1433
+ * The request failed.
1434
+ */
1435
+ 429: ProblemDetails;
1436
+ /**
1437
+ * The request failed.
1438
+ */
1439
+ 503: ProblemDetails;
1440
+ };
1441
+ export type ListUserApiKeysError = ListUserApiKeysErrors[keyof ListUserApiKeysErrors];
1442
+ export type ListUserApiKeysResponses = {
1443
+ /**
1444
+ * One page of the current user's token metadata.
1445
+ */
1446
+ 200: UserApiKeyPage;
1447
+ };
1448
+ export type ListUserApiKeysResponse = ListUserApiKeysResponses[keyof ListUserApiKeysResponses];
1449
+ export type CreateUserApiKeyData = {
1450
+ body: {
1451
+ name: string;
1452
+ };
1453
+ headers: {
1454
+ /**
1455
+ * Optional caller-provided correlation identifier.
1456
+ */
1457
+ "X-Request-Id"?: string;
1458
+ /**
1459
+ * Identifies one mutation and its canonical request payload.
1460
+ */
1461
+ "Idempotency-Key": string;
1462
+ };
1463
+ path: {
1464
+ organization_id: Ulid;
1465
+ };
1466
+ query?: never;
1467
+ url: "/v1/organizations/{organization_id}/user-api-keys";
1468
+ };
1469
+ export type CreateUserApiKeyErrors = {
1470
+ /**
1471
+ * The request failed.
1472
+ */
1473
+ 400: ProblemDetails;
1474
+ /**
1475
+ * The request failed.
1476
+ */
1477
+ 401: ProblemDetails;
1478
+ /**
1479
+ * The request failed.
1480
+ */
1481
+ 403: ProblemDetails;
1482
+ /**
1483
+ * The resource does not exist or is not visible to the authenticated principal.
1484
+ */
1485
+ 404: ProblemDetails;
1486
+ /**
1487
+ * The request failed.
1488
+ */
1489
+ 409: ProblemDetails;
1490
+ /**
1491
+ * The request failed.
1492
+ */
1493
+ 429: ProblemDetails;
1494
+ /**
1495
+ * The request failed.
1496
+ */
1497
+ 503: ProblemDetails;
1498
+ };
1499
+ export type CreateUserApiKeyError = CreateUserApiKeyErrors[keyof CreateUserApiKeyErrors];
1500
+ export type CreateUserApiKeyResponses = {
1501
+ /**
1502
+ * Original token observed; the full value cannot be retrieved again.
1503
+ */
1504
+ 200: UserApiKeyCreation;
1505
+ /**
1506
+ * Token created; the full value is returned once.
1507
+ */
1508
+ 201: UserApiKeyCreation;
1509
+ };
1510
+ export type CreateUserApiKeyResponse = CreateUserApiKeyResponses[keyof CreateUserApiKeyResponses];
1511
+ export type RevokeUserApiKeyData = {
1512
+ body?: never;
1513
+ headers?: {
1514
+ /**
1515
+ * Optional caller-provided correlation identifier.
1516
+ */
1517
+ "X-Request-Id"?: string;
1518
+ };
1519
+ path: {
1520
+ organization_id: Ulid;
1521
+ key_id: UserApiKeyId;
1522
+ };
1523
+ query?: never;
1524
+ url: "/v1/organizations/{organization_id}/user-api-keys/{key_id}";
1525
+ };
1526
+ export type RevokeUserApiKeyErrors = {
1527
+ /**
1528
+ * The request failed.
1529
+ */
1530
+ 400: ProblemDetails;
1531
+ /**
1532
+ * The request failed.
1533
+ */
1534
+ 401: ProblemDetails;
1535
+ /**
1536
+ * The request failed.
1537
+ */
1538
+ 403: ProblemDetails;
1539
+ /**
1540
+ * The resource does not exist or is not visible to the authenticated principal.
1541
+ */
1542
+ 404: ProblemDetails;
1543
+ /**
1544
+ * The request failed.
1545
+ */
1546
+ 429: ProblemDetails;
1547
+ /**
1548
+ * The request failed.
1549
+ */
1550
+ 503: ProblemDetails;
1551
+ };
1552
+ export type RevokeUserApiKeyError = RevokeUserApiKeyErrors[keyof RevokeUserApiKeyErrors];
1553
+ export type RevokeUserApiKeyResponses = {
1554
+ /**
1555
+ * The requested token is absent from the current user's scope.
1556
+ */
1557
+ 204: void;
1558
+ };
1559
+ export type RevokeUserApiKeyResponse = RevokeUserApiKeyResponses[keyof RevokeUserApiKeyResponses];
1560
+ export type SubmitFeedbackData = {
1561
+ body: FeedbackSubmission;
1562
+ headers: {
1563
+ /**
1564
+ * Optional caller-provided correlation identifier.
1565
+ */
1566
+ "X-Request-Id"?: string;
1567
+ /**
1568
+ * Identifies one mutation and its canonical request payload.
1569
+ */
1570
+ "Idempotency-Key": string;
1571
+ };
1572
+ path?: never;
1573
+ query?: never;
1574
+ url: "/v1/feedback";
1575
+ };
1576
+ export type SubmitFeedbackErrors = {
1577
+ /**
1578
+ * The request failed.
1579
+ */
1580
+ 400: ProblemDetails;
1581
+ /**
1582
+ * The request failed.
1583
+ */
1584
+ 401: ProblemDetails;
1585
+ /**
1586
+ * The request failed.
1587
+ */
1588
+ 404: ProblemDetails;
1589
+ /**
1590
+ * The request failed.
1591
+ */
1592
+ 409: ProblemDetails;
1593
+ /**
1594
+ * The request failed.
1595
+ */
1596
+ 413: ProblemDetails;
1597
+ /**
1598
+ * The request failed.
1599
+ */
1600
+ 429: ProblemDetails;
1601
+ /**
1602
+ * The request failed.
1603
+ */
1604
+ 503: ProblemDetails;
1605
+ };
1606
+ export type SubmitFeedbackError = SubmitFeedbackErrors[keyof SubmitFeedbackErrors];
1607
+ export type SubmitFeedbackResponses = {
1608
+ /**
1609
+ * The original durable receipt, including on exact replay.
1610
+ */
1611
+ 201: FeedbackReceipt;
1612
+ };
1613
+ export type SubmitFeedbackResponse = SubmitFeedbackResponses[keyof SubmitFeedbackResponses];
1614
+ export type CompleteGithubSourceAuthorizationData = {
1615
+ body?: never;
1616
+ path?: never;
1617
+ query: {
1618
+ state: string;
1619
+ code?: string;
1620
+ error?: string;
1621
+ error_description?: string;
1622
+ /**
1623
+ * GitHub authorization-response issuer, checked exactly when supplied.
1624
+ */
1625
+ iss?: "https://github.com/login/oauth";
1626
+ installation_id?: string;
1627
+ setup_action?: "install" | "update" | "request";
1628
+ };
1629
+ url: "/v1/github/oauth/callback";
1630
+ };
1631
+ export type CompleteGithubSourceAuthorizationErrors = {
1632
+ /**
1633
+ * The request failed.
1634
+ */
1635
+ 400: ProblemDetails;
1636
+ /**
1637
+ * The authorizing GitHub account lacks the required installation access or account authority.
1638
+ */
1639
+ 403: ProblemDetails;
1640
+ /**
1641
+ * The request failed.
1642
+ */
1643
+ 429: ProblemDetails;
1644
+ /**
1645
+ * The request failed.
1646
+ */
1647
+ 503: ProblemDetails;
1648
+ };
1649
+ export type CompleteGithubSourceAuthorizationError = CompleteGithubSourceAuthorizationErrors[keyof CompleteGithubSourceAuthorizationErrors];
1650
+ export type CompleteCloudflareDnsAuthorizationData = {
1651
+ body?: never;
1652
+ path?: never;
1653
+ query?: {
1654
+ code?: string;
1655
+ state?: string;
1656
+ error?: string;
1657
+ error_description?: string;
1658
+ error_uri?: string;
1659
+ };
1660
+ url: "/v1/cloudflare/oauth/callback";
1661
+ };
1662
+ export type CompleteCloudflareDnsAuthorizationErrors = {
1663
+ /**
1664
+ * The request failed.
1665
+ */
1666
+ 400: ProblemDetails;
1667
+ /**
1668
+ * The request failed.
1669
+ */
1670
+ 429: ProblemDetails;
1671
+ /**
1672
+ * The request failed.
1673
+ */
1674
+ 503: ProblemDetails;
1675
+ };
1676
+ export type CompleteCloudflareDnsAuthorizationError = CompleteCloudflareDnsAuthorizationErrors[keyof CompleteCloudflareDnsAuthorizationErrors];
1677
+ export type CompleteCloudflareDnsAuthorizationResponses = {
1678
+ /**
1679
+ * Authorization completed; the browser window may be closed.
1680
+ */
1681
+ 200: string;
1682
+ };
1683
+ export type CompleteCloudflareDnsAuthorizationResponse = CompleteCloudflareDnsAuthorizationResponses[keyof CompleteCloudflareDnsAuthorizationResponses];
1684
+ export type GetCurrentIdentityData = {
1685
+ body?: never;
1686
+ headers?: {
1687
+ /**
1688
+ * Optional caller-provided correlation identifier.
1689
+ */
1690
+ "X-Request-Id"?: string;
1691
+ };
1692
+ path?: never;
1693
+ query?: never;
1694
+ url: "/v1/me";
1695
+ };
1696
+ export type GetCurrentIdentityErrors = {
1697
+ /**
1698
+ * The request failed.
1699
+ */
1700
+ 400: ProblemDetails;
1701
+ /**
1702
+ * The request failed.
1703
+ */
1704
+ 401: ProblemDetails;
1705
+ /**
1706
+ * The request failed.
1707
+ */
1708
+ 429: ProblemDetails;
1709
+ /**
1710
+ * The request failed.
1711
+ */
1712
+ 503: ProblemDetails;
1713
+ };
1714
+ export type GetCurrentIdentityError = GetCurrentIdentityErrors[keyof GetCurrentIdentityErrors];
1715
+ export type GetCurrentIdentityResponses = {
1716
+ /**
1717
+ * The current authenticated identity.
1718
+ */
1719
+ 200: CurrentIdentity;
1720
+ };
1721
+ export type GetCurrentIdentityResponse = GetCurrentIdentityResponses[keyof GetCurrentIdentityResponses];
1722
+ export type RevokeCurrentSessionData = {
1723
+ body?: never;
1724
+ headers: {
1725
+ /**
1726
+ * Optional caller-provided correlation identifier.
1727
+ */
1728
+ "X-Request-Id"?: string;
1729
+ /**
1730
+ * Identifies one mutation and its canonical request payload.
1731
+ */
1732
+ "Idempotency-Key": string;
1733
+ };
1734
+ path?: never;
1735
+ query?: never;
1736
+ url: "/v1/session:revoke";
1737
+ };
1738
+ export type RevokeCurrentSessionErrors = {
1739
+ /**
1740
+ * The request failed.
1741
+ */
1742
+ 400: ProblemDetails;
1743
+ /**
1744
+ * The request failed.
1745
+ */
1746
+ 401: ProblemDetails;
1747
+ /**
1748
+ * The request failed.
1749
+ */
1750
+ 403: ProblemDetails;
1751
+ /**
1752
+ * The request failed.
1753
+ */
1754
+ 429: ProblemDetails;
1755
+ /**
1756
+ * The request failed.
1757
+ */
1758
+ 503: ProblemDetails;
1759
+ };
1760
+ export type RevokeCurrentSessionError = RevokeCurrentSessionErrors[keyof RevokeCurrentSessionErrors];
1761
+ export type RevokeCurrentSessionResponses = {
1762
+ /**
1763
+ * Provider session revocation and local terminal denial are confirmed.
1764
+ */
1765
+ 200: {
1766
+ revoked: true;
1767
+ };
1768
+ };
1769
+ export type RevokeCurrentSessionResponse = RevokeCurrentSessionResponses[keyof RevokeCurrentSessionResponses];
1770
+ export type CreateOrganizationData = {
1771
+ body: CreateOrganizationRequest;
1772
+ headers: {
1773
+ /**
1774
+ * Optional caller-provided correlation identifier.
1775
+ */
1776
+ "X-Request-Id"?: string;
1777
+ /**
1778
+ * Stable creator-scoped key; repeat unchanged to observe an incomplete creation.
1779
+ */
1780
+ "Idempotency-Key": string;
1781
+ };
1782
+ path?: never;
1783
+ query?: never;
1784
+ url: "/v1/organizations";
1785
+ };
1786
+ export type CreateOrganizationErrors = {
1787
+ /**
1788
+ * The request failed.
1789
+ */
1790
+ 400: ProblemDetails;
1791
+ /**
1792
+ * The request failed.
1793
+ */
1794
+ 401: ProblemDetails;
1795
+ /**
1796
+ * The request failed.
1797
+ */
1798
+ 403: ProblemDetails;
1799
+ /**
1800
+ * The request failed.
1801
+ */
1802
+ 409: ProblemDetails;
1803
+ /**
1804
+ * The request failed.
1805
+ */
1806
+ 413: ProblemDetails;
1807
+ /**
1808
+ * The request failed.
1809
+ */
1810
+ 429: ProblemDetails;
1811
+ /**
1812
+ * The request failed.
1813
+ */
1814
+ 503: ProblemDetails;
1815
+ };
1816
+ export type CreateOrganizationError = CreateOrganizationErrors[keyof CreateOrganizationErrors];
1817
+ export type CreateOrganizationResponses = {
1818
+ /**
1819
+ * Organization and Owner membership are persisted. Idempotent replay returns the same identity.
1820
+ */
1821
+ 201: Organization;
1822
+ };
1823
+ export type CreateOrganizationResponse = CreateOrganizationResponses[keyof CreateOrganizationResponses];
1824
+ export type CreateBillingCheckoutData = {
1825
+ body: {
1826
+ offer: "topup" | "paid";
1827
+ /**
1828
+ * Paid requires exactly one pack.
1829
+ */
1830
+ packs: number;
1831
+ };
1832
+ headers: {
1833
+ /**
1834
+ * Optional caller-provided correlation identifier.
1835
+ */
1836
+ "X-Request-Id"?: string;
1837
+ /**
1838
+ * Identifies one mutation and its canonical request payload.
1839
+ */
1840
+ "Idempotency-Key": string;
1841
+ };
1842
+ path: {
1843
+ organization_id: Ulid;
1844
+ };
1845
+ query?: never;
1846
+ url: "/v1/organizations/{organization_id}/billing/checkouts";
1847
+ };
1848
+ export type CreateBillingCheckoutErrors = {
1849
+ /**
1850
+ * The request failed.
1851
+ */
1852
+ 400: ProblemDetails;
1853
+ /**
1854
+ * The request failed.
1855
+ */
1856
+ 401: ProblemDetails;
1857
+ /**
1858
+ * The resource does not exist or is not visible to the authenticated principal.
1859
+ */
1860
+ 404: ProblemDetails;
1861
+ /**
1862
+ * The request failed.
1863
+ */
1864
+ 409: ProblemDetails;
1865
+ /**
1866
+ * The request failed.
1867
+ */
1868
+ 413: ProblemDetails;
1869
+ /**
1870
+ * The request failed.
1871
+ */
1872
+ 429: ProblemDetails;
1873
+ /**
1874
+ * The request failed.
1875
+ */
1876
+ 503: ProblemDetails;
1877
+ };
1878
+ export type CreateBillingCheckoutError = CreateBillingCheckoutErrors[keyof CreateBillingCheckoutErrors];
1879
+ export type CreateBillingCheckoutResponses = {
1880
+ /**
1881
+ * Original checkout and its current provider-observed status.
1882
+ */
1883
+ 201: BillingCheckout;
1884
+ };
1885
+ export type CreateBillingCheckoutResponse = CreateBillingCheckoutResponses[keyof CreateBillingCheckoutResponses];
1886
+ export type GetBillingCheckoutData = {
1887
+ body?: never;
1888
+ headers?: {
1889
+ /**
1890
+ * Optional caller-provided correlation identifier.
1891
+ */
1892
+ "X-Request-Id"?: string;
1893
+ };
1894
+ path: {
1895
+ organization_id: Ulid;
1896
+ checkout_id: Ulid;
1897
+ };
1898
+ query?: never;
1899
+ url: "/v1/organizations/{organization_id}/billing/checkouts/{checkout_id}";
1900
+ };
1901
+ export type GetBillingCheckoutErrors = {
1902
+ /**
1903
+ * The request failed.
1904
+ */
1905
+ 400: ProblemDetails;
1906
+ /**
1907
+ * The request failed.
1908
+ */
1909
+ 401: ProblemDetails;
1910
+ /**
1911
+ * The resource does not exist or is not visible to the authenticated principal.
1912
+ */
1913
+ 404: ProblemDetails;
1914
+ /**
1915
+ * The request failed.
1916
+ */
1917
+ 409: ProblemDetails;
1918
+ /**
1919
+ * The request failed.
1920
+ */
1921
+ 429: ProblemDetails;
1922
+ /**
1923
+ * The request failed.
1924
+ */
1925
+ 503: ProblemDetails;
1926
+ };
1927
+ export type GetBillingCheckoutError = GetBillingCheckoutErrors[keyof GetBillingCheckoutErrors];
1928
+ export type GetBillingCheckoutResponses = {
1929
+ /**
1930
+ * Current observed checkout and credit reconciliation.
1931
+ */
1932
+ 200: BillingCheckout;
1933
+ };
1934
+ export type GetBillingCheckoutResponse = GetBillingCheckoutResponses[keyof GetBillingCheckoutResponses];
1935
+ export type CreateBillingPortalData = {
1936
+ body: {
1937
+ [key: string]: never;
1938
+ };
1939
+ headers?: {
1940
+ /**
1941
+ * Optional caller-provided correlation identifier.
1942
+ */
1943
+ "X-Request-Id"?: string;
1944
+ };
1945
+ path: {
1946
+ organization_id: Ulid;
1947
+ };
1948
+ query?: never;
1949
+ url: "/v1/organizations/{organization_id}/billing/portal";
1950
+ };
1951
+ export type CreateBillingPortalErrors = {
1952
+ /**
1953
+ * The request failed.
1954
+ */
1955
+ 400: ProblemDetails;
1956
+ /**
1957
+ * The request failed.
1958
+ */
1959
+ 401: ProblemDetails;
1960
+ /**
1961
+ * The resource does not exist or is not visible to the authenticated principal.
1962
+ */
1963
+ 404: ProblemDetails;
1964
+ /**
1965
+ * The request failed.
1966
+ */
1967
+ 409: ProblemDetails;
1968
+ /**
1969
+ * The request failed.
1970
+ */
1971
+ 413: ProblemDetails;
1972
+ /**
1973
+ * The request failed.
1974
+ */
1975
+ 429: ProblemDetails;
1976
+ /**
1977
+ * The request failed.
1978
+ */
1979
+ 503: ProblemDetails;
1980
+ };
1981
+ export type CreateBillingPortalError = CreateBillingPortalErrors[keyof CreateBillingPortalErrors];
1982
+ export type CreateBillingPortalResponses = {
1983
+ /**
1984
+ * Short-lived portal URL; do not log it or commit it as evidence.
1985
+ */
1986
+ 200: BillingPortal;
1987
+ };
1988
+ export type CreateBillingPortalResponse = CreateBillingPortalResponses[keyof CreateBillingPortalResponses];
1989
+ export type GetBillingRechargeData = {
1990
+ body?: never;
1991
+ headers?: {
1992
+ /**
1993
+ * Optional caller-provided correlation identifier.
1994
+ */
1995
+ "X-Request-Id"?: string;
1996
+ };
1997
+ path: {
1998
+ organization_id: Ulid;
1999
+ };
2000
+ query?: never;
2001
+ url: "/v1/organizations/{organization_id}/billing/recharge";
2002
+ };
2003
+ export type GetBillingRechargeErrors = {
2004
+ /**
2005
+ * The request failed.
2006
+ */
2007
+ 400: ProblemDetails;
2008
+ /**
2009
+ * The request failed.
2010
+ */
2011
+ 401: ProblemDetails;
2012
+ /**
2013
+ * The resource does not exist or is not visible to the authenticated principal.
2014
+ */
2015
+ 404: ProblemDetails;
2016
+ /**
2017
+ * The request failed.
2018
+ */
2019
+ 429: ProblemDetails;
2020
+ /**
2021
+ * The request failed.
2022
+ */
2023
+ 503: ProblemDetails;
2024
+ };
2025
+ export type GetBillingRechargeError = GetBillingRechargeErrors[keyof GetBillingRechargeErrors];
2026
+ export type GetBillingRechargeResponses = {
2027
+ /**
2028
+ * Actual recharge settings; disabled by default.
2029
+ */
2030
+ 200: BillingRecharge;
2031
+ };
2032
+ export type GetBillingRechargeResponse = GetBillingRechargeResponses[keyof GetBillingRechargeResponses];
2033
+ export type ConfigureBillingRechargeData = {
2034
+ body: {
2035
+ enabled: boolean;
2036
+ /**
2037
+ * Gross USD cents per UTC calendar month including tax.
2038
+ */
2039
+ monthly_limit_minor: number;
2040
+ /**
2041
+ * Explicit Owner consent when enabling; null when disabling.
2042
+ */
2043
+ consent: "off_session_v1" | null;
2044
+ revision: number;
2045
+ };
2046
+ headers: {
2047
+ /**
2048
+ * Optional caller-provided correlation identifier.
2049
+ */
2050
+ "X-Request-Id"?: string;
2051
+ /**
2052
+ * Identifies one mutation and its canonical request payload.
2053
+ */
2054
+ "Idempotency-Key": string;
2055
+ };
2056
+ path: {
2057
+ organization_id: Ulid;
2058
+ };
2059
+ query?: never;
2060
+ url: "/v1/organizations/{organization_id}/billing/recharge";
2061
+ };
2062
+ export type ConfigureBillingRechargeErrors = {
2063
+ /**
2064
+ * The request failed.
2065
+ */
2066
+ 400: ProblemDetails;
2067
+ /**
2068
+ * The request failed.
2069
+ */
2070
+ 401: ProblemDetails;
2071
+ /**
2072
+ * The resource does not exist or is not visible to the authenticated principal.
2073
+ */
2074
+ 404: ProblemDetails;
2075
+ /**
2076
+ * The request failed.
2077
+ */
2078
+ 409: ProblemDetails;
2079
+ /**
2080
+ * The request failed.
2081
+ */
2082
+ 413: ProblemDetails;
2083
+ /**
2084
+ * The request failed.
2085
+ */
2086
+ 429: ProblemDetails;
2087
+ /**
2088
+ * The request failed.
2089
+ */
2090
+ 503: ProblemDetails;
2091
+ };
2092
+ export type ConfigureBillingRechargeError = ConfigureBillingRechargeErrors[keyof ConfigureBillingRechargeErrors];
2093
+ export type ConfigureBillingRechargeResponses = {
2094
+ /**
2095
+ * Saved policy and optional Stripe card setup.
2096
+ */
2097
+ 200: BillingRecharge;
2098
+ };
2099
+ export type ConfigureBillingRechargeResponse = ConfigureBillingRechargeResponses[keyof ConfigureBillingRechargeResponses];
2100
+ export type GetOrganizationCreditsData = {
2101
+ body?: never;
2102
+ headers?: {
2103
+ /**
2104
+ * Optional caller-provided correlation identifier.
2105
+ */
2106
+ "X-Request-Id"?: string;
2107
+ };
2108
+ path: {
2109
+ organization_id: Ulid;
2110
+ };
2111
+ query?: never;
2112
+ url: "/v1/organizations/{organization_id}/credits";
2113
+ };
2114
+ export type GetOrganizationCreditsErrors = {
2115
+ /**
2116
+ * The request failed.
2117
+ */
2118
+ 400: ProblemDetails;
2119
+ /**
2120
+ * The request failed.
2121
+ */
2122
+ 401: ProblemDetails;
2123
+ /**
2124
+ * The resource does not exist or is not visible to the authenticated principal.
2125
+ */
2126
+ 404: ProblemDetails;
2127
+ /**
2128
+ * The request failed.
2129
+ */
2130
+ 429: ProblemDetails;
2131
+ /**
2132
+ * The request failed.
2133
+ */
2134
+ 503: ProblemDetails;
2135
+ };
2136
+ export type GetOrganizationCreditsError = GetOrganizationCreditsErrors[keyof GetOrganizationCreditsErrors];
2137
+ export type GetOrganizationCreditsResponses = {
2138
+ /**
2139
+ * Current organization credit balance.
2140
+ */
2141
+ 200: OrganizationCredits;
2142
+ };
2143
+ export type GetOrganizationCreditsResponse = GetOrganizationCreditsResponses[keyof GetOrganizationCreditsResponses];
2144
+ export type GetOrganizationCreditUsageData = {
2145
+ body?: never;
2146
+ headers?: {
2147
+ /**
2148
+ * Optional caller-provided correlation identifier.
2149
+ */
2150
+ "X-Request-Id"?: string;
2151
+ };
2152
+ path: {
2153
+ organization_id: Ulid;
2154
+ };
2155
+ query: {
2156
+ month: string;
2157
+ cursor?: Ulid;
2158
+ };
2159
+ url: "/v1/organizations/{organization_id}/credit-usage";
2160
+ };
2161
+ export type GetOrganizationCreditUsageErrors = {
2162
+ /**
2163
+ * The request failed.
2164
+ */
2165
+ 400: ProblemDetails;
2166
+ /**
2167
+ * The request failed.
2168
+ */
2169
+ 401: ProblemDetails;
2170
+ /**
2171
+ * The resource does not exist or is not visible to the authenticated principal.
2172
+ */
2173
+ 404: ProblemDetails;
2174
+ /**
2175
+ * The request failed.
2176
+ */
2177
+ 429: ProblemDetails;
2178
+ /**
2179
+ * The request failed.
2180
+ */
2181
+ 503: ProblemDetails;
2182
+ };
2183
+ export type GetOrganizationCreditUsageError = GetOrganizationCreditUsageErrors[keyof GetOrganizationCreditUsageErrors];
2184
+ export type GetOrganizationCreditUsageResponses = {
2185
+ /**
2186
+ * Current posted usage for the selected UTC month and project page.
2187
+ */
2188
+ 200: OrganizationCreditUsage;
2189
+ };
2190
+ export type GetOrganizationCreditUsageResponse = GetOrganizationCreditUsageResponses[keyof GetOrganizationCreditUsageResponses];
2191
+ export type CreateProjectExportData = {
2192
+ body: {
2193
+ /**
2194
+ * Non-blank user-controlled ZIP password, at most 1024 UTF-8 bytes. Never include it in logs or command-line arguments.
2195
+ */
2196
+ password: string;
2197
+ };
2198
+ headers: {
2199
+ /**
2200
+ * Optional caller-provided correlation identifier.
2201
+ */
2202
+ "X-Request-Id"?: string;
2203
+ /**
2204
+ * Identifies one mutation and its canonical request payload.
2205
+ */
2206
+ "Idempotency-Key": string;
2207
+ };
2208
+ path: {
2209
+ /**
2210
+ * Project identifier.
2211
+ */
2212
+ project_id: Ulid;
2213
+ };
2214
+ query?: never;
2215
+ url: "/v1/projects/{project_id}/exports";
2216
+ };
2217
+ export type CreateProjectExportErrors = {
2218
+ /**
2219
+ * The request failed.
2220
+ */
2221
+ 400: ProblemDetails;
2222
+ /**
2223
+ * The request failed.
2224
+ */
2225
+ 401: ProblemDetails;
2226
+ /**
2227
+ * The resource does not exist or is not visible to the authenticated principal.
2228
+ */
2229
+ 404: ProblemDetails;
2230
+ /**
2231
+ * The request failed.
2232
+ */
2233
+ 409: ProblemDetails;
2234
+ /**
2235
+ * Project export limit reached, or an ordinary API rate limit. Retry-After gives the delay before another attempt.
2236
+ */
2237
+ 429: ProblemDetails;
2238
+ /**
2239
+ * The request failed.
2240
+ */
2241
+ 503: ProblemDetails;
2242
+ };
2243
+ export type CreateProjectExportError = CreateProjectExportErrors[keyof CreateProjectExportErrors];
2244
+ export type CreateProjectExportResponses = {
2245
+ /**
2246
+ * The mutation was accepted for asynchronous processing.
2247
+ */
2248
+ 202: Operation;
2249
+ };
2250
+ export type CreateProjectExportResponse = CreateProjectExportResponses[keyof CreateProjectExportResponses];
2251
+ export type GetProjectExportData = {
2252
+ body?: never;
2253
+ headers?: {
2254
+ /**
2255
+ * Optional caller-provided correlation identifier.
2256
+ */
2257
+ "X-Request-Id"?: string;
2258
+ };
2259
+ path: {
2260
+ /**
2261
+ * Project identifier.
2262
+ */
2263
+ project_id: Ulid;
2264
+ export_id: Ulid;
2265
+ };
2266
+ query?: never;
2267
+ url: "/v1/projects/{project_id}/exports/{export_id}";
2268
+ };
2269
+ export type GetProjectExportErrors = {
2270
+ /**
2271
+ * The request failed.
2272
+ */
2273
+ 400: ProblemDetails;
2274
+ /**
2275
+ * The request failed.
2276
+ */
2277
+ 401: ProblemDetails;
2278
+ /**
2279
+ * The resource does not exist or is not visible to the authenticated principal.
2280
+ */
2281
+ 404: ProblemDetails;
2282
+ /**
2283
+ * The request failed.
2284
+ */
2285
+ 429: ProblemDetails;
2286
+ /**
2287
+ * The request failed.
2288
+ */
2289
+ 503: ProblemDetails;
2290
+ };
2291
+ export type GetProjectExportError = GetProjectExportErrors[keyof GetProjectExportErrors];
2292
+ export type GetProjectExportResponses = {
2293
+ /**
2294
+ * Current export state and optional verified SQL ZIP download.
2295
+ */
2296
+ 200: ProjectExport;
2297
+ };
2298
+ export type GetProjectExportResponse = GetProjectExportResponses[keyof GetProjectExportResponses];
2299
+ export type GetProjectCreditBudgetData = {
2300
+ body?: never;
2301
+ headers?: {
2302
+ /**
2303
+ * Optional caller-provided correlation identifier.
2304
+ */
2305
+ "X-Request-Id"?: string;
2306
+ };
2307
+ path: {
2308
+ /**
2309
+ * Project identifier.
2310
+ */
2311
+ project_id: Ulid;
2312
+ };
2313
+ query?: never;
2314
+ url: "/v1/projects/{project_id}/credit-budget";
2315
+ };
2316
+ export type GetProjectCreditBudgetErrors = {
2317
+ /**
2318
+ * The request failed.
2319
+ */
2320
+ 400: ProblemDetails;
2321
+ /**
2322
+ * The request failed.
2323
+ */
2324
+ 401: ProblemDetails;
2325
+ /**
2326
+ * The resource does not exist or is not visible to the authenticated principal.
2327
+ */
2328
+ 404: ProblemDetails;
2329
+ /**
2330
+ * The request failed.
2331
+ */
2332
+ 429: ProblemDetails;
2333
+ /**
2334
+ * The request failed.
2335
+ */
2336
+ 503: ProblemDetails;
2337
+ };
2338
+ export type GetProjectCreditBudgetError = GetProjectCreditBudgetErrors[keyof GetProjectCreditBudgetErrors];
2339
+ export type GetProjectCreditBudgetResponses = {
2340
+ /**
2341
+ * Current project budget and recorded usage.
2342
+ */
2343
+ 200: ProjectCreditBudget;
2344
+ };
2345
+ export type GetProjectCreditBudgetResponse = GetProjectCreditBudgetResponses[keyof GetProjectCreditBudgetResponses];
2346
+ export type SetProjectCreditBudgetData = {
2347
+ body: SetProjectCreditBudgetRequest;
2348
+ headers: {
2349
+ /**
2350
+ * Optional caller-provided correlation identifier.
2351
+ */
2352
+ "X-Request-Id"?: string;
2353
+ /**
2354
+ * Identifies one mutation and its canonical request payload.
2355
+ */
2356
+ "Idempotency-Key": string;
2357
+ };
2358
+ path: {
2359
+ /**
2360
+ * Project identifier.
2361
+ */
2362
+ project_id: Ulid;
2363
+ };
2364
+ query?: never;
2365
+ url: "/v1/projects/{project_id}/credit-budget";
2366
+ };
2367
+ export type SetProjectCreditBudgetErrors = {
2368
+ /**
2369
+ * The request failed.
2370
+ */
2371
+ 400: ProblemDetails;
2372
+ /**
2373
+ * The request failed.
2374
+ */
2375
+ 401: ProblemDetails;
2376
+ /**
2377
+ * The resource does not exist or is not visible to the authenticated principal.
2378
+ */
2379
+ 404: ProblemDetails;
2380
+ /**
2381
+ * The idempotency key was already used with a different canonical request.
2382
+ */
2383
+ 409: IdempotencyConflictProblem;
2384
+ /**
2385
+ * The request failed.
2386
+ */
2387
+ 429: ProblemDetails;
2388
+ /**
2389
+ * The request failed.
2390
+ */
2391
+ 503: ProblemDetails;
2392
+ };
2393
+ export type SetProjectCreditBudgetError = SetProjectCreditBudgetErrors[keyof SetProjectCreditBudgetErrors];
2394
+ export type SetProjectCreditBudgetResponses = {
2395
+ /**
2396
+ * Budget snapshot at the time of the original mutation.
2397
+ */
2398
+ 200: ProjectCreditBudget;
2399
+ };
2400
+ export type SetProjectCreditBudgetResponse = SetProjectCreditBudgetResponses[keyof SetProjectCreditBudgetResponses];
2401
+ export type ListProjectsData = {
2402
+ body?: never;
2403
+ headers?: {
2404
+ /**
2405
+ * Optional caller-provided correlation identifier.
2406
+ */
2407
+ "X-Request-Id"?: string;
2408
+ };
2409
+ path?: never;
2410
+ query?: {
2411
+ /**
2412
+ * Opaque continuation cursor returned by the preceding project page.
2413
+ */
2414
+ cursor?: Ulid;
2415
+ /**
2416
+ * Maximum number of projects to return.
2417
+ */
2418
+ limit?: number;
2419
+ };
2420
+ url: "/v1/projects";
2421
+ };
2422
+ export type ListProjectsErrors = {
2423
+ /**
2424
+ * The request failed.
2425
+ */
2426
+ 400: ProblemDetails;
2427
+ /**
2428
+ * The request failed.
2429
+ */
2430
+ 401: ProblemDetails;
2431
+ /**
2432
+ * The request failed.
2433
+ */
2434
+ 403: ProblemDetails;
2435
+ /**
2436
+ * The request failed.
2437
+ */
2438
+ 409: ProblemDetails;
2439
+ /**
2440
+ * The request failed.
2441
+ */
2442
+ 429: ProblemDetails;
2443
+ /**
2444
+ * The request failed.
2445
+ */
2446
+ 503: ProblemDetails;
2447
+ };
2448
+ export type ListProjectsError = ListProjectsErrors[keyof ListProjectsErrors];
2449
+ export type ListProjectsResponses = {
2450
+ /**
2451
+ * A tenant-scoped project page.
2452
+ */
2453
+ 200: ProjectPage;
2454
+ };
2455
+ export type ListProjectsResponse = ListProjectsResponses[keyof ListProjectsResponses];
2456
+ export type CreateProjectData = {
2457
+ body: CreateProjectRequest;
2458
+ headers: {
2459
+ /**
2460
+ * Optional caller-provided correlation identifier.
2461
+ */
2462
+ "X-Request-Id"?: string;
2463
+ /**
2464
+ * Identifies one mutation and its canonical request payload.
2465
+ */
2466
+ "Idempotency-Key": string;
2467
+ };
2468
+ path?: never;
2469
+ query?: never;
2470
+ url: "/v1/projects";
2471
+ };
2472
+ export type CreateProjectErrors = {
2473
+ /**
2474
+ * The request failed.
2475
+ */
2476
+ 400: ProblemDetails;
2477
+ /**
2478
+ * The request failed.
2479
+ */
2480
+ 401: ProblemDetails;
2481
+ /**
2482
+ * The request failed.
2483
+ */
2484
+ 403: ProblemDetails;
2485
+ /**
2486
+ * The idempotency key was already used with a different canonical request.
2487
+ */
2488
+ 409: IdempotencyConflictProblem;
2489
+ /**
2490
+ * The request failed.
2491
+ */
2492
+ 413: ProblemDetails;
2493
+ /**
2494
+ * The request failed.
2495
+ */
2496
+ 429: ProblemDetails;
2497
+ /**
2498
+ * The request failed.
2499
+ */
2500
+ 503: ProblemDetails;
2501
+ };
2502
+ export type CreateProjectError = CreateProjectErrors[keyof CreateProjectErrors];
2503
+ export type CreateProjectResponses = {
2504
+ /**
2505
+ * The mutation was accepted for asynchronous processing.
2506
+ */
2507
+ 202: Operation;
2508
+ };
2509
+ export type CreateProjectResponse = CreateProjectResponses[keyof CreateProjectResponses];
2510
+ export type DeleteProjectData = {
2511
+ body?: never;
2512
+ headers: {
2513
+ /**
2514
+ * Optional caller-provided correlation identifier.
2515
+ */
2516
+ "X-Request-Id"?: string;
2517
+ /**
2518
+ * Identifies one mutation and its canonical request payload.
2519
+ */
2520
+ "Idempotency-Key": string;
2521
+ /**
2522
+ * Exact ETag returned for the current project or deployment state.
2523
+ */
2524
+ "If-Match": string;
2525
+ /**
2526
+ * Ten-minute token bound to the planned action, project, target resource, and resource ETag.
2527
+ */
2528
+ "X-Confirmation-Token": ConfirmationToken;
2529
+ };
2530
+ path: {
2531
+ /**
2532
+ * Project identifier.
2533
+ */
2534
+ project_id: Ulid;
2535
+ };
2536
+ query?: never;
2537
+ url: "/v1/projects/{project_id}";
2538
+ };
2539
+ export type DeleteProjectErrors = {
2540
+ /**
2541
+ * The request failed.
2542
+ */
2543
+ 400: ProblemDetails;
2544
+ /**
2545
+ * The request failed.
2546
+ */
2547
+ 401: ProblemDetails;
2548
+ /**
2549
+ * The request failed.
2550
+ */
2551
+ 403: ProblemDetails;
2552
+ /**
2553
+ * The resource does not exist or is not visible to the authenticated principal.
2554
+ */
2555
+ 404: ProblemDetails;
2556
+ /**
2557
+ * The request failed.
2558
+ */
2559
+ 409: ProblemDetails;
2560
+ /**
2561
+ * The request failed.
2562
+ */
2563
+ 429: ProblemDetails;
2564
+ /**
2565
+ * The request failed.
2566
+ */
2567
+ 503: ProblemDetails;
2568
+ };
2569
+ export type DeleteProjectError = DeleteProjectErrors[keyof DeleteProjectErrors];
2570
+ export type DeleteProjectResponses = {
2571
+ /**
2572
+ * The mutation was accepted for asynchronous processing.
2573
+ */
2574
+ 202: Operation;
2575
+ };
2576
+ export type DeleteProjectResponse = DeleteProjectResponses[keyof DeleteProjectResponses];
2577
+ export type GetProjectData = {
2578
+ body?: never;
2579
+ headers?: {
2580
+ /**
2581
+ * Optional caller-provided correlation identifier.
2582
+ */
2583
+ "X-Request-Id"?: string;
2584
+ };
2585
+ path: {
2586
+ /**
2587
+ * Project identifier.
2588
+ */
2589
+ project_id: Ulid;
2590
+ };
2591
+ query?: never;
2592
+ url: "/v1/projects/{project_id}";
2593
+ };
2594
+ export type GetProjectErrors = {
2595
+ /**
2596
+ * The request failed.
2597
+ */
2598
+ 400: ProblemDetails;
2599
+ /**
2600
+ * The request failed.
2601
+ */
2602
+ 401: ProblemDetails;
2603
+ /**
2604
+ * The request failed.
2605
+ */
2606
+ 403: ProblemDetails;
2607
+ /**
2608
+ * The resource does not exist or is not visible to the authenticated principal.
2609
+ */
2610
+ 404: ProblemDetails;
2611
+ /**
2612
+ * The request failed.
2613
+ */
2614
+ 429: ProblemDetails;
2615
+ /**
2616
+ * The request failed.
2617
+ */
2618
+ 503: ProblemDetails;
2619
+ };
2620
+ export type GetProjectError = GetProjectErrors[keyof GetProjectErrors];
2621
+ export type GetProjectResponses = {
2622
+ /**
2623
+ * The visible project.
2624
+ */
2625
+ 200: Project;
2626
+ };
2627
+ export type GetProjectResponse = GetProjectResponses[keyof GetProjectResponses];
2628
+ export type GetProjectContextData = {
2629
+ body?: never;
2630
+ headers?: {
2631
+ /**
2632
+ * Optional caller-provided correlation identifier.
2633
+ */
2634
+ "X-Request-Id"?: string;
2635
+ };
2636
+ path: {
2637
+ /**
2638
+ * Project identifier.
2639
+ */
2640
+ project_id: Ulid;
2641
+ };
2642
+ query?: never;
2643
+ url: "/v1/projects/{project_id}/context";
2644
+ };
2645
+ export type GetProjectContextErrors = {
2646
+ /**
2647
+ * The request failed.
2648
+ */
2649
+ 400: ProblemDetails;
2650
+ /**
2651
+ * The request failed.
2652
+ */
2653
+ 401: ProblemDetails;
2654
+ /**
2655
+ * The resource does not exist or is not visible to the authenticated principal.
2656
+ */
2657
+ 404: ProblemDetails;
2658
+ /**
2659
+ * The request failed.
2660
+ */
2661
+ 429: ProblemDetails;
2662
+ /**
2663
+ * The request failed.
2664
+ */
2665
+ 503: ProblemDetails;
2666
+ };
2667
+ export type GetProjectContextError = GetProjectContextErrors[keyof GetProjectContextErrors];
2668
+ export type GetProjectContextResponses = {
2669
+ /**
2670
+ * Current bounded project context and notes version.
2671
+ */
2672
+ 200: ProjectContext;
2673
+ };
2674
+ export type GetProjectContextResponse = GetProjectContextResponses[keyof GetProjectContextResponses];
2675
+ export type SetProjectNotesData = {
2676
+ body: {
2677
+ markdown: string;
2678
+ expected_version: number;
2679
+ };
2680
+ headers: {
2681
+ /**
2682
+ * Optional caller-provided correlation identifier.
2683
+ */
2684
+ "X-Request-Id"?: string;
2685
+ /**
2686
+ * Identifies one mutation and its canonical request payload.
2687
+ */
2688
+ "Idempotency-Key": string;
2689
+ };
2690
+ path: {
2691
+ /**
2692
+ * Project identifier.
2693
+ */
2694
+ project_id: Ulid;
2695
+ };
2696
+ query?: never;
2697
+ url: "/v1/projects/{project_id}/context/notes";
2698
+ };
2699
+ export type SetProjectNotesErrors = {
2700
+ /**
2701
+ * The request failed.
2702
+ */
2703
+ 400: ProblemDetails;
2704
+ /**
2705
+ * The request failed.
2706
+ */
2707
+ 401: ProblemDetails;
2708
+ /**
2709
+ * The resource does not exist or is not visible to the authenticated principal.
2710
+ */
2711
+ 404: ProblemDetails;
2712
+ /**
2713
+ * The request failed.
2714
+ */
2715
+ 409: ProblemDetails;
2716
+ /**
2717
+ * The request failed.
2718
+ */
2719
+ 429: ProblemDetails;
2720
+ /**
2721
+ * The request failed.
2722
+ */
2723
+ 503: ProblemDetails;
2724
+ };
2725
+ export type SetProjectNotesError = SetProjectNotesErrors[keyof SetProjectNotesErrors];
2726
+ export type SetProjectNotesResponses = {
2727
+ /**
2728
+ * Saved or exactly replayed version receipt. Read context for current text.
2729
+ */
2730
+ 200: ProjectNotesReceipt;
2731
+ };
2732
+ export type SetProjectNotesResponse = SetProjectNotesResponses[keyof SetProjectNotesResponses];
2733
+ export type GetProjectStatusData = {
2734
+ body?: never;
2735
+ headers?: {
2736
+ /**
2737
+ * Optional caller-provided correlation identifier.
2738
+ */
2739
+ "X-Request-Id"?: string;
2740
+ };
2741
+ path: {
2742
+ /**
2743
+ * Project identifier.
2744
+ */
2745
+ project_id: Ulid;
2746
+ };
2747
+ query?: never;
2748
+ url: "/v1/projects/{project_id}/status";
2749
+ };
2750
+ export type GetProjectStatusErrors = {
2751
+ /**
2752
+ * The request failed.
2753
+ */
2754
+ 400: ProblemDetails;
2755
+ /**
2756
+ * The request failed.
2757
+ */
2758
+ 401: ProblemDetails;
2759
+ /**
2760
+ * The request failed.
2761
+ */
2762
+ 403: ProblemDetails;
2763
+ /**
2764
+ * The resource does not exist or is not visible to the authenticated principal.
2765
+ */
2766
+ 404: ProblemDetails;
2767
+ /**
2768
+ * The request failed.
2769
+ */
2770
+ 429: ProblemDetails;
2771
+ /**
2772
+ * The request failed.
2773
+ */
2774
+ 503: ProblemDetails;
2775
+ };
2776
+ export type GetProjectStatusError = GetProjectStatusErrors[keyof GetProjectStatusErrors];
2777
+ export type GetProjectStatusResponses = {
2778
+ /**
2779
+ * The current tenant-scoped project status.
2780
+ */
2781
+ 200: ProjectStatus;
2782
+ };
2783
+ export type GetProjectStatusResponse = GetProjectStatusResponses[keyof GetProjectStatusResponses];
2784
+ export type CreateProjectDevAccessTicketData = {
2785
+ body?: never;
2786
+ headers?: {
2787
+ /**
2788
+ * Optional caller-provided correlation identifier.
2789
+ */
2790
+ "X-Request-Id"?: string;
2791
+ };
2792
+ path: {
2793
+ /**
2794
+ * Project identifier.
2795
+ */
2796
+ project_id: Ulid;
2797
+ };
2798
+ query?: never;
2799
+ url: "/v1/projects/{project_id}/dev-access-tickets";
2800
+ };
2801
+ export type CreateProjectDevAccessTicketErrors = {
2802
+ /**
2803
+ * The request failed.
2804
+ */
2805
+ 400: ProblemDetails;
2806
+ /**
2807
+ * The request failed.
2808
+ */
2809
+ 401: ProblemDetails;
2810
+ /**
2811
+ * The request failed.
2812
+ */
2813
+ 403: ProblemDetails;
2814
+ /**
2815
+ * The resource does not exist or is not visible to the authenticated principal.
2816
+ */
2817
+ 404: ProblemDetails;
2818
+ /**
2819
+ * The request failed.
2820
+ */
2821
+ 429: ProblemDetails;
2822
+ /**
2823
+ * The request failed.
2824
+ */
2825
+ 503: ProblemDetails;
2826
+ };
2827
+ export type CreateProjectDevAccessTicketError = CreateProjectDevAccessTicketErrors[keyof CreateProjectDevAccessTicketErrors];
2828
+ export type CreateProjectDevAccessTicketResponses = {
2829
+ /**
2830
+ * A single-use dev access URL. Credential material is returned once and is never persisted in plaintext.
2831
+ */
2832
+ 201: DevAccessTicket;
2833
+ };
2834
+ export type CreateProjectDevAccessTicketResponse = CreateProjectDevAccessTicketResponses[keyof CreateProjectDevAccessTicketResponses];
2835
+ export type PlanProjectDeletionData = {
2836
+ body?: never;
2837
+ headers?: {
2838
+ /**
2839
+ * Optional caller-provided correlation identifier.
2840
+ */
2841
+ "X-Request-Id"?: string;
2842
+ };
2843
+ path: {
2844
+ /**
2845
+ * Project identifier.
2846
+ */
2847
+ project_id: Ulid;
2848
+ };
2849
+ query?: never;
2850
+ url: "/v1/projects/{project_id}:delete-plan";
2851
+ };
2852
+ export type PlanProjectDeletionErrors = {
2853
+ /**
2854
+ * The request failed.
2855
+ */
2856
+ 400: ProblemDetails;
2857
+ /**
2858
+ * The request failed.
2859
+ */
2860
+ 401: ProblemDetails;
2861
+ /**
2862
+ * The request failed.
2863
+ */
2864
+ 403: ProblemDetails;
2865
+ /**
2866
+ * The resource does not exist or is not visible to the authenticated principal.
2867
+ */
2868
+ 404: ProblemDetails;
2869
+ /**
2870
+ * The request failed.
2871
+ */
2872
+ 429: ProblemDetails;
2873
+ /**
2874
+ * The request failed.
2875
+ */
2876
+ 503: ProblemDetails;
2877
+ };
2878
+ export type PlanProjectDeletionError = PlanProjectDeletionErrors[keyof PlanProjectDeletionErrors];
2879
+ export type PlanProjectDeletionResponses = {
2880
+ /**
2881
+ * A non-mutating project deletion plan.
2882
+ */
2883
+ 200: GuardedActionPlan;
2884
+ };
2885
+ export type PlanProjectDeletionResponse = PlanProjectDeletionResponses[keyof PlanProjectDeletionResponses];
2886
+ export type LinkProjectSourceData = {
2887
+ body: LinkProjectSourceRequest;
2888
+ headers: {
2889
+ /**
2890
+ * Optional caller-provided correlation identifier.
2891
+ */
2892
+ "X-Request-Id"?: string;
2893
+ /**
2894
+ * Identifies one mutation and its canonical request payload.
2895
+ */
2896
+ "Idempotency-Key": string;
2897
+ };
2898
+ path: {
2899
+ /**
2900
+ * Project identifier.
2901
+ */
2902
+ project_id: Ulid;
2903
+ };
2904
+ query?: never;
2905
+ url: "/v1/projects/{project_id}/source:link";
2906
+ };
2907
+ export type LinkProjectSourceErrors = {
2908
+ /**
2909
+ * The request failed.
2910
+ */
2911
+ 400: ProblemDetails;
2912
+ /**
2913
+ * The request failed.
2914
+ */
2915
+ 401: ProblemDetails;
2916
+ /**
2917
+ * The request failed.
2918
+ */
2919
+ 403: ProblemDetails;
2920
+ /**
2921
+ * The resource does not exist or is not visible to the authenticated principal.
2922
+ */
2923
+ 404: ProblemDetails;
2924
+ /**
2925
+ * The idempotency key was already used with a different canonical request.
2926
+ */
2927
+ 409: IdempotencyConflictProblem;
2928
+ /**
2929
+ * The request failed.
2930
+ */
2931
+ 429: ProblemDetails;
2932
+ /**
2933
+ * The request failed.
2934
+ */
2935
+ 503: ProblemDetails;
2936
+ };
2937
+ export type LinkProjectSourceError = LinkProjectSourceErrors[keyof LinkProjectSourceErrors];
2938
+ export type LinkProjectSourceResponses = {
2939
+ /**
2940
+ * The mutation was accepted for asynchronous processing.
2941
+ */
2942
+ 202: Operation;
2943
+ };
2944
+ export type LinkProjectSourceResponse = LinkProjectSourceResponses[keyof LinkProjectSourceResponses];
2945
+ export type GetProjectSourceData = {
2946
+ body?: never;
2947
+ headers?: {
2948
+ /**
2949
+ * Optional caller-provided correlation identifier.
2950
+ */
2951
+ "X-Request-Id"?: string;
2952
+ };
2953
+ path: {
2954
+ /**
2955
+ * Project identifier.
2956
+ */
2957
+ project_id: Ulid;
2958
+ };
2959
+ query?: never;
2960
+ url: "/v1/projects/{project_id}/source";
2961
+ };
2962
+ export type GetProjectSourceErrors = {
2963
+ /**
2964
+ * The request failed.
2965
+ */
2966
+ 400: ProblemDetails;
2967
+ /**
2968
+ * The request failed.
2969
+ */
2970
+ 401: ProblemDetails;
2971
+ /**
2972
+ * The request failed.
2973
+ */
2974
+ 403: ProblemDetails;
2975
+ /**
2976
+ * The resource does not exist or is not visible to the authenticated principal.
2977
+ */
2978
+ 404: ProblemDetails;
2979
+ /**
2980
+ * The request failed.
2981
+ */
2982
+ 429: ProblemDetails;
2983
+ /**
2984
+ * The request failed.
2985
+ */
2986
+ 503: ProblemDetails;
2987
+ };
2988
+ export type GetProjectSourceError = GetProjectSourceErrors[keyof GetProjectSourceErrors];
2989
+ export type GetProjectSourceResponses = {
2990
+ /**
2991
+ * The current GitHub source connection and status.
2992
+ */
2993
+ 200: ProjectSource;
2994
+ };
2995
+ export type GetProjectSourceResponse = GetProjectSourceResponses[keyof GetProjectSourceResponses];
2996
+ export type GetProjectSourceAutoDeployData = {
2997
+ body?: never;
2998
+ headers?: {
2999
+ /**
3000
+ * Optional caller-provided correlation identifier.
3001
+ */
3002
+ "X-Request-Id"?: string;
3003
+ };
3004
+ path: {
3005
+ /**
3006
+ * Project identifier.
3007
+ */
3008
+ project_id: Ulid;
3009
+ };
3010
+ query?: never;
3011
+ url: "/v1/projects/{project_id}/source/auto-deploy";
3012
+ };
3013
+ export type GetProjectSourceAutoDeployErrors = {
3014
+ /**
3015
+ * The request failed.
3016
+ */
3017
+ 400: ProblemDetails;
3018
+ /**
3019
+ * The request failed.
3020
+ */
3021
+ 401: ProblemDetails;
3022
+ /**
3023
+ * The request failed.
3024
+ */
3025
+ 403: ProblemDetails;
3026
+ /**
3027
+ * The resource does not exist or is not visible to the authenticated principal.
3028
+ */
3029
+ 404: ProblemDetails;
3030
+ /**
3031
+ * The request failed.
3032
+ */
3033
+ 429: ProblemDetails;
3034
+ /**
3035
+ * The request failed.
3036
+ */
3037
+ 503: ProblemDetails;
3038
+ };
3039
+ export type GetProjectSourceAutoDeployError = GetProjectSourceAutoDeployErrors[keyof GetProjectSourceAutoDeployErrors];
3040
+ export type GetProjectSourceAutoDeployResponses = {
3041
+ /**
3042
+ * The current automatic deployment configuration and grant status.
3043
+ */
3044
+ 200: SourceAutoDeploy;
3045
+ };
3046
+ export type GetProjectSourceAutoDeployResponse = GetProjectSourceAutoDeployResponses[keyof GetProjectSourceAutoDeployResponses];
3047
+ export type ConfigureProjectSourceAutoDeployData = {
3048
+ body: ConfigureSourceAutoDeployRequest;
3049
+ headers: {
3050
+ /**
3051
+ * Optional caller-provided correlation identifier.
3052
+ */
3053
+ "X-Request-Id"?: string;
3054
+ /**
3055
+ * Identifies one mutation and its canonical request payload.
3056
+ */
3057
+ "Idempotency-Key": string;
3058
+ };
3059
+ path: {
3060
+ /**
3061
+ * Project identifier.
3062
+ */
3063
+ project_id: Ulid;
3064
+ };
3065
+ query?: never;
3066
+ url: "/v1/projects/{project_id}/source/auto-deploy";
3067
+ };
3068
+ export type ConfigureProjectSourceAutoDeployErrors = {
3069
+ /**
3070
+ * The request failed.
3071
+ */
3072
+ 400: ProblemDetails;
3073
+ /**
3074
+ * The request failed.
3075
+ */
3076
+ 401: ProblemDetails;
3077
+ /**
3078
+ * The request failed.
3079
+ */
3080
+ 403: ProblemDetails;
3081
+ /**
3082
+ * The resource does not exist or is not visible to the authenticated principal.
3083
+ */
3084
+ 404: ProblemDetails;
3085
+ /**
3086
+ * The request failed.
3087
+ */
3088
+ 429: ProblemDetails;
3089
+ /**
3090
+ * The request failed.
3091
+ */
3092
+ 503: ProblemDetails;
3093
+ };
3094
+ export type ConfigureProjectSourceAutoDeployError = ConfigureProjectSourceAutoDeployErrors[keyof ConfigureProjectSourceAutoDeployErrors];
3095
+ export type ConfigureProjectSourceAutoDeployResponses = {
3096
+ /**
3097
+ * The current automatic deployment configuration.
3098
+ */
3099
+ 200: SourceAutoDeploy;
3100
+ };
3101
+ export type ConfigureProjectSourceAutoDeployResponse = ConfigureProjectSourceAutoDeployResponses[keyof ConfigureProjectSourceAutoDeployResponses];
3102
+ export type CreateCloudflareDnsAuthorizationData = {
3103
+ body: CreateCloudflareDnsAuthorizationRequest;
3104
+ headers: {
3105
+ /**
3106
+ * Optional caller-provided correlation identifier.
3107
+ */
3108
+ "X-Request-Id"?: string;
3109
+ /**
3110
+ * Identifies one mutation and its canonical request payload.
3111
+ */
3112
+ "Idempotency-Key": string;
3113
+ };
3114
+ path: {
3115
+ /**
3116
+ * Project identifier.
3117
+ */
3118
+ project_id: Ulid;
3119
+ };
3120
+ query?: never;
3121
+ url: "/v1/projects/{project_id}/cloudflare-dns/authorization";
3122
+ };
3123
+ export type CreateCloudflareDnsAuthorizationErrors = {
3124
+ /**
3125
+ * The request failed.
3126
+ */
3127
+ 400: ProblemDetails;
3128
+ /**
3129
+ * The request failed.
3130
+ */
3131
+ 401: ProblemDetails;
3132
+ /**
3133
+ * The request failed.
3134
+ */
3135
+ 403: ProblemDetails;
3136
+ /**
3137
+ * The resource does not exist or is not visible to the authenticated principal.
3138
+ */
3139
+ 404: ProblemDetails;
3140
+ /**
3141
+ * The request failed.
3142
+ */
3143
+ 409: ProblemDetails;
3144
+ /**
3145
+ * The request failed.
3146
+ */
3147
+ 413: ProblemDetails;
3148
+ /**
3149
+ * The request failed.
3150
+ */
3151
+ 429: ProblemDetails;
3152
+ /**
3153
+ * The request failed.
3154
+ */
3155
+ 503: ProblemDetails;
3156
+ };
3157
+ export type CreateCloudflareDnsAuthorizationError = CreateCloudflareDnsAuthorizationErrors[keyof CreateCloudflareDnsAuthorizationErrors];
3158
+ export type CreateCloudflareDnsAuthorizationResponses = {
3159
+ /**
3160
+ * A short-lived Cloudflare authorization URL.
3161
+ */
3162
+ 201: CloudflareDnsAuthorization;
3163
+ };
3164
+ export type CreateCloudflareDnsAuthorizationResponse = CreateCloudflareDnsAuthorizationResponses[keyof CreateCloudflareDnsAuthorizationResponses];
3165
+ export type GetCloudflareDnsAuthorizationStatusData = {
3166
+ body?: never;
3167
+ headers?: {
3168
+ /**
3169
+ * Optional caller-provided correlation identifier.
3170
+ */
3171
+ "X-Request-Id"?: string;
3172
+ };
3173
+ path: {
3174
+ /**
3175
+ * Project identifier.
3176
+ */
3177
+ project_id: Ulid;
3178
+ };
3179
+ query?: never;
3180
+ url: "/v1/projects/{project_id}/cloudflare-dns";
3181
+ };
3182
+ export type GetCloudflareDnsAuthorizationStatusErrors = {
3183
+ /**
3184
+ * The request failed.
3185
+ */
3186
+ 400: ProblemDetails;
3187
+ /**
3188
+ * The request failed.
3189
+ */
3190
+ 401: ProblemDetails;
3191
+ /**
3192
+ * The request failed.
3193
+ */
3194
+ 403: ProblemDetails;
3195
+ /**
3196
+ * The resource does not exist or is not visible to the authenticated principal.
3197
+ */
3198
+ 404: ProblemDetails;
3199
+ /**
3200
+ * The request failed.
3201
+ */
3202
+ 429: ProblemDetails;
3203
+ /**
3204
+ * The request failed.
3205
+ */
3206
+ 503: ProblemDetails;
3207
+ };
3208
+ export type GetCloudflareDnsAuthorizationStatusError = GetCloudflareDnsAuthorizationStatusErrors[keyof GetCloudflareDnsAuthorizationStatusErrors];
3209
+ export type GetCloudflareDnsAuthorizationStatusResponses = {
3210
+ /**
3211
+ * The current credential-free Cloudflare DNS authorization status.
3212
+ */
3213
+ 200: CloudflareDnsAuthorizationStatus;
3214
+ };
3215
+ export type GetCloudflareDnsAuthorizationStatusResponse = GetCloudflareDnsAuthorizationStatusResponses[keyof GetCloudflareDnsAuthorizationStatusResponses];
3216
+ export type ConfigureProjectDomainsData = {
3217
+ body?: never;
3218
+ headers: {
3219
+ /**
3220
+ * Optional caller-provided correlation identifier.
3221
+ */
3222
+ "X-Request-Id"?: string;
3223
+ /**
3224
+ * Identifies one mutation and its canonical request payload.
3225
+ */
3226
+ "Idempotency-Key": string;
3227
+ };
3228
+ path: {
3229
+ /**
3230
+ * Project identifier.
3231
+ */
3232
+ project_id: Ulid;
3233
+ };
3234
+ query?: never;
3235
+ url: "/v1/projects/{project_id}/domains";
3236
+ };
3237
+ export type ConfigureProjectDomainsErrors = {
3238
+ /**
3239
+ * The request failed.
3240
+ */
3241
+ 400: ProblemDetails;
3242
+ /**
3243
+ * The request failed.
3244
+ */
3245
+ 401: ProblemDetails;
3246
+ /**
3247
+ * The request failed.
3248
+ */
3249
+ 403: ProblemDetails;
3250
+ /**
3251
+ * The resource does not exist or is not visible to the authenticated principal.
3252
+ */
3253
+ 404: ProblemDetails;
3254
+ /**
3255
+ * The idempotency key was already used with a different canonical request.
3256
+ */
3257
+ 409: IdempotencyConflictProblem;
3258
+ /**
3259
+ * The request failed.
3260
+ */
3261
+ 429: ProblemDetails;
3262
+ /**
3263
+ * The request failed.
3264
+ */
3265
+ 503: ProblemDetails;
3266
+ };
3267
+ export type ConfigureProjectDomainsError = ConfigureProjectDomainsErrors[keyof ConfigureProjectDomainsErrors];
3268
+ export type ConfigureProjectDomainsResponses = {
3269
+ /**
3270
+ * The mutation was accepted for asynchronous processing.
3271
+ */
3272
+ 202: Operation;
3273
+ };
3274
+ export type ConfigureProjectDomainsResponse = ConfigureProjectDomainsResponses[keyof ConfigureProjectDomainsResponses];
3275
+ export type PlanPaidProjectDomainData = {
3276
+ body: PaidDomainRequest;
3277
+ headers?: {
3278
+ /**
3279
+ * Optional caller-provided correlation identifier.
3280
+ */
3281
+ "X-Request-Id"?: string;
3282
+ };
3283
+ path: {
3284
+ /**
3285
+ * Project identifier.
3286
+ */
3287
+ project_id: Ulid;
3288
+ };
3289
+ query?: never;
3290
+ url: "/v1/projects/{project_id}/paid-domain:plan";
3291
+ };
3292
+ export type PlanPaidProjectDomainErrors = {
3293
+ /**
3294
+ * The request failed.
3295
+ */
3296
+ 400: ProblemDetails;
3297
+ /**
3298
+ * The request failed.
3299
+ */
3300
+ 401: ProblemDetails;
3301
+ /**
3302
+ * The request failed.
3303
+ */
3304
+ 403: ProblemDetails;
3305
+ /**
3306
+ * The resource does not exist or is not visible to the authenticated principal.
3307
+ */
3308
+ 404: ProblemDetails;
3309
+ /**
3310
+ * The request failed.
3311
+ */
3312
+ 429: ProblemDetails;
3313
+ /**
3314
+ * The request failed.
3315
+ */
3316
+ 503: ProblemDetails;
3317
+ };
3318
+ export type PlanPaidProjectDomainError = PlanPaidProjectDomainErrors[keyof PlanPaidProjectDomainErrors];
3319
+ export type PlanPaidProjectDomainResponses = {
3320
+ /**
3321
+ * Manual CNAME instructions and exact provider effects.
3322
+ */
3323
+ 200: PaidDomainPlan;
3324
+ };
3325
+ export type PlanPaidProjectDomainResponse = PlanPaidProjectDomainResponses[keyof PlanPaidProjectDomainResponses];
3326
+ export type DeletePaidProjectDomainData = {
3327
+ body: PaidDomainRequest;
3328
+ headers: {
3329
+ /**
3330
+ * Optional caller-provided correlation identifier.
3331
+ */
3332
+ "X-Request-Id"?: string;
3333
+ /**
3334
+ * Identifies one mutation and its canonical request payload.
3335
+ */
3336
+ "Idempotency-Key": string;
3337
+ };
3338
+ path: {
3339
+ /**
3340
+ * Project identifier.
3341
+ */
3342
+ project_id: Ulid;
3343
+ };
3344
+ query?: never;
3345
+ url: "/v1/projects/{project_id}/paid-domain";
3346
+ };
3347
+ export type DeletePaidProjectDomainErrors = {
3348
+ /**
3349
+ * The request failed.
3350
+ */
3351
+ 400: ProblemDetails;
3352
+ /**
3353
+ * The request failed.
3354
+ */
3355
+ 401: ProblemDetails;
3356
+ /**
3357
+ * The request failed.
3358
+ */
3359
+ 403: ProblemDetails;
3360
+ /**
3361
+ * The resource does not exist or is not visible to the authenticated principal.
3362
+ */
3363
+ 404: ProblemDetails;
3364
+ /**
3365
+ * The idempotency key was already used with a different canonical request.
3366
+ */
3367
+ 409: IdempotencyConflictProblem;
3368
+ /**
3369
+ * The request failed.
3370
+ */
3371
+ 429: ProblemDetails;
3372
+ /**
3373
+ * The request failed.
3374
+ */
3375
+ 503: ProblemDetails;
3376
+ };
3377
+ export type DeletePaidProjectDomainError = DeletePaidProjectDomainErrors[keyof DeletePaidProjectDomainErrors];
3378
+ export type DeletePaidProjectDomainResponses = {
3379
+ /**
3380
+ * Exact route and custom hostname are absent.
3381
+ */
3382
+ 200: PaidDomain;
3383
+ };
3384
+ export type DeletePaidProjectDomainResponse = DeletePaidProjectDomainResponses[keyof DeletePaidProjectDomainResponses];
3385
+ export type GetPaidProjectDomainData = {
3386
+ body?: never;
3387
+ headers?: {
3388
+ /**
3389
+ * Optional caller-provided correlation identifier.
3390
+ */
3391
+ "X-Request-Id"?: string;
3392
+ };
3393
+ path: {
3394
+ /**
3395
+ * Project identifier.
3396
+ */
3397
+ project_id: Ulid;
3398
+ };
3399
+ query?: never;
3400
+ url: "/v1/projects/{project_id}/paid-domain";
3401
+ };
3402
+ export type GetPaidProjectDomainErrors = {
3403
+ /**
3404
+ * The request failed.
3405
+ */
3406
+ 400: ProblemDetails;
3407
+ /**
3408
+ * The request failed.
3409
+ */
3410
+ 401: ProblemDetails;
3411
+ /**
3412
+ * The request failed.
3413
+ */
3414
+ 403: ProblemDetails;
3415
+ /**
3416
+ * The resource does not exist or is not visible to the authenticated principal.
3417
+ */
3418
+ 404: ProblemDetails;
3419
+ /**
3420
+ * The request failed.
3421
+ */
3422
+ 429: ProblemDetails;
3423
+ /**
3424
+ * The request failed.
3425
+ */
3426
+ 503: ProblemDetails;
3427
+ };
3428
+ export type GetPaidProjectDomainError = GetPaidProjectDomainErrors[keyof GetPaidProjectDomainErrors];
3429
+ export type GetPaidProjectDomainResponses = {
3430
+ /**
3431
+ * Current credential-free hostname, CNAME and certificate state.
3432
+ */
3433
+ 200: PaidDomain;
3434
+ };
3435
+ export type GetPaidProjectDomainResponse = GetPaidProjectDomainResponses[keyof GetPaidProjectDomainResponses];
3436
+ export type ApplyPaidProjectDomainData = {
3437
+ body: PaidDomainRequest;
3438
+ headers: {
3439
+ /**
3440
+ * Optional caller-provided correlation identifier.
3441
+ */
3442
+ "X-Request-Id"?: string;
3443
+ /**
3444
+ * Identifies one mutation and its canonical request payload.
3445
+ */
3446
+ "Idempotency-Key": string;
3447
+ };
3448
+ path: {
3449
+ /**
3450
+ * Project identifier.
3451
+ */
3452
+ project_id: Ulid;
3453
+ };
3454
+ query?: never;
3455
+ url: "/v1/projects/{project_id}/paid-domain";
3456
+ };
3457
+ export type ApplyPaidProjectDomainErrors = {
3458
+ /**
3459
+ * The request failed.
3460
+ */
3461
+ 400: ProblemDetails;
3462
+ /**
3463
+ * The request failed.
3464
+ */
3465
+ 401: ProblemDetails;
3466
+ /**
3467
+ * The request failed.
3468
+ */
3469
+ 402: ProblemDetails;
3470
+ /**
3471
+ * The request failed.
3472
+ */
3473
+ 403: ProblemDetails;
3474
+ /**
3475
+ * The resource does not exist or is not visible to the authenticated principal.
3476
+ */
3477
+ 404: ProblemDetails;
3478
+ /**
3479
+ * The idempotency key was already used with a different canonical request.
3480
+ */
3481
+ 409: IdempotencyConflictProblem;
3482
+ /**
3483
+ * The request failed.
3484
+ */
3485
+ 429: ProblemDetails;
3486
+ /**
3487
+ * The request failed.
3488
+ */
3489
+ 503: ProblemDetails;
3490
+ };
3491
+ export type ApplyPaidProjectDomainError = ApplyPaidProjectDomainErrors[keyof ApplyPaidProjectDomainErrors];
3492
+ export type ApplyPaidProjectDomainResponses = {
3493
+ /**
3494
+ * Current Cloudflare for SaaS hostname and certificate state.
3495
+ */
3496
+ 200: PaidDomain;
3497
+ };
3498
+ export type ApplyPaidProjectDomainResponse = ApplyPaidProjectDomainResponses[keyof ApplyPaidProjectDomainResponses];
3499
+ export type GetProjectMailDomainData = {
3500
+ body?: never;
3501
+ headers?: {
3502
+ /**
3503
+ * Optional caller-provided correlation identifier.
3504
+ */
3505
+ "X-Request-Id"?: string;
3506
+ };
3507
+ path: {
3508
+ /**
3509
+ * Project identifier.
3510
+ */
3511
+ project_id: Ulid;
3512
+ };
3513
+ query?: never;
3514
+ url: "/v1/projects/{project_id}/mail-domain";
3515
+ };
3516
+ export type GetProjectMailDomainErrors = {
3517
+ /**
3518
+ * The request failed.
3519
+ */
3520
+ 400: ProblemDetails;
3521
+ /**
3522
+ * The request failed.
3523
+ */
3524
+ 401: ProblemDetails;
3525
+ /**
3526
+ * The request failed.
3527
+ */
3528
+ 403: ProblemDetails;
3529
+ /**
3530
+ * The resource does not exist or is not visible to the authenticated principal.
3531
+ */
3532
+ 404: ProblemDetails;
3533
+ /**
3534
+ * The request failed.
3535
+ */
3536
+ 429: ProblemDetails;
3537
+ /**
3538
+ * The request failed.
3539
+ */
3540
+ 503: ProblemDetails;
3541
+ };
3542
+ export type GetProjectMailDomainError = GetProjectMailDomainErrors[keyof GetProjectMailDomainErrors];
3543
+ export type GetProjectMailDomainResponses = {
3544
+ /**
3545
+ * The current credential-free sender-domain status.
3546
+ */
3547
+ 200: ProjectMailDomain;
3548
+ };
3549
+ export type GetProjectMailDomainResponse = GetProjectMailDomainResponses[keyof GetProjectMailDomainResponses];
3550
+ export type ConfigureProjectMailDomainData = {
3551
+ body: ConfigureProjectMailDomainRequest;
3552
+ headers: {
3553
+ /**
3554
+ * Optional caller-provided correlation identifier.
3555
+ */
3556
+ "X-Request-Id"?: string;
3557
+ /**
3558
+ * Identifies one mutation and its canonical request payload.
3559
+ */
3560
+ "Idempotency-Key": string;
3561
+ };
3562
+ path: {
3563
+ /**
3564
+ * Project identifier.
3565
+ */
3566
+ project_id: Ulid;
3567
+ };
3568
+ query?: never;
3569
+ url: "/v1/projects/{project_id}/mail-domain";
3570
+ };
3571
+ export type ConfigureProjectMailDomainErrors = {
3572
+ /**
3573
+ * The request failed.
3574
+ */
3575
+ 400: ProblemDetails;
3576
+ /**
3577
+ * The request failed.
3578
+ */
3579
+ 401: ProblemDetails;
3580
+ /**
3581
+ * The request failed.
3582
+ */
3583
+ 402: ProblemDetails;
3584
+ /**
3585
+ * The request failed.
3586
+ */
3587
+ 403: ProblemDetails;
3588
+ /**
3589
+ * The resource does not exist or is not visible to the authenticated principal.
3590
+ */
3591
+ 404: ProblemDetails;
3592
+ /**
3593
+ * The request failed.
3594
+ */
3595
+ 409: ProblemDetails;
3596
+ /**
3597
+ * The request failed.
3598
+ */
3599
+ 429: ProblemDetails;
3600
+ /**
3601
+ * The request failed.
3602
+ */
3603
+ 503: ProblemDetails;
3604
+ };
3605
+ export type ConfigureProjectMailDomainError = ConfigureProjectMailDomainErrors[keyof ConfigureProjectMailDomainErrors];
3606
+ export type ConfigureProjectMailDomainResponses = {
3607
+ /**
3608
+ * The immutable project sender-domain configuration and current credential-free status.
3609
+ */
3610
+ 200: ProjectMailDomain;
3611
+ };
3612
+ export type ConfigureProjectMailDomainResponse = ConfigureProjectMailDomainResponses[keyof ConfigureProjectMailDomainResponses];
3613
+ export type PlanDeploymentData = {
3614
+ body: PlanDeploymentRequest;
3615
+ headers?: {
3616
+ /**
3617
+ * Optional caller-provided correlation identifier.
3618
+ */
3619
+ "X-Request-Id"?: string;
3620
+ };
3621
+ path: {
3622
+ /**
3623
+ * Project identifier.
3624
+ */
3625
+ project_id: Ulid;
3626
+ };
3627
+ query?: never;
3628
+ url: "/v1/projects/{project_id}/deployments:plan";
3629
+ };
3630
+ export type PlanDeploymentErrors = {
3631
+ /**
3632
+ * The request failed.
3633
+ */
3634
+ 400: ProblemDetails;
3635
+ /**
3636
+ * The request failed.
3637
+ */
3638
+ 401: ProblemDetails;
3639
+ /**
3640
+ * The request failed.
3641
+ */
3642
+ 402: ProblemDetails;
3643
+ /**
3644
+ * The request failed.
3645
+ */
3646
+ 403: ProblemDetails;
3647
+ /**
3648
+ * The resource does not exist or is not visible to the authenticated principal.
3649
+ */
3650
+ 404: ProblemDetails;
3651
+ /**
3652
+ * The request failed.
3653
+ */
3654
+ 429: ProblemDetails;
3655
+ /**
3656
+ * The request failed.
3657
+ */
3658
+ 503: ProblemDetails;
3659
+ };
3660
+ export type PlanDeploymentError = PlanDeploymentErrors[keyof PlanDeploymentErrors];
3661
+ export type PlanDeploymentResponses = {
3662
+ /**
3663
+ * A deployment plan valid for fifteen minutes.
3664
+ */
3665
+ 200: DeploymentPlan;
3666
+ };
3667
+ export type PlanDeploymentResponse = PlanDeploymentResponses[keyof PlanDeploymentResponses];
3668
+ export type ListDeploymentsData = {
3669
+ body?: never;
3670
+ headers?: {
3671
+ /**
3672
+ * Optional caller-provided correlation identifier.
3673
+ */
3674
+ "X-Request-Id"?: string;
3675
+ };
3676
+ path: {
3677
+ /**
3678
+ * Project identifier.
3679
+ */
3680
+ project_id: Ulid;
3681
+ };
3682
+ query?: {
3683
+ /**
3684
+ * Opaque continuation cursor returned by the preceding deployment page.
3685
+ */
3686
+ cursor?: string;
3687
+ /**
3688
+ * Maximum number of deployments to return.
3689
+ */
3690
+ limit?: number;
3691
+ };
3692
+ url: "/v1/projects/{project_id}/deployments";
3693
+ };
3694
+ export type ListDeploymentsErrors = {
3695
+ /**
3696
+ * The request failed.
3697
+ */
3698
+ 400: ProblemDetails;
3699
+ /**
3700
+ * The request failed.
3701
+ */
3702
+ 401: ProblemDetails;
3703
+ /**
3704
+ * The request failed.
3705
+ */
3706
+ 403: ProblemDetails;
3707
+ /**
3708
+ * The resource does not exist or is not visible to the authenticated principal.
3709
+ */
3710
+ 404: ProblemDetails;
3711
+ /**
3712
+ * The request failed.
3713
+ */
3714
+ 429: ProblemDetails;
3715
+ /**
3716
+ * The request failed.
3717
+ */
3718
+ 503: ProblemDetails;
3719
+ };
3720
+ export type ListDeploymentsError = ListDeploymentsErrors[keyof ListDeploymentsErrors];
3721
+ export type ListDeploymentsResponses = {
3722
+ /**
3723
+ * One page of project deployments in stable descending order.
3724
+ */
3725
+ 200: DeploymentPage;
3726
+ };
3727
+ export type ListDeploymentsResponse = ListDeploymentsResponses[keyof ListDeploymentsResponses];
3728
+ export type CreateDeploymentData = {
3729
+ body: CreateDeploymentRequest;
3730
+ headers: {
3731
+ /**
3732
+ * Optional caller-provided correlation identifier.
3733
+ */
3734
+ "X-Request-Id"?: string;
3735
+ /**
3736
+ * Identifies one mutation and its canonical request payload.
3737
+ */
3738
+ "Idempotency-Key": string;
3739
+ };
3740
+ path: {
3741
+ /**
3742
+ * Project identifier.
3743
+ */
3744
+ project_id: Ulid;
3745
+ };
3746
+ query?: never;
3747
+ url: "/v1/projects/{project_id}/deployments";
3748
+ };
3749
+ export type CreateDeploymentErrors = {
3750
+ /**
3751
+ * The request failed.
3752
+ */
3753
+ 400: ProblemDetails;
3754
+ /**
3755
+ * The request failed.
3756
+ */
3757
+ 401: ProblemDetails;
3758
+ /**
3759
+ * The request failed.
3760
+ */
3761
+ 402: ProblemDetails;
3762
+ /**
3763
+ * The request failed.
3764
+ */
3765
+ 403: ProblemDetails;
3766
+ /**
3767
+ * The resource does not exist or is not visible to the authenticated principal.
3768
+ */
3769
+ 404: ProblemDetails;
3770
+ /**
3771
+ * The idempotency key was already used with a different canonical request.
3772
+ */
3773
+ 409: IdempotencyConflictProblem;
3774
+ /**
3775
+ * The request failed.
3776
+ */
3777
+ 429: ProblemDetails;
3778
+ /**
3779
+ * The request failed.
3780
+ */
3781
+ 503: ProblemDetails;
3782
+ };
3783
+ export type CreateDeploymentError = CreateDeploymentErrors[keyof CreateDeploymentErrors];
3784
+ export type CreateDeploymentResponses = {
3785
+ /**
3786
+ * The mutation was accepted for asynchronous processing.
3787
+ */
3788
+ 202: Operation;
3789
+ };
3790
+ export type CreateDeploymentResponse = CreateDeploymentResponses[keyof CreateDeploymentResponses];
3791
+ export type GetDeploymentData = {
3792
+ body?: never;
3793
+ headers?: {
3794
+ /**
3795
+ * Optional caller-provided correlation identifier.
3796
+ */
3797
+ "X-Request-Id"?: string;
3798
+ };
3799
+ path: {
3800
+ /**
3801
+ * Project identifier.
3802
+ */
3803
+ project_id: Ulid;
3804
+ /**
3805
+ * Deployment identifier.
3806
+ */
3807
+ deployment_id: Ulid;
3808
+ };
3809
+ query?: never;
3810
+ url: "/v1/projects/{project_id}/deployments/{deployment_id}";
3811
+ };
3812
+ export type GetDeploymentErrors = {
3813
+ /**
3814
+ * The request failed.
3815
+ */
3816
+ 400: ProblemDetails;
3817
+ /**
3818
+ * The request failed.
3819
+ */
3820
+ 401: ProblemDetails;
3821
+ /**
3822
+ * The request failed.
3823
+ */
3824
+ 403: ProblemDetails;
3825
+ /**
3826
+ * The resource does not exist or is not visible to the authenticated principal.
3827
+ */
3828
+ 404: ProblemDetails;
3829
+ /**
3830
+ * The request failed.
3831
+ */
3832
+ 429: ProblemDetails;
3833
+ /**
3834
+ * The request failed.
3835
+ */
3836
+ 503: ProblemDetails;
3837
+ };
3838
+ export type GetDeploymentError = GetDeploymentErrors[keyof GetDeploymentErrors];
3839
+ export type GetDeploymentResponses = {
3840
+ /**
3841
+ * The deployment and its current status.
3842
+ */
3843
+ 200: Deployment;
3844
+ };
3845
+ export type GetDeploymentResponse = GetDeploymentResponses[keyof GetDeploymentResponses];
3846
+ export type GetDeploymentLogsData = {
3847
+ body?: never;
3848
+ headers?: {
3849
+ /**
3850
+ * Optional caller-provided correlation identifier.
3851
+ */
3852
+ "X-Request-Id"?: string;
3853
+ };
3854
+ path: {
3855
+ /**
3856
+ * Project identifier.
3857
+ */
3858
+ project_id: Ulid;
3859
+ /**
3860
+ * Deployment identifier.
3861
+ */
3862
+ deployment_id: Ulid;
3863
+ };
3864
+ query?: {
3865
+ cursor?: string;
3866
+ limit?: number;
3867
+ };
3868
+ url: "/v1/projects/{project_id}/deployments/{deployment_id}/logs";
3869
+ };
3870
+ export type GetDeploymentLogsErrors = {
3871
+ /**
3872
+ * The request failed.
3873
+ */
3874
+ 400: ProblemDetails;
3875
+ /**
3876
+ * The request failed.
3877
+ */
3878
+ 401: ProblemDetails;
3879
+ /**
3880
+ * The request failed.
3881
+ */
3882
+ 403: ProblemDetails;
3883
+ /**
3884
+ * The resource does not exist or is not visible to the authenticated principal.
3885
+ */
3886
+ 404: ProblemDetails;
3887
+ /**
3888
+ * The request failed.
3889
+ */
3890
+ 429: ProblemDetails;
3891
+ /**
3892
+ * The request failed.
3893
+ */
3894
+ 503: ProblemDetails;
3895
+ };
3896
+ export type GetDeploymentLogsError = GetDeploymentLogsErrors[keyof GetDeploymentLogsErrors];
3897
+ export type GetDeploymentLogsResponses = {
3898
+ /**
3899
+ * Tenant-scoped normalized diagnostic page.
3900
+ */
3901
+ 200: DeploymentDiagnosticPage;
3902
+ };
3903
+ export type GetDeploymentLogsResponse = GetDeploymentLogsResponses[keyof GetDeploymentLogsResponses];
3904
+ export type StreamDeploymentLogsData = {
3905
+ body?: never;
3906
+ headers?: {
3907
+ /**
3908
+ * Optional caller-provided correlation identifier.
3909
+ */
3910
+ "X-Request-Id"?: string;
3911
+ };
3912
+ path: {
3913
+ /**
3914
+ * Project identifier.
3915
+ */
3916
+ project_id: Ulid;
3917
+ /**
3918
+ * Deployment identifier.
3919
+ */
3920
+ deployment_id: Ulid;
3921
+ };
3922
+ query?: never;
3923
+ url: "/v1/projects/{project_id}/deployments/{deployment_id}/logs/events";
3924
+ };
3925
+ export type StreamDeploymentLogsErrors = {
3926
+ /**
3927
+ * The request failed.
3928
+ */
3929
+ 401: ProblemDetails;
3930
+ /**
3931
+ * The request failed.
3932
+ */
3933
+ 403: ProblemDetails;
3934
+ /**
3935
+ * The resource does not exist or is not visible to the authenticated principal.
3936
+ */
3937
+ 404: ProblemDetails;
3938
+ /**
3939
+ * The request failed.
3940
+ */
3941
+ 503: ProblemDetails;
3942
+ };
3943
+ export type StreamDeploymentLogsError = StreamDeploymentLogsErrors[keyof StreamDeploymentLogsErrors];
3944
+ export type StreamDeploymentLogsResponses = {
3945
+ /**
3946
+ * A bounded normalized diagnostic event stream.
3947
+ */
3948
+ 200: DeploymentDiagnostic;
3949
+ };
3950
+ export type StreamDeploymentLogsResponse = StreamDeploymentLogsResponses[keyof StreamDeploymentLogsResponses];
3951
+ export type GetDatabaseComputeData = {
3952
+ body?: never;
3953
+ headers?: {
3954
+ /**
3955
+ * Optional caller-provided correlation identifier.
3956
+ */
3957
+ "X-Request-Id"?: string;
3958
+ };
3959
+ path: {
3960
+ /**
3961
+ * Project identifier.
3962
+ */
3963
+ project_id: Ulid;
3964
+ };
3965
+ query?: {
3966
+ environment?: "dev" | "prod";
3967
+ };
3968
+ url: "/v1/projects/{project_id}/database/compute";
3969
+ };
3970
+ export type GetDatabaseComputeErrors = {
3971
+ /**
3972
+ * The request failed.
3973
+ */
3974
+ 400: ProblemDetails;
3975
+ /**
3976
+ * The request failed.
3977
+ */
3978
+ 401: ProblemDetails;
3979
+ /**
3980
+ * The resource does not exist or is not visible to the authenticated principal.
3981
+ */
3982
+ 404: ProblemDetails;
3983
+ /**
3984
+ * The request failed.
3985
+ */
3986
+ 429: ProblemDetails;
3987
+ /**
3988
+ * The request failed.
3989
+ */
3990
+ 503: ProblemDetails;
3991
+ };
3992
+ export type GetDatabaseComputeError = GetDatabaseComputeErrors[keyof GetDatabaseComputeErrors];
3993
+ export type GetDatabaseComputeResponses = {
3994
+ /**
3995
+ * Fresh, tenant-scoped compute observation.
3996
+ */
3997
+ 200: DatabaseCompute;
3998
+ };
3999
+ export type GetDatabaseComputeResponse = GetDatabaseComputeResponses[keyof GetDatabaseComputeResponses];
4000
+ export type ChangeDatabaseComputeData = {
4001
+ body: {
4002
+ environment: "dev" | "prod";
4003
+ profile: "standard" | "performance";
4004
+ confirm: true;
4005
+ };
4006
+ headers: {
4007
+ /**
4008
+ * Optional caller-provided correlation identifier.
4009
+ */
4010
+ "X-Request-Id"?: string;
4011
+ /**
4012
+ * Identifies one mutation and its canonical request payload.
4013
+ */
4014
+ "Idempotency-Key": string;
4015
+ };
4016
+ path: {
4017
+ /**
4018
+ * Project identifier.
4019
+ */
4020
+ project_id: Ulid;
4021
+ };
4022
+ query?: never;
4023
+ url: "/v1/projects/{project_id}/database/compute";
4024
+ };
4025
+ export type ChangeDatabaseComputeErrors = {
4026
+ /**
4027
+ * The request failed.
4028
+ */
4029
+ 400: ProblemDetails;
4030
+ /**
4031
+ * The request failed.
4032
+ */
4033
+ 401: ProblemDetails;
4034
+ /**
4035
+ * The request failed.
4036
+ */
4037
+ 403: ProblemDetails;
4038
+ /**
4039
+ * The resource does not exist or is not visible to the authenticated principal.
4040
+ */
4041
+ 404: ProblemDetails;
4042
+ /**
4043
+ * The request failed.
4044
+ */
4045
+ 409: ProblemDetails;
4046
+ /**
4047
+ * The request failed.
4048
+ */
4049
+ 429: ProblemDetails;
4050
+ /**
4051
+ * The request failed.
4052
+ */
4053
+ 503: ProblemDetails;
4054
+ };
4055
+ export type ChangeDatabaseComputeError = ChangeDatabaseComputeErrors[keyof ChangeDatabaseComputeErrors];
4056
+ export type ChangeDatabaseComputeResponses = {
4057
+ /**
4058
+ * The mutation was accepted for asynchronous processing.
4059
+ */
4060
+ 202: Operation;
4061
+ };
4062
+ export type ChangeDatabaseComputeResponse = ChangeDatabaseComputeResponses[keyof ChangeDatabaseComputeResponses];
4063
+ export type WriteProjectDatabaseData = {
4064
+ body: ProjectDatabaseWriteRequest;
4065
+ headers: {
4066
+ /**
4067
+ * Optional caller-provided correlation identifier.
4068
+ */
4069
+ "X-Request-Id"?: string;
4070
+ /**
4071
+ * Identifies one mutation and its canonical request payload.
4072
+ */
4073
+ "Idempotency-Key": string;
4074
+ };
4075
+ path: {
4076
+ /**
4077
+ * Project identifier.
4078
+ */
4079
+ project_id: Ulid;
4080
+ };
4081
+ query?: never;
4082
+ url: "/v1/projects/{project_id}/database/write";
4083
+ };
4084
+ export type WriteProjectDatabaseErrors = {
4085
+ /**
4086
+ * The request failed.
4087
+ */
4088
+ 400: ProblemDetails;
4089
+ /**
4090
+ * The request failed.
4091
+ */
4092
+ 401: ProblemDetails;
4093
+ /**
4094
+ * The request failed.
4095
+ */
4096
+ 402: ProblemDetails;
4097
+ /**
4098
+ * The resource does not exist or is not visible to the authenticated principal.
4099
+ */
4100
+ 404: ProblemDetails;
4101
+ /**
4102
+ * The request failed.
4103
+ */
4104
+ 409: ProblemDetails;
4105
+ /**
4106
+ * The request failed.
4107
+ */
4108
+ 429: ProblemDetails;
4109
+ /**
4110
+ * The request failed.
4111
+ */
4112
+ 503: ProblemDetails;
4113
+ };
4114
+ export type WriteProjectDatabaseError = WriteProjectDatabaseErrors[keyof WriteProjectDatabaseErrors];
4115
+ export type WriteProjectDatabaseResponses = {
4116
+ /**
4117
+ * Terminal receipt; failed state is not a successful write.
4118
+ */
4119
+ 200: ProjectDatabaseWriteReceipt;
4120
+ /**
4121
+ * The same write is in progress. Poll the existing operation.
4122
+ */
4123
+ 202: ProjectDatabaseWriteReceipt;
4124
+ };
4125
+ export type WriteProjectDatabaseResponse = WriteProjectDatabaseResponses[keyof WriteProjectDatabaseResponses];
4126
+ export type QueryProjectDatabaseData = {
4127
+ body: ProjectDatabaseQueryRequest;
4128
+ headers?: {
4129
+ /**
4130
+ * Optional caller-provided correlation identifier.
4131
+ */
4132
+ "X-Request-Id"?: string;
4133
+ };
4134
+ path: {
4135
+ /**
4136
+ * Project identifier.
4137
+ */
4138
+ project_id: Ulid;
4139
+ };
4140
+ query?: never;
4141
+ url: "/v1/projects/{project_id}/database/query";
4142
+ };
4143
+ export type QueryProjectDatabaseErrors = {
4144
+ /**
4145
+ * The request failed.
4146
+ */
4147
+ 400: ProblemDetails;
4148
+ /**
4149
+ * The request failed.
4150
+ */
4151
+ 401: ProblemDetails;
4152
+ /**
4153
+ * The request failed.
4154
+ */
4155
+ 403: ProblemDetails;
4156
+ /**
4157
+ * The resource does not exist or is not visible to the authenticated principal.
4158
+ */
4159
+ 404: ProblemDetails;
4160
+ /**
4161
+ * The request failed.
4162
+ */
4163
+ 429: ProblemDetails;
4164
+ /**
4165
+ * The request failed.
4166
+ */
4167
+ 503: ProblemDetails;
4168
+ };
4169
+ export type QueryProjectDatabaseError = QueryProjectDatabaseErrors[keyof QueryProjectDatabaseErrors];
4170
+ export type QueryProjectDatabaseResponses = {
4171
+ /**
4172
+ * At most 100 JSON rows from the selected project database.
4173
+ */
4174
+ 200: ProjectDatabaseQueryResult;
4175
+ };
4176
+ export type QueryProjectDatabaseResponse = QueryProjectDatabaseResponses[keyof QueryProjectDatabaseResponses];
4177
+ export type ListProjectDatabaseAccessData = {
4178
+ body?: never;
4179
+ headers?: {
4180
+ /**
4181
+ * Optional caller-provided correlation identifier.
4182
+ */
4183
+ "X-Request-Id"?: string;
4184
+ };
4185
+ path: {
4186
+ /**
4187
+ * Project identifier.
4188
+ */
4189
+ project_id: Ulid;
4190
+ };
4191
+ query?: {
4192
+ /**
4193
+ * Restrict the listing to one application environment.
4194
+ */
4195
+ environment?: "dev" | "prod";
4196
+ };
4197
+ url: "/v1/projects/{project_id}/database/access";
4198
+ };
4199
+ export type ListProjectDatabaseAccessErrors = {
4200
+ /**
4201
+ * The request failed.
4202
+ */
4203
+ 400: ProblemDetails;
4204
+ /**
4205
+ * The request failed.
4206
+ */
4207
+ 401: ProblemDetails;
4208
+ /**
4209
+ * The resource does not exist or is not visible to the authenticated principal.
4210
+ */
4211
+ 404: ProblemDetails;
4212
+ /**
4213
+ * The request failed.
4214
+ */
4215
+ 429: ProblemDetails;
4216
+ /**
4217
+ * The request failed.
4218
+ */
4219
+ 503: ProblemDetails;
4220
+ };
4221
+ export type ListProjectDatabaseAccessError = ListProjectDatabaseAccessErrors[keyof ListProjectDatabaseAccessErrors];
4222
+ export type ListProjectDatabaseAccessResponses = {
4223
+ /**
4224
+ * The newest database credentials for this project, newest first.
4225
+ */
4226
+ 200: ProjectDatabaseAccessPage;
4227
+ };
4228
+ export type ListProjectDatabaseAccessResponse = ListProjectDatabaseAccessResponses[keyof ListProjectDatabaseAccessResponses];
4229
+ export type CreateProjectDatabaseAccessData = {
4230
+ body: ProjectDatabaseAccessRequest;
4231
+ headers?: {
4232
+ /**
4233
+ * Optional caller-provided correlation identifier.
4234
+ */
4235
+ "X-Request-Id"?: string;
4236
+ };
4237
+ path: {
4238
+ /**
4239
+ * Project identifier.
4240
+ */
4241
+ project_id: Ulid;
4242
+ };
4243
+ query?: never;
4244
+ url: "/v1/projects/{project_id}/database/access";
4245
+ };
4246
+ export type CreateProjectDatabaseAccessErrors = {
4247
+ /**
4248
+ * The request failed.
4249
+ */
4250
+ 400: ProblemDetails;
4251
+ /**
4252
+ * The request failed.
4253
+ */
4254
+ 401: ProblemDetails;
4255
+ /**
4256
+ * The request failed.
4257
+ */
4258
+ 402: ProblemDetails;
4259
+ /**
4260
+ * The resource does not exist or is not visible to the authenticated principal.
4261
+ */
4262
+ 404: ProblemDetails;
4263
+ /**
4264
+ * The request failed.
4265
+ */
4266
+ 409: ProblemDetails;
4267
+ /**
4268
+ * The request failed.
4269
+ */
4270
+ 429: ProblemDetails;
4271
+ /**
4272
+ * The request failed.
4273
+ */
4274
+ 503: ProblemDetails;
4275
+ };
4276
+ export type CreateProjectDatabaseAccessError = CreateProjectDatabaseAccessErrors[keyof CreateProjectDatabaseAccessErrors];
4277
+ export type CreateProjectDatabaseAccessResponses = {
4278
+ /**
4279
+ * The connection URI is returned once and is never persisted in plaintext.
4280
+ */
4281
+ 201: ProjectDatabaseAccessCredential;
4282
+ };
4283
+ export type CreateProjectDatabaseAccessResponse = CreateProjectDatabaseAccessResponses[keyof CreateProjectDatabaseAccessResponses];
4284
+ export type RevokeProjectDatabaseAccessData = {
4285
+ body?: never;
4286
+ headers?: {
4287
+ /**
4288
+ * Optional caller-provided correlation identifier.
4289
+ */
4290
+ "X-Request-Id"?: string;
4291
+ };
4292
+ path: {
4293
+ /**
4294
+ * Project identifier.
4295
+ */
4296
+ project_id: Ulid;
4297
+ /**
4298
+ * Issued database credential identifier.
4299
+ */
4300
+ access_id: Ulid;
4301
+ };
4302
+ query?: never;
4303
+ url: "/v1/projects/{project_id}/database/access/{access_id}";
4304
+ };
4305
+ export type RevokeProjectDatabaseAccessErrors = {
4306
+ /**
4307
+ * The request failed.
4308
+ */
4309
+ 400: ProblemDetails;
4310
+ /**
4311
+ * The request failed.
4312
+ */
4313
+ 401: ProblemDetails;
4314
+ /**
4315
+ * The resource does not exist or is not visible to the authenticated principal.
4316
+ */
4317
+ 404: ProblemDetails;
4318
+ /**
4319
+ * The request failed.
4320
+ */
4321
+ 429: ProblemDetails;
4322
+ /**
4323
+ * The request failed.
4324
+ */
4325
+ 503: ProblemDetails;
4326
+ };
4327
+ export type RevokeProjectDatabaseAccessError = RevokeProjectDatabaseAccessErrors[keyof RevokeProjectDatabaseAccessErrors];
4328
+ export type RevokeProjectDatabaseAccessResponses = {
4329
+ /**
4330
+ * The revoked credential record without any connection URI.
4331
+ */
4332
+ 200: ProjectDatabaseAccess;
4333
+ };
4334
+ export type RevokeProjectDatabaseAccessResponse = RevokeProjectDatabaseAccessResponses[keyof RevokeProjectDatabaseAccessResponses];
4335
+ export type PlanDeploymentRollbackData = {
4336
+ body?: never;
4337
+ headers?: {
4338
+ /**
4339
+ * Optional caller-provided correlation identifier.
4340
+ */
4341
+ "X-Request-Id"?: string;
4342
+ };
4343
+ path: {
4344
+ /**
4345
+ * Project identifier.
4346
+ */
4347
+ project_id: Ulid;
4348
+ /**
4349
+ * Immutable deployment selected as the rollback target.
4350
+ */
4351
+ target_deployment_id: Ulid;
4352
+ };
4353
+ query?: never;
4354
+ url: "/v1/projects/{project_id}/deployments/{target_deployment_id}:rollback-plan";
4355
+ };
4356
+ export type PlanDeploymentRollbackErrors = {
4357
+ /**
4358
+ * The request failed.
4359
+ */
4360
+ 400: ProblemDetails;
4361
+ /**
4362
+ * The request failed.
4363
+ */
4364
+ 401: ProblemDetails;
4365
+ /**
4366
+ * The request failed.
4367
+ */
4368
+ 403: ProblemDetails;
4369
+ /**
4370
+ * The resource does not exist or is not visible to the authenticated principal.
4371
+ */
4372
+ 404: ProblemDetails;
4373
+ /**
4374
+ * The request failed.
4375
+ */
4376
+ 429: ProblemDetails;
4377
+ /**
4378
+ * The request failed.
4379
+ */
4380
+ 503: ProblemDetails;
4381
+ };
4382
+ export type PlanDeploymentRollbackError = PlanDeploymentRollbackErrors[keyof PlanDeploymentRollbackErrors];
4383
+ export type PlanDeploymentRollbackResponses = {
4384
+ /**
4385
+ * A rollback plan with a ten-minute action-bound confirmation token.
4386
+ */
4387
+ 200: GuardedActionPlan;
4388
+ };
4389
+ export type PlanDeploymentRollbackResponse = PlanDeploymentRollbackResponses[keyof PlanDeploymentRollbackResponses];
4390
+ export type RollbackDeploymentData = {
4391
+ body?: never;
4392
+ headers: {
4393
+ /**
4394
+ * Optional caller-provided correlation identifier.
4395
+ */
4396
+ "X-Request-Id"?: string;
4397
+ /**
4398
+ * Identifies one mutation and its canonical request payload.
4399
+ */
4400
+ "Idempotency-Key": string;
4401
+ /**
4402
+ * Exact ETag returned for the current project or deployment state.
4403
+ */
4404
+ "If-Match": string;
4405
+ /**
4406
+ * Ten-minute token bound to the planned action, project, target resource, and resource ETag.
4407
+ */
4408
+ "X-Confirmation-Token": ConfirmationToken;
4409
+ };
4410
+ path: {
4411
+ /**
4412
+ * Project identifier.
4413
+ */
4414
+ project_id: Ulid;
4415
+ /**
4416
+ * Immutable deployment selected as the rollback target.
4417
+ */
4418
+ target_deployment_id: Ulid;
4419
+ };
4420
+ query?: never;
4421
+ url: "/v1/projects/{project_id}/deployments/{target_deployment_id}:rollback";
4422
+ };
4423
+ export type RollbackDeploymentErrors = {
4424
+ /**
4425
+ * The request failed.
4426
+ */
4427
+ 400: ProblemDetails;
4428
+ /**
4429
+ * The request failed.
4430
+ */
4431
+ 401: ProblemDetails;
4432
+ /**
4433
+ * The request failed.
4434
+ */
4435
+ 403: ProblemDetails;
4436
+ /**
4437
+ * The resource does not exist or is not visible to the authenticated principal.
4438
+ */
4439
+ 404: ProblemDetails;
4440
+ /**
4441
+ * The request failed.
4442
+ */
4443
+ 409: ProblemDetails;
4444
+ /**
4445
+ * The request failed.
4446
+ */
4447
+ 429: ProblemDetails;
4448
+ /**
4449
+ * The request failed.
4450
+ */
4451
+ 503: ProblemDetails;
4452
+ };
4453
+ export type RollbackDeploymentError = RollbackDeploymentErrors[keyof RollbackDeploymentErrors];
4454
+ export type RollbackDeploymentResponses = {
4455
+ /**
4456
+ * The mutation was accepted for asynchronous processing.
4457
+ */
4458
+ 202: Operation;
4459
+ };
4460
+ export type RollbackDeploymentResponse = RollbackDeploymentResponses[keyof RollbackDeploymentResponses];
4461
+ export type PlanDeploymentPromotionData = {
4462
+ body?: never;
4463
+ headers?: {
4464
+ /**
4465
+ * Optional caller-provided correlation identifier.
4466
+ */
4467
+ "X-Request-Id"?: string;
4468
+ };
4469
+ path: {
4470
+ /**
4471
+ * Project identifier.
4472
+ */
4473
+ project_id: Ulid;
4474
+ /**
4475
+ * Current succeeded dev deployment whose immutable artifact will be promoted.
4476
+ */
4477
+ source_deployment_id: Ulid;
4478
+ };
4479
+ query?: never;
4480
+ url: "/v1/projects/{project_id}/deployments/{source_deployment_id}:promote-plan";
4481
+ };
4482
+ export type PlanDeploymentPromotionErrors = {
4483
+ /**
4484
+ * The request failed.
4485
+ */
4486
+ 400: ProblemDetails;
4487
+ /**
4488
+ * The request failed.
4489
+ */
4490
+ 401: ProblemDetails;
4491
+ /**
4492
+ * The request failed.
4493
+ */
4494
+ 403: ProblemDetails;
4495
+ /**
4496
+ * The resource does not exist or is not visible to the authenticated principal.
4497
+ */
4498
+ 404: ProblemDetails;
4499
+ /**
4500
+ * The request failed.
4501
+ */
4502
+ 409: ProblemDetails;
4503
+ /**
4504
+ * The request failed.
4505
+ */
4506
+ 429: ProblemDetails;
4507
+ /**
4508
+ * The request failed.
4509
+ */
4510
+ 503: ProblemDetails;
4511
+ };
4512
+ export type PlanDeploymentPromotionError = PlanDeploymentPromotionErrors[keyof PlanDeploymentPromotionErrors];
4513
+ export type PlanDeploymentPromotionResponses = {
4514
+ /**
4515
+ * A promotion plan with a ten-minute action-bound confirmation token.
4516
+ */
4517
+ 200: GuardedActionPlan;
4518
+ };
4519
+ export type PlanDeploymentPromotionResponse = PlanDeploymentPromotionResponses[keyof PlanDeploymentPromotionResponses];
4520
+ export type PromoteDeploymentData = {
4521
+ body?: never;
4522
+ headers: {
4523
+ /**
4524
+ * Optional caller-provided correlation identifier.
4525
+ */
4526
+ "X-Request-Id"?: string;
4527
+ /**
4528
+ * Identifies one mutation and its canonical request payload.
4529
+ */
4530
+ "Idempotency-Key": string;
4531
+ /**
4532
+ * Exact ETag returned for the current project or deployment state.
4533
+ */
4534
+ "If-Match": string;
4535
+ /**
4536
+ * Ten-minute token bound to the planned action, project, target resource, and resource ETag.
4537
+ */
4538
+ "X-Confirmation-Token": ConfirmationToken;
4539
+ };
4540
+ path: {
4541
+ /**
4542
+ * Project identifier.
4543
+ */
4544
+ project_id: Ulid;
4545
+ /**
4546
+ * Current succeeded dev deployment whose immutable artifact will be promoted.
4547
+ */
4548
+ source_deployment_id: Ulid;
4549
+ };
4550
+ query?: never;
4551
+ url: "/v1/projects/{project_id}/deployments/{source_deployment_id}:promote";
4552
+ };
4553
+ export type PromoteDeploymentErrors = {
4554
+ /**
4555
+ * The request failed.
4556
+ */
4557
+ 400: ProblemDetails;
4558
+ /**
4559
+ * The request failed.
4560
+ */
4561
+ 401: ProblemDetails;
4562
+ /**
4563
+ * The request failed.
4564
+ */
4565
+ 403: ProblemDetails;
4566
+ /**
4567
+ * The resource does not exist or is not visible to the authenticated principal.
4568
+ */
4569
+ 404: ProblemDetails;
4570
+ /**
4571
+ * The request failed.
4572
+ */
4573
+ 409: ProblemDetails;
4574
+ /**
4575
+ * The request failed.
4576
+ */
4577
+ 429: ProblemDetails;
4578
+ /**
4579
+ * The request failed.
4580
+ */
4581
+ 503: ProblemDetails;
4582
+ };
4583
+ export type PromoteDeploymentError = PromoteDeploymentErrors[keyof PromoteDeploymentErrors];
4584
+ export type PromoteDeploymentResponses = {
4585
+ /**
4586
+ * The mutation was accepted for asynchronous processing.
4587
+ */
4588
+ 202: Operation;
4589
+ };
4590
+ export type PromoteDeploymentResponse = PromoteDeploymentResponses[keyof PromoteDeploymentResponses];
4591
+ export type ListEnvironmentSecretsData = {
4592
+ body?: never;
4593
+ headers?: {
4594
+ /**
4595
+ * Optional caller-provided correlation identifier.
4596
+ */
4597
+ "X-Request-Id"?: string;
4598
+ };
4599
+ path: {
4600
+ /**
4601
+ * Project identifier.
4602
+ */
4603
+ project_id: Ulid;
4604
+ /**
4605
+ * Environment identifier.
4606
+ */
4607
+ environment_id: Ulid;
4608
+ };
4609
+ query?: never;
4610
+ url: "/v1/projects/{project_id}/environments/{environment_id}/secrets";
4611
+ };
4612
+ export type ListEnvironmentSecretsErrors = {
4613
+ /**
4614
+ * The request failed.
4615
+ */
4616
+ 400: ProblemDetails;
4617
+ /**
4618
+ * The request failed.
4619
+ */
4620
+ 401: ProblemDetails;
4621
+ /**
4622
+ * The request failed.
4623
+ */
4624
+ 403: ProblemDetails;
4625
+ /**
4626
+ * The resource does not exist or is not visible to the authenticated principal.
4627
+ */
4628
+ 404: ProblemDetails;
4629
+ /**
4630
+ * The request failed.
4631
+ */
4632
+ 429: ProblemDetails;
4633
+ /**
4634
+ * The request failed.
4635
+ */
4636
+ 503: ProblemDetails;
4637
+ };
4638
+ export type ListEnvironmentSecretsError = ListEnvironmentSecretsErrors[keyof ListEnvironmentSecretsErrors];
4639
+ export type ListEnvironmentSecretsResponses = {
4640
+ /**
4641
+ * Environment secret metadata ordered by name.
4642
+ */
4643
+ 200: EnvironmentSecretPage;
4644
+ };
4645
+ export type ListEnvironmentSecretsResponse = ListEnvironmentSecretsResponses[keyof ListEnvironmentSecretsResponses];
4646
+ export type ListFunctionRunsData = {
4647
+ body?: never;
4648
+ headers?: {
4649
+ /**
4650
+ * Optional caller-provided correlation identifier.
4651
+ */
4652
+ "X-Request-Id"?: string;
4653
+ };
4654
+ path: {
4655
+ /**
4656
+ * Project identifier.
4657
+ */
4658
+ project_id: Ulid;
4659
+ /**
4660
+ * Environment identifier.
4661
+ */
4662
+ environment_id: Ulid;
4663
+ };
4664
+ query?: {
4665
+ limit?: number;
4666
+ };
4667
+ url: "/v1/projects/{project_id}/environments/{environment_id}/function-runs";
4668
+ };
4669
+ export type ListFunctionRunsErrors = {
4670
+ /**
4671
+ * The request failed.
4672
+ */
4673
+ 400: ProblemDetails;
4674
+ /**
4675
+ * The request failed.
4676
+ */
4677
+ 401: ProblemDetails;
4678
+ /**
4679
+ * The request failed.
4680
+ */
4681
+ 403: ProblemDetails;
4682
+ /**
4683
+ * The resource does not exist or is not visible to the authenticated principal.
4684
+ */
4685
+ 404: ProblemDetails;
4686
+ /**
4687
+ * The request failed.
4688
+ */
4689
+ 429: ProblemDetails;
4690
+ /**
4691
+ * The request failed.
4692
+ */
4693
+ 503: ProblemDetails;
4694
+ };
4695
+ export type ListFunctionRunsError = ListFunctionRunsErrors[keyof ListFunctionRunsErrors];
4696
+ export type ListFunctionRunsResponses = {
4697
+ /**
4698
+ * The newest scheduled runs of the environment, newest first.
4699
+ */
4700
+ 200: FunctionRunPage;
4701
+ };
4702
+ export type ListFunctionRunsResponse = ListFunctionRunsResponses[keyof ListFunctionRunsResponses];
4703
+ export type DeleteEnvironmentSecretData = {
4704
+ body?: never;
4705
+ headers: {
4706
+ /**
4707
+ * Optional caller-provided correlation identifier.
4708
+ */
4709
+ "X-Request-Id"?: string;
4710
+ /**
4711
+ * Identifies one mutation and its canonical request payload.
4712
+ */
4713
+ "Idempotency-Key": string;
4714
+ };
4715
+ path: {
4716
+ /**
4717
+ * Project identifier.
4718
+ */
4719
+ project_id: Ulid;
4720
+ /**
4721
+ * Environment identifier.
4722
+ */
4723
+ environment_id: Ulid;
4724
+ /**
4725
+ * Uppercase environment-variable name.
4726
+ */
4727
+ secret_name: string;
4728
+ };
4729
+ query?: never;
4730
+ url: "/v1/projects/{project_id}/environments/{environment_id}/secrets/{secret_name}";
4731
+ };
4732
+ export type DeleteEnvironmentSecretErrors = {
4733
+ /**
4734
+ * The request failed.
4735
+ */
4736
+ 400: ProblemDetails;
4737
+ /**
4738
+ * The request failed.
4739
+ */
4740
+ 401: ProblemDetails;
4741
+ /**
4742
+ * The request failed.
4743
+ */
4744
+ 403: ProblemDetails;
4745
+ /**
4746
+ * The resource does not exist or is not visible to the authenticated principal.
4747
+ */
4748
+ 404: ProblemDetails;
4749
+ /**
4750
+ * The idempotency key was already used with a different canonical request.
4751
+ */
4752
+ 409: IdempotencyConflictProblem;
4753
+ /**
4754
+ * The request failed.
4755
+ */
4756
+ 429: ProblemDetails;
4757
+ /**
4758
+ * The request failed.
4759
+ */
4760
+ 503: ProblemDetails;
4761
+ };
4762
+ export type DeleteEnvironmentSecretError = DeleteEnvironmentSecretErrors[keyof DeleteEnvironmentSecretErrors];
4763
+ export type DeleteEnvironmentSecretResponses = {
4764
+ /**
4765
+ * Idempotent deletion outcome.
4766
+ */
4767
+ 200: DeleteEnvironmentSecretResult;
4768
+ };
4769
+ export type DeleteEnvironmentSecretResponse = DeleteEnvironmentSecretResponses[keyof DeleteEnvironmentSecretResponses];
4770
+ export type PutEnvironmentSecretData = {
4771
+ body: PutEnvironmentSecretRequest;
4772
+ headers: {
4773
+ /**
4774
+ * Optional caller-provided correlation identifier.
4775
+ */
4776
+ "X-Request-Id"?: string;
4777
+ /**
4778
+ * Identifies one mutation and its canonical request payload.
4779
+ */
4780
+ "Idempotency-Key": string;
4781
+ };
4782
+ path: {
4783
+ /**
4784
+ * Project identifier.
4785
+ */
4786
+ project_id: Ulid;
4787
+ /**
4788
+ * Environment identifier.
4789
+ */
4790
+ environment_id: Ulid;
4791
+ /**
4792
+ * Uppercase environment-variable name.
4793
+ */
4794
+ secret_name: string;
4795
+ };
4796
+ query?: never;
4797
+ url: "/v1/projects/{project_id}/environments/{environment_id}/secrets/{secret_name}";
4798
+ };
4799
+ export type PutEnvironmentSecretErrors = {
4800
+ /**
4801
+ * The request failed.
4802
+ */
4803
+ 400: ProblemDetails;
4804
+ /**
4805
+ * The request failed.
4806
+ */
4807
+ 401: ProblemDetails;
4808
+ /**
4809
+ * The request failed.
4810
+ */
4811
+ 403: ProblemDetails;
4812
+ /**
4813
+ * The resource does not exist or is not visible to the authenticated principal.
4814
+ */
4815
+ 404: ProblemDetails;
4816
+ /**
4817
+ * The idempotency key was already used with a different canonical request.
4818
+ */
4819
+ 409: IdempotencyConflictProblem;
4820
+ /**
4821
+ * The request failed.
4822
+ */
4823
+ 429: ProblemDetails;
4824
+ /**
4825
+ * The request failed.
4826
+ */
4827
+ 503: ProblemDetails;
4828
+ };
4829
+ export type PutEnvironmentSecretError = PutEnvironmentSecretErrors[keyof PutEnvironmentSecretErrors];
4830
+ export type PutEnvironmentSecretResponses = {
4831
+ /**
4832
+ * Stored secret metadata. The value is never returned.
4833
+ */
4834
+ 200: EnvironmentSecret;
4835
+ };
4836
+ export type PutEnvironmentSecretResponse = PutEnvironmentSecretResponses[keyof PutEnvironmentSecretResponses];
4837
+ export type GetOperationData = {
4838
+ body?: never;
4839
+ headers?: {
4840
+ /**
4841
+ * Optional caller-provided correlation identifier.
4842
+ */
4843
+ "X-Request-Id"?: string;
4844
+ };
4845
+ path: {
4846
+ /**
4847
+ * Operation identifier.
4848
+ */
4849
+ operation_id: Ulid;
4850
+ };
4851
+ query?: never;
4852
+ url: "/v1/operations/{operation_id}";
4853
+ };
4854
+ export type GetOperationErrors = {
4855
+ /**
4856
+ * The request failed.
4857
+ */
4858
+ 400: ProblemDetails;
4859
+ /**
4860
+ * The request failed.
4861
+ */
4862
+ 401: ProblemDetails;
4863
+ /**
4864
+ * The request failed.
4865
+ */
4866
+ 403: ProblemDetails;
4867
+ /**
4868
+ * The resource does not exist or is not visible to the authenticated principal.
4869
+ */
4870
+ 404: ProblemDetails;
4871
+ /**
4872
+ * The request failed.
4873
+ */
4874
+ 429: ProblemDetails;
4875
+ /**
4876
+ * The request failed.
4877
+ */
4878
+ 503: ProblemDetails;
4879
+ };
4880
+ export type GetOperationError = GetOperationErrors[keyof GetOperationErrors];
4881
+ export type GetOperationResponses = {
4882
+ /**
4883
+ * The durable operation and its current state.
4884
+ */
4885
+ 200: Operation;
4886
+ };
4887
+ export type GetOperationResponse = GetOperationResponses[keyof GetOperationResponses];
4888
+ export type ReconcileOperationData = {
4889
+ body?: never;
4890
+ headers: {
4891
+ /**
4892
+ * Optional caller-provided correlation identifier.
4893
+ */
4894
+ "X-Request-Id"?: string;
4895
+ /**
4896
+ * Identifies one mutation and its canonical request payload.
4897
+ */
4898
+ "Idempotency-Key": string;
4899
+ };
4900
+ path: {
4901
+ /**
4902
+ * Operation identifier.
4903
+ */
4904
+ operation_id: Ulid;
4905
+ };
4906
+ query?: never;
4907
+ url: "/v1/operations/{operation_id}:reconcile";
4908
+ };
4909
+ export type ReconcileOperationErrors = {
4910
+ /**
4911
+ * The request failed.
4912
+ */
4913
+ 400: ProblemDetails;
4914
+ /**
4915
+ * The request failed.
4916
+ */
4917
+ 401: ProblemDetails;
4918
+ /**
4919
+ * The request failed.
4920
+ */
4921
+ 403: ProblemDetails;
4922
+ /**
4923
+ * The resource does not exist or is not visible to the authenticated principal.
4924
+ */
4925
+ 404: ProblemDetails;
4926
+ /**
4927
+ * The request failed.
4928
+ */
4929
+ 409: ProblemDetails;
4930
+ /**
4931
+ * The request failed.
4932
+ */
4933
+ 429: ProblemDetails;
4934
+ /**
4935
+ * The request failed.
4936
+ */
4937
+ 503: ProblemDetails;
4938
+ };
4939
+ export type ReconcileOperationError = ReconcileOperationErrors[keyof ReconcileOperationErrors];
4940
+ export type ReconcileOperationResponses = {
4941
+ /**
4942
+ * The reconciliation attempt was accepted or replayed.
4943
+ */
4944
+ 202: ProviderReconciliationAttempt;
4945
+ };
4946
+ export type ReconcileOperationResponse = ReconcileOperationResponses[keyof ReconcileOperationResponses];
4947
+ export type StreamOperationEventsData = {
4948
+ body?: never;
4949
+ headers?: {
4950
+ /**
4951
+ * Optional caller-provided correlation identifier.
4952
+ */
4953
+ "X-Request-Id"?: string;
4954
+ };
4955
+ path: {
4956
+ /**
4957
+ * Operation identifier.
4958
+ */
4959
+ operation_id: Ulid;
4960
+ };
4961
+ query?: never;
4962
+ url: "/v1/operations/{operation_id}/events";
4963
+ };
4964
+ export type StreamOperationEventsErrors = {
4965
+ /**
4966
+ * The request failed.
4967
+ */
4968
+ 400: ProblemDetails;
4969
+ /**
4970
+ * The request failed.
4971
+ */
4972
+ 401: ProblemDetails;
4973
+ /**
4974
+ * The request failed.
4975
+ */
4976
+ 403: ProblemDetails;
4977
+ /**
4978
+ * The resource does not exist or is not visible to the authenticated principal.
4979
+ */
4980
+ 404: ProblemDetails;
4981
+ /**
4982
+ * The request failed.
4983
+ */
4984
+ 429: ProblemDetails;
4985
+ /**
4986
+ * The request failed.
4987
+ */
4988
+ 503: ProblemDetails;
4989
+ };
4990
+ export type StreamOperationEventsError = StreamOperationEventsErrors[keyof StreamOperationEventsErrors];
4991
+ export type StreamOperationEventsResponses = {
4992
+ /**
4993
+ * A server-sent event stream for the operation.
4994
+ */
4995
+ 200: OperationEvent;
4996
+ };
4997
+ export type StreamOperationEventsResponse = StreamOperationEventsResponses[keyof StreamOperationEventsResponses];
4998
+ export type ListAuditEventsData = {
4999
+ body?: never;
5000
+ headers?: {
5001
+ /**
5002
+ * Optional caller-provided correlation identifier.
5003
+ */
5004
+ "X-Request-Id"?: string;
5005
+ };
5006
+ path?: never;
5007
+ query?: {
5008
+ /**
5009
+ * Restricts the page to one visible project.
5010
+ */
5011
+ project_id?: Ulid;
5012
+ /**
5013
+ * Restricts the page to one visible operation.
5014
+ */
5015
+ operation_id?: Ulid;
5016
+ /**
5017
+ * Opaque continuation cursor returned by the preceding page.
5018
+ */
5019
+ cursor?: string;
5020
+ /**
5021
+ * Maximum number of audit events to return.
5022
+ */
5023
+ limit?: number;
5024
+ };
5025
+ url: "/v1/audit-events";
5026
+ };
5027
+ export type ListAuditEventsErrors = {
5028
+ /**
5029
+ * The request failed.
5030
+ */
5031
+ 400: ProblemDetails;
5032
+ /**
5033
+ * The request failed.
5034
+ */
5035
+ 401: ProblemDetails;
5036
+ /**
5037
+ * The request failed.
5038
+ */
5039
+ 403: ProblemDetails;
5040
+ /**
5041
+ * The resource does not exist or is not visible to the authenticated principal.
5042
+ */
5043
+ 404: ProblemDetails;
5044
+ /**
5045
+ * The request failed.
5046
+ */
5047
+ 429: ProblemDetails;
5048
+ /**
5049
+ * The request failed.
5050
+ */
5051
+ 503: ProblemDetails;
5052
+ };
5053
+ export type ListAuditEventsError = ListAuditEventsErrors[keyof ListAuditEventsErrors];
5054
+ export type ListAuditEventsResponses = {
5055
+ /**
5056
+ * One page of visible audit events.
5057
+ */
5058
+ 200: AuditEventPage;
5059
+ };
5060
+ export type ListAuditEventsResponse = ListAuditEventsResponses[keyof ListAuditEventsResponses];
5061
+ //# sourceMappingURL=types.gen.d.ts.map