waldur-js-client 7.9.6-dev.11 → 7.9.6-dev.13
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 +14 -1
- package/dist/sdk.gen.js +14 -1
- package/dist/types.gen.d.ts +219 -3
- package/package.json +1 -1
package/dist/sdk.gen.d.ts
CHANGED
|
@@ -499,7 +499,20 @@ export declare const callRoundsRetrieve: <ThrowOnError extends boolean = false>(
|
|
|
499
499
|
export declare const callRoundsReviewersList: <ThrowOnError extends boolean = false>(options: Options<CallRoundsReviewersListData, ThrowOnError>) => import("./client").RequestResult<CallRoundsReviewersListResponses, unknown, ThrowOnError, "fields">;
|
|
500
500
|
/**
|
|
501
501
|
* Get Celery worker statistics
|
|
502
|
-
* Provides a snapshot of
|
|
502
|
+
* Provides a comprehensive snapshot of all Celery workers' status.
|
|
503
|
+
*
|
|
504
|
+
* This endpoint returns detailed information about:
|
|
505
|
+
* - **active**: Tasks currently being executed by workers
|
|
506
|
+
* - **scheduled**: Tasks scheduled for future execution (with ETA)
|
|
507
|
+
* - **reserved**: Tasks received by workers but not yet started
|
|
508
|
+
* - **revoked**: Task IDs that have been cancelled/revoked
|
|
509
|
+
* - **query_task**: Results of task queries (if any)
|
|
510
|
+
* - **stats**: Detailed worker statistics including uptime, pool info, and broker connection
|
|
511
|
+
*
|
|
512
|
+
* Each field is a dictionary where keys are worker names (e.g., 'celery@hostname').
|
|
513
|
+
* If no workers are available, fields will be `null`.
|
|
514
|
+
*
|
|
515
|
+
* Requires support user permissions.
|
|
503
516
|
*/
|
|
504
517
|
export declare const celeryStatsRetrieve: <ThrowOnError extends boolean = false>(options?: Options<CeleryStatsRetrieveData, ThrowOnError>) => import("./client").RequestResult<CeleryStatsRetrieveResponses, unknown, ThrowOnError, "fields">;
|
|
505
518
|
export declare const chatInvoke: <ThrowOnError extends boolean = false>(options?: Options<ChatInvokeData, ThrowOnError>) => import("./client").RequestResult<ChatInvokeResponses, unknown, ThrowOnError, "fields">;
|
package/dist/sdk.gen.js
CHANGED
|
@@ -3472,7 +3472,20 @@ export const callRoundsReviewersList = (options) => {
|
|
|
3472
3472
|
};
|
|
3473
3473
|
/**
|
|
3474
3474
|
* Get Celery worker statistics
|
|
3475
|
-
* Provides a snapshot of
|
|
3475
|
+
* Provides a comprehensive snapshot of all Celery workers' status.
|
|
3476
|
+
*
|
|
3477
|
+
* This endpoint returns detailed information about:
|
|
3478
|
+
* - **active**: Tasks currently being executed by workers
|
|
3479
|
+
* - **scheduled**: Tasks scheduled for future execution (with ETA)
|
|
3480
|
+
* - **reserved**: Tasks received by workers but not yet started
|
|
3481
|
+
* - **revoked**: Task IDs that have been cancelled/revoked
|
|
3482
|
+
* - **query_task**: Results of task queries (if any)
|
|
3483
|
+
* - **stats**: Detailed worker statistics including uptime, pool info, and broker connection
|
|
3484
|
+
*
|
|
3485
|
+
* Each field is a dictionary where keys are worker names (e.g., 'celery@hostname').
|
|
3486
|
+
* If no workers are available, fields will be `null`.
|
|
3487
|
+
*
|
|
3488
|
+
* Requires support user permissions.
|
|
3476
3489
|
*/
|
|
3477
3490
|
export const celeryStatsRetrieve = (options) => {
|
|
3478
3491
|
return (options?.client ?? _heyApiClient).get({
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -1570,6 +1570,212 @@ export type CategorySerializerForForNestedFields = {
|
|
|
1570
1570
|
export type CategorySerializerForForNestedFieldsRequest = {
|
|
1571
1571
|
title: string;
|
|
1572
1572
|
};
|
|
1573
|
+
export type CeleryBroker = {
|
|
1574
|
+
/**
|
|
1575
|
+
* Broker hostname
|
|
1576
|
+
*/
|
|
1577
|
+
readonly hostname: string;
|
|
1578
|
+
/**
|
|
1579
|
+
* Broker user ID
|
|
1580
|
+
*/
|
|
1581
|
+
readonly userid: string;
|
|
1582
|
+
/**
|
|
1583
|
+
* Virtual host
|
|
1584
|
+
*/
|
|
1585
|
+
readonly virtual_host: string;
|
|
1586
|
+
/**
|
|
1587
|
+
* Broker port
|
|
1588
|
+
*/
|
|
1589
|
+
readonly port: number;
|
|
1590
|
+
readonly insist: boolean;
|
|
1591
|
+
readonly ssl: boolean;
|
|
1592
|
+
/**
|
|
1593
|
+
* Transport protocol
|
|
1594
|
+
*/
|
|
1595
|
+
readonly transport: string;
|
|
1596
|
+
/**
|
|
1597
|
+
* Connection timeout in seconds
|
|
1598
|
+
*/
|
|
1599
|
+
readonly connect_timeout: number;
|
|
1600
|
+
/**
|
|
1601
|
+
* Additional transport options
|
|
1602
|
+
*/
|
|
1603
|
+
readonly transport_options: {
|
|
1604
|
+
[key: string]: unknown;
|
|
1605
|
+
};
|
|
1606
|
+
/**
|
|
1607
|
+
* Authentication method
|
|
1608
|
+
*/
|
|
1609
|
+
readonly login_method: string;
|
|
1610
|
+
readonly uri_prefix: string;
|
|
1611
|
+
/**
|
|
1612
|
+
* Heartbeat interval
|
|
1613
|
+
*/
|
|
1614
|
+
readonly heartbeat: number;
|
|
1615
|
+
readonly failover_strategy: string;
|
|
1616
|
+
readonly alternates: Array<string>;
|
|
1617
|
+
};
|
|
1618
|
+
export type CeleryScheduledTask = {
|
|
1619
|
+
/**
|
|
1620
|
+
* Estimated time of arrival for the task
|
|
1621
|
+
*/
|
|
1622
|
+
readonly eta: string;
|
|
1623
|
+
/**
|
|
1624
|
+
* Task priority level
|
|
1625
|
+
*/
|
|
1626
|
+
readonly priority: number;
|
|
1627
|
+
/**
|
|
1628
|
+
* Task request details
|
|
1629
|
+
*/
|
|
1630
|
+
request: CeleryTask;
|
|
1631
|
+
};
|
|
1632
|
+
export type CeleryStatsResponse = {
|
|
1633
|
+
/**
|
|
1634
|
+
* Currently executing tasks per worker. Keys are worker names, values are lists of active tasks.
|
|
1635
|
+
*/
|
|
1636
|
+
readonly active: {
|
|
1637
|
+
[key: string]: Array<CeleryTask>;
|
|
1638
|
+
} | null;
|
|
1639
|
+
/**
|
|
1640
|
+
* Tasks scheduled for future execution per worker. Keys are worker names, values are lists of scheduled tasks with ETA.
|
|
1641
|
+
*/
|
|
1642
|
+
readonly scheduled: {
|
|
1643
|
+
[key: string]: Array<CeleryScheduledTask>;
|
|
1644
|
+
} | null;
|
|
1645
|
+
/**
|
|
1646
|
+
* Tasks that have been received but not yet started per worker. Keys are worker names, values are lists of reserved tasks.
|
|
1647
|
+
*/
|
|
1648
|
+
readonly reserved: {
|
|
1649
|
+
[key: string]: Array<CeleryTask>;
|
|
1650
|
+
} | null;
|
|
1651
|
+
/**
|
|
1652
|
+
* IDs of revoked (cancelled) tasks per worker. Keys are worker names, values are lists of task IDs.
|
|
1653
|
+
*/
|
|
1654
|
+
readonly revoked: {
|
|
1655
|
+
[key: string]: Array<string>;
|
|
1656
|
+
} | null;
|
|
1657
|
+
/**
|
|
1658
|
+
* Query results for specific tasks. May be null if no query was performed.
|
|
1659
|
+
*/
|
|
1660
|
+
readonly query_task: {
|
|
1661
|
+
[key: string]: unknown;
|
|
1662
|
+
} | null;
|
|
1663
|
+
/**
|
|
1664
|
+
* Detailed statistics per worker including uptime, pool info, and resource usage. Keys are worker names.
|
|
1665
|
+
*/
|
|
1666
|
+
readonly stats: {
|
|
1667
|
+
[key: string]: CeleryWorkerStats;
|
|
1668
|
+
} | null;
|
|
1669
|
+
};
|
|
1670
|
+
export type CeleryTask = {
|
|
1671
|
+
/**
|
|
1672
|
+
* Unique task identifier
|
|
1673
|
+
*/
|
|
1674
|
+
readonly id: string;
|
|
1675
|
+
/**
|
|
1676
|
+
* Name of the task
|
|
1677
|
+
*/
|
|
1678
|
+
readonly name: string;
|
|
1679
|
+
/**
|
|
1680
|
+
* Positional arguments passed to the task
|
|
1681
|
+
*/
|
|
1682
|
+
readonly args: Array<unknown>;
|
|
1683
|
+
/**
|
|
1684
|
+
* Keyword arguments passed to the task
|
|
1685
|
+
*/
|
|
1686
|
+
readonly kwargs: {
|
|
1687
|
+
[key: string]: unknown;
|
|
1688
|
+
};
|
|
1689
|
+
/**
|
|
1690
|
+
* Task type
|
|
1691
|
+
*/
|
|
1692
|
+
readonly type: string;
|
|
1693
|
+
/**
|
|
1694
|
+
* Worker hostname executing the task
|
|
1695
|
+
*/
|
|
1696
|
+
readonly hostname: string;
|
|
1697
|
+
/**
|
|
1698
|
+
* Unix timestamp when task started
|
|
1699
|
+
*/
|
|
1700
|
+
readonly time_start: number;
|
|
1701
|
+
/**
|
|
1702
|
+
* Whether task has been acknowledged
|
|
1703
|
+
*/
|
|
1704
|
+
readonly acknowledged: boolean;
|
|
1705
|
+
/**
|
|
1706
|
+
* Message delivery information
|
|
1707
|
+
*/
|
|
1708
|
+
readonly delivery_info: {
|
|
1709
|
+
[key: string]: unknown;
|
|
1710
|
+
};
|
|
1711
|
+
/**
|
|
1712
|
+
* Worker process ID
|
|
1713
|
+
*/
|
|
1714
|
+
readonly worker_pid: number;
|
|
1715
|
+
};
|
|
1716
|
+
export type CeleryWorkerPool = {
|
|
1717
|
+
/**
|
|
1718
|
+
* Maximum number of concurrent processes
|
|
1719
|
+
*/
|
|
1720
|
+
readonly max_concurrency: number;
|
|
1721
|
+
/**
|
|
1722
|
+
* List of worker process IDs
|
|
1723
|
+
*/
|
|
1724
|
+
readonly processes: Array<number>;
|
|
1725
|
+
/**
|
|
1726
|
+
* Maximum tasks per child process
|
|
1727
|
+
*/
|
|
1728
|
+
readonly max_tasks_per_child: number;
|
|
1729
|
+
readonly put_guarded_by_semaphore: boolean;
|
|
1730
|
+
/**
|
|
1731
|
+
* Timeout values
|
|
1732
|
+
*/
|
|
1733
|
+
readonly timeouts: Array<number>;
|
|
1734
|
+
/**
|
|
1735
|
+
* Write statistics
|
|
1736
|
+
*/
|
|
1737
|
+
readonly writes: {
|
|
1738
|
+
[key: string]: unknown;
|
|
1739
|
+
};
|
|
1740
|
+
};
|
|
1741
|
+
export type CeleryWorkerStats = {
|
|
1742
|
+
/**
|
|
1743
|
+
* Broker connection information
|
|
1744
|
+
*/
|
|
1745
|
+
broker: CeleryBroker;
|
|
1746
|
+
/**
|
|
1747
|
+
* Logical clock value
|
|
1748
|
+
*/
|
|
1749
|
+
readonly clock: string;
|
|
1750
|
+
/**
|
|
1751
|
+
* Worker uptime in seconds
|
|
1752
|
+
*/
|
|
1753
|
+
readonly uptime: number;
|
|
1754
|
+
/**
|
|
1755
|
+
* Worker process ID
|
|
1756
|
+
*/
|
|
1757
|
+
readonly pid: number;
|
|
1758
|
+
/**
|
|
1759
|
+
* Worker pool statistics
|
|
1760
|
+
*/
|
|
1761
|
+
pool: CeleryWorkerPool;
|
|
1762
|
+
/**
|
|
1763
|
+
* Number of tasks prefetched
|
|
1764
|
+
*/
|
|
1765
|
+
readonly prefetch_count: number;
|
|
1766
|
+
/**
|
|
1767
|
+
* Resource usage statistics
|
|
1768
|
+
*/
|
|
1769
|
+
readonly rusage: {
|
|
1770
|
+
[key: string]: unknown;
|
|
1771
|
+
};
|
|
1772
|
+
/**
|
|
1773
|
+
* Total task counts by type
|
|
1774
|
+
*/
|
|
1775
|
+
readonly total: {
|
|
1776
|
+
[key: string]: unknown;
|
|
1777
|
+
};
|
|
1778
|
+
};
|
|
1573
1779
|
export type ChatRequestRequest = {
|
|
1574
1780
|
/**
|
|
1575
1781
|
* User input text for the chat model.
|
|
@@ -11193,6 +11399,10 @@ export type PatchedTemplateRequest = {
|
|
|
11193
11399
|
export type PatchedUserAgreementRequest = {
|
|
11194
11400
|
content?: string;
|
|
11195
11401
|
agreement_type?: AgreementTypeEnum;
|
|
11402
|
+
/**
|
|
11403
|
+
* ISO 639-1 language code (e.g., 'en', 'de', 'et'). Leave empty for the default version.
|
|
11404
|
+
*/
|
|
11405
|
+
language?: string;
|
|
11196
11406
|
};
|
|
11197
11407
|
export type PatchedUserInfoRequest = {
|
|
11198
11408
|
/**
|
|
@@ -16035,12 +16245,20 @@ export type UserAgreement = {
|
|
|
16035
16245
|
readonly uuid: string;
|
|
16036
16246
|
content: string;
|
|
16037
16247
|
agreement_type: AgreementTypeEnum;
|
|
16248
|
+
/**
|
|
16249
|
+
* ISO 639-1 language code (e.g., 'en', 'de', 'et'). Leave empty for the default version.
|
|
16250
|
+
*/
|
|
16251
|
+
language: string;
|
|
16038
16252
|
readonly created: string;
|
|
16039
16253
|
readonly modified: string;
|
|
16040
16254
|
};
|
|
16041
16255
|
export type UserAgreementRequest = {
|
|
16042
16256
|
content: string;
|
|
16043
16257
|
agreement_type: AgreementTypeEnum;
|
|
16258
|
+
/**
|
|
16259
|
+
* ISO 639-1 language code (e.g., 'en', 'de', 'et'). Leave empty for the default version.
|
|
16260
|
+
*/
|
|
16261
|
+
language: string;
|
|
16044
16262
|
};
|
|
16045
16263
|
export type UserAuthMethodCount = {
|
|
16046
16264
|
/**
|
|
@@ -22752,9 +22970,7 @@ export type CeleryStatsRetrieveData = {
|
|
|
22752
22970
|
url: '/api/celery-stats/';
|
|
22753
22971
|
};
|
|
22754
22972
|
export type CeleryStatsRetrieveResponses = {
|
|
22755
|
-
200:
|
|
22756
|
-
[key: string]: unknown;
|
|
22757
|
-
};
|
|
22973
|
+
200: CeleryStatsResponse;
|
|
22758
22974
|
};
|
|
22759
22975
|
export type CeleryStatsRetrieveResponse = CeleryStatsRetrieveResponses[keyof CeleryStatsRetrieveResponses];
|
|
22760
22976
|
export type ChatInvokeData = {
|