@sixb/client 0.1.3 → 0.1.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 (37) hide show
  1. package/dist/browser.js +2 -2
  2. package/dist/{chunk-heqezbjc.js → chunk-5y58b4tr.js} +2 -2
  3. package/dist/{chunk-yjank04c.js → chunk-9bwme2g7.js} +1 -1
  4. package/dist/{chunk-eyd61e4t.js → chunk-ehjnq01h.js} +16 -5
  5. package/dist/{chunk-eyd61e4t.js.map → chunk-ehjnq01h.js.map} +3 -3
  6. package/dist/{chunk-6esh0dxx.js → chunk-g19v53kt.js} +1 -1
  7. package/dist/{chunk-hfk246y4.js → chunk-hwg7mwq7.js} +3 -3
  8. package/dist/{chunk-7ts981a8.js → chunk-ks27bq5b.js} +2 -2
  9. package/dist/connectors/queries.d.ts.map +1 -1
  10. package/dist/generated/@tanstack/react-query.gen.d.ts +211 -110
  11. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  12. package/dist/generated/index.d.ts +2 -2
  13. package/dist/generated/index.d.ts.map +1 -1
  14. package/dist/generated/sdk.gen.d.ts +7 -3
  15. package/dist/generated/sdk.gen.d.ts.map +1 -1
  16. package/dist/generated/types.gen.d.ts +117 -46
  17. package/dist/generated/types.gen.d.ts.map +1 -1
  18. package/dist/hooks.d.ts.map +1 -1
  19. package/dist/hooks.js +61 -27
  20. package/dist/hooks.js.map +4 -4
  21. package/dist/index.js +10 -8
  22. package/dist/index.js.map +1 -1
  23. package/dist/logs.js +3 -3
  24. package/dist/models.js +6 -4
  25. package/dist/models.js.map +1 -1
  26. package/dist/query.js +3 -3
  27. package/package.json +2 -2
  28. package/src/generated/@tanstack/react-query.gen.ts +44 -14
  29. package/src/generated/index.ts +14 -6
  30. package/src/generated/sdk.gen.ts +29 -9
  31. package/src/generated/types.gen.ts +127 -48
  32. package/src/hooks.ts +37 -16
  33. /package/dist/{chunk-heqezbjc.js.map → chunk-5y58b4tr.js.map} +0 -0
  34. /package/dist/{chunk-yjank04c.js.map → chunk-9bwme2g7.js.map} +0 -0
  35. /package/dist/{chunk-6esh0dxx.js.map → chunk-g19v53kt.js.map} +0 -0
  36. /package/dist/{chunk-hfk246y4.js.map → chunk-hwg7mwq7.js.map} +0 -0
  37. /package/dist/{chunk-7ts981a8.js.map → chunk-ks27bq5b.js.map} +0 -0
package/dist/index.js CHANGED
@@ -22,7 +22,7 @@ import {
22
22
  telemetryUpdateKey,
23
23
  uploadFile,
24
24
  waitForActionRun
25
- } from "./chunk-hfk246y4.js";
25
+ } from "./chunk-hwg7mwq7.js";
26
26
  import {
27
27
  createLogSocket,
28
28
  createSixbLogsWebSocketUrl,
@@ -30,8 +30,8 @@ import {
30
30
  isStoredLogLine1 as isStoredLogLine2,
31
31
  logs,
32
32
  parseLogStreamMessage
33
- } from "./chunk-heqezbjc.js";
34
- import"./chunk-6esh0dxx.js";
33
+ } from "./chunk-5y58b4tr.js";
34
+ import"./chunk-g19v53kt.js";
35
35
  import {
36
36
  decodeObjectId,
37
37
  encodeObjectId,
@@ -50,7 +50,7 @@ import {
50
50
  createSixbClientConfig,
51
51
  isSixbApiError,
52
52
  normalizeSixbApiBaseUrl
53
- } from "./chunk-yjank04c.js";
53
+ } from "./chunk-9bwme2g7.js";
54
54
  import {
55
55
  abortFileUpload,
56
56
  addConnectorConnection,
@@ -132,7 +132,7 @@ import {
132
132
  listDatasets,
133
133
  listEvents,
134
134
  listLogs,
135
- listObjectLinks,
135
+ listModels,
136
136
  listObjectTypes,
137
137
  listObjects,
138
138
  listPipelineRuns,
@@ -148,6 +148,7 @@ import {
148
148
  listWorkflowRuns,
149
149
  listWorkflows,
150
150
  postAgentThreadMessage,
151
+ queryObjectLinks,
151
152
  queryObjects,
152
153
  reactivateAuthMember,
153
154
  reauthorizeConnectorConnection,
@@ -175,7 +176,7 @@ import {
175
176
  uploadFileRaw,
176
177
  upsertObject,
177
178
  upsertObjectLink
178
- } from "./chunk-eyd61e4t.js";
179
+ } from "./chunk-ehjnq01h.js";
179
180
  export {
180
181
  waitForActionRun,
181
182
  upsertObjectLink,
@@ -213,6 +214,7 @@ export {
213
214
  reauthorizeConnectorConnection,
214
215
  reactivateAuthMember,
215
216
  queryObjects,
217
+ queryObjectLinks,
216
218
  postAgentThreadMessage,
217
219
  parseLogStreamMessage,
218
220
  parseEventStreamMessage,
@@ -235,7 +237,7 @@ export {
235
237
  listPipelineRuns,
236
238
  listObjects,
237
239
  listObjectTypes,
238
- listObjectLinks,
240
+ listModels,
239
241
  listLogs,
240
242
  listEvents,
241
243
  listDatasets,
@@ -344,4 +346,4 @@ export {
344
346
  ActionRunFailedError
345
347
  };
346
348
 
347
- //# debugId=4134380B9DF18A0364756E2164756E21
349
+ //# debugId=34865457087D1F5264756E2164756E21
package/dist/index.js.map CHANGED
@@ -4,6 +4,6 @@
4
4
  "sourcesContent": [
5
5
  ],
6
6
  "mappings": "",
7
- "debugId": "4134380B9DF18A0364756E2164756E21",
7
+ "debugId": "34865457087D1F5264756E2164756E21",
8
8
  "names": []
9
9
  }
package/dist/logs.js CHANGED
@@ -6,10 +6,10 @@ import {
6
6
  isStoredLogLine1 as isStoredLogLine2,
7
7
  logs,
8
8
  parseLogStreamMessage
9
- } from "./chunk-heqezbjc.js";
10
- import"./chunk-6esh0dxx.js";
9
+ } from "./chunk-5y58b4tr.js";
10
+ import"./chunk-g19v53kt.js";
11
11
  import"./chunk-trpg18dp.js";
12
- import"./chunk-eyd61e4t.js";
12
+ import"./chunk-ehjnq01h.js";
13
13
  export {
14
14
  parseLogStreamMessage,
15
15
  logs,
package/dist/models.js CHANGED
@@ -89,7 +89,7 @@ import {
89
89
  listDatasets,
90
90
  listEvents,
91
91
  listLogs,
92
- listObjectLinks,
92
+ listModels,
93
93
  listObjectTypes,
94
94
  listObjects,
95
95
  listPipelineRuns,
@@ -105,6 +105,7 @@ import {
105
105
  listWorkflowRuns,
106
106
  listWorkflows,
107
107
  postAgentThreadMessage,
108
+ queryObjectLinks,
108
109
  queryObjects,
109
110
  reactivateAuthMember,
110
111
  reauthorizeConnectorConnection,
@@ -132,7 +133,7 @@ import {
132
133
  uploadFileRaw,
133
134
  upsertObject,
134
135
  upsertObjectLink
135
- } from "./chunk-eyd61e4t.js";
136
+ } from "./chunk-ehjnq01h.js";
136
137
  export {
137
138
  upsertObjectLink,
138
139
  upsertObject,
@@ -165,6 +166,7 @@ export {
165
166
  reauthorizeConnectorConnection,
166
167
  reactivateAuthMember,
167
168
  queryObjects,
169
+ queryObjectLinks,
168
170
  postAgentThreadMessage,
169
171
  listWorkflows,
170
172
  listWorkflowRuns,
@@ -180,7 +182,7 @@ export {
180
182
  listPipelineRuns,
181
183
  listObjects,
182
184
  listObjectTypes,
183
- listObjectLinks,
185
+ listModels,
184
186
  listLogs,
185
187
  listEvents,
186
188
  listDatasets,
@@ -265,4 +267,4 @@ export {
265
267
  abortFileUpload
266
268
  };
267
269
 
268
- //# debugId=A1A0C7BE7AF4DA9C64756E2164756E21
270
+ //# debugId=89FBAAF7E1FEDFB564756E2164756E21
@@ -4,6 +4,6 @@
4
4
  "sourcesContent": [
5
5
  ],
6
6
  "mappings": "",
7
- "debugId": "A1A0C7BE7AF4DA9C64756E2164756E21",
7
+ "debugId": "89FBAAF7E1FEDFB564756E2164756E21",
8
8
  "names": []
9
9
  }
package/dist/query.js CHANGED
@@ -3,9 +3,9 @@ import {
3
3
  SixbQueryError,
4
4
  createHttpQueryExecutor,
5
5
  objects
6
- } from "./chunk-7ts981a8.js";
7
- import"./chunk-yjank04c.js";
8
- import"./chunk-eyd61e4t.js";
6
+ } from "./chunk-ks27bq5b.js";
7
+ import"./chunk-9bwme2g7.js";
8
+ import"./chunk-ehjnq01h.js";
9
9
  export {
10
10
  objects,
11
11
  createHttpQueryExecutor,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sixb/client",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
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.3"
70
+ "@sixb/core": "^0.1.4"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@tanstack/react-query": "^5.0.0",
@@ -84,7 +84,7 @@ import {
84
84
  listDatasetVersions,
85
85
  listEvents,
86
86
  listLogs,
87
- listObjectLinks,
87
+ listModels,
88
88
  listObjects,
89
89
  listObjectTypes,
90
90
  listPipelineRuns,
@@ -101,6 +101,7 @@ import {
101
101
  listWorkflows,
102
102
  type Options,
103
103
  postAgentThreadMessage,
104
+ queryObjectLinks,
104
105
  queryObjects,
105
106
  reactivateAuthMember,
106
107
  reauthorizeConnectorConnection,
@@ -346,9 +347,8 @@ import type {
346
347
  ListLogsData,
347
348
  ListLogsError,
348
349
  ListLogsResponse,
349
- ListObjectLinksData,
350
- ListObjectLinksError,
351
- ListObjectLinksResponse,
350
+ ListModelsData,
351
+ ListModelsResponse,
352
352
  ListObjectsData,
353
353
  ListObjectsError,
354
354
  ListObjectsResponse,
@@ -388,6 +388,9 @@ import type {
388
388
  PostAgentThreadMessageData,
389
389
  PostAgentThreadMessageError,
390
390
  PostAgentThreadMessageResponse,
391
+ QueryObjectLinksData,
392
+ QueryObjectLinksError,
393
+ QueryObjectLinksResponse,
391
394
  QueryObjectsData,
392
395
  QueryObjectsError,
393
396
  QueryObjectsResponse,
@@ -2847,6 +2850,33 @@ export const queryObjectsMutation = (
2847
2850
  return mutationOptions
2848
2851
  }
2849
2852
 
2853
+ /**
2854
+ * Query object links
2855
+ */
2856
+ export const queryObjectLinksMutation = (
2857
+ options?: Partial<Options<QueryObjectLinksData>>
2858
+ ): UseMutationOptions<
2859
+ QueryObjectLinksResponse,
2860
+ QueryObjectLinksError,
2861
+ Options<QueryObjectLinksData>
2862
+ > => {
2863
+ const mutationOptions: UseMutationOptions<
2864
+ QueryObjectLinksResponse,
2865
+ QueryObjectLinksError,
2866
+ Options<QueryObjectLinksData>
2867
+ > = {
2868
+ mutationFn: async (fnOptions) => {
2869
+ const { data } = await queryObjectLinks({
2870
+ ...options,
2871
+ ...fnOptions,
2872
+ throwOnError: true,
2873
+ })
2874
+ return data
2875
+ },
2876
+ }
2877
+ return mutationOptions
2878
+ }
2879
+
2850
2880
  /**
2851
2881
  * Count objects
2852
2882
  */
@@ -3776,21 +3806,21 @@ export const getAgentRunOptions = (options: Options<GetAgentRunData>) =>
3776
3806
  queryKey: getAgentRunQueryKey(options),
3777
3807
  })
3778
3808
 
3779
- export const listObjectLinksQueryKey = (options: Options<ListObjectLinksData>) =>
3780
- createQueryKey("listObjectLinks", options)
3809
+ export const listModelsQueryKey = (options?: Options<ListModelsData>) =>
3810
+ createQueryKey("listModels", options)
3781
3811
 
3782
3812
  /**
3783
- * List object links
3813
+ * List the project model catalog
3784
3814
  */
3785
- export const listObjectLinksOptions = (options: Options<ListObjectLinksData>) =>
3815
+ export const listModelsOptions = (options?: Options<ListModelsData>) =>
3786
3816
  queryOptions<
3787
- ListObjectLinksResponse,
3788
- ListObjectLinksError,
3789
- ListObjectLinksResponse,
3790
- ReturnType<typeof listObjectLinksQueryKey>
3817
+ ListModelsResponse,
3818
+ DefaultError,
3819
+ ListModelsResponse,
3820
+ ReturnType<typeof listModelsQueryKey>
3791
3821
  >({
3792
3822
  queryFn: async ({ queryKey, signal }) => {
3793
- const { data } = await listObjectLinks({
3823
+ const { data } = await listModels({
3794
3824
  ...options,
3795
3825
  ...queryKey[0],
3796
3826
  signal,
@@ -3798,7 +3828,7 @@ export const listObjectLinksOptions = (options: Options<ListObjectLinksData>) =>
3798
3828
  })
3799
3829
  return data
3800
3830
  },
3801
- queryKey: listObjectLinksQueryKey(options),
3831
+ queryKey: listModelsQueryKey(options),
3802
3832
  })
3803
3833
 
3804
3834
  /**
@@ -80,7 +80,7 @@ export {
80
80
  listDatasetVersions,
81
81
  listEvents,
82
82
  listLogs,
83
- listObjectLinks,
83
+ listModels,
84
84
  listObjects,
85
85
  listObjectTypes,
86
86
  listPipelineRuns,
@@ -97,6 +97,7 @@ export {
97
97
  listWorkflows,
98
98
  type Options,
99
99
  postAgentThreadMessage,
100
+ queryObjectLinks,
100
101
  queryObjects,
101
102
  reactivateAuthMember,
102
103
  reauthorizeConnectorConnection,
@@ -506,11 +507,9 @@ export type {
506
507
  ListLogsErrors,
507
508
  ListLogsResponse,
508
509
  ListLogsResponses,
509
- ListObjectLinksData,
510
- ListObjectLinksError,
511
- ListObjectLinksErrors,
512
- ListObjectLinksResponse,
513
- ListObjectLinksResponses,
510
+ ListModelsData,
511
+ ListModelsResponse,
512
+ ListModelsResponses,
514
513
  ListObjectsData,
515
514
  ListObjectsError,
516
515
  ListObjectsErrors,
@@ -582,6 +581,9 @@ export type {
582
581
  ObjectQueryFacetsRequest,
583
582
  ObjectQueryFacetsResponse,
584
583
  ObjectQueryIssue,
584
+ ObjectQueryLink,
585
+ ObjectQueryLinksRequest,
586
+ ObjectQueryLinksResponse,
585
587
  ObjectQueryLinkValue,
586
588
  ObjectQueryObject,
587
589
  ObjectQueryPlanSummary,
@@ -589,11 +591,17 @@ export type {
589
591
  ObjectQueryRequest,
590
592
  ObjectQueryResponse,
591
593
  ObjectQuerySortField,
594
+ ObjectRef,
592
595
  PostAgentThreadMessageData,
593
596
  PostAgentThreadMessageError,
594
597
  PostAgentThreadMessageErrors,
595
598
  PostAgentThreadMessageResponse,
596
599
  PostAgentThreadMessageResponses,
600
+ QueryObjectLinksData,
601
+ QueryObjectLinksError,
602
+ QueryObjectLinksErrors,
603
+ QueryObjectLinksResponse,
604
+ QueryObjectLinksResponses,
597
605
  QueryObjectsData,
598
606
  QueryObjectsError,
599
607
  QueryObjectsErrors,
@@ -239,9 +239,8 @@ import type {
239
239
  ListLogsData,
240
240
  ListLogsErrors,
241
241
  ListLogsResponses,
242
- ListObjectLinksData,
243
- ListObjectLinksErrors,
244
- ListObjectLinksResponses,
242
+ ListModelsData,
243
+ ListModelsResponses,
245
244
  ListObjectsData,
246
245
  ListObjectsErrors,
247
246
  ListObjectsResponses,
@@ -281,6 +280,9 @@ import type {
281
280
  PostAgentThreadMessageData,
282
281
  PostAgentThreadMessageErrors,
283
282
  PostAgentThreadMessageResponses,
283
+ QueryObjectLinksData,
284
+ QueryObjectLinksErrors,
285
+ QueryObjectLinksResponses,
284
286
  QueryObjectsData,
285
287
  QueryObjectsErrors,
286
288
  QueryObjectsResponses,
@@ -1474,6 +1476,25 @@ export const queryObjects = <ThrowOnError extends boolean = false>(
1474
1476
  },
1475
1477
  })
1476
1478
 
1479
+ /**
1480
+ * Query object links
1481
+ */
1482
+ export const queryObjectLinks = <ThrowOnError extends boolean = false>(
1483
+ options: Options<QueryObjectLinksData, ThrowOnError>
1484
+ ) =>
1485
+ (options.client ?? client).post<QueryObjectLinksResponses, QueryObjectLinksErrors, ThrowOnError>({
1486
+ security: [
1487
+ { name: "x-sixb-csrf", type: "apiKey" },
1488
+ { scheme: "bearer", type: "http" },
1489
+ ],
1490
+ url: "/api/objects/query/links",
1491
+ ...options,
1492
+ headers: {
1493
+ "Content-Type": "application/json",
1494
+ ...options.headers,
1495
+ },
1496
+ })
1497
+
1477
1498
  /**
1478
1499
  * Count objects
1479
1500
  */
@@ -1976,14 +1997,13 @@ export const getAgentRun = <ThrowOnError extends boolean = false>(
1976
1997
  })
1977
1998
 
1978
1999
  /**
1979
- * List object links
2000
+ * List the project model catalog
1980
2001
  */
1981
- export const listObjectLinks = <ThrowOnError extends boolean = false>(
1982
- options: Options<ListObjectLinksData, ThrowOnError>
2002
+ export const listModels = <ThrowOnError extends boolean = false>(
2003
+ options?: Options<ListModelsData, ThrowOnError>
1983
2004
  ) =>
1984
- (options.client ?? client).get<ListObjectLinksResponses, ListObjectLinksErrors, ThrowOnError>({
1985
- security: [{ scheme: "bearer", type: "http" }],
1986
- url: "/api/objects/{objectTypeId}/{objectId}/links",
2005
+ (options?.client ?? client).get<ListModelsResponses, unknown, ThrowOnError>({
2006
+ url: "/api/models",
1987
2007
  ...options,
1988
2008
  })
1989
2009
 
@@ -76,6 +76,30 @@ export type ObjectQueryFacetsResponse = {
76
76
  plan: ObjectQueryPlanSummary
77
77
  }
78
78
 
79
+ export type ObjectQueryLink = {
80
+ source: ObjectRef
81
+ linkId: string
82
+ target: ObjectRef
83
+ properties?: {
84
+ [key: string]: unknown
85
+ }
86
+ createdAt: string
87
+ updatedAt: string
88
+ }
89
+
90
+ export type ObjectQueryLinksResponse = {
91
+ /**
92
+ * Selected objects followed by visible endpoint objects from this link page, de-duplicated. Empty unless includeObjects is true.
93
+ */
94
+ objects: Array<ObjectQueryObject>
95
+ /**
96
+ * Visible physical links in deterministic identity order.
97
+ */
98
+ links: Array<ObjectQueryLink>
99
+ hasMore: boolean
100
+ nextPageToken?: string
101
+ }
102
+
79
103
  export type ObjectQueryErrorResponse = {
80
104
  error: string
81
105
  issues?: Array<ObjectQueryIssue>
@@ -104,12 +128,39 @@ export type ObjectQueryFacetsRequest = {
104
128
  facets: Array<ObjectQueryFacetRequest>
105
129
  }
106
130
 
131
+ export type ObjectQueryLinksRequest = {
132
+ query: ObjectQuery
133
+ direction?: "outgoing" | "incoming" | "both"
134
+ linkId?: string
135
+ /**
136
+ * Include selected objects and visible endpoints from the current link page.
137
+ */
138
+ includeObjects?: boolean
139
+ pageSize?: number
140
+ /**
141
+ * Opaque token from the previous page. The project, normalized query, direction, and linkId must remain unchanged.
142
+ */
143
+ pageToken?: string
144
+ }
145
+
146
+ export type ObjectRef = {
147
+ objectTypeId: string
148
+ primaryId: string
149
+ }
150
+
107
151
  export type ObjectQuery =
108
152
  | {
109
153
  kind: "start"
110
154
  objectTypeId: string
111
155
  includeSubtypes?: boolean
112
156
  }
157
+ | {
158
+ kind: "refs"
159
+ /**
160
+ * One to 1,000 unique identities after normalization; duplicate entries are accepted and removed.
161
+ */
162
+ refs: Array<ObjectRef>
163
+ }
113
164
  | {
114
165
  kind: "filter"
115
166
  input: ObjectQuery
@@ -6779,6 +6830,39 @@ export type QueryObjectsResponses = {
6779
6830
 
6780
6831
  export type QueryObjectsResponse = QueryObjectsResponses[keyof QueryObjectsResponses]
6781
6832
 
6833
+ export type QueryObjectLinksData = {
6834
+ body: ObjectQueryLinksRequest
6835
+ path?: never
6836
+ query?: never
6837
+ url: "/api/objects/query/links"
6838
+ }
6839
+
6840
+ export type QueryObjectLinksErrors = {
6841
+ /**
6842
+ * Response for status 400
6843
+ */
6844
+ 400: ObjectQueryErrorResponse
6845
+ /**
6846
+ * Response for status 403
6847
+ */
6848
+ 403: ErrorResponse
6849
+ /**
6850
+ * Response for status 500
6851
+ */
6852
+ 500: ErrorResponse
6853
+ }
6854
+
6855
+ export type QueryObjectLinksError = QueryObjectLinksErrors[keyof QueryObjectLinksErrors]
6856
+
6857
+ export type QueryObjectLinksResponses = {
6858
+ /**
6859
+ * Response for status 200
6860
+ */
6861
+ 200: ObjectQueryLinksResponse
6862
+ }
6863
+
6864
+ export type QueryObjectLinksResponse = QueryObjectLinksResponses[keyof QueryObjectLinksResponses]
6865
+
6782
6866
  export type CountObjectsData = {
6783
6867
  body: ObjectQueryCountRequest
6784
6868
  path?: never
@@ -7136,6 +7220,9 @@ export type GetActionResponses = {
7136
7220
  edits: boolean
7137
7221
  effects: boolean
7138
7222
  }
7223
+ inputSchema: {
7224
+ [key: string]: unknown
7225
+ }
7139
7226
  }
7140
7227
  }
7141
7228
 
@@ -7885,6 +7972,11 @@ export type ListAgentsResponses = {
7885
7972
  stopWhen?: {
7886
7973
  maxSteps?: number
7887
7974
  }
7975
+ context?: {
7976
+ windowTokens?: number
7977
+ reserveTokens?: number
7978
+ keepRecentTokens?: number
7979
+ }
7888
7980
  }
7889
7981
  }>
7890
7982
  }
@@ -7926,6 +8018,11 @@ export type GetAgentResponses = {
7926
8018
  stopWhen?: {
7927
8019
  maxSteps?: number
7928
8020
  }
8021
+ context?: {
8022
+ windowTokens?: number
8023
+ reserveTokens?: number
8024
+ keepRecentTokens?: number
8025
+ }
7929
8026
  }
7930
8027
  }
7931
8028
  }
@@ -8346,6 +8443,11 @@ export type ListAgentThreadMessagesResponses = {
8346
8443
  path?: string
8347
8444
  message: string
8348
8445
  }>
8446
+ compaction?: {
8447
+ checkpointId: string
8448
+ summary: string
8449
+ createdAt: string
8450
+ }
8349
8451
  /**
8350
8452
  * Any JSON-compatible value.
8351
8453
  */
@@ -9145,56 +9247,27 @@ export type GetAgentRunResponses = {
9145
9247
 
9146
9248
  export type GetAgentRunResponse = GetAgentRunResponses[keyof GetAgentRunResponses]
9147
9249
 
9148
- export type ListObjectLinksData = {
9250
+ export type ListModelsData = {
9149
9251
  body?: never
9150
- path: {
9151
- objectTypeId: string
9152
- objectId: string
9153
- }
9154
- query?: {
9155
- linkId?: string
9156
- direction?: "outgoing" | "incoming" | "both"
9157
- }
9158
- url: "/api/objects/{objectTypeId}/{objectId}/links"
9159
- }
9160
-
9161
- export type ListObjectLinksErrors = {
9162
- /**
9163
- * Response for status 400
9164
- */
9165
- 400: {
9166
- error: string
9167
- }
9168
- /**
9169
- * Response for status 404
9170
- */
9171
- 404: {
9172
- error: string
9173
- }
9252
+ path?: never
9253
+ query?: never
9254
+ url: "/api/models"
9174
9255
  }
9175
9256
 
9176
- export type ListObjectLinksError = ListObjectLinksErrors[keyof ListObjectLinksErrors]
9177
-
9178
- export type ListObjectLinksResponses = {
9257
+ export type ListModelsResponses = {
9179
9258
  /**
9180
9259
  * Response for status 200
9181
9260
  */
9182
- 200: Array<{
9183
- projectId: string
9184
- sourceTypeId: string
9185
- sourceId: string
9186
- linkId: string
9187
- targetTypeId: string
9188
- targetId: string
9189
- properties?: {
9190
- [key: string]: unknown
9191
- }
9192
- createdAt: string
9193
- updatedAt: string
9194
- }>
9261
+ 200: {
9262
+ language: Array<{
9263
+ provider: string
9264
+ modelId: string
9265
+ isDefault: boolean
9266
+ }>
9267
+ }
9195
9268
  }
9196
9269
 
9197
- export type ListObjectLinksResponse = ListObjectLinksResponses[keyof ListObjectLinksResponses]
9270
+ export type ListModelsResponse = ListModelsResponses[keyof ListModelsResponses]
9198
9271
 
9199
9272
  export type RemoveObjectLinkData = {
9200
9273
  body?: never
@@ -10925,12 +10998,15 @@ export type ListProjectionsResponses = {
10925
10998
  _tag: "TelemetryProjectionDefinition"
10926
10999
  id: string
10927
11000
  objectTypeId: string
10928
- propertyId: string
10929
11001
  datasetId: string
10930
11002
  objectIdField: string
10931
11003
  atField: string
10932
- valueField: string
10933
- unitField?: string
11004
+ properties: {
11005
+ [key: string]: {
11006
+ valueField: string
11007
+ unitField?: string
11008
+ }
11009
+ }
10934
11010
  latestRun:
10935
11011
  | {
10936
11012
  id: string
@@ -11487,12 +11563,15 @@ export type GetProjectionResponses = {
11487
11563
  _tag: "TelemetryProjectionDefinition"
11488
11564
  id: string
11489
11565
  objectTypeId: string
11490
- propertyId: string
11491
11566
  datasetId: string
11492
11567
  objectIdField: string
11493
11568
  atField: string
11494
- valueField: string
11495
- unitField?: string
11569
+ properties: {
11570
+ [key: string]: {
11571
+ valueField: string
11572
+ unitField?: string
11573
+ }
11574
+ }
11496
11575
  latestRun:
11497
11576
  | {
11498
11577
  id: string