@sixb/client 0.1.23 → 0.2.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/README.md +1 -1
- package/dist/agent-streams.d.ts +9 -2
- package/dist/agent-streams.d.ts.map +1 -1
- package/dist/browser.js +2 -2
- package/dist/browser.js.map +1 -1
- package/dist/{chunk-263m4e9p.js → chunk-1wdszw1c.js} +19 -13
- package/dist/{chunk-263m4e9p.js.map → chunk-1wdszw1c.js.map} +5 -5
- package/dist/{chunk-59f4fbnk.js → chunk-2qsekqcn.js} +108 -51
- package/dist/chunk-2qsekqcn.js.map +19 -0
- package/dist/{chunk-k2j71x7a.js → chunk-fnd56xxz.js} +2 -2
- package/dist/{chunk-k2j71x7a.js.map → chunk-fnd56xxz.js.map} +1 -1
- package/dist/chunk-j9t5h44d.js.map +1 -1
- package/dist/{chunk-9gz30dxy.js → chunk-mk0w4zr1.js} +1 -1
- package/dist/{chunk-9gz30dxy.js.map → chunk-mk0w4zr1.js.map} +1 -1
- package/dist/{chunk-tttfv49k.js → chunk-s2pagg09.js} +52 -4
- package/dist/chunk-s2pagg09.js.map +11 -0
- package/dist/{chunk-1v736aje.js → chunk-sh0f609h.js} +1 -1
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +2443 -96
- package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/sdk.gen.d.ts +48 -16
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +1233 -268
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.d.ts +3 -1
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +359 -77
- package/dist/hooks.js.map +9 -7
- package/dist/index.js +23 -15
- package/dist/index.js.map +1 -1
- package/dist/logs.js +3 -3
- package/dist/models.js +19 -11
- package/dist/models.js.map +1 -1
- package/dist/object-query-live-updates.d.ts +34 -0
- package/dist/object-query-live-updates.d.ts.map +1 -0
- package/dist/object-query-reads.d.ts +8 -0
- package/dist/object-query-reads.d.ts.map +1 -0
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +3 -3
- package/dist/useAgentActivityStream.d.ts +4 -1
- package/dist/useAgentActivityStream.d.ts.map +1 -1
- package/dist/useDesktop.d.ts +22 -0
- package/dist/useDesktop.d.ts.map +1 -0
- package/dist/users-hooks.d.ts +9 -5
- package/dist/users-hooks.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/agent-streams.ts +16 -2
- package/src/generated/@tanstack/react-query.gen.ts +241 -106
- package/src/generated/index.ts +47 -24
- package/src/generated/sdk.gen.ts +222 -85
- package/src/generated/types.gen.ts +1394 -245
- package/src/hooks.ts +6 -0
- package/src/object-query-live-updates.ts +276 -0
- package/src/object-query-reads.ts +72 -0
- package/src/query.ts +5 -0
- package/src/useAgentActivityStream.ts +11 -0
- package/src/useDesktop.ts +50 -0
- package/src/users-hooks.ts +36 -5
- package/dist/chunk-59f4fbnk.js.map +0 -19
- package/dist/chunk-tttfv49k.js.map +0 -10
- /package/dist/{chunk-1v736aje.js.map → chunk-sh0f609h.js.map} +0 -0
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -17,9 +17,6 @@ import type {
|
|
|
17
17
|
AddConnectorConnectionData,
|
|
18
18
|
AddConnectorConnectionErrors,
|
|
19
19
|
AddConnectorConnectionResponses,
|
|
20
|
-
AppendTelemetryData,
|
|
21
|
-
AppendTelemetryErrors,
|
|
22
|
-
AppendTelemetryResponses,
|
|
23
20
|
CancelAgentRunByIdData,
|
|
24
21
|
CancelAgentRunByIdErrors,
|
|
25
22
|
CancelAgentRunByIdResponses,
|
|
@@ -157,6 +154,9 @@ import type {
|
|
|
157
154
|
GetAgentRunData,
|
|
158
155
|
GetAgentRunErrors,
|
|
159
156
|
GetAgentRunResponses,
|
|
157
|
+
GetAgentThreadContextData,
|
|
158
|
+
GetAgentThreadContextErrors,
|
|
159
|
+
GetAgentThreadContextResponses,
|
|
160
160
|
GetAgentThreadData,
|
|
161
161
|
GetAgentThreadErrors,
|
|
162
162
|
GetAgentThreadResponses,
|
|
@@ -218,6 +218,9 @@ import type {
|
|
|
218
218
|
GetDatasetResponses,
|
|
219
219
|
GetDatasetVersionData,
|
|
220
220
|
GetDatasetVersionErrors,
|
|
221
|
+
GetDatasetVersionLineageData,
|
|
222
|
+
GetDatasetVersionLineageErrors,
|
|
223
|
+
GetDatasetVersionLineageResponses,
|
|
221
224
|
GetDatasetVersionResponses,
|
|
222
225
|
GetLatestTelemetryData,
|
|
223
226
|
GetLatestTelemetryErrors,
|
|
@@ -230,6 +233,12 @@ import type {
|
|
|
230
233
|
GetObjectFileContentData,
|
|
231
234
|
GetObjectFileContentErrors,
|
|
232
235
|
GetObjectFileContentResponses,
|
|
236
|
+
GetObjectLineageData,
|
|
237
|
+
GetObjectLineageErrors,
|
|
238
|
+
GetObjectLineageResponses,
|
|
239
|
+
GetObjectLinkLineageData,
|
|
240
|
+
GetObjectLinkLineageErrors,
|
|
241
|
+
GetObjectLinkLineageResponses,
|
|
233
242
|
GetObjectResponses,
|
|
234
243
|
GetObjectTypeData,
|
|
235
244
|
GetObjectTypeErrors,
|
|
@@ -316,6 +325,9 @@ import type {
|
|
|
316
325
|
HeadWorkflowRunFileContentData,
|
|
317
326
|
HeadWorkflowRunFileContentErrors,
|
|
318
327
|
HeadWorkflowRunFileContentResponses,
|
|
328
|
+
HoldAgentComputerSessionData,
|
|
329
|
+
HoldAgentComputerSessionErrors,
|
|
330
|
+
HoldAgentComputerSessionResponses,
|
|
319
331
|
IssueSharedAccessGrantData,
|
|
320
332
|
IssueSharedAccessGrantErrors,
|
|
321
333
|
IssueSharedAccessGrantResponses,
|
|
@@ -460,6 +472,12 @@ import type {
|
|
|
460
472
|
ListWorkflowRunsResponses,
|
|
461
473
|
ListWorkflowsData,
|
|
462
474
|
ListWorkflowsResponses,
|
|
475
|
+
MoveAgentThreadToCloudData,
|
|
476
|
+
MoveAgentThreadToCloudErrors,
|
|
477
|
+
MoveAgentThreadToCloudResponses,
|
|
478
|
+
MoveAgentThreadToComputerData,
|
|
479
|
+
MoveAgentThreadToComputerErrors,
|
|
480
|
+
MoveAgentThreadToComputerResponses,
|
|
463
481
|
PostAgentThreadMessageData,
|
|
464
482
|
PostAgentThreadMessageErrors,
|
|
465
483
|
PostAgentThreadMessageResponses,
|
|
@@ -484,12 +502,12 @@ import type {
|
|
|
484
502
|
RefreshAuthSessionData,
|
|
485
503
|
RefreshAuthSessionErrors,
|
|
486
504
|
RefreshAuthSessionResponses,
|
|
505
|
+
ReleaseAgentComputerSessionData,
|
|
506
|
+
ReleaseAgentComputerSessionErrors,
|
|
507
|
+
ReleaseAgentComputerSessionResponses,
|
|
487
508
|
RemoveAgentThreadParticipantData,
|
|
488
509
|
RemoveAgentThreadParticipantErrors,
|
|
489
510
|
RemoveAgentThreadParticipantResponses,
|
|
490
|
-
RemoveObjectLinkData,
|
|
491
|
-
RemoveObjectLinkErrors,
|
|
492
|
-
RemoveObjectLinkResponses,
|
|
493
511
|
RequestActionData,
|
|
494
512
|
RequestActionErrors,
|
|
495
513
|
RequestActionResponses,
|
|
@@ -580,12 +598,6 @@ import type {
|
|
|
580
598
|
UploadFileRawData,
|
|
581
599
|
UploadFileRawErrors,
|
|
582
600
|
UploadFileRawResponses,
|
|
583
|
-
UpsertObjectData,
|
|
584
|
-
UpsertObjectErrors,
|
|
585
|
-
UpsertObjectLinkData,
|
|
586
|
-
UpsertObjectLinkErrors,
|
|
587
|
-
UpsertObjectLinkResponses,
|
|
588
|
-
UpsertObjectResponses,
|
|
589
601
|
} from "./types.gen"
|
|
590
602
|
|
|
591
603
|
export type Options<
|
|
@@ -1686,7 +1698,10 @@ export const listDatasets = <ThrowOnError extends boolean = false>(
|
|
|
1686
1698
|
options?: Options<ListDatasetsData, ThrowOnError>
|
|
1687
1699
|
) =>
|
|
1688
1700
|
(options?.client ?? client).get<ListDatasetsResponses, ListDatasetsErrors, ThrowOnError>({
|
|
1689
|
-
security: [
|
|
1701
|
+
security: [
|
|
1702
|
+
{ scheme: "bearer", type: "http" },
|
|
1703
|
+
{ scheme: "bearer", type: "http" },
|
|
1704
|
+
],
|
|
1690
1705
|
url: "/api/datasets",
|
|
1691
1706
|
...options,
|
|
1692
1707
|
})
|
|
@@ -1698,7 +1713,10 @@ export const getDataset = <ThrowOnError extends boolean = false>(
|
|
|
1698
1713
|
options: Options<GetDatasetData, ThrowOnError>
|
|
1699
1714
|
) =>
|
|
1700
1715
|
(options.client ?? client).get<GetDatasetResponses, GetDatasetErrors, ThrowOnError>({
|
|
1701
|
-
security: [
|
|
1716
|
+
security: [
|
|
1717
|
+
{ scheme: "bearer", type: "http" },
|
|
1718
|
+
{ scheme: "bearer", type: "http" },
|
|
1719
|
+
],
|
|
1702
1720
|
url: "/api/datasets/{datasetId}",
|
|
1703
1721
|
...options,
|
|
1704
1722
|
})
|
|
@@ -1714,7 +1732,10 @@ export const listDatasetVersions = <ThrowOnError extends boolean = false>(
|
|
|
1714
1732
|
ListDatasetVersionsErrors,
|
|
1715
1733
|
ThrowOnError
|
|
1716
1734
|
>({
|
|
1717
|
-
security: [
|
|
1735
|
+
security: [
|
|
1736
|
+
{ scheme: "bearer", type: "http" },
|
|
1737
|
+
{ scheme: "bearer", type: "http" },
|
|
1738
|
+
],
|
|
1718
1739
|
url: "/api/datasets/{datasetId}/versions",
|
|
1719
1740
|
...options,
|
|
1720
1741
|
})
|
|
@@ -1733,6 +1754,27 @@ export const getDatasetVersion = <ThrowOnError extends boolean = false>(
|
|
|
1733
1754
|
}
|
|
1734
1755
|
)
|
|
1735
1756
|
|
|
1757
|
+
/**
|
|
1758
|
+
* Get the versions a dataset version is computed from
|
|
1759
|
+
*
|
|
1760
|
+
* Walks the version's inputs upstream, `depth` steps (1 to 20, default 5). A version whose dataset the caller cannot view is left out with everything upstream of it, and counted in `restricted`.
|
|
1761
|
+
*/
|
|
1762
|
+
export const getDatasetVersionLineage = <ThrowOnError extends boolean = false>(
|
|
1763
|
+
options: Options<GetDatasetVersionLineageData, ThrowOnError>
|
|
1764
|
+
) =>
|
|
1765
|
+
(options.client ?? client).get<
|
|
1766
|
+
GetDatasetVersionLineageResponses,
|
|
1767
|
+
GetDatasetVersionLineageErrors,
|
|
1768
|
+
ThrowOnError
|
|
1769
|
+
>({
|
|
1770
|
+
security: [
|
|
1771
|
+
{ scheme: "bearer", type: "http" },
|
|
1772
|
+
{ scheme: "bearer", type: "http" },
|
|
1773
|
+
],
|
|
1774
|
+
url: "/api/datasets/{datasetId}/versions/{versionId}/lineage",
|
|
1775
|
+
...options,
|
|
1776
|
+
})
|
|
1777
|
+
|
|
1736
1778
|
/**
|
|
1737
1779
|
* Preview dataset rows
|
|
1738
1780
|
*/
|
|
@@ -1740,7 +1782,10 @@ export const listDatasetRows = <ThrowOnError extends boolean = false>(
|
|
|
1740
1782
|
options: Options<ListDatasetRowsData, ThrowOnError>
|
|
1741
1783
|
) =>
|
|
1742
1784
|
(options.client ?? client).get<ListDatasetRowsResponses, ListDatasetRowsErrors, ThrowOnError>({
|
|
1743
|
-
security: [
|
|
1785
|
+
security: [
|
|
1786
|
+
{ scheme: "bearer", type: "http" },
|
|
1787
|
+
{ scheme: "bearer", type: "http" },
|
|
1788
|
+
],
|
|
1744
1789
|
url: "/api/datasets/{datasetId}/rows",
|
|
1745
1790
|
...options,
|
|
1746
1791
|
})
|
|
@@ -1752,7 +1797,10 @@ export const listSyncs = <ThrowOnError extends boolean = false>(
|
|
|
1752
1797
|
options?: Options<ListSyncsData, ThrowOnError>
|
|
1753
1798
|
) =>
|
|
1754
1799
|
(options?.client ?? client).get<ListSyncsResponses, unknown, ThrowOnError>({
|
|
1755
|
-
security: [
|
|
1800
|
+
security: [
|
|
1801
|
+
{ scheme: "bearer", type: "http" },
|
|
1802
|
+
{ scheme: "bearer", type: "http" },
|
|
1803
|
+
],
|
|
1756
1804
|
url: "/api/syncs",
|
|
1757
1805
|
...options,
|
|
1758
1806
|
})
|
|
@@ -1764,7 +1812,10 @@ export const getSync = <ThrowOnError extends boolean = false>(
|
|
|
1764
1812
|
options: Options<GetSyncData, ThrowOnError>
|
|
1765
1813
|
) =>
|
|
1766
1814
|
(options.client ?? client).get<GetSyncResponses, GetSyncErrors, ThrowOnError>({
|
|
1767
|
-
security: [
|
|
1815
|
+
security: [
|
|
1816
|
+
{ scheme: "bearer", type: "http" },
|
|
1817
|
+
{ scheme: "bearer", type: "http" },
|
|
1818
|
+
],
|
|
1768
1819
|
url: "/api/syncs/{syncId}",
|
|
1769
1820
|
...options,
|
|
1770
1821
|
})
|
|
@@ -1776,7 +1827,10 @@ export const listSyncRuns = <ThrowOnError extends boolean = false>(
|
|
|
1776
1827
|
options?: Options<ListSyncRunsData, ThrowOnError>
|
|
1777
1828
|
) =>
|
|
1778
1829
|
(options?.client ?? client).get<ListSyncRunsResponses, ListSyncRunsErrors, ThrowOnError>({
|
|
1779
|
-
security: [
|
|
1830
|
+
security: [
|
|
1831
|
+
{ scheme: "bearer", type: "http" },
|
|
1832
|
+
{ scheme: "bearer", type: "http" },
|
|
1833
|
+
],
|
|
1780
1834
|
url: "/api/sync-runs",
|
|
1781
1835
|
...options,
|
|
1782
1836
|
})
|
|
@@ -1807,7 +1861,10 @@ export const listPipelines = <ThrowOnError extends boolean = false>(
|
|
|
1807
1861
|
options?: Options<ListPipelinesData, ThrowOnError>
|
|
1808
1862
|
) =>
|
|
1809
1863
|
(options?.client ?? client).get<ListPipelinesResponses, unknown, ThrowOnError>({
|
|
1810
|
-
security: [
|
|
1864
|
+
security: [
|
|
1865
|
+
{ scheme: "bearer", type: "http" },
|
|
1866
|
+
{ scheme: "bearer", type: "http" },
|
|
1867
|
+
],
|
|
1811
1868
|
url: "/api/pipelines",
|
|
1812
1869
|
...options,
|
|
1813
1870
|
})
|
|
@@ -1819,7 +1876,10 @@ export const getPipeline = <ThrowOnError extends boolean = false>(
|
|
|
1819
1876
|
options: Options<GetPipelineData, ThrowOnError>
|
|
1820
1877
|
) =>
|
|
1821
1878
|
(options.client ?? client).get<GetPipelineResponses, GetPipelineErrors, ThrowOnError>({
|
|
1822
|
-
security: [
|
|
1879
|
+
security: [
|
|
1880
|
+
{ scheme: "bearer", type: "http" },
|
|
1881
|
+
{ scheme: "bearer", type: "http" },
|
|
1882
|
+
],
|
|
1823
1883
|
url: "/api/pipelines/{pipelineId}",
|
|
1824
1884
|
...options,
|
|
1825
1885
|
})
|
|
@@ -1831,7 +1891,10 @@ export const listPipelineRuns = <ThrowOnError extends boolean = false>(
|
|
|
1831
1891
|
options?: Options<ListPipelineRunsData, ThrowOnError>
|
|
1832
1892
|
) =>
|
|
1833
1893
|
(options?.client ?? client).get<ListPipelineRunsResponses, ListPipelineRunsErrors, ThrowOnError>({
|
|
1834
|
-
security: [
|
|
1894
|
+
security: [
|
|
1895
|
+
{ scheme: "bearer", type: "http" },
|
|
1896
|
+
{ scheme: "bearer", type: "http" },
|
|
1897
|
+
],
|
|
1835
1898
|
url: "/api/pipeline-runs",
|
|
1836
1899
|
...options,
|
|
1837
1900
|
})
|
|
@@ -1843,7 +1906,10 @@ export const getPipelineRun = <ThrowOnError extends boolean = false>(
|
|
|
1843
1906
|
options: Options<GetPipelineRunData, ThrowOnError>
|
|
1844
1907
|
) =>
|
|
1845
1908
|
(options.client ?? client).get<GetPipelineRunResponses, GetPipelineRunErrors, ThrowOnError>({
|
|
1846
|
-
security: [
|
|
1909
|
+
security: [
|
|
1910
|
+
{ scheme: "bearer", type: "http" },
|
|
1911
|
+
{ scheme: "bearer", type: "http" },
|
|
1912
|
+
],
|
|
1847
1913
|
url: "/api/pipeline-runs/{runId}",
|
|
1848
1914
|
...options,
|
|
1849
1915
|
})
|
|
@@ -2520,23 +2586,20 @@ export const getObject = <ThrowOnError extends boolean = false>(
|
|
|
2520
2586
|
})
|
|
2521
2587
|
|
|
2522
2588
|
/**
|
|
2523
|
-
*
|
|
2589
|
+
* Get where an object's values come from
|
|
2590
|
+
*
|
|
2591
|
+
* What makes the object exist and what decided each property it holds, for the current state. Steps the caller cannot view are left out and counted in `restricted`.
|
|
2524
2592
|
*/
|
|
2525
|
-
export const
|
|
2526
|
-
options: Options<
|
|
2593
|
+
export const getObjectLineage = <ThrowOnError extends boolean = false>(
|
|
2594
|
+
options: Options<GetObjectLineageData, ThrowOnError>
|
|
2527
2595
|
) =>
|
|
2528
|
-
(options.client ?? client).
|
|
2596
|
+
(options.client ?? client).get<GetObjectLineageResponses, GetObjectLineageErrors, ThrowOnError>({
|
|
2529
2597
|
security: [
|
|
2530
|
-
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
2531
2598
|
{ scheme: "bearer", type: "http" },
|
|
2532
2599
|
{ scheme: "bearer", type: "http" },
|
|
2533
2600
|
],
|
|
2534
|
-
url: "/api/objects/{objectTypeId}/{objectId}",
|
|
2601
|
+
url: "/api/objects/{objectTypeId}/{objectId}/lineage",
|
|
2535
2602
|
...options,
|
|
2536
|
-
headers: {
|
|
2537
|
-
"Content-Type": "application/json",
|
|
2538
|
-
...options.headers,
|
|
2539
|
-
},
|
|
2540
2603
|
})
|
|
2541
2604
|
|
|
2542
2605
|
/**
|
|
@@ -2871,7 +2934,7 @@ export const getAgentThread = <ThrowOnError extends boolean = false>(
|
|
|
2871
2934
|
/**
|
|
2872
2935
|
* Add participants to an agent thread
|
|
2873
2936
|
*
|
|
2874
|
-
* Only the thread's owner adds participants: active users of the project, by id or by email. They read the whole conversation, its files and its live stream, and send messages that run with their own rights. Nothing checks what they may see: the conversation holds what the Agent read with the rights of whoever asked.
|
|
2937
|
+
* Only the thread's owner adds participants: active users of the project, by id or by email. They read the whole conversation, its files and its live stream, and send messages that run with their own rights; a thread that runs on its owner's computer they only read. Nothing checks what they may see: the conversation holds what the Agent read with the rights of whoever asked.
|
|
2875
2938
|
*/
|
|
2876
2939
|
export const addAgentThreadParticipants = <ThrowOnError extends boolean = false>(
|
|
2877
2940
|
options: Options<AddAgentThreadParticipantsData, ThrowOnError>
|
|
@@ -2963,7 +3026,10 @@ export const listAgentThreadMessages = <ThrowOnError extends boolean = false>(
|
|
|
2963
3026
|
ListAgentThreadMessagesErrors,
|
|
2964
3027
|
ThrowOnError
|
|
2965
3028
|
>({
|
|
2966
|
-
security: [
|
|
3029
|
+
security: [
|
|
3030
|
+
{ scheme: "bearer", type: "http" },
|
|
3031
|
+
{ scheme: "bearer", type: "http" },
|
|
3032
|
+
],
|
|
2967
3033
|
url: "/api/agent-threads/{threadId}/messages",
|
|
2968
3034
|
...options,
|
|
2969
3035
|
})
|
|
@@ -3067,6 +3133,24 @@ export const retryAgentRun = <ThrowOnError extends boolean = false>(
|
|
|
3067
3133
|
...options,
|
|
3068
3134
|
})
|
|
3069
3135
|
|
|
3136
|
+
/**
|
|
3137
|
+
* Measure an agent thread's context against a model's limits
|
|
3138
|
+
*
|
|
3139
|
+
* What the conversation's next request starts from, the model's limit, and the latest compaction. Read by the context meter after each turn.
|
|
3140
|
+
*/
|
|
3141
|
+
export const getAgentThreadContext = <ThrowOnError extends boolean = false>(
|
|
3142
|
+
options: Options<GetAgentThreadContextData, ThrowOnError>
|
|
3143
|
+
) =>
|
|
3144
|
+
(options.client ?? client).get<
|
|
3145
|
+
GetAgentThreadContextResponses,
|
|
3146
|
+
GetAgentThreadContextErrors,
|
|
3147
|
+
ThrowOnError
|
|
3148
|
+
>({
|
|
3149
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3150
|
+
url: "/api/agent-threads/{threadId}/context",
|
|
3151
|
+
...options,
|
|
3152
|
+
})
|
|
3153
|
+
|
|
3070
3154
|
/**
|
|
3071
3155
|
* List an agent thread's runs
|
|
3072
3156
|
*/
|
|
@@ -3176,6 +3260,98 @@ export const headAgentChildFileContent = <ThrowOnError extends boolean = false>(
|
|
|
3176
3260
|
...options,
|
|
3177
3261
|
})
|
|
3178
3262
|
|
|
3263
|
+
/**
|
|
3264
|
+
* Move a thread from your computer to the cloud
|
|
3265
|
+
*
|
|
3266
|
+
* Its turns run in the cloud from now on, starting with the one waiting for the computer, if any. The files it worked on stay on the computer. Refused while a turn runs there or waits on approvals.
|
|
3267
|
+
*/
|
|
3268
|
+
export const moveAgentThreadToCloud = <ThrowOnError extends boolean = false>(
|
|
3269
|
+
options: Options<MoveAgentThreadToCloudData, ThrowOnError>
|
|
3270
|
+
) =>
|
|
3271
|
+
(options.client ?? client).delete<
|
|
3272
|
+
MoveAgentThreadToCloudResponses,
|
|
3273
|
+
MoveAgentThreadToCloudErrors,
|
|
3274
|
+
ThrowOnError
|
|
3275
|
+
>({
|
|
3276
|
+
security: [
|
|
3277
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3278
|
+
{ scheme: "bearer", type: "http" },
|
|
3279
|
+
],
|
|
3280
|
+
url: "/api/agent-threads/{threadId}/computer",
|
|
3281
|
+
...options,
|
|
3282
|
+
})
|
|
3283
|
+
|
|
3284
|
+
/**
|
|
3285
|
+
* Move a thread to one of your computers, in a folder there
|
|
3286
|
+
*
|
|
3287
|
+
* A thread that runs on its owner's computer runs there alone, in one folder: only `sixb` open in that folder claims its turns. Its owner moves it to another folder or computer. Refused while a turn runs or waits on approvals.
|
|
3288
|
+
*/
|
|
3289
|
+
export const moveAgentThreadToComputer = <ThrowOnError extends boolean = false>(
|
|
3290
|
+
options: Options<MoveAgentThreadToComputerData, ThrowOnError>
|
|
3291
|
+
) =>
|
|
3292
|
+
(options.client ?? client).post<
|
|
3293
|
+
MoveAgentThreadToComputerResponses,
|
|
3294
|
+
MoveAgentThreadToComputerErrors,
|
|
3295
|
+
ThrowOnError
|
|
3296
|
+
>({
|
|
3297
|
+
security: [
|
|
3298
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3299
|
+
{ scheme: "bearer", type: "http" },
|
|
3300
|
+
],
|
|
3301
|
+
url: "/api/agent-threads/{threadId}/computer",
|
|
3302
|
+
...options,
|
|
3303
|
+
headers: {
|
|
3304
|
+
"Content-Type": "application/json",
|
|
3305
|
+
...options.headers,
|
|
3306
|
+
},
|
|
3307
|
+
})
|
|
3308
|
+
|
|
3309
|
+
/**
|
|
3310
|
+
* Close a computer session
|
|
3311
|
+
*
|
|
3312
|
+
* `sixb` closes its session when it quits.
|
|
3313
|
+
*/
|
|
3314
|
+
export const releaseAgentComputerSession = <ThrowOnError extends boolean = false>(
|
|
3315
|
+
options: Options<ReleaseAgentComputerSessionData, ThrowOnError>
|
|
3316
|
+
) =>
|
|
3317
|
+
(options.client ?? client).delete<
|
|
3318
|
+
ReleaseAgentComputerSessionResponses,
|
|
3319
|
+
ReleaseAgentComputerSessionErrors,
|
|
3320
|
+
ThrowOnError
|
|
3321
|
+
>({
|
|
3322
|
+
security: [
|
|
3323
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3324
|
+
{ scheme: "bearer", type: "http" },
|
|
3325
|
+
],
|
|
3326
|
+
url: "/api/agent-computers/sessions/{sessionId}",
|
|
3327
|
+
...options,
|
|
3328
|
+
})
|
|
3329
|
+
|
|
3330
|
+
/**
|
|
3331
|
+
* Open or renew a computer session
|
|
3332
|
+
*
|
|
3333
|
+
* `sixb` holds one while it is open: your threads on this computer, in this folder, read as online, and you can continue them from anywhere. It lapses a minute after its last renewal. The answer lists the turns waiting for it.
|
|
3334
|
+
*/
|
|
3335
|
+
export const holdAgentComputerSession = <ThrowOnError extends boolean = false>(
|
|
3336
|
+
options: Options<HoldAgentComputerSessionData, ThrowOnError>
|
|
3337
|
+
) =>
|
|
3338
|
+
(options.client ?? client).put<
|
|
3339
|
+
HoldAgentComputerSessionResponses,
|
|
3340
|
+
HoldAgentComputerSessionErrors,
|
|
3341
|
+
ThrowOnError
|
|
3342
|
+
>({
|
|
3343
|
+
security: [
|
|
3344
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3345
|
+
{ scheme: "bearer", type: "http" },
|
|
3346
|
+
],
|
|
3347
|
+
url: "/api/agent-computers/sessions/{sessionId}",
|
|
3348
|
+
...options,
|
|
3349
|
+
headers: {
|
|
3350
|
+
"Content-Type": "application/json",
|
|
3351
|
+
...options.headers,
|
|
3352
|
+
},
|
|
3353
|
+
})
|
|
3354
|
+
|
|
3179
3355
|
/**
|
|
3180
3356
|
* Get your Agent preferences
|
|
3181
3357
|
*/
|
|
@@ -3513,7 +3689,7 @@ export const listArtifacts = <ThrowOnError extends boolean = false>(
|
|
|
3513
3689
|
/**
|
|
3514
3690
|
* Create an artifact
|
|
3515
3691
|
*
|
|
3516
|
-
* Creates an artifact owned by the caller, with its first version. Store each file with POST /api/files first.
|
|
3692
|
+
* Creates an artifact owned by the caller, with its first version. Store each file with POST /api/files first. With a run token, it is created in the run's conversation, owned by the conversation's owner and authored by the run's requester.
|
|
3517
3693
|
*/
|
|
3518
3694
|
export const createArtifact = <ThrowOnError extends boolean = false>(
|
|
3519
3695
|
options: Options<CreateArtifactData, ThrowOnError>
|
|
@@ -3649,7 +3825,7 @@ export const setArtifactState = <ThrowOnError extends boolean = false>(
|
|
|
3649
3825
|
/**
|
|
3650
3826
|
* Publish an artifact's next version
|
|
3651
3827
|
*
|
|
3652
|
-
* The kind must be the artifact's. The new version becomes the latest. With baseVersion, it is refused with 409 artifact_moved when another version was published since.
|
|
3828
|
+
* The kind must be the artifact's. The new version becomes the latest. With baseVersion, it is refused with 409 artifact_moved when another version was published since. With a run token, only an artifact the run's conversation shares or its requester owns; the version is shared in that conversation. A run that lost its execution gets 409 execution_lost.
|
|
3653
3829
|
*/
|
|
3654
3830
|
export const publishArtifactVersion = <ThrowOnError extends boolean = false>(
|
|
3655
3831
|
options: Options<PublishArtifactVersionData, ThrowOnError>
|
|
@@ -3786,65 +3962,26 @@ export const listModels = <ThrowOnError extends boolean = false>(
|
|
|
3786
3962
|
})
|
|
3787
3963
|
|
|
3788
3964
|
/**
|
|
3789
|
-
*
|
|
3965
|
+
* Get where an object link comes from
|
|
3966
|
+
*
|
|
3967
|
+
* What makes the link exist, for the current state. Steps the caller cannot view are left out and counted in `restricted`.
|
|
3790
3968
|
*/
|
|
3791
|
-
export const
|
|
3792
|
-
options: Options<
|
|
3969
|
+
export const getObjectLinkLineage = <ThrowOnError extends boolean = false>(
|
|
3970
|
+
options: Options<GetObjectLinkLineageData, ThrowOnError>
|
|
3793
3971
|
) =>
|
|
3794
|
-
(options.client ?? client).
|
|
3795
|
-
|
|
3796
|
-
|
|
3972
|
+
(options.client ?? client).get<
|
|
3973
|
+
GetObjectLinkLineageResponses,
|
|
3974
|
+
GetObjectLinkLineageErrors,
|
|
3797
3975
|
ThrowOnError
|
|
3798
3976
|
>({
|
|
3799
3977
|
security: [
|
|
3800
|
-
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3801
3978
|
{ scheme: "bearer", type: "http" },
|
|
3802
3979
|
{ scheme: "bearer", type: "http" },
|
|
3803
3980
|
],
|
|
3804
|
-
url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}",
|
|
3981
|
+
url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}/lineage",
|
|
3805
3982
|
...options,
|
|
3806
3983
|
})
|
|
3807
3984
|
|
|
3808
|
-
/**
|
|
3809
|
-
* Create or update object link
|
|
3810
|
-
*/
|
|
3811
|
-
export const upsertObjectLink = <ThrowOnError extends boolean = false>(
|
|
3812
|
-
options: Options<UpsertObjectLinkData, ThrowOnError>
|
|
3813
|
-
) =>
|
|
3814
|
-
(options.client ?? client).put<UpsertObjectLinkResponses, UpsertObjectLinkErrors, ThrowOnError>({
|
|
3815
|
-
security: [
|
|
3816
|
-
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3817
|
-
{ scheme: "bearer", type: "http" },
|
|
3818
|
-
{ scheme: "bearer", type: "http" },
|
|
3819
|
-
],
|
|
3820
|
-
url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}",
|
|
3821
|
-
...options,
|
|
3822
|
-
headers: {
|
|
3823
|
-
"Content-Type": "application/json",
|
|
3824
|
-
...options.headers,
|
|
3825
|
-
},
|
|
3826
|
-
})
|
|
3827
|
-
|
|
3828
|
-
/**
|
|
3829
|
-
* Append telemetry point
|
|
3830
|
-
*/
|
|
3831
|
-
export const appendTelemetry = <ThrowOnError extends boolean = false>(
|
|
3832
|
-
options: Options<AppendTelemetryData, ThrowOnError>
|
|
3833
|
-
) =>
|
|
3834
|
-
(options.client ?? client).post<AppendTelemetryResponses, AppendTelemetryErrors, ThrowOnError>({
|
|
3835
|
-
security: [
|
|
3836
|
-
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3837
|
-
{ scheme: "bearer", type: "http" },
|
|
3838
|
-
{ scheme: "bearer", type: "http" },
|
|
3839
|
-
],
|
|
3840
|
-
url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}",
|
|
3841
|
-
...options,
|
|
3842
|
-
headers: {
|
|
3843
|
-
"Content-Type": "application/json",
|
|
3844
|
-
...options.headers,
|
|
3845
|
-
},
|
|
3846
|
-
})
|
|
3847
|
-
|
|
3848
3985
|
/**
|
|
3849
3986
|
* Get bulk telemetry history
|
|
3850
3987
|
*/
|