@sixb/client 0.2.3 → 0.2.6
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/agent-streams.d.ts +11 -2
- package/dist/agent-streams.d.ts.map +1 -1
- package/dist/artifact-live.js +1 -1
- package/dist/browser.js +1 -1
- package/dist/{chunk-ktqfenfd.js → chunk-3dxa8d3r.js} +46 -6
- package/dist/chunk-3dxa8d3r.js.map +10 -0
- package/dist/{chunk-90q7wa43.js → chunk-4t68c4gf.js} +10 -3
- package/dist/{chunk-90q7wa43.js.map → chunk-4t68c4gf.js.map} +3 -3
- package/dist/{chunk-bgpzb1fn.js → chunk-6caavk8p.js} +1 -1
- package/dist/{chunk-seeyb9k9.js → chunk-pzz6gtn5.js} +2 -2
- package/dist/{chunk-zerhr00d.js → chunk-vydypkf1.js} +98 -2
- package/dist/chunk-vydypkf1.js.map +10 -0
- package/dist/connectors/connection.d.ts +12 -0
- package/dist/connectors/connection.d.ts.map +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.d.ts.map +1 -1
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +6678 -4623
- 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 +58 -6
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +2468 -227
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.js +180 -6
- package/dist/hooks.js.map +4 -4
- package/dist/index.js +26 -6
- package/dist/index.js.map +1 -1
- package/dist/logs.js +3 -3
- package/dist/models.js +23 -3
- package/dist/models.js.map +1 -1
- package/dist/query.js +2 -2
- package/dist/users-hooks.d.ts.map +1 -1
- package/dist/ws-socket.d.ts +2 -0
- package/dist/ws-socket.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/agent-streams.ts +23 -0
- package/src/connectors/connection.ts +59 -0
- package/src/connectors/index.ts +1 -0
- package/src/generated/@tanstack/react-query.gen.ts +319 -5
- package/src/generated/index.ts +55 -0
- package/src/generated/sdk.gen.ts +235 -5
- package/src/generated/types.gen.ts +3408 -187
- package/src/ws-socket.ts +62 -7
- package/dist/chunk-ktqfenfd.js.map +0 -10
- package/dist/chunk-zerhr00d.js.map +0 -10
- /package/dist/{chunk-bgpzb1fn.js.map → chunk-6caavk8p.js.map} +0 -0
- /package/dist/{chunk-seeyb9k9.js.map → chunk-pzz6gtn5.js.map} +0 -0
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
deleteArtifactStateValue,
|
|
41
41
|
disableAuthServiceAccount,
|
|
42
42
|
disconnectConnectorConnection,
|
|
43
|
+
editAgentThreadMessage,
|
|
43
44
|
exchangeDeviceAuthorization,
|
|
44
45
|
exchangeSharedAccess,
|
|
45
46
|
existsObjects,
|
|
@@ -72,6 +73,7 @@ import {
|
|
|
72
73
|
getArtifact,
|
|
73
74
|
getArtifactBoardPreview,
|
|
74
75
|
getArtifactFileContent,
|
|
76
|
+
getArtifactPdf,
|
|
75
77
|
getArtifactQuery,
|
|
76
78
|
getArtifactRestorePoint,
|
|
77
79
|
getArtifactRestorePointFileContent,
|
|
@@ -128,6 +130,7 @@ import {
|
|
|
128
130
|
listAgentMemoryRevisions,
|
|
129
131
|
listAgentThreadApprovals,
|
|
130
132
|
listAgentThreadChildren,
|
|
133
|
+
listAgentThreadInbox,
|
|
131
134
|
listAgentThreadMessages,
|
|
132
135
|
listAgentThreadRuns,
|
|
133
136
|
listAgentThreads,
|
|
@@ -144,6 +147,8 @@ import {
|
|
|
144
147
|
listAuthServiceAccountAccessTokens,
|
|
145
148
|
listAuthServiceAccounts,
|
|
146
149
|
listAuthSessions,
|
|
150
|
+
listConnectorAccounts,
|
|
151
|
+
listConnectorConnectionSyncRuns,
|
|
147
152
|
listConnectorConnections,
|
|
148
153
|
listConnectors,
|
|
149
154
|
listDatasetRows,
|
|
@@ -172,10 +177,12 @@ import {
|
|
|
172
177
|
listWorkflowInterventions,
|
|
173
178
|
listWorkflowRuns,
|
|
174
179
|
listWorkflows,
|
|
180
|
+
markAgentThreadRead,
|
|
175
181
|
moveAgentThreadToCloud,
|
|
176
182
|
moveAgentThreadToComputer,
|
|
177
183
|
type Options,
|
|
178
184
|
postAgentThreadMessage,
|
|
185
|
+
printArtifactPdf,
|
|
179
186
|
queryObjectLinks,
|
|
180
187
|
queryObjects,
|
|
181
188
|
reactivateAuthMember,
|
|
@@ -189,6 +196,7 @@ import {
|
|
|
189
196
|
requestSyncRun,
|
|
190
197
|
requestWorkflowRun,
|
|
191
198
|
resolveArtifactComment,
|
|
199
|
+
restoreAgentThreadSandbox,
|
|
192
200
|
restoreArtifact,
|
|
193
201
|
retryAgentRun,
|
|
194
202
|
revokeAuthAccessToken,
|
|
@@ -213,12 +221,14 @@ import {
|
|
|
213
221
|
suspendAuthMember,
|
|
214
222
|
transcribeAudio,
|
|
215
223
|
updateAgentPreferences,
|
|
224
|
+
updateAgentThreadInboxItem,
|
|
216
225
|
updateAiLimitPolicy,
|
|
217
226
|
updateArtifact,
|
|
218
227
|
updateAuthMemberGroups,
|
|
219
228
|
updateAuthProfile,
|
|
220
229
|
uploadFileContent,
|
|
221
230
|
uploadFileRaw,
|
|
231
|
+
withdrawAgentThreadInboxItem,
|
|
222
232
|
} from "../sdk.gen"
|
|
223
233
|
import type {
|
|
224
234
|
AbortFileUploadData,
|
|
@@ -311,6 +321,9 @@ import type {
|
|
|
311
321
|
DisconnectConnectorConnectionData,
|
|
312
322
|
DisconnectConnectorConnectionError,
|
|
313
323
|
DisconnectConnectorConnectionResponse,
|
|
324
|
+
EditAgentThreadMessageData,
|
|
325
|
+
EditAgentThreadMessageError,
|
|
326
|
+
EditAgentThreadMessageResponse,
|
|
314
327
|
ExchangeDeviceAuthorizationData,
|
|
315
328
|
ExchangeDeviceAuthorizationResponse,
|
|
316
329
|
ExchangeSharedAccessData,
|
|
@@ -405,6 +418,9 @@ import type {
|
|
|
405
418
|
GetArtifactFileContentData,
|
|
406
419
|
GetArtifactFileContentError,
|
|
407
420
|
GetArtifactFileContentResponse,
|
|
421
|
+
GetArtifactPdfData,
|
|
422
|
+
GetArtifactPdfError,
|
|
423
|
+
GetArtifactPdfResponse,
|
|
408
424
|
GetArtifactQueryData,
|
|
409
425
|
GetArtifactQueryError,
|
|
410
426
|
GetArtifactQueryResponse,
|
|
@@ -570,6 +586,9 @@ import type {
|
|
|
570
586
|
ListAgentThreadChildrenData,
|
|
571
587
|
ListAgentThreadChildrenError,
|
|
572
588
|
ListAgentThreadChildrenResponse,
|
|
589
|
+
ListAgentThreadInboxData,
|
|
590
|
+
ListAgentThreadInboxError,
|
|
591
|
+
ListAgentThreadInboxResponse,
|
|
573
592
|
ListAgentThreadMessagesData,
|
|
574
593
|
ListAgentThreadMessagesError,
|
|
575
594
|
ListAgentThreadMessagesResponse,
|
|
@@ -618,6 +637,10 @@ import type {
|
|
|
618
637
|
ListAuthSessionsData,
|
|
619
638
|
ListAuthSessionsError,
|
|
620
639
|
ListAuthSessionsResponse,
|
|
640
|
+
ListConnectorAccountsData,
|
|
641
|
+
ListConnectorAccountsResponse,
|
|
642
|
+
ListConnectorConnectionSyncRunsData,
|
|
643
|
+
ListConnectorConnectionSyncRunsResponse,
|
|
621
644
|
ListConnectorConnectionsData,
|
|
622
645
|
ListConnectorConnectionsError,
|
|
623
646
|
ListConnectorConnectionsResponse,
|
|
@@ -694,6 +717,9 @@ import type {
|
|
|
694
717
|
ListWorkflowRunsResponse,
|
|
695
718
|
ListWorkflowsData,
|
|
696
719
|
ListWorkflowsResponse,
|
|
720
|
+
MarkAgentThreadReadData,
|
|
721
|
+
MarkAgentThreadReadError,
|
|
722
|
+
MarkAgentThreadReadResponse,
|
|
697
723
|
MoveAgentThreadToCloudData,
|
|
698
724
|
MoveAgentThreadToCloudError,
|
|
699
725
|
MoveAgentThreadToCloudResponse,
|
|
@@ -703,6 +729,9 @@ import type {
|
|
|
703
729
|
PostAgentThreadMessageData,
|
|
704
730
|
PostAgentThreadMessageError,
|
|
705
731
|
PostAgentThreadMessageResponse,
|
|
732
|
+
PrintArtifactPdfData,
|
|
733
|
+
PrintArtifactPdfError,
|
|
734
|
+
PrintArtifactPdfResponse,
|
|
706
735
|
QueryObjectLinksData,
|
|
707
736
|
QueryObjectLinksError,
|
|
708
737
|
QueryObjectLinksResponse,
|
|
@@ -740,6 +769,9 @@ import type {
|
|
|
740
769
|
ResolveArtifactCommentData,
|
|
741
770
|
ResolveArtifactCommentError,
|
|
742
771
|
ResolveArtifactCommentResponse,
|
|
772
|
+
RestoreAgentThreadSandboxData,
|
|
773
|
+
RestoreAgentThreadSandboxError,
|
|
774
|
+
RestoreAgentThreadSandboxResponse,
|
|
743
775
|
RestoreArtifactData,
|
|
744
776
|
RestoreArtifactError,
|
|
745
777
|
RestoreArtifactResponse,
|
|
@@ -812,6 +844,9 @@ import type {
|
|
|
812
844
|
UpdateAgentPreferencesData,
|
|
813
845
|
UpdateAgentPreferencesError,
|
|
814
846
|
UpdateAgentPreferencesResponse,
|
|
847
|
+
UpdateAgentThreadInboxItemData,
|
|
848
|
+
UpdateAgentThreadInboxItemError,
|
|
849
|
+
UpdateAgentThreadInboxItemResponse,
|
|
815
850
|
UpdateAiLimitPolicyData,
|
|
816
851
|
UpdateAiLimitPolicyError,
|
|
817
852
|
UpdateAiLimitPolicyResponse,
|
|
@@ -830,6 +865,8 @@ import type {
|
|
|
830
865
|
UploadFileRawData,
|
|
831
866
|
UploadFileRawError,
|
|
832
867
|
UploadFileRawResponse,
|
|
868
|
+
WithdrawAgentThreadInboxItemData,
|
|
869
|
+
WithdrawAgentThreadInboxItemError,
|
|
833
870
|
} from "../types.gen"
|
|
834
871
|
|
|
835
872
|
/**
|
|
@@ -2823,6 +2860,63 @@ export const getSyncOptions = (options: Options<GetSyncData>) =>
|
|
|
2823
2860
|
queryKey: getSyncQueryKey(options),
|
|
2824
2861
|
})
|
|
2825
2862
|
|
|
2863
|
+
export const listConnectorAccountsQueryKey = (options: Options<ListConnectorAccountsData>) =>
|
|
2864
|
+
createQueryKey("listConnectorAccounts", options)
|
|
2865
|
+
|
|
2866
|
+
/**
|
|
2867
|
+
* List a connector's accounts and how they synced
|
|
2868
|
+
*
|
|
2869
|
+
* On an OAuth connector, each connected account you may see, with the latest run of each of its syncs you may run. Empty for a static connector.
|
|
2870
|
+
*/
|
|
2871
|
+
export const listConnectorAccountsOptions = (options: Options<ListConnectorAccountsData>) =>
|
|
2872
|
+
queryOptions<
|
|
2873
|
+
ListConnectorAccountsResponse,
|
|
2874
|
+
DefaultError,
|
|
2875
|
+
ListConnectorAccountsResponse,
|
|
2876
|
+
ReturnType<typeof listConnectorAccountsQueryKey>
|
|
2877
|
+
>({
|
|
2878
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2879
|
+
const { data } = await listConnectorAccounts({
|
|
2880
|
+
...options,
|
|
2881
|
+
...queryKey[0],
|
|
2882
|
+
signal,
|
|
2883
|
+
throwOnError: true,
|
|
2884
|
+
})
|
|
2885
|
+
return data
|
|
2886
|
+
},
|
|
2887
|
+
queryKey: listConnectorAccountsQueryKey(options),
|
|
2888
|
+
})
|
|
2889
|
+
|
|
2890
|
+
export const listConnectorConnectionSyncRunsQueryKey = (
|
|
2891
|
+
options: Options<ListConnectorConnectionSyncRunsData>
|
|
2892
|
+
) => createQueryKey("listConnectorConnectionSyncRuns", options)
|
|
2893
|
+
|
|
2894
|
+
/**
|
|
2895
|
+
* Latest sync runs of a connection
|
|
2896
|
+
*
|
|
2897
|
+
* The latest run of each sync of one connection: your own, or anyone's with can.manage on its connector. Empty for a connection you don't see.
|
|
2898
|
+
*/
|
|
2899
|
+
export const listConnectorConnectionSyncRunsOptions = (
|
|
2900
|
+
options: Options<ListConnectorConnectionSyncRunsData>
|
|
2901
|
+
) =>
|
|
2902
|
+
queryOptions<
|
|
2903
|
+
ListConnectorConnectionSyncRunsResponse,
|
|
2904
|
+
DefaultError,
|
|
2905
|
+
ListConnectorConnectionSyncRunsResponse,
|
|
2906
|
+
ReturnType<typeof listConnectorConnectionSyncRunsQueryKey>
|
|
2907
|
+
>({
|
|
2908
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2909
|
+
const { data } = await listConnectorConnectionSyncRuns({
|
|
2910
|
+
...options,
|
|
2911
|
+
...queryKey[0],
|
|
2912
|
+
signal,
|
|
2913
|
+
throwOnError: true,
|
|
2914
|
+
})
|
|
2915
|
+
return data
|
|
2916
|
+
},
|
|
2917
|
+
queryKey: listConnectorConnectionSyncRunsQueryKey(options),
|
|
2918
|
+
})
|
|
2919
|
+
|
|
2826
2920
|
export const listSyncRunsQueryKey = (options?: Options<ListSyncRunsData>) =>
|
|
2827
2921
|
createQueryKey("listSyncRuns", options)
|
|
2828
2922
|
|
|
@@ -4842,6 +4936,33 @@ export const recreateAgentThreadSandboxMutation = (
|
|
|
4842
4936
|
return mutationOptions
|
|
4843
4937
|
}
|
|
4844
4938
|
|
|
4939
|
+
/**
|
|
4940
|
+
* Explicitly go on in the workspace a failed save left, with its files as they were
|
|
4941
|
+
*/
|
|
4942
|
+
export const restoreAgentThreadSandboxMutation = (
|
|
4943
|
+
options?: Partial<Options<RestoreAgentThreadSandboxData>>
|
|
4944
|
+
): UseMutationOptions<
|
|
4945
|
+
RestoreAgentThreadSandboxResponse,
|
|
4946
|
+
RestoreAgentThreadSandboxError,
|
|
4947
|
+
Options<RestoreAgentThreadSandboxData>
|
|
4948
|
+
> => {
|
|
4949
|
+
const mutationOptions: UseMutationOptions<
|
|
4950
|
+
RestoreAgentThreadSandboxResponse,
|
|
4951
|
+
RestoreAgentThreadSandboxError,
|
|
4952
|
+
Options<RestoreAgentThreadSandboxData>
|
|
4953
|
+
> = {
|
|
4954
|
+
mutationFn: async (fnOptions) => {
|
|
4955
|
+
const { data } = await restoreAgentThreadSandbox({
|
|
4956
|
+
...options,
|
|
4957
|
+
...fnOptions,
|
|
4958
|
+
throwOnError: true,
|
|
4959
|
+
})
|
|
4960
|
+
return data
|
|
4961
|
+
},
|
|
4962
|
+
}
|
|
4963
|
+
return mutationOptions
|
|
4964
|
+
}
|
|
4965
|
+
|
|
4845
4966
|
export const listAgentThreadMessagesQueryKey = (options: Options<ListAgentThreadMessagesData>) =>
|
|
4846
4967
|
createQueryKey("listAgentThreadMessages", options)
|
|
4847
4968
|
|
|
@@ -4969,6 +5090,114 @@ export const getAgentMessageFileContentOptions = (
|
|
|
4969
5090
|
queryKey: getAgentMessageFileContentQueryKey(options),
|
|
4970
5091
|
})
|
|
4971
5092
|
|
|
5093
|
+
export const listAgentThreadInboxQueryKey = (options: Options<ListAgentThreadInboxData>) =>
|
|
5094
|
+
createQueryKey("listAgentThreadInbox", options)
|
|
5095
|
+
|
|
5096
|
+
/**
|
|
5097
|
+
* List agent thread inbox messages
|
|
5098
|
+
*/
|
|
5099
|
+
export const listAgentThreadInboxOptions = (options: Options<ListAgentThreadInboxData>) =>
|
|
5100
|
+
queryOptions<
|
|
5101
|
+
ListAgentThreadInboxResponse,
|
|
5102
|
+
ListAgentThreadInboxError,
|
|
5103
|
+
ListAgentThreadInboxResponse,
|
|
5104
|
+
ReturnType<typeof listAgentThreadInboxQueryKey>
|
|
5105
|
+
>({
|
|
5106
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
5107
|
+
const { data } = await listAgentThreadInbox({
|
|
5108
|
+
...options,
|
|
5109
|
+
...queryKey[0],
|
|
5110
|
+
signal,
|
|
5111
|
+
throwOnError: true,
|
|
5112
|
+
})
|
|
5113
|
+
return data
|
|
5114
|
+
},
|
|
5115
|
+
queryKey: listAgentThreadInboxQueryKey(options),
|
|
5116
|
+
})
|
|
5117
|
+
|
|
5118
|
+
/**
|
|
5119
|
+
* Withdraw a waiting agent thread message
|
|
5120
|
+
*/
|
|
5121
|
+
export const withdrawAgentThreadInboxItemMutation = (
|
|
5122
|
+
options?: Partial<Options<WithdrawAgentThreadInboxItemData>>
|
|
5123
|
+
): UseMutationOptions<
|
|
5124
|
+
unknown,
|
|
5125
|
+
WithdrawAgentThreadInboxItemError,
|
|
5126
|
+
Options<WithdrawAgentThreadInboxItemData>
|
|
5127
|
+
> => {
|
|
5128
|
+
const mutationOptions: UseMutationOptions<
|
|
5129
|
+
unknown,
|
|
5130
|
+
WithdrawAgentThreadInboxItemError,
|
|
5131
|
+
Options<WithdrawAgentThreadInboxItemData>
|
|
5132
|
+
> = {
|
|
5133
|
+
mutationFn: async (fnOptions) => {
|
|
5134
|
+
const { data } = await withdrawAgentThreadInboxItem({
|
|
5135
|
+
...options,
|
|
5136
|
+
...fnOptions,
|
|
5137
|
+
throwOnError: true,
|
|
5138
|
+
})
|
|
5139
|
+
return data
|
|
5140
|
+
},
|
|
5141
|
+
}
|
|
5142
|
+
return mutationOptions
|
|
5143
|
+
}
|
|
5144
|
+
|
|
5145
|
+
/**
|
|
5146
|
+
* Update a waiting agent thread message
|
|
5147
|
+
*/
|
|
5148
|
+
export const updateAgentThreadInboxItemMutation = (
|
|
5149
|
+
options?: Partial<Options<UpdateAgentThreadInboxItemData>>
|
|
5150
|
+
): UseMutationOptions<
|
|
5151
|
+
UpdateAgentThreadInboxItemResponse,
|
|
5152
|
+
UpdateAgentThreadInboxItemError,
|
|
5153
|
+
Options<UpdateAgentThreadInboxItemData>
|
|
5154
|
+
> => {
|
|
5155
|
+
const mutationOptions: UseMutationOptions<
|
|
5156
|
+
UpdateAgentThreadInboxItemResponse,
|
|
5157
|
+
UpdateAgentThreadInboxItemError,
|
|
5158
|
+
Options<UpdateAgentThreadInboxItemData>
|
|
5159
|
+
> = {
|
|
5160
|
+
mutationFn: async (fnOptions) => {
|
|
5161
|
+
const { data } = await updateAgentThreadInboxItem({
|
|
5162
|
+
...options,
|
|
5163
|
+
...fnOptions,
|
|
5164
|
+
throwOnError: true,
|
|
5165
|
+
})
|
|
5166
|
+
return data
|
|
5167
|
+
},
|
|
5168
|
+
}
|
|
5169
|
+
return mutationOptions
|
|
5170
|
+
}
|
|
5171
|
+
|
|
5172
|
+
/**
|
|
5173
|
+
* Edit an agent thread message and restart from that turn
|
|
5174
|
+
*
|
|
5175
|
+
* Replaces a user-authored message in place, removes any messages and compaction summaries from that turn onward, and starts a new turn from the edited message. While a turn runs, the edit stops it and waits in the thread's inbox: the turn's end rewinds the thread and starts the edited message.
|
|
5176
|
+
*/
|
|
5177
|
+
export const editAgentThreadMessageMutation = (
|
|
5178
|
+
options?: Partial<Options<EditAgentThreadMessageData>>
|
|
5179
|
+
): UseMutationOptions<
|
|
5180
|
+
EditAgentThreadMessageResponse,
|
|
5181
|
+
EditAgentThreadMessageError,
|
|
5182
|
+
Options<EditAgentThreadMessageData>
|
|
5183
|
+
> => {
|
|
5184
|
+
const mutationOptions: UseMutationOptions<
|
|
5185
|
+
EditAgentThreadMessageResponse,
|
|
5186
|
+
EditAgentThreadMessageError,
|
|
5187
|
+
Options<EditAgentThreadMessageData>
|
|
5188
|
+
> = {
|
|
5189
|
+
mutationFn: async (fnOptions) => {
|
|
5190
|
+
const { data } = await editAgentThreadMessage({
|
|
5191
|
+
...options,
|
|
5192
|
+
...fnOptions,
|
|
5193
|
+
throwOnError: true,
|
|
5194
|
+
})
|
|
5195
|
+
return data
|
|
5196
|
+
},
|
|
5197
|
+
}
|
|
5198
|
+
return mutationOptions
|
|
5199
|
+
}
|
|
5200
|
+
|
|
4972
5201
|
/**
|
|
4973
5202
|
* Cancel an agent thread's active run
|
|
4974
5203
|
*
|
|
@@ -5172,6 +5401,35 @@ export const cancelAgentRunByIdMutation = (
|
|
|
5172
5401
|
return mutationOptions
|
|
5173
5402
|
}
|
|
5174
5403
|
|
|
5404
|
+
/**
|
|
5405
|
+
* Mark how far you have read an Agent thread
|
|
5406
|
+
*
|
|
5407
|
+
* Record that your reading of a conversation reached a message, or its newest when `throughMessageId` is omitted, which is what a Done button sends. It never moves backwards, so another device that read further keeps its place; a message a retry or an edit took away marks nothing. Session routes only: a runner has no reading.
|
|
5408
|
+
*/
|
|
5409
|
+
export const markAgentThreadReadMutation = (
|
|
5410
|
+
options?: Partial<Options<MarkAgentThreadReadData>>
|
|
5411
|
+
): UseMutationOptions<
|
|
5412
|
+
MarkAgentThreadReadResponse,
|
|
5413
|
+
MarkAgentThreadReadError,
|
|
5414
|
+
Options<MarkAgentThreadReadData>
|
|
5415
|
+
> => {
|
|
5416
|
+
const mutationOptions: UseMutationOptions<
|
|
5417
|
+
MarkAgentThreadReadResponse,
|
|
5418
|
+
MarkAgentThreadReadError,
|
|
5419
|
+
Options<MarkAgentThreadReadData>
|
|
5420
|
+
> = {
|
|
5421
|
+
mutationFn: async (fnOptions) => {
|
|
5422
|
+
const { data } = await markAgentThreadRead({
|
|
5423
|
+
...options,
|
|
5424
|
+
...fnOptions,
|
|
5425
|
+
throwOnError: true,
|
|
5426
|
+
})
|
|
5427
|
+
return data
|
|
5428
|
+
},
|
|
5429
|
+
}
|
|
5430
|
+
return mutationOptions
|
|
5431
|
+
}
|
|
5432
|
+
|
|
5175
5433
|
export const listAgentThreadChildrenQueryKey = (options: Options<ListAgentThreadChildrenData>) =>
|
|
5176
5434
|
createQueryKey("listAgentThreadChildren", options)
|
|
5177
5435
|
|
|
@@ -5256,7 +5514,7 @@ export const listAgentComputersOptions = (options?: Options<ListAgentComputersDa
|
|
|
5256
5514
|
/**
|
|
5257
5515
|
* Move a thread from your computer to the cloud
|
|
5258
5516
|
*
|
|
5259
|
-
* 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.
|
|
5517
|
+
* Its turns run in the cloud from now on, starting with the one waiting for the computer, if any, and its owner can move it to a computer or folder again later. The files it worked on stay on the computer. Refused while a turn runs there or waits on approvals.
|
|
5260
5518
|
*/
|
|
5261
5519
|
export const moveAgentThreadToCloudMutation = (
|
|
5262
5520
|
options?: Partial<Options<MoveAgentThreadToCloudData>>
|
|
@@ -5285,7 +5543,7 @@ export const moveAgentThreadToCloudMutation = (
|
|
|
5285
5543
|
/**
|
|
5286
5544
|
* Move a thread to one of your computers, in a folder there
|
|
5287
5545
|
*
|
|
5288
|
-
*
|
|
5546
|
+
* Its turns run there alone from now on, in that folder: only `sixb` open in it claims them. Its owner moves it from the cloud or from another folder or computer, as often as they need; files from where it ran before stay there. Refused while a turn runs or waits on approvals.
|
|
5289
5547
|
*/
|
|
5290
5548
|
export const moveAgentThreadToComputerMutation = (
|
|
5291
5549
|
options?: Partial<Options<MoveAgentThreadToComputerData>>
|
|
@@ -6453,7 +6711,7 @@ export const listArtifactCommentsQueryKey = (options: Options<ListArtifactCommen
|
|
|
6453
6711
|
/**
|
|
6454
6712
|
* List an artifact's comments
|
|
6455
6713
|
*
|
|
6456
|
-
* Every comment and reply, oldest first, resolved ones included. Whoever reads the artifact reads them.
|
|
6714
|
+
* Every comment and reply, oldest first, resolved ones included. Whoever reads the artifact reads them; a shared link's guest reads only the threads started by a guest of the same link, with every reply in them.
|
|
6457
6715
|
*/
|
|
6458
6716
|
export const listArtifactCommentsOptions = (options: Options<ListArtifactCommentsData>) =>
|
|
6459
6717
|
queryOptions<
|
|
@@ -6477,7 +6735,7 @@ export const listArtifactCommentsOptions = (options: Options<ListArtifactComment
|
|
|
6477
6735
|
/**
|
|
6478
6736
|
* Comment on an artifact
|
|
6479
6737
|
*
|
|
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.
|
|
6738
|
+
* 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), and replies only in a thread they read (404 comment_not_found otherwise). A canvas's comment can be about one of its boards, or an element of a board by its address. Readers of the thread receive artifact.commented.
|
|
6481
6739
|
*/
|
|
6482
6740
|
export const addArtifactCommentMutation = (
|
|
6483
6741
|
options?: Partial<Options<AddArtifactCommentData>>
|
|
@@ -6729,6 +6987,62 @@ export const getArtifactVersionOptions = (options: Options<GetArtifactVersionDat
|
|
|
6729
6987
|
queryKey: getArtifactVersionQueryKey(options),
|
|
6730
6988
|
})
|
|
6731
6989
|
|
|
6990
|
+
export const getArtifactPdfQueryKey = (options: Options<GetArtifactPdfData>) =>
|
|
6991
|
+
createQueryKey("getArtifactPdf", options)
|
|
6992
|
+
|
|
6993
|
+
/**
|
|
6994
|
+
* Get a designed document's PDF
|
|
6995
|
+
*
|
|
6996
|
+
* The version printed to PDF, with the values its fields read as the caller reads them, as a download named after the title it printed with: for a document that shows live data, those its POST's key names. 404 pdf_not_found until it is printed: ask for it with POST first. A frozen version's PDF never changes, and is cached as such.
|
|
6997
|
+
*/
|
|
6998
|
+
export const getArtifactPdfOptions = (options: Options<GetArtifactPdfData>) =>
|
|
6999
|
+
queryOptions<
|
|
7000
|
+
GetArtifactPdfResponse,
|
|
7001
|
+
GetArtifactPdfError,
|
|
7002
|
+
GetArtifactPdfResponse,
|
|
7003
|
+
ReturnType<typeof getArtifactPdfQueryKey>
|
|
7004
|
+
>({
|
|
7005
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
7006
|
+
const { data } = await getArtifactPdf({
|
|
7007
|
+
...options,
|
|
7008
|
+
...queryKey[0],
|
|
7009
|
+
signal,
|
|
7010
|
+
throwOnError: true,
|
|
7011
|
+
})
|
|
7012
|
+
return data
|
|
7013
|
+
},
|
|
7014
|
+
queryKey: getArtifactPdfQueryKey(options),
|
|
7015
|
+
})
|
|
7016
|
+
|
|
7017
|
+
/**
|
|
7018
|
+
* Print a designed document to PDF
|
|
7019
|
+
*
|
|
7020
|
+
* Answers ready once the version is printed, and printing until then, having asked for it: ask again after a few seconds, then get it. Failed with why when it could not be printed; retry=true asks again. A document that shows live data answers with a key: ask again and get it with that key, which names the values the first ask printed. It prints as its stylesheets' @page rule lays it out, in a sandbox of the project. Whoever reads the artifact may ask. 400 invalid_artifact when the version is not a designed document; 501 pdf_unavailable in a project without sandboxes.
|
|
7021
|
+
*/
|
|
7022
|
+
export const printArtifactPdfMutation = (
|
|
7023
|
+
options?: Partial<Options<PrintArtifactPdfData>>
|
|
7024
|
+
): UseMutationOptions<
|
|
7025
|
+
PrintArtifactPdfResponse,
|
|
7026
|
+
PrintArtifactPdfError,
|
|
7027
|
+
Options<PrintArtifactPdfData>
|
|
7028
|
+
> => {
|
|
7029
|
+
const mutationOptions: UseMutationOptions<
|
|
7030
|
+
PrintArtifactPdfResponse,
|
|
7031
|
+
PrintArtifactPdfError,
|
|
7032
|
+
Options<PrintArtifactPdfData>
|
|
7033
|
+
> = {
|
|
7034
|
+
mutationFn: async (fnOptions) => {
|
|
7035
|
+
const { data } = await printArtifactPdf({
|
|
7036
|
+
...options,
|
|
7037
|
+
...fnOptions,
|
|
7038
|
+
throwOnError: true,
|
|
7039
|
+
})
|
|
7040
|
+
return data
|
|
7041
|
+
},
|
|
7042
|
+
}
|
|
7043
|
+
return mutationOptions
|
|
7044
|
+
}
|
|
7045
|
+
|
|
6732
7046
|
export const getArtifactBoardPreviewQueryKey = (options: Options<GetArtifactBoardPreviewData>) =>
|
|
6733
7047
|
createQueryKey("getArtifactBoardPreview", options)
|
|
6734
7048
|
|
|
@@ -6762,7 +7076,7 @@ export const getArtifactQueryQueryKey = (options: Options<GetArtifactQueryData>)
|
|
|
6762
7076
|
/**
|
|
6763
7077
|
* Run an artifact's query
|
|
6764
7078
|
*
|
|
6765
|
-
* Runs the version's queries/<name>.json as the caller, with their rights: a type they cannot view is refused with 403, and a marked property they are not cleared for is left out of each row. Rows are serialized as POST /api/objects/query returns them, beside the schema of what they hold as the caller may view it. Use "latest" for the newest version. A query the ontology no longer admits is refused with 409 query_invalid.
|
|
7079
|
+
* Runs the version's queries/<name>.json as the caller, with their rights: a type they cannot view is refused with 403, and a marked property they are not cleared for is left out of each row. Rows are serialized as POST /api/objects/query returns them, beside the schema of what they hold as the caller may view it. Use "latest" for the newest version. A query the ontology no longer admits is refused with 409 query_invalid. A designed document's "holder" is the object that holds it, of the type it names, with the links its fields read through: 404 holder_not_found when no one such object the caller reads holds it.
|
|
6766
7080
|
*/
|
|
6767
7081
|
export const getArtifactQueryOptions = (options: Options<GetArtifactQueryData>) =>
|
|
6768
7082
|
queryOptions<
|
package/src/generated/index.ts
CHANGED
|
@@ -31,6 +31,7 @@ export {
|
|
|
31
31
|
deleteArtifactStateValue,
|
|
32
32
|
disableAuthServiceAccount,
|
|
33
33
|
disconnectConnectorConnection,
|
|
34
|
+
editAgentThreadMessage,
|
|
34
35
|
exchangeDeviceAuthorization,
|
|
35
36
|
exchangeSharedAccess,
|
|
36
37
|
existsObjects,
|
|
@@ -63,6 +64,7 @@ export {
|
|
|
63
64
|
getArtifact,
|
|
64
65
|
getArtifactBoardPreview,
|
|
65
66
|
getArtifactFileContent,
|
|
67
|
+
getArtifactPdf,
|
|
66
68
|
getArtifactQuery,
|
|
67
69
|
getArtifactRestorePoint,
|
|
68
70
|
getArtifactRestorePointFileContent,
|
|
@@ -127,6 +129,7 @@ export {
|
|
|
127
129
|
listAgentMemoryRevisions,
|
|
128
130
|
listAgentThreadApprovals,
|
|
129
131
|
listAgentThreadChildren,
|
|
132
|
+
listAgentThreadInbox,
|
|
130
133
|
listAgentThreadMessages,
|
|
131
134
|
listAgentThreadRuns,
|
|
132
135
|
listAgentThreads,
|
|
@@ -143,6 +146,8 @@ export {
|
|
|
143
146
|
listAuthServiceAccountAccessTokens,
|
|
144
147
|
listAuthServiceAccounts,
|
|
145
148
|
listAuthSessions,
|
|
149
|
+
listConnectorAccounts,
|
|
150
|
+
listConnectorConnectionSyncRuns,
|
|
146
151
|
listConnectorConnections,
|
|
147
152
|
listConnectors,
|
|
148
153
|
listDatasetRows,
|
|
@@ -171,10 +176,12 @@ export {
|
|
|
171
176
|
listWorkflowInterventions,
|
|
172
177
|
listWorkflowRuns,
|
|
173
178
|
listWorkflows,
|
|
179
|
+
markAgentThreadRead,
|
|
174
180
|
moveAgentThreadToCloud,
|
|
175
181
|
moveAgentThreadToComputer,
|
|
176
182
|
type Options,
|
|
177
183
|
postAgentThreadMessage,
|
|
184
|
+
printArtifactPdf,
|
|
178
185
|
queryObjectLinks,
|
|
179
186
|
queryObjects,
|
|
180
187
|
reactivateAuthMember,
|
|
@@ -188,6 +195,7 @@ export {
|
|
|
188
195
|
requestSyncRun,
|
|
189
196
|
requestWorkflowRun,
|
|
190
197
|
resolveArtifactComment,
|
|
198
|
+
restoreAgentThreadSandbox,
|
|
191
199
|
restoreArtifact,
|
|
192
200
|
retryAgentRun,
|
|
193
201
|
revokeAuthAccessToken,
|
|
@@ -212,12 +220,14 @@ export {
|
|
|
212
220
|
suspendAuthMember,
|
|
213
221
|
transcribeAudio,
|
|
214
222
|
updateAgentPreferences,
|
|
223
|
+
updateAgentThreadInboxItem,
|
|
215
224
|
updateAiLimitPolicy,
|
|
216
225
|
updateArtifact,
|
|
217
226
|
updateAuthMemberGroups,
|
|
218
227
|
updateAuthProfile,
|
|
219
228
|
uploadFileContent,
|
|
220
229
|
uploadFileRaw,
|
|
230
|
+
withdrawAgentThreadInboxItem,
|
|
221
231
|
} from "./sdk.gen"
|
|
222
232
|
export type {
|
|
223
233
|
AbortFileUploadData,
|
|
@@ -381,6 +391,11 @@ export type {
|
|
|
381
391
|
DisconnectConnectorConnectionErrors,
|
|
382
392
|
DisconnectConnectorConnectionResponse,
|
|
383
393
|
DisconnectConnectorConnectionResponses,
|
|
394
|
+
EditAgentThreadMessageData,
|
|
395
|
+
EditAgentThreadMessageError,
|
|
396
|
+
EditAgentThreadMessageErrors,
|
|
397
|
+
EditAgentThreadMessageResponse,
|
|
398
|
+
EditAgentThreadMessageResponses,
|
|
384
399
|
ErrorResponse,
|
|
385
400
|
ExchangeDeviceAuthorizationData,
|
|
386
401
|
ExchangeDeviceAuthorizationResponse,
|
|
@@ -538,6 +553,11 @@ export type {
|
|
|
538
553
|
GetArtifactFileContentErrors,
|
|
539
554
|
GetArtifactFileContentResponse,
|
|
540
555
|
GetArtifactFileContentResponses,
|
|
556
|
+
GetArtifactPdfData,
|
|
557
|
+
GetArtifactPdfError,
|
|
558
|
+
GetArtifactPdfErrors,
|
|
559
|
+
GetArtifactPdfResponse,
|
|
560
|
+
GetArtifactPdfResponses,
|
|
541
561
|
GetArtifactQueryData,
|
|
542
562
|
GetArtifactQueryError,
|
|
543
563
|
GetArtifactQueryErrors,
|
|
@@ -844,6 +864,11 @@ export type {
|
|
|
844
864
|
ListAgentThreadChildrenErrors,
|
|
845
865
|
ListAgentThreadChildrenResponse,
|
|
846
866
|
ListAgentThreadChildrenResponses,
|
|
867
|
+
ListAgentThreadInboxData,
|
|
868
|
+
ListAgentThreadInboxError,
|
|
869
|
+
ListAgentThreadInboxErrors,
|
|
870
|
+
ListAgentThreadInboxResponse,
|
|
871
|
+
ListAgentThreadInboxResponses,
|
|
847
872
|
ListAgentThreadMessagesData,
|
|
848
873
|
ListAgentThreadMessagesError,
|
|
849
874
|
ListAgentThreadMessagesErrors,
|
|
@@ -924,6 +949,12 @@ export type {
|
|
|
924
949
|
ListAuthSessionsErrors,
|
|
925
950
|
ListAuthSessionsResponse,
|
|
926
951
|
ListAuthSessionsResponses,
|
|
952
|
+
ListConnectorAccountsData,
|
|
953
|
+
ListConnectorAccountsResponse,
|
|
954
|
+
ListConnectorAccountsResponses,
|
|
955
|
+
ListConnectorConnectionSyncRunsData,
|
|
956
|
+
ListConnectorConnectionSyncRunsResponse,
|
|
957
|
+
ListConnectorConnectionSyncRunsResponses,
|
|
927
958
|
ListConnectorConnectionsData,
|
|
928
959
|
ListConnectorConnectionsError,
|
|
929
960
|
ListConnectorConnectionsErrors,
|
|
@@ -1048,6 +1079,11 @@ export type {
|
|
|
1048
1079
|
ListWorkflowsData,
|
|
1049
1080
|
ListWorkflowsResponse,
|
|
1050
1081
|
ListWorkflowsResponses,
|
|
1082
|
+
MarkAgentThreadReadData,
|
|
1083
|
+
MarkAgentThreadReadError,
|
|
1084
|
+
MarkAgentThreadReadErrors,
|
|
1085
|
+
MarkAgentThreadReadResponse,
|
|
1086
|
+
MarkAgentThreadReadResponses,
|
|
1051
1087
|
MoveAgentThreadToCloudData,
|
|
1052
1088
|
MoveAgentThreadToCloudError,
|
|
1053
1089
|
MoveAgentThreadToCloudErrors,
|
|
@@ -1088,6 +1124,11 @@ export type {
|
|
|
1088
1124
|
PostAgentThreadMessageErrors,
|
|
1089
1125
|
PostAgentThreadMessageResponse,
|
|
1090
1126
|
PostAgentThreadMessageResponses,
|
|
1127
|
+
PrintArtifactPdfData,
|
|
1128
|
+
PrintArtifactPdfError,
|
|
1129
|
+
PrintArtifactPdfErrors,
|
|
1130
|
+
PrintArtifactPdfResponse,
|
|
1131
|
+
PrintArtifactPdfResponses,
|
|
1091
1132
|
QueryObjectLinksData,
|
|
1092
1133
|
QueryObjectLinksError,
|
|
1093
1134
|
QueryObjectLinksErrors,
|
|
@@ -1152,6 +1193,11 @@ export type {
|
|
|
1152
1193
|
ResolveArtifactCommentErrors,
|
|
1153
1194
|
ResolveArtifactCommentResponse,
|
|
1154
1195
|
ResolveArtifactCommentResponses,
|
|
1196
|
+
RestoreAgentThreadSandboxData,
|
|
1197
|
+
RestoreAgentThreadSandboxError,
|
|
1198
|
+
RestoreAgentThreadSandboxErrors,
|
|
1199
|
+
RestoreAgentThreadSandboxResponse,
|
|
1200
|
+
RestoreAgentThreadSandboxResponses,
|
|
1155
1201
|
RestoreArtifactData,
|
|
1156
1202
|
RestoreArtifactError,
|
|
1157
1203
|
RestoreArtifactErrors,
|
|
@@ -1272,6 +1318,11 @@ export type {
|
|
|
1272
1318
|
UpdateAgentPreferencesErrors,
|
|
1273
1319
|
UpdateAgentPreferencesResponse,
|
|
1274
1320
|
UpdateAgentPreferencesResponses,
|
|
1321
|
+
UpdateAgentThreadInboxItemData,
|
|
1322
|
+
UpdateAgentThreadInboxItemError,
|
|
1323
|
+
UpdateAgentThreadInboxItemErrors,
|
|
1324
|
+
UpdateAgentThreadInboxItemResponse,
|
|
1325
|
+
UpdateAgentThreadInboxItemResponses,
|
|
1275
1326
|
UpdateAiLimitPolicyData,
|
|
1276
1327
|
UpdateAiLimitPolicyError,
|
|
1277
1328
|
UpdateAiLimitPolicyErrors,
|
|
@@ -1303,4 +1354,8 @@ export type {
|
|
|
1303
1354
|
UploadFileRawResponse,
|
|
1304
1355
|
UploadFileRawResponses,
|
|
1305
1356
|
UserProfile,
|
|
1357
|
+
WithdrawAgentThreadInboxItemData,
|
|
1358
|
+
WithdrawAgentThreadInboxItemError,
|
|
1359
|
+
WithdrawAgentThreadInboxItemErrors,
|
|
1360
|
+
WithdrawAgentThreadInboxItemResponses,
|
|
1306
1361
|
} from "./types.gen"
|