waldur-js-client 7.9.9-dev.9 → 7.9.10-dev.0
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.
- package/dist/sdk.gen.d.ts +119 -2
- package/dist/sdk.gen.js +296 -6
- package/dist/types.gen.d.ts +944 -81
- package/package.json +1 -1
package/dist/sdk.gen.js
CHANGED
|
@@ -4151,9 +4151,13 @@ export const celeryStatsRetrieve = (options) => {
|
|
|
4151
4151
|
});
|
|
4152
4152
|
};
|
|
4153
4153
|
/**
|
|
4154
|
-
*
|
|
4154
|
+
* Set token quota for user
|
|
4155
|
+
* Allows staff/support to set token quota limits for a specific user. Configure daily, weekly, and monthly limits:
|
|
4156
|
+
* - Omit field or send `null`: Use system default
|
|
4157
|
+
* - `-1`: Unlimited (no quota enforcement)
|
|
4158
|
+
* - `0` or positive integer: Specific token limit
|
|
4155
4159
|
*/
|
|
4156
|
-
export const
|
|
4160
|
+
export const chatQuotaSetQuota = (options) => {
|
|
4157
4161
|
return (options.client ?? _heyApiClient).post({
|
|
4158
4162
|
security: [
|
|
4159
4163
|
{
|
|
@@ -4165,7 +4169,7 @@ export const chatToolsExecute = (options) => {
|
|
|
4165
4169
|
type: 'http'
|
|
4166
4170
|
}
|
|
4167
4171
|
],
|
|
4168
|
-
url: '/api/chat-
|
|
4172
|
+
url: '/api/chat-quota/set_quota/',
|
|
4169
4173
|
...options,
|
|
4170
4174
|
headers: {
|
|
4171
4175
|
'Content-Type': 'application/json',
|
|
@@ -4173,8 +4177,20 @@ export const chatToolsExecute = (options) => {
|
|
|
4173
4177
|
}
|
|
4174
4178
|
});
|
|
4175
4179
|
};
|
|
4176
|
-
|
|
4177
|
-
|
|
4180
|
+
/**
|
|
4181
|
+
*
|
|
4182
|
+
* Get current token quota and usage for the requesting user.
|
|
4183
|
+
*
|
|
4184
|
+
* Returns token quota for all periods (daily, weekly, monthly):
|
|
4185
|
+
* - limit: User's custom limit (null = use system default, -1 = unlimited, or positive integer)
|
|
4186
|
+
* - usage: Tokens used in current period
|
|
4187
|
+
* - remaining: Tokens remaining (null if unlimited)
|
|
4188
|
+
* - reset_at: When the period resets
|
|
4189
|
+
* - system_default: System-wide default limit from configuration (for transparency when limit is null)
|
|
4190
|
+
*
|
|
4191
|
+
*/
|
|
4192
|
+
export const chatQuotaUsageRetrieve = (options) => {
|
|
4193
|
+
return (options?.client ?? _heyApiClient).get({
|
|
4178
4194
|
security: [
|
|
4179
4195
|
{
|
|
4180
4196
|
name: 'Authorization',
|
|
@@ -4185,10 +4201,33 @@ export const chatInvoke = (options) => {
|
|
|
4185
4201
|
type: 'http'
|
|
4186
4202
|
}
|
|
4187
4203
|
],
|
|
4188
|
-
url: '/api/chat/
|
|
4204
|
+
url: '/api/chat-quota/usage/',
|
|
4189
4205
|
...options
|
|
4190
4206
|
});
|
|
4191
4207
|
};
|
|
4208
|
+
/**
|
|
4209
|
+
* Execute a tool and return the result.
|
|
4210
|
+
*/
|
|
4211
|
+
export const chatToolsExecute = (options) => {
|
|
4212
|
+
return (options.client ?? _heyApiClient).post({
|
|
4213
|
+
security: [
|
|
4214
|
+
{
|
|
4215
|
+
name: 'Authorization',
|
|
4216
|
+
type: 'apiKey'
|
|
4217
|
+
},
|
|
4218
|
+
{
|
|
4219
|
+
scheme: 'bearer',
|
|
4220
|
+
type: 'http'
|
|
4221
|
+
}
|
|
4222
|
+
],
|
|
4223
|
+
url: '/api/chat-tools/execute/',
|
|
4224
|
+
...options,
|
|
4225
|
+
headers: {
|
|
4226
|
+
'Content-Type': 'application/json',
|
|
4227
|
+
...options.headers
|
|
4228
|
+
}
|
|
4229
|
+
});
|
|
4230
|
+
};
|
|
4192
4231
|
export const chatStream = (options) => {
|
|
4193
4232
|
return (options.client ?? _heyApiClient).post({
|
|
4194
4233
|
security: [
|
|
@@ -9774,6 +9813,46 @@ export const maintenanceAnnouncementsUnschedule = (options) => {
|
|
|
9774
9813
|
...options
|
|
9775
9814
|
});
|
|
9776
9815
|
};
|
|
9816
|
+
/**
|
|
9817
|
+
* Get maintenance announcement statistics
|
|
9818
|
+
* Returns comprehensive statistics for maintenance announcements including counts by state, type, impact level, and daily breakdown.
|
|
9819
|
+
*/
|
|
9820
|
+
export const maintenanceAnnouncementsMaintenanceStatsRetrieve = (options) => {
|
|
9821
|
+
return (options?.client ?? _heyApiClient).get({
|
|
9822
|
+
security: [
|
|
9823
|
+
{
|
|
9824
|
+
name: 'Authorization',
|
|
9825
|
+
type: 'apiKey'
|
|
9826
|
+
},
|
|
9827
|
+
{
|
|
9828
|
+
scheme: 'bearer',
|
|
9829
|
+
type: 'http'
|
|
9830
|
+
}
|
|
9831
|
+
],
|
|
9832
|
+
url: '/api/maintenance-announcements/maintenance_stats/',
|
|
9833
|
+
...options
|
|
9834
|
+
});
|
|
9835
|
+
};
|
|
9836
|
+
/**
|
|
9837
|
+
* Get maintenance announcement statistics
|
|
9838
|
+
* Get number of items in the collection matching the request parameters.
|
|
9839
|
+
*/
|
|
9840
|
+
export const maintenanceAnnouncementsMaintenanceStatsCount = (options) => {
|
|
9841
|
+
return (options?.client ?? _heyApiClient).head({
|
|
9842
|
+
security: [
|
|
9843
|
+
{
|
|
9844
|
+
name: 'Authorization',
|
|
9845
|
+
type: 'apiKey'
|
|
9846
|
+
},
|
|
9847
|
+
{
|
|
9848
|
+
scheme: 'bearer',
|
|
9849
|
+
type: 'http'
|
|
9850
|
+
}
|
|
9851
|
+
],
|
|
9852
|
+
url: '/api/maintenance-announcements/maintenance_stats/',
|
|
9853
|
+
...options
|
|
9854
|
+
});
|
|
9855
|
+
};
|
|
9777
9856
|
export const managedRancherClusterResourcesList = (options) => {
|
|
9778
9857
|
return (options?.client ?? _heyApiClient).get({
|
|
9779
9858
|
security: [
|
|
@@ -16137,6 +16216,46 @@ export const marketplaceProviderResourcesGlauthUsersConfigRetrieve = (options) =
|
|
|
16137
16216
|
...options
|
|
16138
16217
|
});
|
|
16139
16218
|
};
|
|
16219
|
+
/**
|
|
16220
|
+
* Get resource version history
|
|
16221
|
+
* Returns the version history of changes made to this resource. Only accessible by staff and support users.
|
|
16222
|
+
*/
|
|
16223
|
+
export const marketplaceProviderResourcesHistoryList = (options) => {
|
|
16224
|
+
return (options.client ?? _heyApiClient).get({
|
|
16225
|
+
security: [
|
|
16226
|
+
{
|
|
16227
|
+
name: 'Authorization',
|
|
16228
|
+
type: 'apiKey'
|
|
16229
|
+
},
|
|
16230
|
+
{
|
|
16231
|
+
scheme: 'bearer',
|
|
16232
|
+
type: 'http'
|
|
16233
|
+
}
|
|
16234
|
+
],
|
|
16235
|
+
url: '/api/marketplace-provider-resources/{uuid}/history/',
|
|
16236
|
+
...options
|
|
16237
|
+
});
|
|
16238
|
+
};
|
|
16239
|
+
/**
|
|
16240
|
+
* Get resource state at a specific timestamp
|
|
16241
|
+
* Returns the state of the resource as it was at the specified timestamp. Only accessible by staff and support users.
|
|
16242
|
+
*/
|
|
16243
|
+
export const marketplaceProviderResourcesHistoryAtRetrieve = (options) => {
|
|
16244
|
+
return (options.client ?? _heyApiClient).get({
|
|
16245
|
+
security: [
|
|
16246
|
+
{
|
|
16247
|
+
name: 'Authorization',
|
|
16248
|
+
type: 'apiKey'
|
|
16249
|
+
},
|
|
16250
|
+
{
|
|
16251
|
+
scheme: 'bearer',
|
|
16252
|
+
type: 'http'
|
|
16253
|
+
}
|
|
16254
|
+
],
|
|
16255
|
+
url: '/api/marketplace-provider-resources/{uuid}/history/at/',
|
|
16256
|
+
...options
|
|
16257
|
+
});
|
|
16258
|
+
};
|
|
16140
16259
|
/**
|
|
16141
16260
|
* Move a resource to another project
|
|
16142
16261
|
* Moves a resource and its associated data to a different project. Requires staff permissions.
|
|
@@ -17267,6 +17386,46 @@ export const marketplaceResourcesGlauthUsersConfigRetrieve = (options) => {
|
|
|
17267
17386
|
...options
|
|
17268
17387
|
});
|
|
17269
17388
|
};
|
|
17389
|
+
/**
|
|
17390
|
+
* Get resource version history
|
|
17391
|
+
* Returns the version history of changes made to this resource. Only accessible by staff and support users.
|
|
17392
|
+
*/
|
|
17393
|
+
export const marketplaceResourcesHistoryList = (options) => {
|
|
17394
|
+
return (options.client ?? _heyApiClient).get({
|
|
17395
|
+
security: [
|
|
17396
|
+
{
|
|
17397
|
+
name: 'Authorization',
|
|
17398
|
+
type: 'apiKey'
|
|
17399
|
+
},
|
|
17400
|
+
{
|
|
17401
|
+
scheme: 'bearer',
|
|
17402
|
+
type: 'http'
|
|
17403
|
+
}
|
|
17404
|
+
],
|
|
17405
|
+
url: '/api/marketplace-resources/{uuid}/history/',
|
|
17406
|
+
...options
|
|
17407
|
+
});
|
|
17408
|
+
};
|
|
17409
|
+
/**
|
|
17410
|
+
* Get resource state at a specific timestamp
|
|
17411
|
+
* Returns the state of the resource as it was at the specified timestamp. Only accessible by staff and support users.
|
|
17412
|
+
*/
|
|
17413
|
+
export const marketplaceResourcesHistoryAtRetrieve = (options) => {
|
|
17414
|
+
return (options.client ?? _heyApiClient).get({
|
|
17415
|
+
security: [
|
|
17416
|
+
{
|
|
17417
|
+
name: 'Authorization',
|
|
17418
|
+
type: 'apiKey'
|
|
17419
|
+
},
|
|
17420
|
+
{
|
|
17421
|
+
scheme: 'bearer',
|
|
17422
|
+
type: 'http'
|
|
17423
|
+
}
|
|
17424
|
+
],
|
|
17425
|
+
url: '/api/marketplace-resources/{uuid}/history/at/',
|
|
17426
|
+
...options
|
|
17427
|
+
});
|
|
17428
|
+
};
|
|
17270
17429
|
/**
|
|
17271
17430
|
* Move a resource to another project
|
|
17272
17431
|
* Moves a resource and its associated data to a different project. Requires staff permissions.
|
|
@@ -36591,6 +36750,137 @@ export const slurmJobsUnlink = (options) => {
|
|
|
36591
36750
|
...options
|
|
36592
36751
|
});
|
|
36593
36752
|
};
|
|
36753
|
+
/**
|
|
36754
|
+
* Get Celery worker statistics
|
|
36755
|
+
* Provides a comprehensive snapshot of all Celery workers' status.
|
|
36756
|
+
*
|
|
36757
|
+
* This endpoint returns detailed information about:
|
|
36758
|
+
* - **active**: Tasks currently being executed by workers
|
|
36759
|
+
* - **scheduled**: Tasks scheduled for future execution (with ETA)
|
|
36760
|
+
* - **reserved**: Tasks received by workers but not yet started
|
|
36761
|
+
* - **revoked**: Task IDs that have been cancelled/revoked
|
|
36762
|
+
* - **query_task**: Results of task queries (if any)
|
|
36763
|
+
* - **stats**: Detailed worker statistics including uptime, pool info, and broker connection
|
|
36764
|
+
*
|
|
36765
|
+
* Each field is a dictionary where keys are worker names (e.g., 'celery@hostname').
|
|
36766
|
+
* If no workers are available, fields will be `null`.
|
|
36767
|
+
*
|
|
36768
|
+
* Requires support user permissions.
|
|
36769
|
+
*/
|
|
36770
|
+
export const statsCeleryRetrieve = (options) => {
|
|
36771
|
+
return (options?.client ?? _heyApiClient).get({
|
|
36772
|
+
security: [
|
|
36773
|
+
{
|
|
36774
|
+
name: 'Authorization',
|
|
36775
|
+
type: 'apiKey'
|
|
36776
|
+
},
|
|
36777
|
+
{
|
|
36778
|
+
scheme: 'bearer',
|
|
36779
|
+
type: 'http'
|
|
36780
|
+
}
|
|
36781
|
+
],
|
|
36782
|
+
url: '/api/stats/celery/',
|
|
36783
|
+
...options
|
|
36784
|
+
});
|
|
36785
|
+
};
|
|
36786
|
+
/**
|
|
36787
|
+
* Get comprehensive database statistics
|
|
36788
|
+
* Retrieves comprehensive statistics about the PostgreSQL database including:
|
|
36789
|
+
* - **Table statistics**: Top 10 largest tables by size
|
|
36790
|
+
* - **Connection statistics**: Active, idle, and waiting connections with utilization
|
|
36791
|
+
* - **Database size**: Total size, data size, and index size
|
|
36792
|
+
* - **Cache performance**: Buffer cache and index hit ratios (should be >99%)
|
|
36793
|
+
* - **Transaction statistics**: Commits, rollbacks, deadlocks
|
|
36794
|
+
* - **Lock statistics**: Current locks and waiting queries
|
|
36795
|
+
* - **Maintenance statistics**: Dead tuples, vacuum needs, oldest transaction age
|
|
36796
|
+
* - **Active queries**: Currently running queries with duration
|
|
36797
|
+
* - **Query performance**: Sequential vs index scan ratios
|
|
36798
|
+
* - **Replication status**: WAL size and replication lag (if applicable)
|
|
36799
|
+
*
|
|
36800
|
+
* This information is useful for monitoring, debugging, and performance tuning.
|
|
36801
|
+
* Requires support user permissions.
|
|
36802
|
+
*/
|
|
36803
|
+
export const statsDatabaseRetrieve = (options) => {
|
|
36804
|
+
return (options?.client ?? _heyApiClient).get({
|
|
36805
|
+
security: [
|
|
36806
|
+
{
|
|
36807
|
+
name: 'Authorization',
|
|
36808
|
+
type: 'apiKey'
|
|
36809
|
+
},
|
|
36810
|
+
{
|
|
36811
|
+
scheme: 'bearer',
|
|
36812
|
+
type: 'http'
|
|
36813
|
+
}
|
|
36814
|
+
],
|
|
36815
|
+
url: '/api/stats/database/',
|
|
36816
|
+
...options
|
|
36817
|
+
});
|
|
36818
|
+
};
|
|
36819
|
+
/**
|
|
36820
|
+
* Execute read-only SQL query
|
|
36821
|
+
* Execute a given SQL query against a read-only database replica. This is a powerful tool for diagnostics and reporting, but should be used with caution. Requires support user permissions.
|
|
36822
|
+
*/
|
|
36823
|
+
export const statsQuery = (options) => {
|
|
36824
|
+
return (options.client ?? _heyApiClient).post({
|
|
36825
|
+
security: [
|
|
36826
|
+
{
|
|
36827
|
+
name: 'Authorization',
|
|
36828
|
+
type: 'apiKey'
|
|
36829
|
+
},
|
|
36830
|
+
{
|
|
36831
|
+
scheme: 'bearer',
|
|
36832
|
+
type: 'http'
|
|
36833
|
+
}
|
|
36834
|
+
],
|
|
36835
|
+
url: '/api/stats/query/',
|
|
36836
|
+
...options,
|
|
36837
|
+
headers: {
|
|
36838
|
+
'Content-Type': 'application/json',
|
|
36839
|
+
...options.headers
|
|
36840
|
+
}
|
|
36841
|
+
});
|
|
36842
|
+
};
|
|
36843
|
+
/**
|
|
36844
|
+
* Get table growth statistics
|
|
36845
|
+
* Retrieves historical table growth statistics for detecting abnormal patterns.
|
|
36846
|
+
*
|
|
36847
|
+
* This endpoint returns:
|
|
36848
|
+
* - **date**: Current date of the statistics
|
|
36849
|
+
* - **weekly_threshold_percent**: Configured alert threshold for weekly growth
|
|
36850
|
+
* - **monthly_threshold_percent**: Configured alert threshold for monthly growth
|
|
36851
|
+
* - **tables**: List of tables with their growth statistics, sorted by growth rate
|
|
36852
|
+
*
|
|
36853
|
+
* Each table entry includes:
|
|
36854
|
+
* - Current size and row estimates
|
|
36855
|
+
* - Size and row estimates from 7 days ago
|
|
36856
|
+
* - Size and row estimates from 30 days ago
|
|
36857
|
+
* - Weekly and monthly growth percentages
|
|
36858
|
+
*
|
|
36859
|
+
* Use this data to identify tables that may be experiencing abnormal growth,
|
|
36860
|
+
* which could indicate bugs like the version-based get_or_create issue.
|
|
36861
|
+
*
|
|
36862
|
+
* Query parameters:
|
|
36863
|
+
* - **table_name** (optional): Filter to a specific table name
|
|
36864
|
+
* - **days** (optional, default 30): Number of days of history to include
|
|
36865
|
+
*
|
|
36866
|
+
* Requires support user permissions.
|
|
36867
|
+
*/
|
|
36868
|
+
export const statsTableGrowthRetrieve = (options) => {
|
|
36869
|
+
return (options?.client ?? _heyApiClient).get({
|
|
36870
|
+
security: [
|
|
36871
|
+
{
|
|
36872
|
+
name: 'Authorization',
|
|
36873
|
+
type: 'apiKey'
|
|
36874
|
+
},
|
|
36875
|
+
{
|
|
36876
|
+
scheme: 'bearer',
|
|
36877
|
+
type: 'http'
|
|
36878
|
+
}
|
|
36879
|
+
],
|
|
36880
|
+
url: '/api/stats/table-growth/',
|
|
36881
|
+
...options
|
|
36882
|
+
});
|
|
36883
|
+
};
|
|
36594
36884
|
export const supportAttachmentsList = (options) => {
|
|
36595
36885
|
return (options?.client ?? _heyApiClient).get({
|
|
36596
36886
|
security: [
|