@sixb/client 0.1.3 → 0.1.4
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/browser.js +2 -2
- package/dist/{chunk-heqezbjc.js → chunk-5y58b4tr.js} +2 -2
- package/dist/{chunk-yjank04c.js → chunk-9bwme2g7.js} +1 -1
- package/dist/{chunk-eyd61e4t.js → chunk-ehjnq01h.js} +16 -5
- package/dist/{chunk-eyd61e4t.js.map → chunk-ehjnq01h.js.map} +3 -3
- package/dist/{chunk-6esh0dxx.js → chunk-g19v53kt.js} +1 -1
- package/dist/{chunk-hfk246y4.js → chunk-hwg7mwq7.js} +3 -3
- package/dist/{chunk-7ts981a8.js → chunk-ks27bq5b.js} +2 -2
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +199 -110
- 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 +7 -3
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +114 -46
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +61 -27
- package/dist/hooks.js.map +4 -4
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/dist/logs.js +3 -3
- package/dist/models.js +6 -4
- package/dist/models.js.map +1 -1
- package/dist/query.js +3 -3
- package/package.json +2 -2
- package/src/generated/@tanstack/react-query.gen.ts +44 -14
- package/src/generated/index.ts +14 -6
- package/src/generated/sdk.gen.ts +29 -9
- package/src/generated/types.gen.ts +124 -48
- package/src/hooks.ts +37 -16
- /package/dist/{chunk-heqezbjc.js.map → chunk-5y58b4tr.js.map} +0 -0
- /package/dist/{chunk-yjank04c.js.map → chunk-9bwme2g7.js.map} +0 -0
- /package/dist/{chunk-6esh0dxx.js.map → chunk-g19v53kt.js.map} +0 -0
- /package/dist/{chunk-hfk246y4.js.map → chunk-hwg7mwq7.js.map} +0 -0
- /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-
|
|
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-
|
|
34
|
-
import"./chunk-
|
|
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-
|
|
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
|
-
|
|
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-
|
|
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
|
-
|
|
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=
|
|
349
|
+
//# debugId=34865457087D1F5264756E2164756E21
|
package/dist/index.js.map
CHANGED
package/dist/logs.js
CHANGED
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
isStoredLogLine1 as isStoredLogLine2,
|
|
7
7
|
logs,
|
|
8
8
|
parseLogStreamMessage
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import"./chunk-
|
|
9
|
+
} from "./chunk-5y58b4tr.js";
|
|
10
|
+
import"./chunk-g19v53kt.js";
|
|
11
11
|
import"./chunk-trpg18dp.js";
|
|
12
|
-
import"./chunk-
|
|
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
|
-
|
|
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-
|
|
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
|
-
|
|
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=
|
|
270
|
+
//# debugId=89FBAAF7E1FEDFB564756E2164756E21
|
package/dist/models.js.map
CHANGED
package/dist/query.js
CHANGED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
SixbQueryError,
|
|
4
4
|
createHttpQueryExecutor,
|
|
5
5
|
objects
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import"./chunk-
|
|
8
|
-
import"./chunk-
|
|
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
|
+
"version": "0.1.4",
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
350
|
-
|
|
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
|
|
3780
|
-
createQueryKey("
|
|
3809
|
+
export const listModelsQueryKey = (options?: Options<ListModelsData>) =>
|
|
3810
|
+
createQueryKey("listModels", options)
|
|
3781
3811
|
|
|
3782
3812
|
/**
|
|
3783
|
-
* List
|
|
3813
|
+
* List the project model catalog
|
|
3784
3814
|
*/
|
|
3785
|
-
export const
|
|
3815
|
+
export const listModelsOptions = (options?: Options<ListModelsData>) =>
|
|
3786
3816
|
queryOptions<
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
ReturnType<typeof
|
|
3817
|
+
ListModelsResponse,
|
|
3818
|
+
DefaultError,
|
|
3819
|
+
ListModelsResponse,
|
|
3820
|
+
ReturnType<typeof listModelsQueryKey>
|
|
3791
3821
|
>({
|
|
3792
3822
|
queryFn: async ({ queryKey, signal }) => {
|
|
3793
|
-
const { data } = await
|
|
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:
|
|
3831
|
+
queryKey: listModelsQueryKey(options),
|
|
3802
3832
|
})
|
|
3803
3833
|
|
|
3804
3834
|
/**
|
package/src/generated/index.ts
CHANGED
|
@@ -80,7 +80,7 @@ export {
|
|
|
80
80
|
listDatasetVersions,
|
|
81
81
|
listEvents,
|
|
82
82
|
listLogs,
|
|
83
|
-
|
|
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
|
-
|
|
510
|
-
|
|
511
|
-
|
|
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,
|
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -239,9 +239,8 @@ import type {
|
|
|
239
239
|
ListLogsData,
|
|
240
240
|
ListLogsErrors,
|
|
241
241
|
ListLogsResponses,
|
|
242
|
-
|
|
243
|
-
|
|
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
|
|
2000
|
+
* List the project model catalog
|
|
1980
2001
|
*/
|
|
1981
|
-
export const
|
|
1982
|
-
options
|
|
2002
|
+
export const listModels = <ThrowOnError extends boolean = false>(
|
|
2003
|
+
options?: Options<ListModelsData, ThrowOnError>
|
|
1983
2004
|
) =>
|
|
1984
|
-
(options
|
|
1985
|
-
|
|
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
|
|
@@ -7885,6 +7969,11 @@ export type ListAgentsResponses = {
|
|
|
7885
7969
|
stopWhen?: {
|
|
7886
7970
|
maxSteps?: number
|
|
7887
7971
|
}
|
|
7972
|
+
context?: {
|
|
7973
|
+
windowTokens?: number
|
|
7974
|
+
reserveTokens?: number
|
|
7975
|
+
keepRecentTokens?: number
|
|
7976
|
+
}
|
|
7888
7977
|
}
|
|
7889
7978
|
}>
|
|
7890
7979
|
}
|
|
@@ -7926,6 +8015,11 @@ export type GetAgentResponses = {
|
|
|
7926
8015
|
stopWhen?: {
|
|
7927
8016
|
maxSteps?: number
|
|
7928
8017
|
}
|
|
8018
|
+
context?: {
|
|
8019
|
+
windowTokens?: number
|
|
8020
|
+
reserveTokens?: number
|
|
8021
|
+
keepRecentTokens?: number
|
|
8022
|
+
}
|
|
7929
8023
|
}
|
|
7930
8024
|
}
|
|
7931
8025
|
}
|
|
@@ -8346,6 +8440,11 @@ export type ListAgentThreadMessagesResponses = {
|
|
|
8346
8440
|
path?: string
|
|
8347
8441
|
message: string
|
|
8348
8442
|
}>
|
|
8443
|
+
compaction?: {
|
|
8444
|
+
checkpointId: string
|
|
8445
|
+
summary: string
|
|
8446
|
+
createdAt: string
|
|
8447
|
+
}
|
|
8349
8448
|
/**
|
|
8350
8449
|
* Any JSON-compatible value.
|
|
8351
8450
|
*/
|
|
@@ -9145,56 +9244,27 @@ export type GetAgentRunResponses = {
|
|
|
9145
9244
|
|
|
9146
9245
|
export type GetAgentRunResponse = GetAgentRunResponses[keyof GetAgentRunResponses]
|
|
9147
9246
|
|
|
9148
|
-
export type
|
|
9247
|
+
export type ListModelsData = {
|
|
9149
9248
|
body?: never
|
|
9150
|
-
path
|
|
9151
|
-
|
|
9152
|
-
|
|
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
|
-
}
|
|
9249
|
+
path?: never
|
|
9250
|
+
query?: never
|
|
9251
|
+
url: "/api/models"
|
|
9174
9252
|
}
|
|
9175
9253
|
|
|
9176
|
-
export type
|
|
9177
|
-
|
|
9178
|
-
export type ListObjectLinksResponses = {
|
|
9254
|
+
export type ListModelsResponses = {
|
|
9179
9255
|
/**
|
|
9180
9256
|
* Response for status 200
|
|
9181
9257
|
*/
|
|
9182
|
-
200:
|
|
9183
|
-
|
|
9184
|
-
|
|
9185
|
-
|
|
9186
|
-
|
|
9187
|
-
|
|
9188
|
-
|
|
9189
|
-
properties?: {
|
|
9190
|
-
[key: string]: unknown
|
|
9191
|
-
}
|
|
9192
|
-
createdAt: string
|
|
9193
|
-
updatedAt: string
|
|
9194
|
-
}>
|
|
9258
|
+
200: {
|
|
9259
|
+
language: Array<{
|
|
9260
|
+
provider: string
|
|
9261
|
+
modelId: string
|
|
9262
|
+
isDefault: boolean
|
|
9263
|
+
}>
|
|
9264
|
+
}
|
|
9195
9265
|
}
|
|
9196
9266
|
|
|
9197
|
-
export type
|
|
9267
|
+
export type ListModelsResponse = ListModelsResponses[keyof ListModelsResponses]
|
|
9198
9268
|
|
|
9199
9269
|
export type RemoveObjectLinkData = {
|
|
9200
9270
|
body?: never
|
|
@@ -10925,12 +10995,15 @@ export type ListProjectionsResponses = {
|
|
|
10925
10995
|
_tag: "TelemetryProjectionDefinition"
|
|
10926
10996
|
id: string
|
|
10927
10997
|
objectTypeId: string
|
|
10928
|
-
propertyId: string
|
|
10929
10998
|
datasetId: string
|
|
10930
10999
|
objectIdField: string
|
|
10931
11000
|
atField: string
|
|
10932
|
-
|
|
10933
|
-
|
|
11001
|
+
properties: {
|
|
11002
|
+
[key: string]: {
|
|
11003
|
+
valueField: string
|
|
11004
|
+
unitField?: string
|
|
11005
|
+
}
|
|
11006
|
+
}
|
|
10934
11007
|
latestRun:
|
|
10935
11008
|
| {
|
|
10936
11009
|
id: string
|
|
@@ -11487,12 +11560,15 @@ export type GetProjectionResponses = {
|
|
|
11487
11560
|
_tag: "TelemetryProjectionDefinition"
|
|
11488
11561
|
id: string
|
|
11489
11562
|
objectTypeId: string
|
|
11490
|
-
propertyId: string
|
|
11491
11563
|
datasetId: string
|
|
11492
11564
|
objectIdField: string
|
|
11493
11565
|
atField: string
|
|
11494
|
-
|
|
11495
|
-
|
|
11566
|
+
properties: {
|
|
11567
|
+
[key: string]: {
|
|
11568
|
+
valueField: string
|
|
11569
|
+
unitField?: string
|
|
11570
|
+
}
|
|
11571
|
+
}
|
|
11496
11572
|
latestRun:
|
|
11497
11573
|
| {
|
|
11498
11574
|
id: string
|