@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.
Files changed (63) hide show
  1. package/README.md +1 -1
  2. package/dist/agent-streams.d.ts +9 -2
  3. package/dist/agent-streams.d.ts.map +1 -1
  4. package/dist/browser.js +2 -2
  5. package/dist/browser.js.map +1 -1
  6. package/dist/{chunk-263m4e9p.js → chunk-1wdszw1c.js} +19 -13
  7. package/dist/{chunk-263m4e9p.js.map → chunk-1wdszw1c.js.map} +5 -5
  8. package/dist/{chunk-59f4fbnk.js → chunk-2qsekqcn.js} +108 -51
  9. package/dist/chunk-2qsekqcn.js.map +19 -0
  10. package/dist/{chunk-k2j71x7a.js → chunk-fnd56xxz.js} +2 -2
  11. package/dist/{chunk-k2j71x7a.js.map → chunk-fnd56xxz.js.map} +1 -1
  12. package/dist/chunk-j9t5h44d.js.map +1 -1
  13. package/dist/{chunk-9gz30dxy.js → chunk-mk0w4zr1.js} +1 -1
  14. package/dist/{chunk-9gz30dxy.js.map → chunk-mk0w4zr1.js.map} +1 -1
  15. package/dist/{chunk-tttfv49k.js → chunk-s2pagg09.js} +52 -4
  16. package/dist/chunk-s2pagg09.js.map +11 -0
  17. package/dist/{chunk-1v736aje.js → chunk-sh0f609h.js} +1 -1
  18. package/dist/connectors/queries.d.ts.map +1 -1
  19. package/dist/generated/@tanstack/react-query.gen.d.ts +2443 -96
  20. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  21. package/dist/generated/index.d.ts +2 -2
  22. package/dist/generated/index.d.ts.map +1 -1
  23. package/dist/generated/sdk.gen.d.ts +48 -16
  24. package/dist/generated/sdk.gen.d.ts.map +1 -1
  25. package/dist/generated/types.gen.d.ts +1233 -268
  26. package/dist/generated/types.gen.d.ts.map +1 -1
  27. package/dist/hooks.d.ts +3 -1
  28. package/dist/hooks.d.ts.map +1 -1
  29. package/dist/hooks.js +359 -77
  30. package/dist/hooks.js.map +9 -7
  31. package/dist/index.js +23 -15
  32. package/dist/index.js.map +1 -1
  33. package/dist/logs.js +3 -3
  34. package/dist/models.js +19 -11
  35. package/dist/models.js.map +1 -1
  36. package/dist/object-query-live-updates.d.ts +34 -0
  37. package/dist/object-query-live-updates.d.ts.map +1 -0
  38. package/dist/object-query-reads.d.ts +8 -0
  39. package/dist/object-query-reads.d.ts.map +1 -0
  40. package/dist/query.d.ts.map +1 -1
  41. package/dist/query.js +3 -3
  42. package/dist/useAgentActivityStream.d.ts +4 -1
  43. package/dist/useAgentActivityStream.d.ts.map +1 -1
  44. package/dist/useDesktop.d.ts +22 -0
  45. package/dist/useDesktop.d.ts.map +1 -0
  46. package/dist/users-hooks.d.ts +9 -5
  47. package/dist/users-hooks.d.ts.map +1 -1
  48. package/package.json +2 -2
  49. package/src/agent-streams.ts +16 -2
  50. package/src/generated/@tanstack/react-query.gen.ts +241 -106
  51. package/src/generated/index.ts +47 -24
  52. package/src/generated/sdk.gen.ts +222 -85
  53. package/src/generated/types.gen.ts +1394 -245
  54. package/src/hooks.ts +6 -0
  55. package/src/object-query-live-updates.ts +276 -0
  56. package/src/object-query-reads.ts +72 -0
  57. package/src/query.ts +5 -0
  58. package/src/useAgentActivityStream.ts +11 -0
  59. package/src/useDesktop.ts +50 -0
  60. package/src/users-hooks.ts +36 -5
  61. package/dist/chunk-59f4fbnk.js.map +0 -19
  62. package/dist/chunk-tttfv49k.js.map +0 -10
  63. /package/dist/{chunk-1v736aje.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,8 @@ import {
157
161
  listWorkflowInterventions,
158
162
  listWorkflowRuns,
159
163
  listWorkflows,
164
+ moveAgentThreadToCloud,
165
+ moveAgentThreadToComputer,
160
166
  type Options,
161
167
  postAgentThreadMessage,
162
168
  publishArtifactVersion,
@@ -166,8 +172,8 @@ import {
166
172
  reauthorizeConnectorConnection,
167
173
  recreateAgentThreadSandbox,
168
174
  refreshAuthSession,
175
+ releaseAgentComputerSession,
169
176
  removeAgentThreadParticipant,
170
- removeObjectLink,
171
177
  requestAction,
172
178
  requestPipelineRun,
173
179
  requestSyncRun,
@@ -198,8 +204,6 @@ import {
198
204
  updateAuthProfile,
199
205
  uploadFileContent,
200
206
  uploadFileRaw,
201
- upsertObject,
202
- upsertObjectLink,
203
207
  } from "../sdk.gen"
204
208
  import type {
205
209
  AbortFileUploadData,
@@ -211,9 +215,6 @@ import type {
211
215
  AddConnectorConnectionData,
212
216
  AddConnectorConnectionError,
213
217
  AddConnectorConnectionResponse,
214
- AppendTelemetryData,
215
- AppendTelemetryError,
216
- AppendTelemetryResponse,
217
218
  CancelAgentRunByIdData,
218
219
  CancelAgentRunByIdError,
219
220
  CancelAgentRunByIdResponse,
@@ -351,6 +352,9 @@ import type {
351
352
  GetAgentRunData,
352
353
  GetAgentRunError,
353
354
  GetAgentRunResponse,
355
+ GetAgentThreadContextData,
356
+ GetAgentThreadContextError,
357
+ GetAgentThreadContextResponse,
354
358
  GetAgentThreadData,
355
359
  GetAgentThreadError,
356
360
  GetAgentThreadResponse,
@@ -412,6 +416,9 @@ import type {
412
416
  GetDatasetResponse,
413
417
  GetDatasetVersionData,
414
418
  GetDatasetVersionError,
419
+ GetDatasetVersionLineageData,
420
+ GetDatasetVersionLineageError,
421
+ GetDatasetVersionLineageResponse,
415
422
  GetDatasetVersionResponse,
416
423
  GetLatestTelemetryData,
417
424
  GetLatestTelemetryError,
@@ -424,6 +431,12 @@ import type {
424
431
  GetObjectFileContentData,
425
432
  GetObjectFileContentError,
426
433
  GetObjectFileContentResponse,
434
+ GetObjectLineageData,
435
+ GetObjectLineageError,
436
+ GetObjectLineageResponse,
437
+ GetObjectLinkLineageData,
438
+ GetObjectLinkLineageError,
439
+ GetObjectLinkLineageResponse,
427
440
  GetObjectResponse,
428
441
  GetObjectTypeData,
429
442
  GetObjectTypeError,
@@ -486,6 +499,9 @@ import type {
486
499
  GetWorkflowRunFileContentError,
487
500
  GetWorkflowRunFileContentResponse,
488
501
  GetWorkflowRunResponse,
502
+ HoldAgentComputerSessionData,
503
+ HoldAgentComputerSessionError,
504
+ HoldAgentComputerSessionResponse,
489
505
  IssueSharedAccessGrantData,
490
506
  IssueSharedAccessGrantError,
491
507
  IssueSharedAccessGrantResponse,
@@ -630,6 +646,12 @@ import type {
630
646
  ListWorkflowRunsResponse,
631
647
  ListWorkflowsData,
632
648
  ListWorkflowsResponse,
649
+ MoveAgentThreadToCloudData,
650
+ MoveAgentThreadToCloudError,
651
+ MoveAgentThreadToCloudResponse,
652
+ MoveAgentThreadToComputerData,
653
+ MoveAgentThreadToComputerError,
654
+ MoveAgentThreadToComputerResponse,
633
655
  PostAgentThreadMessageData,
634
656
  PostAgentThreadMessageError,
635
657
  PostAgentThreadMessageResponse,
@@ -654,11 +676,10 @@ import type {
654
676
  RefreshAuthSessionData,
655
677
  RefreshAuthSessionError,
656
678
  RefreshAuthSessionResponse,
679
+ ReleaseAgentComputerSessionData,
680
+ ReleaseAgentComputerSessionError,
657
681
  RemoveAgentThreadParticipantData,
658
682
  RemoveAgentThreadParticipantError,
659
- RemoveObjectLinkData,
660
- RemoveObjectLinkError,
661
- RemoveObjectLinkResponse,
662
683
  RequestActionData,
663
684
  RequestActionError,
664
685
  RequestActionResponse,
@@ -749,12 +770,6 @@ import type {
749
770
  UploadFileRawData,
750
771
  UploadFileRawError,
751
772
  UploadFileRawResponse,
752
- UpsertObjectData,
753
- UpsertObjectError,
754
- UpsertObjectLinkData,
755
- UpsertObjectLinkError,
756
- UpsertObjectLinkResponse,
757
- UpsertObjectResponse,
758
773
  } from "../types.gen"
759
774
 
760
775
  /**
@@ -2584,6 +2599,33 @@ export const getDatasetVersionOptions = (options: Options<GetDatasetVersionData>
2584
2599
  queryKey: getDatasetVersionQueryKey(options),
2585
2600
  })
2586
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
+
2587
2629
  export const listDatasetRowsQueryKey = (options: Options<ListDatasetRowsData>) =>
2588
2630
  createQueryKey("listDatasetRows", options)
2589
2631
 
@@ -4022,28 +4064,32 @@ export const getObjectOptions = (options: Options<GetObjectData>) =>
4022
4064
  queryKey: getObjectQueryKey(options),
4023
4065
  })
4024
4066
 
4067
+ export const getObjectLineageQueryKey = (options: Options<GetObjectLineageData>) =>
4068
+ createQueryKey("getObjectLineage", options)
4069
+
4025
4070
  /**
4026
- * Create or update object
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`.
4027
4074
  */
4028
- export const upsertObjectMutation = (
4029
- options?: Partial<Options<UpsertObjectData>>
4030
- ): UseMutationOptions<UpsertObjectResponse, UpsertObjectError, Options<UpsertObjectData>> => {
4031
- const mutationOptions: UseMutationOptions<
4032
- UpsertObjectResponse,
4033
- UpsertObjectError,
4034
- Options<UpsertObjectData>
4035
- > = {
4036
- mutationFn: async (fnOptions) => {
4037
- 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({
4038
4084
  ...options,
4039
- ...fnOptions,
4085
+ ...queryKey[0],
4086
+ signal,
4040
4087
  throwOnError: true,
4041
4088
  })
4042
4089
  return data
4043
4090
  },
4044
- }
4045
- return mutationOptions
4046
- }
4091
+ queryKey: getObjectLineageQueryKey(options),
4092
+ })
4047
4093
 
4048
4094
  /**
4049
4095
  * Get object by a unique property
@@ -4573,7 +4619,7 @@ export const getAgentThreadOptions = (options: Options<GetAgentThreadData>) =>
4573
4619
  /**
4574
4620
  * Add participants to an agent thread
4575
4621
  *
4576
- * 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.
4622
+ * 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.
4577
4623
  */
4578
4624
  export const addAgentThreadParticipantsMutation = (
4579
4625
  options?: Partial<Options<AddAgentThreadParticipantsData>>
@@ -4859,6 +4905,33 @@ export const retryAgentRunMutation = (
4859
4905
  return mutationOptions
4860
4906
  }
4861
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
+
4862
4935
  export const listAgentThreadRunsQueryKey = (options: Options<ListAgentThreadRunsData>) =>
4863
4936
  createQueryKey("listAgentThreadRuns", options)
4864
4937
 
@@ -5039,6 +5112,122 @@ export const getAgentChildFileContentOptions = (options: Options<GetAgentChildFi
5039
5112
  queryKey: getAgentChildFileContentQueryKey(options),
5040
5113
  })
5041
5114
 
5115
+ /**
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
5146
+ *
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.
5148
+ */
5149
+ export const moveAgentThreadToComputerMutation = (
5150
+ options?: Partial<Options<MoveAgentThreadToComputerData>>
5151
+ ): UseMutationOptions<
5152
+ MoveAgentThreadToComputerResponse,
5153
+ MoveAgentThreadToComputerError,
5154
+ Options<MoveAgentThreadToComputerData>
5155
+ > => {
5156
+ const mutationOptions: UseMutationOptions<
5157
+ MoveAgentThreadToComputerResponse,
5158
+ MoveAgentThreadToComputerError,
5159
+ Options<MoveAgentThreadToComputerData>
5160
+ > = {
5161
+ mutationFn: async (fnOptions) => {
5162
+ const { data } = await moveAgentThreadToComputer({
5163
+ ...options,
5164
+ ...fnOptions,
5165
+ throwOnError: true,
5166
+ })
5167
+ return data
5168
+ },
5169
+ }
5170
+ return mutationOptions
5171
+ }
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
+
5042
5231
  export const getAgentPreferencesQueryKey = (options?: Options<GetAgentPreferencesData>) =>
5043
5232
  createQueryKey("getAgentPreferences", options)
5044
5233
 
@@ -5823,7 +6012,7 @@ export const listArtifactsInfiniteOptions = (options?: Options<ListArtifactsData
5823
6012
  /**
5824
6013
  * Create an artifact
5825
6014
  *
5826
- * Creates an artifact owned by the caller, with its first version. Store each file with POST /api/files first.
6015
+ * 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.
5827
6016
  */
5828
6017
  export const createArtifactMutation = (
5829
6018
  options?: Partial<Options<CreateArtifactData>>
@@ -6010,7 +6199,7 @@ export const setArtifactStateMutation = (
6010
6199
  /**
6011
6200
  * Publish an artifact's next version
6012
6201
  *
6013
- * 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.
6202
+ * 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.
6014
6203
  */
6015
6204
  export const publishArtifactVersionMutation = (
6016
6205
  options?: Partial<Options<PublishArtifactVersionData>>
@@ -6169,86 +6358,32 @@ export const listModelsOptions = (options?: Options<ListModelsData>) =>
6169
6358
  queryKey: listModelsQueryKey(options),
6170
6359
  })
6171
6360
 
6172
- /**
6173
- * Remove object link
6174
- */
6175
- export const removeObjectLinkMutation = (
6176
- options?: Partial<Options<RemoveObjectLinkData>>
6177
- ): UseMutationOptions<
6178
- RemoveObjectLinkResponse,
6179
- RemoveObjectLinkError,
6180
- Options<RemoveObjectLinkData>
6181
- > => {
6182
- const mutationOptions: UseMutationOptions<
6183
- RemoveObjectLinkResponse,
6184
- RemoveObjectLinkError,
6185
- Options<RemoveObjectLinkData>
6186
- > = {
6187
- mutationFn: async (fnOptions) => {
6188
- const { data } = await removeObjectLink({
6189
- ...options,
6190
- ...fnOptions,
6191
- throwOnError: true,
6192
- })
6193
- return data
6194
- },
6195
- }
6196
- return mutationOptions
6197
- }
6198
-
6199
- /**
6200
- * Create or update object link
6201
- */
6202
- export const upsertObjectLinkMutation = (
6203
- options?: Partial<Options<UpsertObjectLinkData>>
6204
- ): UseMutationOptions<
6205
- UpsertObjectLinkResponse,
6206
- UpsertObjectLinkError,
6207
- Options<UpsertObjectLinkData>
6208
- > => {
6209
- const mutationOptions: UseMutationOptions<
6210
- UpsertObjectLinkResponse,
6211
- UpsertObjectLinkError,
6212
- Options<UpsertObjectLinkData>
6213
- > = {
6214
- mutationFn: async (fnOptions) => {
6215
- const { data } = await upsertObjectLink({
6216
- ...options,
6217
- ...fnOptions,
6218
- throwOnError: true,
6219
- })
6220
- return data
6221
- },
6222
- }
6223
- return mutationOptions
6224
- }
6361
+ export const getObjectLinkLineageQueryKey = (options: Options<GetObjectLinkLineageData>) =>
6362
+ createQueryKey("getObjectLinkLineage", options)
6225
6363
 
6226
6364
  /**
6227
- * Append telemetry point
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`.
6228
6368
  */
6229
- export const appendTelemetryMutation = (
6230
- options?: Partial<Options<AppendTelemetryData>>
6231
- ): UseMutationOptions<
6232
- AppendTelemetryResponse,
6233
- AppendTelemetryError,
6234
- Options<AppendTelemetryData>
6235
- > => {
6236
- const mutationOptions: UseMutationOptions<
6237
- AppendTelemetryResponse,
6238
- AppendTelemetryError,
6239
- Options<AppendTelemetryData>
6240
- > = {
6241
- mutationFn: async (fnOptions) => {
6242
- 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({
6243
6378
  ...options,
6244
- ...fnOptions,
6379
+ ...queryKey[0],
6380
+ signal,
6245
6381
  throwOnError: true,
6246
6382
  })
6247
6383
  return data
6248
6384
  },
6249
- }
6250
- return mutationOptions
6251
- }
6385
+ queryKey: getObjectLinkLineageQueryKey(options),
6386
+ })
6252
6387
 
6253
6388
  /**
6254
6389
  * Get bulk telemetry history
@@ -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,8 @@ export {
156
160
  listWorkflowInterventions,
157
161
  listWorkflowRuns,
158
162
  listWorkflows,
163
+ moveAgentThreadToCloud,
164
+ moveAgentThreadToComputer,
159
165
  type Options,
160
166
  postAgentThreadMessage,
161
167
  publishArtifactVersion,
@@ -165,8 +171,8 @@ export {
165
171
  reauthorizeConnectorConnection,
166
172
  recreateAgentThreadSandbox,
167
173
  refreshAuthSession,
174
+ releaseAgentComputerSession,
168
175
  removeAgentThreadParticipant,
169
- removeObjectLink,
170
176
  requestAction,
171
177
  requestPipelineRun,
172
178
  requestSyncRun,
@@ -197,8 +203,6 @@ export {
197
203
  updateAuthProfile,
198
204
  uploadFileContent,
199
205
  uploadFileRaw,
200
- upsertObject,
201
- upsertObjectLink,
202
206
  } from "./sdk.gen"
203
207
  export type {
204
208
  AbortFileUploadData,
@@ -222,11 +226,6 @@ export type {
222
226
  AgentChildFile,
223
227
  AgentChildRun,
224
228
  AiUsageLimitErrorResponse,
225
- AppendTelemetryData,
226
- AppendTelemetryError,
227
- AppendTelemetryErrors,
228
- AppendTelemetryResponse,
229
- AppendTelemetryResponses,
230
229
  ArtifactErrorResponse,
231
230
  ArtifactQueryProperty,
232
231
  ArtifactQueryResponse,
@@ -461,6 +460,11 @@ export type {
461
460
  GetAgentRunErrors,
462
461
  GetAgentRunResponse,
463
462
  GetAgentRunResponses,
463
+ GetAgentThreadContextData,
464
+ GetAgentThreadContextError,
465
+ GetAgentThreadContextErrors,
466
+ GetAgentThreadContextResponse,
467
+ GetAgentThreadContextResponses,
464
468
  GetAgentThreadData,
465
469
  GetAgentThreadError,
466
470
  GetAgentThreadErrors,
@@ -562,6 +566,11 @@ export type {
562
566
  GetDatasetVersionData,
563
567
  GetDatasetVersionError,
564
568
  GetDatasetVersionErrors,
569
+ GetDatasetVersionLineageData,
570
+ GetDatasetVersionLineageError,
571
+ GetDatasetVersionLineageErrors,
572
+ GetDatasetVersionLineageResponse,
573
+ GetDatasetVersionLineageResponses,
565
574
  GetDatasetVersionResponse,
566
575
  GetDatasetVersionResponses,
567
576
  GetLatestTelemetryData,
@@ -582,6 +591,16 @@ export type {
582
591
  GetObjectFileContentErrors,
583
592
  GetObjectFileContentResponse,
584
593
  GetObjectFileContentResponses,
594
+ GetObjectLineageData,
595
+ GetObjectLineageError,
596
+ GetObjectLineageErrors,
597
+ GetObjectLineageResponse,
598
+ GetObjectLineageResponses,
599
+ GetObjectLinkLineageData,
600
+ GetObjectLinkLineageError,
601
+ GetObjectLinkLineageErrors,
602
+ GetObjectLinkLineageResponse,
603
+ GetObjectLinkLineageResponses,
585
604
  GetObjectResponse,
586
605
  GetObjectResponses,
587
606
  GetObjectTypeData,
@@ -717,6 +736,11 @@ export type {
717
736
  HeadWorkflowRunFileContentError,
718
737
  HeadWorkflowRunFileContentErrors,
719
738
  HeadWorkflowRunFileContentResponses,
739
+ HoldAgentComputerSessionData,
740
+ HoldAgentComputerSessionError,
741
+ HoldAgentComputerSessionErrors,
742
+ HoldAgentComputerSessionResponse,
743
+ HoldAgentComputerSessionResponses,
720
744
  IssueSharedAccessGrantData,
721
745
  IssueSharedAccessGrantError,
722
746
  IssueSharedAccessGrantErrors,
@@ -954,6 +978,16 @@ export type {
954
978
  ListWorkflowsData,
955
979
  ListWorkflowsResponse,
956
980
  ListWorkflowsResponses,
981
+ MoveAgentThreadToCloudData,
982
+ MoveAgentThreadToCloudError,
983
+ MoveAgentThreadToCloudErrors,
984
+ MoveAgentThreadToCloudResponse,
985
+ MoveAgentThreadToCloudResponses,
986
+ MoveAgentThreadToComputerData,
987
+ MoveAgentThreadToComputerError,
988
+ MoveAgentThreadToComputerErrors,
989
+ MoveAgentThreadToComputerResponse,
990
+ MoveAgentThreadToComputerResponses,
957
991
  ObjectExpansion,
958
992
  ObjectQuery,
959
993
  ObjectQueryCountRequest,
@@ -1020,15 +1054,14 @@ export type {
1020
1054
  RefreshAuthSessionErrors,
1021
1055
  RefreshAuthSessionResponse,
1022
1056
  RefreshAuthSessionResponses,
1057
+ ReleaseAgentComputerSessionData,
1058
+ ReleaseAgentComputerSessionError,
1059
+ ReleaseAgentComputerSessionErrors,
1060
+ ReleaseAgentComputerSessionResponses,
1023
1061
  RemoveAgentThreadParticipantData,
1024
1062
  RemoveAgentThreadParticipantError,
1025
1063
  RemoveAgentThreadParticipantErrors,
1026
1064
  RemoveAgentThreadParticipantResponses,
1027
- RemoveObjectLinkData,
1028
- RemoveObjectLinkError,
1029
- RemoveObjectLinkErrors,
1030
- RemoveObjectLinkResponse,
1031
- RemoveObjectLinkResponses,
1032
1065
  RequestActionData,
1033
1066
  RequestActionError,
1034
1067
  RequestActionErrors,
@@ -1179,15 +1212,5 @@ export type {
1179
1212
  UploadFileRawErrors,
1180
1213
  UploadFileRawResponse,
1181
1214
  UploadFileRawResponses,
1182
- UpsertObjectData,
1183
- UpsertObjectError,
1184
- UpsertObjectErrors,
1185
- UpsertObjectLinkData,
1186
- UpsertObjectLinkError,
1187
- UpsertObjectLinkErrors,
1188
- UpsertObjectLinkResponse,
1189
- UpsertObjectLinkResponses,
1190
- UpsertObjectResponse,
1191
- UpsertObjectResponses,
1192
1215
  UserProfile,
1193
1216
  } from "./types.gen"