@sixb/client 0.2.0 → 0.2.3
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/dist/artifact-live.d.ts +31 -0
- package/dist/artifact-live.d.ts.map +1 -0
- package/dist/artifact-live.js +67 -0
- package/dist/artifact-live.js.map +10 -0
- package/dist/browser.d.ts +5 -0
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +38 -17
- package/dist/browser.js.map +3 -3
- package/dist/{chunk-j9t5h44d.js → chunk-15ynvne0.js} +40 -28
- package/dist/{chunk-j9t5h44d.js.map → chunk-15ynvne0.js.map} +4 -4
- package/dist/{chunk-1wdszw1c.js → chunk-90q7wa43.js} +30 -21
- package/dist/chunk-90q7wa43.js.map +17 -0
- package/dist/{chunk-s2pagg09.js → chunk-bgpzb1fn.js} +6 -6
- package/dist/{chunk-s2pagg09.js.map → chunk-bgpzb1fn.js.map} +1 -1
- package/dist/{chunk-sh0f609h.js → chunk-br10prhs.js} +4 -4
- package/dist/{chunk-sh0f609h.js.map → chunk-br10prhs.js.map} +1 -1
- package/dist/chunk-hj4h6hw6.js +827 -0
- package/dist/chunk-hj4h6hw6.js.map +18 -0
- package/dist/{chunk-mk0w4zr1.js → chunk-ktqfenfd.js} +43 -11
- package/dist/chunk-ktqfenfd.js.map +10 -0
- package/dist/{chunk-fnd56xxz.js → chunk-seeyb9k9.js} +8 -6
- package/dist/{chunk-fnd56xxz.js.map → chunk-seeyb9k9.js.map} +2 -2
- package/dist/{chunk-m2rmbshc.js → chunk-y9mhb8x4.js} +3 -1
- package/dist/chunk-y9mhb8x4.js.map +10 -0
- package/dist/{chunk-2qsekqcn.js → chunk-zerhr00d.js} +167 -832
- package/dist/chunk-zerhr00d.js.map +10 -0
- package/dist/client-authority.d.ts +11 -0
- package/dist/client-authority.d.ts.map +1 -1
- package/dist/connectors/connection.d.ts +8 -3
- package/dist/connectors/connection.d.ts.map +1 -1
- package/dist/connectors/mutations.d.ts +4 -0
- package/dist/connectors/mutations.d.ts.map +1 -1
- package/dist/connectors/queries.d.ts +98 -0
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/events-builder.d.ts +2 -0
- package/dist/events-builder.d.ts.map +1 -1
- package/dist/events-provider.d.ts.map +1 -1
- package/dist/events-transport.d.ts.map +1 -1
- package/dist/file.d.ts +8 -0
- package/dist/file.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +1891 -486
- 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 +92 -6
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +2957 -195
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +321 -57
- package/dist/hooks.js.map +9 -9
- package/dist/index.js +90 -56
- package/dist/index.js.map +1 -1
- package/dist/logs.js +6 -5
- package/dist/logs.js.map +1 -1
- package/dist/models.d.ts +5 -2
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +38 -6
- package/dist/models.js.map +1 -1
- package/dist/query.js +6 -5
- package/dist/query.js.map +1 -1
- package/dist/useDesktop.d.ts +25 -0
- package/dist/useDesktop.d.ts.map +1 -1
- package/dist/users-hooks.d.ts.map +1 -1
- package/dist/ws-socket.d.ts +17 -2
- package/dist/ws-socket.d.ts.map +1 -1
- package/package.json +8 -2
- package/src/artifact-live.ts +97 -0
- package/src/browser.ts +43 -5
- package/src/client-authority.ts +21 -0
- package/src/connectors/connection.ts +34 -12
- package/src/connectors/mutations.ts +8 -2
- package/src/connectors/queries.ts +6 -2
- package/src/events-builder.ts +9 -8
- package/src/events-provider.ts +13 -0
- package/src/events-transport.ts +3 -0
- package/src/file.ts +17 -0
- package/src/generated/@tanstack/react-query.gen.ts +492 -17
- package/src/generated/index.ts +96 -6
- package/src/generated/sdk.gen.ts +389 -12
- package/src/generated/types.gen.ts +3267 -300
- package/src/hooks.ts +7 -1
- package/src/models.ts +6 -2
- package/src/useDesktop.ts +27 -0
- package/src/ws-socket.ts +64 -10
- package/dist/chunk-1wdszw1c.js.map +0 -17
- package/dist/chunk-2qsekqcn.js.map +0 -19
- package/dist/chunk-m2rmbshc.js.map +0 -10
- package/dist/chunk-mk0w4zr1.js.map +0 -10
|
@@ -12,6 +12,7 @@ import { client } from "../client.gen"
|
|
|
12
12
|
import {
|
|
13
13
|
abortFileUpload,
|
|
14
14
|
addAgentThreadParticipants,
|
|
15
|
+
addArtifactComment,
|
|
15
16
|
addConnectorConnection,
|
|
16
17
|
cancelAgentRun,
|
|
17
18
|
cancelAgentRunById,
|
|
@@ -35,6 +36,7 @@ import {
|
|
|
35
36
|
deleteAgentMemory,
|
|
36
37
|
deleteAiLimitPolicy,
|
|
37
38
|
deleteArtifact,
|
|
39
|
+
deleteArtifactComment,
|
|
38
40
|
deleteArtifactStateValue,
|
|
39
41
|
disableAuthServiceAccount,
|
|
40
42
|
disconnectConnectorConnection,
|
|
@@ -43,6 +45,7 @@ import {
|
|
|
43
45
|
existsObjects,
|
|
44
46
|
facetObjects,
|
|
45
47
|
forkAgentThread,
|
|
48
|
+
freezeArtifactVersion,
|
|
46
49
|
generateImages,
|
|
47
50
|
generateSpeech,
|
|
48
51
|
generateText,
|
|
@@ -67,8 +70,11 @@ import {
|
|
|
67
70
|
getAiModelCallFileContent,
|
|
68
71
|
getAiModelCallFiles,
|
|
69
72
|
getArtifact,
|
|
73
|
+
getArtifactBoardPreview,
|
|
70
74
|
getArtifactFileContent,
|
|
71
75
|
getArtifactQuery,
|
|
76
|
+
getArtifactRestorePoint,
|
|
77
|
+
getArtifactRestorePointFileContent,
|
|
72
78
|
getArtifactState,
|
|
73
79
|
getArtifactVersion,
|
|
74
80
|
getAuthAccessManagementOptions,
|
|
@@ -82,6 +88,7 @@ import {
|
|
|
82
88
|
getDataset,
|
|
83
89
|
getDatasetVersion,
|
|
84
90
|
getDatasetVersionLineage,
|
|
91
|
+
getLakeHealth,
|
|
85
92
|
getLatestTelemetry,
|
|
86
93
|
getObject,
|
|
87
94
|
getObjectByUniqueProperty,
|
|
@@ -117,6 +124,7 @@ import {
|
|
|
117
124
|
listActivityUsers,
|
|
118
125
|
listActivityVisits,
|
|
119
126
|
listAgentApprovals,
|
|
127
|
+
listAgentComputers,
|
|
120
128
|
listAgentMemoryRevisions,
|
|
121
129
|
listAgentThreadApprovals,
|
|
122
130
|
listAgentThreadChildren,
|
|
@@ -126,6 +134,9 @@ import {
|
|
|
126
134
|
listAiLimitPolicies,
|
|
127
135
|
listAiModelCallGroups,
|
|
128
136
|
listAiModelCalls,
|
|
137
|
+
listArtifactComments,
|
|
138
|
+
listArtifactHolders,
|
|
139
|
+
listArtifactRestorePoints,
|
|
129
140
|
listArtifacts,
|
|
130
141
|
listAuthAccessTokens,
|
|
131
142
|
listAuthInvitations,
|
|
@@ -165,7 +176,6 @@ import {
|
|
|
165
176
|
moveAgentThreadToComputer,
|
|
166
177
|
type Options,
|
|
167
178
|
postAgentThreadMessage,
|
|
168
|
-
publishArtifactVersion,
|
|
169
179
|
queryObjectLinks,
|
|
170
180
|
queryObjects,
|
|
171
181
|
reactivateAuthMember,
|
|
@@ -178,6 +188,8 @@ import {
|
|
|
178
188
|
requestPipelineRun,
|
|
179
189
|
requestSyncRun,
|
|
180
190
|
requestWorkflowRun,
|
|
191
|
+
resolveArtifactComment,
|
|
192
|
+
restoreArtifact,
|
|
181
193
|
retryAgentRun,
|
|
182
194
|
revokeAuthAccessToken,
|
|
183
195
|
revokeAuthInvitation,
|
|
@@ -190,16 +202,19 @@ import {
|
|
|
190
202
|
selectConnectorConnectionRunAccount,
|
|
191
203
|
setAgentThreadApprovalMode,
|
|
192
204
|
setArtifactState,
|
|
205
|
+
setSharedAccessGuestName,
|
|
193
206
|
signFileUploadPart,
|
|
194
207
|
signOut,
|
|
195
208
|
signOutAll,
|
|
196
209
|
signOutSharedAccess,
|
|
197
210
|
startConnectorConnectionRun,
|
|
211
|
+
stopAgentBackgroundCommand,
|
|
198
212
|
submitWorkflowIntervention,
|
|
199
213
|
suspendAuthMember,
|
|
200
214
|
transcribeAudio,
|
|
201
215
|
updateAgentPreferences,
|
|
202
216
|
updateAiLimitPolicy,
|
|
217
|
+
updateArtifact,
|
|
203
218
|
updateAuthMemberGroups,
|
|
204
219
|
updateAuthProfile,
|
|
205
220
|
uploadFileContent,
|
|
@@ -212,6 +227,9 @@ import type {
|
|
|
212
227
|
AddAgentThreadParticipantsData,
|
|
213
228
|
AddAgentThreadParticipantsError,
|
|
214
229
|
AddAgentThreadParticipantsResponse,
|
|
230
|
+
AddArtifactCommentData,
|
|
231
|
+
AddArtifactCommentError,
|
|
232
|
+
AddArtifactCommentResponse,
|
|
215
233
|
AddConnectorConnectionData,
|
|
216
234
|
AddConnectorConnectionError,
|
|
217
235
|
AddConnectorConnectionResponse,
|
|
@@ -278,6 +296,9 @@ import type {
|
|
|
278
296
|
DeleteAiLimitPolicyData,
|
|
279
297
|
DeleteAiLimitPolicyError,
|
|
280
298
|
DeleteAiLimitPolicyResponse,
|
|
299
|
+
DeleteArtifactCommentData,
|
|
300
|
+
DeleteArtifactCommentError,
|
|
301
|
+
DeleteArtifactCommentResponse,
|
|
281
302
|
DeleteArtifactData,
|
|
282
303
|
DeleteArtifactError,
|
|
283
304
|
DeleteArtifactResponse,
|
|
@@ -304,6 +325,9 @@ import type {
|
|
|
304
325
|
ForkAgentThreadData,
|
|
305
326
|
ForkAgentThreadError,
|
|
306
327
|
ForkAgentThreadResponse,
|
|
328
|
+
FreezeArtifactVersionData,
|
|
329
|
+
FreezeArtifactVersionError,
|
|
330
|
+
FreezeArtifactVersionResponse,
|
|
307
331
|
GenerateImagesData,
|
|
308
332
|
GenerateImagesError,
|
|
309
333
|
GenerateImagesResponse,
|
|
@@ -373,6 +397,9 @@ import type {
|
|
|
373
397
|
GetAiModelCallFilesData,
|
|
374
398
|
GetAiModelCallFilesError,
|
|
375
399
|
GetAiModelCallFilesResponse,
|
|
400
|
+
GetArtifactBoardPreviewData,
|
|
401
|
+
GetArtifactBoardPreviewError,
|
|
402
|
+
GetArtifactBoardPreviewResponse,
|
|
376
403
|
GetArtifactData,
|
|
377
404
|
GetArtifactError,
|
|
378
405
|
GetArtifactFileContentData,
|
|
@@ -382,6 +409,12 @@ import type {
|
|
|
382
409
|
GetArtifactQueryError,
|
|
383
410
|
GetArtifactQueryResponse,
|
|
384
411
|
GetArtifactResponse,
|
|
412
|
+
GetArtifactRestorePointData,
|
|
413
|
+
GetArtifactRestorePointError,
|
|
414
|
+
GetArtifactRestorePointFileContentData,
|
|
415
|
+
GetArtifactRestorePointFileContentError,
|
|
416
|
+
GetArtifactRestorePointFileContentResponse,
|
|
417
|
+
GetArtifactRestorePointResponse,
|
|
385
418
|
GetArtifactStateData,
|
|
386
419
|
GetArtifactStateError,
|
|
387
420
|
GetArtifactStateResponse,
|
|
@@ -420,6 +453,9 @@ import type {
|
|
|
420
453
|
GetDatasetVersionLineageError,
|
|
421
454
|
GetDatasetVersionLineageResponse,
|
|
422
455
|
GetDatasetVersionResponse,
|
|
456
|
+
GetLakeHealthData,
|
|
457
|
+
GetLakeHealthError,
|
|
458
|
+
GetLakeHealthResponse,
|
|
423
459
|
GetLatestTelemetryData,
|
|
424
460
|
GetLatestTelemetryError,
|
|
425
461
|
GetLatestTelemetryResponse,
|
|
@@ -522,6 +558,9 @@ import type {
|
|
|
522
558
|
ListAgentApprovalsData,
|
|
523
559
|
ListAgentApprovalsError,
|
|
524
560
|
ListAgentApprovalsResponse,
|
|
561
|
+
ListAgentComputersData,
|
|
562
|
+
ListAgentComputersError,
|
|
563
|
+
ListAgentComputersResponse,
|
|
525
564
|
ListAgentMemoryRevisionsData,
|
|
526
565
|
ListAgentMemoryRevisionsError,
|
|
527
566
|
ListAgentMemoryRevisionsResponse,
|
|
@@ -549,6 +588,15 @@ import type {
|
|
|
549
588
|
ListAiModelCallsData,
|
|
550
589
|
ListAiModelCallsError,
|
|
551
590
|
ListAiModelCallsResponse,
|
|
591
|
+
ListArtifactCommentsData,
|
|
592
|
+
ListArtifactCommentsError,
|
|
593
|
+
ListArtifactCommentsResponse,
|
|
594
|
+
ListArtifactHoldersData,
|
|
595
|
+
ListArtifactHoldersError,
|
|
596
|
+
ListArtifactHoldersResponse,
|
|
597
|
+
ListArtifactRestorePointsData,
|
|
598
|
+
ListArtifactRestorePointsError,
|
|
599
|
+
ListArtifactRestorePointsResponse,
|
|
552
600
|
ListArtifactsData,
|
|
553
601
|
ListArtifactsError,
|
|
554
602
|
ListArtifactsResponse,
|
|
@@ -655,9 +703,6 @@ import type {
|
|
|
655
703
|
PostAgentThreadMessageData,
|
|
656
704
|
PostAgentThreadMessageError,
|
|
657
705
|
PostAgentThreadMessageResponse,
|
|
658
|
-
PublishArtifactVersionData,
|
|
659
|
-
PublishArtifactVersionError,
|
|
660
|
-
PublishArtifactVersionResponse,
|
|
661
706
|
QueryObjectLinksData,
|
|
662
707
|
QueryObjectLinksError,
|
|
663
708
|
QueryObjectLinksResponse,
|
|
@@ -692,6 +737,12 @@ import type {
|
|
|
692
737
|
RequestWorkflowRunData,
|
|
693
738
|
RequestWorkflowRunError,
|
|
694
739
|
RequestWorkflowRunResponse,
|
|
740
|
+
ResolveArtifactCommentData,
|
|
741
|
+
ResolveArtifactCommentError,
|
|
742
|
+
ResolveArtifactCommentResponse,
|
|
743
|
+
RestoreArtifactData,
|
|
744
|
+
RestoreArtifactError,
|
|
745
|
+
RestoreArtifactResponse,
|
|
695
746
|
RetryAgentRunData,
|
|
696
747
|
RetryAgentRunError,
|
|
697
748
|
RetryAgentRunResponse,
|
|
@@ -728,6 +779,9 @@ import type {
|
|
|
728
779
|
SetArtifactStateData,
|
|
729
780
|
SetArtifactStateError,
|
|
730
781
|
SetArtifactStateResponse,
|
|
782
|
+
SetSharedAccessGuestNameData,
|
|
783
|
+
SetSharedAccessGuestNameError,
|
|
784
|
+
SetSharedAccessGuestNameResponse,
|
|
731
785
|
SignFileUploadPartData,
|
|
732
786
|
SignFileUploadPartError,
|
|
733
787
|
SignFileUploadPartResponse,
|
|
@@ -743,6 +797,9 @@ import type {
|
|
|
743
797
|
StartConnectorConnectionRunData,
|
|
744
798
|
StartConnectorConnectionRunError,
|
|
745
799
|
StartConnectorConnectionRunResponse,
|
|
800
|
+
StopAgentBackgroundCommandData,
|
|
801
|
+
StopAgentBackgroundCommandError,
|
|
802
|
+
StopAgentBackgroundCommandResponse,
|
|
746
803
|
SubmitWorkflowInterventionData,
|
|
747
804
|
SubmitWorkflowInterventionError,
|
|
748
805
|
SubmitWorkflowInterventionResponse,
|
|
@@ -758,6 +815,9 @@ import type {
|
|
|
758
815
|
UpdateAiLimitPolicyData,
|
|
759
816
|
UpdateAiLimitPolicyError,
|
|
760
817
|
UpdateAiLimitPolicyResponse,
|
|
818
|
+
UpdateArtifactData,
|
|
819
|
+
UpdateArtifactError,
|
|
820
|
+
UpdateArtifactResponse,
|
|
761
821
|
UpdateAuthMemberGroupsData,
|
|
762
822
|
UpdateAuthMemberGroupsError,
|
|
763
823
|
UpdateAuthMemberGroupsResponse,
|
|
@@ -2694,6 +2754,31 @@ export const listDatasetRowsInfiniteOptions = (options: Options<ListDatasetRowsD
|
|
|
2694
2754
|
}
|
|
2695
2755
|
)
|
|
2696
2756
|
|
|
2757
|
+
export const getLakeHealthQueryKey = (options?: Options<GetLakeHealthData>) =>
|
|
2758
|
+
createQueryKey("getLakeHealth", options)
|
|
2759
|
+
|
|
2760
|
+
/**
|
|
2761
|
+
* Describe how the lake stores each dataset, and what its retention does
|
|
2762
|
+
*/
|
|
2763
|
+
export const getLakeHealthOptions = (options?: Options<GetLakeHealthData>) =>
|
|
2764
|
+
queryOptions<
|
|
2765
|
+
GetLakeHealthResponse,
|
|
2766
|
+
GetLakeHealthError,
|
|
2767
|
+
GetLakeHealthResponse,
|
|
2768
|
+
ReturnType<typeof getLakeHealthQueryKey>
|
|
2769
|
+
>({
|
|
2770
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2771
|
+
const { data } = await getLakeHealth({
|
|
2772
|
+
...options,
|
|
2773
|
+
...queryKey[0],
|
|
2774
|
+
signal,
|
|
2775
|
+
throwOnError: true,
|
|
2776
|
+
})
|
|
2777
|
+
return data
|
|
2778
|
+
},
|
|
2779
|
+
queryKey: getLakeHealthQueryKey(options),
|
|
2780
|
+
})
|
|
2781
|
+
|
|
2697
2782
|
export const listSyncsQueryKey = (options?: Options<ListSyncsData>) =>
|
|
2698
2783
|
createQueryKey("listSyncs", options)
|
|
2699
2784
|
|
|
@@ -3725,6 +3810,35 @@ export const getSharedAccessSessionOptions = (options: Options<GetSharedAccessSe
|
|
|
3725
3810
|
queryKey: getSharedAccessSessionQueryKey(options),
|
|
3726
3811
|
})
|
|
3727
3812
|
|
|
3813
|
+
/**
|
|
3814
|
+
* Name a shared-access session's visitor
|
|
3815
|
+
*
|
|
3816
|
+
* The visitor of a shared link has no account: they give their name once, and their comments and live presence carry it, marked as a guest's. Giving it again replaces it for what comes next; comments keep the name they were written under.
|
|
3817
|
+
*/
|
|
3818
|
+
export const setSharedAccessGuestNameMutation = (
|
|
3819
|
+
options?: Partial<Options<SetSharedAccessGuestNameData>>
|
|
3820
|
+
): UseMutationOptions<
|
|
3821
|
+
SetSharedAccessGuestNameResponse,
|
|
3822
|
+
SetSharedAccessGuestNameError,
|
|
3823
|
+
Options<SetSharedAccessGuestNameData>
|
|
3824
|
+
> => {
|
|
3825
|
+
const mutationOptions: UseMutationOptions<
|
|
3826
|
+
SetSharedAccessGuestNameResponse,
|
|
3827
|
+
SetSharedAccessGuestNameError,
|
|
3828
|
+
Options<SetSharedAccessGuestNameData>
|
|
3829
|
+
> = {
|
|
3830
|
+
mutationFn: async (fnOptions) => {
|
|
3831
|
+
const { data } = await setSharedAccessGuestName({
|
|
3832
|
+
...options,
|
|
3833
|
+
...fnOptions,
|
|
3834
|
+
throwOnError: true,
|
|
3835
|
+
})
|
|
3836
|
+
return data
|
|
3837
|
+
},
|
|
3838
|
+
}
|
|
3839
|
+
return mutationOptions
|
|
3840
|
+
}
|
|
3841
|
+
|
|
3728
3842
|
/**
|
|
3729
3843
|
* Sign out a shared-access session
|
|
3730
3844
|
*/
|
|
@@ -5112,6 +5226,33 @@ export const getAgentChildFileContentOptions = (options: Options<GetAgentChildFi
|
|
|
5112
5226
|
queryKey: getAgentChildFileContentQueryKey(options),
|
|
5113
5227
|
})
|
|
5114
5228
|
|
|
5229
|
+
export const listAgentComputersQueryKey = (options?: Options<ListAgentComputersData>) =>
|
|
5230
|
+
createQueryKey("listAgentComputers", options)
|
|
5231
|
+
|
|
5232
|
+
/**
|
|
5233
|
+
* List your computers with sixb open now
|
|
5234
|
+
*
|
|
5235
|
+
* Each of your computers with a live session, and the folders `sixb` is open in there: a thread created to run in one of them runs there now.
|
|
5236
|
+
*/
|
|
5237
|
+
export const listAgentComputersOptions = (options?: Options<ListAgentComputersData>) =>
|
|
5238
|
+
queryOptions<
|
|
5239
|
+
ListAgentComputersResponse,
|
|
5240
|
+
ListAgentComputersError,
|
|
5241
|
+
ListAgentComputersResponse,
|
|
5242
|
+
ReturnType<typeof listAgentComputersQueryKey>
|
|
5243
|
+
>({
|
|
5244
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
5245
|
+
const { data } = await listAgentComputers({
|
|
5246
|
+
...options,
|
|
5247
|
+
...queryKey[0],
|
|
5248
|
+
signal,
|
|
5249
|
+
throwOnError: true,
|
|
5250
|
+
})
|
|
5251
|
+
return data
|
|
5252
|
+
},
|
|
5253
|
+
queryKey: listAgentComputersQueryKey(options),
|
|
5254
|
+
})
|
|
5255
|
+
|
|
5115
5256
|
/**
|
|
5116
5257
|
* Move a thread from your computer to the cloud
|
|
5117
5258
|
*
|
|
@@ -5202,7 +5343,7 @@ export const releaseAgentComputerSessionMutation = (
|
|
|
5202
5343
|
/**
|
|
5203
5344
|
* Open or renew a computer session
|
|
5204
5345
|
*
|
|
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.
|
|
5346
|
+
* `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.
|
|
5206
5347
|
*/
|
|
5207
5348
|
export const holdAgentComputerSessionMutation = (
|
|
5208
5349
|
options?: Partial<Options<HoldAgentComputerSessionData>>
|
|
@@ -5228,6 +5369,35 @@ export const holdAgentComputerSessionMutation = (
|
|
|
5228
5369
|
return mutationOptions
|
|
5229
5370
|
}
|
|
5230
5371
|
|
|
5372
|
+
/**
|
|
5373
|
+
* Stop a background command on your computer
|
|
5374
|
+
*
|
|
5375
|
+
* 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.
|
|
5376
|
+
*/
|
|
5377
|
+
export const stopAgentBackgroundCommandMutation = (
|
|
5378
|
+
options?: Partial<Options<StopAgentBackgroundCommandData>>
|
|
5379
|
+
): UseMutationOptions<
|
|
5380
|
+
StopAgentBackgroundCommandResponse,
|
|
5381
|
+
StopAgentBackgroundCommandError,
|
|
5382
|
+
Options<StopAgentBackgroundCommandData>
|
|
5383
|
+
> => {
|
|
5384
|
+
const mutationOptions: UseMutationOptions<
|
|
5385
|
+
StopAgentBackgroundCommandResponse,
|
|
5386
|
+
StopAgentBackgroundCommandError,
|
|
5387
|
+
Options<StopAgentBackgroundCommandData>
|
|
5388
|
+
> = {
|
|
5389
|
+
mutationFn: async (fnOptions) => {
|
|
5390
|
+
const { data } = await stopAgentBackgroundCommand({
|
|
5391
|
+
...options,
|
|
5392
|
+
...fnOptions,
|
|
5393
|
+
throwOnError: true,
|
|
5394
|
+
})
|
|
5395
|
+
return data
|
|
5396
|
+
},
|
|
5397
|
+
}
|
|
5398
|
+
return mutationOptions
|
|
5399
|
+
}
|
|
5400
|
+
|
|
5231
5401
|
export const getAgentPreferencesQueryKey = (options?: Options<GetAgentPreferencesData>) =>
|
|
5232
5402
|
createQueryKey("getAgentPreferences", options)
|
|
5233
5403
|
|
|
@@ -6084,6 +6254,33 @@ export const getArtifactOptions = (options: Options<GetArtifactData>) =>
|
|
|
6084
6254
|
queryKey: getArtifactQueryKey(options),
|
|
6085
6255
|
})
|
|
6086
6256
|
|
|
6257
|
+
export const listArtifactHoldersQueryKey = (options: Options<ListArtifactHoldersData>) =>
|
|
6258
|
+
createQueryKey("listArtifactHolders", options)
|
|
6259
|
+
|
|
6260
|
+
/**
|
|
6261
|
+
* List the objects that hold an artifact
|
|
6262
|
+
*
|
|
6263
|
+
* The objects whose property holds the artifact, among those you read with that property, in a stable order. Whoever reads such an object reads the artifact.
|
|
6264
|
+
*/
|
|
6265
|
+
export const listArtifactHoldersOptions = (options: Options<ListArtifactHoldersData>) =>
|
|
6266
|
+
queryOptions<
|
|
6267
|
+
ListArtifactHoldersResponse,
|
|
6268
|
+
ListArtifactHoldersError,
|
|
6269
|
+
ListArtifactHoldersResponse,
|
|
6270
|
+
ReturnType<typeof listArtifactHoldersQueryKey>
|
|
6271
|
+
>({
|
|
6272
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
6273
|
+
const { data } = await listArtifactHolders({
|
|
6274
|
+
...options,
|
|
6275
|
+
...queryKey[0],
|
|
6276
|
+
signal,
|
|
6277
|
+
throwOnError: true,
|
|
6278
|
+
})
|
|
6279
|
+
return data
|
|
6280
|
+
},
|
|
6281
|
+
queryKey: listArtifactHoldersQueryKey(options),
|
|
6282
|
+
})
|
|
6283
|
+
|
|
6087
6284
|
/**
|
|
6088
6285
|
* Reset what a page keeps
|
|
6089
6286
|
*
|
|
@@ -6197,24 +6394,275 @@ export const setArtifactStateMutation = (
|
|
|
6197
6394
|
}
|
|
6198
6395
|
|
|
6199
6396
|
/**
|
|
6200
|
-
*
|
|
6397
|
+
* Update an artifact
|
|
6201
6398
|
*
|
|
6202
|
-
*
|
|
6399
|
+
* Writes the artifact's latest version: its content is replaced while the version is open, and the next version opens when it is frozen. Either way the revision grows. The kind must be the artifact's. With baseRevision, it is refused with 409 artifact_moved when the artifact changed since. With a run token, only an artifact the run's conversation shares, its requester owns, or an object its requester edits holds; it is shared in that conversation, and the turn's first write to it keeps a restore point. A run that lost its execution gets 409 execution_lost.
|
|
6203
6400
|
*/
|
|
6204
|
-
export const
|
|
6205
|
-
options?: Partial<Options<
|
|
6401
|
+
export const updateArtifactMutation = (
|
|
6402
|
+
options?: Partial<Options<UpdateArtifactData>>
|
|
6403
|
+
): UseMutationOptions<UpdateArtifactResponse, UpdateArtifactError, Options<UpdateArtifactData>> => {
|
|
6404
|
+
const mutationOptions: UseMutationOptions<
|
|
6405
|
+
UpdateArtifactResponse,
|
|
6406
|
+
UpdateArtifactError,
|
|
6407
|
+
Options<UpdateArtifactData>
|
|
6408
|
+
> = {
|
|
6409
|
+
mutationFn: async (fnOptions) => {
|
|
6410
|
+
const { data } = await updateArtifact({
|
|
6411
|
+
...options,
|
|
6412
|
+
...fnOptions,
|
|
6413
|
+
throwOnError: true,
|
|
6414
|
+
})
|
|
6415
|
+
return data
|
|
6416
|
+
},
|
|
6417
|
+
}
|
|
6418
|
+
return mutationOptions
|
|
6419
|
+
}
|
|
6420
|
+
|
|
6421
|
+
/**
|
|
6422
|
+
* Create a version
|
|
6423
|
+
*
|
|
6424
|
+
* Freezes the artifact's open latest version: it never changes again, and the next write opens the next version. A latest version already frozen is returned as it is. Whoever may update the artifact may create a version. With baseRevision, it is refused with 409 artifact_moved when the open version changed since.
|
|
6425
|
+
*/
|
|
6426
|
+
export const freezeArtifactVersionMutation = (
|
|
6427
|
+
options?: Partial<Options<FreezeArtifactVersionData>>
|
|
6206
6428
|
): UseMutationOptions<
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
Options<
|
|
6429
|
+
FreezeArtifactVersionResponse,
|
|
6430
|
+
FreezeArtifactVersionError,
|
|
6431
|
+
Options<FreezeArtifactVersionData>
|
|
6210
6432
|
> => {
|
|
6211
6433
|
const mutationOptions: UseMutationOptions<
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
Options<
|
|
6434
|
+
FreezeArtifactVersionResponse,
|
|
6435
|
+
FreezeArtifactVersionError,
|
|
6436
|
+
Options<FreezeArtifactVersionData>
|
|
6215
6437
|
> = {
|
|
6216
6438
|
mutationFn: async (fnOptions) => {
|
|
6217
|
-
const { data } = await
|
|
6439
|
+
const { data } = await freezeArtifactVersion({
|
|
6440
|
+
...options,
|
|
6441
|
+
...fnOptions,
|
|
6442
|
+
throwOnError: true,
|
|
6443
|
+
})
|
|
6444
|
+
return data
|
|
6445
|
+
},
|
|
6446
|
+
}
|
|
6447
|
+
return mutationOptions
|
|
6448
|
+
}
|
|
6449
|
+
|
|
6450
|
+
export const listArtifactCommentsQueryKey = (options: Options<ListArtifactCommentsData>) =>
|
|
6451
|
+
createQueryKey("listArtifactComments", options)
|
|
6452
|
+
|
|
6453
|
+
/**
|
|
6454
|
+
* List an artifact's comments
|
|
6455
|
+
*
|
|
6456
|
+
* Every comment and reply, oldest first, resolved ones included. Whoever reads the artifact reads them.
|
|
6457
|
+
*/
|
|
6458
|
+
export const listArtifactCommentsOptions = (options: Options<ListArtifactCommentsData>) =>
|
|
6459
|
+
queryOptions<
|
|
6460
|
+
ListArtifactCommentsResponse,
|
|
6461
|
+
ListArtifactCommentsError,
|
|
6462
|
+
ListArtifactCommentsResponse,
|
|
6463
|
+
ReturnType<typeof listArtifactCommentsQueryKey>
|
|
6464
|
+
>({
|
|
6465
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
6466
|
+
const { data } = await listArtifactComments({
|
|
6467
|
+
...options,
|
|
6468
|
+
...queryKey[0],
|
|
6469
|
+
signal,
|
|
6470
|
+
throwOnError: true,
|
|
6471
|
+
})
|
|
6472
|
+
return data
|
|
6473
|
+
},
|
|
6474
|
+
queryKey: listArtifactCommentsQueryKey(options),
|
|
6475
|
+
})
|
|
6476
|
+
|
|
6477
|
+
/**
|
|
6478
|
+
* Comment on an artifact
|
|
6479
|
+
*
|
|
6480
|
+
* Adds a comment, or a reply with parentId, as the caller. Whoever reads the artifact may, a shared link's guest included, under the name they gave its session (400 name_required until they give one). A canvas's comment can be about one of its boards, or an element of a board by its address. Readers receive artifact.commented.
|
|
6481
|
+
*/
|
|
6482
|
+
export const addArtifactCommentMutation = (
|
|
6483
|
+
options?: Partial<Options<AddArtifactCommentData>>
|
|
6484
|
+
): UseMutationOptions<
|
|
6485
|
+
AddArtifactCommentResponse,
|
|
6486
|
+
AddArtifactCommentError,
|
|
6487
|
+
Options<AddArtifactCommentData>
|
|
6488
|
+
> => {
|
|
6489
|
+
const mutationOptions: UseMutationOptions<
|
|
6490
|
+
AddArtifactCommentResponse,
|
|
6491
|
+
AddArtifactCommentError,
|
|
6492
|
+
Options<AddArtifactCommentData>
|
|
6493
|
+
> = {
|
|
6494
|
+
mutationFn: async (fnOptions) => {
|
|
6495
|
+
const { data } = await addArtifactComment({
|
|
6496
|
+
...options,
|
|
6497
|
+
...fnOptions,
|
|
6498
|
+
throwOnError: true,
|
|
6499
|
+
})
|
|
6500
|
+
return data
|
|
6501
|
+
},
|
|
6502
|
+
}
|
|
6503
|
+
return mutationOptions
|
|
6504
|
+
}
|
|
6505
|
+
|
|
6506
|
+
/**
|
|
6507
|
+
* Resolve an artifact's comment
|
|
6508
|
+
*
|
|
6509
|
+
* Marks the comment resolved, or, with resolved false, opens it again. Its author, or whoever may update the artifact, may; anyone else is refused with 403 not_allowed. A guest's comment is resolved only by whoever may update the artifact.
|
|
6510
|
+
*/
|
|
6511
|
+
export const resolveArtifactCommentMutation = (
|
|
6512
|
+
options?: Partial<Options<ResolveArtifactCommentData>>
|
|
6513
|
+
): UseMutationOptions<
|
|
6514
|
+
ResolveArtifactCommentResponse,
|
|
6515
|
+
ResolveArtifactCommentError,
|
|
6516
|
+
Options<ResolveArtifactCommentData>
|
|
6517
|
+
> => {
|
|
6518
|
+
const mutationOptions: UseMutationOptions<
|
|
6519
|
+
ResolveArtifactCommentResponse,
|
|
6520
|
+
ResolveArtifactCommentError,
|
|
6521
|
+
Options<ResolveArtifactCommentData>
|
|
6522
|
+
> = {
|
|
6523
|
+
mutationFn: async (fnOptions) => {
|
|
6524
|
+
const { data } = await resolveArtifactComment({
|
|
6525
|
+
...options,
|
|
6526
|
+
...fnOptions,
|
|
6527
|
+
throwOnError: true,
|
|
6528
|
+
})
|
|
6529
|
+
return data
|
|
6530
|
+
},
|
|
6531
|
+
}
|
|
6532
|
+
return mutationOptions
|
|
6533
|
+
}
|
|
6534
|
+
|
|
6535
|
+
/**
|
|
6536
|
+
* Delete an artifact's comment
|
|
6537
|
+
*
|
|
6538
|
+
* Deletes the comment and its replies. Its author, or whoever may update the artifact, may.
|
|
6539
|
+
*/
|
|
6540
|
+
export const deleteArtifactCommentMutation = (
|
|
6541
|
+
options?: Partial<Options<DeleteArtifactCommentData>>
|
|
6542
|
+
): UseMutationOptions<
|
|
6543
|
+
DeleteArtifactCommentResponse,
|
|
6544
|
+
DeleteArtifactCommentError,
|
|
6545
|
+
Options<DeleteArtifactCommentData>
|
|
6546
|
+
> => {
|
|
6547
|
+
const mutationOptions: UseMutationOptions<
|
|
6548
|
+
DeleteArtifactCommentResponse,
|
|
6549
|
+
DeleteArtifactCommentError,
|
|
6550
|
+
Options<DeleteArtifactCommentData>
|
|
6551
|
+
> = {
|
|
6552
|
+
mutationFn: async (fnOptions) => {
|
|
6553
|
+
const { data } = await deleteArtifactComment({
|
|
6554
|
+
...options,
|
|
6555
|
+
...fnOptions,
|
|
6556
|
+
throwOnError: true,
|
|
6557
|
+
})
|
|
6558
|
+
return data
|
|
6559
|
+
},
|
|
6560
|
+
}
|
|
6561
|
+
return mutationOptions
|
|
6562
|
+
}
|
|
6563
|
+
|
|
6564
|
+
export const listArtifactRestorePointsQueryKey = (
|
|
6565
|
+
options: Options<ListArtifactRestorePointsData>
|
|
6566
|
+
) => createQueryKey("listArtifactRestorePoints", options)
|
|
6567
|
+
|
|
6568
|
+
/**
|
|
6569
|
+
* List an artifact's restore points
|
|
6570
|
+
*
|
|
6571
|
+
* What the artifact's latest version held before each Agent turn's first write to it, and before each restore, newest first. They are not versions: restoring one puts its content back in the latest version.
|
|
6572
|
+
*/
|
|
6573
|
+
export const listArtifactRestorePointsOptions = (options: Options<ListArtifactRestorePointsData>) =>
|
|
6574
|
+
queryOptions<
|
|
6575
|
+
ListArtifactRestorePointsResponse,
|
|
6576
|
+
ListArtifactRestorePointsError,
|
|
6577
|
+
ListArtifactRestorePointsResponse,
|
|
6578
|
+
ReturnType<typeof listArtifactRestorePointsQueryKey>
|
|
6579
|
+
>({
|
|
6580
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
6581
|
+
const { data } = await listArtifactRestorePoints({
|
|
6582
|
+
...options,
|
|
6583
|
+
...queryKey[0],
|
|
6584
|
+
signal,
|
|
6585
|
+
throwOnError: true,
|
|
6586
|
+
})
|
|
6587
|
+
return data
|
|
6588
|
+
},
|
|
6589
|
+
queryKey: listArtifactRestorePointsQueryKey(options),
|
|
6590
|
+
})
|
|
6591
|
+
|
|
6592
|
+
export const getArtifactRestorePointQueryKey = (options: Options<GetArtifactRestorePointData>) =>
|
|
6593
|
+
createQueryKey("getArtifactRestorePoint", options)
|
|
6594
|
+
|
|
6595
|
+
/**
|
|
6596
|
+
* Get an artifact's restore point
|
|
6597
|
+
*
|
|
6598
|
+
* Its files, outline, and references, as the latest version held them. Read a file's bytes with GET /api/artifacts/{artifactId}/restore-points/{revision}/content.
|
|
6599
|
+
*/
|
|
6600
|
+
export const getArtifactRestorePointOptions = (options: Options<GetArtifactRestorePointData>) =>
|
|
6601
|
+
queryOptions<
|
|
6602
|
+
GetArtifactRestorePointResponse,
|
|
6603
|
+
GetArtifactRestorePointError,
|
|
6604
|
+
GetArtifactRestorePointResponse,
|
|
6605
|
+
ReturnType<typeof getArtifactRestorePointQueryKey>
|
|
6606
|
+
>({
|
|
6607
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
6608
|
+
const { data } = await getArtifactRestorePoint({
|
|
6609
|
+
...options,
|
|
6610
|
+
...queryKey[0],
|
|
6611
|
+
signal,
|
|
6612
|
+
throwOnError: true,
|
|
6613
|
+
})
|
|
6614
|
+
return data
|
|
6615
|
+
},
|
|
6616
|
+
queryKey: getArtifactRestorePointQueryKey(options),
|
|
6617
|
+
})
|
|
6618
|
+
|
|
6619
|
+
export const getArtifactRestorePointFileContentQueryKey = (
|
|
6620
|
+
options: Options<GetArtifactRestorePointFileContentData>
|
|
6621
|
+
) => createQueryKey("getArtifactRestorePointFileContent", options)
|
|
6622
|
+
|
|
6623
|
+
/**
|
|
6624
|
+
* Get a file of an artifact's restore point
|
|
6625
|
+
*/
|
|
6626
|
+
export const getArtifactRestorePointFileContentOptions = (
|
|
6627
|
+
options: Options<GetArtifactRestorePointFileContentData>
|
|
6628
|
+
) =>
|
|
6629
|
+
queryOptions<
|
|
6630
|
+
GetArtifactRestorePointFileContentResponse,
|
|
6631
|
+
GetArtifactRestorePointFileContentError,
|
|
6632
|
+
GetArtifactRestorePointFileContentResponse,
|
|
6633
|
+
ReturnType<typeof getArtifactRestorePointFileContentQueryKey>
|
|
6634
|
+
>({
|
|
6635
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
6636
|
+
const { data } = await getArtifactRestorePointFileContent({
|
|
6637
|
+
...options,
|
|
6638
|
+
...queryKey[0],
|
|
6639
|
+
signal,
|
|
6640
|
+
throwOnError: true,
|
|
6641
|
+
})
|
|
6642
|
+
return data
|
|
6643
|
+
},
|
|
6644
|
+
queryKey: getArtifactRestorePointFileContentQueryKey(options),
|
|
6645
|
+
})
|
|
6646
|
+
|
|
6647
|
+
/**
|
|
6648
|
+
* Restore an artifact
|
|
6649
|
+
*
|
|
6650
|
+
* Puts a restore point's content back in the latest version, as an update writes it: in place while it is open, as the next version when it is frozen. What it replaces becomes a restore point, so the restore can be undone. Whoever may update the artifact may restore it. With baseRevision, it is refused with 409 artifact_moved when the artifact changed since.
|
|
6651
|
+
*/
|
|
6652
|
+
export const restoreArtifactMutation = (
|
|
6653
|
+
options?: Partial<Options<RestoreArtifactData>>
|
|
6654
|
+
): UseMutationOptions<
|
|
6655
|
+
RestoreArtifactResponse,
|
|
6656
|
+
RestoreArtifactError,
|
|
6657
|
+
Options<RestoreArtifactData>
|
|
6658
|
+
> => {
|
|
6659
|
+
const mutationOptions: UseMutationOptions<
|
|
6660
|
+
RestoreArtifactResponse,
|
|
6661
|
+
RestoreArtifactError,
|
|
6662
|
+
Options<RestoreArtifactData>
|
|
6663
|
+
> = {
|
|
6664
|
+
mutationFn: async (fnOptions) => {
|
|
6665
|
+
const { data } = await restoreArtifact({
|
|
6218
6666
|
...options,
|
|
6219
6667
|
...fnOptions,
|
|
6220
6668
|
throwOnError: true,
|
|
@@ -6228,7 +6676,7 @@ export const publishArtifactVersionMutation = (
|
|
|
6228
6676
|
/**
|
|
6229
6677
|
* Open a version in a frame
|
|
6230
6678
|
*
|
|
6231
|
-
* A short-lived path that serves the files of a version that opens in a sandboxed frame, as slides do. It expires within an hour. A kind that does not open in a frame is refused with 409 artifact_kind_mismatch.
|
|
6679
|
+
* A short-lived path that serves the files of a version that opens in a sandboxed frame, as slides do, at the revision it has now: once the version is written again, the path serves nothing and a new one is needed. It expires within an hour. A kind that does not open in a frame is refused with 409 artifact_kind_mismatch.
|
|
6232
6680
|
*/
|
|
6233
6681
|
export const createArtifactFrameMutation = (
|
|
6234
6682
|
options?: Partial<Options<CreateArtifactFrameData>>
|
|
@@ -6281,6 +6729,33 @@ export const getArtifactVersionOptions = (options: Options<GetArtifactVersionDat
|
|
|
6281
6729
|
queryKey: getArtifactVersionQueryKey(options),
|
|
6282
6730
|
})
|
|
6283
6731
|
|
|
6732
|
+
export const getArtifactBoardPreviewQueryKey = (options: Options<GetArtifactBoardPreviewData>) =>
|
|
6733
|
+
createQueryKey("getArtifactBoardPreview", options)
|
|
6734
|
+
|
|
6735
|
+
/**
|
|
6736
|
+
* Get the preview of a canvas's board
|
|
6737
|
+
*
|
|
6738
|
+
* A picture of the board as its version shows it, in the reader's mode: a PNG at its own size, or with size=small a WebP at most 480 pixels wide, which a viewer shows until the board is opened. It shows the data the version's author can see. A frozen version's preview never changes, and is cached as such, as is one asked for at a revision; an open version's otherwise, and "latest", are revalidated. 404 preview_not_found until it is rendered, when it never will be, or when revision is not the version's current one: the version says which.
|
|
6739
|
+
*/
|
|
6740
|
+
export const getArtifactBoardPreviewOptions = (options: Options<GetArtifactBoardPreviewData>) =>
|
|
6741
|
+
queryOptions<
|
|
6742
|
+
GetArtifactBoardPreviewResponse,
|
|
6743
|
+
GetArtifactBoardPreviewError,
|
|
6744
|
+
GetArtifactBoardPreviewResponse,
|
|
6745
|
+
ReturnType<typeof getArtifactBoardPreviewQueryKey>
|
|
6746
|
+
>({
|
|
6747
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
6748
|
+
const { data } = await getArtifactBoardPreview({
|
|
6749
|
+
...options,
|
|
6750
|
+
...queryKey[0],
|
|
6751
|
+
signal,
|
|
6752
|
+
throwOnError: true,
|
|
6753
|
+
})
|
|
6754
|
+
return data
|
|
6755
|
+
},
|
|
6756
|
+
queryKey: getArtifactBoardPreviewQueryKey(options),
|
|
6757
|
+
})
|
|
6758
|
+
|
|
6284
6759
|
export const getArtifactQueryQueryKey = (options: Options<GetArtifactQueryData>) =>
|
|
6285
6760
|
createQueryKey("getArtifactQuery", options)
|
|
6286
6761
|
|