@amerged/ohmyhost-sdk 0.1.54 → 0.1.56

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.
@@ -73,6 +73,8 @@ import type {
73
73
  CreateProjectDevAccessTicketErrors,
74
74
  CreateProjectDevAccessTicketResponses,
75
75
  CreateProjectErrors,
76
+ CreateProjectExportDownloadLinkErrors,
77
+ CreateProjectExportDownloadLinkResponses,
76
78
  CreateProjectExportErrors,
77
79
  CreateProjectExportResponses,
78
80
  CreateProjectRequest,
@@ -110,6 +112,8 @@ import type {
110
112
  DiffManagedSourceResponses,
111
113
  DisableManagedMailReceivingErrors,
112
114
  DisableManagedMailReceivingResponses,
115
+ DisconnectGithubOrganizationErrors,
116
+ DisconnectGithubOrganizationResponses,
113
117
  EnsureProjectDevShareLinkErrors,
114
118
  EnsureProjectDevShareLinkResponses,
115
119
  FeedbackSubmission,
@@ -218,6 +222,8 @@ import type {
218
222
  ListManagedSourceVersionsResponses,
219
223
  ListNativeAuthUsersErrors,
220
224
  ListNativeAuthUsersResponses,
225
+ ListOrganizationMcpConnectionsErrors,
226
+ ListOrganizationMcpConnectionsResponses,
221
227
  ListProjectDatabaseAccessErrors,
222
228
  ListProjectDatabaseAccessResponses,
223
229
  ListProjectDatabaseScheduleRunsErrors,
@@ -308,6 +314,8 @@ import type {
308
314
  RevokeCurrentSessionResponses,
309
315
  RevokeNativeAuthUserSessionsErrors,
310
316
  RevokeNativeAuthUserSessionsResponses,
317
+ RevokeOrganizationMcpConnectionErrors,
318
+ RevokeOrganizationMcpConnectionResponses,
311
319
  RevokeProjectDatabaseAccessErrors,
312
320
  RevokeProjectDatabaseAccessResponses,
313
321
  RevokeProjectDevShareLinkErrors,
@@ -318,6 +326,10 @@ import type {
318
326
  RevokeWorkspaceMailDomainDnsAuthorizationResponses,
319
327
  RollbackDeploymentErrors,
320
328
  RollbackDeploymentResponses,
329
+ RotateEnvironmentSecretErrors,
330
+ RotateEnvironmentSecretResponses,
331
+ RotateManagedMailWebhookSecretErrors,
332
+ RotateManagedMailWebhookSecretResponses,
321
333
  RotateProjectDevShareLinkErrors,
322
334
  RotateProjectDevShareLinkResponses,
323
335
  RunProjectDatabaseScheduleErrors,
@@ -1892,6 +1904,48 @@ export const connectGithubOrganization = <ThrowOnError extends boolean = true>(
1892
1904
  });
1893
1905
  };
1894
1906
 
1907
+ /**
1908
+ * Disconnect the workspace GitHub connection
1909
+ *
1910
+ * Owner only. Revokes the workspace connection and every GitHub repository grant under it, so auto-deploy and linked sources stop at once. The GitHub App stays installed for other workspaces; reconnecting starts a new connection.
1911
+ */
1912
+ export const disconnectGithubOrganization = <ThrowOnError extends boolean = true>(
1913
+ parameters: {
1914
+ "X-Request-Id"?: string;
1915
+ organization_id: Ulid;
1916
+ },
1917
+ options?: Options<never, ThrowOnError>,
1918
+ ): RequestResult<
1919
+ DisconnectGithubOrganizationResponses,
1920
+ DisconnectGithubOrganizationErrors,
1921
+ ThrowOnError,
1922
+ "data"
1923
+ > => {
1924
+ const params = buildClientParams(
1925
+ [parameters],
1926
+ [
1927
+ {
1928
+ args: [
1929
+ { in: "headers", key: "X-Request-Id" },
1930
+ { in: "path", key: "organization_id" },
1931
+ ],
1932
+ },
1933
+ ],
1934
+ );
1935
+ return (options?.client ?? client).delete<
1936
+ DisconnectGithubOrganizationResponses,
1937
+ DisconnectGithubOrganizationErrors,
1938
+ ThrowOnError,
1939
+ "data"
1940
+ >({
1941
+ responseStyle: "data",
1942
+ security: [{ scheme: "bearer", type: "http" }],
1943
+ url: "/v1/organizations/{organization_id}/github",
1944
+ ...options,
1945
+ ...params,
1946
+ });
1947
+ };
1948
+
1895
1949
  /**
1896
1950
  * Read the workspace GitHub connection
1897
1951
  */
@@ -1932,6 +1986,92 @@ export const getGithubOrganizationConnection = <ThrowOnError extends boolean = t
1932
1986
  });
1933
1987
  };
1934
1988
 
1989
+ /**
1990
+ * List the MCP clients connected to the workspace
1991
+ *
1992
+ * Owner only. Lists each connected MCP client and the member who connected it, once per member, client and consent. Consents already disconnected are not listed.
1993
+ */
1994
+ export const listOrganizationMcpConnections = <ThrowOnError extends boolean = true>(
1995
+ parameters: {
1996
+ "X-Request-Id"?: string;
1997
+ organization_id: Ulid;
1998
+ },
1999
+ options?: Options<never, ThrowOnError>,
2000
+ ): RequestResult<
2001
+ ListOrganizationMcpConnectionsResponses,
2002
+ ListOrganizationMcpConnectionsErrors,
2003
+ ThrowOnError,
2004
+ "data"
2005
+ > => {
2006
+ const params = buildClientParams(
2007
+ [parameters],
2008
+ [
2009
+ {
2010
+ args: [
2011
+ { in: "headers", key: "X-Request-Id" },
2012
+ { in: "path", key: "organization_id" },
2013
+ ],
2014
+ },
2015
+ ],
2016
+ );
2017
+ return (options?.client ?? client).get<
2018
+ ListOrganizationMcpConnectionsResponses,
2019
+ ListOrganizationMcpConnectionsErrors,
2020
+ ThrowOnError,
2021
+ "data"
2022
+ >({
2023
+ responseStyle: "data",
2024
+ security: [{ scheme: "bearer", type: "http" }],
2025
+ url: "/v1/organizations/{organization_id}/mcp-connections",
2026
+ ...options,
2027
+ ...params,
2028
+ });
2029
+ };
2030
+
2031
+ /**
2032
+ * Disconnect an MCP client from the workspace
2033
+ *
2034
+ * Owner only. Disconnects the client's consent from this workspace only; the member's other workspaces are unaffected. Answers pending while an active provider use of the consent drains. Repeat the request until it answers revoked.
2035
+ */
2036
+ export const revokeOrganizationMcpConnection = <ThrowOnError extends boolean = true>(
2037
+ parameters: {
2038
+ "X-Request-Id"?: string;
2039
+ organization_id: Ulid;
2040
+ connection_id: string;
2041
+ },
2042
+ options?: Options<never, ThrowOnError>,
2043
+ ): RequestResult<
2044
+ RevokeOrganizationMcpConnectionResponses,
2045
+ RevokeOrganizationMcpConnectionErrors,
2046
+ ThrowOnError,
2047
+ "data"
2048
+ > => {
2049
+ const params = buildClientParams(
2050
+ [parameters],
2051
+ [
2052
+ {
2053
+ args: [
2054
+ { in: "headers", key: "X-Request-Id" },
2055
+ { in: "path", key: "organization_id" },
2056
+ { in: "path", key: "connection_id" },
2057
+ ],
2058
+ },
2059
+ ],
2060
+ );
2061
+ return (options?.client ?? client).delete<
2062
+ RevokeOrganizationMcpConnectionResponses,
2063
+ RevokeOrganizationMcpConnectionErrors,
2064
+ ThrowOnError,
2065
+ "data"
2066
+ >({
2067
+ responseStyle: "data",
2068
+ security: [{ scheme: "bearer", type: "http" }],
2069
+ url: "/v1/organizations/{organization_id}/mcp-connections/{connection_id}",
2070
+ ...options,
2071
+ ...params,
2072
+ });
2073
+ };
2074
+
1935
2075
  /**
1936
2076
  * Read the workspace's referral link
1937
2077
  *
@@ -2366,7 +2506,7 @@ export const getFeedback = <ThrowOnError extends boolean = true>(
2366
2506
  /**
2367
2507
  * Complete the bound GitHub browser authorization
2368
2508
  *
2369
- * Browser callback only. Revalidates the original user session or user API key, workspace Owner/Admin authority and authorization expiry, then privately verifies the GitHub account and installation. A valid installation callback without an OAuth code continues automatically through OAuth. Completion records the workspace connection without building or returning provider credentials. Previously issued project authorizations remain supported during rollout.
2509
+ * Browser callback only. Requires the portal session of the same user who started the authorization (a browser with no session, another user's session or an unknown state is answered as an unknown state and consumes nothing). Revalidates the original user session or user API key, workspace Owner/Admin authority and authorization expiry, then privately verifies the GitHub account and installation. A valid installation callback without an OAuth code continues automatically through OAuth. Completion records the workspace connection without building or returning provider credentials. Previously issued project authorizations remain supported during rollout.
2370
2510
  */
2371
2511
  export const completeGithubSourceAuthorization = <ThrowOnError extends boolean = true>(
2372
2512
  parameters: {
@@ -2412,7 +2552,7 @@ export const completeGithubSourceAuthorization = <ThrowOnError extends boolean =
2412
2552
  /**
2413
2553
  * Complete one Cloudflare DNS authorization
2414
2554
  *
2415
- * Successful callbacks require code and state and complete one previously authenticated project authorization. Provider rejection instead supplies error and optional error_description, error_uri and state; it returns a static actionable problem without completing authorization or reflecting provider input. Success and error parameters cannot be combined. This callback grants no general unauthenticated product access.
2555
+ * Successful callbacks require code and state and complete one previously authenticated project authorization, only in a browser signed in to the portal as the user who started it; without that session the callback answers a confirmation problem and consumes nothing. Provider rejection instead supplies error and optional error_description, error_uri and state; it returns a static actionable problem without completing authorization or reflecting provider input. Success and error parameters cannot be combined. This callback grants no general unauthenticated product access.
2416
2556
  */
2417
2557
  export const completeCloudflareDnsAuthorization = <ThrowOnError extends boolean = true>(
2418
2558
  parameters?: {
@@ -2936,7 +3076,7 @@ export const createProjectExport = <ThrowOnError extends boolean = true>(
2936
3076
  /**
2937
3077
  * Read export progress and its verified 24-hour download capability
2938
3078
  *
2939
- * Owner-only, including at zero credits. Poll queued/running jobs after next_poll_after_seconds. A verified SQL ZIP is retained seven days. Its signed download URL is valid 24 hours and is issued only with at least 24 hours of retention left; otherwise download fields are null. Treat the URL as a secret bearer capability. Neither the password nor any permanent storage credential can be retrieved. Generic operation reads never contain this capability.
3079
+ * Owner-only, including at zero credits. Poll queued/running jobs after next_poll_after_seconds. A verified SQL ZIP is retained seven days. This read never signs a download URL, so download_url and download_expires_at are always null here. Request a link with POST download-links. Neither the password nor any permanent storage credential can be retrieved. Generic operation reads never contain a download capability.
2940
3080
  */
2941
3081
  export const getProjectExport = <ThrowOnError extends boolean = true>(
2942
3082
  parameters: {
@@ -2972,6 +3112,50 @@ export const getProjectExport = <ThrowOnError extends boolean = true>(
2972
3112
  });
2973
3113
  };
2974
3114
 
3115
+ /**
3116
+ * Sign one 24-hour download link of a ready SQL export
3117
+ *
3118
+ * Owner-only. Each link is audited under the caller before it is signed, and an organization may take six links a minute; a seventh is refused with 429 and a retry after 60 seconds. Treat the returned URL as a secret bearer capability; never store it in files, notes or source. The link is not idempotent, so a repeated request signs another link and is audited again. Requires at least 24 hours of retention left on the archive, otherwise 409.
3119
+ */
3120
+ export const createProjectExportDownloadLink = <ThrowOnError extends boolean = true>(
3121
+ parameters: {
3122
+ "X-Request-Id"?: string;
3123
+ project_id: Ulid;
3124
+ export_id: Ulid;
3125
+ },
3126
+ options?: Options<never, ThrowOnError>,
3127
+ ): RequestResult<
3128
+ CreateProjectExportDownloadLinkResponses,
3129
+ CreateProjectExportDownloadLinkErrors,
3130
+ ThrowOnError,
3131
+ "data"
3132
+ > => {
3133
+ const params = buildClientParams(
3134
+ [parameters],
3135
+ [
3136
+ {
3137
+ args: [
3138
+ { in: "headers", key: "X-Request-Id" },
3139
+ { in: "path", key: "project_id" },
3140
+ { in: "path", key: "export_id" },
3141
+ ],
3142
+ },
3143
+ ],
3144
+ );
3145
+ return (options?.client ?? client).post<
3146
+ CreateProjectExportDownloadLinkResponses,
3147
+ CreateProjectExportDownloadLinkErrors,
3148
+ ThrowOnError,
3149
+ "data"
3150
+ >({
3151
+ responseStyle: "data",
3152
+ security: [{ scheme: "bearer", type: "http" }],
3153
+ url: "/v1/projects/{project_id}/exports/{export_id}/download-links",
3154
+ ...options,
3155
+ ...params,
3156
+ });
3157
+ };
3158
+
2975
3159
  /**
2976
3160
  * Read a project's optional monthly credit budget
2977
3161
  *
@@ -3670,6 +3854,7 @@ export const setProjectPoweredByFlag = <ThrowOnError extends boolean = true>(
3670
3854
  export const createProjectDevAccessTicket = <ThrowOnError extends boolean = true>(
3671
3855
  parameters: {
3672
3856
  "X-Request-Id"?: string;
3857
+ "Idempotency-Key"?: string;
3673
3858
  project_id: Ulid;
3674
3859
  },
3675
3860
  options?: Options<never, ThrowOnError>,
@@ -3685,6 +3870,7 @@ export const createProjectDevAccessTicket = <ThrowOnError extends boolean = true
3685
3870
  {
3686
3871
  args: [
3687
3872
  { in: "headers", key: "X-Request-Id" },
3873
+ { in: "headers", key: "Idempotency-Key" },
3688
3874
  { in: "path", key: "project_id" },
3689
3875
  ],
3690
3876
  },
@@ -5283,11 +5469,12 @@ export const listProjectDatabaseAccess = <ThrowOnError extends boolean = true>(
5283
5469
  /**
5284
5470
  * Issue one time-bound PostgreSQL credential for Dev or Prod
5285
5471
  *
5286
- * Owner-authorized direct PostgreSQL login for the project's own database, returned exactly once and never retrievable again. Mode read joins the read-only role, mode write joins the same restricted runtime role the application uses; neither can change schema, and application row-level security policies remain effective. The lifetime is 5 minutes to 24 hours (3600 seconds by default) and PostgreSQL refuses new logins after it; the platform ends remaining sessions within 15 minutes after expiry, at the latest. At most three active credentials exist per project environment. Database compute wakes and is metered normally, and existing credit grace and Stop budgets apply. Revoke the credential as soon as the work is finished and never store the connection URI in files, notes or source.
5472
+ * Owner-authorized direct PostgreSQL login for the project's own database, returned exactly once and never retrievable again. Mode read joins the read-only role, mode write joins the same restricted runtime role the application uses; neither can change schema. The login gets no implicit row bypass, but its holder can set ohmyhost.request_claims and so act as any application user; treat a credential as read (or write) access to all application rows. The lifetime is 5 minutes to 24 hours (3600 seconds by default) and PostgreSQL refuses new logins after it; the platform ends remaining sessions within 15 minutes after expiry, at the latest. At most three active credentials exist per project environment. Database compute wakes and is metered normally, and existing credit grace and Stop budgets apply. Revoke the credential as soon as the work is finished and never store the connection URI in files, notes or source.
5287
5473
  */
5288
5474
  export const createProjectDatabaseAccess = <ThrowOnError extends boolean = true>(
5289
5475
  parameters: {
5290
5476
  "X-Request-Id"?: string;
5477
+ "Idempotency-Key"?: string;
5291
5478
  project_id: Ulid;
5292
5479
  projectDatabaseAccessRequest: ProjectDatabaseAccessRequest;
5293
5480
  },
@@ -5304,6 +5491,7 @@ export const createProjectDatabaseAccess = <ThrowOnError extends boolean = true>
5304
5491
  {
5305
5492
  args: [
5306
5493
  { in: "headers", key: "X-Request-Id" },
5494
+ { in: "headers", key: "Idempotency-Key" },
5307
5495
  { in: "path", key: "project_id" },
5308
5496
  { key: "projectDatabaseAccessRequest", map: "body" },
5309
5497
  ],
@@ -5427,7 +5615,7 @@ export const createProjectDatabaseTable = <ThrowOnError extends boolean = true>(
5427
5615
  /**
5428
5616
  * List the project's database watches
5429
5617
  *
5430
- * Returns every watch of the selected environment. Listing wakes a sleeping database.
5618
+ * Returns every watch of the selected environment. Listing wakes a sleeping database, so while the project's Stop budget is reached it is refused with 402, as create and delete are.
5431
5619
  */
5432
5620
  export const listProjectDatabaseWatches = <ThrowOnError extends boolean = true>(
5433
5621
  parameters: {
@@ -5570,7 +5758,7 @@ export const deleteProjectDatabaseWatch = <ThrowOnError extends boolean = true>(
5570
5758
  /**
5571
5759
  * List the project's database webhooks
5572
5760
  *
5573
- * Returns every webhook of the selected environment without signing secrets.
5761
+ * Returns every webhook of the selected environment without signing secrets. Callers without projects:write see only the origin of each receiver URL.
5574
5762
  */
5575
5763
  export const listProjectDatabaseWebhooks = <ThrowOnError extends boolean = true>(
5576
5764
  parameters: {
@@ -5667,11 +5855,12 @@ export const createProjectDatabaseWebhook = <ThrowOnError extends boolean = true
5667
5855
  /**
5668
5856
  * Delete one database webhook
5669
5857
  *
5670
- * Stops deliveries to the webhook. Deleting an already deleted webhook answers not found.
5858
+ * Stops deliveries to the webhook. Deleting an already deleted webhook answers not found. A retry with the same Idempotency-Key and request returns the stored answer; the same key with another request answers 409 idempotency_key_reused.
5671
5859
  */
5672
5860
  export const deleteProjectDatabaseWebhook = <ThrowOnError extends boolean = true>(
5673
5861
  parameters: {
5674
5862
  "X-Request-Id"?: string;
5863
+ "Idempotency-Key": string;
5675
5864
  project_id: Ulid;
5676
5865
  webhook_id: string;
5677
5866
  environment: "dev" | "prod";
@@ -5689,6 +5878,7 @@ export const deleteProjectDatabaseWebhook = <ThrowOnError extends boolean = true
5689
5878
  {
5690
5879
  args: [
5691
5880
  { in: "headers", key: "X-Request-Id" },
5881
+ { in: "headers", key: "Idempotency-Key" },
5692
5882
  { in: "path", key: "project_id" },
5693
5883
  { in: "path", key: "webhook_id" },
5694
5884
  { in: "query", key: "environment" },
@@ -5713,7 +5903,7 @@ export const deleteProjectDatabaseWebhook = <ThrowOnError extends boolean = true
5713
5903
  /**
5714
5904
  * Read one database webhook
5715
5905
  *
5716
- * Returns one webhook without its signing secret.
5906
+ * Returns one webhook without its signing secret. Callers without projects:write see only the origin of the receiver URL.
5717
5907
  */
5718
5908
  export const getProjectDatabaseWebhook = <ThrowOnError extends boolean = true>(
5719
5909
  parameters: {
@@ -5759,11 +5949,12 @@ export const getProjectDatabaseWebhook = <ThrowOnError extends boolean = true>(
5759
5949
  /**
5760
5950
  * Send one test delivery to a database webhook
5761
5951
  *
5762
- * Sends one signed test request to the webhook URL and reports the outcome synchronously. Each call sends one request; the platform allows one test per webhook every five seconds.
5952
+ * Sends one signed test request to the webhook URL and reports the outcome synchronously. A retry with the same Idempotency-Key and request returns the stored outcome without sending again; a new key sends another request. The platform allows one test per webhook every five seconds.
5763
5953
  */
5764
5954
  export const testProjectDatabaseWebhook = <ThrowOnError extends boolean = true>(
5765
5955
  parameters: {
5766
5956
  "X-Request-Id"?: string;
5957
+ "Idempotency-Key": string;
5767
5958
  project_id: Ulid;
5768
5959
  webhook_id: string;
5769
5960
  environment: "dev" | "prod";
@@ -5781,6 +5972,7 @@ export const testProjectDatabaseWebhook = <ThrowOnError extends boolean = true>(
5781
5972
  {
5782
5973
  args: [
5783
5974
  { in: "headers", key: "X-Request-Id" },
5975
+ { in: "headers", key: "Idempotency-Key" },
5784
5976
  { in: "path", key: "project_id" },
5785
5977
  { in: "path", key: "webhook_id" },
5786
5978
  { in: "query", key: "environment" },
@@ -5855,11 +6047,12 @@ export const listProjectDatabaseWebhookDeliveries = <ThrowOnError extends boolea
5855
6047
  /**
5856
6048
  * Replay one database webhook delivery
5857
6049
  *
5858
- * Queues a new attempt for a delivery that is no longer being retried. Each call queues one more attempt, and the delivery returns to pending until it is delivered or dead-lettered again.
6050
+ * Queues a new attempt for a delivery that is no longer being retried. A retry with the same Idempotency-Key and request returns the stored answer without queuing again; a new key queues one more attempt, and the delivery returns to pending until it is delivered or dead-lettered again.
5859
6051
  */
5860
6052
  export const replayProjectDatabaseWebhookDelivery = <ThrowOnError extends boolean = true>(
5861
6053
  parameters: {
5862
6054
  "X-Request-Id"?: string;
6055
+ "Idempotency-Key": string;
5863
6056
  project_id: Ulid;
5864
6057
  delivery_id: string;
5865
6058
  environment: "dev" | "prod";
@@ -5877,6 +6070,7 @@ export const replayProjectDatabaseWebhookDelivery = <ThrowOnError extends boolea
5877
6070
  {
5878
6071
  args: [
5879
6072
  { in: "headers", key: "X-Request-Id" },
6073
+ { in: "headers", key: "Idempotency-Key" },
5880
6074
  { in: "path", key: "project_id" },
5881
6075
  { in: "path", key: "delivery_id" },
5882
6076
  { in: "query", key: "environment" },
@@ -5901,7 +6095,7 @@ export const replayProjectDatabaseWebhookDelivery = <ThrowOnError extends boolea
5901
6095
  /**
5902
6096
  * List the project's database schedules
5903
6097
  *
5904
- * Returns every schedule of the selected environment.
6098
+ * Returns every schedule of the selected environment. Callers without projects:write see a sha256 digest of each statement instead of its SQL text.
5905
6099
  */
5906
6100
  export const listProjectDatabaseSchedules = <ThrowOnError extends boolean = true>(
5907
6101
  parameters: {
@@ -6136,11 +6330,12 @@ export const listProjectDatabaseScheduleRuns = <ThrowOnError extends boolean = t
6136
6330
  /**
6137
6331
  * Queue one immediate run of a database schedule
6138
6332
  *
6139
- * Queues one manual run. The run is refused while the schedule is disabled or while a run is already queued. A reached Stop budget (or exhausted credit past its grace) refuses the run with project_budget_exceeded (402).
6333
+ * Queues one manual run. The run is refused while the schedule is disabled or while a run is already queued. A retry with the same Idempotency-Key and request returns the stored answer without queuing a second run. A reached Stop budget (or exhausted credit past its grace) refuses the run with project_budget_exceeded (402).
6140
6334
  */
6141
6335
  export const runProjectDatabaseSchedule = <ThrowOnError extends boolean = true>(
6142
6336
  parameters: {
6143
6337
  "X-Request-Id"?: string;
6338
+ "Idempotency-Key": string;
6144
6339
  project_id: Ulid;
6145
6340
  name: string;
6146
6341
  environment: "dev" | "prod";
@@ -6158,6 +6353,7 @@ export const runProjectDatabaseSchedule = <ThrowOnError extends boolean = true>(
6158
6353
  {
6159
6354
  args: [
6160
6355
  { in: "headers", key: "X-Request-Id" },
6356
+ { in: "headers", key: "Idempotency-Key" },
6161
6357
  { in: "path", key: "project_id" },
6162
6358
  { in: "path", key: "name" },
6163
6359
  { in: "query", key: "environment" },
@@ -6597,6 +6793,54 @@ export const putEnvironmentSecret = <ThrowOnError extends boolean = true>(
6597
6793
  });
6598
6794
  };
6599
6795
 
6796
+ /**
6797
+ * Rotate an installed platform key
6798
+ *
6799
+ * Replaces the value of an installed platform key (OHMYHOST_AI_KEY, OHMYHOST_MAIL_KEY, OHMYHOST_STORAGE_KEY or BETTER_AUTH_SECRET) with a value the platform generates. The request has no body and the value is never returned. The earlier value stops authorizing at once, and the new value reaches the running environment without a deployment. Other names answer 400; an installed key the environment does not hold answers 404. Repeating the same idempotency key replays the stored metadata.
6800
+ */
6801
+ export const rotateEnvironmentSecret = <ThrowOnError extends boolean = true>(
6802
+ parameters: {
6803
+ "X-Request-Id"?: string;
6804
+ "Idempotency-Key": string;
6805
+ project_id: Ulid;
6806
+ environment_id: Ulid;
6807
+ secret_name: string;
6808
+ },
6809
+ options?: Options<never, ThrowOnError>,
6810
+ ): RequestResult<
6811
+ RotateEnvironmentSecretResponses,
6812
+ RotateEnvironmentSecretErrors,
6813
+ ThrowOnError,
6814
+ "data"
6815
+ > => {
6816
+ const params = buildClientParams(
6817
+ [parameters],
6818
+ [
6819
+ {
6820
+ args: [
6821
+ { in: "headers", key: "X-Request-Id" },
6822
+ { in: "headers", key: "Idempotency-Key" },
6823
+ { in: "path", key: "project_id" },
6824
+ { in: "path", key: "environment_id" },
6825
+ { in: "path", key: "secret_name" },
6826
+ ],
6827
+ },
6828
+ ],
6829
+ );
6830
+ return (options?.client ?? client).post<
6831
+ RotateEnvironmentSecretResponses,
6832
+ RotateEnvironmentSecretErrors,
6833
+ ThrowOnError,
6834
+ "data"
6835
+ >({
6836
+ responseStyle: "data",
6837
+ security: [{ scheme: "bearer", type: "http" }],
6838
+ url: "/v1/projects/{project_id}/environments/{environment_id}/secrets/{secret_name}/rotate",
6839
+ ...options,
6840
+ ...params,
6841
+ });
6842
+ };
6843
+
6600
6844
  /**
6601
6845
  * Get an operation
6602
6846
  */
@@ -6635,7 +6879,7 @@ export const getOperation = <ThrowOnError extends boolean = true>(
6635
6879
  /**
6636
6880
  * Reconcile an uncertain platform delivery or provider mutation
6637
6881
  *
6638
- * Owner-only, idempotent recovery for an operation retained after an uncertain platform delivery or provider mutation. The control plane derives the exact recovery decision, including any deterministic internal Workflow handoff; the request has no body. Exhausted lifecycle recovery returns reconciliation_exhausted (409, retryable false); stop retries and report the original operation through feedback.
6882
+ * Owner-only, idempotent recovery for an operation retained after an uncertain platform delivery or provider mutation. The control plane derives the exact recovery decision, including any deterministic internal Workflow handoff; the request has no body. Exhausted lifecycle recovery returns reconciliation_exhausted (409, retryable false); stop retries and report the original operation through feedback. An operation with no uncertain delivery or provider mutation pending returns reconciliation_not_pending (409, retryable false).
6639
6883
  */
6640
6884
  export const reconcileOperation = <ThrowOnError extends boolean = true>(
6641
6885
  parameters: {
@@ -6993,6 +7237,52 @@ export const prepareManagedMailWebhook = <ThrowOnError extends boolean = true>(
6993
7237
  });
6994
7238
  };
6995
7239
 
7240
+ /**
7241
+ * Rotate the customer webhook signing secret
7242
+ *
7243
+ * Owner-only. Issues a new signing secret for the same endpoint and ends receiving until the endpoint verifies the new secret. Earlier secrets stop verifying at once. Repeating the same idempotency key after an uncertain response returns the current secret.
7244
+ */
7245
+ export const rotateManagedMailWebhookSecret = <ThrowOnError extends boolean = true>(
7246
+ parameters: {
7247
+ "X-Request-Id"?: string;
7248
+ "Idempotency-Key": string;
7249
+ project_id: Ulid;
7250
+ environment_id: Ulid;
7251
+ },
7252
+ options?: Options<never, ThrowOnError>,
7253
+ ): RequestResult<
7254
+ RotateManagedMailWebhookSecretResponses,
7255
+ RotateManagedMailWebhookSecretErrors,
7256
+ ThrowOnError,
7257
+ "data"
7258
+ > => {
7259
+ const params = buildClientParams(
7260
+ [parameters],
7261
+ [
7262
+ {
7263
+ args: [
7264
+ { in: "headers", key: "X-Request-Id" },
7265
+ { in: "headers", key: "Idempotency-Key" },
7266
+ { in: "path", key: "project_id" },
7267
+ { in: "path", key: "environment_id" },
7268
+ ],
7269
+ },
7270
+ ],
7271
+ );
7272
+ return (options?.client ?? client).post<
7273
+ RotateManagedMailWebhookSecretResponses,
7274
+ RotateManagedMailWebhookSecretErrors,
7275
+ ThrowOnError,
7276
+ "data"
7277
+ >({
7278
+ responseStyle: "data",
7279
+ security: [{ scheme: "bearer", type: "http" }],
7280
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail-webhook:rotate",
7281
+ ...options,
7282
+ ...params,
7283
+ });
7284
+ };
7285
+
6996
7286
  /**
6997
7287
  * Verify the customer endpoint and enable receiving
6998
7288
  *