@sixb/client 0.1.24 → 0.2.1

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 (59) 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/{chunk-1zthvcby.js → chunk-0p42gyb5.js} +12 -7
  6. package/dist/{chunk-1zthvcby.js.map → chunk-0p42gyb5.js.map} +3 -3
  7. package/dist/{chunk-z28fxqd0.js → chunk-3kfn00we.js} +1 -1
  8. package/dist/{chunk-2ezmcce2.js → chunk-hkn0keqj.js} +1 -1
  9. package/dist/{chunk-14c2tg81.js → chunk-k2na62sa.js} +64 -40
  10. package/dist/chunk-k2na62sa.js.map +19 -0
  11. package/dist/{chunk-fzpxv5j5.js → chunk-r50kxqa5.js} +2 -2
  12. package/dist/{chunk-4xavy5bx.js → chunk-rrexv1gk.js} +52 -4
  13. package/dist/chunk-rrexv1gk.js.map +11 -0
  14. package/dist/connectors/queries.d.ts.map +1 -1
  15. package/dist/generated/@tanstack/react-query.gen.d.ts +2905 -476
  16. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  17. package/dist/generated/index.d.ts +2 -2
  18. package/dist/generated/index.d.ts.map +1 -1
  19. package/dist/generated/sdk.gen.d.ts +47 -15
  20. package/dist/generated/sdk.gen.d.ts.map +1 -1
  21. package/dist/generated/types.gen.d.ts +1250 -243
  22. package/dist/generated/types.gen.d.ts.map +1 -1
  23. package/dist/hooks.d.ts +2 -0
  24. package/dist/hooks.d.ts.map +1 -1
  25. package/dist/hooks.js +334 -77
  26. package/dist/hooks.js.map +8 -6
  27. package/dist/index.js +23 -15
  28. package/dist/index.js.map +1 -1
  29. package/dist/logs.js +3 -3
  30. package/dist/models.js +19 -11
  31. package/dist/models.js.map +1 -1
  32. package/dist/object-query-live-updates.d.ts +34 -0
  33. package/dist/object-query-live-updates.d.ts.map +1 -0
  34. package/dist/object-query-reads.d.ts +8 -0
  35. package/dist/object-query-reads.d.ts.map +1 -0
  36. package/dist/query.d.ts.map +1 -1
  37. package/dist/query.js +3 -3
  38. package/dist/useAgentActivityStream.d.ts +4 -1
  39. package/dist/useAgentActivityStream.d.ts.map +1 -1
  40. package/dist/useDesktop.d.ts +47 -0
  41. package/dist/useDesktop.d.ts.map +1 -0
  42. package/dist/users-hooks.d.ts.map +1 -1
  43. package/package.json +2 -2
  44. package/src/agent-streams.ts +16 -2
  45. package/src/generated/@tanstack/react-query.gen.ts +240 -105
  46. package/src/generated/index.ts +47 -24
  47. package/src/generated/sdk.gen.ts +177 -73
  48. package/src/generated/types.gen.ts +1359 -169
  49. package/src/hooks.ts +11 -0
  50. package/src/object-query-live-updates.ts +276 -0
  51. package/src/object-query-reads.ts +72 -0
  52. package/src/query.ts +5 -0
  53. package/src/useAgentActivityStream.ts +11 -0
  54. package/src/useDesktop.ts +77 -0
  55. package/dist/chunk-14c2tg81.js.map +0 -19
  56. package/dist/chunk-4xavy5bx.js.map +0 -10
  57. /package/dist/{chunk-z28fxqd0.js.map → chunk-3kfn00we.js.map} +0 -0
  58. /package/dist/{chunk-2ezmcce2.js.map → chunk-hkn0keqj.js.map} +0 -0
  59. /package/dist/{chunk-fzpxv5j5.js.map → chunk-r50kxqa5.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,
@@ -190,6 +195,7 @@ import {
190
195
  signOutAll,
191
196
  signOutSharedAccess,
192
197
  startConnectorConnectionRun,
198
+ stopAgentBackgroundCommand,
193
199
  submitWorkflowIntervention,
194
200
  suspendAuthMember,
195
201
  transcribeAudio,
@@ -199,8 +205,6 @@ import {
199
205
  updateAuthProfile,
200
206
  uploadFileContent,
201
207
  uploadFileRaw,
202
- upsertObject,
203
- upsertObjectLink,
204
208
  } from "../sdk.gen"
205
209
  import type {
206
210
  AbortFileUploadData,
@@ -212,9 +216,6 @@ import type {
212
216
  AddConnectorConnectionData,
213
217
  AddConnectorConnectionError,
214
218
  AddConnectorConnectionResponse,
215
- AppendTelemetryData,
216
- AppendTelemetryError,
217
- AppendTelemetryResponse,
218
219
  CancelAgentRunByIdData,
219
220
  CancelAgentRunByIdError,
220
221
  CancelAgentRunByIdResponse,
@@ -352,6 +353,9 @@ import type {
352
353
  GetAgentRunData,
353
354
  GetAgentRunError,
354
355
  GetAgentRunResponse,
356
+ GetAgentThreadContextData,
357
+ GetAgentThreadContextError,
358
+ GetAgentThreadContextResponse,
355
359
  GetAgentThreadData,
356
360
  GetAgentThreadError,
357
361
  GetAgentThreadResponse,
@@ -413,6 +417,9 @@ import type {
413
417
  GetDatasetResponse,
414
418
  GetDatasetVersionData,
415
419
  GetDatasetVersionError,
420
+ GetDatasetVersionLineageData,
421
+ GetDatasetVersionLineageError,
422
+ GetDatasetVersionLineageResponse,
416
423
  GetDatasetVersionResponse,
417
424
  GetLatestTelemetryData,
418
425
  GetLatestTelemetryError,
@@ -425,6 +432,12 @@ import type {
425
432
  GetObjectFileContentData,
426
433
  GetObjectFileContentError,
427
434
  GetObjectFileContentResponse,
435
+ GetObjectLineageData,
436
+ GetObjectLineageError,
437
+ GetObjectLineageResponse,
438
+ GetObjectLinkLineageData,
439
+ GetObjectLinkLineageError,
440
+ GetObjectLinkLineageResponse,
428
441
  GetObjectResponse,
429
442
  GetObjectTypeData,
430
443
  GetObjectTypeError,
@@ -487,6 +500,9 @@ import type {
487
500
  GetWorkflowRunFileContentError,
488
501
  GetWorkflowRunFileContentResponse,
489
502
  GetWorkflowRunResponse,
503
+ HoldAgentComputerSessionData,
504
+ HoldAgentComputerSessionError,
505
+ HoldAgentComputerSessionResponse,
490
506
  IssueSharedAccessGrantData,
491
507
  IssueSharedAccessGrantError,
492
508
  IssueSharedAccessGrantResponse,
@@ -631,6 +647,9 @@ import type {
631
647
  ListWorkflowRunsResponse,
632
648
  ListWorkflowsData,
633
649
  ListWorkflowsResponse,
650
+ MoveAgentThreadToCloudData,
651
+ MoveAgentThreadToCloudError,
652
+ MoveAgentThreadToCloudResponse,
634
653
  MoveAgentThreadToComputerData,
635
654
  MoveAgentThreadToComputerError,
636
655
  MoveAgentThreadToComputerResponse,
@@ -658,11 +677,10 @@ import type {
658
677
  RefreshAuthSessionData,
659
678
  RefreshAuthSessionError,
660
679
  RefreshAuthSessionResponse,
680
+ ReleaseAgentComputerSessionData,
681
+ ReleaseAgentComputerSessionError,
661
682
  RemoveAgentThreadParticipantData,
662
683
  RemoveAgentThreadParticipantError,
663
- RemoveObjectLinkData,
664
- RemoveObjectLinkError,
665
- RemoveObjectLinkResponse,
666
684
  RequestActionData,
667
685
  RequestActionError,
668
686
  RequestActionResponse,
@@ -726,6 +744,9 @@ import type {
726
744
  StartConnectorConnectionRunData,
727
745
  StartConnectorConnectionRunError,
728
746
  StartConnectorConnectionRunResponse,
747
+ StopAgentBackgroundCommandData,
748
+ StopAgentBackgroundCommandError,
749
+ StopAgentBackgroundCommandResponse,
729
750
  SubmitWorkflowInterventionData,
730
751
  SubmitWorkflowInterventionError,
731
752
  SubmitWorkflowInterventionResponse,
@@ -753,12 +774,6 @@ import type {
753
774
  UploadFileRawData,
754
775
  UploadFileRawError,
755
776
  UploadFileRawResponse,
756
- UpsertObjectData,
757
- UpsertObjectError,
758
- UpsertObjectLinkData,
759
- UpsertObjectLinkError,
760
- UpsertObjectLinkResponse,
761
- UpsertObjectResponse,
762
777
  } from "../types.gen"
763
778
 
764
779
  /**
@@ -2588,6 +2603,33 @@ export const getDatasetVersionOptions = (options: Options<GetDatasetVersionData>
2588
2603
  queryKey: getDatasetVersionQueryKey(options),
2589
2604
  })
2590
2605
 
2606
+ export const getDatasetVersionLineageQueryKey = (options: Options<GetDatasetVersionLineageData>) =>
2607
+ createQueryKey("getDatasetVersionLineage", options)
2608
+
2609
+ /**
2610
+ * Get the versions a dataset version is computed from
2611
+ *
2612
+ * 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`.
2613
+ */
2614
+ export const getDatasetVersionLineageOptions = (options: Options<GetDatasetVersionLineageData>) =>
2615
+ queryOptions<
2616
+ GetDatasetVersionLineageResponse,
2617
+ GetDatasetVersionLineageError,
2618
+ GetDatasetVersionLineageResponse,
2619
+ ReturnType<typeof getDatasetVersionLineageQueryKey>
2620
+ >({
2621
+ queryFn: async ({ queryKey, signal }) => {
2622
+ const { data } = await getDatasetVersionLineage({
2623
+ ...options,
2624
+ ...queryKey[0],
2625
+ signal,
2626
+ throwOnError: true,
2627
+ })
2628
+ return data
2629
+ },
2630
+ queryKey: getDatasetVersionLineageQueryKey(options),
2631
+ })
2632
+
2591
2633
  export const listDatasetRowsQueryKey = (options: Options<ListDatasetRowsData>) =>
2592
2634
  createQueryKey("listDatasetRows", options)
2593
2635
 
@@ -4026,28 +4068,32 @@ export const getObjectOptions = (options: Options<GetObjectData>) =>
4026
4068
  queryKey: getObjectQueryKey(options),
4027
4069
  })
4028
4070
 
4071
+ export const getObjectLineageQueryKey = (options: Options<GetObjectLineageData>) =>
4072
+ createQueryKey("getObjectLineage", options)
4073
+
4029
4074
  /**
4030
- * Create or update object
4075
+ * Get where an object's values come from
4076
+ *
4077
+ * 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
4078
  */
4032
- export const upsertObjectMutation = (
4033
- options?: Partial<Options<UpsertObjectData>>
4034
- ): UseMutationOptions<UpsertObjectResponse, UpsertObjectError, Options<UpsertObjectData>> => {
4035
- const mutationOptions: UseMutationOptions<
4036
- UpsertObjectResponse,
4037
- UpsertObjectError,
4038
- Options<UpsertObjectData>
4039
- > = {
4040
- mutationFn: async (fnOptions) => {
4041
- const { data } = await upsertObject({
4079
+ export const getObjectLineageOptions = (options: Options<GetObjectLineageData>) =>
4080
+ queryOptions<
4081
+ GetObjectLineageResponse,
4082
+ GetObjectLineageError,
4083
+ GetObjectLineageResponse,
4084
+ ReturnType<typeof getObjectLineageQueryKey>
4085
+ >({
4086
+ queryFn: async ({ queryKey, signal }) => {
4087
+ const { data } = await getObjectLineage({
4042
4088
  ...options,
4043
- ...fnOptions,
4089
+ ...queryKey[0],
4090
+ signal,
4044
4091
  throwOnError: true,
4045
4092
  })
4046
4093
  return data
4047
4094
  },
4048
- }
4049
- return mutationOptions
4050
- }
4095
+ queryKey: getObjectLineageQueryKey(options),
4096
+ })
4051
4097
 
4052
4098
  /**
4053
4099
  * Get object by a unique property
@@ -4863,6 +4909,33 @@ export const retryAgentRunMutation = (
4863
4909
  return mutationOptions
4864
4910
  }
4865
4911
 
4912
+ export const getAgentThreadContextQueryKey = (options: Options<GetAgentThreadContextData>) =>
4913
+ createQueryKey("getAgentThreadContext", options)
4914
+
4915
+ /**
4916
+ * Measure an agent thread's context against a model's limits
4917
+ *
4918
+ * What the conversation's next request starts from, the model's limit, and the latest compaction. Read by the context meter after each turn.
4919
+ */
4920
+ export const getAgentThreadContextOptions = (options: Options<GetAgentThreadContextData>) =>
4921
+ queryOptions<
4922
+ GetAgentThreadContextResponse,
4923
+ GetAgentThreadContextError,
4924
+ GetAgentThreadContextResponse,
4925
+ ReturnType<typeof getAgentThreadContextQueryKey>
4926
+ >({
4927
+ queryFn: async ({ queryKey, signal }) => {
4928
+ const { data } = await getAgentThreadContext({
4929
+ ...options,
4930
+ ...queryKey[0],
4931
+ signal,
4932
+ throwOnError: true,
4933
+ })
4934
+ return data
4935
+ },
4936
+ queryKey: getAgentThreadContextQueryKey(options),
4937
+ })
4938
+
4866
4939
  export const listAgentThreadRunsQueryKey = (options: Options<ListAgentThreadRunsData>) =>
4867
4940
  createQueryKey("listAgentThreadRuns", options)
4868
4941
 
@@ -5044,9 +5117,38 @@ export const getAgentChildFileContentOptions = (options: Options<GetAgentChildFi
5044
5117
  })
5045
5118
 
5046
5119
  /**
5047
- * Move a thread to another of your computers
5120
+ * Move a thread from your computer to the cloud
5121
+ *
5122
+ * 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.
5123
+ */
5124
+ export const moveAgentThreadToCloudMutation = (
5125
+ options?: Partial<Options<MoveAgentThreadToCloudData>>
5126
+ ): UseMutationOptions<
5127
+ MoveAgentThreadToCloudResponse,
5128
+ MoveAgentThreadToCloudError,
5129
+ Options<MoveAgentThreadToCloudData>
5130
+ > => {
5131
+ const mutationOptions: UseMutationOptions<
5132
+ MoveAgentThreadToCloudResponse,
5133
+ MoveAgentThreadToCloudError,
5134
+ Options<MoveAgentThreadToCloudData>
5135
+ > = {
5136
+ mutationFn: async (fnOptions) => {
5137
+ const { data } = await moveAgentThreadToCloud({
5138
+ ...options,
5139
+ ...fnOptions,
5140
+ throwOnError: true,
5141
+ })
5142
+ return data
5143
+ },
5144
+ }
5145
+ return mutationOptions
5146
+ }
5147
+
5148
+ /**
5149
+ * Move a thread to one of your computers, in a folder there
5048
5150
  *
5049
- * A thread that runs on its owner's computer runs there alone: its turns are claimed by that computer only. Its owner moves it to another.
5151
+ * 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
5152
  */
5051
5153
  export const moveAgentThreadToComputerMutation = (
5052
5154
  options?: Partial<Options<MoveAgentThreadToComputerData>>
@@ -5072,6 +5174,93 @@ export const moveAgentThreadToComputerMutation = (
5072
5174
  return mutationOptions
5073
5175
  }
5074
5176
 
5177
+ /**
5178
+ * Close a computer session
5179
+ *
5180
+ * `sixb` closes its session when it quits.
5181
+ */
5182
+ export const releaseAgentComputerSessionMutation = (
5183
+ options?: Partial<Options<ReleaseAgentComputerSessionData>>
5184
+ ): UseMutationOptions<
5185
+ unknown,
5186
+ ReleaseAgentComputerSessionError,
5187
+ Options<ReleaseAgentComputerSessionData>
5188
+ > => {
5189
+ const mutationOptions: UseMutationOptions<
5190
+ unknown,
5191
+ ReleaseAgentComputerSessionError,
5192
+ Options<ReleaseAgentComputerSessionData>
5193
+ > = {
5194
+ mutationFn: async (fnOptions) => {
5195
+ const { data } = await releaseAgentComputerSession({
5196
+ ...options,
5197
+ ...fnOptions,
5198
+ throwOnError: true,
5199
+ })
5200
+ return data
5201
+ },
5202
+ }
5203
+ return mutationOptions
5204
+ }
5205
+
5206
+ /**
5207
+ * Open or renew a computer session
5208
+ *
5209
+ * `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. It reports the background commands it runs for your threads; the answer lists the turns waiting for it, and the commands someone asked to stop.
5210
+ */
5211
+ export const holdAgentComputerSessionMutation = (
5212
+ options?: Partial<Options<HoldAgentComputerSessionData>>
5213
+ ): UseMutationOptions<
5214
+ HoldAgentComputerSessionResponse,
5215
+ HoldAgentComputerSessionError,
5216
+ Options<HoldAgentComputerSessionData>
5217
+ > => {
5218
+ const mutationOptions: UseMutationOptions<
5219
+ HoldAgentComputerSessionResponse,
5220
+ HoldAgentComputerSessionError,
5221
+ Options<HoldAgentComputerSessionData>
5222
+ > = {
5223
+ mutationFn: async (fnOptions) => {
5224
+ const { data } = await holdAgentComputerSession({
5225
+ ...options,
5226
+ ...fnOptions,
5227
+ throwOnError: true,
5228
+ })
5229
+ return data
5230
+ },
5231
+ }
5232
+ return mutationOptions
5233
+ }
5234
+
5235
+ /**
5236
+ * Stop a background command on your computer
5237
+ *
5238
+ * A command the agent ran in the background on your computer keeps running after its turn. `sixb` there stops it, and everything it started, at its next renewal, which this asks for at once. The thread's owner alone stops it.
5239
+ */
5240
+ export const stopAgentBackgroundCommandMutation = (
5241
+ options?: Partial<Options<StopAgentBackgroundCommandData>>
5242
+ ): UseMutationOptions<
5243
+ StopAgentBackgroundCommandResponse,
5244
+ StopAgentBackgroundCommandError,
5245
+ Options<StopAgentBackgroundCommandData>
5246
+ > => {
5247
+ const mutationOptions: UseMutationOptions<
5248
+ StopAgentBackgroundCommandResponse,
5249
+ StopAgentBackgroundCommandError,
5250
+ Options<StopAgentBackgroundCommandData>
5251
+ > = {
5252
+ mutationFn: async (fnOptions) => {
5253
+ const { data } = await stopAgentBackgroundCommand({
5254
+ ...options,
5255
+ ...fnOptions,
5256
+ throwOnError: true,
5257
+ })
5258
+ return data
5259
+ },
5260
+ }
5261
+ return mutationOptions
5262
+ }
5263
+
5075
5264
  export const getAgentPreferencesQueryKey = (options?: Options<GetAgentPreferencesData>) =>
5076
5265
  createQueryKey("getAgentPreferences", options)
5077
5266
 
@@ -6202,86 +6391,32 @@ export const listModelsOptions = (options?: Options<ListModelsData>) =>
6202
6391
  queryKey: listModelsQueryKey(options),
6203
6392
  })
6204
6393
 
6205
- /**
6206
- * Remove object link
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
- }
6394
+ export const getObjectLinkLineageQueryKey = (options: Options<GetObjectLinkLineageData>) =>
6395
+ createQueryKey("getObjectLinkLineage", options)
6258
6396
 
6259
6397
  /**
6260
- * Append telemetry point
6398
+ * Get where an object link comes from
6399
+ *
6400
+ * What makes the link exist, for the current state. Steps the caller cannot view are left out and counted in `restricted`.
6261
6401
  */
6262
- export const appendTelemetryMutation = (
6263
- options?: Partial<Options<AppendTelemetryData>>
6264
- ): UseMutationOptions<
6265
- AppendTelemetryResponse,
6266
- AppendTelemetryError,
6267
- Options<AppendTelemetryData>
6268
- > => {
6269
- const mutationOptions: UseMutationOptions<
6270
- AppendTelemetryResponse,
6271
- AppendTelemetryError,
6272
- Options<AppendTelemetryData>
6273
- > = {
6274
- mutationFn: async (fnOptions) => {
6275
- const { data } = await appendTelemetry({
6402
+ export const getObjectLinkLineageOptions = (options: Options<GetObjectLinkLineageData>) =>
6403
+ queryOptions<
6404
+ GetObjectLinkLineageResponse,
6405
+ GetObjectLinkLineageError,
6406
+ GetObjectLinkLineageResponse,
6407
+ ReturnType<typeof getObjectLinkLineageQueryKey>
6408
+ >({
6409
+ queryFn: async ({ queryKey, signal }) => {
6410
+ const { data } = await getObjectLinkLineage({
6276
6411
  ...options,
6277
- ...fnOptions,
6412
+ ...queryKey[0],
6413
+ signal,
6278
6414
  throwOnError: true,
6279
6415
  })
6280
6416
  return data
6281
6417
  },
6282
- }
6283
- return mutationOptions
6284
- }
6418
+ queryKey: getObjectLinkLineageQueryKey(options),
6419
+ })
6285
6420
 
6286
6421
  /**
6287
6422
  * 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,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,
@@ -189,6 +194,7 @@ export {
189
194
  signOutAll,
190
195
  signOutSharedAccess,
191
196
  startConnectorConnectionRun,
197
+ stopAgentBackgroundCommand,
192
198
  submitWorkflowIntervention,
193
199
  suspendAuthMember,
194
200
  transcribeAudio,
@@ -198,8 +204,6 @@ export {
198
204
  updateAuthProfile,
199
205
  uploadFileContent,
200
206
  uploadFileRaw,
201
- upsertObject,
202
- upsertObjectLink,
203
207
  } from "./sdk.gen"
204
208
  export type {
205
209
  AbortFileUploadData,
@@ -223,11 +227,6 @@ export type {
223
227
  AgentChildFile,
224
228
  AgentChildRun,
225
229
  AiUsageLimitErrorResponse,
226
- AppendTelemetryData,
227
- AppendTelemetryError,
228
- AppendTelemetryErrors,
229
- AppendTelemetryResponse,
230
- AppendTelemetryResponses,
231
230
  ArtifactErrorResponse,
232
231
  ArtifactQueryProperty,
233
232
  ArtifactQueryResponse,
@@ -462,6 +461,11 @@ export type {
462
461
  GetAgentRunErrors,
463
462
  GetAgentRunResponse,
464
463
  GetAgentRunResponses,
464
+ GetAgentThreadContextData,
465
+ GetAgentThreadContextError,
466
+ GetAgentThreadContextErrors,
467
+ GetAgentThreadContextResponse,
468
+ GetAgentThreadContextResponses,
465
469
  GetAgentThreadData,
466
470
  GetAgentThreadError,
467
471
  GetAgentThreadErrors,
@@ -563,6 +567,11 @@ export type {
563
567
  GetDatasetVersionData,
564
568
  GetDatasetVersionError,
565
569
  GetDatasetVersionErrors,
570
+ GetDatasetVersionLineageData,
571
+ GetDatasetVersionLineageError,
572
+ GetDatasetVersionLineageErrors,
573
+ GetDatasetVersionLineageResponse,
574
+ GetDatasetVersionLineageResponses,
566
575
  GetDatasetVersionResponse,
567
576
  GetDatasetVersionResponses,
568
577
  GetLatestTelemetryData,
@@ -583,6 +592,16 @@ export type {
583
592
  GetObjectFileContentErrors,
584
593
  GetObjectFileContentResponse,
585
594
  GetObjectFileContentResponses,
595
+ GetObjectLineageData,
596
+ GetObjectLineageError,
597
+ GetObjectLineageErrors,
598
+ GetObjectLineageResponse,
599
+ GetObjectLineageResponses,
600
+ GetObjectLinkLineageData,
601
+ GetObjectLinkLineageError,
602
+ GetObjectLinkLineageErrors,
603
+ GetObjectLinkLineageResponse,
604
+ GetObjectLinkLineageResponses,
586
605
  GetObjectResponse,
587
606
  GetObjectResponses,
588
607
  GetObjectTypeData,
@@ -718,6 +737,11 @@ export type {
718
737
  HeadWorkflowRunFileContentError,
719
738
  HeadWorkflowRunFileContentErrors,
720
739
  HeadWorkflowRunFileContentResponses,
740
+ HoldAgentComputerSessionData,
741
+ HoldAgentComputerSessionError,
742
+ HoldAgentComputerSessionErrors,
743
+ HoldAgentComputerSessionResponse,
744
+ HoldAgentComputerSessionResponses,
721
745
  IssueSharedAccessGrantData,
722
746
  IssueSharedAccessGrantError,
723
747
  IssueSharedAccessGrantErrors,
@@ -955,6 +979,11 @@ export type {
955
979
  ListWorkflowsData,
956
980
  ListWorkflowsResponse,
957
981
  ListWorkflowsResponses,
982
+ MoveAgentThreadToCloudData,
983
+ MoveAgentThreadToCloudError,
984
+ MoveAgentThreadToCloudErrors,
985
+ MoveAgentThreadToCloudResponse,
986
+ MoveAgentThreadToCloudResponses,
958
987
  MoveAgentThreadToComputerData,
959
988
  MoveAgentThreadToComputerError,
960
989
  MoveAgentThreadToComputerErrors,
@@ -1026,15 +1055,14 @@ export type {
1026
1055
  RefreshAuthSessionErrors,
1027
1056
  RefreshAuthSessionResponse,
1028
1057
  RefreshAuthSessionResponses,
1058
+ ReleaseAgentComputerSessionData,
1059
+ ReleaseAgentComputerSessionError,
1060
+ ReleaseAgentComputerSessionErrors,
1061
+ ReleaseAgentComputerSessionResponses,
1029
1062
  RemoveAgentThreadParticipantData,
1030
1063
  RemoveAgentThreadParticipantError,
1031
1064
  RemoveAgentThreadParticipantErrors,
1032
1065
  RemoveAgentThreadParticipantResponses,
1033
- RemoveObjectLinkData,
1034
- RemoveObjectLinkError,
1035
- RemoveObjectLinkErrors,
1036
- RemoveObjectLinkResponse,
1037
- RemoveObjectLinkResponses,
1038
1066
  RequestActionData,
1039
1067
  RequestActionError,
1040
1068
  RequestActionErrors,
@@ -1140,6 +1168,11 @@ export type {
1140
1168
  StartConnectorConnectionRunErrors,
1141
1169
  StartConnectorConnectionRunResponse,
1142
1170
  StartConnectorConnectionRunResponses,
1171
+ StopAgentBackgroundCommandData,
1172
+ StopAgentBackgroundCommandError,
1173
+ StopAgentBackgroundCommandErrors,
1174
+ StopAgentBackgroundCommandResponse,
1175
+ StopAgentBackgroundCommandResponses,
1143
1176
  SubmitWorkflowInterventionData,
1144
1177
  SubmitWorkflowInterventionError,
1145
1178
  SubmitWorkflowInterventionErrors,
@@ -1185,15 +1218,5 @@ export type {
1185
1218
  UploadFileRawErrors,
1186
1219
  UploadFileRawResponse,
1187
1220
  UploadFileRawResponses,
1188
- UpsertObjectData,
1189
- UpsertObjectError,
1190
- UpsertObjectErrors,
1191
- UpsertObjectLinkData,
1192
- UpsertObjectLinkError,
1193
- UpsertObjectLinkErrors,
1194
- UpsertObjectLinkResponse,
1195
- UpsertObjectLinkResponses,
1196
- UpsertObjectResponse,
1197
- UpsertObjectResponses,
1198
1221
  UserProfile,
1199
1222
  } from "./types.gen"