@sixb/client 0.1.1 → 0.1.2
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-5vp5zr0d.js} +1 -1
- package/dist/{chunk-1mnf48s9.js → chunk-ctf97s25.js} +2 -2
- package/dist/{chunk-w527w02k.js → chunk-mpgzkmwc.js} +2 -74
- package/dist/chunk-mpgzkmwc.js.map +10 -0
- package/dist/{chunk-h8bd95xf.js → chunk-skkt217g.js} +50 -2
- package/dist/chunk-skkt217g.js.map +19 -0
- package/dist/{chunk-hkrfakyt.js → chunk-tsdnw994.js} +2 -2
- package/dist/{chunk-dkd2wgva.js → chunk-v4jdc1nb.js} +40 -28
- package/dist/{chunk-dkd2wgva.js.map → chunk-v4jdc1nb.js.map} +3 -3
- package/dist/{chunk-6w5w9e75.js → chunk-zfne7wxr.js} +27 -12
- package/dist/chunk-zfne7wxr.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 +3508 -735
- 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 +33 -1
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +1819 -198
- 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 +1118 -351
- package/dist/hooks.js.map +11 -6
- package/dist/index.js +25 -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 +19 -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 +245 -0
- package/src/generated/index.ts +48 -0
- package/src/generated/sdk.gen.ts +160 -0
- package/src/generated/types.gen.ts +2417 -230
- 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-5vp5zr0d.js.map} +0 -0
- /package/dist/{chunk-1mnf48s9.js.map → chunk-ctf97s25.js.map} +0 -0
- /package/dist/{chunk-hkrfakyt.js.map → chunk-tsdnw994.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,
|
|
@@ -39,6 +41,7 @@ import {
|
|
|
39
41
|
getAuthSession,
|
|
40
42
|
getBulkTelemetryHistory,
|
|
41
43
|
getConnector,
|
|
44
|
+
getConnectorConnectionRun,
|
|
42
45
|
getDataset,
|
|
43
46
|
getDatasetVersion,
|
|
44
47
|
getLatestTelemetry,
|
|
@@ -72,6 +75,7 @@ import {
|
|
|
72
75
|
listAuthServiceAccountAccessTokens,
|
|
73
76
|
listAuthServiceAccounts,
|
|
74
77
|
listAuthSessions,
|
|
78
|
+
listConnectorConnections,
|
|
75
79
|
listConnectors,
|
|
76
80
|
listDatasetRows,
|
|
77
81
|
listDatasets,
|
|
@@ -97,6 +101,7 @@ import {
|
|
|
97
101
|
postAgentThreadMessage,
|
|
98
102
|
queryObjects,
|
|
99
103
|
reactivateAuthMember,
|
|
104
|
+
reauthorizeConnectorConnection,
|
|
100
105
|
removeObjectLink,
|
|
101
106
|
requestAction,
|
|
102
107
|
requestPipelineRun,
|
|
@@ -107,10 +112,13 @@ import {
|
|
|
107
112
|
revokeAuthInvitation,
|
|
108
113
|
revokeAuthServiceAccountAccessToken,
|
|
109
114
|
revokeAuthSession,
|
|
115
|
+
revokeConnectorConnection,
|
|
110
116
|
searchObjects,
|
|
117
|
+
selectConnectorConnectionRunAccount,
|
|
111
118
|
signFileUploadPart,
|
|
112
119
|
signOut,
|
|
113
120
|
signOutAll,
|
|
121
|
+
startConnectorConnectionRun,
|
|
114
122
|
submitWorkflowIntervention,
|
|
115
123
|
suspendAuthMember,
|
|
116
124
|
updateAuthMemberGroups,
|
|
@@ -123,6 +131,9 @@ import type {
|
|
|
123
131
|
AbortFileUploadData,
|
|
124
132
|
AbortFileUploadError,
|
|
125
133
|
AbortFileUploadResponse,
|
|
134
|
+
AddConnectorConnectionData,
|
|
135
|
+
AddConnectorConnectionError,
|
|
136
|
+
AddConnectorConnectionResponse,
|
|
126
137
|
AppendTelemetryData,
|
|
127
138
|
AppendTelemetryError,
|
|
128
139
|
AppendTelemetryResponse,
|
|
@@ -162,6 +173,9 @@ import type {
|
|
|
162
173
|
DisableAuthServiceAccountData,
|
|
163
174
|
DisableAuthServiceAccountError,
|
|
164
175
|
DisableAuthServiceAccountResponse,
|
|
176
|
+
DisconnectConnectorConnectionData,
|
|
177
|
+
DisconnectConnectorConnectionError,
|
|
178
|
+
DisconnectConnectorConnectionResponse,
|
|
165
179
|
ExistsObjectsData,
|
|
166
180
|
ExistsObjectsError,
|
|
167
181
|
ExistsObjectsResponse,
|
|
@@ -203,6 +217,9 @@ import type {
|
|
|
203
217
|
GetBulkTelemetryHistoryData,
|
|
204
218
|
GetBulkTelemetryHistoryError,
|
|
205
219
|
GetBulkTelemetryHistoryResponse,
|
|
220
|
+
GetConnectorConnectionRunData,
|
|
221
|
+
GetConnectorConnectionRunError,
|
|
222
|
+
GetConnectorConnectionRunResponse,
|
|
206
223
|
GetConnectorData,
|
|
207
224
|
GetConnectorError,
|
|
208
225
|
GetConnectorResponse,
|
|
@@ -301,6 +318,9 @@ import type {
|
|
|
301
318
|
ListAuthSessionsData,
|
|
302
319
|
ListAuthSessionsError,
|
|
303
320
|
ListAuthSessionsResponse,
|
|
321
|
+
ListConnectorConnectionsData,
|
|
322
|
+
ListConnectorConnectionsError,
|
|
323
|
+
ListConnectorConnectionsResponse,
|
|
304
324
|
ListConnectorsData,
|
|
305
325
|
ListConnectorsResponse,
|
|
306
326
|
ListDatasetRowsData,
|
|
@@ -366,6 +386,9 @@ import type {
|
|
|
366
386
|
ReactivateAuthMemberData,
|
|
367
387
|
ReactivateAuthMemberError,
|
|
368
388
|
ReactivateAuthMemberResponse,
|
|
389
|
+
ReauthorizeConnectorConnectionData,
|
|
390
|
+
ReauthorizeConnectorConnectionError,
|
|
391
|
+
ReauthorizeConnectorConnectionResponse,
|
|
369
392
|
RemoveObjectLinkData,
|
|
370
393
|
RemoveObjectLinkError,
|
|
371
394
|
RemoveObjectLinkResponse,
|
|
@@ -396,9 +419,15 @@ import type {
|
|
|
396
419
|
RevokeAuthSessionData,
|
|
397
420
|
RevokeAuthSessionError,
|
|
398
421
|
RevokeAuthSessionResponse,
|
|
422
|
+
RevokeConnectorConnectionData,
|
|
423
|
+
RevokeConnectorConnectionError,
|
|
424
|
+
RevokeConnectorConnectionResponse,
|
|
399
425
|
SearchObjectsData,
|
|
400
426
|
SearchObjectsError,
|
|
401
427
|
SearchObjectsResponse,
|
|
428
|
+
SelectConnectorConnectionRunAccountData,
|
|
429
|
+
SelectConnectorConnectionRunAccountError,
|
|
430
|
+
SelectConnectorConnectionRunAccountResponse,
|
|
402
431
|
SignFileUploadPartData,
|
|
403
432
|
SignFileUploadPartError,
|
|
404
433
|
SignFileUploadPartResponse,
|
|
@@ -408,6 +437,9 @@ import type {
|
|
|
408
437
|
SignOutData,
|
|
409
438
|
SignOutError,
|
|
410
439
|
SignOutResponse,
|
|
440
|
+
StartConnectorConnectionRunData,
|
|
441
|
+
StartConnectorConnectionRunError,
|
|
442
|
+
StartConnectorConnectionRunResponse,
|
|
411
443
|
SubmitWorkflowInterventionData,
|
|
412
444
|
SubmitWorkflowInterventionError,
|
|
413
445
|
SubmitWorkflowInterventionResponse,
|
|
@@ -1314,6 +1346,219 @@ export const getConnectorOptions = (options: Options<GetConnectorData>) =>
|
|
|
1314
1346
|
queryKey: getConnectorQueryKey(options),
|
|
1315
1347
|
})
|
|
1316
1348
|
|
|
1349
|
+
export const listConnectorConnectionsQueryKey = (options: Options<ListConnectorConnectionsData>) =>
|
|
1350
|
+
createQueryKey("listConnectorConnections", options)
|
|
1351
|
+
|
|
1352
|
+
/**
|
|
1353
|
+
* List connector connections
|
|
1354
|
+
*/
|
|
1355
|
+
export const listConnectorConnectionsOptions = (options: Options<ListConnectorConnectionsData>) =>
|
|
1356
|
+
queryOptions<
|
|
1357
|
+
ListConnectorConnectionsResponse,
|
|
1358
|
+
ListConnectorConnectionsError,
|
|
1359
|
+
ListConnectorConnectionsResponse,
|
|
1360
|
+
ReturnType<typeof listConnectorConnectionsQueryKey>
|
|
1361
|
+
>({
|
|
1362
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1363
|
+
const { data } = await listConnectorConnections({
|
|
1364
|
+
...options,
|
|
1365
|
+
...queryKey[0],
|
|
1366
|
+
signal,
|
|
1367
|
+
throwOnError: true,
|
|
1368
|
+
})
|
|
1369
|
+
return data
|
|
1370
|
+
},
|
|
1371
|
+
queryKey: listConnectorConnectionsQueryKey(options),
|
|
1372
|
+
})
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* Disconnect a connector account
|
|
1376
|
+
*/
|
|
1377
|
+
export const disconnectConnectorConnectionMutation = (
|
|
1378
|
+
options?: Partial<Options<DisconnectConnectorConnectionData>>
|
|
1379
|
+
): UseMutationOptions<
|
|
1380
|
+
DisconnectConnectorConnectionResponse,
|
|
1381
|
+
DisconnectConnectorConnectionError,
|
|
1382
|
+
Options<DisconnectConnectorConnectionData>
|
|
1383
|
+
> => {
|
|
1384
|
+
const mutationOptions: UseMutationOptions<
|
|
1385
|
+
DisconnectConnectorConnectionResponse,
|
|
1386
|
+
DisconnectConnectorConnectionError,
|
|
1387
|
+
Options<DisconnectConnectorConnectionData>
|
|
1388
|
+
> = {
|
|
1389
|
+
mutationFn: async (fnOptions) => {
|
|
1390
|
+
const { data } = await disconnectConnectorConnection({
|
|
1391
|
+
...options,
|
|
1392
|
+
...fnOptions,
|
|
1393
|
+
throwOnError: true,
|
|
1394
|
+
})
|
|
1395
|
+
return data
|
|
1396
|
+
},
|
|
1397
|
+
}
|
|
1398
|
+
return mutationOptions
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
/**
|
|
1402
|
+
* Revoke a connector authorization
|
|
1403
|
+
*/
|
|
1404
|
+
export const revokeConnectorConnectionMutation = (
|
|
1405
|
+
options?: Partial<Options<RevokeConnectorConnectionData>>
|
|
1406
|
+
): UseMutationOptions<
|
|
1407
|
+
RevokeConnectorConnectionResponse,
|
|
1408
|
+
RevokeConnectorConnectionError,
|
|
1409
|
+
Options<RevokeConnectorConnectionData>
|
|
1410
|
+
> => {
|
|
1411
|
+
const mutationOptions: UseMutationOptions<
|
|
1412
|
+
RevokeConnectorConnectionResponse,
|
|
1413
|
+
RevokeConnectorConnectionError,
|
|
1414
|
+
Options<RevokeConnectorConnectionData>
|
|
1415
|
+
> = {
|
|
1416
|
+
mutationFn: async (fnOptions) => {
|
|
1417
|
+
const { data } = await revokeConnectorConnection({
|
|
1418
|
+
...options,
|
|
1419
|
+
...fnOptions,
|
|
1420
|
+
throwOnError: true,
|
|
1421
|
+
})
|
|
1422
|
+
return data
|
|
1423
|
+
},
|
|
1424
|
+
}
|
|
1425
|
+
return mutationOptions
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
/**
|
|
1429
|
+
* Start a connector connection run
|
|
1430
|
+
*/
|
|
1431
|
+
export const startConnectorConnectionRunMutation = (
|
|
1432
|
+
options?: Partial<Options<StartConnectorConnectionRunData>>
|
|
1433
|
+
): UseMutationOptions<
|
|
1434
|
+
StartConnectorConnectionRunResponse,
|
|
1435
|
+
StartConnectorConnectionRunError,
|
|
1436
|
+
Options<StartConnectorConnectionRunData>
|
|
1437
|
+
> => {
|
|
1438
|
+
const mutationOptions: UseMutationOptions<
|
|
1439
|
+
StartConnectorConnectionRunResponse,
|
|
1440
|
+
StartConnectorConnectionRunError,
|
|
1441
|
+
Options<StartConnectorConnectionRunData>
|
|
1442
|
+
> = {
|
|
1443
|
+
mutationFn: async (fnOptions) => {
|
|
1444
|
+
const { data } = await startConnectorConnectionRun({
|
|
1445
|
+
...options,
|
|
1446
|
+
...fnOptions,
|
|
1447
|
+
throwOnError: true,
|
|
1448
|
+
})
|
|
1449
|
+
return data
|
|
1450
|
+
},
|
|
1451
|
+
}
|
|
1452
|
+
return mutationOptions
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
export const getConnectorConnectionRunQueryKey = (
|
|
1456
|
+
options: Options<GetConnectorConnectionRunData>
|
|
1457
|
+
) => createQueryKey("getConnectorConnectionRun", options)
|
|
1458
|
+
|
|
1459
|
+
/**
|
|
1460
|
+
* Get a connector connection run
|
|
1461
|
+
*/
|
|
1462
|
+
export const getConnectorConnectionRunOptions = (options: Options<GetConnectorConnectionRunData>) =>
|
|
1463
|
+
queryOptions<
|
|
1464
|
+
GetConnectorConnectionRunResponse,
|
|
1465
|
+
GetConnectorConnectionRunError,
|
|
1466
|
+
GetConnectorConnectionRunResponse,
|
|
1467
|
+
ReturnType<typeof getConnectorConnectionRunQueryKey>
|
|
1468
|
+
>({
|
|
1469
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1470
|
+
const { data } = await getConnectorConnectionRun({
|
|
1471
|
+
...options,
|
|
1472
|
+
...queryKey[0],
|
|
1473
|
+
signal,
|
|
1474
|
+
throwOnError: true,
|
|
1475
|
+
})
|
|
1476
|
+
return data
|
|
1477
|
+
},
|
|
1478
|
+
queryKey: getConnectorConnectionRunQueryKey(options),
|
|
1479
|
+
})
|
|
1480
|
+
|
|
1481
|
+
/**
|
|
1482
|
+
* Add a connector connection from an existing authorization
|
|
1483
|
+
*/
|
|
1484
|
+
export const addConnectorConnectionMutation = (
|
|
1485
|
+
options?: Partial<Options<AddConnectorConnectionData>>
|
|
1486
|
+
): UseMutationOptions<
|
|
1487
|
+
AddConnectorConnectionResponse,
|
|
1488
|
+
AddConnectorConnectionError,
|
|
1489
|
+
Options<AddConnectorConnectionData>
|
|
1490
|
+
> => {
|
|
1491
|
+
const mutationOptions: UseMutationOptions<
|
|
1492
|
+
AddConnectorConnectionResponse,
|
|
1493
|
+
AddConnectorConnectionError,
|
|
1494
|
+
Options<AddConnectorConnectionData>
|
|
1495
|
+
> = {
|
|
1496
|
+
mutationFn: async (fnOptions) => {
|
|
1497
|
+
const { data } = await addConnectorConnection({
|
|
1498
|
+
...options,
|
|
1499
|
+
...fnOptions,
|
|
1500
|
+
throwOnError: true,
|
|
1501
|
+
})
|
|
1502
|
+
return data
|
|
1503
|
+
},
|
|
1504
|
+
}
|
|
1505
|
+
return mutationOptions
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
/**
|
|
1509
|
+
* Select a connector account
|
|
1510
|
+
*/
|
|
1511
|
+
export const selectConnectorConnectionRunAccountMutation = (
|
|
1512
|
+
options?: Partial<Options<SelectConnectorConnectionRunAccountData>>
|
|
1513
|
+
): UseMutationOptions<
|
|
1514
|
+
SelectConnectorConnectionRunAccountResponse,
|
|
1515
|
+
SelectConnectorConnectionRunAccountError,
|
|
1516
|
+
Options<SelectConnectorConnectionRunAccountData>
|
|
1517
|
+
> => {
|
|
1518
|
+
const mutationOptions: UseMutationOptions<
|
|
1519
|
+
SelectConnectorConnectionRunAccountResponse,
|
|
1520
|
+
SelectConnectorConnectionRunAccountError,
|
|
1521
|
+
Options<SelectConnectorConnectionRunAccountData>
|
|
1522
|
+
> = {
|
|
1523
|
+
mutationFn: async (fnOptions) => {
|
|
1524
|
+
const { data } = await selectConnectorConnectionRunAccount({
|
|
1525
|
+
...options,
|
|
1526
|
+
...fnOptions,
|
|
1527
|
+
throwOnError: true,
|
|
1528
|
+
})
|
|
1529
|
+
return data
|
|
1530
|
+
},
|
|
1531
|
+
}
|
|
1532
|
+
return mutationOptions
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
/**
|
|
1536
|
+
* Reauthorize a connector connection
|
|
1537
|
+
*/
|
|
1538
|
+
export const reauthorizeConnectorConnectionMutation = (
|
|
1539
|
+
options?: Partial<Options<ReauthorizeConnectorConnectionData>>
|
|
1540
|
+
): UseMutationOptions<
|
|
1541
|
+
ReauthorizeConnectorConnectionResponse,
|
|
1542
|
+
ReauthorizeConnectorConnectionError,
|
|
1543
|
+
Options<ReauthorizeConnectorConnectionData>
|
|
1544
|
+
> => {
|
|
1545
|
+
const mutationOptions: UseMutationOptions<
|
|
1546
|
+
ReauthorizeConnectorConnectionResponse,
|
|
1547
|
+
ReauthorizeConnectorConnectionError,
|
|
1548
|
+
Options<ReauthorizeConnectorConnectionData>
|
|
1549
|
+
> = {
|
|
1550
|
+
mutationFn: async (fnOptions) => {
|
|
1551
|
+
const { data } = await reauthorizeConnectorConnection({
|
|
1552
|
+
...options,
|
|
1553
|
+
...fnOptions,
|
|
1554
|
+
throwOnError: true,
|
|
1555
|
+
})
|
|
1556
|
+
return data
|
|
1557
|
+
},
|
|
1558
|
+
}
|
|
1559
|
+
return mutationOptions
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1317
1562
|
export const listDatasetsQueryKey = (options?: Options<ListDatasetsData>) =>
|
|
1318
1563
|
createQueryKey("listDatasets", options)
|
|
1319
1564
|
|
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,
|
|
@@ -30,6 +32,7 @@ export {
|
|
|
30
32
|
getAuthSession,
|
|
31
33
|
getBulkTelemetryHistory,
|
|
32
34
|
getConnector,
|
|
35
|
+
getConnectorConnectionRun,
|
|
33
36
|
getDataset,
|
|
34
37
|
getDatasetVersion,
|
|
35
38
|
getLatestTelemetry,
|
|
@@ -68,6 +71,7 @@ export {
|
|
|
68
71
|
listAuthServiceAccountAccessTokens,
|
|
69
72
|
listAuthServiceAccounts,
|
|
70
73
|
listAuthSessions,
|
|
74
|
+
listConnectorConnections,
|
|
71
75
|
listConnectors,
|
|
72
76
|
listDatasetRows,
|
|
73
77
|
listDatasets,
|
|
@@ -93,6 +97,7 @@ export {
|
|
|
93
97
|
postAgentThreadMessage,
|
|
94
98
|
queryObjects,
|
|
95
99
|
reactivateAuthMember,
|
|
100
|
+
reauthorizeConnectorConnection,
|
|
96
101
|
removeObjectLink,
|
|
97
102
|
requestAction,
|
|
98
103
|
requestPipelineRun,
|
|
@@ -103,10 +108,13 @@ export {
|
|
|
103
108
|
revokeAuthInvitation,
|
|
104
109
|
revokeAuthServiceAccountAccessToken,
|
|
105
110
|
revokeAuthSession,
|
|
111
|
+
revokeConnectorConnection,
|
|
106
112
|
searchObjects,
|
|
113
|
+
selectConnectorConnectionRunAccount,
|
|
107
114
|
signFileUploadPart,
|
|
108
115
|
signOut,
|
|
109
116
|
signOutAll,
|
|
117
|
+
startConnectorConnectionRun,
|
|
110
118
|
submitWorkflowIntervention,
|
|
111
119
|
suspendAuthMember,
|
|
112
120
|
updateAuthMemberGroups,
|
|
@@ -121,6 +129,11 @@ export type {
|
|
|
121
129
|
AbortFileUploadErrors,
|
|
122
130
|
AbortFileUploadResponse,
|
|
123
131
|
AbortFileUploadResponses,
|
|
132
|
+
AddConnectorConnectionData,
|
|
133
|
+
AddConnectorConnectionError,
|
|
134
|
+
AddConnectorConnectionErrors,
|
|
135
|
+
AddConnectorConnectionResponse,
|
|
136
|
+
AddConnectorConnectionResponses,
|
|
124
137
|
AppendTelemetryData,
|
|
125
138
|
AppendTelemetryError,
|
|
126
139
|
AppendTelemetryErrors,
|
|
@@ -187,6 +200,11 @@ export type {
|
|
|
187
200
|
DisableAuthServiceAccountErrors,
|
|
188
201
|
DisableAuthServiceAccountResponse,
|
|
189
202
|
DisableAuthServiceAccountResponses,
|
|
203
|
+
DisconnectConnectorConnectionData,
|
|
204
|
+
DisconnectConnectorConnectionError,
|
|
205
|
+
DisconnectConnectorConnectionErrors,
|
|
206
|
+
DisconnectConnectorConnectionResponse,
|
|
207
|
+
DisconnectConnectorConnectionResponses,
|
|
190
208
|
ErrorResponse,
|
|
191
209
|
ExistsObjectsData,
|
|
192
210
|
ExistsObjectsError,
|
|
@@ -256,6 +274,11 @@ export type {
|
|
|
256
274
|
GetBulkTelemetryHistoryErrors,
|
|
257
275
|
GetBulkTelemetryHistoryResponse,
|
|
258
276
|
GetBulkTelemetryHistoryResponses,
|
|
277
|
+
GetConnectorConnectionRunData,
|
|
278
|
+
GetConnectorConnectionRunError,
|
|
279
|
+
GetConnectorConnectionRunErrors,
|
|
280
|
+
GetConnectorConnectionRunResponse,
|
|
281
|
+
GetConnectorConnectionRunResponses,
|
|
259
282
|
GetConnectorData,
|
|
260
283
|
GetConnectorError,
|
|
261
284
|
GetConnectorErrors,
|
|
@@ -438,6 +461,11 @@ export type {
|
|
|
438
461
|
ListAuthSessionsErrors,
|
|
439
462
|
ListAuthSessionsResponse,
|
|
440
463
|
ListAuthSessionsResponses,
|
|
464
|
+
ListConnectorConnectionsData,
|
|
465
|
+
ListConnectorConnectionsError,
|
|
466
|
+
ListConnectorConnectionsErrors,
|
|
467
|
+
ListConnectorConnectionsResponse,
|
|
468
|
+
ListConnectorConnectionsResponses,
|
|
441
469
|
ListConnectorsData,
|
|
442
470
|
ListConnectorsResponse,
|
|
443
471
|
ListConnectorsResponses,
|
|
@@ -564,6 +592,11 @@ export type {
|
|
|
564
592
|
ReactivateAuthMemberErrors,
|
|
565
593
|
ReactivateAuthMemberResponse,
|
|
566
594
|
ReactivateAuthMemberResponses,
|
|
595
|
+
ReauthorizeConnectorConnectionData,
|
|
596
|
+
ReauthorizeConnectorConnectionError,
|
|
597
|
+
ReauthorizeConnectorConnectionErrors,
|
|
598
|
+
ReauthorizeConnectorConnectionResponse,
|
|
599
|
+
ReauthorizeConnectorConnectionResponses,
|
|
567
600
|
RemoveObjectLinkData,
|
|
568
601
|
RemoveObjectLinkError,
|
|
569
602
|
RemoveObjectLinkErrors,
|
|
@@ -614,11 +647,21 @@ export type {
|
|
|
614
647
|
RevokeAuthSessionErrors,
|
|
615
648
|
RevokeAuthSessionResponse,
|
|
616
649
|
RevokeAuthSessionResponses,
|
|
650
|
+
RevokeConnectorConnectionData,
|
|
651
|
+
RevokeConnectorConnectionError,
|
|
652
|
+
RevokeConnectorConnectionErrors,
|
|
653
|
+
RevokeConnectorConnectionResponse,
|
|
654
|
+
RevokeConnectorConnectionResponses,
|
|
617
655
|
SearchObjectsData,
|
|
618
656
|
SearchObjectsError,
|
|
619
657
|
SearchObjectsErrors,
|
|
620
658
|
SearchObjectsResponse,
|
|
621
659
|
SearchObjectsResponses,
|
|
660
|
+
SelectConnectorConnectionRunAccountData,
|
|
661
|
+
SelectConnectorConnectionRunAccountError,
|
|
662
|
+
SelectConnectorConnectionRunAccountErrors,
|
|
663
|
+
SelectConnectorConnectionRunAccountResponse,
|
|
664
|
+
SelectConnectorConnectionRunAccountResponses,
|
|
622
665
|
SignFileUploadPartData,
|
|
623
666
|
SignFileUploadPartError,
|
|
624
667
|
SignFileUploadPartErrors,
|
|
@@ -634,6 +677,11 @@ export type {
|
|
|
634
677
|
SignOutErrors,
|
|
635
678
|
SignOutResponse,
|
|
636
679
|
SignOutResponses,
|
|
680
|
+
StartConnectorConnectionRunData,
|
|
681
|
+
StartConnectorConnectionRunError,
|
|
682
|
+
StartConnectorConnectionRunErrors,
|
|
683
|
+
StartConnectorConnectionRunResponse,
|
|
684
|
+
StartConnectorConnectionRunResponses,
|
|
637
685
|
SubmitWorkflowInterventionData,
|
|
638
686
|
SubmitWorkflowInterventionError,
|
|
639
687
|
SubmitWorkflowInterventionErrors,
|
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -11,6 +11,9 @@ import type {
|
|
|
11
11
|
AbortFileUploadData,
|
|
12
12
|
AbortFileUploadErrors,
|
|
13
13
|
AbortFileUploadResponses,
|
|
14
|
+
AddConnectorConnectionData,
|
|
15
|
+
AddConnectorConnectionErrors,
|
|
16
|
+
AddConnectorConnectionResponses,
|
|
14
17
|
AppendTelemetryData,
|
|
15
18
|
AppendTelemetryErrors,
|
|
16
19
|
AppendTelemetryResponses,
|
|
@@ -50,6 +53,9 @@ import type {
|
|
|
50
53
|
DisableAuthServiceAccountData,
|
|
51
54
|
DisableAuthServiceAccountErrors,
|
|
52
55
|
DisableAuthServiceAccountResponses,
|
|
56
|
+
DisconnectConnectorConnectionData,
|
|
57
|
+
DisconnectConnectorConnectionErrors,
|
|
58
|
+
DisconnectConnectorConnectionResponses,
|
|
53
59
|
ExistsObjectsData,
|
|
54
60
|
ExistsObjectsErrors,
|
|
55
61
|
ExistsObjectsResponses,
|
|
@@ -91,6 +97,9 @@ import type {
|
|
|
91
97
|
GetBulkTelemetryHistoryData,
|
|
92
98
|
GetBulkTelemetryHistoryErrors,
|
|
93
99
|
GetBulkTelemetryHistoryResponses,
|
|
100
|
+
GetConnectorConnectionRunData,
|
|
101
|
+
GetConnectorConnectionRunErrors,
|
|
102
|
+
GetConnectorConnectionRunResponses,
|
|
94
103
|
GetConnectorData,
|
|
95
104
|
GetConnectorErrors,
|
|
96
105
|
GetConnectorResponses,
|
|
@@ -204,6 +213,9 @@ import type {
|
|
|
204
213
|
ListAuthSessionsData,
|
|
205
214
|
ListAuthSessionsErrors,
|
|
206
215
|
ListAuthSessionsResponses,
|
|
216
|
+
ListConnectorConnectionsData,
|
|
217
|
+
ListConnectorConnectionsErrors,
|
|
218
|
+
ListConnectorConnectionsResponses,
|
|
207
219
|
ListConnectorsData,
|
|
208
220
|
ListConnectorsResponses,
|
|
209
221
|
ListDatasetRowsData,
|
|
@@ -269,6 +281,9 @@ import type {
|
|
|
269
281
|
ReactivateAuthMemberData,
|
|
270
282
|
ReactivateAuthMemberErrors,
|
|
271
283
|
ReactivateAuthMemberResponses,
|
|
284
|
+
ReauthorizeConnectorConnectionData,
|
|
285
|
+
ReauthorizeConnectorConnectionErrors,
|
|
286
|
+
ReauthorizeConnectorConnectionResponses,
|
|
272
287
|
RemoveObjectLinkData,
|
|
273
288
|
RemoveObjectLinkErrors,
|
|
274
289
|
RemoveObjectLinkResponses,
|
|
@@ -299,9 +314,15 @@ import type {
|
|
|
299
314
|
RevokeAuthSessionData,
|
|
300
315
|
RevokeAuthSessionErrors,
|
|
301
316
|
RevokeAuthSessionResponses,
|
|
317
|
+
RevokeConnectorConnectionData,
|
|
318
|
+
RevokeConnectorConnectionErrors,
|
|
319
|
+
RevokeConnectorConnectionResponses,
|
|
302
320
|
SearchObjectsData,
|
|
303
321
|
SearchObjectsErrors,
|
|
304
322
|
SearchObjectsResponses,
|
|
323
|
+
SelectConnectorConnectionRunAccountData,
|
|
324
|
+
SelectConnectorConnectionRunAccountErrors,
|
|
325
|
+
SelectConnectorConnectionRunAccountResponses,
|
|
305
326
|
SignFileUploadPartData,
|
|
306
327
|
SignFileUploadPartErrors,
|
|
307
328
|
SignFileUploadPartResponses,
|
|
@@ -311,6 +332,9 @@ import type {
|
|
|
311
332
|
SignOutData,
|
|
312
333
|
SignOutErrors,
|
|
313
334
|
SignOutResponses,
|
|
335
|
+
StartConnectorConnectionRunData,
|
|
336
|
+
StartConnectorConnectionRunErrors,
|
|
337
|
+
StartConnectorConnectionRunResponses,
|
|
314
338
|
SubmitWorkflowInterventionData,
|
|
315
339
|
SubmitWorkflowInterventionErrors,
|
|
316
340
|
SubmitWorkflowInterventionResponses,
|
|
@@ -783,6 +807,142 @@ export const getConnector = <ThrowOnError extends boolean = false>(
|
|
|
783
807
|
...options,
|
|
784
808
|
})
|
|
785
809
|
|
|
810
|
+
/**
|
|
811
|
+
* List connector connections
|
|
812
|
+
*/
|
|
813
|
+
export const listConnectorConnections = <ThrowOnError extends boolean = false>(
|
|
814
|
+
options: Options<ListConnectorConnectionsData, ThrowOnError>
|
|
815
|
+
) =>
|
|
816
|
+
(options.client ?? client).get<
|
|
817
|
+
ListConnectorConnectionsResponses,
|
|
818
|
+
ListConnectorConnectionsErrors,
|
|
819
|
+
ThrowOnError
|
|
820
|
+
>({ url: "/api/connectors/{connectorId}/connections", ...options })
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* Disconnect a connector account
|
|
824
|
+
*/
|
|
825
|
+
export const disconnectConnectorConnection = <ThrowOnError extends boolean = false>(
|
|
826
|
+
options: Options<DisconnectConnectorConnectionData, ThrowOnError>
|
|
827
|
+
) =>
|
|
828
|
+
(options.client ?? client).delete<
|
|
829
|
+
DisconnectConnectorConnectionResponses,
|
|
830
|
+
DisconnectConnectorConnectionErrors,
|
|
831
|
+
ThrowOnError
|
|
832
|
+
>({
|
|
833
|
+
security: [{ name: "x-sixb-csrf", type: "apiKey" }],
|
|
834
|
+
url: "/api/connectors/{connectorId}/connections/{connectionId}",
|
|
835
|
+
...options,
|
|
836
|
+
})
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* Revoke a connector authorization
|
|
840
|
+
*/
|
|
841
|
+
export const revokeConnectorConnection = <ThrowOnError extends boolean = false>(
|
|
842
|
+
options: Options<RevokeConnectorConnectionData, ThrowOnError>
|
|
843
|
+
) =>
|
|
844
|
+
(options.client ?? client).post<
|
|
845
|
+
RevokeConnectorConnectionResponses,
|
|
846
|
+
RevokeConnectorConnectionErrors,
|
|
847
|
+
ThrowOnError
|
|
848
|
+
>({
|
|
849
|
+
security: [{ name: "x-sixb-csrf", type: "apiKey" }],
|
|
850
|
+
url: "/api/connectors/{connectorId}/connections/{connectionId}/revoke",
|
|
851
|
+
...options,
|
|
852
|
+
})
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* Start a connector connection run
|
|
856
|
+
*/
|
|
857
|
+
export const startConnectorConnectionRun = <ThrowOnError extends boolean = false>(
|
|
858
|
+
options: Options<StartConnectorConnectionRunData, ThrowOnError>
|
|
859
|
+
) =>
|
|
860
|
+
(options.client ?? client).post<
|
|
861
|
+
StartConnectorConnectionRunResponses,
|
|
862
|
+
StartConnectorConnectionRunErrors,
|
|
863
|
+
ThrowOnError
|
|
864
|
+
>({
|
|
865
|
+
security: [{ name: "x-sixb-csrf", type: "apiKey" }],
|
|
866
|
+
url: "/api/connectors/{connectorId}/connection-runs",
|
|
867
|
+
...options,
|
|
868
|
+
headers: {
|
|
869
|
+
"Content-Type": "application/json",
|
|
870
|
+
...options.headers,
|
|
871
|
+
},
|
|
872
|
+
})
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* Get a connector connection run
|
|
876
|
+
*/
|
|
877
|
+
export const getConnectorConnectionRun = <ThrowOnError extends boolean = false>(
|
|
878
|
+
options: Options<GetConnectorConnectionRunData, ThrowOnError>
|
|
879
|
+
) =>
|
|
880
|
+
(options.client ?? client).get<
|
|
881
|
+
GetConnectorConnectionRunResponses,
|
|
882
|
+
GetConnectorConnectionRunErrors,
|
|
883
|
+
ThrowOnError
|
|
884
|
+
>({ url: "/api/connectors/{connectorId}/connection-runs/{runId}", ...options })
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* Add a connector connection from an existing authorization
|
|
888
|
+
*/
|
|
889
|
+
export const addConnectorConnection = <ThrowOnError extends boolean = false>(
|
|
890
|
+
options: Options<AddConnectorConnectionData, ThrowOnError>
|
|
891
|
+
) =>
|
|
892
|
+
(options.client ?? client).post<
|
|
893
|
+
AddConnectorConnectionResponses,
|
|
894
|
+
AddConnectorConnectionErrors,
|
|
895
|
+
ThrowOnError
|
|
896
|
+
>({
|
|
897
|
+
security: [{ name: "x-sixb-csrf", type: "apiKey" }],
|
|
898
|
+
url: "/api/connectors/{connectorId}/connections/{connectionId}/connection-runs",
|
|
899
|
+
...options,
|
|
900
|
+
headers: {
|
|
901
|
+
"Content-Type": "application/json",
|
|
902
|
+
...options.headers,
|
|
903
|
+
},
|
|
904
|
+
})
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* Select a connector account
|
|
908
|
+
*/
|
|
909
|
+
export const selectConnectorConnectionRunAccount = <ThrowOnError extends boolean = false>(
|
|
910
|
+
options: Options<SelectConnectorConnectionRunAccountData, ThrowOnError>
|
|
911
|
+
) =>
|
|
912
|
+
(options.client ?? client).post<
|
|
913
|
+
SelectConnectorConnectionRunAccountResponses,
|
|
914
|
+
SelectConnectorConnectionRunAccountErrors,
|
|
915
|
+
ThrowOnError
|
|
916
|
+
>({
|
|
917
|
+
security: [{ name: "x-sixb-csrf", type: "apiKey" }],
|
|
918
|
+
url: "/api/connectors/{connectorId}/connection-runs/{runId}/selection",
|
|
919
|
+
...options,
|
|
920
|
+
headers: {
|
|
921
|
+
"Content-Type": "application/json",
|
|
922
|
+
...options.headers,
|
|
923
|
+
},
|
|
924
|
+
})
|
|
925
|
+
|
|
926
|
+
/**
|
|
927
|
+
* Reauthorize a connector connection
|
|
928
|
+
*/
|
|
929
|
+
export const reauthorizeConnectorConnection = <ThrowOnError extends boolean = false>(
|
|
930
|
+
options: Options<ReauthorizeConnectorConnectionData, ThrowOnError>
|
|
931
|
+
) =>
|
|
932
|
+
(options.client ?? client).post<
|
|
933
|
+
ReauthorizeConnectorConnectionResponses,
|
|
934
|
+
ReauthorizeConnectorConnectionErrors,
|
|
935
|
+
ThrowOnError
|
|
936
|
+
>({
|
|
937
|
+
security: [{ name: "x-sixb-csrf", type: "apiKey" }],
|
|
938
|
+
url: "/api/connectors/{connectorId}/connections/{connectionId}/reauthorize",
|
|
939
|
+
...options,
|
|
940
|
+
headers: {
|
|
941
|
+
"Content-Type": "application/json",
|
|
942
|
+
...options.headers,
|
|
943
|
+
},
|
|
944
|
+
})
|
|
945
|
+
|
|
786
946
|
/**
|
|
787
947
|
* List registered datasets
|
|
788
948
|
*/
|