@deepraxis/sdk 0.1.1-dev.8e3013c → 0.1.1-dev.8e6970a
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/METHODS.md +56 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +93 -1
- package/dist/generated/sdk.gen.js +268 -0
- package/dist/generated/types.gen.d.ts +1146 -6
- package/dist/operations.generated.js +450 -0
- package/dist/resources.generated.d.ts +32 -0
- package/dist/resources.generated.js +36 -0
- package/package.json +1 -1
|
@@ -1766,6 +1766,176 @@ export const metaDocsRetrieve = (options) => (options.client ?? client).get({ ur
|
|
|
1766
1766
|
* Find guides and references by keyword before reading them with praxis.meta.docs.retrieve. Public; no API key required. Matches documentation titles, headings and page text without case sensitivity; all query words must occur. q is required; limit defaults to 20 and accepts 1–50. lang defaults to zh or use en for English. Returns paths, page titles, canonical URLs and short matching snippets; no matches returns an empty array.
|
|
1767
1767
|
*/
|
|
1768
1768
|
export const metaDocsSearch = (options) => (options.client ?? client).get({ url: '/meta/v1/docs/search', ...options });
|
|
1769
|
+
/**
|
|
1770
|
+
* List streams
|
|
1771
|
+
*
|
|
1772
|
+
* List the streams of your organization, newest first, to find a stream id or to see which are active; to read one stream use streams.retrieve. Pages hold limit streams (1 to 100, default 20); when has_more is true pass the id of the last stream you received as starting_after to get the next page. A stream that is deleted leaves the list at once. The list never shows another organization's streams. Example: GET /media/v1/streams?limit=20.
|
|
1773
|
+
*/
|
|
1774
|
+
export const listMediaStreams = (options) => (options?.client ?? client).get({
|
|
1775
|
+
security: [{
|
|
1776
|
+
key: 'BearerAuth',
|
|
1777
|
+
scheme: 'bearer',
|
|
1778
|
+
type: 'http'
|
|
1779
|
+
}, {
|
|
1780
|
+
key: 'ApiKeyAuth',
|
|
1781
|
+
name: 'X-API-Key',
|
|
1782
|
+
type: 'apiKey'
|
|
1783
|
+
}],
|
|
1784
|
+
url: '/media/v1/streams',
|
|
1785
|
+
...options
|
|
1786
|
+
});
|
|
1787
|
+
/**
|
|
1788
|
+
* Create a stream
|
|
1789
|
+
*
|
|
1790
|
+
* Register one live source and get its id; use it before anything else on this face, and use streams.update instead to change a stream you already have. Send input as {kind: pull, url} to have Praxis pull an https, http, rtmp or rtmps address (an HLS .m3u8 or HTTP-FLV playlist, or an RTMP URL; SRT is not supported and answers 400), or as {kind: push} to receive a push address: the response then carries push {url, token, expires_at}, and the token is shown only in this response and in streams.resetToken.create because only its hash is kept. The new stream is idle; nothing is pulled or charged until a source goes active. reconnect_window_s (0 to 1800, default 60) is how long a source that drops may come back and continue the same broadcast; max_continuous_duration_s (60 to 43200, default 43200) ends a broadcast that runs that long. recording defaults to off. The owner is your organization (and the agent and session when a session token calls); the body cannot set it and unknown fields answer 400. Example: {"input":{"kind":"pull","url":"https://live.example.com/room/index.m3u8"},"recording":{"mode":"automatic","rendition":"source"}}.
|
|
1791
|
+
*/
|
|
1792
|
+
export const createMediaStream = (options) => (options.client ?? client).post({
|
|
1793
|
+
security: [{
|
|
1794
|
+
key: 'BearerAuth',
|
|
1795
|
+
scheme: 'bearer',
|
|
1796
|
+
type: 'http'
|
|
1797
|
+
}, {
|
|
1798
|
+
key: 'ApiKeyAuth',
|
|
1799
|
+
name: 'X-API-Key',
|
|
1800
|
+
type: 'apiKey'
|
|
1801
|
+
}],
|
|
1802
|
+
url: '/media/v1/streams',
|
|
1803
|
+
...options,
|
|
1804
|
+
headers: {
|
|
1805
|
+
'Content-Type': 'application/json',
|
|
1806
|
+
...options.headers
|
|
1807
|
+
}
|
|
1808
|
+
});
|
|
1809
|
+
/**
|
|
1810
|
+
* Delete a stream
|
|
1811
|
+
*
|
|
1812
|
+
* Delete a stream and its event log for good; only an idle or disabled stream can be deleted, so stop a live one first with streams.disable.create. The stream leaves the list at once and gives back any slot it held. Recordings it already made are Media assets and stay. Deleting is not undone and the id is not reused. Example: DELETE /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec.
|
|
1813
|
+
*/
|
|
1814
|
+
export const deleteMediaStream = (options) => (options.client ?? client).delete({
|
|
1815
|
+
security: [{
|
|
1816
|
+
key: 'BearerAuth',
|
|
1817
|
+
scheme: 'bearer',
|
|
1818
|
+
type: 'http'
|
|
1819
|
+
}, {
|
|
1820
|
+
key: 'ApiKeyAuth',
|
|
1821
|
+
name: 'X-API-Key',
|
|
1822
|
+
type: 'apiKey'
|
|
1823
|
+
}],
|
|
1824
|
+
url: '/media/v1/streams/{stream_id}',
|
|
1825
|
+
...options
|
|
1826
|
+
});
|
|
1827
|
+
/**
|
|
1828
|
+
* Retrieve a stream
|
|
1829
|
+
*
|
|
1830
|
+
* Read one stream: its status, input, reconnect and duration limits, recording settings, pipeline, the asset of the current broadcast and the recent ones. Use it to check whether a stream is idle, waiting, active or disabled; to follow what happened to it read streams.events.list instead. The push token is never returned here, only in the create and reset-token responses. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec.
|
|
1831
|
+
*/
|
|
1832
|
+
export const getMediaStream = (options) => (options.client ?? client).get({
|
|
1833
|
+
security: [{
|
|
1834
|
+
key: 'BearerAuth',
|
|
1835
|
+
scheme: 'bearer',
|
|
1836
|
+
type: 'http'
|
|
1837
|
+
}, {
|
|
1838
|
+
key: 'ApiKeyAuth',
|
|
1839
|
+
name: 'X-API-Key',
|
|
1840
|
+
type: 'apiKey'
|
|
1841
|
+
}],
|
|
1842
|
+
url: '/media/v1/streams/{stream_id}',
|
|
1843
|
+
...options
|
|
1844
|
+
});
|
|
1845
|
+
/**
|
|
1846
|
+
* Update a stream
|
|
1847
|
+
*
|
|
1848
|
+
* Change the settings of a stream you own; send only the fields to change. reconnect_window_s and max_continuous_duration_s take the same ranges as on create. recording is merged onto the current settings (send {rendition: sd} to change only the rendition; a null optional field such as library_id clears it). pipeline_id is stored as given (null clears it). input can change only the url of a pull stream and only while it is idle or disabled; a push stream has no address to change and a live pull stream answers 409. An empty patch, an unknown field or an invalid value answers 400. Example: {"reconnect_window_s":120,"recording":{"mode":"automatic"}}.
|
|
1849
|
+
*/
|
|
1850
|
+
export const updateMediaStream = (options) => (options.client ?? client).patch({
|
|
1851
|
+
security: [{
|
|
1852
|
+
key: 'BearerAuth',
|
|
1853
|
+
scheme: 'bearer',
|
|
1854
|
+
type: 'http'
|
|
1855
|
+
}, {
|
|
1856
|
+
key: 'ApiKeyAuth',
|
|
1857
|
+
name: 'X-API-Key',
|
|
1858
|
+
type: 'apiKey'
|
|
1859
|
+
}],
|
|
1860
|
+
url: '/media/v1/streams/{stream_id}',
|
|
1861
|
+
...options,
|
|
1862
|
+
headers: {
|
|
1863
|
+
'Content-Type': 'application/json',
|
|
1864
|
+
...options.headers
|
|
1865
|
+
}
|
|
1866
|
+
});
|
|
1867
|
+
/**
|
|
1868
|
+
* Enable a stream
|
|
1869
|
+
*
|
|
1870
|
+
* Bring a disabled stream back to idle so a source may drive it again; it does not start anything by itself. Only a disabled stream can be enabled; an idle, waiting or active stream answers 409. Use streams.disable.create to stop a stream. Example: POST /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/enable with no body.
|
|
1871
|
+
*/
|
|
1872
|
+
export const enableMediaStream = (options) => (options.client ?? client).post({
|
|
1873
|
+
security: [{
|
|
1874
|
+
key: 'BearerAuth',
|
|
1875
|
+
scheme: 'bearer',
|
|
1876
|
+
type: 'http'
|
|
1877
|
+
}, {
|
|
1878
|
+
key: 'ApiKeyAuth',
|
|
1879
|
+
name: 'X-API-Key',
|
|
1880
|
+
type: 'apiKey'
|
|
1881
|
+
}],
|
|
1882
|
+
url: '/media/v1/streams/{stream_id}/enable',
|
|
1883
|
+
...options
|
|
1884
|
+
});
|
|
1885
|
+
/**
|
|
1886
|
+
* Disable a stream
|
|
1887
|
+
*
|
|
1888
|
+
* Stop a stream from any status: a live stream is closed out (its log records stream.disconnected and stream.idle), it gives back its active slot, and a source can no longer drive it until streams.enable.create. Disabling a disabled stream changes nothing and answers 200. Use it before deleting a live stream or to switch a source off without losing the stream. Example: POST /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/disable with no body.
|
|
1889
|
+
*/
|
|
1890
|
+
export const disableMediaStream = (options) => (options.client ?? client).post({
|
|
1891
|
+
security: [{
|
|
1892
|
+
key: 'BearerAuth',
|
|
1893
|
+
scheme: 'bearer',
|
|
1894
|
+
type: 'http'
|
|
1895
|
+
}, {
|
|
1896
|
+
key: 'ApiKeyAuth',
|
|
1897
|
+
name: 'X-API-Key',
|
|
1898
|
+
type: 'apiKey'
|
|
1899
|
+
}],
|
|
1900
|
+
url: '/media/v1/streams/{stream_id}/disable',
|
|
1901
|
+
...options
|
|
1902
|
+
});
|
|
1903
|
+
/**
|
|
1904
|
+
* Reset the push token of a stream
|
|
1905
|
+
*
|
|
1906
|
+
* Mint a new push token for a push stream and invalidate the old one, for example when the token leaked or has expired (a token is valid for 24 hours). The response carries the new push {url, token, expires_at}; the token is shown only here. A pull stream has no token and answers 409. Example: POST /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/reset-token with no body.
|
|
1907
|
+
*/
|
|
1908
|
+
export const resetMediaStreamToken = (options) => (options.client ?? client).post({
|
|
1909
|
+
security: [{
|
|
1910
|
+
key: 'BearerAuth',
|
|
1911
|
+
scheme: 'bearer',
|
|
1912
|
+
type: 'http'
|
|
1913
|
+
}, {
|
|
1914
|
+
key: 'ApiKeyAuth',
|
|
1915
|
+
name: 'X-API-Key',
|
|
1916
|
+
type: 'apiKey'
|
|
1917
|
+
}],
|
|
1918
|
+
url: '/media/v1/streams/{stream_id}/reset-token',
|
|
1919
|
+
...options
|
|
1920
|
+
});
|
|
1921
|
+
/**
|
|
1922
|
+
* List the events of a stream
|
|
1923
|
+
*
|
|
1924
|
+
* Read the stream's event log in order, to follow what the stream did or to catch up after a disconnect: pass after set to the highest seq you have seen and you receive every later event, oldest first, up to limit (1 to 100, default 100). Events are delivered at least once and each has a stable id, so a repeat is the same event. Kinds are stream.waiting, stream.connected, stream.active, stream.disconnected and stream.idle (recording.ready follows with recordings). at is wall-clock time and at_source says whether it came from the source (program_date_time) or was the time Praxis received it; offset_ms is the position inside the stream when known. Events are kept at least 24 hours. When has_more is false next_after is the seq to pass next time. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/events?after=12&limit=50.
|
|
1925
|
+
*/
|
|
1926
|
+
export const listMediaStreamEvents = (options) => (options.client ?? client).get({
|
|
1927
|
+
security: [{
|
|
1928
|
+
key: 'BearerAuth',
|
|
1929
|
+
scheme: 'bearer',
|
|
1930
|
+
type: 'http'
|
|
1931
|
+
}, {
|
|
1932
|
+
key: 'ApiKeyAuth',
|
|
1933
|
+
name: 'X-API-Key',
|
|
1934
|
+
type: 'apiKey'
|
|
1935
|
+
}],
|
|
1936
|
+
url: '/media/v1/streams/{stream_id}/events',
|
|
1937
|
+
...options
|
|
1938
|
+
});
|
|
1769
1939
|
/**
|
|
1770
1940
|
* List Models
|
|
1771
1941
|
*
|
|
@@ -3470,6 +3640,26 @@ export const dissolveOrganizationDepartment = (options) => (options.client ?? cl
|
|
|
3470
3640
|
url: '/workforce/v1/departments/{id}/dissolve',
|
|
3471
3641
|
...options
|
|
3472
3642
|
});
|
|
3643
|
+
/**
|
|
3644
|
+
* Amend a department charter (gone)
|
|
3645
|
+
*
|
|
3646
|
+
* Deprecated: use PUT /workforce/v1/specs/department/{id} instead; this path stops working on 2026-11-28. A department's charter is now the `document` of its spec, not a field of the department: read it at GET /workforce/v1/specs/department/{id} and replace it with PUT /workforce/v1/specs/department/{id} sending metadata.revision and spec.document. The root department's charter is the organization's own spec at /workforce/v1/specs/organization/{organization_id}. Until then this path answers 410 with code DEPARTMENT_CHARTER_GONE and the same instruction.
|
|
3647
|
+
*
|
|
3648
|
+
* @deprecated
|
|
3649
|
+
*/
|
|
3650
|
+
export const amendOrganizationDepartmentCharter = (options) => (options.client ?? client).put({
|
|
3651
|
+
security: [{
|
|
3652
|
+
key: 'BearerAuth',
|
|
3653
|
+
scheme: 'bearer',
|
|
3654
|
+
type: 'http'
|
|
3655
|
+
}, {
|
|
3656
|
+
key: 'ApiKeyAuth',
|
|
3657
|
+
name: 'X-API-Key',
|
|
3658
|
+
type: 'apiKey'
|
|
3659
|
+
}],
|
|
3660
|
+
url: '/workforce/v1/departments/{id}/charter',
|
|
3661
|
+
...options
|
|
3662
|
+
});
|
|
3473
3663
|
/**
|
|
3474
3664
|
* List jobs
|
|
3475
3665
|
*
|
|
@@ -7685,6 +7875,84 @@ export const canvasRestoreCanvas = (options) => (options.client ?? client).post(
|
|
|
7685
7875
|
...options.headers
|
|
7686
7876
|
}
|
|
7687
7877
|
});
|
|
7878
|
+
/**
|
|
7879
|
+
* Publish canvas library
|
|
7880
|
+
*
|
|
7881
|
+
* Freeze the reusable components of a canvas as the next numbered library version, so other canvases can use them; the first publish turns the canvas into a library. Supply a canvas_id from canvases.list or create after marking frames as components. The result lists which components were added, changed (compared by content) or removed since the previous version, and whether variables or themes changed. A removed component stays readable in the new version, marked removed. Publishing is not an edit, so the canvas version does not change. Component libraries are available only to organizations where the canvas-libraries feature is enabled; others receive FEATURE_DISABLED.
|
|
7882
|
+
*/
|
|
7883
|
+
export const canvasPublishLibrary = (options) => (options.client ?? client).post({
|
|
7884
|
+
security: [{
|
|
7885
|
+
key: 'canvas-bearerAuth',
|
|
7886
|
+
scheme: 'bearer',
|
|
7887
|
+
type: 'http'
|
|
7888
|
+
}],
|
|
7889
|
+
url: '/canvas/v1/canvases/{canvas_id}:publish',
|
|
7890
|
+
...options,
|
|
7891
|
+
headers: {
|
|
7892
|
+
'Content-Type': 'application/json',
|
|
7893
|
+
...options.headers
|
|
7894
|
+
}
|
|
7895
|
+
});
|
|
7896
|
+
/**
|
|
7897
|
+
* List library versions
|
|
7898
|
+
*
|
|
7899
|
+
* Read the release history of a library canvas, newest first, including each version's description and what it added, changed or removed. Supply a canvas_id of a canvas that has been published at least once; a canvas that never was answers NOT_A_LIBRARY. limit is 1–100 and defaults to 30; pass next_cursor as cursor until it is null. Library versions are never pruned. Listing does not change the canvas. Available only to organizations where the canvas-libraries feature is enabled.
|
|
7900
|
+
*/
|
|
7901
|
+
export const canvasListLibraryVersions = (options) => (options.client ?? client).get({
|
|
7902
|
+
security: [{
|
|
7903
|
+
key: 'canvas-bearerAuth',
|
|
7904
|
+
scheme: 'bearer',
|
|
7905
|
+
type: 'http'
|
|
7906
|
+
}],
|
|
7907
|
+
url: '/canvas/v1/canvases/{canvas_id}/library_versions',
|
|
7908
|
+
...options
|
|
7909
|
+
});
|
|
7910
|
+
/**
|
|
7911
|
+
* List libraries
|
|
7912
|
+
*
|
|
7913
|
+
* Discover the component libraries of the API key's organization, most recently published first. A library is a canvas that has been published at least once; each item gives its latest version, component count and how many live canvases use it. query keeps only libraries whose name contains the text, ignoring case. limit is 1–100 and defaults to 50; pass next_cursor as cursor until it is null. Deleted canvases are not listed. Available only to organizations where the canvas-libraries feature is enabled.
|
|
7914
|
+
*/
|
|
7915
|
+
export const canvasListLibraries = (options) => (options?.client ?? client).get({
|
|
7916
|
+
security: [{
|
|
7917
|
+
key: 'canvas-bearerAuth',
|
|
7918
|
+
scheme: 'bearer',
|
|
7919
|
+
type: 'http'
|
|
7920
|
+
}],
|
|
7921
|
+
url: '/canvas/v1/libraries',
|
|
7922
|
+
...options
|
|
7923
|
+
});
|
|
7924
|
+
/**
|
|
7925
|
+
* Import canvas library
|
|
7926
|
+
*
|
|
7927
|
+
* Make a published library's components usable in this canvas under an alias, or move an existing alias to another library version. Supply this canvas's canvas_id and the library's canvas id from libraries.list; the library must have been published at least once, and a library cannot itself import another library. After importing, reference a component as alias:component_id (for example ref ui:btn in a script) and a library variable as $alias:name; library nodes are read-only here. Moving an alias to a newer version keeps every instance and its overrides. The import is one new canvas version, so restoring an earlier version also restores the library versions it used. Importing the same alias and version again changes nothing. Component libraries are available only to organizations where the canvas-libraries feature is enabled.
|
|
7928
|
+
*/
|
|
7929
|
+
export const canvasSetImport = (options) => (options.client ?? client).post({
|
|
7930
|
+
security: [{
|
|
7931
|
+
key: 'canvas-bearerAuth',
|
|
7932
|
+
scheme: 'bearer',
|
|
7933
|
+
type: 'http'
|
|
7934
|
+
}],
|
|
7935
|
+
url: '/canvas/v1/canvases/{canvas_id}/imports',
|
|
7936
|
+
...options,
|
|
7937
|
+
headers: {
|
|
7938
|
+
'Content-Type': 'application/json',
|
|
7939
|
+
...options.headers
|
|
7940
|
+
}
|
|
7941
|
+
});
|
|
7942
|
+
/**
|
|
7943
|
+
* Remove canvas library import
|
|
7944
|
+
*
|
|
7945
|
+
* Stop using an imported library in this canvas. Supply this canvas's canvas_id and the alias it was imported under, as listed in imports of retrieve. The import is refused while any node still instantiates one of the library's components (the count is in error.details.instances, and retrieve lists them per component), so delete or replace those nodes first. The removal is one new canvas version. Component libraries are available only to organizations where the canvas-libraries feature is enabled.
|
|
7946
|
+
*/
|
|
7947
|
+
export const canvasDeleteImport = (options) => (options.client ?? client).delete({
|
|
7948
|
+
security: [{
|
|
7949
|
+
key: 'canvas-bearerAuth',
|
|
7950
|
+
scheme: 'bearer',
|
|
7951
|
+
type: 'http'
|
|
7952
|
+
}],
|
|
7953
|
+
url: '/canvas/v1/canvases/{canvas_id}/imports/{alias}',
|
|
7954
|
+
...options
|
|
7955
|
+
});
|
|
7688
7956
|
/**
|
|
7689
7957
|
* List contents
|
|
7690
7958
|
*
|