@amerged/ohmyhost-sdk 0.1.53 → 0.1.55

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.
@@ -429,10 +429,10 @@ export type CloudflareDnsAuthorization = {
429
429
  expires_at: string;
430
430
  };
431
431
  /**
432
- * 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.
432
+ * Credential-free project authorization state. Without an authorization, status is not_authorized, zone and expires_at are null, and scopes is empty. When the consenting user no longer holds project write authority, status is reauthorization_required, which names the zone while scopes is empty and expires_at is null until the owner authorizes the zone again. All other states name the actual customer zone; no platform or customer zone is inferred.
433
433
  */
434
434
  export type CloudflareDnsAuthorizationStatus = {
435
- status: "not_authorized" | "pending" | "authorized" | "expired" | "revoked";
435
+ status: "not_authorized" | "pending" | "authorized" | "reauthorization_required" | "expired" | "revoked";
436
436
  zone: string | null;
437
437
  scopes: Array<"dns.write" | "zone.read">;
438
438
  expires_at: string | null;
@@ -554,6 +554,18 @@ export type GithubOrganizationConnectionStatus = {
554
554
  status: "not_connected" | "connected" | "revoked";
555
555
  connection: GithubOrganizationConnection | null;
556
556
  };
557
+ export type OrganizationMcpConnection = {
558
+ connection_id: string;
559
+ client_id: string;
560
+ user_id: string;
561
+ connected_at: string;
562
+ };
563
+ export type OrganizationMcpConnectionList = {
564
+ connections: Array<OrganizationMcpConnection>;
565
+ };
566
+ export type OrganizationMcpConnectionRevocation = {
567
+ state: "pending" | "revoked";
568
+ };
557
569
  export type GithubConnectionAuthorization = {
558
570
  authorization_id: string | null;
559
571
  status: "pending" | "authorizing" | "connected" | "failed" | "expired";
@@ -738,7 +750,7 @@ export type FunctionRun = {
738
750
  deployment_id: Ulid;
739
751
  cron: string;
740
752
  scheduled_at: string;
741
- state: "due" | "running" | "retry" | "succeeded" | "failed";
753
+ state: "due" | "running" | "retry" | "succeeded" | "failed" | "skipped";
742
754
  attempt: number;
743
755
  status_code: number | null;
744
756
  started_at: string | null;
@@ -998,6 +1010,9 @@ export type DatabaseWebhookCreateRequest = {
998
1010
  export type DatabaseWebhook = {
999
1011
  id: string;
1000
1012
  environment: "dev" | "prod";
1013
+ /**
1014
+ * The receiver URL. Callers without projects:write receive only its origin, because the path or query may carry the receiver's credential.
1015
+ */
1001
1016
  url: string;
1002
1017
  event_types: Array<DatabaseWebhookEventPattern>;
1003
1018
  /**
@@ -1506,7 +1521,7 @@ export type ProblemDetails = {
1506
1521
  status: number;
1507
1522
  detail?: string;
1508
1523
  instance?: string;
1509
- 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" | "mail_capacity_unavailable" | "storage_jurisdiction_conflict" | "shared_data_requires_promotion" | "production_deployment_required" | "framework_conversion_required" | "repository_configuration_missing" | "migration_filename_noncanonical" | "environment_secret_mutation_blocked" | "workers_runtime_incompatible" | "project_handle_invalid" | "project_handle_taken" | "project_handle_unchanged" | "project_rename_blocked" | "payload_too_large" | "rate_limited" | "insufficient_organization_credits" | "paid_plan_required" | "project_budget_exceeded" | "compute_performance_paid_required" | "compute_paid_required" | "compute_storage_shrink_requires_migration" | "compute_performance_unavailable" | "database_write_pending" | "database_access_limit" | "database_webhook_limit" | "database_schedule_limit" | "database_schedule_not_runnable" | "database_webhook_delivery_pending" | "database_watch_limit" | "database_watch_table_unavailable" | "database_watch_column_unavailable" | "database_watch_events_unavailable" | "database_watch_conflict" | "database_table_conflict" | "database_table_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" | "powered_by_flag_required" | "interactive_login_required" | "api_key_creation_uncertain" | "api_key_permissions_unavailable" | "reconciliation_exhausted" | "service_unavailable" | "source_commit_not_found" | "domain_hostname_taken" | "domain_dns_conflict" | "data_change_blocked" | "data_change_in_progress" | "data_change_not_applicable" | "rollback_target_data_changed" | "project_domain_delete_required" | "native_domain_sync_pending";
1524
+ 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_pending_limit" | "mail_domain_required" | "mail_capacity_unavailable" | "storage_jurisdiction_conflict" | "shared_data_requires_promotion" | "production_deployment_required" | "framework_conversion_required" | "repository_configuration_missing" | "migration_filename_noncanonical" | "environment_secret_mutation_blocked" | "workers_runtime_incompatible" | "project_handle_invalid" | "project_handle_taken" | "project_handle_unchanged" | "project_rename_blocked" | "database_limit_reached" | "payload_too_large" | "rate_limited" | "build_capacity_reached" | "insufficient_organization_credits" | "paid_plan_required" | "project_budget_exceeded" | "compute_performance_paid_required" | "compute_paid_required" | "compute_storage_shrink_requires_migration" | "compute_performance_unavailable" | "database_write_pending" | "database_access_limit" | "database_webhook_limit" | "database_schedule_limit" | "database_schedule_not_runnable" | "database_webhook_delivery_pending" | "database_watch_limit" | "database_watch_table_unavailable" | "database_watch_column_unavailable" | "database_watch_events_unavailable" | "database_watch_conflict" | "database_table_conflict" | "database_table_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" | "powered_by_flag_required" | "interactive_login_required" | "api_key_creation_uncertain" | "api_key_permissions_unavailable" | "reconciliation_exhausted" | "reconciliation_not_pending" | "service_unavailable" | "source_commit_not_found" | "domain_hostname_taken" | "domain_ownership_required" | "domain_dns_conflict" | "data_change_blocked" | "data_change_in_progress" | "data_change_not_applicable" | "rollback_target_data_changed" | "project_domain_delete_required" | "native_domain_sync_pending" | "native_auth_launch_unavailable" | "native_auth_provider_unavailable" | "native_auth_epoch_exhausted" | "native_user_conflict" | "project_domains_conflict";
1510
1525
  request_id: string;
1511
1526
  retryable: boolean;
1512
1527
  /**
@@ -1661,7 +1676,7 @@ export type ProjectExportArchive = {
1661
1676
  download_expires_at: string | null;
1662
1677
  };
1663
1678
  export type OperationFailure = {
1664
- code: "operation_failed" | "operation_abandoned" | "authorization_changed" | "source_commit_conflict" | "source_snapshot_invalid" | "source_upload_expired" | "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" | "project_budget_exceeded" | "paid_plan_required" | "runtime_candidate_failed" | "runtime_candidate_rejected" | "storage_jurisdiction_conflict" | "provider_state_absent" | "auto_deploy_plan_rejected" | "promotion_source_stale" | "promotion_target_stale";
1679
+ code: "operation_failed" | "operation_abandoned" | "authorization_changed" | "source_commit_conflict" | "source_snapshot_invalid" | "source_upload_expired" | "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" | "project_budget_exceeded" | "paid_plan_required" | "runtime_candidate_failed" | "runtime_candidate_rejected" | "storage_jurisdiction_conflict" | "provider_state_absent" | "auto_deploy_plan_rejected" | "promotion_source_stale" | "promotion_target_stale" | "project_handle_taken" | "managed_source_dispatch_failed";
1665
1680
  message: string;
1666
1681
  /**
1667
1682
  * A terminal operation cannot be retried in place; follow suggested_action.
@@ -3820,6 +3835,54 @@ export type ConnectGithubOrganizationResponses = {
3820
3835
  201: GithubConnectionAuthorization;
3821
3836
  };
3822
3837
  export type ConnectGithubOrganizationResponse = ConnectGithubOrganizationResponses[keyof ConnectGithubOrganizationResponses];
3838
+ export type DisconnectGithubOrganizationData = {
3839
+ body?: never;
3840
+ headers?: {
3841
+ /**
3842
+ * Optional caller-provided correlation identifier.
3843
+ */
3844
+ "X-Request-Id"?: string;
3845
+ };
3846
+ path: {
3847
+ organization_id: Ulid;
3848
+ };
3849
+ query?: never;
3850
+ url: "/v1/organizations/{organization_id}/github";
3851
+ };
3852
+ export type DisconnectGithubOrganizationErrors = {
3853
+ /**
3854
+ * The request failed.
3855
+ */
3856
+ 400: ProblemDetails;
3857
+ /**
3858
+ * The request failed.
3859
+ */
3860
+ 401: ProblemDetails;
3861
+ /**
3862
+ * The request failed.
3863
+ */
3864
+ 403: ProblemDetails;
3865
+ /**
3866
+ * The resource does not exist or is not visible to the authenticated principal.
3867
+ */
3868
+ 404: ProblemDetails;
3869
+ /**
3870
+ * The request failed.
3871
+ */
3872
+ 429: ProblemDetails;
3873
+ /**
3874
+ * The request failed.
3875
+ */
3876
+ 503: ProblemDetails;
3877
+ };
3878
+ export type DisconnectGithubOrganizationError = DisconnectGithubOrganizationErrors[keyof DisconnectGithubOrganizationErrors];
3879
+ export type DisconnectGithubOrganizationResponses = {
3880
+ /**
3881
+ * The connection after disconnect, revoked or not connected.
3882
+ */
3883
+ 200: GithubOrganizationConnectionStatus;
3884
+ };
3885
+ export type DisconnectGithubOrganizationResponse = DisconnectGithubOrganizationResponses[keyof DisconnectGithubOrganizationResponses];
3823
3886
  export type GetGithubOrganizationConnectionData = {
3824
3887
  body?: never;
3825
3888
  headers?: {
@@ -3868,6 +3931,103 @@ export type GetGithubOrganizationConnectionResponses = {
3868
3931
  200: GithubOrganizationConnectionStatus;
3869
3932
  };
3870
3933
  export type GetGithubOrganizationConnectionResponse = GetGithubOrganizationConnectionResponses[keyof GetGithubOrganizationConnectionResponses];
3934
+ export type ListOrganizationMcpConnectionsData = {
3935
+ body?: never;
3936
+ headers?: {
3937
+ /**
3938
+ * Optional caller-provided correlation identifier.
3939
+ */
3940
+ "X-Request-Id"?: string;
3941
+ };
3942
+ path: {
3943
+ organization_id: Ulid;
3944
+ };
3945
+ query?: never;
3946
+ url: "/v1/organizations/{organization_id}/mcp-connections";
3947
+ };
3948
+ export type ListOrganizationMcpConnectionsErrors = {
3949
+ /**
3950
+ * The request failed.
3951
+ */
3952
+ 400: ProblemDetails;
3953
+ /**
3954
+ * The request failed.
3955
+ */
3956
+ 401: ProblemDetails;
3957
+ /**
3958
+ * The request failed.
3959
+ */
3960
+ 403: ProblemDetails;
3961
+ /**
3962
+ * The resource does not exist or is not visible to the authenticated principal.
3963
+ */
3964
+ 404: ProblemDetails;
3965
+ /**
3966
+ * The request failed.
3967
+ */
3968
+ 429: ProblemDetails;
3969
+ /**
3970
+ * The request failed.
3971
+ */
3972
+ 503: ProblemDetails;
3973
+ };
3974
+ export type ListOrganizationMcpConnectionsError = ListOrganizationMcpConnectionsErrors[keyof ListOrganizationMcpConnectionsErrors];
3975
+ export type ListOrganizationMcpConnectionsResponses = {
3976
+ /**
3977
+ * The live MCP connections of the workspace.
3978
+ */
3979
+ 200: OrganizationMcpConnectionList;
3980
+ };
3981
+ export type ListOrganizationMcpConnectionsResponse = ListOrganizationMcpConnectionsResponses[keyof ListOrganizationMcpConnectionsResponses];
3982
+ export type RevokeOrganizationMcpConnectionData = {
3983
+ body?: never;
3984
+ headers?: {
3985
+ /**
3986
+ * Optional caller-provided correlation identifier.
3987
+ */
3988
+ "X-Request-Id"?: string;
3989
+ };
3990
+ path: {
3991
+ organization_id: Ulid;
3992
+ connection_id: string;
3993
+ };
3994
+ query?: never;
3995
+ url: "/v1/organizations/{organization_id}/mcp-connections/{connection_id}";
3996
+ };
3997
+ export type RevokeOrganizationMcpConnectionErrors = {
3998
+ /**
3999
+ * The request failed.
4000
+ */
4001
+ 400: ProblemDetails;
4002
+ /**
4003
+ * The request failed.
4004
+ */
4005
+ 401: ProblemDetails;
4006
+ /**
4007
+ * The request failed.
4008
+ */
4009
+ 403: ProblemDetails;
4010
+ /**
4011
+ * The resource does not exist or is not visible to the authenticated principal.
4012
+ */
4013
+ 404: ProblemDetails;
4014
+ /**
4015
+ * The request failed.
4016
+ */
4017
+ 429: ProblemDetails;
4018
+ /**
4019
+ * The request failed.
4020
+ */
4021
+ 503: ProblemDetails;
4022
+ };
4023
+ export type RevokeOrganizationMcpConnectionError = RevokeOrganizationMcpConnectionErrors[keyof RevokeOrganizationMcpConnectionErrors];
4024
+ export type RevokeOrganizationMcpConnectionResponses = {
4025
+ /**
4026
+ * The disconnect state.
4027
+ */
4028
+ 200: OrganizationMcpConnectionRevocation;
4029
+ };
4030
+ export type RevokeOrganizationMcpConnectionResponse = RevokeOrganizationMcpConnectionResponses[keyof RevokeOrganizationMcpConnectionResponses];
3871
4031
  export type GetOrganizationReferralData = {
3872
4032
  body?: never;
3873
4033
  headers?: {
@@ -4413,9 +4573,13 @@ export type CompleteGithubSourceAuthorizationErrors = {
4413
4573
  */
4414
4574
  400: ProblemDetails;
4415
4575
  /**
4416
- * The authorizing GitHub account lacks the required installation access or account authority.
4576
+ * The authorizing GitHub account lacks the required installation access or account authority. It is also the answer, for a machine client, to an unknown state, to another user's portal session and to a missing portal session; a browser is sent to the unknown-state page instead.
4417
4577
  */
4418
4578
  403: ProblemDetails;
4579
+ /**
4580
+ * The request failed.
4581
+ */
4582
+ 409: ProblemDetails;
4419
4583
  /**
4420
4584
  * The request failed.
4421
4585
  */
@@ -4443,6 +4607,10 @@ export type CompleteCloudflareDnsAuthorizationErrors = {
4443
4607
  * The request failed.
4444
4608
  */
4445
4609
  400: ProblemDetails;
4610
+ /**
4611
+ * The request failed.
4612
+ */
4613
+ 409: ProblemDetails;
4446
4614
  /**
4447
4615
  * The request failed.
4448
4616
  */
@@ -4975,7 +5143,7 @@ export type GetOrganizationCreditUsageResponse = GetOrganizationCreditUsageRespo
4975
5143
  export type CreateProjectExportData = {
4976
5144
  body: {
4977
5145
  /**
4978
- * Non-blank user-controlled ZIP password, at most 1024 UTF-8 bytes. Never include it in logs or command-line arguments.
5146
+ * User-controlled ZIP password of at least 12 characters and at most 1024 UTF-8 bytes, not blank. Never include it in logs or command-line arguments.
4979
5147
  */
4980
5148
  password: string;
4981
5149
  };
@@ -5080,6 +5248,63 @@ export type GetProjectExportResponses = {
5080
5248
  200: ProjectExport;
5081
5249
  };
5082
5250
  export type GetProjectExportResponse = GetProjectExportResponses[keyof GetProjectExportResponses];
5251
+ export type CreateProjectExportDownloadLinkData = {
5252
+ body?: never;
5253
+ headers?: {
5254
+ /**
5255
+ * Optional caller-provided correlation identifier.
5256
+ */
5257
+ "X-Request-Id"?: string;
5258
+ };
5259
+ path: {
5260
+ /**
5261
+ * Project identifier.
5262
+ */
5263
+ project_id: Ulid;
5264
+ export_id: Ulid;
5265
+ };
5266
+ query?: never;
5267
+ url: "/v1/projects/{project_id}/exports/{export_id}/download-links";
5268
+ };
5269
+ export type CreateProjectExportDownloadLinkErrors = {
5270
+ /**
5271
+ * The request failed.
5272
+ */
5273
+ 400: ProblemDetails;
5274
+ /**
5275
+ * The request failed.
5276
+ */
5277
+ 401: ProblemDetails;
5278
+ /**
5279
+ * The resource does not exist or is not visible to the authenticated principal.
5280
+ */
5281
+ 404: ProblemDetails;
5282
+ /**
5283
+ * The request failed.
5284
+ */
5285
+ 409: ProblemDetails;
5286
+ /**
5287
+ * The request failed.
5288
+ */
5289
+ 429: ProblemDetails;
5290
+ /**
5291
+ * The request failed.
5292
+ */
5293
+ 503: ProblemDetails;
5294
+ };
5295
+ export type CreateProjectExportDownloadLinkError = CreateProjectExportDownloadLinkErrors[keyof CreateProjectExportDownloadLinkErrors];
5296
+ export type CreateProjectExportDownloadLinkResponses = {
5297
+ /**
5298
+ * The signed download URL and its expiry.
5299
+ */
5300
+ 200: {
5301
+ id: Ulid;
5302
+ project_id: Ulid;
5303
+ download_url: string;
5304
+ download_expires_at: string;
5305
+ };
5306
+ };
5307
+ export type CreateProjectExportDownloadLinkResponse = CreateProjectExportDownloadLinkResponses[keyof CreateProjectExportDownloadLinkResponses];
5083
5308
  export type GetProjectCreditBudgetData = {
5084
5309
  body?: never;
5085
5310
  headers?: {
@@ -5909,6 +6134,10 @@ export type CreateProjectDevAccessTicketData = {
5909
6134
  * Optional caller-provided correlation identifier.
5910
6135
  */
5911
6136
  "X-Request-Id"?: string;
6137
+ /**
6138
+ * Optional and ignored. This route does not replay a stored answer, so a repeated request issues another ticket and revokes the unused one.
6139
+ */
6140
+ "Idempotency-Key"?: string;
5912
6141
  };
5913
6142
  path: {
5914
6143
  /**
@@ -7976,6 +8205,10 @@ export type CreateProjectDatabaseAccessData = {
7976
8205
  * Optional caller-provided correlation identifier.
7977
8206
  */
7978
8207
  "X-Request-Id"?: string;
8208
+ /**
8209
+ * Optional and ignored. This route does not replay a stored answer, so a repeated request issues another credential.
8210
+ */
8211
+ "Idempotency-Key"?: string;
7979
8212
  };
7980
8213
  path: {
7981
8214
  /**
@@ -8169,6 +8402,10 @@ export type ListProjectDatabaseWatchesErrors = {
8169
8402
  * The request failed.
8170
8403
  */
8171
8404
  401: ProblemDetails;
8405
+ /**
8406
+ * The request failed.
8407
+ */
8408
+ 402: ProblemDetails;
8172
8409
  /**
8173
8410
  * The resource does not exist or is not visible to the authenticated principal.
8174
8411
  */
@@ -8427,11 +8664,15 @@ export type CreateProjectDatabaseWebhookResponses = {
8427
8664
  export type CreateProjectDatabaseWebhookResponse = CreateProjectDatabaseWebhookResponses[keyof CreateProjectDatabaseWebhookResponses];
8428
8665
  export type DeleteProjectDatabaseWebhookData = {
8429
8666
  body?: never;
8430
- headers?: {
8667
+ headers: {
8431
8668
  /**
8432
8669
  * Optional caller-provided correlation identifier.
8433
8670
  */
8434
8671
  "X-Request-Id"?: string;
8672
+ /**
8673
+ * Identifies one mutation and its canonical request payload.
8674
+ */
8675
+ "Idempotency-Key": string;
8435
8676
  };
8436
8677
  path: {
8437
8678
  /**
@@ -8464,6 +8705,10 @@ export type DeleteProjectDatabaseWebhookErrors = {
8464
8705
  * The resource does not exist or is not visible to the authenticated principal.
8465
8706
  */
8466
8707
  404: ProblemDetails;
8708
+ /**
8709
+ * The request failed.
8710
+ */
8711
+ 409: ProblemDetails;
8467
8712
  /**
8468
8713
  * The request failed.
8469
8714
  */
@@ -8539,11 +8784,15 @@ export type GetProjectDatabaseWebhookResponses = {
8539
8784
  export type GetProjectDatabaseWebhookResponse = GetProjectDatabaseWebhookResponses[keyof GetProjectDatabaseWebhookResponses];
8540
8785
  export type TestProjectDatabaseWebhookData = {
8541
8786
  body?: never;
8542
- headers?: {
8787
+ headers: {
8543
8788
  /**
8544
8789
  * Optional caller-provided correlation identifier.
8545
8790
  */
8546
8791
  "X-Request-Id"?: string;
8792
+ /**
8793
+ * Identifies one mutation and its canonical request payload.
8794
+ */
8795
+ "Idempotency-Key": string;
8547
8796
  };
8548
8797
  path: {
8549
8798
  /**
@@ -8576,6 +8825,10 @@ export type TestProjectDatabaseWebhookErrors = {
8576
8825
  * The resource does not exist or is not visible to the authenticated principal.
8577
8826
  */
8578
8827
  404: ProblemDetails;
8828
+ /**
8829
+ * The request failed.
8830
+ */
8831
+ 409: ProblemDetails;
8579
8832
  /**
8580
8833
  * The request failed.
8581
8834
  */
@@ -8659,11 +8912,15 @@ export type ListProjectDatabaseWebhookDeliveriesResponses = {
8659
8912
  export type ListProjectDatabaseWebhookDeliveriesResponse = ListProjectDatabaseWebhookDeliveriesResponses[keyof ListProjectDatabaseWebhookDeliveriesResponses];
8660
8913
  export type ReplayProjectDatabaseWebhookDeliveryData = {
8661
8914
  body?: never;
8662
- headers?: {
8915
+ headers: {
8663
8916
  /**
8664
8917
  * Optional caller-provided correlation identifier.
8665
8918
  */
8666
8919
  "X-Request-Id"?: string;
8920
+ /**
8921
+ * Identifies one mutation and its canonical request payload.
8922
+ */
8923
+ "Idempotency-Key": string;
8667
8924
  };
8668
8925
  path: {
8669
8926
  /**
@@ -9007,11 +9264,15 @@ export type ListProjectDatabaseScheduleRunsResponses = {
9007
9264
  export type ListProjectDatabaseScheduleRunsResponse = ListProjectDatabaseScheduleRunsResponses[keyof ListProjectDatabaseScheduleRunsResponses];
9008
9265
  export type RunProjectDatabaseScheduleData = {
9009
9266
  body?: never;
9010
- headers?: {
9267
+ headers: {
9011
9268
  /**
9012
9269
  * Optional caller-provided correlation identifier.
9013
9270
  */
9014
9271
  "X-Request-Id"?: string;
9272
+ /**
9273
+ * Identifies one mutation and its canonical request payload.
9274
+ */
9275
+ "Idempotency-Key": string;
9015
9276
  };
9016
9277
  path: {
9017
9278
  /**
@@ -10152,6 +10413,63 @@ export type PrepareManagedMailWebhookResponses = {
10152
10413
  200: ManagedMailWebhook;
10153
10414
  };
10154
10415
  export type PrepareManagedMailWebhookResponse = PrepareManagedMailWebhookResponses[keyof PrepareManagedMailWebhookResponses];
10416
+ export type RotateManagedMailWebhookSecretData = {
10417
+ body?: never;
10418
+ headers: {
10419
+ /**
10420
+ * Optional caller-provided correlation identifier.
10421
+ */
10422
+ "X-Request-Id"?: string;
10423
+ /**
10424
+ * Identifies one mutation and its canonical request payload.
10425
+ */
10426
+ "Idempotency-Key": string;
10427
+ };
10428
+ path: {
10429
+ project_id: Ulid;
10430
+ environment_id: Ulid;
10431
+ };
10432
+ query?: never;
10433
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail-webhook:rotate";
10434
+ };
10435
+ export type RotateManagedMailWebhookSecretErrors = {
10436
+ /**
10437
+ * The request failed.
10438
+ */
10439
+ 400: ProblemDetails;
10440
+ /**
10441
+ * The request failed.
10442
+ */
10443
+ 401: ProblemDetails;
10444
+ /**
10445
+ * The request failed.
10446
+ */
10447
+ 403: ProblemDetails;
10448
+ /**
10449
+ * The request failed.
10450
+ */
10451
+ 404: ProblemDetails;
10452
+ /**
10453
+ * The request failed.
10454
+ */
10455
+ 409: ProblemDetails;
10456
+ /**
10457
+ * The request failed.
10458
+ */
10459
+ 429: ProblemDetails;
10460
+ /**
10461
+ * The request failed.
10462
+ */
10463
+ 503: ProblemDetails;
10464
+ };
10465
+ export type RotateManagedMailWebhookSecretError = RotateManagedMailWebhookSecretErrors[keyof RotateManagedMailWebhookSecretErrors];
10466
+ export type RotateManagedMailWebhookSecretResponses = {
10467
+ /**
10468
+ * Authorized mail result with the new signing secret.
10469
+ */
10470
+ 200: ManagedMailWebhook;
10471
+ };
10472
+ export type RotateManagedMailWebhookSecretResponse = RotateManagedMailWebhookSecretResponses[keyof RotateManagedMailWebhookSecretResponses];
10155
10473
  export type VerifyManagedMailWebhookData = {
10156
10474
  body?: never;
10157
10475
  headers: {