@sixb/client 0.1.24 → 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/{chunk-1zthvcby.js → chunk-1wdszw1c.js} +12 -7
- package/dist/{chunk-1zthvcby.js.map → chunk-1wdszw1c.js.map} +3 -3
- package/dist/{chunk-14c2tg81.js → chunk-2qsekqcn.js} +52 -40
- package/dist/chunk-2qsekqcn.js.map +19 -0
- package/dist/{chunk-fzpxv5j5.js → chunk-fnd56xxz.js} +2 -2
- package/dist/{chunk-z28fxqd0.js → chunk-mk0w4zr1.js} +1 -1
- package/dist/{chunk-4xavy5bx.js → chunk-s2pagg09.js} +52 -4
- package/dist/chunk-s2pagg09.js.map +11 -0
- package/dist/{chunk-2ezmcce2.js → chunk-sh0f609h.js} +1 -1
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +2661 -432
- 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 +41 -15
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +1003 -169
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.d.ts +2 -0
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +319 -77
- package/dist/hooks.js.map +8 -6
- package/dist/index.js +21 -15
- package/dist/index.js.map +1 -1
- package/dist/logs.js +3 -3
- package/dist/models.js +17 -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.map +1 -1
- package/package.json +2 -2
- package/src/agent-streams.ts +16 -2
- package/src/generated/@tanstack/react-query.gen.ts +207 -105
- package/src/generated/index.ts +41 -24
- package/src/generated/sdk.gen.ts +149 -73
- package/src/generated/types.gen.ts +1187 -182
- package/src/hooks.ts +5 -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/dist/chunk-14c2tg81.js.map +0 -19
- package/dist/chunk-4xavy5bx.js.map +0 -10
- /package/dist/{chunk-fzpxv5j5.js.map → chunk-fnd56xxz.js.map} +0 -0
- /package/dist/{chunk-z28fxqd0.js.map → chunk-mk0w4zr1.js.map} +0 -0
- /package/dist/{chunk-2ezmcce2.js.map → chunk-sh0f609h.js.map} +0 -0
|
@@ -13,7 +13,6 @@ import {
|
|
|
13
13
|
abortFileUpload,
|
|
14
14
|
addAgentThreadParticipants,
|
|
15
15
|
addConnectorConnection,
|
|
16
|
-
appendTelemetry,
|
|
17
16
|
cancelAgentRun,
|
|
18
17
|
cancelAgentRunById,
|
|
19
18
|
cancelWorkflowIntervention,
|
|
@@ -61,6 +60,7 @@ import {
|
|
|
61
60
|
getAgentPreferences,
|
|
62
61
|
getAgentRun,
|
|
63
62
|
getAgentThread,
|
|
63
|
+
getAgentThreadContext,
|
|
64
64
|
getAiAccountingOverview,
|
|
65
65
|
getAiLimitStatus,
|
|
66
66
|
getAiLimitSubjectOptions,
|
|
@@ -81,10 +81,13 @@ import {
|
|
|
81
81
|
getConnectorConnectionRun,
|
|
82
82
|
getDataset,
|
|
83
83
|
getDatasetVersion,
|
|
84
|
+
getDatasetVersionLineage,
|
|
84
85
|
getLatestTelemetry,
|
|
85
86
|
getObject,
|
|
86
87
|
getObjectByUniqueProperty,
|
|
87
88
|
getObjectFileContent,
|
|
89
|
+
getObjectLineage,
|
|
90
|
+
getObjectLinkLineage,
|
|
88
91
|
getObjectType,
|
|
89
92
|
getObservedAgentChildFileContent,
|
|
90
93
|
getObservedAgentMessageFileContent,
|
|
@@ -106,6 +109,7 @@ import {
|
|
|
106
109
|
getWorkflowNodeRunFileContent,
|
|
107
110
|
getWorkflowRun,
|
|
108
111
|
getWorkflowRunFileContent,
|
|
112
|
+
holdAgentComputerSession,
|
|
109
113
|
issueSharedAccessGrant,
|
|
110
114
|
listActionRuns,
|
|
111
115
|
listActions,
|
|
@@ -157,6 +161,7 @@ import {
|
|
|
157
161
|
listWorkflowInterventions,
|
|
158
162
|
listWorkflowRuns,
|
|
159
163
|
listWorkflows,
|
|
164
|
+
moveAgentThreadToCloud,
|
|
160
165
|
moveAgentThreadToComputer,
|
|
161
166
|
type Options,
|
|
162
167
|
postAgentThreadMessage,
|
|
@@ -167,8 +172,8 @@ import {
|
|
|
167
172
|
reauthorizeConnectorConnection,
|
|
168
173
|
recreateAgentThreadSandbox,
|
|
169
174
|
refreshAuthSession,
|
|
175
|
+
releaseAgentComputerSession,
|
|
170
176
|
removeAgentThreadParticipant,
|
|
171
|
-
removeObjectLink,
|
|
172
177
|
requestAction,
|
|
173
178
|
requestPipelineRun,
|
|
174
179
|
requestSyncRun,
|
|
@@ -199,8 +204,6 @@ import {
|
|
|
199
204
|
updateAuthProfile,
|
|
200
205
|
uploadFileContent,
|
|
201
206
|
uploadFileRaw,
|
|
202
|
-
upsertObject,
|
|
203
|
-
upsertObjectLink,
|
|
204
207
|
} from "../sdk.gen"
|
|
205
208
|
import type {
|
|
206
209
|
AbortFileUploadData,
|
|
@@ -212,9 +215,6 @@ import type {
|
|
|
212
215
|
AddConnectorConnectionData,
|
|
213
216
|
AddConnectorConnectionError,
|
|
214
217
|
AddConnectorConnectionResponse,
|
|
215
|
-
AppendTelemetryData,
|
|
216
|
-
AppendTelemetryError,
|
|
217
|
-
AppendTelemetryResponse,
|
|
218
218
|
CancelAgentRunByIdData,
|
|
219
219
|
CancelAgentRunByIdError,
|
|
220
220
|
CancelAgentRunByIdResponse,
|
|
@@ -352,6 +352,9 @@ import type {
|
|
|
352
352
|
GetAgentRunData,
|
|
353
353
|
GetAgentRunError,
|
|
354
354
|
GetAgentRunResponse,
|
|
355
|
+
GetAgentThreadContextData,
|
|
356
|
+
GetAgentThreadContextError,
|
|
357
|
+
GetAgentThreadContextResponse,
|
|
355
358
|
GetAgentThreadData,
|
|
356
359
|
GetAgentThreadError,
|
|
357
360
|
GetAgentThreadResponse,
|
|
@@ -413,6 +416,9 @@ import type {
|
|
|
413
416
|
GetDatasetResponse,
|
|
414
417
|
GetDatasetVersionData,
|
|
415
418
|
GetDatasetVersionError,
|
|
419
|
+
GetDatasetVersionLineageData,
|
|
420
|
+
GetDatasetVersionLineageError,
|
|
421
|
+
GetDatasetVersionLineageResponse,
|
|
416
422
|
GetDatasetVersionResponse,
|
|
417
423
|
GetLatestTelemetryData,
|
|
418
424
|
GetLatestTelemetryError,
|
|
@@ -425,6 +431,12 @@ import type {
|
|
|
425
431
|
GetObjectFileContentData,
|
|
426
432
|
GetObjectFileContentError,
|
|
427
433
|
GetObjectFileContentResponse,
|
|
434
|
+
GetObjectLineageData,
|
|
435
|
+
GetObjectLineageError,
|
|
436
|
+
GetObjectLineageResponse,
|
|
437
|
+
GetObjectLinkLineageData,
|
|
438
|
+
GetObjectLinkLineageError,
|
|
439
|
+
GetObjectLinkLineageResponse,
|
|
428
440
|
GetObjectResponse,
|
|
429
441
|
GetObjectTypeData,
|
|
430
442
|
GetObjectTypeError,
|
|
@@ -487,6 +499,9 @@ import type {
|
|
|
487
499
|
GetWorkflowRunFileContentError,
|
|
488
500
|
GetWorkflowRunFileContentResponse,
|
|
489
501
|
GetWorkflowRunResponse,
|
|
502
|
+
HoldAgentComputerSessionData,
|
|
503
|
+
HoldAgentComputerSessionError,
|
|
504
|
+
HoldAgentComputerSessionResponse,
|
|
490
505
|
IssueSharedAccessGrantData,
|
|
491
506
|
IssueSharedAccessGrantError,
|
|
492
507
|
IssueSharedAccessGrantResponse,
|
|
@@ -631,6 +646,9 @@ import type {
|
|
|
631
646
|
ListWorkflowRunsResponse,
|
|
632
647
|
ListWorkflowsData,
|
|
633
648
|
ListWorkflowsResponse,
|
|
649
|
+
MoveAgentThreadToCloudData,
|
|
650
|
+
MoveAgentThreadToCloudError,
|
|
651
|
+
MoveAgentThreadToCloudResponse,
|
|
634
652
|
MoveAgentThreadToComputerData,
|
|
635
653
|
MoveAgentThreadToComputerError,
|
|
636
654
|
MoveAgentThreadToComputerResponse,
|
|
@@ -658,11 +676,10 @@ import type {
|
|
|
658
676
|
RefreshAuthSessionData,
|
|
659
677
|
RefreshAuthSessionError,
|
|
660
678
|
RefreshAuthSessionResponse,
|
|
679
|
+
ReleaseAgentComputerSessionData,
|
|
680
|
+
ReleaseAgentComputerSessionError,
|
|
661
681
|
RemoveAgentThreadParticipantData,
|
|
662
682
|
RemoveAgentThreadParticipantError,
|
|
663
|
-
RemoveObjectLinkData,
|
|
664
|
-
RemoveObjectLinkError,
|
|
665
|
-
RemoveObjectLinkResponse,
|
|
666
683
|
RequestActionData,
|
|
667
684
|
RequestActionError,
|
|
668
685
|
RequestActionResponse,
|
|
@@ -753,12 +770,6 @@ import type {
|
|
|
753
770
|
UploadFileRawData,
|
|
754
771
|
UploadFileRawError,
|
|
755
772
|
UploadFileRawResponse,
|
|
756
|
-
UpsertObjectData,
|
|
757
|
-
UpsertObjectError,
|
|
758
|
-
UpsertObjectLinkData,
|
|
759
|
-
UpsertObjectLinkError,
|
|
760
|
-
UpsertObjectLinkResponse,
|
|
761
|
-
UpsertObjectResponse,
|
|
762
773
|
} from "../types.gen"
|
|
763
774
|
|
|
764
775
|
/**
|
|
@@ -2588,6 +2599,33 @@ export const getDatasetVersionOptions = (options: Options<GetDatasetVersionData>
|
|
|
2588
2599
|
queryKey: getDatasetVersionQueryKey(options),
|
|
2589
2600
|
})
|
|
2590
2601
|
|
|
2602
|
+
export const getDatasetVersionLineageQueryKey = (options: Options<GetDatasetVersionLineageData>) =>
|
|
2603
|
+
createQueryKey("getDatasetVersionLineage", options)
|
|
2604
|
+
|
|
2605
|
+
/**
|
|
2606
|
+
* Get the versions a dataset version is computed from
|
|
2607
|
+
*
|
|
2608
|
+
* 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`.
|
|
2609
|
+
*/
|
|
2610
|
+
export const getDatasetVersionLineageOptions = (options: Options<GetDatasetVersionLineageData>) =>
|
|
2611
|
+
queryOptions<
|
|
2612
|
+
GetDatasetVersionLineageResponse,
|
|
2613
|
+
GetDatasetVersionLineageError,
|
|
2614
|
+
GetDatasetVersionLineageResponse,
|
|
2615
|
+
ReturnType<typeof getDatasetVersionLineageQueryKey>
|
|
2616
|
+
>({
|
|
2617
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2618
|
+
const { data } = await getDatasetVersionLineage({
|
|
2619
|
+
...options,
|
|
2620
|
+
...queryKey[0],
|
|
2621
|
+
signal,
|
|
2622
|
+
throwOnError: true,
|
|
2623
|
+
})
|
|
2624
|
+
return data
|
|
2625
|
+
},
|
|
2626
|
+
queryKey: getDatasetVersionLineageQueryKey(options),
|
|
2627
|
+
})
|
|
2628
|
+
|
|
2591
2629
|
export const listDatasetRowsQueryKey = (options: Options<ListDatasetRowsData>) =>
|
|
2592
2630
|
createQueryKey("listDatasetRows", options)
|
|
2593
2631
|
|
|
@@ -4026,28 +4064,32 @@ export const getObjectOptions = (options: Options<GetObjectData>) =>
|
|
|
4026
4064
|
queryKey: getObjectQueryKey(options),
|
|
4027
4065
|
})
|
|
4028
4066
|
|
|
4067
|
+
export const getObjectLineageQueryKey = (options: Options<GetObjectLineageData>) =>
|
|
4068
|
+
createQueryKey("getObjectLineage", options)
|
|
4069
|
+
|
|
4029
4070
|
/**
|
|
4030
|
-
*
|
|
4071
|
+
* Get where an object's values come from
|
|
4072
|
+
*
|
|
4073
|
+
* 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`.
|
|
4031
4074
|
*/
|
|
4032
|
-
export const
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
const { data } = await upsertObject({
|
|
4075
|
+
export const getObjectLineageOptions = (options: Options<GetObjectLineageData>) =>
|
|
4076
|
+
queryOptions<
|
|
4077
|
+
GetObjectLineageResponse,
|
|
4078
|
+
GetObjectLineageError,
|
|
4079
|
+
GetObjectLineageResponse,
|
|
4080
|
+
ReturnType<typeof getObjectLineageQueryKey>
|
|
4081
|
+
>({
|
|
4082
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
4083
|
+
const { data } = await getObjectLineage({
|
|
4042
4084
|
...options,
|
|
4043
|
-
...
|
|
4085
|
+
...queryKey[0],
|
|
4086
|
+
signal,
|
|
4044
4087
|
throwOnError: true,
|
|
4045
4088
|
})
|
|
4046
4089
|
return data
|
|
4047
4090
|
},
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
}
|
|
4091
|
+
queryKey: getObjectLineageQueryKey(options),
|
|
4092
|
+
})
|
|
4051
4093
|
|
|
4052
4094
|
/**
|
|
4053
4095
|
* Get object by a unique property
|
|
@@ -4863,6 +4905,33 @@ export const retryAgentRunMutation = (
|
|
|
4863
4905
|
return mutationOptions
|
|
4864
4906
|
}
|
|
4865
4907
|
|
|
4908
|
+
export const getAgentThreadContextQueryKey = (options: Options<GetAgentThreadContextData>) =>
|
|
4909
|
+
createQueryKey("getAgentThreadContext", options)
|
|
4910
|
+
|
|
4911
|
+
/**
|
|
4912
|
+
* Measure an agent thread's context against a model's limits
|
|
4913
|
+
*
|
|
4914
|
+
* What the conversation's next request starts from, the model's limit, and the latest compaction. Read by the context meter after each turn.
|
|
4915
|
+
*/
|
|
4916
|
+
export const getAgentThreadContextOptions = (options: Options<GetAgentThreadContextData>) =>
|
|
4917
|
+
queryOptions<
|
|
4918
|
+
GetAgentThreadContextResponse,
|
|
4919
|
+
GetAgentThreadContextError,
|
|
4920
|
+
GetAgentThreadContextResponse,
|
|
4921
|
+
ReturnType<typeof getAgentThreadContextQueryKey>
|
|
4922
|
+
>({
|
|
4923
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
4924
|
+
const { data } = await getAgentThreadContext({
|
|
4925
|
+
...options,
|
|
4926
|
+
...queryKey[0],
|
|
4927
|
+
signal,
|
|
4928
|
+
throwOnError: true,
|
|
4929
|
+
})
|
|
4930
|
+
return data
|
|
4931
|
+
},
|
|
4932
|
+
queryKey: getAgentThreadContextQueryKey(options),
|
|
4933
|
+
})
|
|
4934
|
+
|
|
4866
4935
|
export const listAgentThreadRunsQueryKey = (options: Options<ListAgentThreadRunsData>) =>
|
|
4867
4936
|
createQueryKey("listAgentThreadRuns", options)
|
|
4868
4937
|
|
|
@@ -5044,9 +5113,38 @@ export const getAgentChildFileContentOptions = (options: Options<GetAgentChildFi
|
|
|
5044
5113
|
})
|
|
5045
5114
|
|
|
5046
5115
|
/**
|
|
5047
|
-
* Move a thread
|
|
5116
|
+
* Move a thread from your computer to the cloud
|
|
5117
|
+
*
|
|
5118
|
+
* 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.
|
|
5119
|
+
*/
|
|
5120
|
+
export const moveAgentThreadToCloudMutation = (
|
|
5121
|
+
options?: Partial<Options<MoveAgentThreadToCloudData>>
|
|
5122
|
+
): UseMutationOptions<
|
|
5123
|
+
MoveAgentThreadToCloudResponse,
|
|
5124
|
+
MoveAgentThreadToCloudError,
|
|
5125
|
+
Options<MoveAgentThreadToCloudData>
|
|
5126
|
+
> => {
|
|
5127
|
+
const mutationOptions: UseMutationOptions<
|
|
5128
|
+
MoveAgentThreadToCloudResponse,
|
|
5129
|
+
MoveAgentThreadToCloudError,
|
|
5130
|
+
Options<MoveAgentThreadToCloudData>
|
|
5131
|
+
> = {
|
|
5132
|
+
mutationFn: async (fnOptions) => {
|
|
5133
|
+
const { data } = await moveAgentThreadToCloud({
|
|
5134
|
+
...options,
|
|
5135
|
+
...fnOptions,
|
|
5136
|
+
throwOnError: true,
|
|
5137
|
+
})
|
|
5138
|
+
return data
|
|
5139
|
+
},
|
|
5140
|
+
}
|
|
5141
|
+
return mutationOptions
|
|
5142
|
+
}
|
|
5143
|
+
|
|
5144
|
+
/**
|
|
5145
|
+
* Move a thread to one of your computers, in a folder there
|
|
5048
5146
|
*
|
|
5049
|
-
* A thread that runs on its owner's computer runs there alone:
|
|
5147
|
+
* 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.
|
|
5050
5148
|
*/
|
|
5051
5149
|
export const moveAgentThreadToComputerMutation = (
|
|
5052
5150
|
options?: Partial<Options<MoveAgentThreadToComputerData>>
|
|
@@ -5072,6 +5170,64 @@ export const moveAgentThreadToComputerMutation = (
|
|
|
5072
5170
|
return mutationOptions
|
|
5073
5171
|
}
|
|
5074
5172
|
|
|
5173
|
+
/**
|
|
5174
|
+
* Close a computer session
|
|
5175
|
+
*
|
|
5176
|
+
* `sixb` closes its session when it quits.
|
|
5177
|
+
*/
|
|
5178
|
+
export const releaseAgentComputerSessionMutation = (
|
|
5179
|
+
options?: Partial<Options<ReleaseAgentComputerSessionData>>
|
|
5180
|
+
): UseMutationOptions<
|
|
5181
|
+
unknown,
|
|
5182
|
+
ReleaseAgentComputerSessionError,
|
|
5183
|
+
Options<ReleaseAgentComputerSessionData>
|
|
5184
|
+
> => {
|
|
5185
|
+
const mutationOptions: UseMutationOptions<
|
|
5186
|
+
unknown,
|
|
5187
|
+
ReleaseAgentComputerSessionError,
|
|
5188
|
+
Options<ReleaseAgentComputerSessionData>
|
|
5189
|
+
> = {
|
|
5190
|
+
mutationFn: async (fnOptions) => {
|
|
5191
|
+
const { data } = await releaseAgentComputerSession({
|
|
5192
|
+
...options,
|
|
5193
|
+
...fnOptions,
|
|
5194
|
+
throwOnError: true,
|
|
5195
|
+
})
|
|
5196
|
+
return data
|
|
5197
|
+
},
|
|
5198
|
+
}
|
|
5199
|
+
return mutationOptions
|
|
5200
|
+
}
|
|
5201
|
+
|
|
5202
|
+
/**
|
|
5203
|
+
* Open or renew a computer session
|
|
5204
|
+
*
|
|
5205
|
+
* `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.
|
|
5206
|
+
*/
|
|
5207
|
+
export const holdAgentComputerSessionMutation = (
|
|
5208
|
+
options?: Partial<Options<HoldAgentComputerSessionData>>
|
|
5209
|
+
): UseMutationOptions<
|
|
5210
|
+
HoldAgentComputerSessionResponse,
|
|
5211
|
+
HoldAgentComputerSessionError,
|
|
5212
|
+
Options<HoldAgentComputerSessionData>
|
|
5213
|
+
> => {
|
|
5214
|
+
const mutationOptions: UseMutationOptions<
|
|
5215
|
+
HoldAgentComputerSessionResponse,
|
|
5216
|
+
HoldAgentComputerSessionError,
|
|
5217
|
+
Options<HoldAgentComputerSessionData>
|
|
5218
|
+
> = {
|
|
5219
|
+
mutationFn: async (fnOptions) => {
|
|
5220
|
+
const { data } = await holdAgentComputerSession({
|
|
5221
|
+
...options,
|
|
5222
|
+
...fnOptions,
|
|
5223
|
+
throwOnError: true,
|
|
5224
|
+
})
|
|
5225
|
+
return data
|
|
5226
|
+
},
|
|
5227
|
+
}
|
|
5228
|
+
return mutationOptions
|
|
5229
|
+
}
|
|
5230
|
+
|
|
5075
5231
|
export const getAgentPreferencesQueryKey = (options?: Options<GetAgentPreferencesData>) =>
|
|
5076
5232
|
createQueryKey("getAgentPreferences", options)
|
|
5077
5233
|
|
|
@@ -6202,86 +6358,32 @@ export const listModelsOptions = (options?: Options<ListModelsData>) =>
|
|
|
6202
6358
|
queryKey: listModelsQueryKey(options),
|
|
6203
6359
|
})
|
|
6204
6360
|
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
*/
|
|
6208
|
-
export const removeObjectLinkMutation = (
|
|
6209
|
-
options?: Partial<Options<RemoveObjectLinkData>>
|
|
6210
|
-
): UseMutationOptions<
|
|
6211
|
-
RemoveObjectLinkResponse,
|
|
6212
|
-
RemoveObjectLinkError,
|
|
6213
|
-
Options<RemoveObjectLinkData>
|
|
6214
|
-
> => {
|
|
6215
|
-
const mutationOptions: UseMutationOptions<
|
|
6216
|
-
RemoveObjectLinkResponse,
|
|
6217
|
-
RemoveObjectLinkError,
|
|
6218
|
-
Options<RemoveObjectLinkData>
|
|
6219
|
-
> = {
|
|
6220
|
-
mutationFn: async (fnOptions) => {
|
|
6221
|
-
const { data } = await removeObjectLink({
|
|
6222
|
-
...options,
|
|
6223
|
-
...fnOptions,
|
|
6224
|
-
throwOnError: true,
|
|
6225
|
-
})
|
|
6226
|
-
return data
|
|
6227
|
-
},
|
|
6228
|
-
}
|
|
6229
|
-
return mutationOptions
|
|
6230
|
-
}
|
|
6231
|
-
|
|
6232
|
-
/**
|
|
6233
|
-
* Create or update object link
|
|
6234
|
-
*/
|
|
6235
|
-
export const upsertObjectLinkMutation = (
|
|
6236
|
-
options?: Partial<Options<UpsertObjectLinkData>>
|
|
6237
|
-
): UseMutationOptions<
|
|
6238
|
-
UpsertObjectLinkResponse,
|
|
6239
|
-
UpsertObjectLinkError,
|
|
6240
|
-
Options<UpsertObjectLinkData>
|
|
6241
|
-
> => {
|
|
6242
|
-
const mutationOptions: UseMutationOptions<
|
|
6243
|
-
UpsertObjectLinkResponse,
|
|
6244
|
-
UpsertObjectLinkError,
|
|
6245
|
-
Options<UpsertObjectLinkData>
|
|
6246
|
-
> = {
|
|
6247
|
-
mutationFn: async (fnOptions) => {
|
|
6248
|
-
const { data } = await upsertObjectLink({
|
|
6249
|
-
...options,
|
|
6250
|
-
...fnOptions,
|
|
6251
|
-
throwOnError: true,
|
|
6252
|
-
})
|
|
6253
|
-
return data
|
|
6254
|
-
},
|
|
6255
|
-
}
|
|
6256
|
-
return mutationOptions
|
|
6257
|
-
}
|
|
6361
|
+
export const getObjectLinkLineageQueryKey = (options: Options<GetObjectLinkLineageData>) =>
|
|
6362
|
+
createQueryKey("getObjectLinkLineage", options)
|
|
6258
6363
|
|
|
6259
6364
|
/**
|
|
6260
|
-
*
|
|
6365
|
+
* Get where an object link comes from
|
|
6366
|
+
*
|
|
6367
|
+
* What makes the link exist, for the current state. Steps the caller cannot view are left out and counted in `restricted`.
|
|
6261
6368
|
*/
|
|
6262
|
-
export const
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
>
|
|
6269
|
-
|
|
6270
|
-
|
|
6271
|
-
AppendTelemetryError,
|
|
6272
|
-
Options<AppendTelemetryData>
|
|
6273
|
-
> = {
|
|
6274
|
-
mutationFn: async (fnOptions) => {
|
|
6275
|
-
const { data } = await appendTelemetry({
|
|
6369
|
+
export const getObjectLinkLineageOptions = (options: Options<GetObjectLinkLineageData>) =>
|
|
6370
|
+
queryOptions<
|
|
6371
|
+
GetObjectLinkLineageResponse,
|
|
6372
|
+
GetObjectLinkLineageError,
|
|
6373
|
+
GetObjectLinkLineageResponse,
|
|
6374
|
+
ReturnType<typeof getObjectLinkLineageQueryKey>
|
|
6375
|
+
>({
|
|
6376
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
6377
|
+
const { data } = await getObjectLinkLineage({
|
|
6276
6378
|
...options,
|
|
6277
|
-
...
|
|
6379
|
+
...queryKey[0],
|
|
6380
|
+
signal,
|
|
6278
6381
|
throwOnError: true,
|
|
6279
6382
|
})
|
|
6280
6383
|
return data
|
|
6281
6384
|
},
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
}
|
|
6385
|
+
queryKey: getObjectLinkLineageQueryKey(options),
|
|
6386
|
+
})
|
|
6285
6387
|
|
|
6286
6388
|
/**
|
|
6287
6389
|
* Get bulk telemetry history
|
package/src/generated/index.ts
CHANGED
|
@@ -4,7 +4,6 @@ export {
|
|
|
4
4
|
abortFileUpload,
|
|
5
5
|
addAgentThreadParticipants,
|
|
6
6
|
addConnectorConnection,
|
|
7
|
-
appendTelemetry,
|
|
8
7
|
cancelAgentRun,
|
|
9
8
|
cancelAgentRunById,
|
|
10
9
|
cancelWorkflowIntervention,
|
|
@@ -52,6 +51,7 @@ export {
|
|
|
52
51
|
getAgentPreferences,
|
|
53
52
|
getAgentRun,
|
|
54
53
|
getAgentThread,
|
|
54
|
+
getAgentThreadContext,
|
|
55
55
|
getAiAccountingOverview,
|
|
56
56
|
getAiLimitStatus,
|
|
57
57
|
getAiLimitSubjectOptions,
|
|
@@ -72,10 +72,13 @@ export {
|
|
|
72
72
|
getConnectorConnectionRun,
|
|
73
73
|
getDataset,
|
|
74
74
|
getDatasetVersion,
|
|
75
|
+
getDatasetVersionLineage,
|
|
75
76
|
getLatestTelemetry,
|
|
76
77
|
getObject,
|
|
77
78
|
getObjectByUniqueProperty,
|
|
78
79
|
getObjectFileContent,
|
|
80
|
+
getObjectLineage,
|
|
81
|
+
getObjectLinkLineage,
|
|
79
82
|
getObjectType,
|
|
80
83
|
getObservedAgentChildFileContent,
|
|
81
84
|
getObservedAgentMessageFileContent,
|
|
@@ -105,6 +108,7 @@ export {
|
|
|
105
108
|
headObjectFileContent,
|
|
106
109
|
headWorkflowNodeRunFileContent,
|
|
107
110
|
headWorkflowRunFileContent,
|
|
111
|
+
holdAgentComputerSession,
|
|
108
112
|
issueSharedAccessGrant,
|
|
109
113
|
listActionRuns,
|
|
110
114
|
listActions,
|
|
@@ -156,6 +160,7 @@ export {
|
|
|
156
160
|
listWorkflowInterventions,
|
|
157
161
|
listWorkflowRuns,
|
|
158
162
|
listWorkflows,
|
|
163
|
+
moveAgentThreadToCloud,
|
|
159
164
|
moveAgentThreadToComputer,
|
|
160
165
|
type Options,
|
|
161
166
|
postAgentThreadMessage,
|
|
@@ -166,8 +171,8 @@ export {
|
|
|
166
171
|
reauthorizeConnectorConnection,
|
|
167
172
|
recreateAgentThreadSandbox,
|
|
168
173
|
refreshAuthSession,
|
|
174
|
+
releaseAgentComputerSession,
|
|
169
175
|
removeAgentThreadParticipant,
|
|
170
|
-
removeObjectLink,
|
|
171
176
|
requestAction,
|
|
172
177
|
requestPipelineRun,
|
|
173
178
|
requestSyncRun,
|
|
@@ -198,8 +203,6 @@ export {
|
|
|
198
203
|
updateAuthProfile,
|
|
199
204
|
uploadFileContent,
|
|
200
205
|
uploadFileRaw,
|
|
201
|
-
upsertObject,
|
|
202
|
-
upsertObjectLink,
|
|
203
206
|
} from "./sdk.gen"
|
|
204
207
|
export type {
|
|
205
208
|
AbortFileUploadData,
|
|
@@ -223,11 +226,6 @@ export type {
|
|
|
223
226
|
AgentChildFile,
|
|
224
227
|
AgentChildRun,
|
|
225
228
|
AiUsageLimitErrorResponse,
|
|
226
|
-
AppendTelemetryData,
|
|
227
|
-
AppendTelemetryError,
|
|
228
|
-
AppendTelemetryErrors,
|
|
229
|
-
AppendTelemetryResponse,
|
|
230
|
-
AppendTelemetryResponses,
|
|
231
229
|
ArtifactErrorResponse,
|
|
232
230
|
ArtifactQueryProperty,
|
|
233
231
|
ArtifactQueryResponse,
|
|
@@ -462,6 +460,11 @@ export type {
|
|
|
462
460
|
GetAgentRunErrors,
|
|
463
461
|
GetAgentRunResponse,
|
|
464
462
|
GetAgentRunResponses,
|
|
463
|
+
GetAgentThreadContextData,
|
|
464
|
+
GetAgentThreadContextError,
|
|
465
|
+
GetAgentThreadContextErrors,
|
|
466
|
+
GetAgentThreadContextResponse,
|
|
467
|
+
GetAgentThreadContextResponses,
|
|
465
468
|
GetAgentThreadData,
|
|
466
469
|
GetAgentThreadError,
|
|
467
470
|
GetAgentThreadErrors,
|
|
@@ -563,6 +566,11 @@ export type {
|
|
|
563
566
|
GetDatasetVersionData,
|
|
564
567
|
GetDatasetVersionError,
|
|
565
568
|
GetDatasetVersionErrors,
|
|
569
|
+
GetDatasetVersionLineageData,
|
|
570
|
+
GetDatasetVersionLineageError,
|
|
571
|
+
GetDatasetVersionLineageErrors,
|
|
572
|
+
GetDatasetVersionLineageResponse,
|
|
573
|
+
GetDatasetVersionLineageResponses,
|
|
566
574
|
GetDatasetVersionResponse,
|
|
567
575
|
GetDatasetVersionResponses,
|
|
568
576
|
GetLatestTelemetryData,
|
|
@@ -583,6 +591,16 @@ export type {
|
|
|
583
591
|
GetObjectFileContentErrors,
|
|
584
592
|
GetObjectFileContentResponse,
|
|
585
593
|
GetObjectFileContentResponses,
|
|
594
|
+
GetObjectLineageData,
|
|
595
|
+
GetObjectLineageError,
|
|
596
|
+
GetObjectLineageErrors,
|
|
597
|
+
GetObjectLineageResponse,
|
|
598
|
+
GetObjectLineageResponses,
|
|
599
|
+
GetObjectLinkLineageData,
|
|
600
|
+
GetObjectLinkLineageError,
|
|
601
|
+
GetObjectLinkLineageErrors,
|
|
602
|
+
GetObjectLinkLineageResponse,
|
|
603
|
+
GetObjectLinkLineageResponses,
|
|
586
604
|
GetObjectResponse,
|
|
587
605
|
GetObjectResponses,
|
|
588
606
|
GetObjectTypeData,
|
|
@@ -718,6 +736,11 @@ export type {
|
|
|
718
736
|
HeadWorkflowRunFileContentError,
|
|
719
737
|
HeadWorkflowRunFileContentErrors,
|
|
720
738
|
HeadWorkflowRunFileContentResponses,
|
|
739
|
+
HoldAgentComputerSessionData,
|
|
740
|
+
HoldAgentComputerSessionError,
|
|
741
|
+
HoldAgentComputerSessionErrors,
|
|
742
|
+
HoldAgentComputerSessionResponse,
|
|
743
|
+
HoldAgentComputerSessionResponses,
|
|
721
744
|
IssueSharedAccessGrantData,
|
|
722
745
|
IssueSharedAccessGrantError,
|
|
723
746
|
IssueSharedAccessGrantErrors,
|
|
@@ -955,6 +978,11 @@ export type {
|
|
|
955
978
|
ListWorkflowsData,
|
|
956
979
|
ListWorkflowsResponse,
|
|
957
980
|
ListWorkflowsResponses,
|
|
981
|
+
MoveAgentThreadToCloudData,
|
|
982
|
+
MoveAgentThreadToCloudError,
|
|
983
|
+
MoveAgentThreadToCloudErrors,
|
|
984
|
+
MoveAgentThreadToCloudResponse,
|
|
985
|
+
MoveAgentThreadToCloudResponses,
|
|
958
986
|
MoveAgentThreadToComputerData,
|
|
959
987
|
MoveAgentThreadToComputerError,
|
|
960
988
|
MoveAgentThreadToComputerErrors,
|
|
@@ -1026,15 +1054,14 @@ export type {
|
|
|
1026
1054
|
RefreshAuthSessionErrors,
|
|
1027
1055
|
RefreshAuthSessionResponse,
|
|
1028
1056
|
RefreshAuthSessionResponses,
|
|
1057
|
+
ReleaseAgentComputerSessionData,
|
|
1058
|
+
ReleaseAgentComputerSessionError,
|
|
1059
|
+
ReleaseAgentComputerSessionErrors,
|
|
1060
|
+
ReleaseAgentComputerSessionResponses,
|
|
1029
1061
|
RemoveAgentThreadParticipantData,
|
|
1030
1062
|
RemoveAgentThreadParticipantError,
|
|
1031
1063
|
RemoveAgentThreadParticipantErrors,
|
|
1032
1064
|
RemoveAgentThreadParticipantResponses,
|
|
1033
|
-
RemoveObjectLinkData,
|
|
1034
|
-
RemoveObjectLinkError,
|
|
1035
|
-
RemoveObjectLinkErrors,
|
|
1036
|
-
RemoveObjectLinkResponse,
|
|
1037
|
-
RemoveObjectLinkResponses,
|
|
1038
1065
|
RequestActionData,
|
|
1039
1066
|
RequestActionError,
|
|
1040
1067
|
RequestActionErrors,
|
|
@@ -1185,15 +1212,5 @@ export type {
|
|
|
1185
1212
|
UploadFileRawErrors,
|
|
1186
1213
|
UploadFileRawResponse,
|
|
1187
1214
|
UploadFileRawResponses,
|
|
1188
|
-
UpsertObjectData,
|
|
1189
|
-
UpsertObjectError,
|
|
1190
|
-
UpsertObjectErrors,
|
|
1191
|
-
UpsertObjectLinkData,
|
|
1192
|
-
UpsertObjectLinkError,
|
|
1193
|
-
UpsertObjectLinkErrors,
|
|
1194
|
-
UpsertObjectLinkResponse,
|
|
1195
|
-
UpsertObjectLinkResponses,
|
|
1196
|
-
UpsertObjectResponse,
|
|
1197
|
-
UpsertObjectResponses,
|
|
1198
1215
|
UserProfile,
|
|
1199
1216
|
} from "./types.gen"
|