@brazosd/node 0.1.3 → 0.1.7

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 +1261 -51
  3. package/browser.js +2671 -406
  4. package/index.d.ts +1261 -51
  5. package/index.js +2671 -406
  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
  */
@@ -3347,7 +3666,8 @@ var DefaultService = class {
3347
3666
  400: `Invalid request`,
3348
3667
  403: `Forbidden`,
3349
3668
  404: `Entry not found`,
3350
- 409: `Destination already exists or invalid descendant target`
3669
+ 409: `Destination conflict, invalid reference or descendant target, or estimated growth exceeds the organization node quota`,
3670
+ 503: `The node usage snapshot is delayed. Retry the bulk copy after the indicated Retry-After interval.`
3351
3671
  }
3352
3672
  });
3353
3673
  }
@@ -3597,45 +3917,154 @@ var DefaultService = class {
3597
3917
  });
3598
3918
  }
3599
3919
  /**
3600
- * List consent forms
3601
- * List consent forms received by the authenticated user in reverse chronological order
3602
- * @returns ConsentForm Consent forms listed
3920
+ * List cloud sandboxes
3921
+ * @returns CloudSandbox Organization cloud sandboxes visible to the caller
3603
3922
  * @throws ApiError
3604
3923
  */
3605
- listConsentForms({
3606
- pendingOnly,
3607
- offset,
3608
- limit
3609
- }) {
3924
+ listCloudSandboxes() {
3610
3925
  return this.httpRequest.request({
3611
3926
  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
- }
3927
+ url: "/cloud-sandboxes"
3621
3928
  });
3622
3929
  }
3623
3930
  /**
3624
- * Get consent form detail
3625
- * Get a consent form detail for the authenticated user
3626
- * @returns ConsentFormDetail Consent form detail returned
3931
+ * Create and start a persistent cloud sandbox
3932
+ * @returns CloudSandbox Creation accepted
3627
3933
  * @throws ApiError
3628
3934
  */
3629
- getConsentForm({
3630
- consentFormId
3935
+ createCloudSandbox({
3936
+ requestBody
3631
3937
  }) {
3632
3938
  return this.httpRequest.request({
3633
- method: "GET",
3634
- url: "/consent-forms/{consentFormId}",
3635
- path: {
3636
- "consentFormId": consentFormId
3637
- },
3638
- errors: {
3939
+ method: "POST",
3940
+ url: "/cloud-sandboxes",
3941
+ body: requestBody,
3942
+ mediaType: "application/json"
3943
+ });
3944
+ }
3945
+ /**
3946
+ * Retire a cloud sandbox and release its resources
3947
+ * @returns any Deletion accepted
3948
+ * @throws ApiError
3949
+ */
3950
+ deleteCloudSandbox({
3951
+ sandboxId
3952
+ }) {
3953
+ return this.httpRequest.request({
3954
+ method: "DELETE",
3955
+ url: "/cloud-sandboxes/{sandboxId}",
3956
+ path: {
3957
+ "sandboxId": sandboxId
3958
+ }
3959
+ });
3960
+ }
3961
+ /**
3962
+ * Get a cloud sandbox
3963
+ * @returns CloudSandbox Cloud sandbox
3964
+ * @throws ApiError
3965
+ */
3966
+ getCloudSandbox({
3967
+ sandboxId
3968
+ }) {
3969
+ return this.httpRequest.request({
3970
+ method: "GET",
3971
+ url: "/cloud-sandboxes/{sandboxId}",
3972
+ path: {
3973
+ "sandboxId": sandboxId
3974
+ }
3975
+ });
3976
+ }
3977
+ /**
3978
+ * Edit the display name
3979
+ * @returns CloudSandbox Updated cloud sandbox
3980
+ * @throws ApiError
3981
+ */
3982
+ renameCloudSandbox({
3983
+ sandboxId,
3984
+ requestBody
3985
+ }) {
3986
+ return this.httpRequest.request({
3987
+ method: "PATCH",
3988
+ url: "/cloud-sandboxes/{sandboxId}",
3989
+ path: {
3990
+ "sandboxId": sandboxId
3991
+ },
3992
+ body: requestBody,
3993
+ mediaType: "application/json"
3994
+ });
3995
+ }
3996
+ /**
3997
+ * Checkpoint a cloud sandbox into deep sleep
3998
+ * @returns any Pause accepted
3999
+ * @throws ApiError
4000
+ */
4001
+ pauseCloudSandbox({
4002
+ sandboxId
4003
+ }) {
4004
+ return this.httpRequest.request({
4005
+ method: "POST",
4006
+ url: "/cloud-sandboxes/{sandboxId}/pause",
4007
+ path: {
4008
+ "sandboxId": sandboxId
4009
+ }
4010
+ });
4011
+ }
4012
+ /**
4013
+ * Explicitly restore a cloud sandbox from deep sleep
4014
+ * @returns any Resume accepted
4015
+ * @throws ApiError
4016
+ */
4017
+ resumeCloudSandbox({
4018
+ sandboxId
4019
+ }) {
4020
+ return this.httpRequest.request({
4021
+ method: "POST",
4022
+ url: "/cloud-sandboxes/{sandboxId}/resume",
4023
+ path: {
4024
+ "sandboxId": sandboxId
4025
+ }
4026
+ });
4027
+ }
4028
+ /**
4029
+ * List consent forms
4030
+ * List consent forms received by the authenticated user in reverse chronological order
4031
+ * @returns ConsentForm Consent forms listed
4032
+ * @throws ApiError
4033
+ */
4034
+ listConsentForms({
4035
+ pendingOnly,
4036
+ offset,
4037
+ limit
4038
+ }) {
4039
+ return this.httpRequest.request({
4040
+ method: "GET",
4041
+ url: "/consent-forms",
4042
+ query: {
4043
+ "pendingOnly": pendingOnly,
4044
+ "offset": offset,
4045
+ "limit": limit
4046
+ },
4047
+ errors: {
4048
+ 400: `Invalid request`
4049
+ }
4050
+ });
4051
+ }
4052
+ /**
4053
+ * Get consent form detail
4054
+ * Get a consent form detail for the authenticated user
4055
+ * @returns ConsentFormDetail Consent form detail returned
4056
+ * @throws ApiError
4057
+ */
4058
+ getConsentForm({
4059
+ consentFormId
4060
+ }) {
4061
+ return this.httpRequest.request({
4062
+ method: "GET",
4063
+ url: "/consent-forms/{consentFormId}",
4064
+ path: {
4065
+ "consentFormId": consentFormId
4066
+ },
4067
+ errors: {
3639
4068
  404: `Consent form not found`
3640
4069
  }
3641
4070
  });
@@ -4805,9 +5234,131 @@ var DefaultService = class {
4805
5234
  }
4806
5235
  });
4807
5236
  }
5237
+ /**
5238
+ * Deactivate org user by qualified name
5239
+ * Deactivate a human organization member. To deactivate a service user, use DELETE /service-users/{namespace}/{username}.
5240
+ * @returns void
5241
+ * @throws ApiError
5242
+ */
5243
+ deleteOrgUserByName({
5244
+ namespace,
5245
+ username
5246
+ }) {
5247
+ return this.httpRequest.request({
5248
+ method: "DELETE",
5249
+ url: "/org-users/{namespace}/{username}",
5250
+ path: {
5251
+ "namespace": namespace,
5252
+ "username": username
5253
+ },
5254
+ errors: {
5255
+ 403: `An authorized enterprise member or an ordinary-organization owner can delete users`,
5256
+ 404: `Org user not found`,
5257
+ 409: `The organization owner cannot be deactivated`
5258
+ }
5259
+ });
5260
+ }
5261
+ /**
5262
+ * Update an organization member's display name by qualified name
5263
+ * Update the display name of an active human member or an organization-managed account in the current organization.
5264
+ * @returns OrgUser Organization member updated
5265
+ * @throws ApiError
5266
+ */
5267
+ updateManagedOrgUserByName({
5268
+ namespace,
5269
+ username,
5270
+ requestBody
5271
+ }) {
5272
+ return this.httpRequest.request({
5273
+ method: "PATCH",
5274
+ url: "/org-users/{namespace}/{username}",
5275
+ path: {
5276
+ "namespace": namespace,
5277
+ "username": username
5278
+ },
5279
+ body: requestBody,
5280
+ mediaType: "application/json",
5281
+ errors: {
5282
+ 403: `Operation RN permission required for enterprise organizations; owner required for ordinary organizations`,
5283
+ 404: `Member not found or ineligible for editing in this organization`
5284
+ }
5285
+ });
5286
+ }
5287
+ /**
5288
+ * Deactivate a managed account by qualified name
5289
+ * 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.
5290
+ * @returns void
5291
+ * @throws ApiError
5292
+ */
5293
+ deactivateManagedOrgUserByName({
5294
+ namespace,
5295
+ username
5296
+ }) {
5297
+ return this.httpRequest.request({
5298
+ method: "POST",
5299
+ url: "/org-users/{namespace}/{username}/deactivate",
5300
+ path: {
5301
+ "namespace": namespace,
5302
+ "username": username
5303
+ },
5304
+ errors: {
5305
+ 403: `Operation RN permission required for enterprise organizations; owner required for ordinary organizations`,
5306
+ 404: `Managed member not found`,
5307
+ 409: `Organization owner cannot be deactivated`
5308
+ }
5309
+ });
5310
+ }
5311
+ /**
5312
+ * Reactivate a managed account by qualified name
5313
+ * 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.
5314
+ * @returns void
5315
+ * @throws ApiError
5316
+ */
5317
+ reactivateManagedOrgUserByName({
5318
+ namespace,
5319
+ username
5320
+ }) {
5321
+ return this.httpRequest.request({
5322
+ method: "POST",
5323
+ url: "/org-users/{namespace}/{username}/reactivate",
5324
+ path: {
5325
+ "namespace": namespace,
5326
+ "username": username
5327
+ },
5328
+ errors: {
5329
+ 402: `Insufficient credits for an additional seat`,
5330
+ 403: `Operation RN permission required for enterprise organizations; owner required for ordinary organizations`,
5331
+ 404: `Managed member not found`,
5332
+ 409: `Cooldown has not elapsed or a member quota is exceeded`
5333
+ }
5334
+ });
5335
+ }
5336
+ /**
5337
+ * Reset a managed account's password by qualified name
5338
+ * Requires the operation RN in enterprise organizations; ordinary organizations require the owner. Generates a temporary password and revokes existing credentials without changing activation status.
5339
+ * @returns ManagedPasswordReset Temporary password generated
5340
+ * @throws ApiError
5341
+ */
5342
+ resetManagedOrgUserPasswordByName({
5343
+ namespace,
5344
+ username
5345
+ }) {
5346
+ return this.httpRequest.request({
5347
+ method: "POST",
5348
+ url: "/org-users/{namespace}/{username}/reset-password",
5349
+ path: {
5350
+ "namespace": namespace,
5351
+ "username": username
5352
+ },
5353
+ errors: {
5354
+ 403: `Operation RN permission required for enterprise organizations; owner required for ordinary organizations`,
5355
+ 404: `Managed member not found`
5356
+ }
5357
+ });
5358
+ }
4808
5359
  /**
4809
5360
  * Deactivate org user
4810
- * Deactivate an existing org user. An authorized enterprise member or an ordinary-organization owner can deactivate users.
5361
+ * Deactivate a human organization member. To deactivate a service user, use DELETE /service-users/{namespace}/{username}.
4811
5362
  * @returns void
4812
5363
  * @throws ApiError
4813
5364
  */
@@ -4828,8 +5379,9 @@ var DefaultService = class {
4828
5379
  });
4829
5380
  }
4830
5381
  /**
4831
- * Update a managed member's display name
4832
- * @returns OrgUser Managed member updated
5382
+ * Update an organization member's display name
5383
+ * Update the display name of an active human member or an organization-managed account in the current organization.
5384
+ * @returns OrgUser Organization member updated
4833
5385
  * @throws ApiError
4834
5386
  */
4835
5387
  updateManagedOrgUser({
@@ -4846,7 +5398,7 @@ var DefaultService = class {
4846
5398
  mediaType: "application/json",
4847
5399
  errors: {
4848
5400
  403: `Operation RN permission required for enterprise organizations; owner required for ordinary organizations`,
4849
- 404: `Managed member not found in this organization`
5401
+ 404: `Member not found or ineligible for editing in this organization`
4850
5402
  }
4851
5403
  });
4852
5404
  }
@@ -5477,19 +6029,21 @@ var DefaultService = class {
5477
6029
  });
5478
6030
  }
5479
6031
  /**
5480
- * Get an enterprise member's daily usage budget
6032
+ * Get an enterprise member's daily usage budget by qualified name
5481
6033
  * 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
6034
  * @returns UserDailyBudget Current budget and aggregated usage
5483
6035
  * @throws ApiError
5484
6036
  */
5485
- getUserDailyBudget({
5486
- userId
6037
+ getUserDailyBudgetByName({
6038
+ namespace,
6039
+ username
5487
6040
  }) {
5488
6041
  return this.httpRequest.request({
5489
6042
  method: "GET",
5490
- url: "/org/users/{userId}/daily-budget",
6043
+ url: "/org/users/{namespace}/{username}/daily-budget",
5491
6044
  path: {
5492
- "userId": userId
6045
+ "namespace": namespace,
6046
+ "username": username
5493
6047
  },
5494
6048
  errors: {
5495
6049
  403: `Enterprise organization and member budget read permission required`,
@@ -5498,20 +6052,22 @@ var DefaultService = class {
5498
6052
  });
5499
6053
  }
5500
6054
  /**
5501
- * Set an enterprise member's daily usage budget
6055
+ * Set an enterprise member's daily usage budget by qualified name
5502
6056
  * 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
6057
  * @returns UserDailyBudget Saved budget and current aggregated usage
5504
6058
  * @throws ApiError
5505
6059
  */
5506
- setUserDailyBudget({
5507
- userId,
6060
+ setUserDailyBudgetByName({
6061
+ namespace,
6062
+ username,
5508
6063
  requestBody
5509
6064
  }) {
5510
6065
  return this.httpRequest.request({
5511
6066
  method: "PUT",
5512
- url: "/org/users/{userId}/daily-budget",
6067
+ url: "/org/users/{namespace}/{username}/daily-budget",
5513
6068
  path: {
5514
- "userId": userId
6069
+ "namespace": namespace,
6070
+ "username": username
5515
6071
  },
5516
6072
  body: requestBody,
5517
6073
  mediaType: "application/json",
@@ -5523,19 +6079,21 @@ var DefaultService = class {
5523
6079
  });
5524
6080
  }
5525
6081
  /**
5526
- * Get a member's bound policy IDs
6082
+ * Get a member's bound policy IDs by qualified name
5527
6083
  * Requires an enterprise organization and the corresponding enterprise RN permission.
5528
6084
  * @returns EnterprisePermissionPolicyBindings Get a member's bound policy IDs
5529
6085
  * @throws ApiError
5530
6086
  */
5531
- getUserEnterprisePermissionPolicies({
5532
- userId
6087
+ getUserEnterprisePermissionPoliciesByName({
6088
+ namespace,
6089
+ username
5533
6090
  }) {
5534
6091
  return this.httpRequest.request({
5535
6092
  method: "GET",
5536
- url: "/org/users/{userId}/enterprise-permission-policies",
6093
+ url: "/org/users/{namespace}/{username}/enterprise-permission-policies",
5537
6094
  path: {
5538
- "userId": userId
6095
+ "namespace": namespace,
6096
+ "username": username
5539
6097
  },
5540
6098
  errors: {
5541
6099
  400: `Invalid input`,
@@ -5546,20 +6104,22 @@ var DefaultService = class {
5546
6104
  });
5547
6105
  }
5548
6106
  /**
5549
- * Replace a member's policy bindings
6107
+ * Replace a member's policy bindings by qualified name
5550
6108
  * 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
6109
  * @returns EnterprisePermissionPolicyBindings Replace a member's policy bindings
5552
6110
  * @throws ApiError
5553
6111
  */
5554
- replaceUserEnterprisePermissionPolicies({
5555
- userId,
6112
+ replaceUserEnterprisePermissionPoliciesByName({
6113
+ namespace,
6114
+ username,
5556
6115
  requestBody
5557
6116
  }) {
5558
6117
  return this.httpRequest.request({
5559
6118
  method: "PUT",
5560
- url: "/org/users/{userId}/enterprise-permission-policies",
6119
+ url: "/org/users/{namespace}/{username}/enterprise-permission-policies",
5561
6120
  path: {
5562
- "userId": userId
6121
+ "namespace": namespace,
6122
+ "username": username
5563
6123
  },
5564
6124
  body: requestBody,
5565
6125
  mediaType: "application/json",
@@ -5572,19 +6132,21 @@ var DefaultService = class {
5572
6132
  });
5573
6133
  }
5574
6134
  /**
5575
- * Get a member's enterprise permission rules
6135
+ * Get a member's enterprise permission rules by qualified name
5576
6136
  * Requires the corresponding enterprise RN permission. Returns direct user rules only; bound policy rules are evaluated separately. Existing resource access checks still apply.
5577
6137
  * @returns EnterprisePermissionRules Current rules
5578
6138
  * @throws ApiError
5579
6139
  */
5580
- getUserEnterprisePermissions({
5581
- userId
6140
+ getUserEnterprisePermissionsByName({
6141
+ namespace,
6142
+ username
5582
6143
  }) {
5583
6144
  return this.httpRequest.request({
5584
6145
  method: "GET",
5585
- url: "/org/users/{userId}/enterprise-permissions",
6146
+ url: "/org/users/{namespace}/{username}/enterprise-permissions",
5586
6147
  path: {
5587
- "userId": userId
6148
+ "namespace": namespace,
6149
+ "username": username
5588
6150
  },
5589
6151
  errors: {
5590
6152
  403: `Requires an enterprise organization and permission to read this member's rules`,
@@ -5593,13 +6155,156 @@ var DefaultService = class {
5593
6155
  });
5594
6156
  }
5595
6157
  /**
5596
- * Replace a member's enterprise permission rules
6158
+ * Replace a member's enterprise permission rules by qualified name
5597
6159
  * 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.
5598
6160
  * @returns EnterprisePermissionRules Updated rules
5599
6161
  * @throws ApiError
5600
6162
  */
5601
- replaceUserEnterprisePermissions({
5602
- userId,
6163
+ replaceUserEnterprisePermissionsByName({
6164
+ namespace,
6165
+ username,
6166
+ requestBody
6167
+ }) {
6168
+ return this.httpRequest.request({
6169
+ method: "PUT",
6170
+ url: "/org/users/{namespace}/{username}/enterprise-permissions",
6171
+ path: {
6172
+ "namespace": namespace,
6173
+ "username": username
6174
+ },
6175
+ body: requestBody,
6176
+ mediaType: "application/json",
6177
+ errors: {
6178
+ 400: `Invalid or duplicate rule`,
6179
+ 403: `Requires an enterprise organization and permission to edit this member's rules`,
6180
+ 404: `Member not found in this organization`
6181
+ }
6182
+ });
6183
+ }
6184
+ /**
6185
+ * Get an enterprise member's daily usage budget
6186
+ * 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.
6187
+ * @returns UserDailyBudget Current budget and aggregated usage
6188
+ * @throws ApiError
6189
+ */
6190
+ getUserDailyBudget({
6191
+ userId
6192
+ }) {
6193
+ return this.httpRequest.request({
6194
+ method: "GET",
6195
+ url: "/org/users/{userId}/daily-budget",
6196
+ path: {
6197
+ "userId": userId
6198
+ },
6199
+ errors: {
6200
+ 403: `Enterprise organization and member budget read permission required`,
6201
+ 404: `Member not found in this organization`
6202
+ }
6203
+ });
6204
+ }
6205
+ /**
6206
+ * Set an enterprise member's daily usage budget
6207
+ * 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.
6208
+ * @returns UserDailyBudget Saved budget and current aggregated usage
6209
+ * @throws ApiError
6210
+ */
6211
+ setUserDailyBudget({
6212
+ userId,
6213
+ requestBody
6214
+ }) {
6215
+ return this.httpRequest.request({
6216
+ method: "PUT",
6217
+ url: "/org/users/{userId}/daily-budget",
6218
+ path: {
6219
+ "userId": userId
6220
+ },
6221
+ body: requestBody,
6222
+ mediaType: "application/json",
6223
+ errors: {
6224
+ 400: `Invalid amount`,
6225
+ 403: `Enterprise organization and member budget edit permission required`,
6226
+ 404: `Member not found in this organization`
6227
+ }
6228
+ });
6229
+ }
6230
+ /**
6231
+ * Get a member's bound policy IDs
6232
+ * Requires an enterprise organization and the corresponding enterprise RN permission.
6233
+ * @returns EnterprisePermissionPolicyBindings Get a member's bound policy IDs
6234
+ * @throws ApiError
6235
+ */
6236
+ getUserEnterprisePermissionPolicies({
6237
+ userId
6238
+ }) {
6239
+ return this.httpRequest.request({
6240
+ method: "GET",
6241
+ url: "/org/users/{userId}/enterprise-permission-policies",
6242
+ path: {
6243
+ "userId": userId
6244
+ },
6245
+ errors: {
6246
+ 400: `Invalid input`,
6247
+ 403: `Permission denied`,
6248
+ 404: `Policy or member not found in this organization`,
6249
+ 409: `Policy name already exists`
6250
+ }
6251
+ });
6252
+ }
6253
+ /**
6254
+ * Replace a member's policy bindings
6255
+ * 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.
6256
+ * @returns EnterprisePermissionPolicyBindings Replace a member's policy bindings
6257
+ * @throws ApiError
6258
+ */
6259
+ replaceUserEnterprisePermissionPolicies({
6260
+ userId,
6261
+ requestBody
6262
+ }) {
6263
+ return this.httpRequest.request({
6264
+ method: "PUT",
6265
+ url: "/org/users/{userId}/enterprise-permission-policies",
6266
+ path: {
6267
+ "userId": userId
6268
+ },
6269
+ body: requestBody,
6270
+ mediaType: "application/json",
6271
+ errors: {
6272
+ 400: `Invalid input`,
6273
+ 403: `Permission denied`,
6274
+ 404: `Policy or member not found in this organization`,
6275
+ 409: `Policy name already exists`
6276
+ }
6277
+ });
6278
+ }
6279
+ /**
6280
+ * Get a member's enterprise permission rules
6281
+ * Requires the corresponding enterprise RN permission. Returns direct user rules only; bound policy rules are evaluated separately. Existing resource access checks still apply.
6282
+ * @returns EnterprisePermissionRules Current rules
6283
+ * @throws ApiError
6284
+ */
6285
+ getUserEnterprisePermissions({
6286
+ userId
6287
+ }) {
6288
+ return this.httpRequest.request({
6289
+ method: "GET",
6290
+ url: "/org/users/{userId}/enterprise-permissions",
6291
+ path: {
6292
+ "userId": userId
6293
+ },
6294
+ errors: {
6295
+ 403: `Requires an enterprise organization and permission to read this member's rules`,
6296
+ 404: `Member not found in this organization`
6297
+ }
6298
+ });
6299
+ }
6300
+ /**
6301
+ * Replace a member's enterprise permission rules
6302
+ * 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.
6303
+ * @returns EnterprisePermissionRules Updated rules
6304
+ * @throws ApiError
6305
+ */
6306
+ replaceUserEnterprisePermissions({
6307
+ userId,
5603
6308
  requestBody
5604
6309
  }) {
5605
6310
  return this.httpRequest.request({
@@ -6120,6 +6825,90 @@ var DefaultService = class {
6120
6825
  url: "/service-users"
6121
6826
  });
6122
6827
  }
6828
+ /**
6829
+ * Deactivate an organization service user by qualified name
6830
+ * @returns void
6831
+ * @throws ApiError
6832
+ */
6833
+ deleteServiceUserByName({
6834
+ namespace,
6835
+ username
6836
+ }) {
6837
+ return this.httpRequest.request({
6838
+ method: "DELETE",
6839
+ url: "/service-users/{namespace}/{username}",
6840
+ path: {
6841
+ "namespace": namespace,
6842
+ "username": username
6843
+ },
6844
+ errors: {
6845
+ 403: `Caller lacks permission`,
6846
+ 404: `Active service user not found in this organization`
6847
+ }
6848
+ });
6849
+ }
6850
+ /**
6851
+ * Get an organization service user by qualified name
6852
+ * @returns ServiceUser Active service identity
6853
+ * @throws ApiError
6854
+ */
6855
+ getServiceUserByName({
6856
+ namespace,
6857
+ username
6858
+ }) {
6859
+ return this.httpRequest.request({
6860
+ method: "GET",
6861
+ url: "/service-users/{namespace}/{username}",
6862
+ path: {
6863
+ "namespace": namespace,
6864
+ "username": username
6865
+ },
6866
+ errors: {
6867
+ 403: `Caller lacks permission`,
6868
+ 404: `Active service user not found in this organization`
6869
+ }
6870
+ });
6871
+ }
6872
+ /**
6873
+ * Deactivate an organization service user by ID
6874
+ * @returns void
6875
+ * @throws ApiError
6876
+ */
6877
+ deleteServiceUser({
6878
+ userId
6879
+ }) {
6880
+ return this.httpRequest.request({
6881
+ method: "DELETE",
6882
+ url: "/service-users/{userId}",
6883
+ path: {
6884
+ "userId": userId
6885
+ },
6886
+ errors: {
6887
+ 403: `Caller lacks permission`,
6888
+ 404: `Active service user not found in this organization`
6889
+ }
6890
+ });
6891
+ }
6892
+ /**
6893
+ * Get an organization service user by ID
6894
+ * @returns ServiceUser Active service identity
6895
+ * @throws ApiError
6896
+ */
6897
+ getServiceUser({
6898
+ userId
6899
+ }) {
6900
+ return this.httpRequest.request({
6901
+ method: "GET",
6902
+ url: "/service-users/{userId}",
6903
+ path: {
6904
+ "userId": userId
6905
+ },
6906
+ errors: {
6907
+ 403: `Caller lacks permission`,
6908
+ 404: `Active service user not found in this organization`
6909
+ }
6910
+ });
6911
+ }
6123
6912
  /**
6124
6913
  * Get the shared session selected by a short share key
6125
6914
  * Resolve immutable shared-session metadata using a short bearer key that is accepted only by session-share APIs.
@@ -6361,6 +7150,66 @@ var DefaultService = class {
6361
7150
  mediaType: "application/json"
6362
7151
  });
6363
7152
  }
7153
+ /**
7154
+ * Rotate this CLI grant using its refresh credential
7155
+ * @returns SSOTokens Rotate this CLI grant using its refresh credential
7156
+ * @throws ApiError
7157
+ */
7158
+ refreshCliTokens({
7159
+ requestBody
7160
+ }) {
7161
+ return this.httpRequest.request({
7162
+ method: "POST",
7163
+ url: "/sso/cli/refresh",
7164
+ body: requestBody,
7165
+ mediaType: "application/json"
7166
+ });
7167
+ }
7168
+ /**
7169
+ * Begin a Leawan CLI login bound to a loopback callback and S256 PKCE
7170
+ * @returns SSORequest Begin a Leawan CLI login bound to a loopback callback and S256 PKCE
7171
+ * @throws ApiError
7172
+ */
7173
+ createCliRequest({
7174
+ requestBody
7175
+ }) {
7176
+ return this.httpRequest.request({
7177
+ method: "POST",
7178
+ url: "/sso/cli/requests",
7179
+ body: requestBody,
7180
+ mediaType: "application/json"
7181
+ });
7182
+ }
7183
+ /**
7184
+ * Revoke this CLI grant using its refresh credential
7185
+ * @returns void
7186
+ * @throws ApiError
7187
+ */
7188
+ revokeCliGrant({
7189
+ requestBody
7190
+ }) {
7191
+ return this.httpRequest.request({
7192
+ method: "POST",
7193
+ url: "/sso/cli/revoke",
7194
+ body: requestBody,
7195
+ mediaType: "application/json"
7196
+ });
7197
+ }
7198
+ /**
7199
+ * Exchange the CLI authorization code with its original PKCE verifier
7200
+ * @returns SSOTokens Exchange the CLI authorization code with its original PKCE verifier
7201
+ * @throws ApiError
7202
+ */
7203
+ exchangeCliCode({
7204
+ requestBody
7205
+ }) {
7206
+ return this.httpRequest.request({
7207
+ method: "POST",
7208
+ url: "/sso/cli/token",
7209
+ body: requestBody,
7210
+ mediaType: "application/json"
7211
+ });
7212
+ }
6364
7213
  /**
6365
7214
  * Revoke a user grant using the application's service identity
6366
7215
  * @returns void
@@ -6884,86 +7733,800 @@ var DefaultService3 = class {
6884
7733
  }
6885
7734
  httpRequest;
6886
7735
  /**
6887
- * @returns CustomDomain Custom domains and DNS configuration
7736
+ * Browse the App Marketplace, including delisted apps owned by this organization.
7737
+ * @returns CloudAppList App Marketplace listings and this organization's delisted apps
6888
7738
  * @throws ApiError
6889
7739
  */
6890
- listAppDomains({
6891
- id
7740
+ listCloudApps({
7741
+ after
6892
7742
  }) {
6893
7743
  return this.httpRequest.request({
6894
7744
  method: "GET",
6895
- url: "/apps/{id}/domains",
6896
- path: {
6897
- "id": id
6898
- },
7745
+ url: "/cloud-apps",
7746
+ query: {
7747
+ "after": after
7748
+ },
7749
+ errors: {
7750
+ 409: `Conflicting lifecycle operation`
7751
+ }
7752
+ });
7753
+ }
7754
+ /**
7755
+ * List this organization's cloud apps, including drafts with saved profiles.
7756
+ * @returns DevelopedCloudAppList Cloud apps developed in this organization
7757
+ * @throws ApiError
7758
+ */
7759
+ listDevelopedCloudApps({
7760
+ after
7761
+ }) {
7762
+ return this.httpRequest.request({
7763
+ method: "GET",
7764
+ url: "/developed-cloud-apps",
7765
+ query: {
7766
+ "after": after
7767
+ }
7768
+ });
7769
+ }
7770
+ /**
7771
+ * Read the source function's editable profile, including before it is listed in the App Marketplace.
7772
+ * @returns CloudAppProfile Current profile
7773
+ * @throws ApiError
7774
+ */
7775
+ getCloudAppProfile({
7776
+ id
7777
+ }) {
7778
+ return this.httpRequest.request({
7779
+ method: "GET",
7780
+ url: "/apps/{id}/cloud-app/profile",
7781
+ path: {
7782
+ "id": id
7783
+ },
7784
+ errors: {
7785
+ 404: `Source function unavailable in this organization`
7786
+ }
7787
+ });
7788
+ }
7789
+ /**
7790
+ * Save App Marketplace listing details
7791
+ * Create a draft or edit an existing listing. Edits to listed apps appear immediately in the App Marketplace. Omit the logo to retain it.
7792
+ * @returns CloudAppProfile Saved profile
7793
+ * @throws ApiError
7794
+ */
7795
+ updateCloudAppProfile({
7796
+ id,
7797
+ formData
7798
+ }) {
7799
+ return this.httpRequest.request({
7800
+ method: "PUT",
7801
+ url: "/apps/{id}/cloud-app/profile",
7802
+ path: {
7803
+ "id": id
7804
+ },
7805
+ formData,
7806
+ mediaType: "multipart/form-data",
7807
+ errors: {
7808
+ 400: `Invalid profile or image`,
7809
+ 404: `Source function unavailable in this organization`,
7810
+ 413: `Logo exceeds 2 MiB`
7811
+ }
7812
+ });
7813
+ }
7814
+ /**
7815
+ * List a version in the App Marketplace (上架到应用市场)
7816
+ * 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.
7817
+ * @returns CloudApp Version listed in the App Marketplace
7818
+ * @throws ApiError
7819
+ */
7820
+ publishCloudApp({
7821
+ id,
7822
+ requestBody
7823
+ }) {
7824
+ return this.httpRequest.request({
7825
+ method: "POST",
7826
+ url: "/apps/{id}/cloud-app/releases",
7827
+ path: {
7828
+ "id": id
7829
+ },
7830
+ body: requestBody,
7831
+ mediaType: "application/json",
7832
+ errors: {
7833
+ 409: `Conflicting lifecycle operation`
7834
+ }
7835
+ });
7836
+ }
7837
+ /**
7838
+ * Read the current App Marketplace listing.
7839
+ * @returns CloudApp App Marketplace listing details
7840
+ * @throws ApiError
7841
+ */
7842
+ getCloudApp({
7843
+ id
7844
+ }) {
7845
+ return this.httpRequest.request({
7846
+ method: "GET",
7847
+ url: "/cloud-apps/{id}",
7848
+ path: {
7849
+ "id": id
7850
+ },
7851
+ errors: {
7852
+ 409: `Conflicting lifecycle operation`
7853
+ }
7854
+ });
7855
+ }
7856
+ /**
7857
+ * Remove an app from the App Marketplace
7858
+ * Remove the app from the App Marketplace to stop new installations and future updates.
7859
+ * @returns CloudApp App removed from the App Marketplace
7860
+ * @throws ApiError
7861
+ */
7862
+ unpublishCloudApp({
7863
+ id
7864
+ }) {
7865
+ return this.httpRequest.request({
7866
+ method: "DELETE",
7867
+ url: "/cloud-apps/{id}",
7868
+ path: {
7869
+ "id": id
7870
+ },
7871
+ errors: {
7872
+ 409: `Conflicting lifecycle operation`
7873
+ }
7874
+ });
7875
+ }
7876
+ /**
7877
+ * Reserve an installation and provision it asynchronously.
7878
+ * @returns CloudAppInstallation Reserve an installation and provision it asynchronously.
7879
+ * @throws ApiError
7880
+ */
7881
+ installCloudApp({
7882
+ id,
7883
+ requestBody
7884
+ }) {
7885
+ return this.httpRequest.request({
7886
+ method: "POST",
7887
+ url: "/cloud-apps/{id}/installations",
7888
+ path: {
7889
+ "id": id
7890
+ },
7891
+ body: requestBody,
7892
+ mediaType: "application/json",
7893
+ errors: {
7894
+ 409: `Conflicting lifecycle operation`
7895
+ }
7896
+ });
7897
+ }
7898
+ /**
7899
+ * List current installations in this organization.
7900
+ * @returns CloudAppInstallationList List current installations in this organization.
7901
+ * @throws ApiError
7902
+ */
7903
+ listCloudAppInstallations({
7904
+ after
7905
+ }) {
7906
+ return this.httpRequest.request({
7907
+ method: "GET",
7908
+ url: "/cloud-app-installations",
7909
+ query: {
7910
+ "after": after
7911
+ },
7912
+ errors: {
7913
+ 409: `Conflicting lifecycle operation`
7914
+ }
7915
+ });
7916
+ }
7917
+ /**
7918
+ * Prepare a default installation on first use. Repeated calls return the existing installation.
7919
+ * @returns CloudAppInstallation Poll this installation until installed, then open the function URL.
7920
+ * @throws ApiError
7921
+ */
7922
+ openCloudAppInstallation({
7923
+ id
7924
+ }) {
7925
+ return this.httpRequest.request({
7926
+ method: "POST",
7927
+ url: "/cloud-app-installations/{id}/open",
7928
+ path: {
7929
+ "id": id
7930
+ },
7931
+ errors: {
7932
+ 409: `The installation was removed or is being uninstalled.`
7933
+ }
7934
+ });
7935
+ }
7936
+ /**
7937
+ * Read lifecycle progress, including a completed uninstall.
7938
+ * @returns CloudAppInstallation Read lifecycle progress, including a completed uninstall.
7939
+ * @throws ApiError
7940
+ */
7941
+ getCloudAppInstallation({
7942
+ id
7943
+ }) {
7944
+ return this.httpRequest.request({
7945
+ method: "GET",
7946
+ url: "/cloud-app-installations/{id}",
7947
+ path: {
7948
+ "id": id
7949
+ },
7950
+ errors: {
7951
+ 409: `Conflicting lifecycle operation`
7952
+ }
7953
+ });
7954
+ }
7955
+ /**
7956
+ * Withdraw traffic and remove owned resources asynchronously.
7957
+ * @returns CloudAppInstallation Withdraw traffic and remove owned resources asynchronously.
7958
+ * @throws ApiError
7959
+ */
7960
+ uninstallCloudApp({
7961
+ id,
7962
+ requestBody
7963
+ }) {
7964
+ return this.httpRequest.request({
7965
+ method: "DELETE",
7966
+ url: "/cloud-app-installations/{id}",
7967
+ path: {
7968
+ "id": id
7969
+ },
7970
+ body: requestBody,
7971
+ mediaType: "application/json",
7972
+ errors: {
7973
+ 409: `Conflicting lifecycle operation`
7974
+ }
7975
+ });
7976
+ }
7977
+ /**
7978
+ * Resume a failed lifecycle operation.
7979
+ * @returns CloudAppInstallation Resume a failed lifecycle operation.
7980
+ * @throws ApiError
7981
+ */
7982
+ retryCloudAppInstallation({
7983
+ id
7984
+ }) {
7985
+ return this.httpRequest.request({
7986
+ method: "POST",
7987
+ url: "/cloud-app-installations/{id}/retry",
7988
+ path: {
7989
+ "id": id
7990
+ },
7991
+ errors: {
7992
+ 409: `Conflicting lifecycle operation`
7993
+ }
7994
+ });
7995
+ }
7996
+ /**
7997
+ * List the current organization's reusable domain suffixes.
7998
+ * @returns RootDomain Root domains, wildcard certificate status and one-time DNS setup
7999
+ * @throws ApiError
8000
+ */
8001
+ listRootDomains() {
8002
+ return this.httpRequest.request({
8003
+ method: "GET",
8004
+ url: "/root-domains"
8005
+ });
8006
+ }
8007
+ /**
8008
+ * Requires organization ownership or root-domains:edit permission. DNS setup and certificate issuance are asynchronous.
8009
+ * @returns RootDomain Root domain reserved; configure the returned DNS records
8010
+ * @throws ApiError
8011
+ */
8012
+ createRootDomain({
8013
+ requestBody
8014
+ }) {
8015
+ return this.httpRequest.request({
8016
+ method: "POST",
8017
+ url: "/root-domains",
8018
+ body: requestBody,
8019
+ mediaType: "application/json",
8020
+ errors: {
8021
+ 400: `Invalid domain suffix`,
8022
+ 403: `Root domain management permission required`,
8023
+ 409: `Conflicting domain ownership or organization limit reached`,
8024
+ 503: `Wildcard domain provisioning unavailable`
8025
+ }
8026
+ });
8027
+ }
8028
+ /**
8029
+ * Change the default automatically used for future function creation when rootDomainId is omitted. Does not change existing bindings.
8030
+ * @returns RootDomain Root domain updated
8031
+ * @throws ApiError
8032
+ */
8033
+ updateRootDomain({
8034
+ rootDomainId,
8035
+ requestBody
8036
+ }) {
8037
+ return this.httpRequest.request({
8038
+ method: "PUT",
8039
+ url: "/root-domains/{rootDomainId}",
8040
+ path: {
8041
+ "rootDomainId": rootDomainId
8042
+ },
8043
+ body: requestBody,
8044
+ mediaType: "application/json",
8045
+ errors: {
8046
+ 403: `Root domain management permission required`,
8047
+ 404: `Root domain not found in this organization`,
8048
+ 409: `Root domain is not usable`
8049
+ }
8050
+ });
8051
+ }
8052
+ /**
8053
+ * 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.
8054
+ * @returns any Deletion recorded; managed DNS records will be cleaned asynchronously
8055
+ * @throws ApiError
8056
+ */
8057
+ deleteRootDomain({
8058
+ rootDomainId
8059
+ }) {
8060
+ return this.httpRequest.request({
8061
+ method: "DELETE",
8062
+ url: "/root-domains/{rootDomainId}",
8063
+ path: {
8064
+ "rootDomainId": rootDomainId
8065
+ },
8066
+ errors: {
8067
+ 403: `Root domain management permission required`,
8068
+ 404: `Root domain not found in this organization`
8069
+ }
8070
+ });
8071
+ }
8072
+ /**
8073
+ * @returns CustomDomain All function domains, including the non-deletable platform domain, access status and DNS configuration
8074
+ * @throws ApiError
8075
+ */
8076
+ listAppDomains({
8077
+ id
8078
+ }) {
8079
+ return this.httpRequest.request({
8080
+ method: "GET",
8081
+ url: "/apps/{id}/domains",
8082
+ path: {
8083
+ "id": id
8084
+ },
8085
+ errors: {
8086
+ 404: `Function not found`
8087
+ }
8088
+ });
8089
+ }
8090
+ /**
8091
+ * @returns CustomDomain Domain bound; organization-root subdomains need no separate DNS setup. Other domains require the returned DNS records.
8092
+ * @throws ApiError
8093
+ */
8094
+ createAppDomain({
8095
+ id,
8096
+ requestBody
8097
+ }) {
8098
+ return this.httpRequest.request({
8099
+ method: "POST",
8100
+ url: "/apps/{id}/domains",
8101
+ path: {
8102
+ "id": id
8103
+ },
8104
+ body: requestBody,
8105
+ mediaType: "application/json",
8106
+ errors: {
8107
+ 400: `Invalid subdomain`,
8108
+ 404: `Function not found`,
8109
+ 409: `Domain already bound or function domain limit reached`,
8110
+ 503: `Custom domains unavailable`
8111
+ }
8112
+ });
8113
+ }
8114
+ /**
8115
+ * 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.
8116
+ * @returns CustomDomain Settings saved and route publication queued
8117
+ * @throws ApiError
8118
+ */
8119
+ updateAppDomain({
8120
+ id,
8121
+ domainId,
8122
+ requestBody
8123
+ }) {
8124
+ return this.httpRequest.request({
8125
+ method: "PUT",
8126
+ url: "/apps/{id}/domains/{domainId}",
8127
+ path: {
8128
+ "id": id,
8129
+ "domainId": domainId
8130
+ },
8131
+ body: requestBody,
8132
+ mediaType: "application/json",
8133
+ errors: {
8134
+ 400: `Empty settings`,
8135
+ 404: `Domain not found in this function`,
8136
+ 409: `Preferred domain must be enabled and ready`
8137
+ }
8138
+ });
8139
+ }
8140
+ /**
8141
+ * @returns void
8142
+ * @throws ApiError
8143
+ */
8144
+ deleteAppDomain({
8145
+ id,
8146
+ domainId
8147
+ }) {
8148
+ return this.httpRequest.request({
8149
+ method: "DELETE",
8150
+ url: "/apps/{id}/domains/{domainId}",
8151
+ path: {
8152
+ "id": id,
8153
+ "domainId": domainId
8154
+ },
8155
+ errors: {
8156
+ 404: `Domain not found`,
8157
+ 409: `The platform domain cannot be deleted`
8158
+ }
8159
+ });
8160
+ }
8161
+ /**
8162
+ * @returns string Serverless API contract; paths are relative to /api/v1/serverless.
8163
+ * @throws ApiError
8164
+ */
8165
+ getServerlessOpenApi() {
8166
+ return this.httpRequest.request({
8167
+ method: "GET",
8168
+ url: "/openapi.yaml"
8169
+ });
8170
+ }
8171
+ /**
8172
+ * List undeleted functions in the caller's organization.
8173
+ * @returns AppSummary Success
8174
+ * @throws ApiError
8175
+ */
8176
+ listApps() {
8177
+ return this.httpRequest.request({
8178
+ method: "GET",
8179
+ url: "/apps",
8180
+ errors: {
8181
+ 400: `Invalid input`,
8182
+ 401: `Unauthorized`,
8183
+ 403: `Forbidden`,
8184
+ 404: `Not found`,
8185
+ 409: `Conflict`,
8186
+ 503: `Temporarily unavailable`
8187
+ }
8188
+ });
8189
+ }
8190
+ /**
8191
+ * @returns App Success
8192
+ * @throws ApiError
8193
+ */
8194
+ createApp({
8195
+ requestBody
8196
+ }) {
8197
+ return this.httpRequest.request({
8198
+ method: "POST",
8199
+ url: "/apps",
8200
+ body: requestBody,
8201
+ mediaType: "application/json",
8202
+ errors: {
8203
+ 400: `Invalid input`,
8204
+ 401: `Unauthorized`,
8205
+ 403: `Forbidden`,
8206
+ 404: `Not found`,
8207
+ 409: `Name conflict, or organization resource quota exceeded.`,
8208
+ 503: `Temporarily unavailable`
8209
+ }
8210
+ });
8211
+ }
8212
+ /**
8213
+ * @returns App Success
8214
+ * @throws ApiError
8215
+ */
8216
+ getApp({
8217
+ id
8218
+ }) {
8219
+ return this.httpRequest.request({
8220
+ method: "GET",
8221
+ url: "/apps/{id}",
8222
+ path: {
8223
+ "id": id
8224
+ },
8225
+ errors: {
8226
+ 400: `Invalid input`,
8227
+ 401: `Unauthorized`,
8228
+ 403: `Forbidden`,
8229
+ 404: `Not found`,
8230
+ 409: `Conflict`,
8231
+ 503: `Temporarily unavailable`
8232
+ }
8233
+ });
8234
+ }
8235
+ /**
8236
+ * @returns App Success
8237
+ * @throws ApiError
8238
+ */
8239
+ updateApp({
8240
+ id,
8241
+ requestBody
8242
+ }) {
8243
+ return this.httpRequest.request({
8244
+ method: "PATCH",
8245
+ url: "/apps/{id}",
8246
+ path: {
8247
+ "id": id
8248
+ },
8249
+ body: requestBody,
8250
+ mediaType: "application/json",
8251
+ errors: {
8252
+ 400: `Invalid input`,
8253
+ 401: `Unauthorized`,
8254
+ 403: `Forbidden`,
8255
+ 404: `Not found`,
8256
+ 409: `Conflict`,
8257
+ 503: `Temporarily unavailable`
8258
+ }
8259
+ });
8260
+ }
8261
+ /**
8262
+ * @returns any Success
8263
+ * @throws ApiError
8264
+ */
8265
+ deleteApp({
8266
+ id
8267
+ }) {
8268
+ return this.httpRequest.request({
8269
+ method: "DELETE",
8270
+ url: "/apps/{id}",
8271
+ path: {
8272
+ "id": id
8273
+ },
8274
+ errors: {
8275
+ 400: `Invalid input`,
8276
+ 401: `Unauthorized`,
8277
+ 403: `Forbidden`,
8278
+ 404: `Not found`,
8279
+ 409: `Conflict`,
8280
+ 503: `Temporarily unavailable`
8281
+ }
8282
+ });
8283
+ }
8284
+ /**
8285
+ * Keep an active function instance running while it processes background work
8286
+ * @returns void
8287
+ * @throws ApiError
8288
+ */
8289
+ reportAppInstanceActivity({
8290
+ id,
8291
+ instanceId
8292
+ }) {
8293
+ return this.httpRequest.request({
8294
+ method: "POST",
8295
+ url: "/apps/{id}/instances/{instanceId}/activity",
8296
+ path: {
8297
+ "id": id,
8298
+ "instanceId": instanceId
8299
+ },
8300
+ errors: {
8301
+ 403: `Requires the assigned function service user`,
8302
+ 404: `Function or active instance unavailable`
8303
+ }
8304
+ });
8305
+ }
8306
+ /**
8307
+ * List binding names as the assigned function service user
8308
+ * @returns string Names available to the function
8309
+ * @throws ApiError
8310
+ */
8311
+ listAppCredentialBindings({
8312
+ id
8313
+ }) {
8314
+ return this.httpRequest.request({
8315
+ method: "GET",
8316
+ url: "/apps/{id}/credential-bindings",
8317
+ path: {
8318
+ "id": id
8319
+ },
8320
+ errors: {
8321
+ 403: `Requires the assigned service user`
8322
+ }
8323
+ });
8324
+ }
8325
+ /**
8326
+ * Bind an organization credential to a function, including installed cloud applications
8327
+ * @returns void
8328
+ * @throws ApiError
8329
+ */
8330
+ bindAppCredential({
8331
+ id,
8332
+ key,
8333
+ requestBody
8334
+ }) {
8335
+ return this.httpRequest.request({
8336
+ method: "PUT",
8337
+ url: "/apps/{id}/credential-bindings/{key}",
8338
+ path: {
8339
+ "id": id,
8340
+ "key": key
8341
+ },
8342
+ body: requestBody,
8343
+ mediaType: "application/json",
8344
+ errors: {
8345
+ 403: `Requires function edit and credential use permission`,
8346
+ 404: `Unknown organization function or credential`
8347
+ }
8348
+ });
8349
+ }
8350
+ /**
8351
+ * Revoke a function's named credential binding
8352
+ * @returns void
8353
+ * @throws ApiError
8354
+ */
8355
+ unbindAppCredential({
8356
+ id,
8357
+ key
8358
+ }) {
8359
+ return this.httpRequest.request({
8360
+ method: "DELETE",
8361
+ url: "/apps/{id}/credential-bindings/{key}",
8362
+ path: {
8363
+ "id": id,
8364
+ "key": key
8365
+ }
8366
+ });
8367
+ }
8368
+ /**
8369
+ * Resolve one explicitly bound organization credential as the function's service user
8370
+ * @returns any Current value of the credential bound to this name
8371
+ * @throws ApiError
8372
+ */
8373
+ resolveAppCredentialBinding({
8374
+ id,
8375
+ key
8376
+ }) {
8377
+ return this.httpRequest.request({
8378
+ method: "GET",
8379
+ url: "/apps/{id}/credential-bindings/{key}",
8380
+ path: {
8381
+ "id": id,
8382
+ "key": key
8383
+ },
6899
8384
  errors: {
6900
- 404: `Function not found`
8385
+ 403: `Requires this function's service user and permission to use the credential`,
8386
+ 404: `Function`
6901
8387
  }
6902
8388
  });
6903
8389
  }
6904
8390
  /**
6905
- * @returns CustomDomain Domain reserved; configure both DNS records to begin verification
8391
+ * Query cloud function stdout and stderr without waking the function
8392
+ * Queries retained container logs for current and stopped instances. Requires the same
8393
+ * active organization membership as getApp. Enterprise permissions belong to the API layer.
8394
+ * The interval is [from, to),
8395
+ * at most seven days, with to no later than the request time. Results are newest first.
8396
+ * Each response contains at most 100 entries and 1 MiB of JSON. Messages longer than
8397
+ * 32 KiB are previews with truncated=true and a short-lived downloadToken for the original.
8398
+ * Keep from, to and stream unchanged when following nextCursor. Cursors expire after
8399
+ * 15 minutes. An incomplete page contains no entries and a retry cursor at the same position.
8400
+ * Recent logs can arrive late: pagination is not a snapshot of SLS ingestion; refresh the
8401
+ * interval to include delayed logs. Retention is seven days, not archival storage.
8402
+ * Queries spanning more than 256 instances must use a narrower time range.
8403
+ *
8404
+ * @returns AppLogPage Bounded log page; inspect status before treating it as complete.
6906
8405
  * @throws ApiError
6907
8406
  */
6908
- createAppDomain({
8407
+ listAppLogs({
6909
8408
  id,
6910
- requestBody
8409
+ from,
8410
+ to,
8411
+ limit = 100,
8412
+ stream,
8413
+ cursor
6911
8414
  }) {
6912
8415
  return this.httpRequest.request({
6913
- method: "POST",
6914
- url: "/apps/{id}/domains",
8416
+ method: "GET",
8417
+ url: "/apps/{id}/logs",
6915
8418
  path: {
6916
8419
  "id": id
6917
8420
  },
6918
- body: requestBody,
6919
- mediaType: "application/json",
8421
+ query: {
8422
+ "from": from,
8423
+ "to": to,
8424
+ "limit": limit,
8425
+ "stream": stream,
8426
+ "cursor": cursor
8427
+ },
6920
8428
  errors: {
6921
- 400: `Invalid subdomain`,
8429
+ 400: `Invalid time range, limit or cursor`,
8430
+ 401: `Unauthorized`,
8431
+ 403: `Forbidden`,
6922
8432
  404: `Function not found`,
6923
- 409: `Domain already bound or function domain limit reached`,
6924
- 503: `Custom domains unavailable`
8433
+ 409: `Instance mapping changed; restart the query`,
8434
+ 410: `Cursor expired; restart the query`,
8435
+ 422: `Too many instances; narrow the time range`,
8436
+ 502: `Log provider failed; this is not an empty result`,
8437
+ 503: `Log collection query is not configured`
6925
8438
  }
6926
8439
  });
6927
8440
  }
6928
8441
  /**
6929
- * @returns void
8442
+ * Download one original log message referenced by a truncated preview
8443
+ * @returns binary Original UTF-8 log message, served as an attachment.
6930
8444
  * @throws ApiError
6931
8445
  */
6932
- deleteAppDomain({
8446
+ downloadAppLogContent({
6933
8447
  id,
6934
- domainId
8448
+ token
6935
8449
  }) {
6936
8450
  return this.httpRequest.request({
6937
- method: "DELETE",
6938
- url: "/apps/{id}/domains/{domainId}",
8451
+ method: "GET",
8452
+ url: "/apps/{id}/logs/content",
8453
+ path: {
8454
+ "id": id
8455
+ },
8456
+ query: {
8457
+ "token": token
8458
+ },
8459
+ errors: {
8460
+ 400: `Invalid token`,
8461
+ 401: `Unauthorized`,
8462
+ 403: `Forbidden`,
8463
+ 404: `Function or retained log no longer exists`,
8464
+ 409: `Log position changed; restart the query`,
8465
+ 410: `Token expired; restart the query`,
8466
+ 422: `Too many instances; narrow the time range and query again`,
8467
+ 502: `Log provider failed`,
8468
+ 503: `Logs unavailable or provider query incomplete; retry later`
8469
+ }
8470
+ });
8471
+ }
8472
+ /**
8473
+ * @returns any Success
8474
+ * @throws ApiError
8475
+ */
8476
+ bindDatabase({
8477
+ id,
8478
+ databaseId
8479
+ }) {
8480
+ return this.httpRequest.request({
8481
+ method: "PUT",
8482
+ url: "/apps/{id}/databases/{databaseId}",
6939
8483
  path: {
6940
8484
  "id": id,
6941
- "domainId": domainId
8485
+ "databaseId": databaseId
6942
8486
  },
6943
8487
  errors: {
6944
- 404: `Domain not found`
8488
+ 400: `Invalid input`,
8489
+ 401: `Unauthorized`,
8490
+ 403: `Forbidden`,
8491
+ 404: `Not found`,
8492
+ 409: `Conflict`,
8493
+ 503: `Temporarily unavailable`
6945
8494
  }
6946
8495
  });
6947
8496
  }
6948
8497
  /**
6949
- * @returns string Serverless API contract; paths are relative to /api/v1/serverless.
8498
+ * @returns any Success
6950
8499
  * @throws ApiError
6951
8500
  */
6952
- getServerlessOpenApi() {
8501
+ unbindDatabase({
8502
+ id,
8503
+ databaseId
8504
+ }) {
6953
8505
  return this.httpRequest.request({
6954
- method: "GET",
6955
- url: "/openapi.yaml"
8506
+ method: "DELETE",
8507
+ url: "/apps/{id}/databases/{databaseId}",
8508
+ path: {
8509
+ "id": id,
8510
+ "databaseId": databaseId
8511
+ },
8512
+ errors: {
8513
+ 400: `Invalid input`,
8514
+ 401: `Unauthorized`,
8515
+ 403: `Forbidden`,
8516
+ 404: `Not found`,
8517
+ 409: `Conflict`,
8518
+ 503: `Temporarily unavailable`
8519
+ }
6956
8520
  });
6957
8521
  }
6958
8522
  /**
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
8523
+ * @returns Database Success
6961
8524
  * @throws ApiError
6962
8525
  */
6963
- listApps() {
8526
+ listDatabases() {
6964
8527
  return this.httpRequest.request({
6965
8528
  method: "GET",
6966
- url: "/apps",
8529
+ url: "/databases",
6967
8530
  errors: {
6968
8531
  400: `Invalid input`,
6969
8532
  401: `Unauthorized`,
@@ -6975,15 +8538,15 @@ var DefaultService3 = class {
6975
8538
  });
6976
8539
  }
6977
8540
  /**
6978
- * @returns App Success
8541
+ * @returns Database Success
6979
8542
  * @throws ApiError
6980
8543
  */
6981
- createApp({
8544
+ createDatabase({
6982
8545
  requestBody
6983
8546
  }) {
6984
8547
  return this.httpRequest.request({
6985
8548
  method: "POST",
6986
- url: "/apps",
8549
+ url: "/databases",
6987
8550
  body: requestBody,
6988
8551
  mediaType: "application/json",
6989
8552
  errors: {
@@ -6997,269 +8560,317 @@ var DefaultService3 = class {
6997
8560
  });
6998
8561
  }
6999
8562
  /**
7000
- * @returns App Success
8563
+ * @returns Database Database creation or restore progress; credentials are returned only when ready.
8564
+ * @throws ApiError
8565
+ */
8566
+ getDatabase({
8567
+ id
8568
+ }) {
8569
+ return this.httpRequest.request({
8570
+ method: "GET",
8571
+ url: "/databases/{id}",
8572
+ path: {
8573
+ "id": id
8574
+ },
8575
+ errors: {
8576
+ 404: `Not found in this organization`
8577
+ }
8578
+ });
8579
+ }
8580
+ /**
8581
+ * @returns any Success
8582
+ * @throws ApiError
8583
+ */
8584
+ deleteDatabase({
8585
+ id
8586
+ }) {
8587
+ return this.httpRequest.request({
8588
+ method: "DELETE",
8589
+ url: "/databases/{id}",
8590
+ path: {
8591
+ "id": id
8592
+ },
8593
+ errors: {
8594
+ 400: `Invalid input`,
8595
+ 401: `Unauthorized`,
8596
+ 403: `Forbidden`,
8597
+ 404: `Not found`,
8598
+ 409: `Conflict`,
8599
+ 503: `Temporarily unavailable`
8600
+ }
8601
+ });
8602
+ }
8603
+ /**
8604
+ * @returns TransactionalEventQueue Recent committed events and the shared organization delivery limit
8605
+ * @throws ApiError
8606
+ */
8607
+ listDatabaseEvents({
8608
+ id,
8609
+ before
8610
+ }) {
8611
+ return this.httpRequest.request({
8612
+ method: "GET",
8613
+ url: "/databases/{id}/event-queue",
8614
+ path: {
8615
+ "id": id
8616
+ },
8617
+ query: {
8618
+ "before": before
8619
+ },
8620
+ errors: {
8621
+ 404: `Database not found in this organization`,
8622
+ 503: `Event queue currently unavailable`
8623
+ }
8624
+ });
8625
+ }
8626
+ /**
8627
+ * 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.
8628
+ * @returns Database Durable creation accepted. Poll the database until ready before connecting.
8629
+ * @throws ApiError
8630
+ */
8631
+ createDatabaseBranch({
8632
+ id,
8633
+ requestBody
8634
+ }) {
8635
+ return this.httpRequest.request({
8636
+ method: "POST",
8637
+ url: "/databases/{id}/branches",
8638
+ path: {
8639
+ "id": id
8640
+ },
8641
+ body: requestBody,
8642
+ mediaType: "application/json",
8643
+ errors: {
8644
+ 404: `Primary database not found in this organization`,
8645
+ 409: `Primary unavailable`
8646
+ }
8647
+ });
8648
+ }
8649
+ /**
8650
+ * List non-deleted branches of this primary database, including creation and deletion progress. Branches are omitted from the ordinary database list.
8651
+ * @returns DatabaseBranchList Branches ordered by UUID
8652
+ * @throws ApiError
8653
+ */
8654
+ listDatabaseBranches({
8655
+ id,
8656
+ after
8657
+ }) {
8658
+ return this.httpRequest.request({
8659
+ method: "GET",
8660
+ url: "/databases/{id}/branches",
8661
+ path: {
8662
+ "id": id
8663
+ },
8664
+ query: {
8665
+ "after": after
8666
+ },
8667
+ errors: {
8668
+ 404: `Primary database not found in this organization`
8669
+ }
8670
+ });
8671
+ }
8672
+ /**
8673
+ * 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.
8674
+ * @returns DatabaseRollback Durable rollback accepted; reconnect existing WebSockets after completion.
8675
+ * @throws ApiError
8676
+ */
8677
+ rollbackDatabase({
8678
+ id,
8679
+ requestBody
8680
+ }) {
8681
+ return this.httpRequest.request({
8682
+ method: "POST",
8683
+ url: "/databases/{id}/rollback",
8684
+ path: {
8685
+ "id": id
8686
+ },
8687
+ body: requestBody,
8688
+ mediaType: "application/json"
8689
+ });
8690
+ }
8691
+ /**
8692
+ * @returns DatabaseRollbackList Recover operation IDs after an uncertain create response; at most 100 per page.
8693
+ * @throws ApiError
8694
+ */
8695
+ listDatabaseRollbacks({
8696
+ id,
8697
+ after
8698
+ }) {
8699
+ return this.httpRequest.request({
8700
+ method: "GET",
8701
+ url: "/databases/{id}/rollbacks",
8702
+ path: {
8703
+ "id": id
8704
+ },
8705
+ query: {
8706
+ "after": after
8707
+ }
8708
+ });
8709
+ }
8710
+ /**
8711
+ * @returns DatabaseRollback Rollback and old storage cleanup progress
7001
8712
  * @throws ApiError
7002
8713
  */
7003
- getApp({
8714
+ getDatabaseRollback({
7004
8715
  id
7005
8716
  }) {
7006
8717
  return this.httpRequest.request({
7007
8718
  method: "GET",
7008
- url: "/apps/{id}",
8719
+ url: "/database-rollbacks/{id}",
7009
8720
  path: {
7010
8721
  "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
8722
  }
7020
8723
  });
7021
8724
  }
7022
8725
  /**
7023
- * @returns App Success
8726
+ * @returns DatabaseRollback Retry the same operation and physical namespace
7024
8727
  * @throws ApiError
7025
8728
  */
7026
- updateApp({
7027
- id,
7028
- requestBody
8729
+ retryDatabaseRollback({
8730
+ id
7029
8731
  }) {
7030
8732
  return this.httpRequest.request({
7031
- method: "PATCH",
7032
- url: "/apps/{id}",
8733
+ method: "POST",
8734
+ url: "/database-rollbacks/{id}/retry",
7033
8735
  path: {
7034
8736
  "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
8737
  }
7046
8738
  });
7047
8739
  }
7048
8740
  /**
7049
- * @returns any Success
8741
+ * Cancel before the storage pointer switches. Old storage stays in maintenance until explicitly released.
8742
+ * @returns DatabaseRollback Cancelled; staged storage cleanup is durable
7050
8743
  * @throws ApiError
7051
8744
  */
7052
- deleteApp({
8745
+ cancelDatabaseRollback({
7053
8746
  id
7054
8747
  }) {
7055
8748
  return this.httpRequest.request({
7056
- method: "DELETE",
7057
- url: "/apps/{id}",
8749
+ method: "POST",
8750
+ url: "/database-rollbacks/{id}/cancel",
7058
8751
  path: {
7059
8752
  "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
8753
  }
7069
8754
  });
7070
8755
  }
7071
8756
  /**
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.
8757
+ * Queue an offline backup of a primary database. The task enters maintenance, gracefully drains compute and leaves the source in maintenance after completion.
8758
+ * @returns DatabaseBackup Durable backup task accepted
7086
8759
  * @throws ApiError
7087
8760
  */
7088
- listAppLogs({
7089
- id,
7090
- from,
7091
- to,
7092
- limit = 100,
7093
- stream,
7094
- cursor
8761
+ createDatabaseBackup({
8762
+ id
7095
8763
  }) {
7096
8764
  return this.httpRequest.request({
7097
- method: "GET",
7098
- url: "/apps/{id}/logs",
8765
+ method: "POST",
8766
+ url: "/databases/{id}/backups",
7099
8767
  path: {
7100
8768
  "id": id
7101
8769
  },
7102
- query: {
7103
- "from": from,
7104
- "to": to,
7105
- "limit": limit,
7106
- "stream": stream,
7107
- "cursor": cursor
7108
- },
7109
8770
  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`
8771
+ 404: `Not found in this organization`,
8772
+ 409: `Database is not ready or already has a pending backup`
7119
8773
  }
7120
8774
  });
7121
8775
  }
7122
8776
  /**
7123
- * Download one original log message referenced by a truncated preview
7124
- * @returns binary Original UTF-8 log message, served as an attachment.
8777
+ * 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.
8778
+ * @returns DatabaseBackup Backup queued. The restore point is fixed when the worker captures the branch.
7125
8779
  * @throws ApiError
7126
8780
  */
7127
- downloadAppLogContent({
7128
- id,
7129
- token
8781
+ createOnlineDatabaseBackup({
8782
+ id
7130
8783
  }) {
7131
8784
  return this.httpRequest.request({
7132
- method: "GET",
7133
- url: "/apps/{id}/logs/content",
8785
+ method: "POST",
8786
+ url: "/databases/{id}/online-backups",
7134
8787
  path: {
7135
8788
  "id": id
7136
8789
  },
7137
- query: {
7138
- "token": token
7139
- },
7140
8790
  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`
8791
+ 404: `Not found in this organization`,
8792
+ 409: `Source unavailable or an unfinished backup or rollback exists`
7150
8793
  }
7151
8794
  });
7152
8795
  }
7153
8796
  /**
7154
- * @returns any Success
8797
+ * @returns DatabaseBackupList Organization backups ordered by UUID; backups survive source deletion.
7155
8798
  * @throws ApiError
7156
8799
  */
7157
- bindDatabase({
7158
- id,
7159
- databaseId
8800
+ listDatabaseBackups({
8801
+ after
7160
8802
  }) {
7161
8803
  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`
8804
+ method: "GET",
8805
+ url: "/database-backups",
8806
+ query: {
8807
+ "after": after
7175
8808
  }
7176
8809
  });
7177
8810
  }
7178
8811
  /**
7179
- * @returns any Success
8812
+ * @returns DatabaseBackup Backup state and verification metadata
7180
8813
  * @throws ApiError
7181
8814
  */
7182
- unbindDatabase({
7183
- id,
7184
- databaseId
8815
+ getDatabaseBackup({
8816
+ id
7185
8817
  }) {
7186
8818
  return this.httpRequest.request({
7187
- method: "DELETE",
7188
- url: "/apps/{id}/databases/{databaseId}",
8819
+ method: "GET",
8820
+ url: "/database-backups/{id}",
7189
8821
  path: {
7190
- "id": id,
7191
- "databaseId": databaseId
8822
+ "id": id
7192
8823
  },
7193
8824
  errors: {
7194
- 400: `Invalid input`,
7195
- 401: `Unauthorized`,
7196
- 403: `Forbidden`,
7197
- 404: `Not found`,
7198
- 409: `Conflict`,
7199
- 503: `Temporarily unavailable`
8825
+ 404: `Not found in this organization`
7200
8826
  }
7201
8827
  });
7202
8828
  }
7203
8829
  /**
7204
- * @returns Database Success
8830
+ * @returns DatabaseBackup Cancelled or already-complete backup. For an offline backup, release source maintenance separately after inspecting the result.
7205
8831
  * @throws ApiError
7206
8832
  */
7207
- listDatabases() {
8833
+ cancelDatabaseBackup({
8834
+ id
8835
+ }) {
7208
8836
  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`
8837
+ method: "POST",
8838
+ url: "/database-backups/{id}/cancel",
8839
+ path: {
8840
+ "id": id
7218
8841
  }
7219
8842
  });
7220
8843
  }
7221
8844
  /**
7222
- * @returns Database Success
8845
+ * @returns DatabaseMaintenance New compute and compaction admission blocked; existing work has not necessarily drained.
7223
8846
  * @throws ApiError
7224
8847
  */
7225
- createDatabase({
7226
- requestBody
8848
+ startDatabaseMaintenance({
8849
+ id
7227
8850
  }) {
7228
8851
  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`
8852
+ method: "PUT",
8853
+ url: "/databases/{id}/maintenance",
8854
+ path: {
8855
+ "id": id
7240
8856
  }
7241
8857
  });
7242
8858
  }
7243
8859
  /**
7244
- * @returns any Success
8860
+ * @returns DatabaseMaintenance Database may start again
7245
8861
  * @throws ApiError
7246
8862
  */
7247
- deleteDatabase({
8863
+ finishDatabaseMaintenance({
7248
8864
  id
7249
8865
  }) {
7250
8866
  return this.httpRequest.request({
7251
8867
  method: "DELETE",
7252
- url: "/databases/{id}",
8868
+ url: "/databases/{id}/maintenance",
7253
8869
  path: {
7254
8870
  "id": id
7255
8871
  },
7256
8872
  errors: {
7257
- 400: `Invalid input`,
7258
- 401: `Unauthorized`,
7259
- 403: `Forbidden`,
7260
- 404: `Not found`,
7261
- 409: `Conflict`,
7262
- 503: `Temporarily unavailable`
8873
+ 409: `An unfinished offline backup or restore still owns maintenance`
7263
8874
  }
7264
8875
  });
7265
8876
  }
@@ -7384,7 +8995,9 @@ var DefaultService3 = class {
7384
8995
  });
7385
8996
  }
7386
8997
  /**
7387
- * @returns Deployment Success
8998
+ * Deploy a package to the target cloud function
8999
+ * Start an asynchronous rollout on the selected cloud function, including production updates. On success, the package becomes active for that function's URL.
9000
+ * @returns Deployment Function deployment accepted
7388
9001
  * @throws ApiError
7389
9002
  */
7390
9003
  createDeployment({
@@ -7463,28 +9076,6 @@ var DefaultService3 = class {
7463
9076
  }
7464
9077
  });
7465
9078
  }
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
9079
  };
7489
9080
 
7490
9081
  // src/generated/serverless/ServerlessClient.ts
@@ -7710,58 +9301,124 @@ var operations = {
7710
9301
  "authenticated": true,
7711
9302
  "redirect": false,
7712
9303
  "responses": {
7713
- "200": "json"
9304
+ "200": "json"
9305
+ }
9306
+ },
9307
+ "DELETE /account/sso/grants/{grantId}": {
9308
+ "authenticated": true,
9309
+ "redirect": false,
9310
+ "responses": {
9311
+ "204": "void"
9312
+ }
9313
+ },
9314
+ "POST /account/sso/requests/{requestId}/authorize": {
9315
+ "authenticated": true,
9316
+ "redirect": false,
9317
+ "responses": {
9318
+ "200": "json"
9319
+ }
9320
+ },
9321
+ "DELETE /agent-contact-list/{agentId}": {
9322
+ "authenticated": true,
9323
+ "redirect": false,
9324
+ "responses": {
9325
+ "204": "void",
9326
+ "400": "void",
9327
+ "403": "void",
9328
+ "404": "void"
9329
+ }
9330
+ },
9331
+ "GET /agent-contact-list/{agentId}": {
9332
+ "authenticated": true,
9333
+ "redirect": false,
9334
+ "responses": {
9335
+ "200": "json",
9336
+ "403": "void",
9337
+ "404": "void"
9338
+ }
9339
+ },
9340
+ "POST /agent-contact-list/{agentId}": {
9341
+ "authenticated": true,
9342
+ "redirect": false,
9343
+ "responses": {
9344
+ "201": "json",
9345
+ "400": "void",
9346
+ "403": "void",
9347
+ "404": "void",
9348
+ "409": "void"
9349
+ }
9350
+ },
9351
+ "PUT /agent-contact-list/{agentId}/settings": {
9352
+ "authenticated": true,
9353
+ "redirect": false,
9354
+ "responses": {
9355
+ "200": "json",
9356
+ "403": "void",
9357
+ "404": "void"
7714
9358
  }
7715
9359
  },
7716
- "DELETE /account/sso/grants/{grantId}": {
9360
+ "GET /agent-directory": {
7717
9361
  "authenticated": true,
7718
9362
  "redirect": false,
7719
9363
  "responses": {
7720
- "204": "void"
9364
+ "200": "json",
9365
+ "400": "void",
9366
+ "403": "void",
9367
+ "404": "void"
7721
9368
  }
7722
9369
  },
7723
- "POST /account/sso/requests/{requestId}/authorize": {
9370
+ "GET /agent-directory/agents/{agentId}/path": {
7724
9371
  "authenticated": true,
7725
9372
  "redirect": false,
7726
9373
  "responses": {
7727
- "200": "json"
9374
+ "200": "json",
9375
+ "403": "void",
9376
+ "404": "void"
7728
9377
  }
7729
9378
  },
7730
- "DELETE /agent-contact-list/{agentId}": {
9379
+ "GET /agent-directory/groups/{groupId}/path": {
7731
9380
  "authenticated": true,
7732
9381
  "redirect": false,
7733
9382
  "responses": {
7734
- "204": "void",
7735
- "400": "void",
9383
+ "200": "json",
7736
9384
  "403": "void",
7737
9385
  "404": "void"
7738
9386
  }
7739
9387
  },
7740
- "GET /agent-contact-list/{agentId}": {
9388
+ "GET /agent-favorites": {
7741
9389
  "authenticated": true,
7742
9390
  "redirect": false,
7743
9391
  "responses": {
7744
9392
  "200": "json",
7745
- "403": "void",
7746
- "404": "void"
9393
+ "400": "void",
9394
+ "403": "void"
7747
9395
  }
7748
9396
  },
7749
- "POST /agent-contact-list/{agentId}": {
9397
+ "POST /agent-groups": {
7750
9398
  "authenticated": true,
7751
9399
  "redirect": false,
7752
9400
  "responses": {
7753
9401
  "201": "json",
7754
9402
  "400": "void",
7755
9403
  "403": "void",
7756
- "404": "void",
7757
- "409": "void"
9404
+ "404": "void"
7758
9405
  }
7759
9406
  },
7760
- "PUT /agent-contact-list/{agentId}/settings": {
9407
+ "DELETE /agent-groups/{groupId}": {
9408
+ "authenticated": true,
9409
+ "redirect": false,
9410
+ "responses": {
9411
+ "204": "void",
9412
+ "403": "void",
9413
+ "404": "void"
9414
+ }
9415
+ },
9416
+ "PUT /agent-groups/{groupId}": {
7761
9417
  "authenticated": true,
7762
9418
  "redirect": false,
7763
9419
  "responses": {
7764
9420
  "200": "json",
9421
+ "400": "void",
7765
9422
  "403": "void",
7766
9423
  "404": "void"
7767
9424
  }
@@ -8070,6 +9727,29 @@ var operations = {
8070
9727
  "409": "void"
8071
9728
  }
8072
9729
  },
9730
+ "POST /agent-sessions/{sessionId}/side-query": {
9731
+ "authenticated": true,
9732
+ "redirect": false,
9733
+ "responses": {
9734
+ "200": "json",
9735
+ "400": "void",
9736
+ "403": "void",
9737
+ "404": "void",
9738
+ "409": "void",
9739
+ "502": "void",
9740
+ "504": "void"
9741
+ }
9742
+ },
9743
+ "GET /agent-sessions/{sessionId}/subscriptions": {
9744
+ "authenticated": true,
9745
+ "redirect": false,
9746
+ "responses": {
9747
+ "200": "json",
9748
+ "400": "void",
9749
+ "403": "void",
9750
+ "404": "void"
9751
+ }
9752
+ },
8073
9753
  "PUT /agent-sessions/{sessionId}/title": {
8074
9754
  "authenticated": true,
8075
9755
  "redirect": false,
@@ -8180,6 +9860,31 @@ var operations = {
8180
9860
  "404": "void"
8181
9861
  }
8182
9862
  },
9863
+ "DELETE /agents/{agentId}/favorite": {
9864
+ "authenticated": true,
9865
+ "redirect": false,
9866
+ "responses": {
9867
+ "204": "void"
9868
+ }
9869
+ },
9870
+ "PUT /agents/{agentId}/favorite": {
9871
+ "authenticated": true,
9872
+ "redirect": false,
9873
+ "responses": {
9874
+ "204": "void",
9875
+ "403": "void",
9876
+ "404": "void"
9877
+ }
9878
+ },
9879
+ "PUT /agents/{agentId}/group": {
9880
+ "authenticated": true,
9881
+ "redirect": false,
9882
+ "responses": {
9883
+ "204": "void",
9884
+ "403": "void",
9885
+ "404": "void"
9886
+ }
9887
+ },
8183
9888
  "POST /agents/{agentId}/publish": {
8184
9889
  "authenticated": true,
8185
9890
  "redirect": false,
@@ -8432,6 +10137,27 @@ var operations = {
8432
10137
  "401": "void"
8433
10138
  }
8434
10139
  },
10140
+ "GET /billing/cloud-drive/capacities": {
10141
+ "authenticated": true,
10142
+ "redirect": false,
10143
+ "responses": {
10144
+ "200": "json"
10145
+ }
10146
+ },
10147
+ "GET /billing/cloud-drive/capacity-summary": {
10148
+ "authenticated": true,
10149
+ "redirect": false,
10150
+ "responses": {
10151
+ "200": "json"
10152
+ }
10153
+ },
10154
+ "GET /billing/cloud-drive/invoices/{invoiceDay}": {
10155
+ "authenticated": true,
10156
+ "redirect": false,
10157
+ "responses": {
10158
+ "200": "json"
10159
+ }
10160
+ },
8435
10161
  "GET /billing/credits": {
8436
10162
  "authenticated": true,
8437
10163
  "redirect": false,
@@ -8758,7 +10484,8 @@ var operations = {
8758
10484
  "400": "void",
8759
10485
  "403": "void",
8760
10486
  "404": "void",
8761
- "409": "void"
10487
+ "409": "void",
10488
+ "503": "void"
8762
10489
  }
8763
10490
  },
8764
10491
  "POST /cloud-drive/dirs": {
@@ -8874,6 +10601,55 @@ var operations = {
8874
10601
  "413": "void"
8875
10602
  }
8876
10603
  },
10604
+ "GET /cloud-sandboxes": {
10605
+ "authenticated": true,
10606
+ "redirect": false,
10607
+ "responses": {
10608
+ "200": "json"
10609
+ }
10610
+ },
10611
+ "POST /cloud-sandboxes": {
10612
+ "authenticated": true,
10613
+ "redirect": false,
10614
+ "responses": {
10615
+ "202": "json"
10616
+ }
10617
+ },
10618
+ "DELETE /cloud-sandboxes/{sandboxId}": {
10619
+ "authenticated": true,
10620
+ "redirect": false,
10621
+ "responses": {
10622
+ "202": "void"
10623
+ }
10624
+ },
10625
+ "GET /cloud-sandboxes/{sandboxId}": {
10626
+ "authenticated": true,
10627
+ "redirect": false,
10628
+ "responses": {
10629
+ "200": "json"
10630
+ }
10631
+ },
10632
+ "PATCH /cloud-sandboxes/{sandboxId}": {
10633
+ "authenticated": true,
10634
+ "redirect": false,
10635
+ "responses": {
10636
+ "200": "json"
10637
+ }
10638
+ },
10639
+ "POST /cloud-sandboxes/{sandboxId}/pause": {
10640
+ "authenticated": true,
10641
+ "redirect": false,
10642
+ "responses": {
10643
+ "202": "void"
10644
+ }
10645
+ },
10646
+ "POST /cloud-sandboxes/{sandboxId}/resume": {
10647
+ "authenticated": true,
10648
+ "redirect": false,
10649
+ "responses": {
10650
+ "202": "void"
10651
+ }
10652
+ },
8877
10653
  "GET /consent-forms": {
8878
10654
  "authenticated": true,
8879
10655
  "redirect": false,
@@ -9412,6 +11188,55 @@ var operations = {
9412
11188
  "409": "json"
9413
11189
  }
9414
11190
  },
11191
+ "DELETE /org-users/{namespace}/{username}": {
11192
+ "authenticated": true,
11193
+ "redirect": false,
11194
+ "responses": {
11195
+ "204": "void",
11196
+ "403": "void",
11197
+ "404": "void",
11198
+ "409": "void"
11199
+ }
11200
+ },
11201
+ "PATCH /org-users/{namespace}/{username}": {
11202
+ "authenticated": true,
11203
+ "redirect": false,
11204
+ "responses": {
11205
+ "200": "json",
11206
+ "403": "void",
11207
+ "404": "void"
11208
+ }
11209
+ },
11210
+ "POST /org-users/{namespace}/{username}/deactivate": {
11211
+ "authenticated": true,
11212
+ "redirect": false,
11213
+ "responses": {
11214
+ "204": "void",
11215
+ "403": "void",
11216
+ "404": "void",
11217
+ "409": "void"
11218
+ }
11219
+ },
11220
+ "POST /org-users/{namespace}/{username}/reactivate": {
11221
+ "authenticated": true,
11222
+ "redirect": false,
11223
+ "responses": {
11224
+ "204": "void",
11225
+ "402": "void",
11226
+ "403": "void",
11227
+ "404": "void",
11228
+ "409": "json"
11229
+ }
11230
+ },
11231
+ "POST /org-users/{namespace}/{username}/reset-password": {
11232
+ "authenticated": true,
11233
+ "redirect": false,
11234
+ "responses": {
11235
+ "200": "json",
11236
+ "403": "void",
11237
+ "404": "void"
11238
+ }
11239
+ },
9415
11240
  "DELETE /org-users/{userId}": {
9416
11241
  "authenticated": true,
9417
11242
  "redirect": false,
@@ -9628,59 +11453,122 @@ var operations = {
9628
11453
  "409": "void"
9629
11454
  }
9630
11455
  },
9631
- "DELETE /org/groups/{groupId}": {
11456
+ "DELETE /org/groups/{groupId}": {
11457
+ "authenticated": true,
11458
+ "redirect": false,
11459
+ "responses": {
11460
+ "204": "void",
11461
+ "400": "void",
11462
+ "403": "void",
11463
+ "404": "void",
11464
+ "409": "void"
11465
+ }
11466
+ },
11467
+ "PUT /org/groups/{groupId}": {
11468
+ "authenticated": true,
11469
+ "redirect": false,
11470
+ "responses": {
11471
+ "200": "json",
11472
+ "400": "void",
11473
+ "403": "void",
11474
+ "404": "void",
11475
+ "409": "void"
11476
+ }
11477
+ },
11478
+ "GET /org/groups/{groupId}/enterprise-permission-policies": {
11479
+ "authenticated": true,
11480
+ "redirect": false,
11481
+ "responses": {
11482
+ "200": "json",
11483
+ "400": "void",
11484
+ "403": "void",
11485
+ "404": "void"
11486
+ }
11487
+ },
11488
+ "PUT /org/groups/{groupId}/enterprise-permission-policies": {
11489
+ "authenticated": true,
11490
+ "redirect": false,
11491
+ "responses": {
11492
+ "200": "json",
11493
+ "400": "void",
11494
+ "403": "void",
11495
+ "404": "void"
11496
+ }
11497
+ },
11498
+ "GET /org/groups/{groupId}/enterprise-permissions": {
11499
+ "authenticated": true,
11500
+ "redirect": false,
11501
+ "responses": {
11502
+ "200": "json",
11503
+ "400": "void",
11504
+ "403": "void",
11505
+ "404": "void"
11506
+ }
11507
+ },
11508
+ "PUT /org/groups/{groupId}/enterprise-permissions": {
11509
+ "authenticated": true,
11510
+ "redirect": false,
11511
+ "responses": {
11512
+ "200": "json",
11513
+ "400": "void",
11514
+ "403": "void",
11515
+ "404": "void"
11516
+ }
11517
+ },
11518
+ "PUT /org/groups/{groupId}/members": {
11519
+ "authenticated": true,
11520
+ "redirect": false,
11521
+ "responses": {
11522
+ "200": "json",
11523
+ "400": "void",
11524
+ "403": "void",
11525
+ "404": "void",
11526
+ "409": "void"
11527
+ }
11528
+ },
11529
+ "GET /org/llm-settings": {
9632
11530
  "authenticated": true,
9633
11531
  "redirect": false,
9634
11532
  "responses": {
9635
- "204": "void",
9636
- "400": "void",
9637
- "403": "void",
9638
- "404": "void",
9639
- "409": "void"
11533
+ "200": "json"
9640
11534
  }
9641
11535
  },
9642
- "PUT /org/groups/{groupId}": {
11536
+ "PUT /org/llm-settings": {
9643
11537
  "authenticated": true,
9644
11538
  "redirect": false,
9645
11539
  "responses": {
9646
11540
  "200": "json",
9647
11541
  "400": "void",
9648
11542
  "403": "void",
9649
- "404": "void",
9650
- "409": "void"
11543
+ "404": "void"
9651
11544
  }
9652
11545
  },
9653
- "GET /org/groups/{groupId}/enterprise-permission-policies": {
11546
+ "GET /org/permissions": {
9654
11547
  "authenticated": true,
9655
11548
  "redirect": false,
9656
11549
  "responses": {
9657
11550
  "200": "json",
9658
- "400": "void",
9659
- "403": "void",
9660
- "404": "void"
11551
+ "401": "void"
9661
11552
  }
9662
11553
  },
9663
- "PUT /org/groups/{groupId}/enterprise-permission-policies": {
11554
+ "GET /org/quotas": {
9664
11555
  "authenticated": true,
9665
11556
  "redirect": false,
9666
11557
  "responses": {
9667
11558
  "200": "json",
9668
- "400": "void",
9669
- "403": "void",
9670
- "404": "void"
11559
+ "401": "void"
9671
11560
  }
9672
11561
  },
9673
- "GET /org/groups/{groupId}/enterprise-permissions": {
11562
+ "GET /org/users/{namespace}/{username}/daily-budget": {
9674
11563
  "authenticated": true,
9675
11564
  "redirect": false,
9676
11565
  "responses": {
9677
11566
  "200": "json",
9678
- "400": "void",
9679
11567
  "403": "void",
9680
11568
  "404": "void"
9681
11569
  }
9682
11570
  },
9683
- "PUT /org/groups/{groupId}/enterprise-permissions": {
11571
+ "PUT /org/users/{namespace}/{username}/daily-budget": {
9684
11572
  "authenticated": true,
9685
11573
  "redirect": false,
9686
11574
  "responses": {
@@ -9690,7 +11578,7 @@ var operations = {
9690
11578
  "404": "void"
9691
11579
  }
9692
11580
  },
9693
- "PUT /org/groups/{groupId}/members": {
11581
+ "GET /org/users/{namespace}/{username}/enterprise-permission-policies": {
9694
11582
  "authenticated": true,
9695
11583
  "redirect": false,
9696
11584
  "responses": {
@@ -9701,37 +11589,34 @@ var operations = {
9701
11589
  "409": "void"
9702
11590
  }
9703
11591
  },
9704
- "GET /org/llm-settings": {
9705
- "authenticated": true,
9706
- "redirect": false,
9707
- "responses": {
9708
- "200": "json"
9709
- }
9710
- },
9711
- "PUT /org/llm-settings": {
11592
+ "PUT /org/users/{namespace}/{username}/enterprise-permission-policies": {
9712
11593
  "authenticated": true,
9713
11594
  "redirect": false,
9714
11595
  "responses": {
9715
11596
  "200": "json",
9716
11597
  "400": "void",
9717
11598
  "403": "void",
9718
- "404": "void"
11599
+ "404": "void",
11600
+ "409": "void"
9719
11601
  }
9720
11602
  },
9721
- "GET /org/permissions": {
11603
+ "GET /org/users/{namespace}/{username}/enterprise-permissions": {
9722
11604
  "authenticated": true,
9723
11605
  "redirect": false,
9724
11606
  "responses": {
9725
11607
  "200": "json",
9726
- "401": "void"
11608
+ "403": "void",
11609
+ "404": "void"
9727
11610
  }
9728
11611
  },
9729
- "GET /org/quotas": {
11612
+ "PUT /org/users/{namespace}/{username}/enterprise-permissions": {
9730
11613
  "authenticated": true,
9731
11614
  "redirect": false,
9732
11615
  "responses": {
9733
11616
  "200": "json",
9734
- "401": "void"
11617
+ "400": "void",
11618
+ "403": "void",
11619
+ "404": "void"
9735
11620
  }
9736
11621
  },
9737
11622
  "GET /org/users/{userId}/daily-budget": {
@@ -10016,6 +11901,42 @@ var operations = {
10016
11901
  "200": "json"
10017
11902
  }
10018
11903
  },
11904
+ "DELETE /service-users/{namespace}/{username}": {
11905
+ "authenticated": true,
11906
+ "redirect": false,
11907
+ "responses": {
11908
+ "204": "void",
11909
+ "403": "void",
11910
+ "404": "void"
11911
+ }
11912
+ },
11913
+ "GET /service-users/{namespace}/{username}": {
11914
+ "authenticated": true,
11915
+ "redirect": false,
11916
+ "responses": {
11917
+ "200": "json",
11918
+ "403": "void",
11919
+ "404": "void"
11920
+ }
11921
+ },
11922
+ "DELETE /service-users/{userId}": {
11923
+ "authenticated": true,
11924
+ "redirect": false,
11925
+ "responses": {
11926
+ "204": "void",
11927
+ "403": "void",
11928
+ "404": "void"
11929
+ }
11930
+ },
11931
+ "GET /service-users/{userId}": {
11932
+ "authenticated": true,
11933
+ "redirect": false,
11934
+ "responses": {
11935
+ "200": "json",
11936
+ "403": "void",
11937
+ "404": "void"
11938
+ }
11939
+ },
10019
11940
  "GET /session-shares/current": {
10020
11941
  "authenticated": false,
10021
11942
  "redirect": false,
@@ -10114,6 +12035,34 @@ var operations = {
10114
12035
  "200": "json"
10115
12036
  }
10116
12037
  },
12038
+ "POST /sso/cli/refresh": {
12039
+ "authenticated": false,
12040
+ "redirect": false,
12041
+ "responses": {
12042
+ "200": "json"
12043
+ }
12044
+ },
12045
+ "POST /sso/cli/requests": {
12046
+ "authenticated": false,
12047
+ "redirect": false,
12048
+ "responses": {
12049
+ "201": "json"
12050
+ }
12051
+ },
12052
+ "POST /sso/cli/revoke": {
12053
+ "authenticated": false,
12054
+ "redirect": false,
12055
+ "responses": {
12056
+ "204": "void"
12057
+ }
12058
+ },
12059
+ "POST /sso/cli/token": {
12060
+ "authenticated": false,
12061
+ "redirect": false,
12062
+ "responses": {
12063
+ "200": "json"
12064
+ }
12065
+ },
10117
12066
  "DELETE /sso/grants/{grantId}": {
10118
12067
  "authenticated": true,
10119
12068
  "redirect": false,
@@ -10199,7 +12148,162 @@ var operations = {
10199
12148
  "404": "void"
10200
12149
  }
10201
12150
  },
10202
- "GET /trade/products": {
12151
+ "GET /trade/products": {
12152
+ "authenticated": true,
12153
+ "redirect": false,
12154
+ "responses": {
12155
+ "200": "json",
12156
+ "404": "void"
12157
+ }
12158
+ },
12159
+ "POST /trade/products": {
12160
+ "authenticated": true,
12161
+ "redirect": false,
12162
+ "responses": {
12163
+ "201": "json",
12164
+ "400": "void",
12165
+ "404": "void"
12166
+ }
12167
+ },
12168
+ "POST /tradeapi/orders": {
12169
+ "authenticated": false,
12170
+ "redirect": false,
12171
+ "responses": {
12172
+ "201": "json",
12173
+ "400": "void",
12174
+ "401": "void",
12175
+ "402": "void",
12176
+ "404": "void",
12177
+ "409": "void"
12178
+ }
12179
+ },
12180
+ "GET /user-credentials": {
12181
+ "authenticated": true,
12182
+ "redirect": false,
12183
+ "responses": {
12184
+ "200": "json"
12185
+ }
12186
+ },
12187
+ "POST /user-credentials": {
12188
+ "authenticated": true,
12189
+ "redirect": false,
12190
+ "responses": {
12191
+ "201": "json",
12192
+ "400": "void",
12193
+ "409": "void"
12194
+ }
12195
+ },
12196
+ "DELETE /user-credentials/{credId}": {
12197
+ "authenticated": true,
12198
+ "redirect": false,
12199
+ "responses": {
12200
+ "204": "void",
12201
+ "403": "void",
12202
+ "404": "void",
12203
+ "409": "void"
12204
+ }
12205
+ },
12206
+ "PUT /user-credentials/{credId}": {
12207
+ "authenticated": true,
12208
+ "redirect": false,
12209
+ "responses": {
12210
+ "200": "json",
12211
+ "400": "void",
12212
+ "403": "void",
12213
+ "404": "void",
12214
+ "409": "void"
12215
+ }
12216
+ },
12217
+ "POST /workload-credentials/refresh": {
12218
+ "authenticated": false,
12219
+ "redirect": false,
12220
+ "responses": {
12221
+ "200": "json",
12222
+ "401": "void"
12223
+ }
12224
+ }
12225
+ },
12226
+ "anclax": {
12227
+ "POST /auth/sign-in": {
12228
+ "authenticated": false,
12229
+ "redirect": false,
12230
+ "responses": {
12231
+ "200": "json",
12232
+ "401": "void",
12233
+ "404": "void"
12234
+ }
12235
+ },
12236
+ "POST /auth/sign-up": {
12237
+ "authenticated": false,
12238
+ "redirect": false,
12239
+ "responses": {
12240
+ "201": "json",
12241
+ "404": "void",
12242
+ "409": "void"
12243
+ }
12244
+ },
12245
+ "POST /auth/sign-out": {
12246
+ "authenticated": true,
12247
+ "redirect": false,
12248
+ "responses": {
12249
+ "200": "void"
12250
+ }
12251
+ },
12252
+ "POST /auth/refresh": {
12253
+ "authenticated": false,
12254
+ "redirect": false,
12255
+ "responses": {
12256
+ "200": "json",
12257
+ "401": "void"
12258
+ }
12259
+ },
12260
+ "GET /tasks": {
12261
+ "authenticated": true,
12262
+ "redirect": false,
12263
+ "responses": {
12264
+ "200": "json"
12265
+ }
12266
+ },
12267
+ "GET /events": {
12268
+ "authenticated": true,
12269
+ "redirect": false,
12270
+ "responses": {
12271
+ "200": "json"
12272
+ }
12273
+ },
12274
+ "GET /orgs": {
12275
+ "authenticated": true,
12276
+ "redirect": false,
12277
+ "responses": {
12278
+ "200": "json"
12279
+ }
12280
+ },
12281
+ "POST /tasks/{taskID}/try-execute": {
12282
+ "authenticated": true,
12283
+ "redirect": false,
12284
+ "responses": {
12285
+ "200": "void",
12286
+ "404": "void"
12287
+ }
12288
+ }
12289
+ },
12290
+ "serverless": {
12291
+ "GET /cloud-apps": {
12292
+ "authenticated": true,
12293
+ "redirect": false,
12294
+ "responses": {
12295
+ "200": "json",
12296
+ "409": "void"
12297
+ }
12298
+ },
12299
+ "GET /developed-cloud-apps": {
12300
+ "authenticated": true,
12301
+ "redirect": false,
12302
+ "responses": {
12303
+ "200": "json"
12304
+ }
12305
+ },
12306
+ "GET /apps/{id}/cloud-app/profile": {
10203
12307
  "authenticated": true,
10204
12308
  "redirect": false,
10205
12309
  "responses": {
@@ -10207,138 +12311,125 @@ var operations = {
10207
12311
  "404": "void"
10208
12312
  }
10209
12313
  },
10210
- "POST /trade/products": {
12314
+ "PUT /apps/{id}/cloud-app/profile": {
10211
12315
  "authenticated": true,
10212
12316
  "redirect": false,
10213
12317
  "responses": {
10214
- "201": "json",
12318
+ "200": "json",
10215
12319
  "400": "void",
10216
- "404": "void"
12320
+ "404": "void",
12321
+ "413": "void"
10217
12322
  }
10218
12323
  },
10219
- "POST /tradeapi/orders": {
10220
- "authenticated": false,
12324
+ "POST /apps/{id}/cloud-app/releases": {
12325
+ "authenticated": true,
10221
12326
  "redirect": false,
10222
12327
  "responses": {
10223
12328
  "201": "json",
10224
- "400": "void",
10225
- "401": "void",
10226
- "402": "void",
10227
- "404": "void",
10228
12329
  "409": "void"
10229
12330
  }
10230
12331
  },
10231
- "GET /user-credentials": {
12332
+ "GET /cloud-apps/{id}": {
10232
12333
  "authenticated": true,
10233
12334
  "redirect": false,
10234
12335
  "responses": {
10235
- "200": "json"
12336
+ "200": "json",
12337
+ "409": "void"
10236
12338
  }
10237
12339
  },
10238
- "POST /user-credentials": {
12340
+ "DELETE /cloud-apps/{id}": {
10239
12341
  "authenticated": true,
10240
12342
  "redirect": false,
10241
12343
  "responses": {
10242
- "201": "json",
10243
- "400": "void",
12344
+ "200": "json",
10244
12345
  "409": "void"
10245
12346
  }
10246
12347
  },
10247
- "DELETE /user-credentials/{credId}": {
12348
+ "POST /cloud-apps/{id}/installations": {
10248
12349
  "authenticated": true,
10249
12350
  "redirect": false,
10250
12351
  "responses": {
10251
- "204": "void",
10252
- "403": "void",
10253
- "404": "void",
12352
+ "202": "json",
10254
12353
  "409": "void"
10255
12354
  }
10256
12355
  },
10257
- "PUT /user-credentials/{credId}": {
12356
+ "GET /cloud-app-installations": {
10258
12357
  "authenticated": true,
10259
12358
  "redirect": false,
10260
12359
  "responses": {
10261
12360
  "200": "json",
10262
- "400": "void",
10263
- "403": "void",
10264
- "404": "void",
10265
12361
  "409": "void"
10266
12362
  }
10267
12363
  },
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,
12364
+ "POST /cloud-app-installations/{id}/open": {
12365
+ "authenticated": true,
10280
12366
  "redirect": false,
10281
12367
  "responses": {
10282
- "200": "json",
10283
- "401": "void",
10284
- "404": "void"
12368
+ "202": "json",
12369
+ "409": "void"
10285
12370
  }
10286
12371
  },
10287
- "POST /auth/sign-up": {
10288
- "authenticated": false,
12372
+ "GET /cloud-app-installations/{id}": {
12373
+ "authenticated": true,
10289
12374
  "redirect": false,
10290
12375
  "responses": {
10291
- "201": "json",
10292
- "404": "void",
12376
+ "200": "json",
10293
12377
  "409": "void"
10294
12378
  }
10295
12379
  },
10296
- "POST /auth/sign-out": {
12380
+ "DELETE /cloud-app-installations/{id}": {
10297
12381
  "authenticated": true,
10298
12382
  "redirect": false,
10299
12383
  "responses": {
10300
- "200": "void"
12384
+ "202": "json",
12385
+ "409": "void"
10301
12386
  }
10302
12387
  },
10303
- "POST /auth/refresh": {
10304
- "authenticated": false,
12388
+ "POST /cloud-app-installations/{id}/retry": {
12389
+ "authenticated": true,
10305
12390
  "redirect": false,
10306
12391
  "responses": {
10307
- "200": "json",
10308
- "401": "void"
12392
+ "202": "json",
12393
+ "409": "void"
10309
12394
  }
10310
12395
  },
10311
- "GET /tasks": {
12396
+ "GET /root-domains": {
10312
12397
  "authenticated": true,
10313
12398
  "redirect": false,
10314
12399
  "responses": {
10315
12400
  "200": "json"
10316
12401
  }
10317
12402
  },
10318
- "GET /events": {
12403
+ "POST /root-domains": {
10319
12404
  "authenticated": true,
10320
12405
  "redirect": false,
10321
12406
  "responses": {
10322
- "200": "json"
12407
+ "201": "json",
12408
+ "400": "void",
12409
+ "403": "void",
12410
+ "409": "void",
12411
+ "503": "void"
10323
12412
  }
10324
12413
  },
10325
- "GET /orgs": {
12414
+ "PUT /root-domains/{rootDomainId}": {
10326
12415
  "authenticated": true,
10327
12416
  "redirect": false,
10328
12417
  "responses": {
10329
- "200": "json"
12418
+ "200": "json",
12419
+ "403": "void",
12420
+ "404": "void",
12421
+ "409": "void"
10330
12422
  }
10331
12423
  },
10332
- "POST /tasks/{taskID}/try-execute": {
12424
+ "DELETE /root-domains/{rootDomainId}": {
10333
12425
  "authenticated": true,
10334
12426
  "redirect": false,
10335
12427
  "responses": {
10336
- "200": "void",
12428
+ "202": "void",
12429
+ "403": "void",
10337
12430
  "404": "void"
10338
12431
  }
10339
- }
10340
- },
10341
- "serverless": {
12432
+ },
10342
12433
  "GET /apps/{id}/domains": {
10343
12434
  "authenticated": true,
10344
12435
  "redirect": false,
@@ -10358,12 +12449,23 @@ var operations = {
10358
12449
  "503": "void"
10359
12450
  }
10360
12451
  },
12452
+ "PUT /apps/{id}/domains/{domainId}": {
12453
+ "authenticated": true,
12454
+ "redirect": false,
12455
+ "responses": {
12456
+ "200": "json",
12457
+ "400": "void",
12458
+ "404": "void",
12459
+ "409": "void"
12460
+ }
12461
+ },
10361
12462
  "DELETE /apps/{id}/domains/{domainId}": {
10362
12463
  "authenticated": true,
10363
12464
  "redirect": false,
10364
12465
  "responses": {
10365
12466
  "204": "void",
10366
- "404": "void"
12467
+ "404": "void",
12468
+ "409": "void"
10367
12469
  }
10368
12470
  },
10369
12471
  "GET /openapi.yaml": {
@@ -10438,6 +12540,48 @@ var operations = {
10438
12540
  "503": "void"
10439
12541
  }
10440
12542
  },
12543
+ "POST /apps/{id}/instances/{instanceId}/activity": {
12544
+ "authenticated": true,
12545
+ "redirect": false,
12546
+ "responses": {
12547
+ "204": "void",
12548
+ "403": "void",
12549
+ "404": "void"
12550
+ }
12551
+ },
12552
+ "GET /apps/{id}/credential-bindings": {
12553
+ "authenticated": true,
12554
+ "redirect": false,
12555
+ "responses": {
12556
+ "200": "json",
12557
+ "403": "void"
12558
+ }
12559
+ },
12560
+ "PUT /apps/{id}/credential-bindings/{key}": {
12561
+ "authenticated": true,
12562
+ "redirect": false,
12563
+ "responses": {
12564
+ "204": "void",
12565
+ "403": "void",
12566
+ "404": "void"
12567
+ }
12568
+ },
12569
+ "DELETE /apps/{id}/credential-bindings/{key}": {
12570
+ "authenticated": true,
12571
+ "redirect": false,
12572
+ "responses": {
12573
+ "204": "void"
12574
+ }
12575
+ },
12576
+ "GET /apps/{id}/credential-bindings/{key}": {
12577
+ "authenticated": true,
12578
+ "redirect": false,
12579
+ "responses": {
12580
+ "200": "json",
12581
+ "403": "void",
12582
+ "404": "void"
12583
+ }
12584
+ },
10441
12585
  "GET /apps/{id}/logs": {
10442
12586
  "authenticated": true,
10443
12587
  "redirect": false,
@@ -10514,6 +12658,7 @@ var operations = {
10514
12658
  "redirect": false,
10515
12659
  "responses": {
10516
12660
  "200": "json",
12661
+ "202": "json",
10517
12662
  "400": "void",
10518
12663
  "401": "void",
10519
12664
  "403": "void",
@@ -10522,6 +12667,14 @@ var operations = {
10522
12667
  "503": "void"
10523
12668
  }
10524
12669
  },
12670
+ "GET /databases/{id}": {
12671
+ "authenticated": true,
12672
+ "redirect": false,
12673
+ "responses": {
12674
+ "200": "json",
12675
+ "404": "void"
12676
+ }
12677
+ },
10525
12678
  "DELETE /databases/{id}": {
10526
12679
  "authenticated": true,
10527
12680
  "redirect": false,
@@ -10535,6 +12688,122 @@ var operations = {
10535
12688
  "503": "void"
10536
12689
  }
10537
12690
  },
12691
+ "GET /databases/{id}/event-queue": {
12692
+ "authenticated": true,
12693
+ "redirect": false,
12694
+ "responses": {
12695
+ "200": "json",
12696
+ "404": "void",
12697
+ "503": "void"
12698
+ }
12699
+ },
12700
+ "POST /databases/{id}/branches": {
12701
+ "authenticated": true,
12702
+ "redirect": false,
12703
+ "responses": {
12704
+ "202": "json",
12705
+ "404": "void",
12706
+ "409": "void"
12707
+ }
12708
+ },
12709
+ "GET /databases/{id}/branches": {
12710
+ "authenticated": true,
12711
+ "redirect": false,
12712
+ "responses": {
12713
+ "200": "json",
12714
+ "404": "void"
12715
+ }
12716
+ },
12717
+ "POST /databases/{id}/rollback": {
12718
+ "authenticated": true,
12719
+ "redirect": false,
12720
+ "responses": {
12721
+ "202": "json"
12722
+ }
12723
+ },
12724
+ "GET /databases/{id}/rollbacks": {
12725
+ "authenticated": true,
12726
+ "redirect": false,
12727
+ "responses": {
12728
+ "200": "json"
12729
+ }
12730
+ },
12731
+ "GET /database-rollbacks/{id}": {
12732
+ "authenticated": true,
12733
+ "redirect": false,
12734
+ "responses": {
12735
+ "200": "json"
12736
+ }
12737
+ },
12738
+ "POST /database-rollbacks/{id}/retry": {
12739
+ "authenticated": true,
12740
+ "redirect": false,
12741
+ "responses": {
12742
+ "202": "json"
12743
+ }
12744
+ },
12745
+ "POST /database-rollbacks/{id}/cancel": {
12746
+ "authenticated": true,
12747
+ "redirect": false,
12748
+ "responses": {
12749
+ "200": "json"
12750
+ }
12751
+ },
12752
+ "POST /databases/{id}/backups": {
12753
+ "authenticated": true,
12754
+ "redirect": false,
12755
+ "responses": {
12756
+ "202": "json",
12757
+ "404": "void",
12758
+ "409": "void"
12759
+ }
12760
+ },
12761
+ "POST /databases/{id}/online-backups": {
12762
+ "authenticated": true,
12763
+ "redirect": false,
12764
+ "responses": {
12765
+ "202": "json",
12766
+ "404": "void",
12767
+ "409": "void"
12768
+ }
12769
+ },
12770
+ "GET /database-backups": {
12771
+ "authenticated": true,
12772
+ "redirect": false,
12773
+ "responses": {
12774
+ "200": "json"
12775
+ }
12776
+ },
12777
+ "GET /database-backups/{id}": {
12778
+ "authenticated": true,
12779
+ "redirect": false,
12780
+ "responses": {
12781
+ "200": "json",
12782
+ "404": "void"
12783
+ }
12784
+ },
12785
+ "POST /database-backups/{id}/cancel": {
12786
+ "authenticated": true,
12787
+ "redirect": false,
12788
+ "responses": {
12789
+ "200": "json"
12790
+ }
12791
+ },
12792
+ "PUT /databases/{id}/maintenance": {
12793
+ "authenticated": true,
12794
+ "redirect": false,
12795
+ "responses": {
12796
+ "200": "json"
12797
+ }
12798
+ },
12799
+ "DELETE /databases/{id}/maintenance": {
12800
+ "authenticated": true,
12801
+ "redirect": false,
12802
+ "responses": {
12803
+ "200": "json",
12804
+ "409": "void"
12805
+ }
12806
+ },
10538
12807
  "GET /usage": {
10539
12808
  "authenticated": true,
10540
12809
  "redirect": false,
@@ -10646,15 +12915,6 @@ var operations = {
10646
12915
  "413": "void",
10647
12916
  "503": "void"
10648
12917
  }
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
12918
  }
10659
12919
  }
10660
12920
  };
@@ -11114,6 +13374,7 @@ var ClientMCPBridge = class {
11114
13374
  const data = event.event;
11115
13375
  if (typeof data.toolCallId !== "string") return;
11116
13376
  const key = `${this.sessionId}:${event.runId}:${data.toolCallId}`;
13377
+ if (this.options.registeredToolsOnly && !this.pending.has(key) && !this.callbackFor(data.toolName)) return;
11117
13378
  if (["tool_result", "tool_execution_end"].includes(event.eventType)) {
11118
13379
  if (this.pending.has(key) || String(data.toolName).startsWith("clientmcp_")) this.complete(key);
11119
13380
  return;
@@ -11152,10 +13413,14 @@ var ClientMCPBridge = class {
11152
13413
  });
11153
13414
  }
11154
13415
  }
13416
+ callbackFor(name) {
13417
+ const canonical = this.options.toolAliases?.get(name);
13418
+ return this.callbacks.get(name) ?? (canonical ? this.callbacks.get(canonical) : void 0);
13419
+ }
11155
13420
  async execute(call) {
11156
13421
  const { context } = call;
11157
13422
  let result;
11158
- const callback = this.callbacks.get(context.toolName);
13423
+ const callback = this.callbackFor(context.toolName);
11159
13424
  try {
11160
13425
  result = callback ? await callback.execute(call.args, context) : errorResult(`CLIENT_MCP_CALLBACK_NOT_REGISTERED: ${context.toolName}`);
11161
13426
  if (!result || !Array.isArray(result.content)) throw new Error("Callback must return an MCP result with a content array");