@sixb/client 0.1.22 → 0.1.24

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 (44) hide show
  1. package/dist/browser.js +2 -2
  2. package/dist/browser.js.map +1 -1
  3. package/dist/{chunk-59f4fbnk.js → chunk-14c2tg81.js} +58 -13
  4. package/dist/chunk-14c2tg81.js.map +19 -0
  5. package/dist/{chunk-263m4e9p.js → chunk-1zthvcby.js} +11 -10
  6. package/dist/{chunk-263m4e9p.js.map → chunk-1zthvcby.js.map} +4 -4
  7. package/dist/{chunk-1v736aje.js → chunk-2ezmcce2.js} +1 -1
  8. package/dist/{chunk-tttfv49k.js → chunk-4xavy5bx.js} +2 -2
  9. package/dist/{chunk-tttfv49k.js.map → chunk-4xavy5bx.js.map} +1 -1
  10. package/dist/{chunk-k2j71x7a.js → chunk-fzpxv5j5.js} +2 -2
  11. package/dist/{chunk-k2j71x7a.js.map → chunk-fzpxv5j5.js.map} +1 -1
  12. package/dist/chunk-j9t5h44d.js.map +1 -1
  13. package/dist/{chunk-9gz30dxy.js → chunk-z28fxqd0.js} +1 -1
  14. package/dist/{chunk-9gz30dxy.js.map → chunk-z28fxqd0.js.map} +1 -1
  15. package/dist/connectors/queries.d.ts.map +1 -1
  16. package/dist/generated/@tanstack/react-query.gen.d.ts +142 -12
  17. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  18. package/dist/generated/index.d.ts +2 -2
  19. package/dist/generated/index.d.ts.map +1 -1
  20. package/dist/generated/sdk.gen.d.ts +10 -4
  21. package/dist/generated/sdk.gen.d.ts.map +1 -1
  22. package/dist/generated/types.gen.d.ts +184 -41
  23. package/dist/generated/types.gen.d.ts.map +1 -1
  24. package/dist/hooks.d.ts +1 -1
  25. package/dist/hooks.d.ts.map +1 -1
  26. package/dist/hooks.js +46 -6
  27. package/dist/hooks.js.map +5 -5
  28. package/dist/index.js +8 -6
  29. package/dist/index.js.map +1 -1
  30. package/dist/logs.js +3 -3
  31. package/dist/models.js +4 -2
  32. package/dist/models.js.map +1 -1
  33. package/dist/query.js +3 -3
  34. package/dist/users-hooks.d.ts +9 -5
  35. package/dist/users-hooks.d.ts.map +1 -1
  36. package/package.json +2 -2
  37. package/src/generated/@tanstack/react-query.gen.ts +36 -3
  38. package/src/generated/index.ts +6 -0
  39. package/src/generated/sdk.gen.ts +75 -14
  40. package/src/generated/types.gen.ts +207 -49
  41. package/src/hooks.ts +1 -0
  42. package/src/users-hooks.ts +36 -5
  43. package/dist/chunk-59f4fbnk.js.map +0 -19
  44. /package/dist/{chunk-1v736aje.js.map → chunk-2ezmcce2.js.map} +0 -0
package/dist/index.js CHANGED
@@ -151,6 +151,7 @@ import {
151
151
  listAgentThreadChildren2,
152
152
  getAgentChildFileContent2,
153
153
  headAgentChildFileContent2,
154
+ moveAgentThreadToComputer2,
154
155
  getAgentPreferences2,
155
156
  updateAgentPreferences2,
156
157
  setAgentThreadApprovalMode2,
@@ -205,7 +206,7 @@ import {
205
206
  listProjectionRuns2,
206
207
  getProjectionRun2,
207
208
  listWebhookRuns2
208
- } from "./chunk-59f4fbnk.js";
209
+ } from "./chunk-14c2tg81.js";
209
210
  import {
210
211
  createSixbAgentsWebSocketUrl2,
211
212
  createAgentRunSocket2,
@@ -226,7 +227,7 @@ import {
226
227
  objectFileContentUrl2,
227
228
  SixbFileUploadError2,
228
229
  uploadFile2
229
- } from "./chunk-263m4e9p.js";
230
+ } from "./chunk-1zthvcby.js";
230
231
  import {
231
232
  SIXB_CSRF_HEADER_NAME2,
232
233
  SIXB_CSRF_TOKEN_RESPONSE_HEADER_NAME2,
@@ -236,7 +237,7 @@ import {
236
237
  createSixbClient2,
237
238
  configureSixbClient2,
238
239
  createSixbClientConfig2
239
- } from "./chunk-1v736aje.js";
240
+ } from "./chunk-2ezmcce2.js";
240
241
  import {
241
242
  encodeObjectId2,
242
243
  decodeObjectId2,
@@ -252,8 +253,8 @@ import {
252
253
  logs2,
253
254
  isStoredLogLine2,
254
255
  isStoredLogLine3
255
- } from "./chunk-k2j71x7a.js";
256
- import"./chunk-9gz30dxy.js";
256
+ } from "./chunk-fzpxv5j5.js";
257
+ import"./chunk-z28fxqd0.js";
257
258
  import"./chunk-0ka9ykez.js";
258
259
  export {
259
260
  ActionRunFailedError2 as ActionRunFailedError,
@@ -441,6 +442,7 @@ export {
441
442
  listWorkflows2 as listWorkflows,
442
443
  logs2 as logs,
443
444
  matchesSubscription2 as matchesSubscription,
445
+ moveAgentThreadToComputer2 as moveAgentThreadToComputer,
444
446
  normalizeSixbApiBaseUrl2 as normalizeSixbApiBaseUrl,
445
447
  objectFileContentUrl2 as objectFileContentUrl,
446
448
  objectIdAliases2 as objectIdAliases,
@@ -500,4 +502,4 @@ export {
500
502
  upsertObjectLink2 as upsertObjectLink
501
503
  };
502
504
 
503
- //# debugId=4EDA1740B925B53264756E2164756E21
505
+ //# debugId=881ACD6F4EE4770664756E2164756E21
package/dist/index.js.map CHANGED
@@ -4,6 +4,6 @@
4
4
  "sourcesContent": [
5
5
  ],
6
6
  "mappings": "",
7
- "debugId": "4EDA1740B925B53264756E2164756E21",
7
+ "debugId": "881ACD6F4EE4770664756E2164756E21",
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-k2j71x7a.js";
10
- import"./chunk-9gz30dxy.js";
9
+ } from "./chunk-fzpxv5j5.js";
10
+ import"./chunk-z28fxqd0.js";
11
11
  import"./chunk-0ka9ykez.js";
12
12
  import"./chunk-j9t5h44d.js";
13
- import"./chunk-59f4fbnk.js";
13
+ import"./chunk-14c2tg81.js";
14
14
  export {
15
15
  createLogSocket2 as createLogSocket,
16
16
  createSixbLogsWebSocketUrl2 as createSixbLogsWebSocketUrl,
package/dist/models.js CHANGED
@@ -153,6 +153,7 @@ import {
153
153
  listAgentThreadChildren2,
154
154
  getAgentChildFileContent2,
155
155
  headAgentChildFileContent2,
156
+ moveAgentThreadToComputer2,
156
157
  getAgentPreferences2,
157
158
  updateAgentPreferences2,
158
159
  setAgentThreadApprovalMode2,
@@ -207,7 +208,7 @@ import {
207
208
  listProjectionRuns2,
208
209
  getProjectionRun2,
209
210
  listWebhookRuns2
210
- } from "./chunk-59f4fbnk.js";
211
+ } from "./chunk-14c2tg81.js";
211
212
  export {
212
213
  abortFileUpload2 as abortFileUpload,
213
214
  addAgentThreadParticipants2 as addAgentThreadParticipants,
@@ -367,6 +368,7 @@ export {
367
368
  listWorkflowInterventions2 as listWorkflowInterventions,
368
369
  listWorkflowRuns2 as listWorkflowRuns,
369
370
  listWorkflows2 as listWorkflows,
371
+ moveAgentThreadToComputer2 as moveAgentThreadToComputer,
370
372
  postAgentThreadMessage2 as postAgentThreadMessage,
371
373
  publishArtifactVersion2 as publishArtifactVersion,
372
374
  queryObjectLinks2 as queryObjectLinks,
@@ -415,4 +417,4 @@ export {
415
417
  upsertObjectLink2 as upsertObjectLink
416
418
  };
417
419
 
418
- //# debugId=1EB8E55ADD1A8F3C64756E2164756E21
420
+ //# debugId=D6E93D860048EFA564756E2164756E21
@@ -4,6 +4,6 @@
4
4
  "sourcesContent": [
5
5
  ],
6
6
  "mappings": "",
7
- "debugId": "1EB8E55ADD1A8F3C64756E2164756E21",
7
+ "debugId": "D6E93D860048EFA564756E2164756E21",
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-tttfv49k.js";
8
- import"./chunk-1v736aje.js";
7
+ } from "./chunk-4xavy5bx.js";
8
+ import"./chunk-2ezmcce2.js";
9
9
  import"./chunk-j9t5h44d.js";
10
- import"./chunk-59f4fbnk.js";
10
+ import"./chunk-14c2tg81.js";
11
11
  export {
12
12
  SixbQueryError2 as SixbQueryError,
13
13
  createHttpQueryExecutor2 as createHttpQueryExecutor,
@@ -60,11 +60,15 @@ export declare function usersQueryOptions(options?: UseUsersOptions): import("@t
60
60
  [dataTagErrorSymbol]: Error;
61
61
  };
62
62
  };
63
+ /** A member by user reference, id, or email: the email matches exactly, ignoring case. */
64
+ export type UserLookupInput = UserRef | string | {
65
+ readonly email: string;
66
+ };
63
67
  /**
64
68
  * Query options for one member, for prefetching or `useQuery`. The data is `null` when no member
65
- * has this id or the reader cannot read the directory.
69
+ * has this id or email, or the reader cannot read the directory.
66
70
  */
67
- export declare function userQueryOptions(user: UserRef | string, options?: UseUserOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
71
+ export declare function userQueryOptions(user: UserLookupInput, options?: UseUserOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
68
72
  id: string;
69
73
  email: string;
70
74
  displayName?: string;
@@ -102,8 +106,8 @@ export declare function userQueryOptions(user: UserRef | string, options?: UseUs
102
106
  */
103
107
  export declare function useUsers(options?: UseUsersOptions): UseQueryResult<ListUsersResponse, Error>;
104
108
  /**
105
- * One member of the directory, from a user reference or an id: `null` when no member has it, or
106
- * without `can.view(project.users)`.
109
+ * One member of the directory, from a user reference, an id, or `{ email }`: `null` when no member
110
+ * has it, or without `can.view(project.users)`.
107
111
  */
108
- export declare function useUser(user: UserRef | string, options?: UseUserOptions): UseQueryResult<GetUserResponse | null, Error>;
112
+ export declare function useUser(user: UserLookupInput, options?: UseUserOptions): UseQueryResult<GetUserResponse | null, Error>;
109
113
  //# sourceMappingURL=users-hooks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"users-hooks.d.ts","sourceRoot":"","sources":["../src/users-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,EAAgB,KAAK,cAAc,EAAY,MAAM,uBAAuB,CAAA;AAGnF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEhD,OAAO,KA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AC,CAI/C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sixb/client",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
4
4
  "description": "Type-safe SDK for Sixb API with TanStack Query hooks",
5
5
  "keywords": [
6
6
  "sixb",
@@ -67,7 +67,7 @@
67
67
  "prepack": "bun run build"
68
68
  },
69
69
  "dependencies": {
70
- "@sixb/core": "^0.1.22"
70
+ "@sixb/core": "^0.1.26"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@tanstack/react-query": "^5.0.0",
@@ -157,6 +157,7 @@ import {
157
157
  listWorkflowInterventions,
158
158
  listWorkflowRuns,
159
159
  listWorkflows,
160
+ moveAgentThreadToComputer,
160
161
  type Options,
161
162
  postAgentThreadMessage,
162
163
  publishArtifactVersion,
@@ -630,6 +631,9 @@ import type {
630
631
  ListWorkflowRunsResponse,
631
632
  ListWorkflowsData,
632
633
  ListWorkflowsResponse,
634
+ MoveAgentThreadToComputerData,
635
+ MoveAgentThreadToComputerError,
636
+ MoveAgentThreadToComputerResponse,
633
637
  PostAgentThreadMessageData,
634
638
  PostAgentThreadMessageError,
635
639
  PostAgentThreadMessageResponse,
@@ -4573,7 +4577,7 @@ export const getAgentThreadOptions = (options: Options<GetAgentThreadData>) =>
4573
4577
  /**
4574
4578
  * Add participants to an agent thread
4575
4579
  *
4576
- * Only the thread's owner adds participants: active users of the project, by id or by email. They read the whole conversation, its files and its live stream, and send messages that run with their own rights. Nothing checks what they may see: the conversation holds what the Agent read with the rights of whoever asked.
4580
+ * Only the thread's owner adds participants: active users of the project, by id or by email. They read the whole conversation, its files and its live stream, and send messages that run with their own rights; a thread that runs on its owner's computer they only read. Nothing checks what they may see: the conversation holds what the Agent read with the rights of whoever asked.
4577
4581
  */
4578
4582
  export const addAgentThreadParticipantsMutation = (
4579
4583
  options?: Partial<Options<AddAgentThreadParticipantsData>>
@@ -5039,6 +5043,35 @@ export const getAgentChildFileContentOptions = (options: Options<GetAgentChildFi
5039
5043
  queryKey: getAgentChildFileContentQueryKey(options),
5040
5044
  })
5041
5045
 
5046
+ /**
5047
+ * Move a thread to another of your computers
5048
+ *
5049
+ * A thread that runs on its owner's computer runs there alone: its turns are claimed by that computer only. Its owner moves it to another.
5050
+ */
5051
+ export const moveAgentThreadToComputerMutation = (
5052
+ options?: Partial<Options<MoveAgentThreadToComputerData>>
5053
+ ): UseMutationOptions<
5054
+ MoveAgentThreadToComputerResponse,
5055
+ MoveAgentThreadToComputerError,
5056
+ Options<MoveAgentThreadToComputerData>
5057
+ > => {
5058
+ const mutationOptions: UseMutationOptions<
5059
+ MoveAgentThreadToComputerResponse,
5060
+ MoveAgentThreadToComputerError,
5061
+ Options<MoveAgentThreadToComputerData>
5062
+ > = {
5063
+ mutationFn: async (fnOptions) => {
5064
+ const { data } = await moveAgentThreadToComputer({
5065
+ ...options,
5066
+ ...fnOptions,
5067
+ throwOnError: true,
5068
+ })
5069
+ return data
5070
+ },
5071
+ }
5072
+ return mutationOptions
5073
+ }
5074
+
5042
5075
  export const getAgentPreferencesQueryKey = (options?: Options<GetAgentPreferencesData>) =>
5043
5076
  createQueryKey("getAgentPreferences", options)
5044
5077
 
@@ -5823,7 +5856,7 @@ export const listArtifactsInfiniteOptions = (options?: Options<ListArtifactsData
5823
5856
  /**
5824
5857
  * Create an artifact
5825
5858
  *
5826
- * Creates an artifact owned by the caller, with its first version. Store each file with POST /api/files first.
5859
+ * Creates an artifact owned by the caller, with its first version. Store each file with POST /api/files first. With a run token, it is created in the run's conversation, owned by the conversation's owner and authored by the run's requester.
5827
5860
  */
5828
5861
  export const createArtifactMutation = (
5829
5862
  options?: Partial<Options<CreateArtifactData>>
@@ -6010,7 +6043,7 @@ export const setArtifactStateMutation = (
6010
6043
  /**
6011
6044
  * Publish an artifact's next version
6012
6045
  *
6013
- * The kind must be the artifact's. The new version becomes the latest. With baseVersion, it is refused with 409 artifact_moved when another version was published since.
6046
+ * The kind must be the artifact's. The new version becomes the latest. With baseVersion, it is refused with 409 artifact_moved when another version was published since. With a run token, only an artifact the run's conversation shares or its requester owns; the version is shared in that conversation. A run that lost its execution gets 409 execution_lost.
6014
6047
  */
6015
6048
  export const publishArtifactVersionMutation = (
6016
6049
  options?: Partial<Options<PublishArtifactVersionData>>
@@ -156,6 +156,7 @@ export {
156
156
  listWorkflowInterventions,
157
157
  listWorkflowRuns,
158
158
  listWorkflows,
159
+ moveAgentThreadToComputer,
159
160
  type Options,
160
161
  postAgentThreadMessage,
161
162
  publishArtifactVersion,
@@ -954,6 +955,11 @@ export type {
954
955
  ListWorkflowsData,
955
956
  ListWorkflowsResponse,
956
957
  ListWorkflowsResponses,
958
+ MoveAgentThreadToComputerData,
959
+ MoveAgentThreadToComputerError,
960
+ MoveAgentThreadToComputerErrors,
961
+ MoveAgentThreadToComputerResponse,
962
+ MoveAgentThreadToComputerResponses,
957
963
  ObjectExpansion,
958
964
  ObjectQuery,
959
965
  ObjectQueryCountRequest,
@@ -460,6 +460,9 @@ import type {
460
460
  ListWorkflowRunsResponses,
461
461
  ListWorkflowsData,
462
462
  ListWorkflowsResponses,
463
+ MoveAgentThreadToComputerData,
464
+ MoveAgentThreadToComputerErrors,
465
+ MoveAgentThreadToComputerResponses,
463
466
  PostAgentThreadMessageData,
464
467
  PostAgentThreadMessageErrors,
465
468
  PostAgentThreadMessageResponses,
@@ -1686,7 +1689,10 @@ export const listDatasets = <ThrowOnError extends boolean = false>(
1686
1689
  options?: Options<ListDatasetsData, ThrowOnError>
1687
1690
  ) =>
1688
1691
  (options?.client ?? client).get<ListDatasetsResponses, ListDatasetsErrors, ThrowOnError>({
1689
- security: [{ scheme: "bearer", type: "http" }],
1692
+ security: [
1693
+ { scheme: "bearer", type: "http" },
1694
+ { scheme: "bearer", type: "http" },
1695
+ ],
1690
1696
  url: "/api/datasets",
1691
1697
  ...options,
1692
1698
  })
@@ -1698,7 +1704,10 @@ export const getDataset = <ThrowOnError extends boolean = false>(
1698
1704
  options: Options<GetDatasetData, ThrowOnError>
1699
1705
  ) =>
1700
1706
  (options.client ?? client).get<GetDatasetResponses, GetDatasetErrors, ThrowOnError>({
1701
- security: [{ scheme: "bearer", type: "http" }],
1707
+ security: [
1708
+ { scheme: "bearer", type: "http" },
1709
+ { scheme: "bearer", type: "http" },
1710
+ ],
1702
1711
  url: "/api/datasets/{datasetId}",
1703
1712
  ...options,
1704
1713
  })
@@ -1714,7 +1723,10 @@ export const listDatasetVersions = <ThrowOnError extends boolean = false>(
1714
1723
  ListDatasetVersionsErrors,
1715
1724
  ThrowOnError
1716
1725
  >({
1717
- security: [{ scheme: "bearer", type: "http" }],
1726
+ security: [
1727
+ { scheme: "bearer", type: "http" },
1728
+ { scheme: "bearer", type: "http" },
1729
+ ],
1718
1730
  url: "/api/datasets/{datasetId}/versions",
1719
1731
  ...options,
1720
1732
  })
@@ -1740,7 +1752,10 @@ export const listDatasetRows = <ThrowOnError extends boolean = false>(
1740
1752
  options: Options<ListDatasetRowsData, ThrowOnError>
1741
1753
  ) =>
1742
1754
  (options.client ?? client).get<ListDatasetRowsResponses, ListDatasetRowsErrors, ThrowOnError>({
1743
- security: [{ scheme: "bearer", type: "http" }],
1755
+ security: [
1756
+ { scheme: "bearer", type: "http" },
1757
+ { scheme: "bearer", type: "http" },
1758
+ ],
1744
1759
  url: "/api/datasets/{datasetId}/rows",
1745
1760
  ...options,
1746
1761
  })
@@ -1752,7 +1767,10 @@ export const listSyncs = <ThrowOnError extends boolean = false>(
1752
1767
  options?: Options<ListSyncsData, ThrowOnError>
1753
1768
  ) =>
1754
1769
  (options?.client ?? client).get<ListSyncsResponses, unknown, ThrowOnError>({
1755
- security: [{ scheme: "bearer", type: "http" }],
1770
+ security: [
1771
+ { scheme: "bearer", type: "http" },
1772
+ { scheme: "bearer", type: "http" },
1773
+ ],
1756
1774
  url: "/api/syncs",
1757
1775
  ...options,
1758
1776
  })
@@ -1764,7 +1782,10 @@ export const getSync = <ThrowOnError extends boolean = false>(
1764
1782
  options: Options<GetSyncData, ThrowOnError>
1765
1783
  ) =>
1766
1784
  (options.client ?? client).get<GetSyncResponses, GetSyncErrors, ThrowOnError>({
1767
- security: [{ scheme: "bearer", type: "http" }],
1785
+ security: [
1786
+ { scheme: "bearer", type: "http" },
1787
+ { scheme: "bearer", type: "http" },
1788
+ ],
1768
1789
  url: "/api/syncs/{syncId}",
1769
1790
  ...options,
1770
1791
  })
@@ -1776,7 +1797,10 @@ export const listSyncRuns = <ThrowOnError extends boolean = false>(
1776
1797
  options?: Options<ListSyncRunsData, ThrowOnError>
1777
1798
  ) =>
1778
1799
  (options?.client ?? client).get<ListSyncRunsResponses, ListSyncRunsErrors, ThrowOnError>({
1779
- security: [{ scheme: "bearer", type: "http" }],
1800
+ security: [
1801
+ { scheme: "bearer", type: "http" },
1802
+ { scheme: "bearer", type: "http" },
1803
+ ],
1780
1804
  url: "/api/sync-runs",
1781
1805
  ...options,
1782
1806
  })
@@ -1807,7 +1831,10 @@ export const listPipelines = <ThrowOnError extends boolean = false>(
1807
1831
  options?: Options<ListPipelinesData, ThrowOnError>
1808
1832
  ) =>
1809
1833
  (options?.client ?? client).get<ListPipelinesResponses, unknown, ThrowOnError>({
1810
- security: [{ scheme: "bearer", type: "http" }],
1834
+ security: [
1835
+ { scheme: "bearer", type: "http" },
1836
+ { scheme: "bearer", type: "http" },
1837
+ ],
1811
1838
  url: "/api/pipelines",
1812
1839
  ...options,
1813
1840
  })
@@ -1819,7 +1846,10 @@ export const getPipeline = <ThrowOnError extends boolean = false>(
1819
1846
  options: Options<GetPipelineData, ThrowOnError>
1820
1847
  ) =>
1821
1848
  (options.client ?? client).get<GetPipelineResponses, GetPipelineErrors, ThrowOnError>({
1822
- security: [{ scheme: "bearer", type: "http" }],
1849
+ security: [
1850
+ { scheme: "bearer", type: "http" },
1851
+ { scheme: "bearer", type: "http" },
1852
+ ],
1823
1853
  url: "/api/pipelines/{pipelineId}",
1824
1854
  ...options,
1825
1855
  })
@@ -1831,7 +1861,10 @@ export const listPipelineRuns = <ThrowOnError extends boolean = false>(
1831
1861
  options?: Options<ListPipelineRunsData, ThrowOnError>
1832
1862
  ) =>
1833
1863
  (options?.client ?? client).get<ListPipelineRunsResponses, ListPipelineRunsErrors, ThrowOnError>({
1834
- security: [{ scheme: "bearer", type: "http" }],
1864
+ security: [
1865
+ { scheme: "bearer", type: "http" },
1866
+ { scheme: "bearer", type: "http" },
1867
+ ],
1835
1868
  url: "/api/pipeline-runs",
1836
1869
  ...options,
1837
1870
  })
@@ -1843,7 +1876,10 @@ export const getPipelineRun = <ThrowOnError extends boolean = false>(
1843
1876
  options: Options<GetPipelineRunData, ThrowOnError>
1844
1877
  ) =>
1845
1878
  (options.client ?? client).get<GetPipelineRunResponses, GetPipelineRunErrors, ThrowOnError>({
1846
- security: [{ scheme: "bearer", type: "http" }],
1879
+ security: [
1880
+ { scheme: "bearer", type: "http" },
1881
+ { scheme: "bearer", type: "http" },
1882
+ ],
1847
1883
  url: "/api/pipeline-runs/{runId}",
1848
1884
  ...options,
1849
1885
  })
@@ -2871,7 +2907,7 @@ export const getAgentThread = <ThrowOnError extends boolean = false>(
2871
2907
  /**
2872
2908
  * Add participants to an agent thread
2873
2909
  *
2874
- * Only the thread's owner adds participants: active users of the project, by id or by email. They read the whole conversation, its files and its live stream, and send messages that run with their own rights. Nothing checks what they may see: the conversation holds what the Agent read with the rights of whoever asked.
2910
+ * Only the thread's owner adds participants: active users of the project, by id or by email. They read the whole conversation, its files and its live stream, and send messages that run with their own rights; a thread that runs on its owner's computer they only read. Nothing checks what they may see: the conversation holds what the Agent read with the rights of whoever asked.
2875
2911
  */
2876
2912
  export const addAgentThreadParticipants = <ThrowOnError extends boolean = false>(
2877
2913
  options: Options<AddAgentThreadParticipantsData, ThrowOnError>
@@ -3176,6 +3212,31 @@ export const headAgentChildFileContent = <ThrowOnError extends boolean = false>(
3176
3212
  ...options,
3177
3213
  })
3178
3214
 
3215
+ /**
3216
+ * Move a thread to another of your computers
3217
+ *
3218
+ * A thread that runs on its owner's computer runs there alone: its turns are claimed by that computer only. Its owner moves it to another.
3219
+ */
3220
+ export const moveAgentThreadToComputer = <ThrowOnError extends boolean = false>(
3221
+ options: Options<MoveAgentThreadToComputerData, ThrowOnError>
3222
+ ) =>
3223
+ (options.client ?? client).post<
3224
+ MoveAgentThreadToComputerResponses,
3225
+ MoveAgentThreadToComputerErrors,
3226
+ ThrowOnError
3227
+ >({
3228
+ security: [
3229
+ { name: "x-sixb-csrf", type: "apiKey" },
3230
+ { scheme: "bearer", type: "http" },
3231
+ ],
3232
+ url: "/api/agent-threads/{threadId}/computer",
3233
+ ...options,
3234
+ headers: {
3235
+ "Content-Type": "application/json",
3236
+ ...options.headers,
3237
+ },
3238
+ })
3239
+
3179
3240
  /**
3180
3241
  * Get your Agent preferences
3181
3242
  */
@@ -3513,7 +3574,7 @@ export const listArtifacts = <ThrowOnError extends boolean = false>(
3513
3574
  /**
3514
3575
  * Create an artifact
3515
3576
  *
3516
- * Creates an artifact owned by the caller, with its first version. Store each file with POST /api/files first.
3577
+ * Creates an artifact owned by the caller, with its first version. Store each file with POST /api/files first. With a run token, it is created in the run's conversation, owned by the conversation's owner and authored by the run's requester.
3517
3578
  */
3518
3579
  export const createArtifact = <ThrowOnError extends boolean = false>(
3519
3580
  options: Options<CreateArtifactData, ThrowOnError>
@@ -3649,7 +3710,7 @@ export const setArtifactState = <ThrowOnError extends boolean = false>(
3649
3710
  /**
3650
3711
  * Publish an artifact's next version
3651
3712
  *
3652
- * The kind must be the artifact's. The new version becomes the latest. With baseVersion, it is refused with 409 artifact_moved when another version was published since.
3713
+ * The kind must be the artifact's. The new version becomes the latest. With baseVersion, it is refused with 409 artifact_moved when another version was published since. With a run token, only an artifact the run's conversation shares or its requester owns; the version is shared in that conversation. A run that lost its execution gets 409 execution_lost.
3653
3714
  */
3654
3715
  export const publishArtifactVersion = <ThrowOnError extends boolean = false>(
3655
3716
  options: Options<PublishArtifactVersionData, ThrowOnError>