@sixb/client 0.1.6 → 0.1.7
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 +25 -0
- package/dist/browser.js +2 -2
- package/dist/{chunk-9bwme2g7.js → chunk-b3bfdm80.js} +1 -1
- package/dist/{chunk-hwg7mwq7.js → chunk-dcebhkmz.js} +25 -6
- package/dist/{chunk-hwg7mwq7.js.map → chunk-dcebhkmz.js.map} +4 -4
- package/dist/{chunk-g19v53kt.js → chunk-h80qj1f8.js} +1 -1
- package/dist/{chunk-5y58b4tr.js → chunk-m4by7m5r.js} +2 -2
- package/dist/{chunk-ks27bq5b.js → chunk-p0xrjaz6.js} +2 -2
- package/dist/{chunk-ehjnq01h.js → chunk-r8p88mbg.js} +78 -9
- package/dist/chunk-r8p88mbg.js.map +19 -0
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/file.d.ts +11 -0
- package/dist/file.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +2407 -367
- 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 -7
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +975 -172
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.js +166 -22
- package/dist/hooks.js.map +3 -3
- package/dist/index.js +26 -8
- package/dist/index.js.map +1 -1
- package/dist/logs.js +3 -3
- package/dist/models.js +20 -4
- package/dist/models.js.map +1 -1
- package/dist/query.js +3 -3
- package/package.json +2 -2
- package/src/agent-streams.ts +0 -1
- package/src/file.ts +36 -0
- package/src/generated/@tanstack/react-query.gen.ts +320 -31
- package/src/generated/index.ts +52 -4
- package/src/generated/sdk.gen.ts +197 -18
- package/src/generated/types.gen.ts +1266 -146
- package/dist/chunk-ehjnq01h.js.map +0 -19
- /package/dist/{chunk-9bwme2g7.js.map → chunk-b3bfdm80.js.map} +0 -0
- /package/dist/{chunk-g19v53kt.js.map → chunk-h80qj1f8.js.map} +0 -0
- /package/dist/{chunk-5y58b4tr.js.map → chunk-m4by7m5r.js.map} +0 -0
- /package/dist/{chunk-ks27bq5b.js.map → chunk-p0xrjaz6.js.map} +0 -0
|
@@ -19,13 +19,17 @@ import {
|
|
|
19
19
|
completeFileUpload,
|
|
20
20
|
countObjects,
|
|
21
21
|
createAgentThread,
|
|
22
|
+
createAiLimitPolicy,
|
|
22
23
|
createAuthInvitation,
|
|
23
24
|
createAuthPersonalAccessToken,
|
|
24
25
|
createAuthServiceAccount,
|
|
25
26
|
createAuthServiceAccountAccessToken,
|
|
27
|
+
createDeviceAuthorization,
|
|
26
28
|
createFileUpload,
|
|
29
|
+
deleteAiLimitPolicy,
|
|
27
30
|
disableAuthServiceAccount,
|
|
28
31
|
disconnectConnectorConnection,
|
|
32
|
+
exchangeDeviceAuthorization,
|
|
29
33
|
existsObjects,
|
|
30
34
|
facetObjects,
|
|
31
35
|
getAction,
|
|
@@ -36,6 +40,8 @@ import {
|
|
|
36
40
|
getAgentRun,
|
|
37
41
|
getAgentThread,
|
|
38
42
|
getAiAccountingOverview,
|
|
43
|
+
getAiLimitStatus,
|
|
44
|
+
getAiLimitSubjectOptions,
|
|
39
45
|
getAuthAccessManagementOptions,
|
|
40
46
|
getAuthInvitationOptions,
|
|
41
47
|
getAuthMembershipOptions,
|
|
@@ -66,10 +72,11 @@ import {
|
|
|
66
72
|
getWorkflowRunFileContent,
|
|
67
73
|
listActionRuns,
|
|
68
74
|
listActions,
|
|
69
|
-
listAgents,
|
|
70
75
|
listAgentThreadMessages,
|
|
71
76
|
listAgentThreadRuns,
|
|
72
77
|
listAgentThreads,
|
|
78
|
+
listAiLimitPolicies,
|
|
79
|
+
listAiModelCallGroups,
|
|
73
80
|
listAiModelCalls,
|
|
74
81
|
listAuthAccessTokens,
|
|
75
82
|
listAuthInvitations,
|
|
@@ -124,6 +131,7 @@ import {
|
|
|
124
131
|
startConnectorConnectionRun,
|
|
125
132
|
submitWorkflowIntervention,
|
|
126
133
|
suspendAuthMember,
|
|
134
|
+
updateAiLimitPolicy,
|
|
127
135
|
updateAuthMemberGroups,
|
|
128
136
|
uploadFileContent,
|
|
129
137
|
uploadFileRaw,
|
|
@@ -158,6 +166,9 @@ import type {
|
|
|
158
166
|
CreateAgentThreadData,
|
|
159
167
|
CreateAgentThreadError,
|
|
160
168
|
CreateAgentThreadResponse,
|
|
169
|
+
CreateAiLimitPolicyData,
|
|
170
|
+
CreateAiLimitPolicyError,
|
|
171
|
+
CreateAiLimitPolicyResponse,
|
|
161
172
|
CreateAuthInvitationData,
|
|
162
173
|
CreateAuthInvitationError,
|
|
163
174
|
CreateAuthInvitationResponse,
|
|
@@ -170,15 +181,23 @@ import type {
|
|
|
170
181
|
CreateAuthServiceAccountData,
|
|
171
182
|
CreateAuthServiceAccountError,
|
|
172
183
|
CreateAuthServiceAccountResponse,
|
|
184
|
+
CreateDeviceAuthorizationData,
|
|
185
|
+
CreateDeviceAuthorizationError,
|
|
186
|
+
CreateDeviceAuthorizationResponse,
|
|
173
187
|
CreateFileUploadData,
|
|
174
188
|
CreateFileUploadError,
|
|
175
189
|
CreateFileUploadResponse,
|
|
190
|
+
DeleteAiLimitPolicyData,
|
|
191
|
+
DeleteAiLimitPolicyError,
|
|
192
|
+
DeleteAiLimitPolicyResponse,
|
|
176
193
|
DisableAuthServiceAccountData,
|
|
177
194
|
DisableAuthServiceAccountError,
|
|
178
195
|
DisableAuthServiceAccountResponse,
|
|
179
196
|
DisconnectConnectorConnectionData,
|
|
180
197
|
DisconnectConnectorConnectionError,
|
|
181
198
|
DisconnectConnectorConnectionResponse,
|
|
199
|
+
ExchangeDeviceAuthorizationData,
|
|
200
|
+
ExchangeDeviceAuthorizationResponse,
|
|
182
201
|
ExistsObjectsData,
|
|
183
202
|
ExistsObjectsError,
|
|
184
203
|
ExistsObjectsResponse,
|
|
@@ -209,6 +228,12 @@ import type {
|
|
|
209
228
|
GetAiAccountingOverviewData,
|
|
210
229
|
GetAiAccountingOverviewError,
|
|
211
230
|
GetAiAccountingOverviewResponse,
|
|
231
|
+
GetAiLimitStatusData,
|
|
232
|
+
GetAiLimitStatusError,
|
|
233
|
+
GetAiLimitStatusResponse,
|
|
234
|
+
GetAiLimitSubjectOptionsData,
|
|
235
|
+
GetAiLimitSubjectOptionsError,
|
|
236
|
+
GetAiLimitSubjectOptionsResponse,
|
|
212
237
|
GetAuthAccessManagementOptionsData,
|
|
213
238
|
GetAuthAccessManagementOptionsError,
|
|
214
239
|
GetAuthAccessManagementOptionsResponse,
|
|
@@ -295,8 +320,6 @@ import type {
|
|
|
295
320
|
ListActionRunsResponse,
|
|
296
321
|
ListActionsData,
|
|
297
322
|
ListActionsResponse,
|
|
298
|
-
ListAgentsData,
|
|
299
|
-
ListAgentsResponse,
|
|
300
323
|
ListAgentThreadMessagesData,
|
|
301
324
|
ListAgentThreadMessagesError,
|
|
302
325
|
ListAgentThreadMessagesResponse,
|
|
@@ -306,6 +329,12 @@ import type {
|
|
|
306
329
|
ListAgentThreadsData,
|
|
307
330
|
ListAgentThreadsError,
|
|
308
331
|
ListAgentThreadsResponse,
|
|
332
|
+
ListAiLimitPoliciesData,
|
|
333
|
+
ListAiLimitPoliciesError,
|
|
334
|
+
ListAiLimitPoliciesResponse,
|
|
335
|
+
ListAiModelCallGroupsData,
|
|
336
|
+
ListAiModelCallGroupsError,
|
|
337
|
+
ListAiModelCallGroupsResponse,
|
|
309
338
|
ListAiModelCallsData,
|
|
310
339
|
ListAiModelCallsError,
|
|
311
340
|
ListAiModelCallsResponse,
|
|
@@ -457,6 +486,9 @@ import type {
|
|
|
457
486
|
SuspendAuthMemberData,
|
|
458
487
|
SuspendAuthMemberError,
|
|
459
488
|
SuspendAuthMemberResponse,
|
|
489
|
+
UpdateAiLimitPolicyData,
|
|
490
|
+
UpdateAiLimitPolicyError,
|
|
491
|
+
UpdateAiLimitPolicyResponse,
|
|
460
492
|
UpdateAuthMemberGroupsData,
|
|
461
493
|
UpdateAuthMemberGroupsError,
|
|
462
494
|
UpdateAuthMemberGroupsResponse,
|
|
@@ -474,6 +506,60 @@ import type {
|
|
|
474
506
|
UpsertObjectResponse,
|
|
475
507
|
} from "../types.gen"
|
|
476
508
|
|
|
509
|
+
/**
|
|
510
|
+
* Start device authorization
|
|
511
|
+
*/
|
|
512
|
+
export const createDeviceAuthorizationMutation = (
|
|
513
|
+
options?: Partial<Options<CreateDeviceAuthorizationData>>
|
|
514
|
+
): UseMutationOptions<
|
|
515
|
+
CreateDeviceAuthorizationResponse,
|
|
516
|
+
CreateDeviceAuthorizationError,
|
|
517
|
+
Options<CreateDeviceAuthorizationData>
|
|
518
|
+
> => {
|
|
519
|
+
const mutationOptions: UseMutationOptions<
|
|
520
|
+
CreateDeviceAuthorizationResponse,
|
|
521
|
+
CreateDeviceAuthorizationError,
|
|
522
|
+
Options<CreateDeviceAuthorizationData>
|
|
523
|
+
> = {
|
|
524
|
+
mutationFn: async (fnOptions) => {
|
|
525
|
+
const { data } = await createDeviceAuthorization({
|
|
526
|
+
...options,
|
|
527
|
+
...fnOptions,
|
|
528
|
+
throwOnError: true,
|
|
529
|
+
})
|
|
530
|
+
return data
|
|
531
|
+
},
|
|
532
|
+
}
|
|
533
|
+
return mutationOptions
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Exchange an approved device authorization
|
|
538
|
+
*/
|
|
539
|
+
export const exchangeDeviceAuthorizationMutation = (
|
|
540
|
+
options?: Partial<Options<ExchangeDeviceAuthorizationData>>
|
|
541
|
+
): UseMutationOptions<
|
|
542
|
+
ExchangeDeviceAuthorizationResponse,
|
|
543
|
+
DefaultError,
|
|
544
|
+
Options<ExchangeDeviceAuthorizationData>
|
|
545
|
+
> => {
|
|
546
|
+
const mutationOptions: UseMutationOptions<
|
|
547
|
+
ExchangeDeviceAuthorizationResponse,
|
|
548
|
+
DefaultError,
|
|
549
|
+
Options<ExchangeDeviceAuthorizationData>
|
|
550
|
+
> = {
|
|
551
|
+
mutationFn: async (fnOptions) => {
|
|
552
|
+
const { data } = await exchangeDeviceAuthorization({
|
|
553
|
+
...options,
|
|
554
|
+
...fnOptions,
|
|
555
|
+
throwOnError: true,
|
|
556
|
+
})
|
|
557
|
+
return data
|
|
558
|
+
},
|
|
559
|
+
}
|
|
560
|
+
return mutationOptions
|
|
561
|
+
}
|
|
562
|
+
|
|
477
563
|
export type QueryKey<TOptions extends Options> = [
|
|
478
564
|
Pick<TOptions, "baseUrl" | "body" | "headers" | "path" | "query"> & {
|
|
479
565
|
_id: string
|
|
@@ -1350,6 +1436,234 @@ export const listAiModelCallsInfiniteOptions = (options: Options<ListAiModelCall
|
|
|
1350
1436
|
}
|
|
1351
1437
|
)
|
|
1352
1438
|
|
|
1439
|
+
export const listAiLimitPoliciesQueryKey = (options?: Options<ListAiLimitPoliciesData>) =>
|
|
1440
|
+
createQueryKey("listAiLimitPolicies", options)
|
|
1441
|
+
|
|
1442
|
+
/**
|
|
1443
|
+
* List project AI usage-limit policies
|
|
1444
|
+
*/
|
|
1445
|
+
export const listAiLimitPoliciesOptions = (options?: Options<ListAiLimitPoliciesData>) =>
|
|
1446
|
+
queryOptions<
|
|
1447
|
+
ListAiLimitPoliciesResponse,
|
|
1448
|
+
ListAiLimitPoliciesError,
|
|
1449
|
+
ListAiLimitPoliciesResponse,
|
|
1450
|
+
ReturnType<typeof listAiLimitPoliciesQueryKey>
|
|
1451
|
+
>({
|
|
1452
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1453
|
+
const { data } = await listAiLimitPolicies({
|
|
1454
|
+
...options,
|
|
1455
|
+
...queryKey[0],
|
|
1456
|
+
signal,
|
|
1457
|
+
throwOnError: true,
|
|
1458
|
+
})
|
|
1459
|
+
return data
|
|
1460
|
+
},
|
|
1461
|
+
queryKey: listAiLimitPoliciesQueryKey(options),
|
|
1462
|
+
})
|
|
1463
|
+
|
|
1464
|
+
/**
|
|
1465
|
+
* Create an AI usage-limit policy
|
|
1466
|
+
*/
|
|
1467
|
+
export const createAiLimitPolicyMutation = (
|
|
1468
|
+
options?: Partial<Options<CreateAiLimitPolicyData>>
|
|
1469
|
+
): UseMutationOptions<
|
|
1470
|
+
CreateAiLimitPolicyResponse,
|
|
1471
|
+
CreateAiLimitPolicyError,
|
|
1472
|
+
Options<CreateAiLimitPolicyData>
|
|
1473
|
+
> => {
|
|
1474
|
+
const mutationOptions: UseMutationOptions<
|
|
1475
|
+
CreateAiLimitPolicyResponse,
|
|
1476
|
+
CreateAiLimitPolicyError,
|
|
1477
|
+
Options<CreateAiLimitPolicyData>
|
|
1478
|
+
> = {
|
|
1479
|
+
mutationFn: async (fnOptions) => {
|
|
1480
|
+
const { data } = await createAiLimitPolicy({
|
|
1481
|
+
...options,
|
|
1482
|
+
...fnOptions,
|
|
1483
|
+
throwOnError: true,
|
|
1484
|
+
})
|
|
1485
|
+
return data
|
|
1486
|
+
},
|
|
1487
|
+
}
|
|
1488
|
+
return mutationOptions
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
export const getAiLimitStatusQueryKey = (options?: Options<GetAiLimitStatusData>) =>
|
|
1492
|
+
createQueryKey("getAiLimitStatus", options)
|
|
1493
|
+
|
|
1494
|
+
/**
|
|
1495
|
+
* Get current project AI usage-limit status
|
|
1496
|
+
*/
|
|
1497
|
+
export const getAiLimitStatusOptions = (options?: Options<GetAiLimitStatusData>) =>
|
|
1498
|
+
queryOptions<
|
|
1499
|
+
GetAiLimitStatusResponse,
|
|
1500
|
+
GetAiLimitStatusError,
|
|
1501
|
+
GetAiLimitStatusResponse,
|
|
1502
|
+
ReturnType<typeof getAiLimitStatusQueryKey>
|
|
1503
|
+
>({
|
|
1504
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1505
|
+
const { data } = await getAiLimitStatus({
|
|
1506
|
+
...options,
|
|
1507
|
+
...queryKey[0],
|
|
1508
|
+
signal,
|
|
1509
|
+
throwOnError: true,
|
|
1510
|
+
})
|
|
1511
|
+
return data
|
|
1512
|
+
},
|
|
1513
|
+
queryKey: getAiLimitStatusQueryKey(options),
|
|
1514
|
+
})
|
|
1515
|
+
|
|
1516
|
+
export const getAiLimitSubjectOptionsQueryKey = (options?: Options<GetAiLimitSubjectOptionsData>) =>
|
|
1517
|
+
createQueryKey("getAiLimitSubjectOptions", options)
|
|
1518
|
+
|
|
1519
|
+
/**
|
|
1520
|
+
* Get selectable AI usage-limit subjects
|
|
1521
|
+
*
|
|
1522
|
+
* Lists registered groups and auth principals available for AI usage-limit policies.
|
|
1523
|
+
*/
|
|
1524
|
+
export const getAiLimitSubjectOptionsOptions = (options?: Options<GetAiLimitSubjectOptionsData>) =>
|
|
1525
|
+
queryOptions<
|
|
1526
|
+
GetAiLimitSubjectOptionsResponse,
|
|
1527
|
+
GetAiLimitSubjectOptionsError,
|
|
1528
|
+
GetAiLimitSubjectOptionsResponse,
|
|
1529
|
+
ReturnType<typeof getAiLimitSubjectOptionsQueryKey>
|
|
1530
|
+
>({
|
|
1531
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1532
|
+
const { data } = await getAiLimitSubjectOptions({
|
|
1533
|
+
...options,
|
|
1534
|
+
...queryKey[0],
|
|
1535
|
+
signal,
|
|
1536
|
+
throwOnError: true,
|
|
1537
|
+
})
|
|
1538
|
+
return data
|
|
1539
|
+
},
|
|
1540
|
+
queryKey: getAiLimitSubjectOptionsQueryKey(options),
|
|
1541
|
+
})
|
|
1542
|
+
|
|
1543
|
+
/**
|
|
1544
|
+
* Delete an AI usage-limit policy
|
|
1545
|
+
*/
|
|
1546
|
+
export const deleteAiLimitPolicyMutation = (
|
|
1547
|
+
options?: Partial<Options<DeleteAiLimitPolicyData>>
|
|
1548
|
+
): UseMutationOptions<
|
|
1549
|
+
DeleteAiLimitPolicyResponse,
|
|
1550
|
+
DeleteAiLimitPolicyError,
|
|
1551
|
+
Options<DeleteAiLimitPolicyData>
|
|
1552
|
+
> => {
|
|
1553
|
+
const mutationOptions: UseMutationOptions<
|
|
1554
|
+
DeleteAiLimitPolicyResponse,
|
|
1555
|
+
DeleteAiLimitPolicyError,
|
|
1556
|
+
Options<DeleteAiLimitPolicyData>
|
|
1557
|
+
> = {
|
|
1558
|
+
mutationFn: async (fnOptions) => {
|
|
1559
|
+
const { data } = await deleteAiLimitPolicy({
|
|
1560
|
+
...options,
|
|
1561
|
+
...fnOptions,
|
|
1562
|
+
throwOnError: true,
|
|
1563
|
+
})
|
|
1564
|
+
return data
|
|
1565
|
+
},
|
|
1566
|
+
}
|
|
1567
|
+
return mutationOptions
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* Update an AI usage-limit policy
|
|
1572
|
+
*/
|
|
1573
|
+
export const updateAiLimitPolicyMutation = (
|
|
1574
|
+
options?: Partial<Options<UpdateAiLimitPolicyData>>
|
|
1575
|
+
): UseMutationOptions<
|
|
1576
|
+
UpdateAiLimitPolicyResponse,
|
|
1577
|
+
UpdateAiLimitPolicyError,
|
|
1578
|
+
Options<UpdateAiLimitPolicyData>
|
|
1579
|
+
> => {
|
|
1580
|
+
const mutationOptions: UseMutationOptions<
|
|
1581
|
+
UpdateAiLimitPolicyResponse,
|
|
1582
|
+
UpdateAiLimitPolicyError,
|
|
1583
|
+
Options<UpdateAiLimitPolicyData>
|
|
1584
|
+
> = {
|
|
1585
|
+
mutationFn: async (fnOptions) => {
|
|
1586
|
+
const { data } = await updateAiLimitPolicy({
|
|
1587
|
+
...options,
|
|
1588
|
+
...fnOptions,
|
|
1589
|
+
throwOnError: true,
|
|
1590
|
+
})
|
|
1591
|
+
return data
|
|
1592
|
+
},
|
|
1593
|
+
}
|
|
1594
|
+
return mutationOptions
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
export const listAiModelCallGroupsQueryKey = (options: Options<ListAiModelCallGroupsData>) =>
|
|
1598
|
+
createQueryKey("listAiModelCallGroups", options)
|
|
1599
|
+
|
|
1600
|
+
/**
|
|
1601
|
+
* List AI model calls grouped by initiating execution
|
|
1602
|
+
*/
|
|
1603
|
+
export const listAiModelCallGroupsOptions = (options: Options<ListAiModelCallGroupsData>) =>
|
|
1604
|
+
queryOptions<
|
|
1605
|
+
ListAiModelCallGroupsResponse,
|
|
1606
|
+
ListAiModelCallGroupsError,
|
|
1607
|
+
ListAiModelCallGroupsResponse,
|
|
1608
|
+
ReturnType<typeof listAiModelCallGroupsQueryKey>
|
|
1609
|
+
>({
|
|
1610
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1611
|
+
const { data } = await listAiModelCallGroups({
|
|
1612
|
+
...options,
|
|
1613
|
+
...queryKey[0],
|
|
1614
|
+
signal,
|
|
1615
|
+
throwOnError: true,
|
|
1616
|
+
})
|
|
1617
|
+
return data
|
|
1618
|
+
},
|
|
1619
|
+
queryKey: listAiModelCallGroupsQueryKey(options),
|
|
1620
|
+
})
|
|
1621
|
+
|
|
1622
|
+
export const listAiModelCallGroupsInfiniteQueryKey = (
|
|
1623
|
+
options: Options<ListAiModelCallGroupsData>
|
|
1624
|
+
): QueryKey<Options<ListAiModelCallGroupsData>> =>
|
|
1625
|
+
createQueryKey("listAiModelCallGroups", options, true)
|
|
1626
|
+
|
|
1627
|
+
/**
|
|
1628
|
+
* List AI model calls grouped by initiating execution
|
|
1629
|
+
*/
|
|
1630
|
+
export const listAiModelCallGroupsInfiniteOptions = (options: Options<ListAiModelCallGroupsData>) =>
|
|
1631
|
+
infiniteQueryOptions<
|
|
1632
|
+
ListAiModelCallGroupsResponse,
|
|
1633
|
+
ListAiModelCallGroupsError,
|
|
1634
|
+
InfiniteData<ListAiModelCallGroupsResponse>,
|
|
1635
|
+
QueryKey<Options<ListAiModelCallGroupsData>>,
|
|
1636
|
+
| string
|
|
1637
|
+
| Pick<QueryKey<Options<ListAiModelCallGroupsData>>[0], "body" | "headers" | "path" | "query">
|
|
1638
|
+
>(
|
|
1639
|
+
// @ts-ignore
|
|
1640
|
+
{
|
|
1641
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1642
|
+
// @ts-ignore
|
|
1643
|
+
const page: Pick<
|
|
1644
|
+
QueryKey<Options<ListAiModelCallGroupsData>>[0],
|
|
1645
|
+
"body" | "headers" | "path" | "query"
|
|
1646
|
+
> =
|
|
1647
|
+
typeof pageParam === "object"
|
|
1648
|
+
? pageParam
|
|
1649
|
+
: {
|
|
1650
|
+
query: {
|
|
1651
|
+
offset: pageParam,
|
|
1652
|
+
},
|
|
1653
|
+
}
|
|
1654
|
+
const params = createInfiniteParams(queryKey, page)
|
|
1655
|
+
const { data } = await listAiModelCallGroups({
|
|
1656
|
+
...options,
|
|
1657
|
+
...params,
|
|
1658
|
+
signal,
|
|
1659
|
+
throwOnError: true,
|
|
1660
|
+
})
|
|
1661
|
+
return data
|
|
1662
|
+
},
|
|
1663
|
+
queryKey: listAiModelCallGroupsInfiniteQueryKey(options),
|
|
1664
|
+
}
|
|
1665
|
+
)
|
|
1666
|
+
|
|
1353
1667
|
export const getProjectInfoQueryKey = (options?: Options<GetProjectInfoData>) =>
|
|
1354
1668
|
createQueryKey("getProjectInfo", options)
|
|
1355
1669
|
|
|
@@ -3368,38 +3682,13 @@ export const getActionRunFileContentOptions = (options: Options<GetActionRunFile
|
|
|
3368
3682
|
queryKey: getActionRunFileContentQueryKey(options),
|
|
3369
3683
|
})
|
|
3370
3684
|
|
|
3371
|
-
export const
|
|
3372
|
-
createQueryKey("listAgents", options)
|
|
3373
|
-
|
|
3374
|
-
/**
|
|
3375
|
-
* List registered agents
|
|
3376
|
-
*/
|
|
3377
|
-
export const listAgentsOptions = (options?: Options<ListAgentsData>) =>
|
|
3378
|
-
queryOptions<
|
|
3379
|
-
ListAgentsResponse,
|
|
3380
|
-
DefaultError,
|
|
3381
|
-
ListAgentsResponse,
|
|
3382
|
-
ReturnType<typeof listAgentsQueryKey>
|
|
3383
|
-
>({
|
|
3384
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
3385
|
-
const { data } = await listAgents({
|
|
3386
|
-
...options,
|
|
3387
|
-
...queryKey[0],
|
|
3388
|
-
signal,
|
|
3389
|
-
throwOnError: true,
|
|
3390
|
-
})
|
|
3391
|
-
return data
|
|
3392
|
-
},
|
|
3393
|
-
queryKey: listAgentsQueryKey(options),
|
|
3394
|
-
})
|
|
3395
|
-
|
|
3396
|
-
export const getAgentQueryKey = (options: Options<GetAgentData>) =>
|
|
3685
|
+
export const getAgentQueryKey = (options?: Options<GetAgentData>) =>
|
|
3397
3686
|
createQueryKey("getAgent", options)
|
|
3398
3687
|
|
|
3399
3688
|
/**
|
|
3400
|
-
* Get
|
|
3689
|
+
* Get the project Agent
|
|
3401
3690
|
*/
|
|
3402
|
-
export const getAgentOptions = (options
|
|
3691
|
+
export const getAgentOptions = (options?: Options<GetAgentData>) =>
|
|
3403
3692
|
queryOptions<
|
|
3404
3693
|
GetAgentResponse,
|
|
3405
3694
|
GetAgentError,
|
package/src/generated/index.ts
CHANGED
|
@@ -10,13 +10,17 @@ export {
|
|
|
10
10
|
completeFileUpload,
|
|
11
11
|
countObjects,
|
|
12
12
|
createAgentThread,
|
|
13
|
+
createAiLimitPolicy,
|
|
13
14
|
createAuthInvitation,
|
|
14
15
|
createAuthPersonalAccessToken,
|
|
15
16
|
createAuthServiceAccount,
|
|
16
17
|
createAuthServiceAccountAccessToken,
|
|
18
|
+
createDeviceAuthorization,
|
|
17
19
|
createFileUpload,
|
|
20
|
+
deleteAiLimitPolicy,
|
|
18
21
|
disableAuthServiceAccount,
|
|
19
22
|
disconnectConnectorConnection,
|
|
23
|
+
exchangeDeviceAuthorization,
|
|
20
24
|
existsObjects,
|
|
21
25
|
facetObjects,
|
|
22
26
|
getAction,
|
|
@@ -27,6 +31,8 @@ export {
|
|
|
27
31
|
getAgentRun,
|
|
28
32
|
getAgentThread,
|
|
29
33
|
getAiAccountingOverview,
|
|
34
|
+
getAiLimitStatus,
|
|
35
|
+
getAiLimitSubjectOptions,
|
|
30
36
|
getAuthAccessManagementOptions,
|
|
31
37
|
getAuthInvitationOptions,
|
|
32
38
|
getAuthMembershipOptions,
|
|
@@ -62,10 +68,11 @@ export {
|
|
|
62
68
|
headWorkflowRunFileContent,
|
|
63
69
|
listActionRuns,
|
|
64
70
|
listActions,
|
|
65
|
-
listAgents,
|
|
66
71
|
listAgentThreadMessages,
|
|
67
72
|
listAgentThreadRuns,
|
|
68
73
|
listAgentThreads,
|
|
74
|
+
listAiLimitPolicies,
|
|
75
|
+
listAiModelCallGroups,
|
|
69
76
|
listAiModelCalls,
|
|
70
77
|
listAuthAccessTokens,
|
|
71
78
|
listAuthInvitations,
|
|
@@ -120,6 +127,7 @@ export {
|
|
|
120
127
|
startConnectorConnectionRun,
|
|
121
128
|
submitWorkflowIntervention,
|
|
122
129
|
suspendAuthMember,
|
|
130
|
+
updateAiLimitPolicy,
|
|
123
131
|
updateAuthMemberGroups,
|
|
124
132
|
uploadFileContent,
|
|
125
133
|
uploadFileRaw,
|
|
@@ -173,6 +181,11 @@ export type {
|
|
|
173
181
|
CreateAgentThreadErrors,
|
|
174
182
|
CreateAgentThreadResponse,
|
|
175
183
|
CreateAgentThreadResponses,
|
|
184
|
+
CreateAiLimitPolicyData,
|
|
185
|
+
CreateAiLimitPolicyError,
|
|
186
|
+
CreateAiLimitPolicyErrors,
|
|
187
|
+
CreateAiLimitPolicyResponse,
|
|
188
|
+
CreateAiLimitPolicyResponses,
|
|
176
189
|
CreateAuthInvitationData,
|
|
177
190
|
CreateAuthInvitationError,
|
|
178
191
|
CreateAuthInvitationErrors,
|
|
@@ -193,11 +206,21 @@ export type {
|
|
|
193
206
|
CreateAuthServiceAccountErrors,
|
|
194
207
|
CreateAuthServiceAccountResponse,
|
|
195
208
|
CreateAuthServiceAccountResponses,
|
|
209
|
+
CreateDeviceAuthorizationData,
|
|
210
|
+
CreateDeviceAuthorizationError,
|
|
211
|
+
CreateDeviceAuthorizationErrors,
|
|
212
|
+
CreateDeviceAuthorizationResponse,
|
|
213
|
+
CreateDeviceAuthorizationResponses,
|
|
196
214
|
CreateFileUploadData,
|
|
197
215
|
CreateFileUploadError,
|
|
198
216
|
CreateFileUploadErrors,
|
|
199
217
|
CreateFileUploadResponse,
|
|
200
218
|
CreateFileUploadResponses,
|
|
219
|
+
DeleteAiLimitPolicyData,
|
|
220
|
+
DeleteAiLimitPolicyError,
|
|
221
|
+
DeleteAiLimitPolicyErrors,
|
|
222
|
+
DeleteAiLimitPolicyResponse,
|
|
223
|
+
DeleteAiLimitPolicyResponses,
|
|
201
224
|
DisableAuthServiceAccountData,
|
|
202
225
|
DisableAuthServiceAccountError,
|
|
203
226
|
DisableAuthServiceAccountErrors,
|
|
@@ -209,6 +232,9 @@ export type {
|
|
|
209
232
|
DisconnectConnectorConnectionResponse,
|
|
210
233
|
DisconnectConnectorConnectionResponses,
|
|
211
234
|
ErrorResponse,
|
|
235
|
+
ExchangeDeviceAuthorizationData,
|
|
236
|
+
ExchangeDeviceAuthorizationResponse,
|
|
237
|
+
ExchangeDeviceAuthorizationResponses,
|
|
212
238
|
ExistsObjectsData,
|
|
213
239
|
ExistsObjectsError,
|
|
214
240
|
ExistsObjectsErrors,
|
|
@@ -259,6 +285,16 @@ export type {
|
|
|
259
285
|
GetAiAccountingOverviewErrors,
|
|
260
286
|
GetAiAccountingOverviewResponse,
|
|
261
287
|
GetAiAccountingOverviewResponses,
|
|
288
|
+
GetAiLimitStatusData,
|
|
289
|
+
GetAiLimitStatusError,
|
|
290
|
+
GetAiLimitStatusErrors,
|
|
291
|
+
GetAiLimitStatusResponse,
|
|
292
|
+
GetAiLimitStatusResponses,
|
|
293
|
+
GetAiLimitSubjectOptionsData,
|
|
294
|
+
GetAiLimitSubjectOptionsError,
|
|
295
|
+
GetAiLimitSubjectOptionsErrors,
|
|
296
|
+
GetAiLimitSubjectOptionsResponse,
|
|
297
|
+
GetAiLimitSubjectOptionsResponses,
|
|
262
298
|
GetAuthAccessManagementOptionsData,
|
|
263
299
|
GetAuthAccessManagementOptionsError,
|
|
264
300
|
GetAuthAccessManagementOptionsErrors,
|
|
@@ -421,9 +457,6 @@ export type {
|
|
|
421
457
|
ListActionsData,
|
|
422
458
|
ListActionsResponse,
|
|
423
459
|
ListActionsResponses,
|
|
424
|
-
ListAgentsData,
|
|
425
|
-
ListAgentsResponse,
|
|
426
|
-
ListAgentsResponses,
|
|
427
460
|
ListAgentThreadMessagesData,
|
|
428
461
|
ListAgentThreadMessagesError,
|
|
429
462
|
ListAgentThreadMessagesErrors,
|
|
@@ -439,6 +472,16 @@ export type {
|
|
|
439
472
|
ListAgentThreadsErrors,
|
|
440
473
|
ListAgentThreadsResponse,
|
|
441
474
|
ListAgentThreadsResponses,
|
|
475
|
+
ListAiLimitPoliciesData,
|
|
476
|
+
ListAiLimitPoliciesError,
|
|
477
|
+
ListAiLimitPoliciesErrors,
|
|
478
|
+
ListAiLimitPoliciesResponse,
|
|
479
|
+
ListAiLimitPoliciesResponses,
|
|
480
|
+
ListAiModelCallGroupsData,
|
|
481
|
+
ListAiModelCallGroupsError,
|
|
482
|
+
ListAiModelCallGroupsErrors,
|
|
483
|
+
ListAiModelCallGroupsResponse,
|
|
484
|
+
ListAiModelCallGroupsResponses,
|
|
442
485
|
ListAiModelCallsData,
|
|
443
486
|
ListAiModelCallsError,
|
|
444
487
|
ListAiModelCallsErrors,
|
|
@@ -712,6 +755,11 @@ export type {
|
|
|
712
755
|
SuspendAuthMemberErrors,
|
|
713
756
|
SuspendAuthMemberResponse,
|
|
714
757
|
SuspendAuthMemberResponses,
|
|
758
|
+
UpdateAiLimitPolicyData,
|
|
759
|
+
UpdateAiLimitPolicyError,
|
|
760
|
+
UpdateAiLimitPolicyErrors,
|
|
761
|
+
UpdateAiLimitPolicyResponse,
|
|
762
|
+
UpdateAiLimitPolicyResponses,
|
|
715
763
|
UpdateAuthMemberGroupsData,
|
|
716
764
|
UpdateAuthMemberGroupsError,
|
|
717
765
|
UpdateAuthMemberGroupsErrors,
|