@brazosd/node 0.1.3 → 0.1.6

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 (6) hide show
  1. package/README.md +1 -1
  2. package/browser.d.ts +1223 -52
  3. package/browser.js +2631 -402
  4. package/index.d.ts +1223 -52
  5. package/index.js +2631 -402
  6. package/package.json +1 -1
package/index.js CHANGED
@@ -940,6 +940,161 @@ var DefaultService = class {
940
940
  }
941
941
  });
942
942
  }
943
+ /**
944
+ * List direct children or search the organization's agent directory
945
+ * Groups precede agents, ordered by name and ID. Search covers the whole directory. Cursors are bound to the authenticated user, organization and query.
946
+ * @returns AgentDirectoryPage Directory page
947
+ * @throws ApiError
948
+ */
949
+ listAgentDirectory({
950
+ parentId,
951
+ q,
952
+ cursor,
953
+ limit = 50
954
+ }) {
955
+ return this.httpRequest.request({
956
+ method: "GET",
957
+ url: "/agent-directory",
958
+ query: {
959
+ "parentId": parentId,
960
+ "q": q,
961
+ "cursor": cursor,
962
+ "limit": limit
963
+ },
964
+ errors: {
965
+ 400: `Invalid cursor or parameters`,
966
+ 403: `Forbidden`,
967
+ 404: `Parent group not found`
968
+ }
969
+ });
970
+ }
971
+ /**
972
+ * Locate an agent and its ancestors even outside loaded pages
973
+ * @returns AgentDirectoryEntry Root-to-leaf path, ending with the agent
974
+ * @throws ApiError
975
+ */
976
+ getAgentDirectoryPath({
977
+ agentId
978
+ }) {
979
+ return this.httpRequest.request({
980
+ method: "GET",
981
+ url: "/agent-directory/agents/{agentId}/path",
982
+ path: {
983
+ "agentId": agentId
984
+ },
985
+ errors: {
986
+ 403: `Forbidden`,
987
+ 404: `Agent not found`
988
+ }
989
+ });
990
+ }
991
+ /**
992
+ * Locate a group and its ancestors
993
+ * @returns AgentDirectoryEntry Root-to-group path
994
+ * @throws ApiError
995
+ */
996
+ getAgentGroupDirectoryPath({
997
+ groupId
998
+ }) {
999
+ return this.httpRequest.request({
1000
+ method: "GET",
1001
+ url: "/agent-directory/groups/{groupId}/path",
1002
+ path: {
1003
+ "groupId": groupId
1004
+ },
1005
+ errors: {
1006
+ 403: `Forbidden`,
1007
+ 404: `Group not found`
1008
+ }
1009
+ });
1010
+ }
1011
+ /**
1012
+ * List the authenticated user's favorite agents in the current organization
1013
+ * @returns AgentDirectoryPage Favorites page
1014
+ * @throws ApiError
1015
+ */
1016
+ listAgentFavorites({
1017
+ cursor,
1018
+ limit = 50
1019
+ }) {
1020
+ return this.httpRequest.request({
1021
+ method: "GET",
1022
+ url: "/agent-favorites",
1023
+ query: {
1024
+ "cursor": cursor,
1025
+ "limit": limit
1026
+ },
1027
+ errors: {
1028
+ 400: `Invalid cursor or parameters`,
1029
+ 403: `Forbidden`
1030
+ }
1031
+ });
1032
+ }
1033
+ /**
1034
+ * Create an organization-shared agent group
1035
+ * @returns AgentDirectoryEntry Group created
1036
+ * @throws ApiError
1037
+ */
1038
+ createAgentGroup({
1039
+ requestBody
1040
+ }) {
1041
+ return this.httpRequest.request({
1042
+ method: "POST",
1043
+ url: "/agent-groups",
1044
+ body: requestBody,
1045
+ mediaType: "application/json",
1046
+ errors: {
1047
+ 400: `Invalid name`,
1048
+ 403: `Directory management permission required`,
1049
+ 404: `Parent group not found`
1050
+ }
1051
+ });
1052
+ }
1053
+ /**
1054
+ * Dissolve a group and promote its direct children to its parent
1055
+ * Preserves agents, descendant groups, sessions and personal favorites.
1056
+ * @returns void
1057
+ * @throws ApiError
1058
+ */
1059
+ dissolveAgentGroup({
1060
+ groupId
1061
+ }) {
1062
+ return this.httpRequest.request({
1063
+ method: "DELETE",
1064
+ url: "/agent-groups/{groupId}",
1065
+ path: {
1066
+ "groupId": groupId
1067
+ },
1068
+ errors: {
1069
+ 403: `Directory management permission required`,
1070
+ 404: `Group not found`
1071
+ }
1072
+ });
1073
+ }
1074
+ /**
1075
+ * Rename or move a group, including all descendants
1076
+ * @returns AgentDirectoryEntry Group updated
1077
+ * @throws ApiError
1078
+ */
1079
+ updateAgentGroup({
1080
+ groupId,
1081
+ requestBody
1082
+ }) {
1083
+ return this.httpRequest.request({
1084
+ method: "PUT",
1085
+ url: "/agent-groups/{groupId}",
1086
+ path: {
1087
+ "groupId": groupId
1088
+ },
1089
+ body: requestBody,
1090
+ mediaType: "application/json",
1091
+ errors: {
1092
+ 400: `Invalid name or cyclic move`,
1093
+ 403: `Directory management permission required`,
1094
+ 404: `Group or parent not found`
1095
+ }
1096
+ });
1097
+ }
943
1098
  /**
944
1099
  * Delete agent repository
945
1100
  * Soft delete a creator-owned agent repository. Recruited instances in other orgs keep historical data but can no longer start new work.
@@ -1366,7 +1521,7 @@ var DefaultService = class {
1366
1521
  }
1367
1522
  /**
1368
1523
  * Continue agent session
1369
- * Append a new user prompt to an existing managed agent session
1524
+ * Append a new user prompt to an unarchived managed agent session. Active sessions queue the input; finished, interrupted and failed sessions start a new run over the existing history.
1370
1525
  * @returns AgentSession Agent session continued
1371
1526
  * @throws ApiError
1372
1527
  */
@@ -1516,8 +1671,8 @@ var DefaultService = class {
1516
1671
  });
1517
1672
  }
1518
1673
  /**
1519
- * Resume an interrupted agent session
1520
- * Continue unfinished work without adding a user prompt. Starts a new run linked to the stopped run. Already running or otherwise ineligible sessions return 409.
1674
+ * Resume an interrupted or failed agent session
1675
+ * Continue unfinished work in an unarchived interrupted or failed session without adding a user prompt. Starts a new run linked to the stopped run, preserving its history and completed tool results. Already running or otherwise ineligible sessions return 409.
1521
1676
  * @returns AgentSession Recovery accepted
1522
1677
  * @throws ApiError
1523
1678
  */
@@ -1540,7 +1695,7 @@ var DefaultService = class {
1540
1695
  }
1541
1696
  /**
1542
1697
  * Resume an agent session and its descendants
1543
- * Resume unarchived interrupted sessions in the subtree rooted at sessionId, deepest level first and root last. Traverse through inactive and archived ancestors. Other session states are skipped. Each resume uses the existing recovery, model, permission and quota checks. Execution stops on the first error; earlier successful resumes remain applied and a retry skips them.
1698
+ * Resume unarchived interrupted or failed sessions in the subtree rooted at sessionId, deepest level first and root last. Traverse through inactive and archived ancestors. Other session states are skipped. Each resume uses the existing recovery, model, permission and quota checks. Execution stops on the first error; earlier successful resumes remain applied and a retry skips them.
1544
1699
  * @returns AgentSessionTreeActionResult All eligible sessions resumed
1545
1700
  * @throws ApiError
1546
1701
  */
@@ -1647,6 +1802,62 @@ var DefaultService = class {
1647
1802
  }
1648
1803
  });
1649
1804
  }
1805
+ /**
1806
+ * Ask an ephemeral question about a session
1807
+ * Replays the latest forkable context once, with tool calls disabled. Does not create a session, run, or session event. Usage is billed separately as side_query.
1808
+ * @returns SideQueryResponse Answer and provider token usage
1809
+ * @throws ApiError
1810
+ */
1811
+ sideQueryAgentSession({
1812
+ sessionId,
1813
+ requestBody
1814
+ }) {
1815
+ return this.httpRequest.request({
1816
+ method: "POST",
1817
+ url: "/agent-sessions/{sessionId}/side-query",
1818
+ path: {
1819
+ "sessionId": sessionId
1820
+ },
1821
+ body: requestBody,
1822
+ mediaType: "application/json",
1823
+ errors: {
1824
+ 400: `Invalid question`,
1825
+ 403: `Forbidden`,
1826
+ 404: `Session not found`,
1827
+ 409: `Session is archived or has no forkable context`,
1828
+ 502: `Model failed to return a text answer`,
1829
+ 504: `Side query timed out`
1830
+ }
1831
+ });
1832
+ }
1833
+ /**
1834
+ * List current session subscriptions
1835
+ * Read non-cancelled subscriptions from the primary database, ordered by creation time and ID. Refresh explicitly to see changes.
1836
+ * @returns SessionSubscriptionPage Current subscriptions; cancelled subscriptions are excluded.
1837
+ * @throws ApiError
1838
+ */
1839
+ listAgentSessionSubscriptions({
1840
+ sessionId,
1841
+ cursor,
1842
+ limit = 50
1843
+ }) {
1844
+ return this.httpRequest.request({
1845
+ method: "GET",
1846
+ url: "/agent-sessions/{sessionId}/subscriptions",
1847
+ path: {
1848
+ "sessionId": sessionId
1849
+ },
1850
+ query: {
1851
+ "cursor": cursor,
1852
+ "limit": limit
1853
+ },
1854
+ errors: {
1855
+ 400: `Invalid cursor or limit`,
1856
+ 403: `Forbidden`,
1857
+ 404: `Session not found`
1858
+ }
1859
+ });
1860
+ }
1650
1861
  /**
1651
1862
  * Rename agent session
1652
1863
  * Change the title of a session owned by the current user in the current organization, including archived sessions. A manually set title is preserved when automatic title generation finishes.
@@ -1915,6 +2126,65 @@ var DefaultService = class {
1915
2126
  }
1916
2127
  });
1917
2128
  }
2129
+ /**
2130
+ * Remove the authenticated user's favorite (idempotent)
2131
+ * @returns void
2132
+ * @throws ApiError
2133
+ */
2134
+ removeAgentFavorite({
2135
+ agentId
2136
+ }) {
2137
+ return this.httpRequest.request({
2138
+ method: "DELETE",
2139
+ url: "/agents/{agentId}/favorite",
2140
+ path: {
2141
+ "agentId": agentId
2142
+ }
2143
+ });
2144
+ }
2145
+ /**
2146
+ * Favorite an agent for the authenticated user (idempotent)
2147
+ * @returns void
2148
+ * @throws ApiError
2149
+ */
2150
+ addAgentFavorite({
2151
+ agentId
2152
+ }) {
2153
+ return this.httpRequest.request({
2154
+ method: "PUT",
2155
+ url: "/agents/{agentId}/favorite",
2156
+ path: {
2157
+ "agentId": agentId
2158
+ },
2159
+ errors: {
2160
+ 403: `Forbidden`,
2161
+ 404: `Agent not found`
2162
+ }
2163
+ });
2164
+ }
2165
+ /**
2166
+ * Move an agent to a group or the root
2167
+ * @returns void
2168
+ * @throws ApiError
2169
+ */
2170
+ moveAgentToGroup({
2171
+ agentId,
2172
+ requestBody
2173
+ }) {
2174
+ return this.httpRequest.request({
2175
+ method: "PUT",
2176
+ url: "/agents/{agentId}/group",
2177
+ path: {
2178
+ "agentId": agentId
2179
+ },
2180
+ body: requestBody,
2181
+ mediaType: "application/json",
2182
+ errors: {
2183
+ 403: `Directory management permission required`,
2184
+ 404: `Agent or group not found`
2185
+ }
2186
+ });
2187
+ }
1918
2188
  /**
1919
2189
  * Publish agent
1920
2190
  * Set the confirmed third-party token multiplier and publish the agent's main factory settings so other orgs can instantiate it.
@@ -2551,9 +2821,58 @@ var DefaultService = class {
2551
2821
  }
2552
2822
  });
2553
2823
  }
2824
+ /**
2825
+ * List preaggregated member and functional drive capacity and daily access usage for the authenticated organization
2826
+ * @returns CloudDriveCapacity Drives in ascending root ID order with current logical bytes, the last sample and the combined access fee for the selected UTC day
2827
+ * @throws ApiError
2828
+ */
2829
+ listBillingCloudDriveCapacities({
2830
+ after,
2831
+ limit = 50,
2832
+ usageDay,
2833
+ driveKind
2834
+ }) {
2835
+ return this.httpRequest.request({
2836
+ method: "GET",
2837
+ url: "/billing/cloud-drive/capacities",
2838
+ query: {
2839
+ "after": after,
2840
+ "limit": limit,
2841
+ "usageDay": usageDay,
2842
+ "driveKind": driveKind
2843
+ }
2844
+ });
2845
+ }
2846
+ /**
2847
+ * Get the authenticated organization's current logical storage total and breakdown by drive kind
2848
+ * @returns CloudDriveCapacitySummary One current organization snapshot, independent of pagination and usage day
2849
+ * @throws ApiError
2850
+ */
2851
+ getBillingCloudDriveCapacitySummary() {
2852
+ return this.httpRequest.request({
2853
+ method: "GET",
2854
+ url: "/billing/cloud-drive/capacity-summary"
2855
+ });
2856
+ }
2857
+ /**
2858
+ * Read the current organization's cloud drive invoice for one UTC issue date
2859
+ * @returns CloudDriveInvoiceItem Incremental charges and quantities on this invoice, including late adjustments
2860
+ * @throws ApiError
2861
+ */
2862
+ getBillingCloudDriveInvoice({
2863
+ invoiceDay
2864
+ }) {
2865
+ return this.httpRequest.request({
2866
+ method: "GET",
2867
+ url: "/billing/cloud-drive/invoices/{invoiceDay}",
2868
+ path: {
2869
+ "invoiceDay": invoiceDay
2870
+ }
2871
+ });
2872
+ }
2554
2873
  /**
2555
2874
  * Get billing credits
2556
- * Get current credit balances for the current org.
2875
+ * Get the current organization's credit balances, lifetime spending, and invoiced and available invoice amounts.
2557
2876
  * @returns BillingCredit Billing credits retrieved
2558
2877
  * @throws ApiError
2559
2878
  */
@@ -3597,46 +3916,155 @@ var DefaultService = class {
3597
3916
  });
3598
3917
  }
3599
3918
  /**
3600
- * List consent forms
3601
- * List consent forms received by the authenticated user in reverse chronological order
3602
- * @returns ConsentForm Consent forms listed
3919
+ * List cloud sandboxes
3920
+ * @returns CloudSandbox Organization cloud sandboxes visible to the caller
3603
3921
  * @throws ApiError
3604
3922
  */
3605
- listConsentForms({
3606
- pendingOnly,
3607
- offset,
3608
- limit
3609
- }) {
3923
+ listCloudSandboxes() {
3610
3924
  return this.httpRequest.request({
3611
3925
  method: "GET",
3612
- url: "/consent-forms",
3613
- query: {
3614
- "pendingOnly": pendingOnly,
3615
- "offset": offset,
3616
- "limit": limit
3617
- },
3618
- errors: {
3619
- 400: `Invalid request`
3620
- }
3926
+ url: "/cloud-sandboxes"
3621
3927
  });
3622
3928
  }
3623
3929
  /**
3624
- * Get consent form detail
3625
- * Get a consent form detail for the authenticated user
3626
- * @returns ConsentFormDetail Consent form detail returned
3930
+ * Create and start a persistent cloud sandbox
3931
+ * @returns CloudSandbox Creation accepted
3627
3932
  * @throws ApiError
3628
3933
  */
3629
- getConsentForm({
3630
- consentFormId
3934
+ createCloudSandbox({
3935
+ requestBody
3631
3936
  }) {
3632
3937
  return this.httpRequest.request({
3633
- method: "GET",
3634
- url: "/consent-forms/{consentFormId}",
3635
- path: {
3636
- "consentFormId": consentFormId
3637
- },
3638
- errors: {
3639
- 404: `Consent form not found`
3938
+ method: "POST",
3939
+ url: "/cloud-sandboxes",
3940
+ body: requestBody,
3941
+ mediaType: "application/json"
3942
+ });
3943
+ }
3944
+ /**
3945
+ * Retire a cloud sandbox and release its resources
3946
+ * @returns any Deletion accepted
3947
+ * @throws ApiError
3948
+ */
3949
+ deleteCloudSandbox({
3950
+ sandboxId
3951
+ }) {
3952
+ return this.httpRequest.request({
3953
+ method: "DELETE",
3954
+ url: "/cloud-sandboxes/{sandboxId}",
3955
+ path: {
3956
+ "sandboxId": sandboxId
3957
+ }
3958
+ });
3959
+ }
3960
+ /**
3961
+ * Get a cloud sandbox
3962
+ * @returns CloudSandbox Cloud sandbox
3963
+ * @throws ApiError
3964
+ */
3965
+ getCloudSandbox({
3966
+ sandboxId
3967
+ }) {
3968
+ return this.httpRequest.request({
3969
+ method: "GET",
3970
+ url: "/cloud-sandboxes/{sandboxId}",
3971
+ path: {
3972
+ "sandboxId": sandboxId
3973
+ }
3974
+ });
3975
+ }
3976
+ /**
3977
+ * Edit the display name
3978
+ * @returns CloudSandbox Updated cloud sandbox
3979
+ * @throws ApiError
3980
+ */
3981
+ renameCloudSandbox({
3982
+ sandboxId,
3983
+ requestBody
3984
+ }) {
3985
+ return this.httpRequest.request({
3986
+ method: "PATCH",
3987
+ url: "/cloud-sandboxes/{sandboxId}",
3988
+ path: {
3989
+ "sandboxId": sandboxId
3990
+ },
3991
+ body: requestBody,
3992
+ mediaType: "application/json"
3993
+ });
3994
+ }
3995
+ /**
3996
+ * Checkpoint a cloud sandbox into deep sleep
3997
+ * @returns any Pause accepted
3998
+ * @throws ApiError
3999
+ */
4000
+ pauseCloudSandbox({
4001
+ sandboxId
4002
+ }) {
4003
+ return this.httpRequest.request({
4004
+ method: "POST",
4005
+ url: "/cloud-sandboxes/{sandboxId}/pause",
4006
+ path: {
4007
+ "sandboxId": sandboxId
4008
+ }
4009
+ });
4010
+ }
4011
+ /**
4012
+ * Explicitly restore a cloud sandbox from deep sleep
4013
+ * @returns any Resume accepted
4014
+ * @throws ApiError
4015
+ */
4016
+ resumeCloudSandbox({
4017
+ sandboxId
4018
+ }) {
4019
+ return this.httpRequest.request({
4020
+ method: "POST",
4021
+ url: "/cloud-sandboxes/{sandboxId}/resume",
4022
+ path: {
4023
+ "sandboxId": sandboxId
4024
+ }
4025
+ });
4026
+ }
4027
+ /**
4028
+ * List consent forms
4029
+ * List consent forms received by the authenticated user in reverse chronological order
4030
+ * @returns ConsentForm Consent forms listed
4031
+ * @throws ApiError
4032
+ */
4033
+ listConsentForms({
4034
+ pendingOnly,
4035
+ offset,
4036
+ limit
4037
+ }) {
4038
+ return this.httpRequest.request({
4039
+ method: "GET",
4040
+ url: "/consent-forms",
4041
+ query: {
4042
+ "pendingOnly": pendingOnly,
4043
+ "offset": offset,
4044
+ "limit": limit
4045
+ },
4046
+ errors: {
4047
+ 400: `Invalid request`
4048
+ }
4049
+ });
4050
+ }
4051
+ /**
4052
+ * Get consent form detail
4053
+ * Get a consent form detail for the authenticated user
4054
+ * @returns ConsentFormDetail Consent form detail returned
4055
+ * @throws ApiError
4056
+ */
4057
+ getConsentForm({
4058
+ consentFormId
4059
+ }) {
4060
+ return this.httpRequest.request({
4061
+ method: "GET",
4062
+ url: "/consent-forms/{consentFormId}",
4063
+ path: {
4064
+ "consentFormId": consentFormId
4065
+ },
4066
+ errors: {
4067
+ 404: `Consent form not found`
3640
4068
  }
3641
4069
  });
3642
4070
  }
@@ -4805,9 +5233,130 @@ var DefaultService = class {
4805
5233
  }
4806
5234
  });
4807
5235
  }
5236
+ /**
5237
+ * Deactivate org user by qualified name
5238
+ * Deactivate a human organization member. To deactivate a service user, use DELETE /service-users/{namespace}/{username}.
5239
+ * @returns void
5240
+ * @throws ApiError
5241
+ */
5242
+ deleteOrgUserByName({
5243
+ namespace,
5244
+ username
5245
+ }) {
5246
+ return this.httpRequest.request({
5247
+ method: "DELETE",
5248
+ url: "/org-users/{namespace}/{username}",
5249
+ path: {
5250
+ "namespace": namespace,
5251
+ "username": username
5252
+ },
5253
+ errors: {
5254
+ 403: `An authorized enterprise member or an ordinary-organization owner can delete users`,
5255
+ 404: `Org user not found`,
5256
+ 409: `The organization owner cannot be deactivated`
5257
+ }
5258
+ });
5259
+ }
5260
+ /**
5261
+ * Update a managed member's display name by qualified name
5262
+ * @returns OrgUser Managed member updated
5263
+ * @throws ApiError
5264
+ */
5265
+ updateManagedOrgUserByName({
5266
+ namespace,
5267
+ username,
5268
+ requestBody
5269
+ }) {
5270
+ return this.httpRequest.request({
5271
+ method: "PATCH",
5272
+ url: "/org-users/{namespace}/{username}",
5273
+ path: {
5274
+ "namespace": namespace,
5275
+ "username": username
5276
+ },
5277
+ body: requestBody,
5278
+ mediaType: "application/json",
5279
+ errors: {
5280
+ 403: `Operation RN permission required for enterprise organizations; owner required for ordinary organizations`,
5281
+ 404: `Managed member not found in this organization`
5282
+ }
5283
+ });
5284
+ }
5285
+ /**
5286
+ * Deactivate a managed account by qualified name
5287
+ * Requires the operation RN in enterprise organizations; ordinary organizations require the owner. Stops login, revokes credentials and releases its occupied seat. Repeated deactivation preserves the original cooldown start.
5288
+ * @returns void
5289
+ * @throws ApiError
5290
+ */
5291
+ deactivateManagedOrgUserByName({
5292
+ namespace,
5293
+ username
5294
+ }) {
5295
+ return this.httpRequest.request({
5296
+ method: "POST",
5297
+ url: "/org-users/{namespace}/{username}/deactivate",
5298
+ path: {
5299
+ "namespace": namespace,
5300
+ "username": username
5301
+ },
5302
+ errors: {
5303
+ 403: `Operation RN permission required for enterprise organizations; owner required for ordinary organizations`,
5304
+ 404: `Managed member not found`,
5305
+ 409: `Organization owner cannot be deactivated`
5306
+ }
5307
+ });
5308
+ }
5309
+ /**
5310
+ * Reactivate a managed account by qualified name
5311
+ * Requires the operation RN in enterprise organizations, or the owner in ordinary organizations, at least 24 hours after deactivation. Rechecks quotas and enterprise seats transactionally. Does not reset the password or automatically log in the user.
5312
+ * @returns void
5313
+ * @throws ApiError
5314
+ */
5315
+ reactivateManagedOrgUserByName({
5316
+ namespace,
5317
+ username
5318
+ }) {
5319
+ return this.httpRequest.request({
5320
+ method: "POST",
5321
+ url: "/org-users/{namespace}/{username}/reactivate",
5322
+ path: {
5323
+ "namespace": namespace,
5324
+ "username": username
5325
+ },
5326
+ errors: {
5327
+ 402: `Insufficient credits for an additional seat`,
5328
+ 403: `Operation RN permission required for enterprise organizations; owner required for ordinary organizations`,
5329
+ 404: `Managed member not found`,
5330
+ 409: `Cooldown has not elapsed or a member quota is exceeded`
5331
+ }
5332
+ });
5333
+ }
5334
+ /**
5335
+ * Reset a managed account's password by qualified name
5336
+ * Requires the operation RN in enterprise organizations; ordinary organizations require the owner. Generates a temporary password and revokes existing credentials without changing activation status.
5337
+ * @returns ManagedPasswordReset Temporary password generated
5338
+ * @throws ApiError
5339
+ */
5340
+ resetManagedOrgUserPasswordByName({
5341
+ namespace,
5342
+ username
5343
+ }) {
5344
+ return this.httpRequest.request({
5345
+ method: "POST",
5346
+ url: "/org-users/{namespace}/{username}/reset-password",
5347
+ path: {
5348
+ "namespace": namespace,
5349
+ "username": username
5350
+ },
5351
+ errors: {
5352
+ 403: `Operation RN permission required for enterprise organizations; owner required for ordinary organizations`,
5353
+ 404: `Managed member not found`
5354
+ }
5355
+ });
5356
+ }
4808
5357
  /**
4809
5358
  * Deactivate org user
4810
- * Deactivate an existing org user. An authorized enterprise member or an ordinary-organization owner can deactivate users.
5359
+ * Deactivate a human organization member. To deactivate a service user, use DELETE /service-users/{namespace}/{username}.
4811
5360
  * @returns void
4812
5361
  * @throws ApiError
4813
5362
  */
@@ -5477,19 +6026,21 @@ var DefaultService = class {
5477
6026
  });
5478
6027
  }
5479
6028
  /**
5480
- * Get an enterprise member's daily usage budget
6029
+ * Get an enterprise member's daily usage budget by qualified name
5481
6030
  * Uses the current UTC billing date and all usage categories from the billing aggregates. Only Agent/model admission is limited. Subscription expiry does not remove configured budgets.
5482
6031
  * @returns UserDailyBudget Current budget and aggregated usage
5483
6032
  * @throws ApiError
5484
6033
  */
5485
- getUserDailyBudget({
5486
- userId
6034
+ getUserDailyBudgetByName({
6035
+ namespace,
6036
+ username
5487
6037
  }) {
5488
6038
  return this.httpRequest.request({
5489
6039
  method: "GET",
5490
- url: "/org/users/{userId}/daily-budget",
6040
+ url: "/org/users/{namespace}/{username}/daily-budget",
5491
6041
  path: {
5492
- "userId": userId
6042
+ "namespace": namespace,
6043
+ "username": username
5493
6044
  },
5494
6045
  errors: {
5495
6046
  403: `Enterprise organization and member budget read permission required`,
@@ -5498,20 +6049,22 @@ var DefaultService = class {
5498
6049
  });
5499
6050
  }
5500
6051
  /**
5501
- * Set an enterprise member's daily usage budget
6052
+ * Set an enterprise member's daily usage budget by qualified name
5502
6053
  * Zero blocks new Agent/model work; omit limitMicroyuans or set it to null for unlimited usage. Settings propagate to other workers within 7 seconds while dependencies are healthy. Usage checks additionally cache billing aggregates for at most 5 seconds. RisingWave lag and already admitted concurrent calls can cause overspending. No automatic replay of stopped work occurs at the next UTC day.
5503
6054
  * @returns UserDailyBudget Saved budget and current aggregated usage
5504
6055
  * @throws ApiError
5505
6056
  */
5506
- setUserDailyBudget({
5507
- userId,
6057
+ setUserDailyBudgetByName({
6058
+ namespace,
6059
+ username,
5508
6060
  requestBody
5509
6061
  }) {
5510
6062
  return this.httpRequest.request({
5511
6063
  method: "PUT",
5512
- url: "/org/users/{userId}/daily-budget",
6064
+ url: "/org/users/{namespace}/{username}/daily-budget",
5513
6065
  path: {
5514
- "userId": userId
6066
+ "namespace": namespace,
6067
+ "username": username
5515
6068
  },
5516
6069
  body: requestBody,
5517
6070
  mediaType: "application/json",
@@ -5523,19 +6076,21 @@ var DefaultService = class {
5523
6076
  });
5524
6077
  }
5525
6078
  /**
5526
- * Get a member's bound policy IDs
6079
+ * Get a member's bound policy IDs by qualified name
5527
6080
  * Requires an enterprise organization and the corresponding enterprise RN permission.
5528
6081
  * @returns EnterprisePermissionPolicyBindings Get a member's bound policy IDs
5529
6082
  * @throws ApiError
5530
6083
  */
5531
- getUserEnterprisePermissionPolicies({
5532
- userId
6084
+ getUserEnterprisePermissionPoliciesByName({
6085
+ namespace,
6086
+ username
5533
6087
  }) {
5534
6088
  return this.httpRequest.request({
5535
6089
  method: "GET",
5536
- url: "/org/users/{userId}/enterprise-permission-policies",
6090
+ url: "/org/users/{namespace}/{username}/enterprise-permission-policies",
5537
6091
  path: {
5538
- "userId": userId
6092
+ "namespace": namespace,
6093
+ "username": username
5539
6094
  },
5540
6095
  errors: {
5541
6096
  400: `Invalid input`,
@@ -5546,20 +6101,22 @@ var DefaultService = class {
5546
6101
  });
5547
6102
  }
5548
6103
  /**
5549
- * Replace a member's policy bindings
6104
+ * Replace a member's policy bindings by qualified name
5550
6105
  * Requires an enterprise organization and the corresponding enterprise RN permission. Atomically replaces all bindings without changing direct user rules. Empty policyIds detaches every policy. Subsequent login or renewal does not restore detached policies.
5551
6106
  * @returns EnterprisePermissionPolicyBindings Replace a member's policy bindings
5552
6107
  * @throws ApiError
5553
6108
  */
5554
- replaceUserEnterprisePermissionPolicies({
5555
- userId,
6109
+ replaceUserEnterprisePermissionPoliciesByName({
6110
+ namespace,
6111
+ username,
5556
6112
  requestBody
5557
6113
  }) {
5558
6114
  return this.httpRequest.request({
5559
6115
  method: "PUT",
5560
- url: "/org/users/{userId}/enterprise-permission-policies",
6116
+ url: "/org/users/{namespace}/{username}/enterprise-permission-policies",
5561
6117
  path: {
5562
- "userId": userId
6118
+ "namespace": namespace,
6119
+ "username": username
5563
6120
  },
5564
6121
  body: requestBody,
5565
6122
  mediaType: "application/json",
@@ -5572,19 +6129,164 @@ var DefaultService = class {
5572
6129
  });
5573
6130
  }
5574
6131
  /**
5575
- * Get a member's enterprise permission rules
6132
+ * Get a member's enterprise permission rules by qualified name
5576
6133
  * Requires the corresponding enterprise RN permission. Returns direct user rules only; bound policy rules are evaluated separately. Existing resource access checks still apply.
5577
6134
  * @returns EnterprisePermissionRules Current rules
5578
6135
  * @throws ApiError
5579
6136
  */
5580
- getUserEnterprisePermissions({
5581
- userId
6137
+ getUserEnterprisePermissionsByName({
6138
+ namespace,
6139
+ username
5582
6140
  }) {
5583
6141
  return this.httpRequest.request({
5584
6142
  method: "GET",
5585
- url: "/org/users/{userId}/enterprise-permissions",
6143
+ url: "/org/users/{namespace}/{username}/enterprise-permissions",
5586
6144
  path: {
5587
- "userId": userId
6145
+ "namespace": namespace,
6146
+ "username": username
6147
+ },
6148
+ errors: {
6149
+ 403: `Requires an enterprise organization and permission to read this member's rules`,
6150
+ 404: `Member not found in this organization`
6151
+ }
6152
+ });
6153
+ }
6154
+ /**
6155
+ * Replace a member's enterprise permission rules by qualified name
6156
+ * Requires the corresponding enterprise RN permission. Atomically replaces direct user rules without changing policy bindings. Empty rules clear direct grants and denies; bound policies still apply. Deny always overrides allow across all sources. No token refresh is required.
6157
+ * @returns EnterprisePermissionRules Updated rules
6158
+ * @throws ApiError
6159
+ */
6160
+ replaceUserEnterprisePermissionsByName({
6161
+ namespace,
6162
+ username,
6163
+ requestBody
6164
+ }) {
6165
+ return this.httpRequest.request({
6166
+ method: "PUT",
6167
+ url: "/org/users/{namespace}/{username}/enterprise-permissions",
6168
+ path: {
6169
+ "namespace": namespace,
6170
+ "username": username
6171
+ },
6172
+ body: requestBody,
6173
+ mediaType: "application/json",
6174
+ errors: {
6175
+ 400: `Invalid or duplicate rule`,
6176
+ 403: `Requires an enterprise organization and permission to edit this member's rules`,
6177
+ 404: `Member not found in this organization`
6178
+ }
6179
+ });
6180
+ }
6181
+ /**
6182
+ * Get an enterprise member's daily usage budget
6183
+ * Uses the current UTC billing date and all usage categories from the billing aggregates. Only Agent/model admission is limited. Subscription expiry does not remove configured budgets.
6184
+ * @returns UserDailyBudget Current budget and aggregated usage
6185
+ * @throws ApiError
6186
+ */
6187
+ getUserDailyBudget({
6188
+ userId
6189
+ }) {
6190
+ return this.httpRequest.request({
6191
+ method: "GET",
6192
+ url: "/org/users/{userId}/daily-budget",
6193
+ path: {
6194
+ "userId": userId
6195
+ },
6196
+ errors: {
6197
+ 403: `Enterprise organization and member budget read permission required`,
6198
+ 404: `Member not found in this organization`
6199
+ }
6200
+ });
6201
+ }
6202
+ /**
6203
+ * Set an enterprise member's daily usage budget
6204
+ * Zero blocks new Agent/model work; omit limitMicroyuans or set it to null for unlimited usage. Settings propagate to other workers within 7 seconds while dependencies are healthy. Usage checks additionally cache billing aggregates for at most 5 seconds. RisingWave lag and already admitted concurrent calls can cause overspending. No automatic replay of stopped work occurs at the next UTC day.
6205
+ * @returns UserDailyBudget Saved budget and current aggregated usage
6206
+ * @throws ApiError
6207
+ */
6208
+ setUserDailyBudget({
6209
+ userId,
6210
+ requestBody
6211
+ }) {
6212
+ return this.httpRequest.request({
6213
+ method: "PUT",
6214
+ url: "/org/users/{userId}/daily-budget",
6215
+ path: {
6216
+ "userId": userId
6217
+ },
6218
+ body: requestBody,
6219
+ mediaType: "application/json",
6220
+ errors: {
6221
+ 400: `Invalid amount`,
6222
+ 403: `Enterprise organization and member budget edit permission required`,
6223
+ 404: `Member not found in this organization`
6224
+ }
6225
+ });
6226
+ }
6227
+ /**
6228
+ * Get a member's bound policy IDs
6229
+ * Requires an enterprise organization and the corresponding enterprise RN permission.
6230
+ * @returns EnterprisePermissionPolicyBindings Get a member's bound policy IDs
6231
+ * @throws ApiError
6232
+ */
6233
+ getUserEnterprisePermissionPolicies({
6234
+ userId
6235
+ }) {
6236
+ return this.httpRequest.request({
6237
+ method: "GET",
6238
+ url: "/org/users/{userId}/enterprise-permission-policies",
6239
+ path: {
6240
+ "userId": userId
6241
+ },
6242
+ errors: {
6243
+ 400: `Invalid input`,
6244
+ 403: `Permission denied`,
6245
+ 404: `Policy or member not found in this organization`,
6246
+ 409: `Policy name already exists`
6247
+ }
6248
+ });
6249
+ }
6250
+ /**
6251
+ * Replace a member's policy bindings
6252
+ * Requires an enterprise organization and the corresponding enterprise RN permission. Atomically replaces all bindings without changing direct user rules. Empty policyIds detaches every policy. Subsequent login or renewal does not restore detached policies.
6253
+ * @returns EnterprisePermissionPolicyBindings Replace a member's policy bindings
6254
+ * @throws ApiError
6255
+ */
6256
+ replaceUserEnterprisePermissionPolicies({
6257
+ userId,
6258
+ requestBody
6259
+ }) {
6260
+ return this.httpRequest.request({
6261
+ method: "PUT",
6262
+ url: "/org/users/{userId}/enterprise-permission-policies",
6263
+ path: {
6264
+ "userId": userId
6265
+ },
6266
+ body: requestBody,
6267
+ mediaType: "application/json",
6268
+ errors: {
6269
+ 400: `Invalid input`,
6270
+ 403: `Permission denied`,
6271
+ 404: `Policy or member not found in this organization`,
6272
+ 409: `Policy name already exists`
6273
+ }
6274
+ });
6275
+ }
6276
+ /**
6277
+ * Get a member's enterprise permission rules
6278
+ * Requires the corresponding enterprise RN permission. Returns direct user rules only; bound policy rules are evaluated separately. Existing resource access checks still apply.
6279
+ * @returns EnterprisePermissionRules Current rules
6280
+ * @throws ApiError
6281
+ */
6282
+ getUserEnterprisePermissions({
6283
+ userId
6284
+ }) {
6285
+ return this.httpRequest.request({
6286
+ method: "GET",
6287
+ url: "/org/users/{userId}/enterprise-permissions",
6288
+ path: {
6289
+ "userId": userId
5588
6290
  },
5589
6291
  errors: {
5590
6292
  403: `Requires an enterprise organization and permission to read this member's rules`,
@@ -6120,6 +6822,90 @@ var DefaultService = class {
6120
6822
  url: "/service-users"
6121
6823
  });
6122
6824
  }
6825
+ /**
6826
+ * Deactivate an organization service user by qualified name
6827
+ * @returns void
6828
+ * @throws ApiError
6829
+ */
6830
+ deleteServiceUserByName({
6831
+ namespace,
6832
+ username
6833
+ }) {
6834
+ return this.httpRequest.request({
6835
+ method: "DELETE",
6836
+ url: "/service-users/{namespace}/{username}",
6837
+ path: {
6838
+ "namespace": namespace,
6839
+ "username": username
6840
+ },
6841
+ errors: {
6842
+ 403: `Caller lacks permission`,
6843
+ 404: `Active service user not found in this organization`
6844
+ }
6845
+ });
6846
+ }
6847
+ /**
6848
+ * Get an organization service user by qualified name
6849
+ * @returns ServiceUser Active service identity
6850
+ * @throws ApiError
6851
+ */
6852
+ getServiceUserByName({
6853
+ namespace,
6854
+ username
6855
+ }) {
6856
+ return this.httpRequest.request({
6857
+ method: "GET",
6858
+ url: "/service-users/{namespace}/{username}",
6859
+ path: {
6860
+ "namespace": namespace,
6861
+ "username": username
6862
+ },
6863
+ errors: {
6864
+ 403: `Caller lacks permission`,
6865
+ 404: `Active service user not found in this organization`
6866
+ }
6867
+ });
6868
+ }
6869
+ /**
6870
+ * Deactivate an organization service user by ID
6871
+ * @returns void
6872
+ * @throws ApiError
6873
+ */
6874
+ deleteServiceUser({
6875
+ userId
6876
+ }) {
6877
+ return this.httpRequest.request({
6878
+ method: "DELETE",
6879
+ url: "/service-users/{userId}",
6880
+ path: {
6881
+ "userId": userId
6882
+ },
6883
+ errors: {
6884
+ 403: `Caller lacks permission`,
6885
+ 404: `Active service user not found in this organization`
6886
+ }
6887
+ });
6888
+ }
6889
+ /**
6890
+ * Get an organization service user by ID
6891
+ * @returns ServiceUser Active service identity
6892
+ * @throws ApiError
6893
+ */
6894
+ getServiceUser({
6895
+ userId
6896
+ }) {
6897
+ return this.httpRequest.request({
6898
+ method: "GET",
6899
+ url: "/service-users/{userId}",
6900
+ path: {
6901
+ "userId": userId
6902
+ },
6903
+ errors: {
6904
+ 403: `Caller lacks permission`,
6905
+ 404: `Active service user not found in this organization`
6906
+ }
6907
+ });
6908
+ }
6123
6909
  /**
6124
6910
  * Get the shared session selected by a short share key
6125
6911
  * Resolve immutable shared-session metadata using a short bearer key that is accepted only by session-share APIs.
@@ -6361,6 +7147,66 @@ var DefaultService = class {
6361
7147
  mediaType: "application/json"
6362
7148
  });
6363
7149
  }
7150
+ /**
7151
+ * Rotate this CLI grant using its refresh credential
7152
+ * @returns SSOTokens Rotate this CLI grant using its refresh credential
7153
+ * @throws ApiError
7154
+ */
7155
+ refreshCliTokens({
7156
+ requestBody
7157
+ }) {
7158
+ return this.httpRequest.request({
7159
+ method: "POST",
7160
+ url: "/sso/cli/refresh",
7161
+ body: requestBody,
7162
+ mediaType: "application/json"
7163
+ });
7164
+ }
7165
+ /**
7166
+ * Begin a Leawan CLI login bound to a loopback callback and S256 PKCE
7167
+ * @returns SSORequest Begin a Leawan CLI login bound to a loopback callback and S256 PKCE
7168
+ * @throws ApiError
7169
+ */
7170
+ createCliRequest({
7171
+ requestBody
7172
+ }) {
7173
+ return this.httpRequest.request({
7174
+ method: "POST",
7175
+ url: "/sso/cli/requests",
7176
+ body: requestBody,
7177
+ mediaType: "application/json"
7178
+ });
7179
+ }
7180
+ /**
7181
+ * Revoke this CLI grant using its refresh credential
7182
+ * @returns void
7183
+ * @throws ApiError
7184
+ */
7185
+ revokeCliGrant({
7186
+ requestBody
7187
+ }) {
7188
+ return this.httpRequest.request({
7189
+ method: "POST",
7190
+ url: "/sso/cli/revoke",
7191
+ body: requestBody,
7192
+ mediaType: "application/json"
7193
+ });
7194
+ }
7195
+ /**
7196
+ * Exchange the CLI authorization code with its original PKCE verifier
7197
+ * @returns SSOTokens Exchange the CLI authorization code with its original PKCE verifier
7198
+ * @throws ApiError
7199
+ */
7200
+ exchangeCliCode({
7201
+ requestBody
7202
+ }) {
7203
+ return this.httpRequest.request({
7204
+ method: "POST",
7205
+ url: "/sso/cli/token",
7206
+ body: requestBody,
7207
+ mediaType: "application/json"
7208
+ });
7209
+ }
6364
7210
  /**
6365
7211
  * Revoke a user grant using the application's service identity
6366
7212
  * @returns void
@@ -6884,86 +7730,800 @@ var DefaultService3 = class {
6884
7730
  }
6885
7731
  httpRequest;
6886
7732
  /**
6887
- * @returns CustomDomain Custom domains and DNS configuration
7733
+ * Browse the App Marketplace, including delisted apps owned by this organization.
7734
+ * @returns CloudAppList App Marketplace listings and this organization's delisted apps
6888
7735
  * @throws ApiError
6889
7736
  */
6890
- listAppDomains({
6891
- id
7737
+ listCloudApps({
7738
+ after
6892
7739
  }) {
6893
7740
  return this.httpRequest.request({
6894
7741
  method: "GET",
6895
- url: "/apps/{id}/domains",
6896
- path: {
6897
- "id": id
7742
+ url: "/cloud-apps",
7743
+ query: {
7744
+ "after": after
6898
7745
  },
6899
7746
  errors: {
6900
- 404: `Function not found`
7747
+ 409: `Conflicting lifecycle operation`
6901
7748
  }
6902
7749
  });
6903
7750
  }
6904
7751
  /**
6905
- * @returns CustomDomain Domain reserved; configure both DNS records to begin verification
7752
+ * List this organization's cloud apps, including drafts with saved profiles.
7753
+ * @returns DevelopedCloudAppList Cloud apps developed in this organization
6906
7754
  * @throws ApiError
6907
7755
  */
6908
- createAppDomain({
7756
+ listDevelopedCloudApps({
7757
+ after
7758
+ }) {
7759
+ return this.httpRequest.request({
7760
+ method: "GET",
7761
+ url: "/developed-cloud-apps",
7762
+ query: {
7763
+ "after": after
7764
+ }
7765
+ });
7766
+ }
7767
+ /**
7768
+ * Read the source function's editable profile, including before it is listed in the App Marketplace.
7769
+ * @returns CloudAppProfile Current profile
7770
+ * @throws ApiError
7771
+ */
7772
+ getCloudAppProfile({
7773
+ id
7774
+ }) {
7775
+ return this.httpRequest.request({
7776
+ method: "GET",
7777
+ url: "/apps/{id}/cloud-app/profile",
7778
+ path: {
7779
+ "id": id
7780
+ },
7781
+ errors: {
7782
+ 404: `Source function unavailable in this organization`
7783
+ }
7784
+ });
7785
+ }
7786
+ /**
7787
+ * Save App Marketplace listing details
7788
+ * Create a draft or edit an existing listing. Edits to listed apps appear immediately in the App Marketplace. Omit the logo to retain it.
7789
+ * @returns CloudAppProfile Saved profile
7790
+ * @throws ApiError
7791
+ */
7792
+ updateCloudAppProfile({
7793
+ id,
7794
+ formData
7795
+ }) {
7796
+ return this.httpRequest.request({
7797
+ method: "PUT",
7798
+ url: "/apps/{id}/cloud-app/profile",
7799
+ path: {
7800
+ "id": id
7801
+ },
7802
+ formData,
7803
+ mediaType: "multipart/form-data",
7804
+ errors: {
7805
+ 400: `Invalid profile or image`,
7806
+ 404: `Source function unavailable in this organization`,
7807
+ 413: `Logo exceeds 2 MiB`
7808
+ }
7809
+ });
7810
+ }
7811
+ /**
7812
+ * List a version in the App Marketplace (上架到应用市场)
7813
+ * List the source function's verified active deployment for other organizations to install. The bundle is linked from the organization's public Cloud Drive, and existing subscribers are queued for updates. Agents should guide users to open Platform → Cloud applications, select the source function under Edit app profile, enter the version, and click List in the App Marketplace themselves. An agent may call this operation on the user's behalf only after the user explicitly authorizes the agent to list that app version in the App Marketplace. This applies to first listings and new versions.
7814
+ * @returns CloudApp Version listed in the App Marketplace
7815
+ * @throws ApiError
7816
+ */
7817
+ publishCloudApp({
7818
+ id,
7819
+ requestBody
7820
+ }) {
7821
+ return this.httpRequest.request({
7822
+ method: "POST",
7823
+ url: "/apps/{id}/cloud-app/releases",
7824
+ path: {
7825
+ "id": id
7826
+ },
7827
+ body: requestBody,
7828
+ mediaType: "application/json",
7829
+ errors: {
7830
+ 409: `Conflicting lifecycle operation`
7831
+ }
7832
+ });
7833
+ }
7834
+ /**
7835
+ * Read the current App Marketplace listing.
7836
+ * @returns CloudApp App Marketplace listing details
7837
+ * @throws ApiError
7838
+ */
7839
+ getCloudApp({
7840
+ id
7841
+ }) {
7842
+ return this.httpRequest.request({
7843
+ method: "GET",
7844
+ url: "/cloud-apps/{id}",
7845
+ path: {
7846
+ "id": id
7847
+ },
7848
+ errors: {
7849
+ 409: `Conflicting lifecycle operation`
7850
+ }
7851
+ });
7852
+ }
7853
+ /**
7854
+ * Remove an app from the App Marketplace
7855
+ * Remove the app from the App Marketplace to stop new installations and future updates.
7856
+ * @returns CloudApp App removed from the App Marketplace
7857
+ * @throws ApiError
7858
+ */
7859
+ unpublishCloudApp({
7860
+ id
7861
+ }) {
7862
+ return this.httpRequest.request({
7863
+ method: "DELETE",
7864
+ url: "/cloud-apps/{id}",
7865
+ path: {
7866
+ "id": id
7867
+ },
7868
+ errors: {
7869
+ 409: `Conflicting lifecycle operation`
7870
+ }
7871
+ });
7872
+ }
7873
+ /**
7874
+ * Reserve an installation and provision it asynchronously.
7875
+ * @returns CloudAppInstallation Reserve an installation and provision it asynchronously.
7876
+ * @throws ApiError
7877
+ */
7878
+ installCloudApp({
7879
+ id,
7880
+ requestBody
7881
+ }) {
7882
+ return this.httpRequest.request({
7883
+ method: "POST",
7884
+ url: "/cloud-apps/{id}/installations",
7885
+ path: {
7886
+ "id": id
7887
+ },
7888
+ body: requestBody,
7889
+ mediaType: "application/json",
7890
+ errors: {
7891
+ 409: `Conflicting lifecycle operation`
7892
+ }
7893
+ });
7894
+ }
7895
+ /**
7896
+ * List current installations in this organization.
7897
+ * @returns CloudAppInstallationList List current installations in this organization.
7898
+ * @throws ApiError
7899
+ */
7900
+ listCloudAppInstallations({
7901
+ after
7902
+ }) {
7903
+ return this.httpRequest.request({
7904
+ method: "GET",
7905
+ url: "/cloud-app-installations",
7906
+ query: {
7907
+ "after": after
7908
+ },
7909
+ errors: {
7910
+ 409: `Conflicting lifecycle operation`
7911
+ }
7912
+ });
7913
+ }
7914
+ /**
7915
+ * Prepare a default installation on first use. Repeated calls return the existing installation.
7916
+ * @returns CloudAppInstallation Poll this installation until installed, then open the function URL.
7917
+ * @throws ApiError
7918
+ */
7919
+ openCloudAppInstallation({
7920
+ id
7921
+ }) {
7922
+ return this.httpRequest.request({
7923
+ method: "POST",
7924
+ url: "/cloud-app-installations/{id}/open",
7925
+ path: {
7926
+ "id": id
7927
+ },
7928
+ errors: {
7929
+ 409: `The installation was removed or is being uninstalled.`
7930
+ }
7931
+ });
7932
+ }
7933
+ /**
7934
+ * Read lifecycle progress, including a completed uninstall.
7935
+ * @returns CloudAppInstallation Read lifecycle progress, including a completed uninstall.
7936
+ * @throws ApiError
7937
+ */
7938
+ getCloudAppInstallation({
7939
+ id
7940
+ }) {
7941
+ return this.httpRequest.request({
7942
+ method: "GET",
7943
+ url: "/cloud-app-installations/{id}",
7944
+ path: {
7945
+ "id": id
7946
+ },
7947
+ errors: {
7948
+ 409: `Conflicting lifecycle operation`
7949
+ }
7950
+ });
7951
+ }
7952
+ /**
7953
+ * Withdraw traffic and remove owned resources asynchronously.
7954
+ * @returns CloudAppInstallation Withdraw traffic and remove owned resources asynchronously.
7955
+ * @throws ApiError
7956
+ */
7957
+ uninstallCloudApp({
7958
+ id,
7959
+ requestBody
7960
+ }) {
7961
+ return this.httpRequest.request({
7962
+ method: "DELETE",
7963
+ url: "/cloud-app-installations/{id}",
7964
+ path: {
7965
+ "id": id
7966
+ },
7967
+ body: requestBody,
7968
+ mediaType: "application/json",
7969
+ errors: {
7970
+ 409: `Conflicting lifecycle operation`
7971
+ }
7972
+ });
7973
+ }
7974
+ /**
7975
+ * Resume a failed lifecycle operation.
7976
+ * @returns CloudAppInstallation Resume a failed lifecycle operation.
7977
+ * @throws ApiError
7978
+ */
7979
+ retryCloudAppInstallation({
7980
+ id
7981
+ }) {
7982
+ return this.httpRequest.request({
7983
+ method: "POST",
7984
+ url: "/cloud-app-installations/{id}/retry",
7985
+ path: {
7986
+ "id": id
7987
+ },
7988
+ errors: {
7989
+ 409: `Conflicting lifecycle operation`
7990
+ }
7991
+ });
7992
+ }
7993
+ /**
7994
+ * List the current organization's reusable domain suffixes.
7995
+ * @returns RootDomain Root domains, wildcard certificate status and one-time DNS setup
7996
+ * @throws ApiError
7997
+ */
7998
+ listRootDomains() {
7999
+ return this.httpRequest.request({
8000
+ method: "GET",
8001
+ url: "/root-domains"
8002
+ });
8003
+ }
8004
+ /**
8005
+ * Requires organization ownership or root-domains:edit permission. DNS setup and certificate issuance are asynchronous.
8006
+ * @returns RootDomain Root domain reserved; configure the returned DNS records
8007
+ * @throws ApiError
8008
+ */
8009
+ createRootDomain({
8010
+ requestBody
8011
+ }) {
8012
+ return this.httpRequest.request({
8013
+ method: "POST",
8014
+ url: "/root-domains",
8015
+ body: requestBody,
8016
+ mediaType: "application/json",
8017
+ errors: {
8018
+ 400: `Invalid domain suffix`,
8019
+ 403: `Root domain management permission required`,
8020
+ 409: `Conflicting domain ownership or organization limit reached`,
8021
+ 503: `Wildcard domain provisioning unavailable`
8022
+ }
8023
+ });
8024
+ }
8025
+ /**
8026
+ * Change the default automatically used for future function creation when rootDomainId is omitted. Does not change existing bindings.
8027
+ * @returns RootDomain Root domain updated
8028
+ * @throws ApiError
8029
+ */
8030
+ updateRootDomain({
8031
+ rootDomainId,
8032
+ requestBody
8033
+ }) {
8034
+ return this.httpRequest.request({
8035
+ method: "PUT",
8036
+ url: "/root-domains/{rootDomainId}",
8037
+ path: {
8038
+ "rootDomainId": rootDomainId
8039
+ },
8040
+ body: requestBody,
8041
+ mediaType: "application/json",
8042
+ errors: {
8043
+ 403: `Root domain management permission required`,
8044
+ 404: `Root domain not found in this organization`,
8045
+ 409: `Root domain is not usable`
8046
+ }
8047
+ });
8048
+ }
8049
+ /**
8050
+ * Requires root-domains:edit permission or organization ownership. Withdraws all bindings under this root; functions and other domains remain. Binding and DNS cleanup are asynchronous.
8051
+ * @returns any Deletion recorded; managed DNS records will be cleaned asynchronously
8052
+ * @throws ApiError
8053
+ */
8054
+ deleteRootDomain({
8055
+ rootDomainId
8056
+ }) {
8057
+ return this.httpRequest.request({
8058
+ method: "DELETE",
8059
+ url: "/root-domains/{rootDomainId}",
8060
+ path: {
8061
+ "rootDomainId": rootDomainId
8062
+ },
8063
+ errors: {
8064
+ 403: `Root domain management permission required`,
8065
+ 404: `Root domain not found in this organization`
8066
+ }
8067
+ });
8068
+ }
8069
+ /**
8070
+ * @returns CustomDomain All function domains, including the non-deletable platform domain, access status and DNS configuration
8071
+ * @throws ApiError
8072
+ */
8073
+ listAppDomains({
8074
+ id
8075
+ }) {
8076
+ return this.httpRequest.request({
8077
+ method: "GET",
8078
+ url: "/apps/{id}/domains",
8079
+ path: {
8080
+ "id": id
8081
+ },
8082
+ errors: {
8083
+ 404: `Function not found`
8084
+ }
8085
+ });
8086
+ }
8087
+ /**
8088
+ * @returns CustomDomain Domain bound; organization-root subdomains need no separate DNS setup. Other domains require the returned DNS records.
8089
+ * @throws ApiError
8090
+ */
8091
+ createAppDomain({
8092
+ id,
8093
+ requestBody
8094
+ }) {
8095
+ return this.httpRequest.request({
8096
+ method: "POST",
8097
+ url: "/apps/{id}/domains",
8098
+ path: {
8099
+ "id": id
8100
+ },
8101
+ body: requestBody,
8102
+ mediaType: "application/json",
8103
+ errors: {
8104
+ 400: `Invalid subdomain`,
8105
+ 404: `Function not found`,
8106
+ 409: `Domain already bound or function domain limit reached`,
8107
+ 503: `Custom domains unavailable`
8108
+ }
8109
+ });
8110
+ }
8111
+ /**
8112
+ * Independently enable or disable a domain, or choose a ready enabled domain as the preferred display URL. Changes propagate asynchronously; certificates remain managed while disabled.
8113
+ * @returns CustomDomain Settings saved and route publication queued
8114
+ * @throws ApiError
8115
+ */
8116
+ updateAppDomain({
8117
+ id,
8118
+ domainId,
8119
+ requestBody
8120
+ }) {
8121
+ return this.httpRequest.request({
8122
+ method: "PUT",
8123
+ url: "/apps/{id}/domains/{domainId}",
8124
+ path: {
8125
+ "id": id,
8126
+ "domainId": domainId
8127
+ },
8128
+ body: requestBody,
8129
+ mediaType: "application/json",
8130
+ errors: {
8131
+ 400: `Empty settings`,
8132
+ 404: `Domain not found in this function`,
8133
+ 409: `Preferred domain must be enabled and ready`
8134
+ }
8135
+ });
8136
+ }
8137
+ /**
8138
+ * @returns void
8139
+ * @throws ApiError
8140
+ */
8141
+ deleteAppDomain({
8142
+ id,
8143
+ domainId
8144
+ }) {
8145
+ return this.httpRequest.request({
8146
+ method: "DELETE",
8147
+ url: "/apps/{id}/domains/{domainId}",
8148
+ path: {
8149
+ "id": id,
8150
+ "domainId": domainId
8151
+ },
8152
+ errors: {
8153
+ 404: `Domain not found`,
8154
+ 409: `The platform domain cannot be deleted`
8155
+ }
8156
+ });
8157
+ }
8158
+ /**
8159
+ * @returns string Serverless API contract; paths are relative to /api/v1/serverless.
8160
+ * @throws ApiError
8161
+ */
8162
+ getServerlessOpenApi() {
8163
+ return this.httpRequest.request({
8164
+ method: "GET",
8165
+ url: "/openapi.yaml"
8166
+ });
8167
+ }
8168
+ /**
8169
+ * List undeleted functions in the caller's organization.
8170
+ * @returns AppSummary Success
8171
+ * @throws ApiError
8172
+ */
8173
+ listApps() {
8174
+ return this.httpRequest.request({
8175
+ method: "GET",
8176
+ url: "/apps",
8177
+ errors: {
8178
+ 400: `Invalid input`,
8179
+ 401: `Unauthorized`,
8180
+ 403: `Forbidden`,
8181
+ 404: `Not found`,
8182
+ 409: `Conflict`,
8183
+ 503: `Temporarily unavailable`
8184
+ }
8185
+ });
8186
+ }
8187
+ /**
8188
+ * @returns App Success
8189
+ * @throws ApiError
8190
+ */
8191
+ createApp({
8192
+ requestBody
8193
+ }) {
8194
+ return this.httpRequest.request({
8195
+ method: "POST",
8196
+ url: "/apps",
8197
+ body: requestBody,
8198
+ mediaType: "application/json",
8199
+ errors: {
8200
+ 400: `Invalid input`,
8201
+ 401: `Unauthorized`,
8202
+ 403: `Forbidden`,
8203
+ 404: `Not found`,
8204
+ 409: `Name conflict, or organization resource quota exceeded.`,
8205
+ 503: `Temporarily unavailable`
8206
+ }
8207
+ });
8208
+ }
8209
+ /**
8210
+ * @returns App Success
8211
+ * @throws ApiError
8212
+ */
8213
+ getApp({
8214
+ id
8215
+ }) {
8216
+ return this.httpRequest.request({
8217
+ method: "GET",
8218
+ url: "/apps/{id}",
8219
+ path: {
8220
+ "id": id
8221
+ },
8222
+ errors: {
8223
+ 400: `Invalid input`,
8224
+ 401: `Unauthorized`,
8225
+ 403: `Forbidden`,
8226
+ 404: `Not found`,
8227
+ 409: `Conflict`,
8228
+ 503: `Temporarily unavailable`
8229
+ }
8230
+ });
8231
+ }
8232
+ /**
8233
+ * @returns App Success
8234
+ * @throws ApiError
8235
+ */
8236
+ updateApp({
8237
+ id,
8238
+ requestBody
8239
+ }) {
8240
+ return this.httpRequest.request({
8241
+ method: "PATCH",
8242
+ url: "/apps/{id}",
8243
+ path: {
8244
+ "id": id
8245
+ },
8246
+ body: requestBody,
8247
+ mediaType: "application/json",
8248
+ errors: {
8249
+ 400: `Invalid input`,
8250
+ 401: `Unauthorized`,
8251
+ 403: `Forbidden`,
8252
+ 404: `Not found`,
8253
+ 409: `Conflict`,
8254
+ 503: `Temporarily unavailable`
8255
+ }
8256
+ });
8257
+ }
8258
+ /**
8259
+ * @returns any Success
8260
+ * @throws ApiError
8261
+ */
8262
+ deleteApp({
8263
+ id
8264
+ }) {
8265
+ return this.httpRequest.request({
8266
+ method: "DELETE",
8267
+ url: "/apps/{id}",
8268
+ path: {
8269
+ "id": id
8270
+ },
8271
+ errors: {
8272
+ 400: `Invalid input`,
8273
+ 401: `Unauthorized`,
8274
+ 403: `Forbidden`,
8275
+ 404: `Not found`,
8276
+ 409: `Conflict`,
8277
+ 503: `Temporarily unavailable`
8278
+ }
8279
+ });
8280
+ }
8281
+ /**
8282
+ * Keep an active function instance running while it processes background work
8283
+ * @returns void
8284
+ * @throws ApiError
8285
+ */
8286
+ reportAppInstanceActivity({
8287
+ id,
8288
+ instanceId
8289
+ }) {
8290
+ return this.httpRequest.request({
8291
+ method: "POST",
8292
+ url: "/apps/{id}/instances/{instanceId}/activity",
8293
+ path: {
8294
+ "id": id,
8295
+ "instanceId": instanceId
8296
+ },
8297
+ errors: {
8298
+ 403: `Requires the assigned function service user`,
8299
+ 404: `Function or active instance unavailable`
8300
+ }
8301
+ });
8302
+ }
8303
+ /**
8304
+ * List binding names as the assigned function service user
8305
+ * @returns string Names available to the function
8306
+ * @throws ApiError
8307
+ */
8308
+ listAppCredentialBindings({
8309
+ id
8310
+ }) {
8311
+ return this.httpRequest.request({
8312
+ method: "GET",
8313
+ url: "/apps/{id}/credential-bindings",
8314
+ path: {
8315
+ "id": id
8316
+ },
8317
+ errors: {
8318
+ 403: `Requires the assigned service user`
8319
+ }
8320
+ });
8321
+ }
8322
+ /**
8323
+ * Bind an organization credential to a function, including installed cloud applications
8324
+ * @returns void
8325
+ * @throws ApiError
8326
+ */
8327
+ bindAppCredential({
8328
+ id,
8329
+ key,
8330
+ requestBody
8331
+ }) {
8332
+ return this.httpRequest.request({
8333
+ method: "PUT",
8334
+ url: "/apps/{id}/credential-bindings/{key}",
8335
+ path: {
8336
+ "id": id,
8337
+ "key": key
8338
+ },
8339
+ body: requestBody,
8340
+ mediaType: "application/json",
8341
+ errors: {
8342
+ 403: `Requires function edit and credential use permission`,
8343
+ 404: `Unknown organization function or credential`
8344
+ }
8345
+ });
8346
+ }
8347
+ /**
8348
+ * Revoke a function's named credential binding
8349
+ * @returns void
8350
+ * @throws ApiError
8351
+ */
8352
+ unbindAppCredential({
6909
8353
  id,
6910
- requestBody
8354
+ key
6911
8355
  }) {
6912
8356
  return this.httpRequest.request({
6913
- method: "POST",
6914
- url: "/apps/{id}/domains",
8357
+ method: "DELETE",
8358
+ url: "/apps/{id}/credential-bindings/{key}",
8359
+ path: {
8360
+ "id": id,
8361
+ "key": key
8362
+ }
8363
+ });
8364
+ }
8365
+ /**
8366
+ * Resolve one explicitly bound organization credential as the function's service user
8367
+ * @returns any Current value of the credential bound to this name
8368
+ * @throws ApiError
8369
+ */
8370
+ resolveAppCredentialBinding({
8371
+ id,
8372
+ key
8373
+ }) {
8374
+ return this.httpRequest.request({
8375
+ method: "GET",
8376
+ url: "/apps/{id}/credential-bindings/{key}",
8377
+ path: {
8378
+ "id": id,
8379
+ "key": key
8380
+ },
8381
+ errors: {
8382
+ 403: `Requires this function's service user and permission to use the credential`,
8383
+ 404: `Function`
8384
+ }
8385
+ });
8386
+ }
8387
+ /**
8388
+ * Query cloud function stdout and stderr without waking the function
8389
+ * Queries retained container logs for current and stopped instances. Requires the same
8390
+ * active organization membership as getApp. Enterprise permissions belong to the API layer.
8391
+ * The interval is [from, to),
8392
+ * at most seven days, with to no later than the request time. Results are newest first.
8393
+ * Each response contains at most 100 entries and 1 MiB of JSON. Messages longer than
8394
+ * 32 KiB are previews with truncated=true and a short-lived downloadToken for the original.
8395
+ * Keep from, to and stream unchanged when following nextCursor. Cursors expire after
8396
+ * 15 minutes. An incomplete page contains no entries and a retry cursor at the same position.
8397
+ * Recent logs can arrive late: pagination is not a snapshot of SLS ingestion; refresh the
8398
+ * interval to include delayed logs. Retention is seven days, not archival storage.
8399
+ * Queries spanning more than 256 instances must use a narrower time range.
8400
+ *
8401
+ * @returns AppLogPage Bounded log page; inspect status before treating it as complete.
8402
+ * @throws ApiError
8403
+ */
8404
+ listAppLogs({
8405
+ id,
8406
+ from,
8407
+ to,
8408
+ limit = 100,
8409
+ stream,
8410
+ cursor
8411
+ }) {
8412
+ return this.httpRequest.request({
8413
+ method: "GET",
8414
+ url: "/apps/{id}/logs",
6915
8415
  path: {
6916
8416
  "id": id
6917
8417
  },
6918
- body: requestBody,
6919
- mediaType: "application/json",
8418
+ query: {
8419
+ "from": from,
8420
+ "to": to,
8421
+ "limit": limit,
8422
+ "stream": stream,
8423
+ "cursor": cursor
8424
+ },
6920
8425
  errors: {
6921
- 400: `Invalid subdomain`,
8426
+ 400: `Invalid time range, limit or cursor`,
8427
+ 401: `Unauthorized`,
8428
+ 403: `Forbidden`,
6922
8429
  404: `Function not found`,
6923
- 409: `Domain already bound or function domain limit reached`,
6924
- 503: `Custom domains unavailable`
8430
+ 409: `Instance mapping changed; restart the query`,
8431
+ 410: `Cursor expired; restart the query`,
8432
+ 422: `Too many instances; narrow the time range`,
8433
+ 502: `Log provider failed; this is not an empty result`,
8434
+ 503: `Log collection query is not configured`
6925
8435
  }
6926
8436
  });
6927
8437
  }
6928
8438
  /**
6929
- * @returns void
8439
+ * Download one original log message referenced by a truncated preview
8440
+ * @returns binary Original UTF-8 log message, served as an attachment.
6930
8441
  * @throws ApiError
6931
8442
  */
6932
- deleteAppDomain({
8443
+ downloadAppLogContent({
6933
8444
  id,
6934
- domainId
8445
+ token
6935
8446
  }) {
6936
8447
  return this.httpRequest.request({
6937
- method: "DELETE",
6938
- url: "/apps/{id}/domains/{domainId}",
8448
+ method: "GET",
8449
+ url: "/apps/{id}/logs/content",
8450
+ path: {
8451
+ "id": id
8452
+ },
8453
+ query: {
8454
+ "token": token
8455
+ },
8456
+ errors: {
8457
+ 400: `Invalid token`,
8458
+ 401: `Unauthorized`,
8459
+ 403: `Forbidden`,
8460
+ 404: `Function or retained log no longer exists`,
8461
+ 409: `Log position changed; restart the query`,
8462
+ 410: `Token expired; restart the query`,
8463
+ 422: `Too many instances; narrow the time range and query again`,
8464
+ 502: `Log provider failed`,
8465
+ 503: `Logs unavailable or provider query incomplete; retry later`
8466
+ }
8467
+ });
8468
+ }
8469
+ /**
8470
+ * @returns any Success
8471
+ * @throws ApiError
8472
+ */
8473
+ bindDatabase({
8474
+ id,
8475
+ databaseId
8476
+ }) {
8477
+ return this.httpRequest.request({
8478
+ method: "PUT",
8479
+ url: "/apps/{id}/databases/{databaseId}",
6939
8480
  path: {
6940
8481
  "id": id,
6941
- "domainId": domainId
8482
+ "databaseId": databaseId
6942
8483
  },
6943
8484
  errors: {
6944
- 404: `Domain not found`
8485
+ 400: `Invalid input`,
8486
+ 401: `Unauthorized`,
8487
+ 403: `Forbidden`,
8488
+ 404: `Not found`,
8489
+ 409: `Conflict`,
8490
+ 503: `Temporarily unavailable`
6945
8491
  }
6946
8492
  });
6947
8493
  }
6948
8494
  /**
6949
- * @returns string Serverless API contract; paths are relative to /api/v1/serverless.
8495
+ * @returns any Success
6950
8496
  * @throws ApiError
6951
8497
  */
6952
- getServerlessOpenApi() {
8498
+ unbindDatabase({
8499
+ id,
8500
+ databaseId
8501
+ }) {
6953
8502
  return this.httpRequest.request({
6954
- method: "GET",
6955
- url: "/openapi.yaml"
8503
+ method: "DELETE",
8504
+ url: "/apps/{id}/databases/{databaseId}",
8505
+ path: {
8506
+ "id": id,
8507
+ "databaseId": databaseId
8508
+ },
8509
+ errors: {
8510
+ 400: `Invalid input`,
8511
+ 401: `Unauthorized`,
8512
+ 403: `Forbidden`,
8513
+ 404: `Not found`,
8514
+ 409: `Conflict`,
8515
+ 503: `Temporarily unavailable`
8516
+ }
6956
8517
  });
6957
8518
  }
6958
8519
  /**
6959
- * Lists all undeleted functions in the caller's organization. Active organization members share management access; enterprise permissions belong to the API layer.
6960
- * @returns AppSummary Success
8520
+ * @returns Database Success
6961
8521
  * @throws ApiError
6962
8522
  */
6963
- listApps() {
8523
+ listDatabases() {
6964
8524
  return this.httpRequest.request({
6965
8525
  method: "GET",
6966
- url: "/apps",
8526
+ url: "/databases",
6967
8527
  errors: {
6968
8528
  400: `Invalid input`,
6969
8529
  401: `Unauthorized`,
@@ -6975,15 +8535,15 @@ var DefaultService3 = class {
6975
8535
  });
6976
8536
  }
6977
8537
  /**
6978
- * @returns App Success
8538
+ * @returns Database Success
6979
8539
  * @throws ApiError
6980
8540
  */
6981
- createApp({
8541
+ createDatabase({
6982
8542
  requestBody
6983
8543
  }) {
6984
8544
  return this.httpRequest.request({
6985
8545
  method: "POST",
6986
- url: "/apps",
8546
+ url: "/databases",
6987
8547
  body: requestBody,
6988
8548
  mediaType: "application/json",
6989
8549
  errors: {
@@ -6997,269 +8557,294 @@ var DefaultService3 = class {
6997
8557
  });
6998
8558
  }
6999
8559
  /**
7000
- * @returns App Success
8560
+ * @returns Database Database creation or restore progress; credentials are returned only when ready.
8561
+ * @throws ApiError
8562
+ */
8563
+ getDatabase({
8564
+ id
8565
+ }) {
8566
+ return this.httpRequest.request({
8567
+ method: "GET",
8568
+ url: "/databases/{id}",
8569
+ path: {
8570
+ "id": id
8571
+ },
8572
+ errors: {
8573
+ 404: `Not found in this organization`
8574
+ }
8575
+ });
8576
+ }
8577
+ /**
8578
+ * @returns any Success
8579
+ * @throws ApiError
8580
+ */
8581
+ deleteDatabase({
8582
+ id
8583
+ }) {
8584
+ return this.httpRequest.request({
8585
+ method: "DELETE",
8586
+ url: "/databases/{id}",
8587
+ path: {
8588
+ "id": id
8589
+ },
8590
+ errors: {
8591
+ 400: `Invalid input`,
8592
+ 401: `Unauthorized`,
8593
+ 403: `Forbidden`,
8594
+ 404: `Not found`,
8595
+ 409: `Conflict`,
8596
+ 503: `Temporarily unavailable`
8597
+ }
8598
+ });
8599
+ }
8600
+ /**
8601
+ * Create a writable branch of a ready buffered primary database. The branch has its own credentials, endpoint, quota and billing. It supports online backups. Offline backups, in-place rollback and creating user branches require a primary database.
8602
+ * @returns Database Durable creation accepted. Poll the database until ready before connecting.
8603
+ * @throws ApiError
8604
+ */
8605
+ createDatabaseBranch({
8606
+ id,
8607
+ requestBody
8608
+ }) {
8609
+ return this.httpRequest.request({
8610
+ method: "POST",
8611
+ url: "/databases/{id}/branches",
8612
+ path: {
8613
+ "id": id
8614
+ },
8615
+ body: requestBody,
8616
+ mediaType: "application/json",
8617
+ errors: {
8618
+ 404: `Primary database not found in this organization`,
8619
+ 409: `Primary unavailable`
8620
+ }
8621
+ });
8622
+ }
8623
+ /**
8624
+ * List non-deleted branches of this primary database, including creation and deletion progress. Branches are omitted from the ordinary database list.
8625
+ * @returns DatabaseBranchList Branches ordered by UUID
8626
+ * @throws ApiError
8627
+ */
8628
+ listDatabaseBranches({
8629
+ id,
8630
+ after
8631
+ }) {
8632
+ return this.httpRequest.request({
8633
+ method: "GET",
8634
+ url: "/databases/{id}/branches",
8635
+ path: {
8636
+ "id": id
8637
+ },
8638
+ query: {
8639
+ "after": after
8640
+ },
8641
+ errors: {
8642
+ 404: `Primary database not found in this organization`
8643
+ }
8644
+ });
8645
+ }
8646
+ /**
8647
+ * Restore a backup into fresh storage, delete all branches, atomically switch the primary database, and asynchronously reclaim its old namespace. Branch databases cannot be restored. Accepting this request immediately withdraws branch access; cancelling or failing the rollback does not revive branches.
8648
+ * @returns DatabaseRollback Durable rollback accepted; reconnect existing WebSockets after completion.
8649
+ * @throws ApiError
8650
+ */
8651
+ rollbackDatabase({
8652
+ id,
8653
+ requestBody
8654
+ }) {
8655
+ return this.httpRequest.request({
8656
+ method: "POST",
8657
+ url: "/databases/{id}/rollback",
8658
+ path: {
8659
+ "id": id
8660
+ },
8661
+ body: requestBody,
8662
+ mediaType: "application/json"
8663
+ });
8664
+ }
8665
+ /**
8666
+ * @returns DatabaseRollbackList Recover operation IDs after an uncertain create response; at most 100 per page.
8667
+ * @throws ApiError
8668
+ */
8669
+ listDatabaseRollbacks({
8670
+ id,
8671
+ after
8672
+ }) {
8673
+ return this.httpRequest.request({
8674
+ method: "GET",
8675
+ url: "/databases/{id}/rollbacks",
8676
+ path: {
8677
+ "id": id
8678
+ },
8679
+ query: {
8680
+ "after": after
8681
+ }
8682
+ });
8683
+ }
8684
+ /**
8685
+ * @returns DatabaseRollback Rollback and old storage cleanup progress
7001
8686
  * @throws ApiError
7002
8687
  */
7003
- getApp({
8688
+ getDatabaseRollback({
7004
8689
  id
7005
8690
  }) {
7006
8691
  return this.httpRequest.request({
7007
8692
  method: "GET",
7008
- url: "/apps/{id}",
8693
+ url: "/database-rollbacks/{id}",
7009
8694
  path: {
7010
8695
  "id": id
7011
- },
7012
- errors: {
7013
- 400: `Invalid input`,
7014
- 401: `Unauthorized`,
7015
- 403: `Forbidden`,
7016
- 404: `Not found`,
7017
- 409: `Conflict`,
7018
- 503: `Temporarily unavailable`
7019
8696
  }
7020
8697
  });
7021
8698
  }
7022
8699
  /**
7023
- * @returns App Success
8700
+ * @returns DatabaseRollback Retry the same operation and physical namespace
7024
8701
  * @throws ApiError
7025
8702
  */
7026
- updateApp({
7027
- id,
7028
- requestBody
8703
+ retryDatabaseRollback({
8704
+ id
7029
8705
  }) {
7030
8706
  return this.httpRequest.request({
7031
- method: "PATCH",
7032
- url: "/apps/{id}",
8707
+ method: "POST",
8708
+ url: "/database-rollbacks/{id}/retry",
7033
8709
  path: {
7034
8710
  "id": id
7035
- },
7036
- body: requestBody,
7037
- mediaType: "application/json",
7038
- errors: {
7039
- 400: `Invalid input`,
7040
- 401: `Unauthorized`,
7041
- 403: `Forbidden`,
7042
- 404: `Not found`,
7043
- 409: `Conflict`,
7044
- 503: `Temporarily unavailable`
7045
8711
  }
7046
8712
  });
7047
8713
  }
7048
8714
  /**
7049
- * @returns any Success
8715
+ * Cancel before the storage pointer switches. Old storage stays in maintenance until explicitly released.
8716
+ * @returns DatabaseRollback Cancelled; staged storage cleanup is durable
7050
8717
  * @throws ApiError
7051
8718
  */
7052
- deleteApp({
8719
+ cancelDatabaseRollback({
7053
8720
  id
7054
8721
  }) {
7055
8722
  return this.httpRequest.request({
7056
- method: "DELETE",
7057
- url: "/apps/{id}",
8723
+ method: "POST",
8724
+ url: "/database-rollbacks/{id}/cancel",
7058
8725
  path: {
7059
8726
  "id": id
7060
- },
7061
- errors: {
7062
- 400: `Invalid input`,
7063
- 401: `Unauthorized`,
7064
- 403: `Forbidden`,
7065
- 404: `Not found`,
7066
- 409: `Conflict`,
7067
- 503: `Temporarily unavailable`
7068
8727
  }
7069
8728
  });
7070
8729
  }
7071
8730
  /**
7072
- * Query cloud function stdout and stderr without waking the function
7073
- * Queries retained container logs for current and stopped instances. Requires the same
7074
- * active organization membership as getApp. Enterprise permissions belong to the API layer.
7075
- * The interval is [from, to),
7076
- * at most seven days, with to no later than the request time. Results are newest first.
7077
- * Each response contains at most 100 entries and 1 MiB of JSON. Messages longer than
7078
- * 32 KiB are previews with truncated=true and a short-lived downloadToken for the original.
7079
- * Keep from, to and stream unchanged when following nextCursor. Cursors expire after
7080
- * 15 minutes. An incomplete page contains no entries and a retry cursor at the same position.
7081
- * Recent logs can arrive late: pagination is not a snapshot of SLS ingestion; refresh the
7082
- * interval to include delayed logs. Retention is seven days, not archival storage.
7083
- * Queries spanning more than 256 instances must use a narrower time range.
7084
- *
7085
- * @returns AppLogPage Bounded log page; inspect status before treating it as complete.
8731
+ * Queue an offline backup of a primary database. The task enters maintenance, gracefully drains compute and leaves the source in maintenance after completion.
8732
+ * @returns DatabaseBackup Durable backup task accepted
7086
8733
  * @throws ApiError
7087
8734
  */
7088
- listAppLogs({
7089
- id,
7090
- from,
7091
- to,
7092
- limit = 100,
7093
- stream,
7094
- cursor
8735
+ createDatabaseBackup({
8736
+ id
7095
8737
  }) {
7096
8738
  return this.httpRequest.request({
7097
- method: "GET",
7098
- url: "/apps/{id}/logs",
8739
+ method: "POST",
8740
+ url: "/databases/{id}/backups",
7099
8741
  path: {
7100
8742
  "id": id
7101
8743
  },
7102
- query: {
7103
- "from": from,
7104
- "to": to,
7105
- "limit": limit,
7106
- "stream": stream,
7107
- "cursor": cursor
7108
- },
7109
8744
  errors: {
7110
- 400: `Invalid time range, limit or cursor`,
7111
- 401: `Unauthorized`,
7112
- 403: `Forbidden`,
7113
- 404: `Function not found`,
7114
- 409: `Instance mapping changed; restart the query`,
7115
- 410: `Cursor expired; restart the query`,
7116
- 422: `Too many instances; narrow the time range`,
7117
- 502: `Log provider failed; this is not an empty result`,
7118
- 503: `Log collection query is not configured`
8745
+ 404: `Not found in this organization`,
8746
+ 409: `Database is not ready or already has a pending backup`
7119
8747
  }
7120
8748
  });
7121
8749
  }
7122
8750
  /**
7123
- * Download one original log message referenced by a truncated preview
7124
- * @returns binary Original UTF-8 log message, served as an attachment.
8751
+ * Queue an online backup of a buffered primary or branch. The worker captures the committed state when it forks a private branch. The source continues serving reads and writes.
8752
+ * @returns DatabaseBackup Backup queued. The restore point is fixed when the worker captures the branch.
7125
8753
  * @throws ApiError
7126
8754
  */
7127
- downloadAppLogContent({
7128
- id,
7129
- token
8755
+ createOnlineDatabaseBackup({
8756
+ id
7130
8757
  }) {
7131
8758
  return this.httpRequest.request({
7132
- method: "GET",
7133
- url: "/apps/{id}/logs/content",
8759
+ method: "POST",
8760
+ url: "/databases/{id}/online-backups",
7134
8761
  path: {
7135
8762
  "id": id
7136
8763
  },
7137
- query: {
7138
- "token": token
7139
- },
7140
8764
  errors: {
7141
- 400: `Invalid token`,
7142
- 401: `Unauthorized`,
7143
- 403: `Forbidden`,
7144
- 404: `Function or retained log no longer exists`,
7145
- 409: `Log position changed; restart the query`,
7146
- 410: `Token expired; restart the query`,
7147
- 422: `Too many instances; narrow the time range and query again`,
7148
- 502: `Log provider failed`,
7149
- 503: `Logs unavailable or provider query incomplete; retry later`
8765
+ 404: `Not found in this organization`,
8766
+ 409: `Source unavailable or an unfinished backup or rollback exists`
7150
8767
  }
7151
8768
  });
7152
8769
  }
7153
8770
  /**
7154
- * @returns any Success
8771
+ * @returns DatabaseBackupList Organization backups ordered by UUID; backups survive source deletion.
7155
8772
  * @throws ApiError
7156
8773
  */
7157
- bindDatabase({
7158
- id,
7159
- databaseId
8774
+ listDatabaseBackups({
8775
+ after
7160
8776
  }) {
7161
8777
  return this.httpRequest.request({
7162
- method: "PUT",
7163
- url: "/apps/{id}/databases/{databaseId}",
7164
- path: {
7165
- "id": id,
7166
- "databaseId": databaseId
7167
- },
7168
- errors: {
7169
- 400: `Invalid input`,
7170
- 401: `Unauthorized`,
7171
- 403: `Forbidden`,
7172
- 404: `Not found`,
7173
- 409: `Conflict`,
7174
- 503: `Temporarily unavailable`
8778
+ method: "GET",
8779
+ url: "/database-backups",
8780
+ query: {
8781
+ "after": after
7175
8782
  }
7176
8783
  });
7177
8784
  }
7178
8785
  /**
7179
- * @returns any Success
8786
+ * @returns DatabaseBackup Backup state and verification metadata
7180
8787
  * @throws ApiError
7181
8788
  */
7182
- unbindDatabase({
7183
- id,
7184
- databaseId
8789
+ getDatabaseBackup({
8790
+ id
7185
8791
  }) {
7186
8792
  return this.httpRequest.request({
7187
- method: "DELETE",
7188
- url: "/apps/{id}/databases/{databaseId}",
8793
+ method: "GET",
8794
+ url: "/database-backups/{id}",
7189
8795
  path: {
7190
- "id": id,
7191
- "databaseId": databaseId
8796
+ "id": id
7192
8797
  },
7193
8798
  errors: {
7194
- 400: `Invalid input`,
7195
- 401: `Unauthorized`,
7196
- 403: `Forbidden`,
7197
- 404: `Not found`,
7198
- 409: `Conflict`,
7199
- 503: `Temporarily unavailable`
8799
+ 404: `Not found in this organization`
7200
8800
  }
7201
8801
  });
7202
8802
  }
7203
8803
  /**
7204
- * @returns Database Success
8804
+ * @returns DatabaseBackup Cancelled or already-complete backup. For an offline backup, release source maintenance separately after inspecting the result.
7205
8805
  * @throws ApiError
7206
8806
  */
7207
- listDatabases() {
8807
+ cancelDatabaseBackup({
8808
+ id
8809
+ }) {
7208
8810
  return this.httpRequest.request({
7209
- method: "GET",
7210
- url: "/databases",
7211
- errors: {
7212
- 400: `Invalid input`,
7213
- 401: `Unauthorized`,
7214
- 403: `Forbidden`,
7215
- 404: `Not found`,
7216
- 409: `Conflict`,
7217
- 503: `Temporarily unavailable`
8811
+ method: "POST",
8812
+ url: "/database-backups/{id}/cancel",
8813
+ path: {
8814
+ "id": id
7218
8815
  }
7219
8816
  });
7220
8817
  }
7221
8818
  /**
7222
- * @returns Database Success
8819
+ * @returns DatabaseMaintenance New compute and compaction admission blocked; existing work has not necessarily drained.
7223
8820
  * @throws ApiError
7224
8821
  */
7225
- createDatabase({
7226
- requestBody
8822
+ startDatabaseMaintenance({
8823
+ id
7227
8824
  }) {
7228
8825
  return this.httpRequest.request({
7229
- method: "POST",
7230
- url: "/databases",
7231
- body: requestBody,
7232
- mediaType: "application/json",
7233
- errors: {
7234
- 400: `Invalid input`,
7235
- 401: `Unauthorized`,
7236
- 403: `Forbidden`,
7237
- 404: `Not found`,
7238
- 409: `Name conflict, or organization resource quota exceeded.`,
7239
- 503: `Temporarily unavailable`
8826
+ method: "PUT",
8827
+ url: "/databases/{id}/maintenance",
8828
+ path: {
8829
+ "id": id
7240
8830
  }
7241
8831
  });
7242
8832
  }
7243
8833
  /**
7244
- * @returns any Success
8834
+ * @returns DatabaseMaintenance Database may start again
7245
8835
  * @throws ApiError
7246
8836
  */
7247
- deleteDatabase({
8837
+ finishDatabaseMaintenance({
7248
8838
  id
7249
8839
  }) {
7250
8840
  return this.httpRequest.request({
7251
8841
  method: "DELETE",
7252
- url: "/databases/{id}",
8842
+ url: "/databases/{id}/maintenance",
7253
8843
  path: {
7254
8844
  "id": id
7255
8845
  },
7256
8846
  errors: {
7257
- 400: `Invalid input`,
7258
- 401: `Unauthorized`,
7259
- 403: `Forbidden`,
7260
- 404: `Not found`,
7261
- 409: `Conflict`,
7262
- 503: `Temporarily unavailable`
8847
+ 409: `An unfinished offline backup or restore still owns maintenance`
7263
8848
  }
7264
8849
  });
7265
8850
  }
@@ -7384,7 +8969,9 @@ var DefaultService3 = class {
7384
8969
  });
7385
8970
  }
7386
8971
  /**
7387
- * @returns Deployment Success
8972
+ * Deploy a package to the target cloud function
8973
+ * Start an asynchronous rollout on the selected cloud function, including production updates. On success, the package becomes active for that function's URL.
8974
+ * @returns Deployment Function deployment accepted
7388
8975
  * @throws ApiError
7389
8976
  */
7390
8977
  createDeployment({
@@ -7463,28 +9050,6 @@ var DefaultService3 = class {
7463
9050
  }
7464
9051
  });
7465
9052
  }
7466
- /**
7467
- * @returns App Saved development snapshot changed
7468
- * @throws ApiError
7469
- */
7470
- setDevelopmentSnapshot({
7471
- id,
7472
- requestBody
7473
- }) {
7474
- return this.httpRequest.request({
7475
- method: "PUT",
7476
- url: "/apps/{id}/development-snapshot",
7477
- path: {
7478
- "id": id
7479
- },
7480
- body: requestBody,
7481
- mediaType: "application/json",
7482
- errors: {
7483
- 404: `App or ready organization snapshot not found`,
7484
- 409: `Another developer has changed the snapshot; reload before replacing it`
7485
- }
7486
- });
7487
- }
7488
9053
  };
7489
9054
 
7490
9055
  // src/generated/serverless/ServerlessClient.ts
@@ -7702,66 +9267,132 @@ var operations = {
7702
9267
  "authenticated": true,
7703
9268
  "redirect": false,
7704
9269
  "responses": {
7705
- "204": "void",
7706
- "401": "void"
9270
+ "204": "void",
9271
+ "401": "void"
9272
+ }
9273
+ },
9274
+ "GET /account/sso/grants": {
9275
+ "authenticated": true,
9276
+ "redirect": false,
9277
+ "responses": {
9278
+ "200": "json"
9279
+ }
9280
+ },
9281
+ "DELETE /account/sso/grants/{grantId}": {
9282
+ "authenticated": true,
9283
+ "redirect": false,
9284
+ "responses": {
9285
+ "204": "void"
9286
+ }
9287
+ },
9288
+ "POST /account/sso/requests/{requestId}/authorize": {
9289
+ "authenticated": true,
9290
+ "redirect": false,
9291
+ "responses": {
9292
+ "200": "json"
9293
+ }
9294
+ },
9295
+ "DELETE /agent-contact-list/{agentId}": {
9296
+ "authenticated": true,
9297
+ "redirect": false,
9298
+ "responses": {
9299
+ "204": "void",
9300
+ "400": "void",
9301
+ "403": "void",
9302
+ "404": "void"
9303
+ }
9304
+ },
9305
+ "GET /agent-contact-list/{agentId}": {
9306
+ "authenticated": true,
9307
+ "redirect": false,
9308
+ "responses": {
9309
+ "200": "json",
9310
+ "403": "void",
9311
+ "404": "void"
9312
+ }
9313
+ },
9314
+ "POST /agent-contact-list/{agentId}": {
9315
+ "authenticated": true,
9316
+ "redirect": false,
9317
+ "responses": {
9318
+ "201": "json",
9319
+ "400": "void",
9320
+ "403": "void",
9321
+ "404": "void",
9322
+ "409": "void"
7707
9323
  }
7708
9324
  },
7709
- "GET /account/sso/grants": {
9325
+ "PUT /agent-contact-list/{agentId}/settings": {
7710
9326
  "authenticated": true,
7711
9327
  "redirect": false,
7712
9328
  "responses": {
7713
- "200": "json"
9329
+ "200": "json",
9330
+ "403": "void",
9331
+ "404": "void"
7714
9332
  }
7715
9333
  },
7716
- "DELETE /account/sso/grants/{grantId}": {
9334
+ "GET /agent-directory": {
7717
9335
  "authenticated": true,
7718
9336
  "redirect": false,
7719
9337
  "responses": {
7720
- "204": "void"
9338
+ "200": "json",
9339
+ "400": "void",
9340
+ "403": "void",
9341
+ "404": "void"
7721
9342
  }
7722
9343
  },
7723
- "POST /account/sso/requests/{requestId}/authorize": {
9344
+ "GET /agent-directory/agents/{agentId}/path": {
7724
9345
  "authenticated": true,
7725
9346
  "redirect": false,
7726
9347
  "responses": {
7727
- "200": "json"
9348
+ "200": "json",
9349
+ "403": "void",
9350
+ "404": "void"
7728
9351
  }
7729
9352
  },
7730
- "DELETE /agent-contact-list/{agentId}": {
9353
+ "GET /agent-directory/groups/{groupId}/path": {
7731
9354
  "authenticated": true,
7732
9355
  "redirect": false,
7733
9356
  "responses": {
7734
- "204": "void",
7735
- "400": "void",
9357
+ "200": "json",
7736
9358
  "403": "void",
7737
9359
  "404": "void"
7738
9360
  }
7739
9361
  },
7740
- "GET /agent-contact-list/{agentId}": {
9362
+ "GET /agent-favorites": {
7741
9363
  "authenticated": true,
7742
9364
  "redirect": false,
7743
9365
  "responses": {
7744
9366
  "200": "json",
7745
- "403": "void",
7746
- "404": "void"
9367
+ "400": "void",
9368
+ "403": "void"
7747
9369
  }
7748
9370
  },
7749
- "POST /agent-contact-list/{agentId}": {
9371
+ "POST /agent-groups": {
7750
9372
  "authenticated": true,
7751
9373
  "redirect": false,
7752
9374
  "responses": {
7753
9375
  "201": "json",
7754
9376
  "400": "void",
7755
9377
  "403": "void",
7756
- "404": "void",
7757
- "409": "void"
9378
+ "404": "void"
7758
9379
  }
7759
9380
  },
7760
- "PUT /agent-contact-list/{agentId}/settings": {
9381
+ "DELETE /agent-groups/{groupId}": {
9382
+ "authenticated": true,
9383
+ "redirect": false,
9384
+ "responses": {
9385
+ "204": "void",
9386
+ "403": "void",
9387
+ "404": "void"
9388
+ }
9389
+ },
9390
+ "PUT /agent-groups/{groupId}": {
7761
9391
  "authenticated": true,
7762
9392
  "redirect": false,
7763
9393
  "responses": {
7764
9394
  "200": "json",
9395
+ "400": "void",
7765
9396
  "403": "void",
7766
9397
  "404": "void"
7767
9398
  }
@@ -8070,6 +9701,29 @@ var operations = {
8070
9701
  "409": "void"
8071
9702
  }
8072
9703
  },
9704
+ "POST /agent-sessions/{sessionId}/side-query": {
9705
+ "authenticated": true,
9706
+ "redirect": false,
9707
+ "responses": {
9708
+ "200": "json",
9709
+ "400": "void",
9710
+ "403": "void",
9711
+ "404": "void",
9712
+ "409": "void",
9713
+ "502": "void",
9714
+ "504": "void"
9715
+ }
9716
+ },
9717
+ "GET /agent-sessions/{sessionId}/subscriptions": {
9718
+ "authenticated": true,
9719
+ "redirect": false,
9720
+ "responses": {
9721
+ "200": "json",
9722
+ "400": "void",
9723
+ "403": "void",
9724
+ "404": "void"
9725
+ }
9726
+ },
8073
9727
  "PUT /agent-sessions/{sessionId}/title": {
8074
9728
  "authenticated": true,
8075
9729
  "redirect": false,
@@ -8180,6 +9834,31 @@ var operations = {
8180
9834
  "404": "void"
8181
9835
  }
8182
9836
  },
9837
+ "DELETE /agents/{agentId}/favorite": {
9838
+ "authenticated": true,
9839
+ "redirect": false,
9840
+ "responses": {
9841
+ "204": "void"
9842
+ }
9843
+ },
9844
+ "PUT /agents/{agentId}/favorite": {
9845
+ "authenticated": true,
9846
+ "redirect": false,
9847
+ "responses": {
9848
+ "204": "void",
9849
+ "403": "void",
9850
+ "404": "void"
9851
+ }
9852
+ },
9853
+ "PUT /agents/{agentId}/group": {
9854
+ "authenticated": true,
9855
+ "redirect": false,
9856
+ "responses": {
9857
+ "204": "void",
9858
+ "403": "void",
9859
+ "404": "void"
9860
+ }
9861
+ },
8183
9862
  "POST /agents/{agentId}/publish": {
8184
9863
  "authenticated": true,
8185
9864
  "redirect": false,
@@ -8432,6 +10111,27 @@ var operations = {
8432
10111
  "401": "void"
8433
10112
  }
8434
10113
  },
10114
+ "GET /billing/cloud-drive/capacities": {
10115
+ "authenticated": true,
10116
+ "redirect": false,
10117
+ "responses": {
10118
+ "200": "json"
10119
+ }
10120
+ },
10121
+ "GET /billing/cloud-drive/capacity-summary": {
10122
+ "authenticated": true,
10123
+ "redirect": false,
10124
+ "responses": {
10125
+ "200": "json"
10126
+ }
10127
+ },
10128
+ "GET /billing/cloud-drive/invoices/{invoiceDay}": {
10129
+ "authenticated": true,
10130
+ "redirect": false,
10131
+ "responses": {
10132
+ "200": "json"
10133
+ }
10134
+ },
8435
10135
  "GET /billing/credits": {
8436
10136
  "authenticated": true,
8437
10137
  "redirect": false,
@@ -8874,6 +10574,55 @@ var operations = {
8874
10574
  "413": "void"
8875
10575
  }
8876
10576
  },
10577
+ "GET /cloud-sandboxes": {
10578
+ "authenticated": true,
10579
+ "redirect": false,
10580
+ "responses": {
10581
+ "200": "json"
10582
+ }
10583
+ },
10584
+ "POST /cloud-sandboxes": {
10585
+ "authenticated": true,
10586
+ "redirect": false,
10587
+ "responses": {
10588
+ "202": "json"
10589
+ }
10590
+ },
10591
+ "DELETE /cloud-sandboxes/{sandboxId}": {
10592
+ "authenticated": true,
10593
+ "redirect": false,
10594
+ "responses": {
10595
+ "202": "void"
10596
+ }
10597
+ },
10598
+ "GET /cloud-sandboxes/{sandboxId}": {
10599
+ "authenticated": true,
10600
+ "redirect": false,
10601
+ "responses": {
10602
+ "200": "json"
10603
+ }
10604
+ },
10605
+ "PATCH /cloud-sandboxes/{sandboxId}": {
10606
+ "authenticated": true,
10607
+ "redirect": false,
10608
+ "responses": {
10609
+ "200": "json"
10610
+ }
10611
+ },
10612
+ "POST /cloud-sandboxes/{sandboxId}/pause": {
10613
+ "authenticated": true,
10614
+ "redirect": false,
10615
+ "responses": {
10616
+ "202": "void"
10617
+ }
10618
+ },
10619
+ "POST /cloud-sandboxes/{sandboxId}/resume": {
10620
+ "authenticated": true,
10621
+ "redirect": false,
10622
+ "responses": {
10623
+ "202": "void"
10624
+ }
10625
+ },
8877
10626
  "GET /consent-forms": {
8878
10627
  "authenticated": true,
8879
10628
  "redirect": false,
@@ -9412,6 +11161,55 @@ var operations = {
9412
11161
  "409": "json"
9413
11162
  }
9414
11163
  },
11164
+ "DELETE /org-users/{namespace}/{username}": {
11165
+ "authenticated": true,
11166
+ "redirect": false,
11167
+ "responses": {
11168
+ "204": "void",
11169
+ "403": "void",
11170
+ "404": "void",
11171
+ "409": "void"
11172
+ }
11173
+ },
11174
+ "PATCH /org-users/{namespace}/{username}": {
11175
+ "authenticated": true,
11176
+ "redirect": false,
11177
+ "responses": {
11178
+ "200": "json",
11179
+ "403": "void",
11180
+ "404": "void"
11181
+ }
11182
+ },
11183
+ "POST /org-users/{namespace}/{username}/deactivate": {
11184
+ "authenticated": true,
11185
+ "redirect": false,
11186
+ "responses": {
11187
+ "204": "void",
11188
+ "403": "void",
11189
+ "404": "void",
11190
+ "409": "void"
11191
+ }
11192
+ },
11193
+ "POST /org-users/{namespace}/{username}/reactivate": {
11194
+ "authenticated": true,
11195
+ "redirect": false,
11196
+ "responses": {
11197
+ "204": "void",
11198
+ "402": "void",
11199
+ "403": "void",
11200
+ "404": "void",
11201
+ "409": "json"
11202
+ }
11203
+ },
11204
+ "POST /org-users/{namespace}/{username}/reset-password": {
11205
+ "authenticated": true,
11206
+ "redirect": false,
11207
+ "responses": {
11208
+ "200": "json",
11209
+ "403": "void",
11210
+ "404": "void"
11211
+ }
11212
+ },
9415
11213
  "DELETE /org-users/{userId}": {
9416
11214
  "authenticated": true,
9417
11215
  "redirect": false,
@@ -9639,48 +11437,111 @@ var operations = {
9639
11437
  "409": "void"
9640
11438
  }
9641
11439
  },
9642
- "PUT /org/groups/{groupId}": {
11440
+ "PUT /org/groups/{groupId}": {
11441
+ "authenticated": true,
11442
+ "redirect": false,
11443
+ "responses": {
11444
+ "200": "json",
11445
+ "400": "void",
11446
+ "403": "void",
11447
+ "404": "void",
11448
+ "409": "void"
11449
+ }
11450
+ },
11451
+ "GET /org/groups/{groupId}/enterprise-permission-policies": {
11452
+ "authenticated": true,
11453
+ "redirect": false,
11454
+ "responses": {
11455
+ "200": "json",
11456
+ "400": "void",
11457
+ "403": "void",
11458
+ "404": "void"
11459
+ }
11460
+ },
11461
+ "PUT /org/groups/{groupId}/enterprise-permission-policies": {
11462
+ "authenticated": true,
11463
+ "redirect": false,
11464
+ "responses": {
11465
+ "200": "json",
11466
+ "400": "void",
11467
+ "403": "void",
11468
+ "404": "void"
11469
+ }
11470
+ },
11471
+ "GET /org/groups/{groupId}/enterprise-permissions": {
11472
+ "authenticated": true,
11473
+ "redirect": false,
11474
+ "responses": {
11475
+ "200": "json",
11476
+ "400": "void",
11477
+ "403": "void",
11478
+ "404": "void"
11479
+ }
11480
+ },
11481
+ "PUT /org/groups/{groupId}/enterprise-permissions": {
11482
+ "authenticated": true,
11483
+ "redirect": false,
11484
+ "responses": {
11485
+ "200": "json",
11486
+ "400": "void",
11487
+ "403": "void",
11488
+ "404": "void"
11489
+ }
11490
+ },
11491
+ "PUT /org/groups/{groupId}/members": {
11492
+ "authenticated": true,
11493
+ "redirect": false,
11494
+ "responses": {
11495
+ "200": "json",
11496
+ "400": "void",
11497
+ "403": "void",
11498
+ "404": "void",
11499
+ "409": "void"
11500
+ }
11501
+ },
11502
+ "GET /org/llm-settings": {
11503
+ "authenticated": true,
11504
+ "redirect": false,
11505
+ "responses": {
11506
+ "200": "json"
11507
+ }
11508
+ },
11509
+ "PUT /org/llm-settings": {
9643
11510
  "authenticated": true,
9644
11511
  "redirect": false,
9645
11512
  "responses": {
9646
11513
  "200": "json",
9647
11514
  "400": "void",
9648
11515
  "403": "void",
9649
- "404": "void",
9650
- "409": "void"
11516
+ "404": "void"
9651
11517
  }
9652
11518
  },
9653
- "GET /org/groups/{groupId}/enterprise-permission-policies": {
11519
+ "GET /org/permissions": {
9654
11520
  "authenticated": true,
9655
11521
  "redirect": false,
9656
11522
  "responses": {
9657
11523
  "200": "json",
9658
- "400": "void",
9659
- "403": "void",
9660
- "404": "void"
11524
+ "401": "void"
9661
11525
  }
9662
11526
  },
9663
- "PUT /org/groups/{groupId}/enterprise-permission-policies": {
11527
+ "GET /org/quotas": {
9664
11528
  "authenticated": true,
9665
11529
  "redirect": false,
9666
11530
  "responses": {
9667
11531
  "200": "json",
9668
- "400": "void",
9669
- "403": "void",
9670
- "404": "void"
11532
+ "401": "void"
9671
11533
  }
9672
11534
  },
9673
- "GET /org/groups/{groupId}/enterprise-permissions": {
11535
+ "GET /org/users/{namespace}/{username}/daily-budget": {
9674
11536
  "authenticated": true,
9675
11537
  "redirect": false,
9676
11538
  "responses": {
9677
11539
  "200": "json",
9678
- "400": "void",
9679
11540
  "403": "void",
9680
11541
  "404": "void"
9681
11542
  }
9682
11543
  },
9683
- "PUT /org/groups/{groupId}/enterprise-permissions": {
11544
+ "PUT /org/users/{namespace}/{username}/daily-budget": {
9684
11545
  "authenticated": true,
9685
11546
  "redirect": false,
9686
11547
  "responses": {
@@ -9690,7 +11551,7 @@ var operations = {
9690
11551
  "404": "void"
9691
11552
  }
9692
11553
  },
9693
- "PUT /org/groups/{groupId}/members": {
11554
+ "GET /org/users/{namespace}/{username}/enterprise-permission-policies": {
9694
11555
  "authenticated": true,
9695
11556
  "redirect": false,
9696
11557
  "responses": {
@@ -9701,37 +11562,34 @@ var operations = {
9701
11562
  "409": "void"
9702
11563
  }
9703
11564
  },
9704
- "GET /org/llm-settings": {
9705
- "authenticated": true,
9706
- "redirect": false,
9707
- "responses": {
9708
- "200": "json"
9709
- }
9710
- },
9711
- "PUT /org/llm-settings": {
11565
+ "PUT /org/users/{namespace}/{username}/enterprise-permission-policies": {
9712
11566
  "authenticated": true,
9713
11567
  "redirect": false,
9714
11568
  "responses": {
9715
11569
  "200": "json",
9716
11570
  "400": "void",
9717
11571
  "403": "void",
9718
- "404": "void"
11572
+ "404": "void",
11573
+ "409": "void"
9719
11574
  }
9720
11575
  },
9721
- "GET /org/permissions": {
11576
+ "GET /org/users/{namespace}/{username}/enterprise-permissions": {
9722
11577
  "authenticated": true,
9723
11578
  "redirect": false,
9724
11579
  "responses": {
9725
11580
  "200": "json",
9726
- "401": "void"
11581
+ "403": "void",
11582
+ "404": "void"
9727
11583
  }
9728
11584
  },
9729
- "GET /org/quotas": {
11585
+ "PUT /org/users/{namespace}/{username}/enterprise-permissions": {
9730
11586
  "authenticated": true,
9731
11587
  "redirect": false,
9732
11588
  "responses": {
9733
11589
  "200": "json",
9734
- "401": "void"
11590
+ "400": "void",
11591
+ "403": "void",
11592
+ "404": "void"
9735
11593
  }
9736
11594
  },
9737
11595
  "GET /org/users/{userId}/daily-budget": {
@@ -10016,6 +11874,42 @@ var operations = {
10016
11874
  "200": "json"
10017
11875
  }
10018
11876
  },
11877
+ "DELETE /service-users/{namespace}/{username}": {
11878
+ "authenticated": true,
11879
+ "redirect": false,
11880
+ "responses": {
11881
+ "204": "void",
11882
+ "403": "void",
11883
+ "404": "void"
11884
+ }
11885
+ },
11886
+ "GET /service-users/{namespace}/{username}": {
11887
+ "authenticated": true,
11888
+ "redirect": false,
11889
+ "responses": {
11890
+ "200": "json",
11891
+ "403": "void",
11892
+ "404": "void"
11893
+ }
11894
+ },
11895
+ "DELETE /service-users/{userId}": {
11896
+ "authenticated": true,
11897
+ "redirect": false,
11898
+ "responses": {
11899
+ "204": "void",
11900
+ "403": "void",
11901
+ "404": "void"
11902
+ }
11903
+ },
11904
+ "GET /service-users/{userId}": {
11905
+ "authenticated": true,
11906
+ "redirect": false,
11907
+ "responses": {
11908
+ "200": "json",
11909
+ "403": "void",
11910
+ "404": "void"
11911
+ }
11912
+ },
10019
11913
  "GET /session-shares/current": {
10020
11914
  "authenticated": false,
10021
11915
  "redirect": false,
@@ -10114,6 +12008,34 @@ var operations = {
10114
12008
  "200": "json"
10115
12009
  }
10116
12010
  },
12011
+ "POST /sso/cli/refresh": {
12012
+ "authenticated": false,
12013
+ "redirect": false,
12014
+ "responses": {
12015
+ "200": "json"
12016
+ }
12017
+ },
12018
+ "POST /sso/cli/requests": {
12019
+ "authenticated": false,
12020
+ "redirect": false,
12021
+ "responses": {
12022
+ "201": "json"
12023
+ }
12024
+ },
12025
+ "POST /sso/cli/revoke": {
12026
+ "authenticated": false,
12027
+ "redirect": false,
12028
+ "responses": {
12029
+ "204": "void"
12030
+ }
12031
+ },
12032
+ "POST /sso/cli/token": {
12033
+ "authenticated": false,
12034
+ "redirect": false,
12035
+ "responses": {
12036
+ "200": "json"
12037
+ }
12038
+ },
10117
12039
  "DELETE /sso/grants/{grantId}": {
10118
12040
  "authenticated": true,
10119
12041
  "redirect": false,
@@ -10185,21 +12107,176 @@ var operations = {
10185
12107
  "authenticated": true,
10186
12108
  "redirect": false,
10187
12109
  "responses": {
10188
- "201": "json",
10189
- "400": "void",
10190
- "404": "void"
12110
+ "201": "json",
12111
+ "400": "void",
12112
+ "404": "void"
12113
+ }
12114
+ },
12115
+ "GET /trade/orders/{orderId}": {
12116
+ "authenticated": true,
12117
+ "redirect": false,
12118
+ "responses": {
12119
+ "200": "json",
12120
+ "403": "void",
12121
+ "404": "void"
12122
+ }
12123
+ },
12124
+ "GET /trade/products": {
12125
+ "authenticated": true,
12126
+ "redirect": false,
12127
+ "responses": {
12128
+ "200": "json",
12129
+ "404": "void"
12130
+ }
12131
+ },
12132
+ "POST /trade/products": {
12133
+ "authenticated": true,
12134
+ "redirect": false,
12135
+ "responses": {
12136
+ "201": "json",
12137
+ "400": "void",
12138
+ "404": "void"
12139
+ }
12140
+ },
12141
+ "POST /tradeapi/orders": {
12142
+ "authenticated": false,
12143
+ "redirect": false,
12144
+ "responses": {
12145
+ "201": "json",
12146
+ "400": "void",
12147
+ "401": "void",
12148
+ "402": "void",
12149
+ "404": "void",
12150
+ "409": "void"
12151
+ }
12152
+ },
12153
+ "GET /user-credentials": {
12154
+ "authenticated": true,
12155
+ "redirect": false,
12156
+ "responses": {
12157
+ "200": "json"
12158
+ }
12159
+ },
12160
+ "POST /user-credentials": {
12161
+ "authenticated": true,
12162
+ "redirect": false,
12163
+ "responses": {
12164
+ "201": "json",
12165
+ "400": "void",
12166
+ "409": "void"
12167
+ }
12168
+ },
12169
+ "DELETE /user-credentials/{credId}": {
12170
+ "authenticated": true,
12171
+ "redirect": false,
12172
+ "responses": {
12173
+ "204": "void",
12174
+ "403": "void",
12175
+ "404": "void",
12176
+ "409": "void"
12177
+ }
12178
+ },
12179
+ "PUT /user-credentials/{credId}": {
12180
+ "authenticated": true,
12181
+ "redirect": false,
12182
+ "responses": {
12183
+ "200": "json",
12184
+ "400": "void",
12185
+ "403": "void",
12186
+ "404": "void",
12187
+ "409": "void"
12188
+ }
12189
+ },
12190
+ "POST /workload-credentials/refresh": {
12191
+ "authenticated": false,
12192
+ "redirect": false,
12193
+ "responses": {
12194
+ "200": "json",
12195
+ "401": "void"
12196
+ }
12197
+ }
12198
+ },
12199
+ "anclax": {
12200
+ "POST /auth/sign-in": {
12201
+ "authenticated": false,
12202
+ "redirect": false,
12203
+ "responses": {
12204
+ "200": "json",
12205
+ "401": "void",
12206
+ "404": "void"
12207
+ }
12208
+ },
12209
+ "POST /auth/sign-up": {
12210
+ "authenticated": false,
12211
+ "redirect": false,
12212
+ "responses": {
12213
+ "201": "json",
12214
+ "404": "void",
12215
+ "409": "void"
12216
+ }
12217
+ },
12218
+ "POST /auth/sign-out": {
12219
+ "authenticated": true,
12220
+ "redirect": false,
12221
+ "responses": {
12222
+ "200": "void"
12223
+ }
12224
+ },
12225
+ "POST /auth/refresh": {
12226
+ "authenticated": false,
12227
+ "redirect": false,
12228
+ "responses": {
12229
+ "200": "json",
12230
+ "401": "void"
12231
+ }
12232
+ },
12233
+ "GET /tasks": {
12234
+ "authenticated": true,
12235
+ "redirect": false,
12236
+ "responses": {
12237
+ "200": "json"
12238
+ }
12239
+ },
12240
+ "GET /events": {
12241
+ "authenticated": true,
12242
+ "redirect": false,
12243
+ "responses": {
12244
+ "200": "json"
12245
+ }
12246
+ },
12247
+ "GET /orgs": {
12248
+ "authenticated": true,
12249
+ "redirect": false,
12250
+ "responses": {
12251
+ "200": "json"
12252
+ }
12253
+ },
12254
+ "POST /tasks/{taskID}/try-execute": {
12255
+ "authenticated": true,
12256
+ "redirect": false,
12257
+ "responses": {
12258
+ "200": "void",
12259
+ "404": "void"
12260
+ }
12261
+ }
12262
+ },
12263
+ "serverless": {
12264
+ "GET /cloud-apps": {
12265
+ "authenticated": true,
12266
+ "redirect": false,
12267
+ "responses": {
12268
+ "200": "json",
12269
+ "409": "void"
10191
12270
  }
10192
12271
  },
10193
- "GET /trade/orders/{orderId}": {
12272
+ "GET /developed-cloud-apps": {
10194
12273
  "authenticated": true,
10195
12274
  "redirect": false,
10196
12275
  "responses": {
10197
- "200": "json",
10198
- "403": "void",
10199
- "404": "void"
12276
+ "200": "json"
10200
12277
  }
10201
12278
  },
10202
- "GET /trade/products": {
12279
+ "GET /apps/{id}/cloud-app/profile": {
10203
12280
  "authenticated": true,
10204
12281
  "redirect": false,
10205
12282
  "responses": {
@@ -10207,138 +12284,125 @@ var operations = {
10207
12284
  "404": "void"
10208
12285
  }
10209
12286
  },
10210
- "POST /trade/products": {
12287
+ "PUT /apps/{id}/cloud-app/profile": {
10211
12288
  "authenticated": true,
10212
12289
  "redirect": false,
10213
12290
  "responses": {
10214
- "201": "json",
12291
+ "200": "json",
10215
12292
  "400": "void",
10216
- "404": "void"
12293
+ "404": "void",
12294
+ "413": "void"
10217
12295
  }
10218
12296
  },
10219
- "POST /tradeapi/orders": {
10220
- "authenticated": false,
12297
+ "POST /apps/{id}/cloud-app/releases": {
12298
+ "authenticated": true,
10221
12299
  "redirect": false,
10222
12300
  "responses": {
10223
12301
  "201": "json",
10224
- "400": "void",
10225
- "401": "void",
10226
- "402": "void",
10227
- "404": "void",
10228
12302
  "409": "void"
10229
12303
  }
10230
12304
  },
10231
- "GET /user-credentials": {
12305
+ "GET /cloud-apps/{id}": {
10232
12306
  "authenticated": true,
10233
12307
  "redirect": false,
10234
12308
  "responses": {
10235
- "200": "json"
12309
+ "200": "json",
12310
+ "409": "void"
10236
12311
  }
10237
12312
  },
10238
- "POST /user-credentials": {
12313
+ "DELETE /cloud-apps/{id}": {
10239
12314
  "authenticated": true,
10240
12315
  "redirect": false,
10241
12316
  "responses": {
10242
- "201": "json",
10243
- "400": "void",
12317
+ "200": "json",
10244
12318
  "409": "void"
10245
12319
  }
10246
12320
  },
10247
- "DELETE /user-credentials/{credId}": {
12321
+ "POST /cloud-apps/{id}/installations": {
10248
12322
  "authenticated": true,
10249
12323
  "redirect": false,
10250
12324
  "responses": {
10251
- "204": "void",
10252
- "403": "void",
10253
- "404": "void",
12325
+ "202": "json",
10254
12326
  "409": "void"
10255
12327
  }
10256
12328
  },
10257
- "PUT /user-credentials/{credId}": {
12329
+ "GET /cloud-app-installations": {
10258
12330
  "authenticated": true,
10259
12331
  "redirect": false,
10260
12332
  "responses": {
10261
12333
  "200": "json",
10262
- "400": "void",
10263
- "403": "void",
10264
- "404": "void",
10265
12334
  "409": "void"
10266
12335
  }
10267
12336
  },
10268
- "POST /workload-credentials/refresh": {
10269
- "authenticated": false,
10270
- "redirect": false,
10271
- "responses": {
10272
- "200": "json",
10273
- "401": "void"
10274
- }
10275
- }
10276
- },
10277
- "anclax": {
10278
- "POST /auth/sign-in": {
10279
- "authenticated": false,
12337
+ "POST /cloud-app-installations/{id}/open": {
12338
+ "authenticated": true,
10280
12339
  "redirect": false,
10281
12340
  "responses": {
10282
- "200": "json",
10283
- "401": "void",
10284
- "404": "void"
12341
+ "202": "json",
12342
+ "409": "void"
10285
12343
  }
10286
12344
  },
10287
- "POST /auth/sign-up": {
10288
- "authenticated": false,
12345
+ "GET /cloud-app-installations/{id}": {
12346
+ "authenticated": true,
10289
12347
  "redirect": false,
10290
12348
  "responses": {
10291
- "201": "json",
10292
- "404": "void",
12349
+ "200": "json",
10293
12350
  "409": "void"
10294
12351
  }
10295
12352
  },
10296
- "POST /auth/sign-out": {
12353
+ "DELETE /cloud-app-installations/{id}": {
10297
12354
  "authenticated": true,
10298
12355
  "redirect": false,
10299
12356
  "responses": {
10300
- "200": "void"
12357
+ "202": "json",
12358
+ "409": "void"
10301
12359
  }
10302
12360
  },
10303
- "POST /auth/refresh": {
10304
- "authenticated": false,
12361
+ "POST /cloud-app-installations/{id}/retry": {
12362
+ "authenticated": true,
10305
12363
  "redirect": false,
10306
12364
  "responses": {
10307
- "200": "json",
10308
- "401": "void"
12365
+ "202": "json",
12366
+ "409": "void"
10309
12367
  }
10310
12368
  },
10311
- "GET /tasks": {
12369
+ "GET /root-domains": {
10312
12370
  "authenticated": true,
10313
12371
  "redirect": false,
10314
12372
  "responses": {
10315
12373
  "200": "json"
10316
12374
  }
10317
12375
  },
10318
- "GET /events": {
12376
+ "POST /root-domains": {
10319
12377
  "authenticated": true,
10320
12378
  "redirect": false,
10321
12379
  "responses": {
10322
- "200": "json"
12380
+ "201": "json",
12381
+ "400": "void",
12382
+ "403": "void",
12383
+ "409": "void",
12384
+ "503": "void"
10323
12385
  }
10324
12386
  },
10325
- "GET /orgs": {
12387
+ "PUT /root-domains/{rootDomainId}": {
10326
12388
  "authenticated": true,
10327
12389
  "redirect": false,
10328
12390
  "responses": {
10329
- "200": "json"
12391
+ "200": "json",
12392
+ "403": "void",
12393
+ "404": "void",
12394
+ "409": "void"
10330
12395
  }
10331
12396
  },
10332
- "POST /tasks/{taskID}/try-execute": {
12397
+ "DELETE /root-domains/{rootDomainId}": {
10333
12398
  "authenticated": true,
10334
12399
  "redirect": false,
10335
12400
  "responses": {
10336
- "200": "void",
12401
+ "202": "void",
12402
+ "403": "void",
10337
12403
  "404": "void"
10338
12404
  }
10339
- }
10340
- },
10341
- "serverless": {
12405
+ },
10342
12406
  "GET /apps/{id}/domains": {
10343
12407
  "authenticated": true,
10344
12408
  "redirect": false,
@@ -10358,12 +12422,23 @@ var operations = {
10358
12422
  "503": "void"
10359
12423
  }
10360
12424
  },
12425
+ "PUT /apps/{id}/domains/{domainId}": {
12426
+ "authenticated": true,
12427
+ "redirect": false,
12428
+ "responses": {
12429
+ "200": "json",
12430
+ "400": "void",
12431
+ "404": "void",
12432
+ "409": "void"
12433
+ }
12434
+ },
10361
12435
  "DELETE /apps/{id}/domains/{domainId}": {
10362
12436
  "authenticated": true,
10363
12437
  "redirect": false,
10364
12438
  "responses": {
10365
12439
  "204": "void",
10366
- "404": "void"
12440
+ "404": "void",
12441
+ "409": "void"
10367
12442
  }
10368
12443
  },
10369
12444
  "GET /openapi.yaml": {
@@ -10438,6 +12513,48 @@ var operations = {
10438
12513
  "503": "void"
10439
12514
  }
10440
12515
  },
12516
+ "POST /apps/{id}/instances/{instanceId}/activity": {
12517
+ "authenticated": true,
12518
+ "redirect": false,
12519
+ "responses": {
12520
+ "204": "void",
12521
+ "403": "void",
12522
+ "404": "void"
12523
+ }
12524
+ },
12525
+ "GET /apps/{id}/credential-bindings": {
12526
+ "authenticated": true,
12527
+ "redirect": false,
12528
+ "responses": {
12529
+ "200": "json",
12530
+ "403": "void"
12531
+ }
12532
+ },
12533
+ "PUT /apps/{id}/credential-bindings/{key}": {
12534
+ "authenticated": true,
12535
+ "redirect": false,
12536
+ "responses": {
12537
+ "204": "void",
12538
+ "403": "void",
12539
+ "404": "void"
12540
+ }
12541
+ },
12542
+ "DELETE /apps/{id}/credential-bindings/{key}": {
12543
+ "authenticated": true,
12544
+ "redirect": false,
12545
+ "responses": {
12546
+ "204": "void"
12547
+ }
12548
+ },
12549
+ "GET /apps/{id}/credential-bindings/{key}": {
12550
+ "authenticated": true,
12551
+ "redirect": false,
12552
+ "responses": {
12553
+ "200": "json",
12554
+ "403": "void",
12555
+ "404": "void"
12556
+ }
12557
+ },
10441
12558
  "GET /apps/{id}/logs": {
10442
12559
  "authenticated": true,
10443
12560
  "redirect": false,
@@ -10514,6 +12631,7 @@ var operations = {
10514
12631
  "redirect": false,
10515
12632
  "responses": {
10516
12633
  "200": "json",
12634
+ "202": "json",
10517
12635
  "400": "void",
10518
12636
  "401": "void",
10519
12637
  "403": "void",
@@ -10522,6 +12640,14 @@ var operations = {
10522
12640
  "503": "void"
10523
12641
  }
10524
12642
  },
12643
+ "GET /databases/{id}": {
12644
+ "authenticated": true,
12645
+ "redirect": false,
12646
+ "responses": {
12647
+ "200": "json",
12648
+ "404": "void"
12649
+ }
12650
+ },
10525
12651
  "DELETE /databases/{id}": {
10526
12652
  "authenticated": true,
10527
12653
  "redirect": false,
@@ -10535,6 +12661,113 @@ var operations = {
10535
12661
  "503": "void"
10536
12662
  }
10537
12663
  },
12664
+ "POST /databases/{id}/branches": {
12665
+ "authenticated": true,
12666
+ "redirect": false,
12667
+ "responses": {
12668
+ "202": "json",
12669
+ "404": "void",
12670
+ "409": "void"
12671
+ }
12672
+ },
12673
+ "GET /databases/{id}/branches": {
12674
+ "authenticated": true,
12675
+ "redirect": false,
12676
+ "responses": {
12677
+ "200": "json",
12678
+ "404": "void"
12679
+ }
12680
+ },
12681
+ "POST /databases/{id}/rollback": {
12682
+ "authenticated": true,
12683
+ "redirect": false,
12684
+ "responses": {
12685
+ "202": "json"
12686
+ }
12687
+ },
12688
+ "GET /databases/{id}/rollbacks": {
12689
+ "authenticated": true,
12690
+ "redirect": false,
12691
+ "responses": {
12692
+ "200": "json"
12693
+ }
12694
+ },
12695
+ "GET /database-rollbacks/{id}": {
12696
+ "authenticated": true,
12697
+ "redirect": false,
12698
+ "responses": {
12699
+ "200": "json"
12700
+ }
12701
+ },
12702
+ "POST /database-rollbacks/{id}/retry": {
12703
+ "authenticated": true,
12704
+ "redirect": false,
12705
+ "responses": {
12706
+ "202": "json"
12707
+ }
12708
+ },
12709
+ "POST /database-rollbacks/{id}/cancel": {
12710
+ "authenticated": true,
12711
+ "redirect": false,
12712
+ "responses": {
12713
+ "200": "json"
12714
+ }
12715
+ },
12716
+ "POST /databases/{id}/backups": {
12717
+ "authenticated": true,
12718
+ "redirect": false,
12719
+ "responses": {
12720
+ "202": "json",
12721
+ "404": "void",
12722
+ "409": "void"
12723
+ }
12724
+ },
12725
+ "POST /databases/{id}/online-backups": {
12726
+ "authenticated": true,
12727
+ "redirect": false,
12728
+ "responses": {
12729
+ "202": "json",
12730
+ "404": "void",
12731
+ "409": "void"
12732
+ }
12733
+ },
12734
+ "GET /database-backups": {
12735
+ "authenticated": true,
12736
+ "redirect": false,
12737
+ "responses": {
12738
+ "200": "json"
12739
+ }
12740
+ },
12741
+ "GET /database-backups/{id}": {
12742
+ "authenticated": true,
12743
+ "redirect": false,
12744
+ "responses": {
12745
+ "200": "json",
12746
+ "404": "void"
12747
+ }
12748
+ },
12749
+ "POST /database-backups/{id}/cancel": {
12750
+ "authenticated": true,
12751
+ "redirect": false,
12752
+ "responses": {
12753
+ "200": "json"
12754
+ }
12755
+ },
12756
+ "PUT /databases/{id}/maintenance": {
12757
+ "authenticated": true,
12758
+ "redirect": false,
12759
+ "responses": {
12760
+ "200": "json"
12761
+ }
12762
+ },
12763
+ "DELETE /databases/{id}/maintenance": {
12764
+ "authenticated": true,
12765
+ "redirect": false,
12766
+ "responses": {
12767
+ "200": "json",
12768
+ "409": "void"
12769
+ }
12770
+ },
10538
12771
  "GET /usage": {
10539
12772
  "authenticated": true,
10540
12773
  "redirect": false,
@@ -10646,15 +12879,6 @@ var operations = {
10646
12879
  "413": "void",
10647
12880
  "503": "void"
10648
12881
  }
10649
- },
10650
- "PUT /apps/{id}/development-snapshot": {
10651
- "authenticated": true,
10652
- "redirect": false,
10653
- "responses": {
10654
- "200": "json",
10655
- "404": "void",
10656
- "409": "void"
10657
- }
10658
12882
  }
10659
12883
  }
10660
12884
  };
@@ -11114,6 +13338,7 @@ var ClientMCPBridge = class {
11114
13338
  const data = event.event;
11115
13339
  if (typeof data.toolCallId !== "string") return;
11116
13340
  const key = `${this.sessionId}:${event.runId}:${data.toolCallId}`;
13341
+ if (this.options.registeredToolsOnly && !this.pending.has(key) && !this.callbackFor(data.toolName)) return;
11117
13342
  if (["tool_result", "tool_execution_end"].includes(event.eventType)) {
11118
13343
  if (this.pending.has(key) || String(data.toolName).startsWith("clientmcp_")) this.complete(key);
11119
13344
  return;
@@ -11152,10 +13377,14 @@ var ClientMCPBridge = class {
11152
13377
  });
11153
13378
  }
11154
13379
  }
13380
+ callbackFor(name) {
13381
+ const canonical = this.options.toolAliases?.get(name);
13382
+ return this.callbacks.get(name) ?? (canonical ? this.callbacks.get(canonical) : void 0);
13383
+ }
11155
13384
  async execute(call) {
11156
13385
  const { context } = call;
11157
13386
  let result;
11158
- const callback = this.callbacks.get(context.toolName);
13387
+ const callback = this.callbackFor(context.toolName);
11159
13388
  try {
11160
13389
  result = callback ? await callback.execute(call.args, context) : errorResult(`CLIENT_MCP_CALLBACK_NOT_REGISTERED: ${context.toolName}`);
11161
13390
  if (!result || !Array.isArray(result.content)) throw new Error("Callback must return an MCP result with a content array");