@sixb/client 0.2.1 → 0.2.3
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/artifact-live.d.ts +31 -0
- package/dist/artifact-live.d.ts.map +1 -0
- package/dist/artifact-live.js +67 -0
- package/dist/artifact-live.js.map +10 -0
- package/dist/browser.d.ts +5 -0
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +38 -17
- package/dist/browser.js.map +3 -3
- package/dist/{chunk-j9t5h44d.js → chunk-15ynvne0.js} +40 -28
- package/dist/{chunk-j9t5h44d.js.map → chunk-15ynvne0.js.map} +4 -4
- package/dist/{chunk-0p42gyb5.js → chunk-90q7wa43.js} +30 -21
- package/dist/chunk-90q7wa43.js.map +17 -0
- package/dist/{chunk-rrexv1gk.js → chunk-bgpzb1fn.js} +6 -6
- package/dist/{chunk-rrexv1gk.js.map → chunk-bgpzb1fn.js.map} +1 -1
- package/dist/{chunk-hkn0keqj.js → chunk-br10prhs.js} +4 -4
- package/dist/{chunk-hkn0keqj.js.map → chunk-br10prhs.js.map} +1 -1
- package/dist/chunk-hj4h6hw6.js +827 -0
- package/dist/chunk-hj4h6hw6.js.map +18 -0
- package/dist/{chunk-3kfn00we.js → chunk-ktqfenfd.js} +43 -11
- package/dist/chunk-ktqfenfd.js.map +10 -0
- package/dist/{chunk-r50kxqa5.js → chunk-seeyb9k9.js} +8 -6
- package/dist/{chunk-r50kxqa5.js.map → chunk-seeyb9k9.js.map} +2 -2
- package/dist/{chunk-m2rmbshc.js → chunk-y9mhb8x4.js} +3 -1
- package/dist/chunk-y9mhb8x4.js.map +10 -0
- package/dist/{chunk-k2na62sa.js → chunk-zerhr00d.js} +155 -832
- package/dist/chunk-zerhr00d.js.map +10 -0
- package/dist/client-authority.d.ts +11 -0
- package/dist/client-authority.d.ts.map +1 -1
- package/dist/connectors/connection.d.ts +8 -3
- package/dist/connectors/connection.d.ts.map +1 -1
- package/dist/connectors/mutations.d.ts +4 -0
- package/dist/connectors/mutations.d.ts.map +1 -1
- package/dist/connectors/queries.d.ts +98 -0
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/events-builder.d.ts +2 -0
- package/dist/events-builder.d.ts.map +1 -1
- package/dist/events-provider.d.ts.map +1 -1
- package/dist/events-transport.d.ts.map +1 -1
- package/dist/file.d.ts +8 -0
- package/dist/file.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +1439 -234
- 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 +85 -5
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +2717 -128
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.js +306 -57
- package/dist/hooks.js.map +7 -7
- package/dist/index.js +88 -56
- package/dist/index.js.map +1 -1
- package/dist/logs.js +6 -5
- package/dist/logs.js.map +1 -1
- package/dist/models.d.ts +5 -2
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +36 -6
- package/dist/models.js.map +1 -1
- package/dist/query.js +6 -5
- package/dist/query.js.map +1 -1
- package/dist/users-hooks.d.ts.map +1 -1
- package/dist/ws-socket.d.ts +17 -2
- package/dist/ws-socket.d.ts.map +1 -1
- package/package.json +8 -2
- package/src/artifact-live.ts +97 -0
- package/src/browser.ts +43 -5
- package/src/client-authority.ts +21 -0
- package/src/connectors/connection.ts +34 -12
- package/src/connectors/mutations.ts +8 -2
- package/src/connectors/queries.ts +6 -2
- package/src/events-builder.ts +9 -8
- package/src/events-provider.ts +13 -0
- package/src/events-transport.ts +3 -0
- package/src/file.ts +17 -0
- package/src/generated/@tanstack/react-query.gen.ts +458 -16
- package/src/generated/index.ts +90 -6
- package/src/generated/sdk.gen.ts +360 -11
- package/src/generated/types.gen.ts +3009 -227
- package/src/models.ts +6 -2
- package/src/ws-socket.ts +64 -10
- package/dist/chunk-0p42gyb5.js.map +0 -17
- package/dist/chunk-3kfn00we.js.map +0 -10
- package/dist/chunk-k2na62sa.js.map +0 -19
- package/dist/chunk-m2rmbshc.js.map +0 -10
package/dist/hooks.js
CHANGED
|
@@ -1,6 +1,48 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
client2
|
|
3
|
+
client2
|
|
4
|
+
} from "./chunk-hj4h6hw6.js";
|
|
5
|
+
import {
|
|
6
|
+
encodeObjectId2,
|
|
7
|
+
decodeObjectId2,
|
|
8
|
+
toObjectSummary2,
|
|
9
|
+
toObjectDetail2,
|
|
10
|
+
toTelemetryHistoryWithRange2
|
|
11
|
+
} from "./chunk-y9mhb8x4.js";
|
|
12
|
+
import {
|
|
13
|
+
SHARED_ACCESS_REALTIME_UNAVAILABLE,
|
|
14
|
+
hasClientSharedAuthority
|
|
15
|
+
} from "./chunk-15ynvne0.js";
|
|
16
|
+
import {
|
|
17
|
+
createSixbAgentsWebSocketUrl2,
|
|
18
|
+
createAgentRunSocket2,
|
|
19
|
+
createAgentActivitySocket2,
|
|
20
|
+
parseAgentRunStreamServerMessage2,
|
|
21
|
+
isSixbEvent2,
|
|
22
|
+
createEventSocket2,
|
|
23
|
+
createSixbEventsWebSocketUrl2,
|
|
24
|
+
parseEventStreamMessage2,
|
|
25
|
+
matchesSubscription2,
|
|
26
|
+
createWsSubscribeExecutor2,
|
|
27
|
+
buildEventPredicate2,
|
|
28
|
+
events2,
|
|
29
|
+
telemetryUpdateFromEvent2,
|
|
30
|
+
objectIdAliases2,
|
|
31
|
+
telemetryUpdateKey2,
|
|
32
|
+
ActionRunFailedError2,
|
|
33
|
+
isFailedActionRun,
|
|
34
|
+
uploadFile2
|
|
35
|
+
} from "./chunk-90q7wa43.js";
|
|
36
|
+
import {
|
|
37
|
+
isSixbApiError2
|
|
38
|
+
} from "./chunk-br10prhs.js";
|
|
39
|
+
import {
|
|
40
|
+
objectQueryReadsAny,
|
|
41
|
+
createHttpQueryExecutor2
|
|
42
|
+
} from "./chunk-bgpzb1fn.js";
|
|
43
|
+
import"./chunk-ktqfenfd.js";
|
|
44
|
+
import"./chunk-0ka9ykez.js";
|
|
45
|
+
import {
|
|
4
46
|
createDeviceAuthorization2,
|
|
5
47
|
exchangeDeviceAuthorization2,
|
|
6
48
|
refreshAuthSession2,
|
|
@@ -64,6 +106,7 @@ import {
|
|
|
64
106
|
getDatasetVersion2,
|
|
65
107
|
getDatasetVersionLineage2,
|
|
66
108
|
listDatasetRows2,
|
|
109
|
+
getLakeHealth2,
|
|
67
110
|
listSyncs2,
|
|
68
111
|
getSync2,
|
|
69
112
|
listSyncRuns2,
|
|
@@ -94,6 +137,7 @@ import {
|
|
|
94
137
|
revokeSharedAccessGrant2,
|
|
95
138
|
exchangeSharedAccess2,
|
|
96
139
|
getSharedAccessSession2,
|
|
140
|
+
setSharedAccessGuestName2,
|
|
97
141
|
signOutSharedAccess2,
|
|
98
142
|
listObjectTypes2,
|
|
99
143
|
getObjectType2,
|
|
@@ -139,6 +183,7 @@ import {
|
|
|
139
183
|
cancelAgentRunById2,
|
|
140
184
|
listAgentThreadChildren2,
|
|
141
185
|
getAgentChildFileContent2,
|
|
186
|
+
listAgentComputers2,
|
|
142
187
|
moveAgentThreadToCloud2,
|
|
143
188
|
moveAgentThreadToComputer2,
|
|
144
189
|
releaseAgentComputerSession2,
|
|
@@ -164,13 +209,24 @@ import {
|
|
|
164
209
|
createArtifact2,
|
|
165
210
|
deleteArtifact2,
|
|
166
211
|
getArtifact2,
|
|
212
|
+
listArtifactHolders2,
|
|
167
213
|
clearArtifactState2,
|
|
168
214
|
getArtifactState2,
|
|
169
215
|
deleteArtifactStateValue2,
|
|
170
216
|
setArtifactState2,
|
|
171
|
-
|
|
217
|
+
updateArtifact2,
|
|
218
|
+
freezeArtifactVersion2,
|
|
219
|
+
listArtifactComments2,
|
|
220
|
+
addArtifactComment2,
|
|
221
|
+
resolveArtifactComment2,
|
|
222
|
+
deleteArtifactComment2,
|
|
223
|
+
listArtifactRestorePoints2,
|
|
224
|
+
getArtifactRestorePoint2,
|
|
225
|
+
getArtifactRestorePointFileContent2,
|
|
226
|
+
restoreArtifact2,
|
|
172
227
|
createArtifactFrame2,
|
|
173
228
|
getArtifactVersion2,
|
|
229
|
+
getArtifactBoardPreview2,
|
|
174
230
|
getArtifactQuery2,
|
|
175
231
|
getArtifactFileContent2,
|
|
176
232
|
listModels2,
|
|
@@ -195,44 +251,7 @@ import {
|
|
|
195
251
|
listProjectionRuns2,
|
|
196
252
|
getProjectionRun2,
|
|
197
253
|
listWebhookRuns2
|
|
198
|
-
} from "./chunk-
|
|
199
|
-
import {
|
|
200
|
-
encodeObjectId2,
|
|
201
|
-
decodeObjectId2,
|
|
202
|
-
toObjectSummary2,
|
|
203
|
-
toObjectDetail2,
|
|
204
|
-
toTelemetryHistoryWithRange2
|
|
205
|
-
} from "./chunk-m2rmbshc.js";
|
|
206
|
-
import"./chunk-j9t5h44d.js";
|
|
207
|
-
import {
|
|
208
|
-
createSixbAgentsWebSocketUrl2,
|
|
209
|
-
createAgentRunSocket2,
|
|
210
|
-
createAgentActivitySocket2,
|
|
211
|
-
parseAgentRunStreamServerMessage2,
|
|
212
|
-
isSixbEvent2,
|
|
213
|
-
createEventSocket2,
|
|
214
|
-
createSixbEventsWebSocketUrl2,
|
|
215
|
-
parseEventStreamMessage2,
|
|
216
|
-
matchesSubscription2,
|
|
217
|
-
createWsSubscribeExecutor2,
|
|
218
|
-
buildEventPredicate2,
|
|
219
|
-
events2,
|
|
220
|
-
telemetryUpdateFromEvent2,
|
|
221
|
-
objectIdAliases2,
|
|
222
|
-
telemetryUpdateKey2,
|
|
223
|
-
ActionRunFailedError2,
|
|
224
|
-
isFailedActionRun,
|
|
225
|
-
uploadFile2
|
|
226
|
-
} from "./chunk-0p42gyb5.js";
|
|
227
|
-
import {
|
|
228
|
-
isSixbApiError2
|
|
229
|
-
} from "./chunk-hkn0keqj.js";
|
|
230
|
-
import {
|
|
231
|
-
objectQueryReadsAny,
|
|
232
|
-
createHttpQueryExecutor2
|
|
233
|
-
} from "./chunk-rrexv1gk.js";
|
|
234
|
-
import"./chunk-3kfn00we.js";
|
|
235
|
-
import"./chunk-0ka9ykez.js";
|
|
254
|
+
} from "./chunk-zerhr00d.js";
|
|
236
255
|
|
|
237
256
|
// src/hooks.ts
|
|
238
257
|
import { infiniteQueryOptions as infiniteQueryOptions3, queryOptions as queryOptions5 } from "@tanstack/react-query";
|
|
@@ -1222,6 +1241,19 @@ var listDatasetRowsInfiniteOptions = (options) => infiniteQueryOptions({
|
|
|
1222
1241
|
},
|
|
1223
1242
|
queryKey: listDatasetRowsInfiniteQueryKey(options)
|
|
1224
1243
|
});
|
|
1244
|
+
var getLakeHealthQueryKey = (options) => createQueryKey("getLakeHealth", options);
|
|
1245
|
+
var getLakeHealthOptions = (options) => queryOptions({
|
|
1246
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1247
|
+
const { data } = await getLakeHealth2({
|
|
1248
|
+
...options,
|
|
1249
|
+
...queryKey[0],
|
|
1250
|
+
signal,
|
|
1251
|
+
throwOnError: true
|
|
1252
|
+
});
|
|
1253
|
+
return data;
|
|
1254
|
+
},
|
|
1255
|
+
queryKey: getLakeHealthQueryKey(options)
|
|
1256
|
+
});
|
|
1225
1257
|
var listSyncsQueryKey = (options) => createQueryKey("listSyncs", options);
|
|
1226
1258
|
var listSyncsOptions = (options) => queryOptions({
|
|
1227
1259
|
queryFn: async ({ queryKey, signal }) => {
|
|
@@ -1726,6 +1758,19 @@ var getSharedAccessSessionOptions = (options) => queryOptions({
|
|
|
1726
1758
|
},
|
|
1727
1759
|
queryKey: getSharedAccessSessionQueryKey(options)
|
|
1728
1760
|
});
|
|
1761
|
+
var setSharedAccessGuestNameMutation = (options) => {
|
|
1762
|
+
const mutationOptions = {
|
|
1763
|
+
mutationFn: async (fnOptions) => {
|
|
1764
|
+
const { data } = await setSharedAccessGuestName2({
|
|
1765
|
+
...options,
|
|
1766
|
+
...fnOptions,
|
|
1767
|
+
throwOnError: true
|
|
1768
|
+
});
|
|
1769
|
+
return data;
|
|
1770
|
+
}
|
|
1771
|
+
};
|
|
1772
|
+
return mutationOptions;
|
|
1773
|
+
};
|
|
1729
1774
|
var signOutSharedAccessMutation = (options) => {
|
|
1730
1775
|
const mutationOptions = {
|
|
1731
1776
|
mutationFn: async (fnOptions) => {
|
|
@@ -2361,6 +2406,19 @@ var getAgentChildFileContentOptions = (options) => queryOptions({
|
|
|
2361
2406
|
},
|
|
2362
2407
|
queryKey: getAgentChildFileContentQueryKey(options)
|
|
2363
2408
|
});
|
|
2409
|
+
var listAgentComputersQueryKey = (options) => createQueryKey("listAgentComputers", options);
|
|
2410
|
+
var listAgentComputersOptions = (options) => queryOptions({
|
|
2411
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2412
|
+
const { data } = await listAgentComputers2({
|
|
2413
|
+
...options,
|
|
2414
|
+
...queryKey[0],
|
|
2415
|
+
signal,
|
|
2416
|
+
throwOnError: true
|
|
2417
|
+
});
|
|
2418
|
+
return data;
|
|
2419
|
+
},
|
|
2420
|
+
queryKey: listAgentComputersQueryKey(options)
|
|
2421
|
+
});
|
|
2364
2422
|
var moveAgentThreadToCloudMutation = (options) => {
|
|
2365
2423
|
const mutationOptions = {
|
|
2366
2424
|
mutationFn: async (fnOptions) => {
|
|
@@ -2800,6 +2858,19 @@ var getArtifactOptions = (options) => queryOptions({
|
|
|
2800
2858
|
},
|
|
2801
2859
|
queryKey: getArtifactQueryKey(options)
|
|
2802
2860
|
});
|
|
2861
|
+
var listArtifactHoldersQueryKey = (options) => createQueryKey("listArtifactHolders", options);
|
|
2862
|
+
var listArtifactHoldersOptions = (options) => queryOptions({
|
|
2863
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2864
|
+
const { data } = await listArtifactHolders2({
|
|
2865
|
+
...options,
|
|
2866
|
+
...queryKey[0],
|
|
2867
|
+
signal,
|
|
2868
|
+
throwOnError: true
|
|
2869
|
+
});
|
|
2870
|
+
return data;
|
|
2871
|
+
},
|
|
2872
|
+
queryKey: listArtifactHoldersQueryKey(options)
|
|
2873
|
+
});
|
|
2803
2874
|
var clearArtifactStateMutation = (options) => {
|
|
2804
2875
|
const mutationOptions = {
|
|
2805
2876
|
mutationFn: async (fnOptions) => {
|
|
@@ -2852,10 +2923,127 @@ var setArtifactStateMutation = (options) => {
|
|
|
2852
2923
|
};
|
|
2853
2924
|
return mutationOptions;
|
|
2854
2925
|
};
|
|
2855
|
-
var
|
|
2926
|
+
var updateArtifactMutation = (options) => {
|
|
2927
|
+
const mutationOptions = {
|
|
2928
|
+
mutationFn: async (fnOptions) => {
|
|
2929
|
+
const { data } = await updateArtifact2({
|
|
2930
|
+
...options,
|
|
2931
|
+
...fnOptions,
|
|
2932
|
+
throwOnError: true
|
|
2933
|
+
});
|
|
2934
|
+
return data;
|
|
2935
|
+
}
|
|
2936
|
+
};
|
|
2937
|
+
return mutationOptions;
|
|
2938
|
+
};
|
|
2939
|
+
var freezeArtifactVersionMutation = (options) => {
|
|
2940
|
+
const mutationOptions = {
|
|
2941
|
+
mutationFn: async (fnOptions) => {
|
|
2942
|
+
const { data } = await freezeArtifactVersion2({
|
|
2943
|
+
...options,
|
|
2944
|
+
...fnOptions,
|
|
2945
|
+
throwOnError: true
|
|
2946
|
+
});
|
|
2947
|
+
return data;
|
|
2948
|
+
}
|
|
2949
|
+
};
|
|
2950
|
+
return mutationOptions;
|
|
2951
|
+
};
|
|
2952
|
+
var listArtifactCommentsQueryKey = (options) => createQueryKey("listArtifactComments", options);
|
|
2953
|
+
var listArtifactCommentsOptions = (options) => queryOptions({
|
|
2954
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2955
|
+
const { data } = await listArtifactComments2({
|
|
2956
|
+
...options,
|
|
2957
|
+
...queryKey[0],
|
|
2958
|
+
signal,
|
|
2959
|
+
throwOnError: true
|
|
2960
|
+
});
|
|
2961
|
+
return data;
|
|
2962
|
+
},
|
|
2963
|
+
queryKey: listArtifactCommentsQueryKey(options)
|
|
2964
|
+
});
|
|
2965
|
+
var addArtifactCommentMutation = (options) => {
|
|
2966
|
+
const mutationOptions = {
|
|
2967
|
+
mutationFn: async (fnOptions) => {
|
|
2968
|
+
const { data } = await addArtifactComment2({
|
|
2969
|
+
...options,
|
|
2970
|
+
...fnOptions,
|
|
2971
|
+
throwOnError: true
|
|
2972
|
+
});
|
|
2973
|
+
return data;
|
|
2974
|
+
}
|
|
2975
|
+
};
|
|
2976
|
+
return mutationOptions;
|
|
2977
|
+
};
|
|
2978
|
+
var resolveArtifactCommentMutation = (options) => {
|
|
2979
|
+
const mutationOptions = {
|
|
2980
|
+
mutationFn: async (fnOptions) => {
|
|
2981
|
+
const { data } = await resolveArtifactComment2({
|
|
2982
|
+
...options,
|
|
2983
|
+
...fnOptions,
|
|
2984
|
+
throwOnError: true
|
|
2985
|
+
});
|
|
2986
|
+
return data;
|
|
2987
|
+
}
|
|
2988
|
+
};
|
|
2989
|
+
return mutationOptions;
|
|
2990
|
+
};
|
|
2991
|
+
var deleteArtifactCommentMutation = (options) => {
|
|
2992
|
+
const mutationOptions = {
|
|
2993
|
+
mutationFn: async (fnOptions) => {
|
|
2994
|
+
const { data } = await deleteArtifactComment2({
|
|
2995
|
+
...options,
|
|
2996
|
+
...fnOptions,
|
|
2997
|
+
throwOnError: true
|
|
2998
|
+
});
|
|
2999
|
+
return data;
|
|
3000
|
+
}
|
|
3001
|
+
};
|
|
3002
|
+
return mutationOptions;
|
|
3003
|
+
};
|
|
3004
|
+
var listArtifactRestorePointsQueryKey = (options) => createQueryKey("listArtifactRestorePoints", options);
|
|
3005
|
+
var listArtifactRestorePointsOptions = (options) => queryOptions({
|
|
3006
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3007
|
+
const { data } = await listArtifactRestorePoints2({
|
|
3008
|
+
...options,
|
|
3009
|
+
...queryKey[0],
|
|
3010
|
+
signal,
|
|
3011
|
+
throwOnError: true
|
|
3012
|
+
});
|
|
3013
|
+
return data;
|
|
3014
|
+
},
|
|
3015
|
+
queryKey: listArtifactRestorePointsQueryKey(options)
|
|
3016
|
+
});
|
|
3017
|
+
var getArtifactRestorePointQueryKey = (options) => createQueryKey("getArtifactRestorePoint", options);
|
|
3018
|
+
var getArtifactRestorePointOptions = (options) => queryOptions({
|
|
3019
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3020
|
+
const { data } = await getArtifactRestorePoint2({
|
|
3021
|
+
...options,
|
|
3022
|
+
...queryKey[0],
|
|
3023
|
+
signal,
|
|
3024
|
+
throwOnError: true
|
|
3025
|
+
});
|
|
3026
|
+
return data;
|
|
3027
|
+
},
|
|
3028
|
+
queryKey: getArtifactRestorePointQueryKey(options)
|
|
3029
|
+
});
|
|
3030
|
+
var getArtifactRestorePointFileContentQueryKey = (options) => createQueryKey("getArtifactRestorePointFileContent", options);
|
|
3031
|
+
var getArtifactRestorePointFileContentOptions = (options) => queryOptions({
|
|
3032
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3033
|
+
const { data } = await getArtifactRestorePointFileContent2({
|
|
3034
|
+
...options,
|
|
3035
|
+
...queryKey[0],
|
|
3036
|
+
signal,
|
|
3037
|
+
throwOnError: true
|
|
3038
|
+
});
|
|
3039
|
+
return data;
|
|
3040
|
+
},
|
|
3041
|
+
queryKey: getArtifactRestorePointFileContentQueryKey(options)
|
|
3042
|
+
});
|
|
3043
|
+
var restoreArtifactMutation = (options) => {
|
|
2856
3044
|
const mutationOptions = {
|
|
2857
3045
|
mutationFn: async (fnOptions) => {
|
|
2858
|
-
const { data } = await
|
|
3046
|
+
const { data } = await restoreArtifact2({
|
|
2859
3047
|
...options,
|
|
2860
3048
|
...fnOptions,
|
|
2861
3049
|
throwOnError: true
|
|
@@ -2891,6 +3079,19 @@ var getArtifactVersionOptions = (options) => queryOptions({
|
|
|
2891
3079
|
},
|
|
2892
3080
|
queryKey: getArtifactVersionQueryKey(options)
|
|
2893
3081
|
});
|
|
3082
|
+
var getArtifactBoardPreviewQueryKey = (options) => createQueryKey("getArtifactBoardPreview", options);
|
|
3083
|
+
var getArtifactBoardPreviewOptions = (options) => queryOptions({
|
|
3084
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3085
|
+
const { data } = await getArtifactBoardPreview2({
|
|
3086
|
+
...options,
|
|
3087
|
+
...queryKey[0],
|
|
3088
|
+
signal,
|
|
3089
|
+
throwOnError: true
|
|
3090
|
+
});
|
|
3091
|
+
return data;
|
|
3092
|
+
},
|
|
3093
|
+
queryKey: getArtifactBoardPreviewQueryKey(options)
|
|
3094
|
+
});
|
|
2894
3095
|
var getArtifactQueryQueryKey = (options) => createQueryKey("getArtifactQuery", options);
|
|
2895
3096
|
var getArtifactQueryOptions = (options) => queryOptions({
|
|
2896
3097
|
queryFn: async ({ queryKey, signal }) => {
|
|
@@ -3276,6 +3477,7 @@ function addConnectorConnectionMutationOptions(options) {
|
|
|
3276
3477
|
const {
|
|
3277
3478
|
connectorId,
|
|
3278
3479
|
fromConnectionId,
|
|
3480
|
+
owner,
|
|
3279
3481
|
slot,
|
|
3280
3482
|
client,
|
|
3281
3483
|
queryClient,
|
|
@@ -3293,7 +3495,7 @@ function addConnectorConnectionMutationOptions(options) {
|
|
|
3293
3495
|
const { data } = await addConnectorConnection2({
|
|
3294
3496
|
client,
|
|
3295
3497
|
path,
|
|
3296
|
-
body: { slot: nonblank(slot, "slot") },
|
|
3498
|
+
body: { ...owner === undefined ? {} : { owner }, slot: nonblank(slot, "slot") },
|
|
3297
3499
|
throwOnError: true
|
|
3298
3500
|
});
|
|
3299
3501
|
return data;
|
|
@@ -3316,7 +3518,7 @@ function useAddConnectorConnection(options) {
|
|
|
3316
3518
|
}));
|
|
3317
3519
|
}
|
|
3318
3520
|
function connectConnectorMutationOptions(options) {
|
|
3319
|
-
const { connectorId, slot, returnTo, client, ...mutationOptions } = options;
|
|
3521
|
+
const { connectorId, owner, slot, returnTo, client, ...mutationOptions } = options;
|
|
3320
3522
|
const normalizedConnectorId = nonblank(connectorId, "connectorId");
|
|
3321
3523
|
const normalizedSlot = nonblank(slot, "slot");
|
|
3322
3524
|
return {
|
|
@@ -3326,6 +3528,7 @@ function connectConnectorMutationOptions(options) {
|
|
|
3326
3528
|
client,
|
|
3327
3529
|
path: { connectorId: normalizedConnectorId },
|
|
3328
3530
|
body: {
|
|
3531
|
+
...owner === undefined ? {} : { owner },
|
|
3329
3532
|
slot: normalizedSlot,
|
|
3330
3533
|
returnTo: resolveReturnTo(returnTo)
|
|
3331
3534
|
},
|
|
@@ -3513,15 +3716,17 @@ import {
|
|
|
3513
3716
|
useQuery
|
|
3514
3717
|
} from "@tanstack/react-query";
|
|
3515
3718
|
function connectorConnectionsQueryOptions(options) {
|
|
3516
|
-
const { connectorId, client, ...queryOptionsInput } = options;
|
|
3719
|
+
const { connectorId, owner, client, ...queryOptionsInput } = options;
|
|
3517
3720
|
const path = { connectorId: nonblank2(connectorId, "connectorId") };
|
|
3721
|
+
const query = owner === undefined ? undefined : { owner };
|
|
3518
3722
|
return queryOptions2({
|
|
3519
3723
|
...queryOptionsInput,
|
|
3520
|
-
queryKey: listConnectorConnectionsQueryKey({ path }),
|
|
3724
|
+
queryKey: listConnectorConnectionsQueryKey({ path, query }),
|
|
3521
3725
|
queryFn: async ({ signal }) => {
|
|
3522
3726
|
const { data } = await listConnectorConnections2({
|
|
3523
3727
|
client,
|
|
3524
3728
|
path,
|
|
3729
|
+
query,
|
|
3525
3730
|
signal,
|
|
3526
3731
|
throwOnError: true
|
|
3527
3732
|
});
|
|
@@ -3587,7 +3792,8 @@ var CONNECTOR_CALLBACK_RUN_PARAM = "connectionRunId";
|
|
|
3587
3792
|
var RUN_POLL_INTERVAL_MS = 1000;
|
|
3588
3793
|
function useConnectorConnection({
|
|
3589
3794
|
connectorId,
|
|
3590
|
-
|
|
3795
|
+
owner = "project",
|
|
3796
|
+
slot = "default",
|
|
3591
3797
|
returnTo
|
|
3592
3798
|
}) {
|
|
3593
3799
|
const [callback, setCallback] = useState(readConnectorConnectionCallback);
|
|
@@ -3603,9 +3809,14 @@ function useConnectorConnection({
|
|
|
3603
3809
|
});
|
|
3604
3810
|
const recoveryPending = callbackRunId === null && pendingRunsQuery.isPending;
|
|
3605
3811
|
const recoveryError = callbackRunId === null ? pendingRunsQuery.error : null;
|
|
3606
|
-
const
|
|
3607
|
-
const
|
|
3608
|
-
const
|
|
3812
|
+
const ownerType = owner === "me" ? "user" : "project";
|
|
3813
|
+
const fillsSlot = useCallback((candidate) => candidate.owner.type === ownerType && candidate.slot === slot, [ownerType, slot]);
|
|
3814
|
+
const connectionsQuery = useConnectorConnections({
|
|
3815
|
+
connectorId,
|
|
3816
|
+
...owner === "me" ? { owner } : {}
|
|
3817
|
+
});
|
|
3818
|
+
const connection = useMemo(() => connectionsQuery.data?.find(fillsSlot), [connectionsQuery.data, fillsSlot]);
|
|
3819
|
+
const pendingRun = pendingRunsQuery.data?.find((run) => fillsSlot(run) && !dismissedRunIds.includes(run.id));
|
|
3609
3820
|
useEffect(() => {
|
|
3610
3821
|
if (callbackRunId === null && !connectionsQuery.isPending && !connectionsQuery.error && pendingRun)
|
|
3611
3822
|
setCallback({ connectorId, runId: pendingRun.id });
|
|
@@ -3615,9 +3826,14 @@ function useConnectorConnection({
|
|
|
3615
3826
|
runId: callbackRunId,
|
|
3616
3827
|
refetchInterval: (query) => isRunInProgress(query.state.data) ? RUN_POLL_INTERVAL_MS : false
|
|
3617
3828
|
});
|
|
3618
|
-
const resumedRun = runQuery.data
|
|
3829
|
+
const resumedRun = runQuery.data && fillsSlot(runQuery.data) ? runQuery.data : undefined;
|
|
3619
3830
|
const resolvedReturnTo = returnTo ?? connectorConnectionReturnTo();
|
|
3620
|
-
const connectMutation = useConnectConnector({
|
|
3831
|
+
const connectMutation = useConnectConnector({
|
|
3832
|
+
connectorId,
|
|
3833
|
+
...owner === "me" ? { owner } : {},
|
|
3834
|
+
slot,
|
|
3835
|
+
returnTo: resolvedReturnTo
|
|
3836
|
+
});
|
|
3621
3837
|
const reauthorizeMutation = useReauthorizeConnector({
|
|
3622
3838
|
connectorId,
|
|
3623
3839
|
connectionId: connection?.id ?? "",
|
|
@@ -3639,7 +3855,7 @@ function useConnectorConnection({
|
|
|
3639
3855
|
const result = await connectionsQuery.refetch();
|
|
3640
3856
|
if (result.error || !expectedCallback || !canConsume())
|
|
3641
3857
|
return;
|
|
3642
|
-
if (!result.data?.some(
|
|
3858
|
+
if (!result.data?.some(fillsSlot))
|
|
3643
3859
|
return;
|
|
3644
3860
|
await queryClient.invalidateQueries({
|
|
3645
3861
|
queryKey: listPendingConnectorConnectionRunsQueryKey({
|
|
@@ -3652,7 +3868,7 @@ function useConnectorConnection({
|
|
|
3652
3868
|
setDismissedRunIds((current) => [...current, expectedCallback.runId]);
|
|
3653
3869
|
clearConnectorConnectionCallback(expectedCallback);
|
|
3654
3870
|
setCallback((current) => sameConnectorConnectionCallback(current, expectedCallback) ? null : current);
|
|
3655
|
-
}, [connectionsQuery.refetch,
|
|
3871
|
+
}, [connectionsQuery.refetch, fillsSlot, queryClient, connectorId, providerClient]);
|
|
3656
3872
|
const completedRunId = resumedRun?.status === "succeeded" ? resumedRun.id : null;
|
|
3657
3873
|
useEffect(() => {
|
|
3658
3874
|
if (!completedRunId || !callback)
|
|
@@ -3705,7 +3921,7 @@ function useConnectorConnection({
|
|
|
3705
3921
|
let completedCallback;
|
|
3706
3922
|
if (callbackRunId !== null) {
|
|
3707
3923
|
const runResult = await runQuery.refetch();
|
|
3708
|
-
if (!runResult.error && runResult.data
|
|
3924
|
+
if (!runResult.error && runResult.data !== undefined && fillsSlot(runResult.data) && runResult.data.status === "succeeded" && sameConnectorConnectionCallback(callback, {
|
|
3709
3925
|
connectorId,
|
|
3710
3926
|
runId: runResult.data.id
|
|
3711
3927
|
})) {
|
|
@@ -3930,6 +4146,17 @@ function createEventsRegistry(options = {}) {
|
|
|
3930
4146
|
};
|
|
3931
4147
|
return {
|
|
3932
4148
|
register(filter, handler, registrationOptions) {
|
|
4149
|
+
if (hasClientSharedAuthority(client2) && filter.topic !== "artifacts") {
|
|
4150
|
+
registrationOptions?.onError?.(SHARED_ACCESS_REALTIME_UNAVAILABLE);
|
|
4151
|
+
registrationOptions?.onStateChange?.({
|
|
4152
|
+
connected: false,
|
|
4153
|
+
reconnecting: false,
|
|
4154
|
+
error: SHARED_ACCESS_REALTIME_UNAVAILABLE
|
|
4155
|
+
});
|
|
4156
|
+
return () => {
|
|
4157
|
+
return;
|
|
4158
|
+
};
|
|
4159
|
+
}
|
|
3933
4160
|
cancelPendingClose();
|
|
3934
4161
|
const subscriber = {
|
|
3935
4162
|
matches: buildEventPredicate2(filter),
|
|
@@ -5274,6 +5501,7 @@ export {
|
|
|
5274
5501
|
abortFileUploadMutation,
|
|
5275
5502
|
actionRunMutationOptions,
|
|
5276
5503
|
addAgentThreadParticipantsMutation,
|
|
5504
|
+
addArtifactCommentMutation,
|
|
5277
5505
|
addConnectorConnectionMutation,
|
|
5278
5506
|
addConnectorConnectionMutationOptions,
|
|
5279
5507
|
buildEventPredicate2 as buildEventPredicate,
|
|
@@ -5310,6 +5538,7 @@ export {
|
|
|
5310
5538
|
decideAgentApprovalMutation,
|
|
5311
5539
|
deleteAgentMemoryMutation,
|
|
5312
5540
|
deleteAiLimitPolicyMutation,
|
|
5541
|
+
deleteArtifactCommentMutation,
|
|
5313
5542
|
deleteArtifactMutation,
|
|
5314
5543
|
deleteArtifactStateValueMutation,
|
|
5315
5544
|
disableAuthServiceAccountMutation,
|
|
@@ -5321,6 +5550,7 @@ export {
|
|
|
5321
5550
|
existsObjectsMutation,
|
|
5322
5551
|
facetObjectsMutation,
|
|
5323
5552
|
forkAgentThreadMutation,
|
|
5553
|
+
freezeArtifactVersionMutation,
|
|
5324
5554
|
generateImagesMutation,
|
|
5325
5555
|
generateSpeechMutation,
|
|
5326
5556
|
generateTextMutation,
|
|
@@ -5364,12 +5594,18 @@ export {
|
|
|
5364
5594
|
getAiModelCallFileContentQueryKey,
|
|
5365
5595
|
getAiModelCallFilesOptions,
|
|
5366
5596
|
getAiModelCallFilesQueryKey,
|
|
5597
|
+
getArtifactBoardPreviewOptions,
|
|
5598
|
+
getArtifactBoardPreviewQueryKey,
|
|
5367
5599
|
getArtifactFileContentOptions,
|
|
5368
5600
|
getArtifactFileContentQueryKey,
|
|
5369
5601
|
getArtifactOptions,
|
|
5370
5602
|
getArtifactQueryKey,
|
|
5371
5603
|
getArtifactQueryOptions,
|
|
5372
5604
|
getArtifactQueryQueryKey,
|
|
5605
|
+
getArtifactRestorePointFileContentOptions,
|
|
5606
|
+
getArtifactRestorePointFileContentQueryKey,
|
|
5607
|
+
getArtifactRestorePointOptions,
|
|
5608
|
+
getArtifactRestorePointQueryKey,
|
|
5373
5609
|
getArtifactStateOptions,
|
|
5374
5610
|
getArtifactStateQueryKey,
|
|
5375
5611
|
getArtifactVersionOptions,
|
|
@@ -5395,6 +5631,8 @@ export {
|
|
|
5395
5631
|
getDatasetVersionLineageQueryKey,
|
|
5396
5632
|
getDatasetVersionOptions,
|
|
5397
5633
|
getDatasetVersionQueryKey,
|
|
5634
|
+
getLakeHealthOptions,
|
|
5635
|
+
getLakeHealthQueryKey,
|
|
5398
5636
|
getLatestTelemetryOptions,
|
|
5399
5637
|
getLatestTelemetryQueryKey,
|
|
5400
5638
|
getObjectByUniquePropertyMutation,
|
|
@@ -5476,6 +5714,8 @@ export {
|
|
|
5476
5714
|
listAgentApprovalsInfiniteQueryKey,
|
|
5477
5715
|
listAgentApprovalsOptions,
|
|
5478
5716
|
listAgentApprovalsQueryKey,
|
|
5717
|
+
listAgentComputersOptions,
|
|
5718
|
+
listAgentComputersQueryKey,
|
|
5479
5719
|
listAgentMemoryRevisionsInfiniteOptions,
|
|
5480
5720
|
listAgentMemoryRevisionsInfiniteQueryKey,
|
|
5481
5721
|
listAgentMemoryRevisionsOptions,
|
|
@@ -5508,6 +5748,12 @@ export {
|
|
|
5508
5748
|
listAiModelCallsInfiniteQueryKey,
|
|
5509
5749
|
listAiModelCallsOptions,
|
|
5510
5750
|
listAiModelCallsQueryKey,
|
|
5751
|
+
listArtifactCommentsOptions,
|
|
5752
|
+
listArtifactCommentsQueryKey,
|
|
5753
|
+
listArtifactHoldersOptions,
|
|
5754
|
+
listArtifactHoldersQueryKey,
|
|
5755
|
+
listArtifactRestorePointsOptions,
|
|
5756
|
+
listArtifactRestorePointsQueryKey,
|
|
5511
5757
|
listArtifactsInfiniteOptions,
|
|
5512
5758
|
listArtifactsInfiniteQueryKey,
|
|
5513
5759
|
listArtifactsOptions,
|
|
@@ -5629,7 +5875,6 @@ export {
|
|
|
5629
5875
|
parseAgentRunStreamServerMessage2 as parseAgentRunStreamServerMessage,
|
|
5630
5876
|
parseEventStreamMessage2 as parseEventStreamMessage,
|
|
5631
5877
|
postAgentThreadMessageMutation,
|
|
5632
|
-
publishArtifactVersionMutation,
|
|
5633
5878
|
queryObjectLinksMutation,
|
|
5634
5879
|
queryObjectsMutation,
|
|
5635
5880
|
reactivateAuthMemberMutation,
|
|
@@ -5643,6 +5888,8 @@ export {
|
|
|
5643
5888
|
requestPipelineRunMutation,
|
|
5644
5889
|
requestSyncRunMutation,
|
|
5645
5890
|
requestWorkflowRunMutation,
|
|
5891
|
+
resolveArtifactCommentMutation,
|
|
5892
|
+
restoreArtifactMutation,
|
|
5646
5893
|
retryAgentRunMutation,
|
|
5647
5894
|
revokeAuthAccessTokenMutation,
|
|
5648
5895
|
revokeAuthInvitationMutation,
|
|
@@ -5658,6 +5905,7 @@ export {
|
|
|
5658
5905
|
selectConnectorConnectionRunAccountMutation,
|
|
5659
5906
|
setAgentThreadApprovalModeMutation,
|
|
5660
5907
|
setArtifactStateMutation,
|
|
5908
|
+
setSharedAccessGuestNameMutation,
|
|
5661
5909
|
signFileUploadPartMutation,
|
|
5662
5910
|
signOutAllMutation,
|
|
5663
5911
|
signOutMutation,
|
|
@@ -5673,6 +5921,7 @@ export {
|
|
|
5673
5921
|
transcribeAudioMutation,
|
|
5674
5922
|
updateAgentPreferencesMutation,
|
|
5675
5923
|
updateAiLimitPolicyMutation,
|
|
5924
|
+
updateArtifactMutation,
|
|
5676
5925
|
updateAuthMemberGroupsMutation,
|
|
5677
5926
|
updateAuthProfileMutation,
|
|
5678
5927
|
uploadFileContentMutation,
|
|
@@ -5711,4 +5960,4 @@ export {
|
|
|
5711
5960
|
usersQueryOptions
|
|
5712
5961
|
};
|
|
5713
5962
|
|
|
5714
|
-
//# debugId=
|
|
5963
|
+
//# debugId=5DCDF53148520CA964756E2164756E21
|