@sixb/client 0.2.3 → 0.2.5

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 (36) hide show
  1. package/dist/agent-streams.d.ts +1 -1
  2. package/dist/agent-streams.d.ts.map +1 -1
  3. package/dist/browser.js +1 -1
  4. package/dist/{chunk-zerhr00d.js → chunk-60fdvjxa.js} +61 -2
  5. package/dist/chunk-60fdvjxa.js.map +10 -0
  6. package/dist/{chunk-seeyb9k9.js → chunk-pn4b10k4.js} +1 -1
  7. package/dist/{chunk-bgpzb1fn.js → chunk-tm588tr7.js} +1 -1
  8. package/dist/{chunk-90q7wa43.js → chunk-zta9jf24.js} +1 -1
  9. package/dist/{chunk-90q7wa43.js.map → chunk-zta9jf24.js.map} +2 -2
  10. package/dist/connectors/queries.d.ts.map +1 -1
  11. package/dist/generated/@tanstack/react-query.gen.d.ts +1620 -392
  12. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  13. package/dist/generated/index.d.ts +2 -2
  14. package/dist/generated/index.d.ts.map +1 -1
  15. package/dist/generated/sdk.gen.d.ts +32 -4
  16. package/dist/generated/sdk.gen.d.ts.map +1 -1
  17. package/dist/generated/types.gen.d.ts +1589 -220
  18. package/dist/generated/types.gen.d.ts.map +1 -1
  19. package/dist/hooks.js +97 -5
  20. package/dist/hooks.js.map +3 -3
  21. package/dist/index.js +17 -5
  22. package/dist/index.js.map +1 -1
  23. package/dist/logs.js +2 -2
  24. package/dist/models.js +15 -3
  25. package/dist/models.js.map +1 -1
  26. package/dist/query.js +2 -2
  27. package/dist/users-hooks.d.ts.map +1 -1
  28. package/package.json +2 -2
  29. package/src/agent-streams.ts +1 -0
  30. package/src/generated/@tanstack/react-query.gen.ts +188 -3
  31. package/src/generated/index.ts +35 -0
  32. package/src/generated/sdk.gen.ts +142 -3
  33. package/src/generated/types.gen.ts +2167 -272
  34. package/dist/chunk-zerhr00d.js.map +0 -10
  35. /package/dist/{chunk-seeyb9k9.js.map → chunk-pn4b10k4.js.map} +0 -0
  36. /package/dist/{chunk-bgpzb1fn.js.map → chunk-tm588tr7.js.map} +0 -0
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ import {
30
30
  withSharedAccess2,
31
31
  SixbFileUploadError2,
32
32
  uploadFile2
33
- } from "./chunk-90q7wa43.js";
33
+ } from "./chunk-zta9jf24.js";
34
34
  import {
35
35
  SIXB_CSRF_HEADER_NAME2,
36
36
  SIXB_CSRF_TOKEN_RESPONSE_HEADER_NAME2,
@@ -56,7 +56,7 @@ import {
56
56
  logs2,
57
57
  isStoredLogLine2,
58
58
  isStoredLogLine3
59
- } from "./chunk-seeyb9k9.js";
59
+ } from "./chunk-pn4b10k4.js";
60
60
  import"./chunk-ktqfenfd.js";
61
61
  import"./chunk-0ka9ykez.js";
62
62
  import {
@@ -194,10 +194,14 @@ import {
194
194
  removeAgentThreadParticipant2,
195
195
  forkAgentThread2,
196
196
  recreateAgentThreadSandbox2,
197
+ restoreAgentThreadSandbox2,
197
198
  listAgentThreadMessages2,
198
199
  postAgentThreadMessage2,
199
200
  getAgentMessageFileContent2,
200
201
  headAgentMessageFileContent2,
202
+ listAgentThreadInbox2,
203
+ withdrawAgentThreadInboxItem2,
204
+ updateAgentThreadInboxItem2,
201
205
  cancelAgentRun2,
202
206
  retryAgentRun2,
203
207
  getAgentThreadContext2,
@@ -250,6 +254,8 @@ import {
250
254
  restoreArtifact2,
251
255
  createArtifactFrame2,
252
256
  getArtifactVersion2,
257
+ getArtifactPdf2,
258
+ printArtifactPdf2,
253
259
  getArtifactBoardPreview2,
254
260
  getArtifactQuery2,
255
261
  getArtifactFileContent2,
@@ -276,7 +282,7 @@ import {
276
282
  listProjectionRuns2,
277
283
  getProjectionRun2,
278
284
  listWebhookRuns2
279
- } from "./chunk-zerhr00d.js";
285
+ } from "./chunk-60fdvjxa.js";
280
286
  export {
281
287
  ActionRunFailedError2 as ActionRunFailedError,
282
288
  SIXB_CSRF_HEADER_NAME2 as SIXB_CSRF_HEADER_NAME,
@@ -363,6 +369,7 @@ export {
363
369
  getArtifact2 as getArtifact,
364
370
  getArtifactBoardPreview2 as getArtifactBoardPreview,
365
371
  getArtifactFileContent2 as getArtifactFileContent,
372
+ getArtifactPdf2 as getArtifactPdf,
366
373
  getArtifactQuery2 as getArtifactQuery,
367
374
  getArtifactRestorePoint2 as getArtifactRestorePoint,
368
375
  getArtifactRestorePointFileContent2 as getArtifactRestorePointFileContent,
@@ -432,6 +439,7 @@ export {
432
439
  listAgentMemoryRevisions2 as listAgentMemoryRevisions,
433
440
  listAgentThreadApprovals2 as listAgentThreadApprovals,
434
441
  listAgentThreadChildren2 as listAgentThreadChildren,
442
+ listAgentThreadInbox2 as listAgentThreadInbox,
435
443
  listAgentThreadMessages2 as listAgentThreadMessages,
436
444
  listAgentThreadRuns2 as listAgentThreadRuns,
437
445
  listAgentThreads2 as listAgentThreads,
@@ -487,6 +495,7 @@ export {
487
495
  parseEventStreamMessage2 as parseEventStreamMessage,
488
496
  parseLogStreamMessage2 as parseLogStreamMessage,
489
497
  postAgentThreadMessage2 as postAgentThreadMessage,
498
+ printArtifactPdf2 as printArtifactPdf,
490
499
  queryObjectLinks2 as queryObjectLinks,
491
500
  queryObjects2 as queryObjects,
492
501
  reactivateAuthMember2 as reactivateAuthMember,
@@ -500,6 +509,7 @@ export {
500
509
  requestSyncRun2 as requestSyncRun,
501
510
  requestWorkflowRun2 as requestWorkflowRun,
502
511
  resolveArtifactComment2 as resolveArtifactComment,
512
+ restoreAgentThreadSandbox2 as restoreAgentThreadSandbox,
503
513
  restoreArtifact2 as restoreArtifact,
504
514
  retryAgentRun2 as retryAgentRun,
505
515
  revokeAuthAccessToken2 as revokeAuthAccessToken,
@@ -532,6 +542,7 @@ export {
532
542
  toTelemetryHistoryWithRange2 as toTelemetryHistoryWithRange,
533
543
  transcribeAudio2 as transcribeAudio,
534
544
  updateAgentPreferences2 as updateAgentPreferences,
545
+ updateAgentThreadInboxItem2 as updateAgentThreadInboxItem,
535
546
  updateAiLimitPolicy2 as updateAiLimitPolicy,
536
547
  updateArtifact2 as updateArtifact,
537
548
  updateAuthMemberGroups2 as updateAuthMemberGroups,
@@ -539,7 +550,8 @@ export {
539
550
  uploadFile2 as uploadFile,
540
551
  uploadFileContent2 as uploadFileContent,
541
552
  uploadFileRaw2 as uploadFileRaw,
542
- withSharedAccess2 as withSharedAccess
553
+ withSharedAccess2 as withSharedAccess,
554
+ withdrawAgentThreadInboxItem2 as withdrawAgentThreadInboxItem
543
555
  };
544
556
 
545
- //# debugId=C1F0015E3B78EB0364756E2164756E21
557
+ //# debugId=762F86D5C597DFA964756E2164756E21
package/dist/index.js.map CHANGED
@@ -4,6 +4,6 @@
4
4
  "sourcesContent": [
5
5
  ],
6
6
  "mappings": "",
7
- "debugId": "C1F0015E3B78EB0364756E2164756E21",
7
+ "debugId": "762F86D5C597DFA964756E2164756E21",
8
8
  "names": []
9
9
  }
package/dist/logs.js CHANGED
@@ -6,11 +6,11 @@ import {
6
6
  logs2,
7
7
  isStoredLogLine2,
8
8
  isStoredLogLine3
9
- } from "./chunk-seeyb9k9.js";
9
+ } from "./chunk-pn4b10k4.js";
10
10
  import"./chunk-ktqfenfd.js";
11
11
  import"./chunk-0ka9ykez.js";
12
12
  import"./chunk-15ynvne0.js";
13
- import"./chunk-zerhr00d.js";
13
+ import"./chunk-60fdvjxa.js";
14
14
  import"./chunk-hj4h6hw6.js";
15
15
  export {
16
16
  createLogSocket2 as createLogSocket,
package/dist/models.js CHANGED
@@ -143,10 +143,14 @@ import {
143
143
  removeAgentThreadParticipant2,
144
144
  forkAgentThread2,
145
145
  recreateAgentThreadSandbox2,
146
+ restoreAgentThreadSandbox2,
146
147
  listAgentThreadMessages2,
147
148
  postAgentThreadMessage2,
148
149
  getAgentMessageFileContent2,
149
150
  headAgentMessageFileContent2,
151
+ listAgentThreadInbox2,
152
+ withdrawAgentThreadInboxItem2,
153
+ updateAgentThreadInboxItem2,
150
154
  cancelAgentRun2,
151
155
  retryAgentRun2,
152
156
  getAgentThreadContext2,
@@ -199,6 +203,8 @@ import {
199
203
  restoreArtifact2,
200
204
  createArtifactFrame2,
201
205
  getArtifactVersion2,
206
+ getArtifactPdf2,
207
+ printArtifactPdf2,
202
208
  getArtifactBoardPreview2,
203
209
  getArtifactQuery2,
204
210
  getArtifactFileContent2,
@@ -225,7 +231,7 @@ import {
225
231
  listProjectionRuns2,
226
232
  getProjectionRun2,
227
233
  listWebhookRuns2
228
- } from "./chunk-zerhr00d.js";
234
+ } from "./chunk-60fdvjxa.js";
229
235
  import {
230
236
  client2
231
237
  } from "./chunk-hj4h6hw6.js";
@@ -295,6 +301,7 @@ export {
295
301
  getArtifact2 as getArtifact,
296
302
  getArtifactBoardPreview2 as getArtifactBoardPreview,
297
303
  getArtifactFileContent2 as getArtifactFileContent,
304
+ getArtifactPdf2 as getArtifactPdf,
298
305
  getArtifactQuery2 as getArtifactQuery,
299
306
  getArtifactRestorePoint2 as getArtifactRestorePoint,
300
307
  getArtifactRestorePointFileContent2 as getArtifactRestorePointFileContent,
@@ -359,6 +366,7 @@ export {
359
366
  listAgentMemoryRevisions2 as listAgentMemoryRevisions,
360
367
  listAgentThreadApprovals2 as listAgentThreadApprovals,
361
368
  listAgentThreadChildren2 as listAgentThreadChildren,
369
+ listAgentThreadInbox2 as listAgentThreadInbox,
362
370
  listAgentThreadMessages2 as listAgentThreadMessages,
363
371
  listAgentThreadRuns2 as listAgentThreadRuns,
364
372
  listAgentThreads2 as listAgentThreads,
@@ -406,6 +414,7 @@ export {
406
414
  moveAgentThreadToCloud2 as moveAgentThreadToCloud,
407
415
  moveAgentThreadToComputer2 as moveAgentThreadToComputer,
408
416
  postAgentThreadMessage2 as postAgentThreadMessage,
417
+ printArtifactPdf2 as printArtifactPdf,
409
418
  queryObjectLinks2 as queryObjectLinks,
410
419
  queryObjects2 as queryObjects,
411
420
  reactivateAuthMember2 as reactivateAuthMember,
@@ -419,6 +428,7 @@ export {
419
428
  requestSyncRun2 as requestSyncRun,
420
429
  requestWorkflowRun2 as requestWorkflowRun,
421
430
  resolveArtifactComment2 as resolveArtifactComment,
431
+ restoreAgentThreadSandbox2 as restoreAgentThreadSandbox,
422
432
  restoreArtifact2 as restoreArtifact,
423
433
  retryAgentRun2 as retryAgentRun,
424
434
  revokeAuthAccessToken2 as revokeAuthAccessToken,
@@ -447,12 +457,14 @@ export {
447
457
  toTelemetryHistoryWithRange2 as toTelemetryHistoryWithRange,
448
458
  transcribeAudio2 as transcribeAudio,
449
459
  updateAgentPreferences2 as updateAgentPreferences,
460
+ updateAgentThreadInboxItem2 as updateAgentThreadInboxItem,
450
461
  updateAiLimitPolicy2 as updateAiLimitPolicy,
451
462
  updateArtifact2 as updateArtifact,
452
463
  updateAuthMemberGroups2 as updateAuthMemberGroups,
453
464
  updateAuthProfile2 as updateAuthProfile,
454
465
  uploadFileContent2 as uploadFileContent,
455
- uploadFileRaw2 as uploadFileRaw
466
+ uploadFileRaw2 as uploadFileRaw,
467
+ withdrawAgentThreadInboxItem2 as withdrawAgentThreadInboxItem
456
468
  };
457
469
 
458
- //# debugId=926D6693DF6B8A9864756E2164756E21
470
+ //# debugId=587BF39BCB5F732664756E2164756E21
@@ -4,6 +4,6 @@
4
4
  "sourcesContent": [
5
5
  ],
6
6
  "mappings": "",
7
- "debugId": "926D6693DF6B8A9864756E2164756E21",
7
+ "debugId": "587BF39BCB5F732664756E2164756E21",
8
8
  "names": []
9
9
  }
package/dist/query.js CHANGED
@@ -4,10 +4,10 @@ import {
4
4
  objects2,
5
5
  createHttpQueryExecutor2,
6
6
  currentUser2
7
- } from "./chunk-bgpzb1fn.js";
7
+ } from "./chunk-tm588tr7.js";
8
8
  import"./chunk-br10prhs.js";
9
9
  import"./chunk-15ynvne0.js";
10
- import"./chunk-zerhr00d.js";
10
+ import"./chunk-60fdvjxa.js";
11
11
  import"./chunk-hj4h6hw6.js";
12
12
  export {
13
13
  SixbQueryError2 as SixbQueryError,
@@ -1 +1 @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;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,GAAE,cAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BnF;AA0BD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,OAAO,GAAE,eAAoB,GAAG,cAAc,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAIhG;AAED;;;GAGG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,eAAe,EACrB,OAAO,GAAE,cAAmB,GAC3B,cAAc,CAAC,eAAe,GAAG,IAAI,EAAE,KAAK,CAAC,CAI/C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sixb/client",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Type-safe SDK for Sixb API with TanStack Query hooks",
5
5
  "keywords": [
6
6
  "sixb",
@@ -73,7 +73,7 @@
73
73
  "prepack": "bun run build"
74
74
  },
75
75
  "dependencies": {
76
- "@sixb/core": "^0.2.3"
76
+ "@sixb/core": "^0.2.5"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "@tanstack/react-query": "^5.0.0",
@@ -23,6 +23,7 @@ export type {
23
23
  AgentActivityEvent,
24
24
  AgentApprovalActivityEvent,
25
25
  AgentComputerActivityEvent,
26
+ AgentInboxReadMessage,
26
27
  AgentRunActivityEvent,
27
28
  AgentRunFailure,
28
29
  AgentRunStreamEvent,
@@ -72,6 +72,7 @@ import {
72
72
  getArtifact,
73
73
  getArtifactBoardPreview,
74
74
  getArtifactFileContent,
75
+ getArtifactPdf,
75
76
  getArtifactQuery,
76
77
  getArtifactRestorePoint,
77
78
  getArtifactRestorePointFileContent,
@@ -128,6 +129,7 @@ import {
128
129
  listAgentMemoryRevisions,
129
130
  listAgentThreadApprovals,
130
131
  listAgentThreadChildren,
132
+ listAgentThreadInbox,
131
133
  listAgentThreadMessages,
132
134
  listAgentThreadRuns,
133
135
  listAgentThreads,
@@ -176,6 +178,7 @@ import {
176
178
  moveAgentThreadToComputer,
177
179
  type Options,
178
180
  postAgentThreadMessage,
181
+ printArtifactPdf,
179
182
  queryObjectLinks,
180
183
  queryObjects,
181
184
  reactivateAuthMember,
@@ -189,6 +192,7 @@ import {
189
192
  requestSyncRun,
190
193
  requestWorkflowRun,
191
194
  resolveArtifactComment,
195
+ restoreAgentThreadSandbox,
192
196
  restoreArtifact,
193
197
  retryAgentRun,
194
198
  revokeAuthAccessToken,
@@ -213,12 +217,14 @@ import {
213
217
  suspendAuthMember,
214
218
  transcribeAudio,
215
219
  updateAgentPreferences,
220
+ updateAgentThreadInboxItem,
216
221
  updateAiLimitPolicy,
217
222
  updateArtifact,
218
223
  updateAuthMemberGroups,
219
224
  updateAuthProfile,
220
225
  uploadFileContent,
221
226
  uploadFileRaw,
227
+ withdrawAgentThreadInboxItem,
222
228
  } from "../sdk.gen"
223
229
  import type {
224
230
  AbortFileUploadData,
@@ -405,6 +411,9 @@ import type {
405
411
  GetArtifactFileContentData,
406
412
  GetArtifactFileContentError,
407
413
  GetArtifactFileContentResponse,
414
+ GetArtifactPdfData,
415
+ GetArtifactPdfError,
416
+ GetArtifactPdfResponse,
408
417
  GetArtifactQueryData,
409
418
  GetArtifactQueryError,
410
419
  GetArtifactQueryResponse,
@@ -570,6 +579,9 @@ import type {
570
579
  ListAgentThreadChildrenData,
571
580
  ListAgentThreadChildrenError,
572
581
  ListAgentThreadChildrenResponse,
582
+ ListAgentThreadInboxData,
583
+ ListAgentThreadInboxError,
584
+ ListAgentThreadInboxResponse,
573
585
  ListAgentThreadMessagesData,
574
586
  ListAgentThreadMessagesError,
575
587
  ListAgentThreadMessagesResponse,
@@ -703,6 +715,9 @@ import type {
703
715
  PostAgentThreadMessageData,
704
716
  PostAgentThreadMessageError,
705
717
  PostAgentThreadMessageResponse,
718
+ PrintArtifactPdfData,
719
+ PrintArtifactPdfError,
720
+ PrintArtifactPdfResponse,
706
721
  QueryObjectLinksData,
707
722
  QueryObjectLinksError,
708
723
  QueryObjectLinksResponse,
@@ -740,6 +755,9 @@ import type {
740
755
  ResolveArtifactCommentData,
741
756
  ResolveArtifactCommentError,
742
757
  ResolveArtifactCommentResponse,
758
+ RestoreAgentThreadSandboxData,
759
+ RestoreAgentThreadSandboxError,
760
+ RestoreAgentThreadSandboxResponse,
743
761
  RestoreArtifactData,
744
762
  RestoreArtifactError,
745
763
  RestoreArtifactResponse,
@@ -812,6 +830,9 @@ import type {
812
830
  UpdateAgentPreferencesData,
813
831
  UpdateAgentPreferencesError,
814
832
  UpdateAgentPreferencesResponse,
833
+ UpdateAgentThreadInboxItemData,
834
+ UpdateAgentThreadInboxItemError,
835
+ UpdateAgentThreadInboxItemResponse,
815
836
  UpdateAiLimitPolicyData,
816
837
  UpdateAiLimitPolicyError,
817
838
  UpdateAiLimitPolicyResponse,
@@ -830,6 +851,8 @@ import type {
830
851
  UploadFileRawData,
831
852
  UploadFileRawError,
832
853
  UploadFileRawResponse,
854
+ WithdrawAgentThreadInboxItemData,
855
+ WithdrawAgentThreadInboxItemError,
833
856
  } from "../types.gen"
834
857
 
835
858
  /**
@@ -4842,6 +4865,33 @@ export const recreateAgentThreadSandboxMutation = (
4842
4865
  return mutationOptions
4843
4866
  }
4844
4867
 
4868
+ /**
4869
+ * Explicitly go on in the workspace a failed save left, with its files as they were
4870
+ */
4871
+ export const restoreAgentThreadSandboxMutation = (
4872
+ options?: Partial<Options<RestoreAgentThreadSandboxData>>
4873
+ ): UseMutationOptions<
4874
+ RestoreAgentThreadSandboxResponse,
4875
+ RestoreAgentThreadSandboxError,
4876
+ Options<RestoreAgentThreadSandboxData>
4877
+ > => {
4878
+ const mutationOptions: UseMutationOptions<
4879
+ RestoreAgentThreadSandboxResponse,
4880
+ RestoreAgentThreadSandboxError,
4881
+ Options<RestoreAgentThreadSandboxData>
4882
+ > = {
4883
+ mutationFn: async (fnOptions) => {
4884
+ const { data } = await restoreAgentThreadSandbox({
4885
+ ...options,
4886
+ ...fnOptions,
4887
+ throwOnError: true,
4888
+ })
4889
+ return data
4890
+ },
4891
+ }
4892
+ return mutationOptions
4893
+ }
4894
+
4845
4895
  export const listAgentThreadMessagesQueryKey = (options: Options<ListAgentThreadMessagesData>) =>
4846
4896
  createQueryKey("listAgentThreadMessages", options)
4847
4897
 
@@ -4969,6 +5019,85 @@ export const getAgentMessageFileContentOptions = (
4969
5019
  queryKey: getAgentMessageFileContentQueryKey(options),
4970
5020
  })
4971
5021
 
5022
+ export const listAgentThreadInboxQueryKey = (options: Options<ListAgentThreadInboxData>) =>
5023
+ createQueryKey("listAgentThreadInbox", options)
5024
+
5025
+ /**
5026
+ * List agent thread inbox messages
5027
+ */
5028
+ export const listAgentThreadInboxOptions = (options: Options<ListAgentThreadInboxData>) =>
5029
+ queryOptions<
5030
+ ListAgentThreadInboxResponse,
5031
+ ListAgentThreadInboxError,
5032
+ ListAgentThreadInboxResponse,
5033
+ ReturnType<typeof listAgentThreadInboxQueryKey>
5034
+ >({
5035
+ queryFn: async ({ queryKey, signal }) => {
5036
+ const { data } = await listAgentThreadInbox({
5037
+ ...options,
5038
+ ...queryKey[0],
5039
+ signal,
5040
+ throwOnError: true,
5041
+ })
5042
+ return data
5043
+ },
5044
+ queryKey: listAgentThreadInboxQueryKey(options),
5045
+ })
5046
+
5047
+ /**
5048
+ * Withdraw a waiting agent thread message
5049
+ */
5050
+ export const withdrawAgentThreadInboxItemMutation = (
5051
+ options?: Partial<Options<WithdrawAgentThreadInboxItemData>>
5052
+ ): UseMutationOptions<
5053
+ unknown,
5054
+ WithdrawAgentThreadInboxItemError,
5055
+ Options<WithdrawAgentThreadInboxItemData>
5056
+ > => {
5057
+ const mutationOptions: UseMutationOptions<
5058
+ unknown,
5059
+ WithdrawAgentThreadInboxItemError,
5060
+ Options<WithdrawAgentThreadInboxItemData>
5061
+ > = {
5062
+ mutationFn: async (fnOptions) => {
5063
+ const { data } = await withdrawAgentThreadInboxItem({
5064
+ ...options,
5065
+ ...fnOptions,
5066
+ throwOnError: true,
5067
+ })
5068
+ return data
5069
+ },
5070
+ }
5071
+ return mutationOptions
5072
+ }
5073
+
5074
+ /**
5075
+ * Update a waiting agent thread message
5076
+ */
5077
+ export const updateAgentThreadInboxItemMutation = (
5078
+ options?: Partial<Options<UpdateAgentThreadInboxItemData>>
5079
+ ): UseMutationOptions<
5080
+ UpdateAgentThreadInboxItemResponse,
5081
+ UpdateAgentThreadInboxItemError,
5082
+ Options<UpdateAgentThreadInboxItemData>
5083
+ > => {
5084
+ const mutationOptions: UseMutationOptions<
5085
+ UpdateAgentThreadInboxItemResponse,
5086
+ UpdateAgentThreadInboxItemError,
5087
+ Options<UpdateAgentThreadInboxItemData>
5088
+ > = {
5089
+ mutationFn: async (fnOptions) => {
5090
+ const { data } = await updateAgentThreadInboxItem({
5091
+ ...options,
5092
+ ...fnOptions,
5093
+ throwOnError: true,
5094
+ })
5095
+ return data
5096
+ },
5097
+ }
5098
+ return mutationOptions
5099
+ }
5100
+
4972
5101
  /**
4973
5102
  * Cancel an agent thread's active run
4974
5103
  *
@@ -6453,7 +6582,7 @@ export const listArtifactCommentsQueryKey = (options: Options<ListArtifactCommen
6453
6582
  /**
6454
6583
  * List an artifact's comments
6455
6584
  *
6456
- * Every comment and reply, oldest first, resolved ones included. Whoever reads the artifact reads them.
6585
+ * 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
6586
  */
6458
6587
  export const listArtifactCommentsOptions = (options: Options<ListArtifactCommentsData>) =>
6459
6588
  queryOptions<
@@ -6477,7 +6606,7 @@ export const listArtifactCommentsOptions = (options: Options<ListArtifactComment
6477
6606
  /**
6478
6607
  * Comment on an artifact
6479
6608
  *
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.
6609
+ * 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
6610
  */
6482
6611
  export const addArtifactCommentMutation = (
6483
6612
  options?: Partial<Options<AddArtifactCommentData>>
@@ -6729,6 +6858,62 @@ export const getArtifactVersionOptions = (options: Options<GetArtifactVersionDat
6729
6858
  queryKey: getArtifactVersionQueryKey(options),
6730
6859
  })
6731
6860
 
6861
+ export const getArtifactPdfQueryKey = (options: Options<GetArtifactPdfData>) =>
6862
+ createQueryKey("getArtifactPdf", options)
6863
+
6864
+ /**
6865
+ * Get a designed document's PDF
6866
+ *
6867
+ * 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.
6868
+ */
6869
+ export const getArtifactPdfOptions = (options: Options<GetArtifactPdfData>) =>
6870
+ queryOptions<
6871
+ GetArtifactPdfResponse,
6872
+ GetArtifactPdfError,
6873
+ GetArtifactPdfResponse,
6874
+ ReturnType<typeof getArtifactPdfQueryKey>
6875
+ >({
6876
+ queryFn: async ({ queryKey, signal }) => {
6877
+ const { data } = await getArtifactPdf({
6878
+ ...options,
6879
+ ...queryKey[0],
6880
+ signal,
6881
+ throwOnError: true,
6882
+ })
6883
+ return data
6884
+ },
6885
+ queryKey: getArtifactPdfQueryKey(options),
6886
+ })
6887
+
6888
+ /**
6889
+ * Print a designed document to PDF
6890
+ *
6891
+ * 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.
6892
+ */
6893
+ export const printArtifactPdfMutation = (
6894
+ options?: Partial<Options<PrintArtifactPdfData>>
6895
+ ): UseMutationOptions<
6896
+ PrintArtifactPdfResponse,
6897
+ PrintArtifactPdfError,
6898
+ Options<PrintArtifactPdfData>
6899
+ > => {
6900
+ const mutationOptions: UseMutationOptions<
6901
+ PrintArtifactPdfResponse,
6902
+ PrintArtifactPdfError,
6903
+ Options<PrintArtifactPdfData>
6904
+ > = {
6905
+ mutationFn: async (fnOptions) => {
6906
+ const { data } = await printArtifactPdf({
6907
+ ...options,
6908
+ ...fnOptions,
6909
+ throwOnError: true,
6910
+ })
6911
+ return data
6912
+ },
6913
+ }
6914
+ return mutationOptions
6915
+ }
6916
+
6732
6917
  export const getArtifactBoardPreviewQueryKey = (options: Options<GetArtifactBoardPreviewData>) =>
6733
6918
  createQueryKey("getArtifactBoardPreview", options)
6734
6919
 
@@ -6762,7 +6947,7 @@ export const getArtifactQueryQueryKey = (options: Options<GetArtifactQueryData>)
6762
6947
  /**
6763
6948
  * Run an artifact's query
6764
6949
  *
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.
6950
+ * 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
6951
  */
6767
6952
  export const getArtifactQueryOptions = (options: Options<GetArtifactQueryData>) =>
6768
6953
  queryOptions<
@@ -63,6 +63,7 @@ export {
63
63
  getArtifact,
64
64
  getArtifactBoardPreview,
65
65
  getArtifactFileContent,
66
+ getArtifactPdf,
66
67
  getArtifactQuery,
67
68
  getArtifactRestorePoint,
68
69
  getArtifactRestorePointFileContent,
@@ -127,6 +128,7 @@ export {
127
128
  listAgentMemoryRevisions,
128
129
  listAgentThreadApprovals,
129
130
  listAgentThreadChildren,
131
+ listAgentThreadInbox,
130
132
  listAgentThreadMessages,
131
133
  listAgentThreadRuns,
132
134
  listAgentThreads,
@@ -175,6 +177,7 @@ export {
175
177
  moveAgentThreadToComputer,
176
178
  type Options,
177
179
  postAgentThreadMessage,
180
+ printArtifactPdf,
178
181
  queryObjectLinks,
179
182
  queryObjects,
180
183
  reactivateAuthMember,
@@ -188,6 +191,7 @@ export {
188
191
  requestSyncRun,
189
192
  requestWorkflowRun,
190
193
  resolveArtifactComment,
194
+ restoreAgentThreadSandbox,
191
195
  restoreArtifact,
192
196
  retryAgentRun,
193
197
  revokeAuthAccessToken,
@@ -212,12 +216,14 @@ export {
212
216
  suspendAuthMember,
213
217
  transcribeAudio,
214
218
  updateAgentPreferences,
219
+ updateAgentThreadInboxItem,
215
220
  updateAiLimitPolicy,
216
221
  updateArtifact,
217
222
  updateAuthMemberGroups,
218
223
  updateAuthProfile,
219
224
  uploadFileContent,
220
225
  uploadFileRaw,
226
+ withdrawAgentThreadInboxItem,
221
227
  } from "./sdk.gen"
222
228
  export type {
223
229
  AbortFileUploadData,
@@ -538,6 +544,11 @@ export type {
538
544
  GetArtifactFileContentErrors,
539
545
  GetArtifactFileContentResponse,
540
546
  GetArtifactFileContentResponses,
547
+ GetArtifactPdfData,
548
+ GetArtifactPdfError,
549
+ GetArtifactPdfErrors,
550
+ GetArtifactPdfResponse,
551
+ GetArtifactPdfResponses,
541
552
  GetArtifactQueryData,
542
553
  GetArtifactQueryError,
543
554
  GetArtifactQueryErrors,
@@ -844,6 +855,11 @@ export type {
844
855
  ListAgentThreadChildrenErrors,
845
856
  ListAgentThreadChildrenResponse,
846
857
  ListAgentThreadChildrenResponses,
858
+ ListAgentThreadInboxData,
859
+ ListAgentThreadInboxError,
860
+ ListAgentThreadInboxErrors,
861
+ ListAgentThreadInboxResponse,
862
+ ListAgentThreadInboxResponses,
847
863
  ListAgentThreadMessagesData,
848
864
  ListAgentThreadMessagesError,
849
865
  ListAgentThreadMessagesErrors,
@@ -1088,6 +1104,11 @@ export type {
1088
1104
  PostAgentThreadMessageErrors,
1089
1105
  PostAgentThreadMessageResponse,
1090
1106
  PostAgentThreadMessageResponses,
1107
+ PrintArtifactPdfData,
1108
+ PrintArtifactPdfError,
1109
+ PrintArtifactPdfErrors,
1110
+ PrintArtifactPdfResponse,
1111
+ PrintArtifactPdfResponses,
1091
1112
  QueryObjectLinksData,
1092
1113
  QueryObjectLinksError,
1093
1114
  QueryObjectLinksErrors,
@@ -1152,6 +1173,11 @@ export type {
1152
1173
  ResolveArtifactCommentErrors,
1153
1174
  ResolveArtifactCommentResponse,
1154
1175
  ResolveArtifactCommentResponses,
1176
+ RestoreAgentThreadSandboxData,
1177
+ RestoreAgentThreadSandboxError,
1178
+ RestoreAgentThreadSandboxErrors,
1179
+ RestoreAgentThreadSandboxResponse,
1180
+ RestoreAgentThreadSandboxResponses,
1155
1181
  RestoreArtifactData,
1156
1182
  RestoreArtifactError,
1157
1183
  RestoreArtifactErrors,
@@ -1272,6 +1298,11 @@ export type {
1272
1298
  UpdateAgentPreferencesErrors,
1273
1299
  UpdateAgentPreferencesResponse,
1274
1300
  UpdateAgentPreferencesResponses,
1301
+ UpdateAgentThreadInboxItemData,
1302
+ UpdateAgentThreadInboxItemError,
1303
+ UpdateAgentThreadInboxItemErrors,
1304
+ UpdateAgentThreadInboxItemResponse,
1305
+ UpdateAgentThreadInboxItemResponses,
1275
1306
  UpdateAiLimitPolicyData,
1276
1307
  UpdateAiLimitPolicyError,
1277
1308
  UpdateAiLimitPolicyErrors,
@@ -1303,4 +1334,8 @@ export type {
1303
1334
  UploadFileRawResponse,
1304
1335
  UploadFileRawResponses,
1305
1336
  UserProfile,
1337
+ WithdrawAgentThreadInboxItemData,
1338
+ WithdrawAgentThreadInboxItemError,
1339
+ WithdrawAgentThreadInboxItemErrors,
1340
+ WithdrawAgentThreadInboxItemResponses,
1306
1341
  } from "./types.gen"