@sixb/client 0.1.1 → 0.1.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/README.md +2 -2
- package/dist/agent-streams.d.ts +26 -3
- package/dist/agent-streams.d.ts.map +1 -1
- package/dist/api.d.ts +6 -2
- package/dist/api.d.ts.map +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +2 -2
- package/dist/browser.js.map +1 -1
- package/dist/{chunk-2vsyqn32.js → chunk-6esh0dxx.js} +1 -1
- package/dist/{chunk-hkrfakyt.js → chunk-7ts981a8.js} +2 -2
- package/dist/{chunk-h8bd95xf.js → chunk-eyd61e4t.js} +55 -2
- package/dist/chunk-eyd61e4t.js.map +19 -0
- package/dist/{chunk-1mnf48s9.js → chunk-heqezbjc.js} +2 -2
- package/dist/{chunk-dkd2wgva.js → chunk-hfk246y4.js} +40 -28
- package/dist/{chunk-dkd2wgva.js.map → chunk-hfk246y4.js.map} +3 -3
- package/dist/{chunk-w527w02k.js → chunk-mpgzkmwc.js} +2 -74
- package/dist/chunk-mpgzkmwc.js.map +10 -0
- package/dist/{chunk-6w5w9e75.js → chunk-yjank04c.js} +27 -12
- package/dist/chunk-yjank04c.js.map +10 -0
- package/dist/client-provider.d.ts +8 -0
- package/dist/client-provider.d.ts.map +1 -0
- package/dist/connectors/connection.d.ts +50 -0
- package/dist/connectors/connection.d.ts.map +1 -0
- package/dist/connectors/index.d.ts +4 -0
- package/dist/connectors/index.d.ts.map +1 -0
- package/dist/connectors/mutations.d.ts +62 -0
- package/dist/connectors/mutations.d.ts.map +1 -0
- package/dist/connectors/queries.d.ts +536 -0
- package/dist/connectors/queries.d.ts.map +1 -0
- package/dist/generated/@tanstack/react-query.gen.d.ts +5679 -809
- 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 +41 -1
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +2330 -218
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.d.ts +2 -0
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +1180 -360
- package/dist/hooks.js.map +11 -6
- package/dist/index.js +29 -11
- package/dist/index.js.map +1 -1
- package/dist/logs.js +3 -3
- package/dist/models.d.ts +0 -31
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +23 -7
- package/dist/models.js.map +1 -1
- package/dist/query-hooks.d.ts +2 -6
- package/dist/query-hooks.d.ts.map +1 -1
- package/dist/query.js +3 -3
- package/dist/useAgentActivityStream.d.ts +14 -0
- package/dist/useAgentActivityStream.d.ts.map +1 -0
- package/package.json +6 -2
- package/src/agent-streams.ts +68 -45
- package/src/api.ts +26 -2
- package/src/browser.ts +1 -1
- package/src/client-provider.ts +12 -0
- package/src/connectors/connection.ts +443 -0
- package/src/connectors/index.ts +12 -0
- package/src/connectors/mutations.ts +417 -0
- package/src/connectors/queries.ts +150 -0
- package/src/generated/@tanstack/react-query.gen.ts +346 -0
- package/src/generated/index.ts +60 -0
- package/src/generated/sdk.gen.ts +189 -0
- package/src/generated/types.gen.ts +3048 -254
- package/src/hooks.ts +6 -0
- package/src/models.ts +0 -103
- package/src/query-hooks.ts +8 -14
- package/src/useAgentActivityStream.ts +48 -0
- package/dist/chunk-6w5w9e75.js.map +0 -10
- package/dist/chunk-h8bd95xf.js.map +0 -19
- package/dist/chunk-w527w02k.js.map +0 -10
- /package/dist/{chunk-2vsyqn32.js.map → chunk-6esh0dxx.js.map} +0 -0
- /package/dist/{chunk-hkrfakyt.js.map → chunk-7ts981a8.js.map} +0 -0
- /package/dist/{chunk-1mnf48s9.js.map → chunk-heqezbjc.js.map} +0 -0
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
import { client } from "../client.gen"
|
|
12
12
|
import {
|
|
13
13
|
abortFileUpload,
|
|
14
|
+
addConnectorConnection,
|
|
14
15
|
appendTelemetry,
|
|
15
16
|
cancelAgentRun,
|
|
16
17
|
cancelWorkflowIntervention,
|
|
@@ -24,6 +25,7 @@ import {
|
|
|
24
25
|
createAuthServiceAccountAccessToken,
|
|
25
26
|
createFileUpload,
|
|
26
27
|
disableAuthServiceAccount,
|
|
28
|
+
disconnectConnectorConnection,
|
|
27
29
|
existsObjects,
|
|
28
30
|
facetObjects,
|
|
29
31
|
getAction,
|
|
@@ -33,12 +35,14 @@ import {
|
|
|
33
35
|
getAgentMessageFileContent,
|
|
34
36
|
getAgentRun,
|
|
35
37
|
getAgentThread,
|
|
38
|
+
getAiAccountingOverview,
|
|
36
39
|
getAuthAccessManagementOptions,
|
|
37
40
|
getAuthInvitationOptions,
|
|
38
41
|
getAuthMembershipOptions,
|
|
39
42
|
getAuthSession,
|
|
40
43
|
getBulkTelemetryHistory,
|
|
41
44
|
getConnector,
|
|
45
|
+
getConnectorConnectionRun,
|
|
42
46
|
getDataset,
|
|
43
47
|
getDatasetVersion,
|
|
44
48
|
getLatestTelemetry,
|
|
@@ -66,12 +70,14 @@ import {
|
|
|
66
70
|
listAgentThreadMessages,
|
|
67
71
|
listAgentThreadRuns,
|
|
68
72
|
listAgentThreads,
|
|
73
|
+
listAiModelCalls,
|
|
69
74
|
listAuthAccessTokens,
|
|
70
75
|
listAuthInvitations,
|
|
71
76
|
listAuthMembers,
|
|
72
77
|
listAuthServiceAccountAccessTokens,
|
|
73
78
|
listAuthServiceAccounts,
|
|
74
79
|
listAuthSessions,
|
|
80
|
+
listConnectorConnections,
|
|
75
81
|
listConnectors,
|
|
76
82
|
listDatasetRows,
|
|
77
83
|
listDatasets,
|
|
@@ -97,6 +103,7 @@ import {
|
|
|
97
103
|
postAgentThreadMessage,
|
|
98
104
|
queryObjects,
|
|
99
105
|
reactivateAuthMember,
|
|
106
|
+
reauthorizeConnectorConnection,
|
|
100
107
|
removeObjectLink,
|
|
101
108
|
requestAction,
|
|
102
109
|
requestPipelineRun,
|
|
@@ -107,10 +114,13 @@ import {
|
|
|
107
114
|
revokeAuthInvitation,
|
|
108
115
|
revokeAuthServiceAccountAccessToken,
|
|
109
116
|
revokeAuthSession,
|
|
117
|
+
revokeConnectorConnection,
|
|
110
118
|
searchObjects,
|
|
119
|
+
selectConnectorConnectionRunAccount,
|
|
111
120
|
signFileUploadPart,
|
|
112
121
|
signOut,
|
|
113
122
|
signOutAll,
|
|
123
|
+
startConnectorConnectionRun,
|
|
114
124
|
submitWorkflowIntervention,
|
|
115
125
|
suspendAuthMember,
|
|
116
126
|
updateAuthMemberGroups,
|
|
@@ -123,6 +133,9 @@ import type {
|
|
|
123
133
|
AbortFileUploadData,
|
|
124
134
|
AbortFileUploadError,
|
|
125
135
|
AbortFileUploadResponse,
|
|
136
|
+
AddConnectorConnectionData,
|
|
137
|
+
AddConnectorConnectionError,
|
|
138
|
+
AddConnectorConnectionResponse,
|
|
126
139
|
AppendTelemetryData,
|
|
127
140
|
AppendTelemetryError,
|
|
128
141
|
AppendTelemetryResponse,
|
|
@@ -162,6 +175,9 @@ import type {
|
|
|
162
175
|
DisableAuthServiceAccountData,
|
|
163
176
|
DisableAuthServiceAccountError,
|
|
164
177
|
DisableAuthServiceAccountResponse,
|
|
178
|
+
DisconnectConnectorConnectionData,
|
|
179
|
+
DisconnectConnectorConnectionError,
|
|
180
|
+
DisconnectConnectorConnectionResponse,
|
|
165
181
|
ExistsObjectsData,
|
|
166
182
|
ExistsObjectsError,
|
|
167
183
|
ExistsObjectsResponse,
|
|
@@ -189,6 +205,9 @@ import type {
|
|
|
189
205
|
GetAgentThreadData,
|
|
190
206
|
GetAgentThreadError,
|
|
191
207
|
GetAgentThreadResponse,
|
|
208
|
+
GetAiAccountingOverviewData,
|
|
209
|
+
GetAiAccountingOverviewError,
|
|
210
|
+
GetAiAccountingOverviewResponse,
|
|
192
211
|
GetAuthAccessManagementOptionsData,
|
|
193
212
|
GetAuthAccessManagementOptionsError,
|
|
194
213
|
GetAuthAccessManagementOptionsResponse,
|
|
@@ -203,6 +222,9 @@ import type {
|
|
|
203
222
|
GetBulkTelemetryHistoryData,
|
|
204
223
|
GetBulkTelemetryHistoryError,
|
|
205
224
|
GetBulkTelemetryHistoryResponse,
|
|
225
|
+
GetConnectorConnectionRunData,
|
|
226
|
+
GetConnectorConnectionRunError,
|
|
227
|
+
GetConnectorConnectionRunResponse,
|
|
206
228
|
GetConnectorData,
|
|
207
229
|
GetConnectorError,
|
|
208
230
|
GetConnectorResponse,
|
|
@@ -283,6 +305,9 @@ import type {
|
|
|
283
305
|
ListAgentThreadsData,
|
|
284
306
|
ListAgentThreadsError,
|
|
285
307
|
ListAgentThreadsResponse,
|
|
308
|
+
ListAiModelCallsData,
|
|
309
|
+
ListAiModelCallsError,
|
|
310
|
+
ListAiModelCallsResponse,
|
|
286
311
|
ListAuthAccessTokensData,
|
|
287
312
|
ListAuthAccessTokensError,
|
|
288
313
|
ListAuthAccessTokensResponse,
|
|
@@ -301,6 +326,9 @@ import type {
|
|
|
301
326
|
ListAuthSessionsData,
|
|
302
327
|
ListAuthSessionsError,
|
|
303
328
|
ListAuthSessionsResponse,
|
|
329
|
+
ListConnectorConnectionsData,
|
|
330
|
+
ListConnectorConnectionsError,
|
|
331
|
+
ListConnectorConnectionsResponse,
|
|
304
332
|
ListConnectorsData,
|
|
305
333
|
ListConnectorsResponse,
|
|
306
334
|
ListDatasetRowsData,
|
|
@@ -366,6 +394,9 @@ import type {
|
|
|
366
394
|
ReactivateAuthMemberData,
|
|
367
395
|
ReactivateAuthMemberError,
|
|
368
396
|
ReactivateAuthMemberResponse,
|
|
397
|
+
ReauthorizeConnectorConnectionData,
|
|
398
|
+
ReauthorizeConnectorConnectionError,
|
|
399
|
+
ReauthorizeConnectorConnectionResponse,
|
|
369
400
|
RemoveObjectLinkData,
|
|
370
401
|
RemoveObjectLinkError,
|
|
371
402
|
RemoveObjectLinkResponse,
|
|
@@ -396,9 +427,15 @@ import type {
|
|
|
396
427
|
RevokeAuthSessionData,
|
|
397
428
|
RevokeAuthSessionError,
|
|
398
429
|
RevokeAuthSessionResponse,
|
|
430
|
+
RevokeConnectorConnectionData,
|
|
431
|
+
RevokeConnectorConnectionError,
|
|
432
|
+
RevokeConnectorConnectionResponse,
|
|
399
433
|
SearchObjectsData,
|
|
400
434
|
SearchObjectsError,
|
|
401
435
|
SearchObjectsResponse,
|
|
436
|
+
SelectConnectorConnectionRunAccountData,
|
|
437
|
+
SelectConnectorConnectionRunAccountError,
|
|
438
|
+
SelectConnectorConnectionRunAccountResponse,
|
|
402
439
|
SignFileUploadPartData,
|
|
403
440
|
SignFileUploadPartError,
|
|
404
441
|
SignFileUploadPartResponse,
|
|
@@ -408,6 +445,9 @@ import type {
|
|
|
408
445
|
SignOutData,
|
|
409
446
|
SignOutError,
|
|
410
447
|
SignOutResponse,
|
|
448
|
+
StartConnectorConnectionRunData,
|
|
449
|
+
StartConnectorConnectionRunError,
|
|
450
|
+
StartConnectorConnectionRunResponse,
|
|
411
451
|
SubmitWorkflowInterventionData,
|
|
412
452
|
SubmitWorkflowInterventionError,
|
|
413
453
|
SubmitWorkflowInterventionResponse,
|
|
@@ -1214,6 +1254,99 @@ export const reactivateAuthMemberMutation = (
|
|
|
1214
1254
|
return mutationOptions
|
|
1215
1255
|
}
|
|
1216
1256
|
|
|
1257
|
+
export const getAiAccountingOverviewQueryKey = (options: Options<GetAiAccountingOverviewData>) =>
|
|
1258
|
+
createQueryKey("getAiAccountingOverview", options)
|
|
1259
|
+
|
|
1260
|
+
/**
|
|
1261
|
+
* Get project AI usage and cost analytics
|
|
1262
|
+
*/
|
|
1263
|
+
export const getAiAccountingOverviewOptions = (options: Options<GetAiAccountingOverviewData>) =>
|
|
1264
|
+
queryOptions<
|
|
1265
|
+
GetAiAccountingOverviewResponse,
|
|
1266
|
+
GetAiAccountingOverviewError,
|
|
1267
|
+
GetAiAccountingOverviewResponse,
|
|
1268
|
+
ReturnType<typeof getAiAccountingOverviewQueryKey>
|
|
1269
|
+
>({
|
|
1270
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1271
|
+
const { data } = await getAiAccountingOverview({
|
|
1272
|
+
...options,
|
|
1273
|
+
...queryKey[0],
|
|
1274
|
+
signal,
|
|
1275
|
+
throwOnError: true,
|
|
1276
|
+
})
|
|
1277
|
+
return data
|
|
1278
|
+
},
|
|
1279
|
+
queryKey: getAiAccountingOverviewQueryKey(options),
|
|
1280
|
+
})
|
|
1281
|
+
|
|
1282
|
+
export const listAiModelCallsQueryKey = (options: Options<ListAiModelCallsData>) =>
|
|
1283
|
+
createQueryKey("listAiModelCalls", options)
|
|
1284
|
+
|
|
1285
|
+
/**
|
|
1286
|
+
* List project AI model-call accounting records
|
|
1287
|
+
*/
|
|
1288
|
+
export const listAiModelCallsOptions = (options: Options<ListAiModelCallsData>) =>
|
|
1289
|
+
queryOptions<
|
|
1290
|
+
ListAiModelCallsResponse,
|
|
1291
|
+
ListAiModelCallsError,
|
|
1292
|
+
ListAiModelCallsResponse,
|
|
1293
|
+
ReturnType<typeof listAiModelCallsQueryKey>
|
|
1294
|
+
>({
|
|
1295
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1296
|
+
const { data } = await listAiModelCalls({
|
|
1297
|
+
...options,
|
|
1298
|
+
...queryKey[0],
|
|
1299
|
+
signal,
|
|
1300
|
+
throwOnError: true,
|
|
1301
|
+
})
|
|
1302
|
+
return data
|
|
1303
|
+
},
|
|
1304
|
+
queryKey: listAiModelCallsQueryKey(options),
|
|
1305
|
+
})
|
|
1306
|
+
|
|
1307
|
+
export const listAiModelCallsInfiniteQueryKey = (
|
|
1308
|
+
options: Options<ListAiModelCallsData>
|
|
1309
|
+
): QueryKey<Options<ListAiModelCallsData>> => createQueryKey("listAiModelCalls", options, true)
|
|
1310
|
+
|
|
1311
|
+
/**
|
|
1312
|
+
* List project AI model-call accounting records
|
|
1313
|
+
*/
|
|
1314
|
+
export const listAiModelCallsInfiniteOptions = (options: Options<ListAiModelCallsData>) =>
|
|
1315
|
+
infiniteQueryOptions<
|
|
1316
|
+
ListAiModelCallsResponse,
|
|
1317
|
+
ListAiModelCallsError,
|
|
1318
|
+
InfiniteData<ListAiModelCallsResponse>,
|
|
1319
|
+
QueryKey<Options<ListAiModelCallsData>>,
|
|
1320
|
+
string | Pick<QueryKey<Options<ListAiModelCallsData>>[0], "body" | "headers" | "path" | "query">
|
|
1321
|
+
>(
|
|
1322
|
+
// @ts-ignore
|
|
1323
|
+
{
|
|
1324
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1325
|
+
// @ts-ignore
|
|
1326
|
+
const page: Pick<
|
|
1327
|
+
QueryKey<Options<ListAiModelCallsData>>[0],
|
|
1328
|
+
"body" | "headers" | "path" | "query"
|
|
1329
|
+
> =
|
|
1330
|
+
typeof pageParam === "object"
|
|
1331
|
+
? pageParam
|
|
1332
|
+
: {
|
|
1333
|
+
query: {
|
|
1334
|
+
offset: pageParam,
|
|
1335
|
+
},
|
|
1336
|
+
}
|
|
1337
|
+
const params = createInfiniteParams(queryKey, page)
|
|
1338
|
+
const { data } = await listAiModelCalls({
|
|
1339
|
+
...options,
|
|
1340
|
+
...params,
|
|
1341
|
+
signal,
|
|
1342
|
+
throwOnError: true,
|
|
1343
|
+
})
|
|
1344
|
+
return data
|
|
1345
|
+
},
|
|
1346
|
+
queryKey: listAiModelCallsInfiniteQueryKey(options),
|
|
1347
|
+
}
|
|
1348
|
+
)
|
|
1349
|
+
|
|
1217
1350
|
export const getProjectInfoQueryKey = (options?: Options<GetProjectInfoData>) =>
|
|
1218
1351
|
createQueryKey("getProjectInfo", options)
|
|
1219
1352
|
|
|
@@ -1314,6 +1447,219 @@ export const getConnectorOptions = (options: Options<GetConnectorData>) =>
|
|
|
1314
1447
|
queryKey: getConnectorQueryKey(options),
|
|
1315
1448
|
})
|
|
1316
1449
|
|
|
1450
|
+
export const listConnectorConnectionsQueryKey = (options: Options<ListConnectorConnectionsData>) =>
|
|
1451
|
+
createQueryKey("listConnectorConnections", options)
|
|
1452
|
+
|
|
1453
|
+
/**
|
|
1454
|
+
* List connector connections
|
|
1455
|
+
*/
|
|
1456
|
+
export const listConnectorConnectionsOptions = (options: Options<ListConnectorConnectionsData>) =>
|
|
1457
|
+
queryOptions<
|
|
1458
|
+
ListConnectorConnectionsResponse,
|
|
1459
|
+
ListConnectorConnectionsError,
|
|
1460
|
+
ListConnectorConnectionsResponse,
|
|
1461
|
+
ReturnType<typeof listConnectorConnectionsQueryKey>
|
|
1462
|
+
>({
|
|
1463
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1464
|
+
const { data } = await listConnectorConnections({
|
|
1465
|
+
...options,
|
|
1466
|
+
...queryKey[0],
|
|
1467
|
+
signal,
|
|
1468
|
+
throwOnError: true,
|
|
1469
|
+
})
|
|
1470
|
+
return data
|
|
1471
|
+
},
|
|
1472
|
+
queryKey: listConnectorConnectionsQueryKey(options),
|
|
1473
|
+
})
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* Disconnect a connector account
|
|
1477
|
+
*/
|
|
1478
|
+
export const disconnectConnectorConnectionMutation = (
|
|
1479
|
+
options?: Partial<Options<DisconnectConnectorConnectionData>>
|
|
1480
|
+
): UseMutationOptions<
|
|
1481
|
+
DisconnectConnectorConnectionResponse,
|
|
1482
|
+
DisconnectConnectorConnectionError,
|
|
1483
|
+
Options<DisconnectConnectorConnectionData>
|
|
1484
|
+
> => {
|
|
1485
|
+
const mutationOptions: UseMutationOptions<
|
|
1486
|
+
DisconnectConnectorConnectionResponse,
|
|
1487
|
+
DisconnectConnectorConnectionError,
|
|
1488
|
+
Options<DisconnectConnectorConnectionData>
|
|
1489
|
+
> = {
|
|
1490
|
+
mutationFn: async (fnOptions) => {
|
|
1491
|
+
const { data } = await disconnectConnectorConnection({
|
|
1492
|
+
...options,
|
|
1493
|
+
...fnOptions,
|
|
1494
|
+
throwOnError: true,
|
|
1495
|
+
})
|
|
1496
|
+
return data
|
|
1497
|
+
},
|
|
1498
|
+
}
|
|
1499
|
+
return mutationOptions
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
/**
|
|
1503
|
+
* Revoke a connector authorization
|
|
1504
|
+
*/
|
|
1505
|
+
export const revokeConnectorConnectionMutation = (
|
|
1506
|
+
options?: Partial<Options<RevokeConnectorConnectionData>>
|
|
1507
|
+
): UseMutationOptions<
|
|
1508
|
+
RevokeConnectorConnectionResponse,
|
|
1509
|
+
RevokeConnectorConnectionError,
|
|
1510
|
+
Options<RevokeConnectorConnectionData>
|
|
1511
|
+
> => {
|
|
1512
|
+
const mutationOptions: UseMutationOptions<
|
|
1513
|
+
RevokeConnectorConnectionResponse,
|
|
1514
|
+
RevokeConnectorConnectionError,
|
|
1515
|
+
Options<RevokeConnectorConnectionData>
|
|
1516
|
+
> = {
|
|
1517
|
+
mutationFn: async (fnOptions) => {
|
|
1518
|
+
const { data } = await revokeConnectorConnection({
|
|
1519
|
+
...options,
|
|
1520
|
+
...fnOptions,
|
|
1521
|
+
throwOnError: true,
|
|
1522
|
+
})
|
|
1523
|
+
return data
|
|
1524
|
+
},
|
|
1525
|
+
}
|
|
1526
|
+
return mutationOptions
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
/**
|
|
1530
|
+
* Start a connector connection run
|
|
1531
|
+
*/
|
|
1532
|
+
export const startConnectorConnectionRunMutation = (
|
|
1533
|
+
options?: Partial<Options<StartConnectorConnectionRunData>>
|
|
1534
|
+
): UseMutationOptions<
|
|
1535
|
+
StartConnectorConnectionRunResponse,
|
|
1536
|
+
StartConnectorConnectionRunError,
|
|
1537
|
+
Options<StartConnectorConnectionRunData>
|
|
1538
|
+
> => {
|
|
1539
|
+
const mutationOptions: UseMutationOptions<
|
|
1540
|
+
StartConnectorConnectionRunResponse,
|
|
1541
|
+
StartConnectorConnectionRunError,
|
|
1542
|
+
Options<StartConnectorConnectionRunData>
|
|
1543
|
+
> = {
|
|
1544
|
+
mutationFn: async (fnOptions) => {
|
|
1545
|
+
const { data } = await startConnectorConnectionRun({
|
|
1546
|
+
...options,
|
|
1547
|
+
...fnOptions,
|
|
1548
|
+
throwOnError: true,
|
|
1549
|
+
})
|
|
1550
|
+
return data
|
|
1551
|
+
},
|
|
1552
|
+
}
|
|
1553
|
+
return mutationOptions
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
export const getConnectorConnectionRunQueryKey = (
|
|
1557
|
+
options: Options<GetConnectorConnectionRunData>
|
|
1558
|
+
) => createQueryKey("getConnectorConnectionRun", options)
|
|
1559
|
+
|
|
1560
|
+
/**
|
|
1561
|
+
* Get a connector connection run
|
|
1562
|
+
*/
|
|
1563
|
+
export const getConnectorConnectionRunOptions = (options: Options<GetConnectorConnectionRunData>) =>
|
|
1564
|
+
queryOptions<
|
|
1565
|
+
GetConnectorConnectionRunResponse,
|
|
1566
|
+
GetConnectorConnectionRunError,
|
|
1567
|
+
GetConnectorConnectionRunResponse,
|
|
1568
|
+
ReturnType<typeof getConnectorConnectionRunQueryKey>
|
|
1569
|
+
>({
|
|
1570
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1571
|
+
const { data } = await getConnectorConnectionRun({
|
|
1572
|
+
...options,
|
|
1573
|
+
...queryKey[0],
|
|
1574
|
+
signal,
|
|
1575
|
+
throwOnError: true,
|
|
1576
|
+
})
|
|
1577
|
+
return data
|
|
1578
|
+
},
|
|
1579
|
+
queryKey: getConnectorConnectionRunQueryKey(options),
|
|
1580
|
+
})
|
|
1581
|
+
|
|
1582
|
+
/**
|
|
1583
|
+
* Add a connector connection from an existing authorization
|
|
1584
|
+
*/
|
|
1585
|
+
export const addConnectorConnectionMutation = (
|
|
1586
|
+
options?: Partial<Options<AddConnectorConnectionData>>
|
|
1587
|
+
): UseMutationOptions<
|
|
1588
|
+
AddConnectorConnectionResponse,
|
|
1589
|
+
AddConnectorConnectionError,
|
|
1590
|
+
Options<AddConnectorConnectionData>
|
|
1591
|
+
> => {
|
|
1592
|
+
const mutationOptions: UseMutationOptions<
|
|
1593
|
+
AddConnectorConnectionResponse,
|
|
1594
|
+
AddConnectorConnectionError,
|
|
1595
|
+
Options<AddConnectorConnectionData>
|
|
1596
|
+
> = {
|
|
1597
|
+
mutationFn: async (fnOptions) => {
|
|
1598
|
+
const { data } = await addConnectorConnection({
|
|
1599
|
+
...options,
|
|
1600
|
+
...fnOptions,
|
|
1601
|
+
throwOnError: true,
|
|
1602
|
+
})
|
|
1603
|
+
return data
|
|
1604
|
+
},
|
|
1605
|
+
}
|
|
1606
|
+
return mutationOptions
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
/**
|
|
1610
|
+
* Select a connector account
|
|
1611
|
+
*/
|
|
1612
|
+
export const selectConnectorConnectionRunAccountMutation = (
|
|
1613
|
+
options?: Partial<Options<SelectConnectorConnectionRunAccountData>>
|
|
1614
|
+
): UseMutationOptions<
|
|
1615
|
+
SelectConnectorConnectionRunAccountResponse,
|
|
1616
|
+
SelectConnectorConnectionRunAccountError,
|
|
1617
|
+
Options<SelectConnectorConnectionRunAccountData>
|
|
1618
|
+
> => {
|
|
1619
|
+
const mutationOptions: UseMutationOptions<
|
|
1620
|
+
SelectConnectorConnectionRunAccountResponse,
|
|
1621
|
+
SelectConnectorConnectionRunAccountError,
|
|
1622
|
+
Options<SelectConnectorConnectionRunAccountData>
|
|
1623
|
+
> = {
|
|
1624
|
+
mutationFn: async (fnOptions) => {
|
|
1625
|
+
const { data } = await selectConnectorConnectionRunAccount({
|
|
1626
|
+
...options,
|
|
1627
|
+
...fnOptions,
|
|
1628
|
+
throwOnError: true,
|
|
1629
|
+
})
|
|
1630
|
+
return data
|
|
1631
|
+
},
|
|
1632
|
+
}
|
|
1633
|
+
return mutationOptions
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
/**
|
|
1637
|
+
* Reauthorize a connector connection
|
|
1638
|
+
*/
|
|
1639
|
+
export const reauthorizeConnectorConnectionMutation = (
|
|
1640
|
+
options?: Partial<Options<ReauthorizeConnectorConnectionData>>
|
|
1641
|
+
): UseMutationOptions<
|
|
1642
|
+
ReauthorizeConnectorConnectionResponse,
|
|
1643
|
+
ReauthorizeConnectorConnectionError,
|
|
1644
|
+
Options<ReauthorizeConnectorConnectionData>
|
|
1645
|
+
> => {
|
|
1646
|
+
const mutationOptions: UseMutationOptions<
|
|
1647
|
+
ReauthorizeConnectorConnectionResponse,
|
|
1648
|
+
ReauthorizeConnectorConnectionError,
|
|
1649
|
+
Options<ReauthorizeConnectorConnectionData>
|
|
1650
|
+
> = {
|
|
1651
|
+
mutationFn: async (fnOptions) => {
|
|
1652
|
+
const { data } = await reauthorizeConnectorConnection({
|
|
1653
|
+
...options,
|
|
1654
|
+
...fnOptions,
|
|
1655
|
+
throwOnError: true,
|
|
1656
|
+
})
|
|
1657
|
+
return data
|
|
1658
|
+
},
|
|
1659
|
+
}
|
|
1660
|
+
return mutationOptions
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1317
1663
|
export const listDatasetsQueryKey = (options?: Options<ListDatasetsData>) =>
|
|
1318
1664
|
createQueryKey("listDatasets", options)
|
|
1319
1665
|
|
package/src/generated/index.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
4
|
abortFileUpload,
|
|
5
|
+
addConnectorConnection,
|
|
5
6
|
appendTelemetry,
|
|
6
7
|
cancelAgentRun,
|
|
7
8
|
cancelWorkflowIntervention,
|
|
@@ -15,6 +16,7 @@ export {
|
|
|
15
16
|
createAuthServiceAccountAccessToken,
|
|
16
17
|
createFileUpload,
|
|
17
18
|
disableAuthServiceAccount,
|
|
19
|
+
disconnectConnectorConnection,
|
|
18
20
|
existsObjects,
|
|
19
21
|
facetObjects,
|
|
20
22
|
getAction,
|
|
@@ -24,12 +26,14 @@ export {
|
|
|
24
26
|
getAgentMessageFileContent,
|
|
25
27
|
getAgentRun,
|
|
26
28
|
getAgentThread,
|
|
29
|
+
getAiAccountingOverview,
|
|
27
30
|
getAuthAccessManagementOptions,
|
|
28
31
|
getAuthInvitationOptions,
|
|
29
32
|
getAuthMembershipOptions,
|
|
30
33
|
getAuthSession,
|
|
31
34
|
getBulkTelemetryHistory,
|
|
32
35
|
getConnector,
|
|
36
|
+
getConnectorConnectionRun,
|
|
33
37
|
getDataset,
|
|
34
38
|
getDatasetVersion,
|
|
35
39
|
getLatestTelemetry,
|
|
@@ -62,12 +66,14 @@ export {
|
|
|
62
66
|
listAgentThreadMessages,
|
|
63
67
|
listAgentThreadRuns,
|
|
64
68
|
listAgentThreads,
|
|
69
|
+
listAiModelCalls,
|
|
65
70
|
listAuthAccessTokens,
|
|
66
71
|
listAuthInvitations,
|
|
67
72
|
listAuthMembers,
|
|
68
73
|
listAuthServiceAccountAccessTokens,
|
|
69
74
|
listAuthServiceAccounts,
|
|
70
75
|
listAuthSessions,
|
|
76
|
+
listConnectorConnections,
|
|
71
77
|
listConnectors,
|
|
72
78
|
listDatasetRows,
|
|
73
79
|
listDatasets,
|
|
@@ -93,6 +99,7 @@ export {
|
|
|
93
99
|
postAgentThreadMessage,
|
|
94
100
|
queryObjects,
|
|
95
101
|
reactivateAuthMember,
|
|
102
|
+
reauthorizeConnectorConnection,
|
|
96
103
|
removeObjectLink,
|
|
97
104
|
requestAction,
|
|
98
105
|
requestPipelineRun,
|
|
@@ -103,10 +110,13 @@ export {
|
|
|
103
110
|
revokeAuthInvitation,
|
|
104
111
|
revokeAuthServiceAccountAccessToken,
|
|
105
112
|
revokeAuthSession,
|
|
113
|
+
revokeConnectorConnection,
|
|
106
114
|
searchObjects,
|
|
115
|
+
selectConnectorConnectionRunAccount,
|
|
107
116
|
signFileUploadPart,
|
|
108
117
|
signOut,
|
|
109
118
|
signOutAll,
|
|
119
|
+
startConnectorConnectionRun,
|
|
110
120
|
submitWorkflowIntervention,
|
|
111
121
|
suspendAuthMember,
|
|
112
122
|
updateAuthMemberGroups,
|
|
@@ -121,6 +131,11 @@ export type {
|
|
|
121
131
|
AbortFileUploadErrors,
|
|
122
132
|
AbortFileUploadResponse,
|
|
123
133
|
AbortFileUploadResponses,
|
|
134
|
+
AddConnectorConnectionData,
|
|
135
|
+
AddConnectorConnectionError,
|
|
136
|
+
AddConnectorConnectionErrors,
|
|
137
|
+
AddConnectorConnectionResponse,
|
|
138
|
+
AddConnectorConnectionResponses,
|
|
124
139
|
AppendTelemetryData,
|
|
125
140
|
AppendTelemetryError,
|
|
126
141
|
AppendTelemetryErrors,
|
|
@@ -187,6 +202,11 @@ export type {
|
|
|
187
202
|
DisableAuthServiceAccountErrors,
|
|
188
203
|
DisableAuthServiceAccountResponse,
|
|
189
204
|
DisableAuthServiceAccountResponses,
|
|
205
|
+
DisconnectConnectorConnectionData,
|
|
206
|
+
DisconnectConnectorConnectionError,
|
|
207
|
+
DisconnectConnectorConnectionErrors,
|
|
208
|
+
DisconnectConnectorConnectionResponse,
|
|
209
|
+
DisconnectConnectorConnectionResponses,
|
|
190
210
|
ErrorResponse,
|
|
191
211
|
ExistsObjectsData,
|
|
192
212
|
ExistsObjectsError,
|
|
@@ -233,6 +253,11 @@ export type {
|
|
|
233
253
|
GetAgentThreadErrors,
|
|
234
254
|
GetAgentThreadResponse,
|
|
235
255
|
GetAgentThreadResponses,
|
|
256
|
+
GetAiAccountingOverviewData,
|
|
257
|
+
GetAiAccountingOverviewError,
|
|
258
|
+
GetAiAccountingOverviewErrors,
|
|
259
|
+
GetAiAccountingOverviewResponse,
|
|
260
|
+
GetAiAccountingOverviewResponses,
|
|
236
261
|
GetAuthAccessManagementOptionsData,
|
|
237
262
|
GetAuthAccessManagementOptionsError,
|
|
238
263
|
GetAuthAccessManagementOptionsErrors,
|
|
@@ -256,6 +281,11 @@ export type {
|
|
|
256
281
|
GetBulkTelemetryHistoryErrors,
|
|
257
282
|
GetBulkTelemetryHistoryResponse,
|
|
258
283
|
GetBulkTelemetryHistoryResponses,
|
|
284
|
+
GetConnectorConnectionRunData,
|
|
285
|
+
GetConnectorConnectionRunError,
|
|
286
|
+
GetConnectorConnectionRunErrors,
|
|
287
|
+
GetConnectorConnectionRunResponse,
|
|
288
|
+
GetConnectorConnectionRunResponses,
|
|
259
289
|
GetConnectorData,
|
|
260
290
|
GetConnectorError,
|
|
261
291
|
GetConnectorErrors,
|
|
@@ -408,6 +438,11 @@ export type {
|
|
|
408
438
|
ListAgentThreadsErrors,
|
|
409
439
|
ListAgentThreadsResponse,
|
|
410
440
|
ListAgentThreadsResponses,
|
|
441
|
+
ListAiModelCallsData,
|
|
442
|
+
ListAiModelCallsError,
|
|
443
|
+
ListAiModelCallsErrors,
|
|
444
|
+
ListAiModelCallsResponse,
|
|
445
|
+
ListAiModelCallsResponses,
|
|
411
446
|
ListAuthAccessTokensData,
|
|
412
447
|
ListAuthAccessTokensError,
|
|
413
448
|
ListAuthAccessTokensErrors,
|
|
@@ -438,6 +473,11 @@ export type {
|
|
|
438
473
|
ListAuthSessionsErrors,
|
|
439
474
|
ListAuthSessionsResponse,
|
|
440
475
|
ListAuthSessionsResponses,
|
|
476
|
+
ListConnectorConnectionsData,
|
|
477
|
+
ListConnectorConnectionsError,
|
|
478
|
+
ListConnectorConnectionsErrors,
|
|
479
|
+
ListConnectorConnectionsResponse,
|
|
480
|
+
ListConnectorConnectionsResponses,
|
|
441
481
|
ListConnectorsData,
|
|
442
482
|
ListConnectorsResponse,
|
|
443
483
|
ListConnectorsResponses,
|
|
@@ -564,6 +604,11 @@ export type {
|
|
|
564
604
|
ReactivateAuthMemberErrors,
|
|
565
605
|
ReactivateAuthMemberResponse,
|
|
566
606
|
ReactivateAuthMemberResponses,
|
|
607
|
+
ReauthorizeConnectorConnectionData,
|
|
608
|
+
ReauthorizeConnectorConnectionError,
|
|
609
|
+
ReauthorizeConnectorConnectionErrors,
|
|
610
|
+
ReauthorizeConnectorConnectionResponse,
|
|
611
|
+
ReauthorizeConnectorConnectionResponses,
|
|
567
612
|
RemoveObjectLinkData,
|
|
568
613
|
RemoveObjectLinkError,
|
|
569
614
|
RemoveObjectLinkErrors,
|
|
@@ -614,11 +659,21 @@ export type {
|
|
|
614
659
|
RevokeAuthSessionErrors,
|
|
615
660
|
RevokeAuthSessionResponse,
|
|
616
661
|
RevokeAuthSessionResponses,
|
|
662
|
+
RevokeConnectorConnectionData,
|
|
663
|
+
RevokeConnectorConnectionError,
|
|
664
|
+
RevokeConnectorConnectionErrors,
|
|
665
|
+
RevokeConnectorConnectionResponse,
|
|
666
|
+
RevokeConnectorConnectionResponses,
|
|
617
667
|
SearchObjectsData,
|
|
618
668
|
SearchObjectsError,
|
|
619
669
|
SearchObjectsErrors,
|
|
620
670
|
SearchObjectsResponse,
|
|
621
671
|
SearchObjectsResponses,
|
|
672
|
+
SelectConnectorConnectionRunAccountData,
|
|
673
|
+
SelectConnectorConnectionRunAccountError,
|
|
674
|
+
SelectConnectorConnectionRunAccountErrors,
|
|
675
|
+
SelectConnectorConnectionRunAccountResponse,
|
|
676
|
+
SelectConnectorConnectionRunAccountResponses,
|
|
622
677
|
SignFileUploadPartData,
|
|
623
678
|
SignFileUploadPartError,
|
|
624
679
|
SignFileUploadPartErrors,
|
|
@@ -634,6 +689,11 @@ export type {
|
|
|
634
689
|
SignOutErrors,
|
|
635
690
|
SignOutResponse,
|
|
636
691
|
SignOutResponses,
|
|
692
|
+
StartConnectorConnectionRunData,
|
|
693
|
+
StartConnectorConnectionRunError,
|
|
694
|
+
StartConnectorConnectionRunErrors,
|
|
695
|
+
StartConnectorConnectionRunResponse,
|
|
696
|
+
StartConnectorConnectionRunResponses,
|
|
637
697
|
SubmitWorkflowInterventionData,
|
|
638
698
|
SubmitWorkflowInterventionError,
|
|
639
699
|
SubmitWorkflowInterventionErrors,
|