@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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -35,6 +35,9 @@ import type {
|
|
|
35
35
|
CreateAgentThreadData,
|
|
36
36
|
CreateAgentThreadErrors,
|
|
37
37
|
CreateAgentThreadResponses,
|
|
38
|
+
CreateAiLimitPolicyData,
|
|
39
|
+
CreateAiLimitPolicyErrors,
|
|
40
|
+
CreateAiLimitPolicyResponses,
|
|
38
41
|
CreateAuthInvitationData,
|
|
39
42
|
CreateAuthInvitationErrors,
|
|
40
43
|
CreateAuthInvitationResponses,
|
|
@@ -47,15 +50,23 @@ import type {
|
|
|
47
50
|
CreateAuthServiceAccountData,
|
|
48
51
|
CreateAuthServiceAccountErrors,
|
|
49
52
|
CreateAuthServiceAccountResponses,
|
|
53
|
+
CreateDeviceAuthorizationData,
|
|
54
|
+
CreateDeviceAuthorizationErrors,
|
|
55
|
+
CreateDeviceAuthorizationResponses,
|
|
50
56
|
CreateFileUploadData,
|
|
51
57
|
CreateFileUploadErrors,
|
|
52
58
|
CreateFileUploadResponses,
|
|
59
|
+
DeleteAiLimitPolicyData,
|
|
60
|
+
DeleteAiLimitPolicyErrors,
|
|
61
|
+
DeleteAiLimitPolicyResponses,
|
|
53
62
|
DisableAuthServiceAccountData,
|
|
54
63
|
DisableAuthServiceAccountErrors,
|
|
55
64
|
DisableAuthServiceAccountResponses,
|
|
56
65
|
DisconnectConnectorConnectionData,
|
|
57
66
|
DisconnectConnectorConnectionErrors,
|
|
58
67
|
DisconnectConnectorConnectionResponses,
|
|
68
|
+
ExchangeDeviceAuthorizationData,
|
|
69
|
+
ExchangeDeviceAuthorizationResponses,
|
|
59
70
|
ExistsObjectsData,
|
|
60
71
|
ExistsObjectsErrors,
|
|
61
72
|
ExistsObjectsResponses,
|
|
@@ -86,6 +97,12 @@ import type {
|
|
|
86
97
|
GetAiAccountingOverviewData,
|
|
87
98
|
GetAiAccountingOverviewErrors,
|
|
88
99
|
GetAiAccountingOverviewResponses,
|
|
100
|
+
GetAiLimitStatusData,
|
|
101
|
+
GetAiLimitStatusErrors,
|
|
102
|
+
GetAiLimitStatusResponses,
|
|
103
|
+
GetAiLimitSubjectOptionsData,
|
|
104
|
+
GetAiLimitSubjectOptionsErrors,
|
|
105
|
+
GetAiLimitSubjectOptionsResponses,
|
|
89
106
|
GetAuthAccessManagementOptionsData,
|
|
90
107
|
GetAuthAccessManagementOptionsErrors,
|
|
91
108
|
GetAuthAccessManagementOptionsResponses,
|
|
@@ -187,8 +204,6 @@ import type {
|
|
|
187
204
|
ListActionRunsResponses,
|
|
188
205
|
ListActionsData,
|
|
189
206
|
ListActionsResponses,
|
|
190
|
-
ListAgentsData,
|
|
191
|
-
ListAgentsResponses,
|
|
192
207
|
ListAgentThreadMessagesData,
|
|
193
208
|
ListAgentThreadMessagesErrors,
|
|
194
209
|
ListAgentThreadMessagesResponses,
|
|
@@ -198,6 +213,12 @@ import type {
|
|
|
198
213
|
ListAgentThreadsData,
|
|
199
214
|
ListAgentThreadsErrors,
|
|
200
215
|
ListAgentThreadsResponses,
|
|
216
|
+
ListAiLimitPoliciesData,
|
|
217
|
+
ListAiLimitPoliciesErrors,
|
|
218
|
+
ListAiLimitPoliciesResponses,
|
|
219
|
+
ListAiModelCallGroupsData,
|
|
220
|
+
ListAiModelCallGroupsErrors,
|
|
221
|
+
ListAiModelCallGroupsResponses,
|
|
201
222
|
ListAiModelCallsData,
|
|
202
223
|
ListAiModelCallsErrors,
|
|
203
224
|
ListAiModelCallsResponses,
|
|
@@ -349,6 +370,9 @@ import type {
|
|
|
349
370
|
SuspendAuthMemberData,
|
|
350
371
|
SuspendAuthMemberErrors,
|
|
351
372
|
SuspendAuthMemberResponses,
|
|
373
|
+
UpdateAiLimitPolicyData,
|
|
374
|
+
UpdateAiLimitPolicyErrors,
|
|
375
|
+
UpdateAiLimitPolicyResponses,
|
|
352
376
|
UpdateAuthMemberGroupsData,
|
|
353
377
|
UpdateAuthMemberGroupsErrors,
|
|
354
378
|
UpdateAuthMemberGroupsResponses,
|
|
@@ -383,6 +407,40 @@ export type Options<
|
|
|
383
407
|
meta?: Record<string, unknown>
|
|
384
408
|
}
|
|
385
409
|
|
|
410
|
+
/**
|
|
411
|
+
* Start device authorization
|
|
412
|
+
*/
|
|
413
|
+
export const createDeviceAuthorization = <ThrowOnError extends boolean = false>(
|
|
414
|
+
options: Options<CreateDeviceAuthorizationData, ThrowOnError>
|
|
415
|
+
) =>
|
|
416
|
+
(options.client ?? client).post<
|
|
417
|
+
CreateDeviceAuthorizationResponses,
|
|
418
|
+
CreateDeviceAuthorizationErrors,
|
|
419
|
+
ThrowOnError
|
|
420
|
+
>({
|
|
421
|
+
url: "/api/auth/device-authorizations",
|
|
422
|
+
...options,
|
|
423
|
+
headers: {
|
|
424
|
+
"Content-Type": "application/json",
|
|
425
|
+
...options.headers,
|
|
426
|
+
},
|
|
427
|
+
})
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Exchange an approved device authorization
|
|
431
|
+
*/
|
|
432
|
+
export const exchangeDeviceAuthorization = <ThrowOnError extends boolean = false>(
|
|
433
|
+
options: Options<ExchangeDeviceAuthorizationData, ThrowOnError>
|
|
434
|
+
) =>
|
|
435
|
+
(options.client ?? client).post<ExchangeDeviceAuthorizationResponses, unknown, ThrowOnError>({
|
|
436
|
+
url: "/api/auth/device-authorizations/token",
|
|
437
|
+
...options,
|
|
438
|
+
headers: {
|
|
439
|
+
"Content-Type": "application/json",
|
|
440
|
+
...options.headers,
|
|
441
|
+
},
|
|
442
|
+
})
|
|
443
|
+
|
|
386
444
|
/**
|
|
387
445
|
* Get current auth session
|
|
388
446
|
*/
|
|
@@ -780,7 +838,11 @@ export const getAiAccountingOverview = <ThrowOnError extends boolean = false>(
|
|
|
780
838
|
GetAiAccountingOverviewResponses,
|
|
781
839
|
GetAiAccountingOverviewErrors,
|
|
782
840
|
ThrowOnError
|
|
783
|
-
>({
|
|
841
|
+
>({
|
|
842
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
843
|
+
url: "/api/ai/accounting/overview",
|
|
844
|
+
...options,
|
|
845
|
+
})
|
|
784
846
|
|
|
785
847
|
/**
|
|
786
848
|
* List project AI model-call accounting records
|
|
@@ -789,10 +851,138 @@ export const listAiModelCalls = <ThrowOnError extends boolean = false>(
|
|
|
789
851
|
options: Options<ListAiModelCallsData, ThrowOnError>
|
|
790
852
|
) =>
|
|
791
853
|
(options.client ?? client).get<ListAiModelCallsResponses, ListAiModelCallsErrors, ThrowOnError>({
|
|
854
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
792
855
|
url: "/api/ai/model-calls",
|
|
793
856
|
...options,
|
|
794
857
|
})
|
|
795
858
|
|
|
859
|
+
/**
|
|
860
|
+
* List project AI usage-limit policies
|
|
861
|
+
*/
|
|
862
|
+
export const listAiLimitPolicies = <ThrowOnError extends boolean = false>(
|
|
863
|
+
options?: Options<ListAiLimitPoliciesData, ThrowOnError>
|
|
864
|
+
) =>
|
|
865
|
+
(options?.client ?? client).get<
|
|
866
|
+
ListAiLimitPoliciesResponses,
|
|
867
|
+
ListAiLimitPoliciesErrors,
|
|
868
|
+
ThrowOnError
|
|
869
|
+
>({
|
|
870
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
871
|
+
url: "/api/ai/limits",
|
|
872
|
+
...options,
|
|
873
|
+
})
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Create an AI usage-limit policy
|
|
877
|
+
*/
|
|
878
|
+
export const createAiLimitPolicy = <ThrowOnError extends boolean = false>(
|
|
879
|
+
options: Options<CreateAiLimitPolicyData, ThrowOnError>
|
|
880
|
+
) =>
|
|
881
|
+
(options.client ?? client).post<
|
|
882
|
+
CreateAiLimitPolicyResponses,
|
|
883
|
+
CreateAiLimitPolicyErrors,
|
|
884
|
+
ThrowOnError
|
|
885
|
+
>({
|
|
886
|
+
security: [
|
|
887
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
888
|
+
{ scheme: "bearer", type: "http" },
|
|
889
|
+
],
|
|
890
|
+
url: "/api/ai/limits",
|
|
891
|
+
...options,
|
|
892
|
+
headers: {
|
|
893
|
+
"Content-Type": "application/json",
|
|
894
|
+
...options.headers,
|
|
895
|
+
},
|
|
896
|
+
})
|
|
897
|
+
|
|
898
|
+
/**
|
|
899
|
+
* Get current project AI usage-limit status
|
|
900
|
+
*/
|
|
901
|
+
export const getAiLimitStatus = <ThrowOnError extends boolean = false>(
|
|
902
|
+
options?: Options<GetAiLimitStatusData, ThrowOnError>
|
|
903
|
+
) =>
|
|
904
|
+
(options?.client ?? client).get<GetAiLimitStatusResponses, GetAiLimitStatusErrors, ThrowOnError>({
|
|
905
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
906
|
+
url: "/api/ai/limits/status",
|
|
907
|
+
...options,
|
|
908
|
+
})
|
|
909
|
+
|
|
910
|
+
/**
|
|
911
|
+
* Get selectable AI usage-limit subjects
|
|
912
|
+
*
|
|
913
|
+
* Lists registered groups and auth principals available for AI usage-limit policies.
|
|
914
|
+
*/
|
|
915
|
+
export const getAiLimitSubjectOptions = <ThrowOnError extends boolean = false>(
|
|
916
|
+
options?: Options<GetAiLimitSubjectOptionsData, ThrowOnError>
|
|
917
|
+
) =>
|
|
918
|
+
(options?.client ?? client).get<
|
|
919
|
+
GetAiLimitSubjectOptionsResponses,
|
|
920
|
+
GetAiLimitSubjectOptionsErrors,
|
|
921
|
+
ThrowOnError
|
|
922
|
+
>({
|
|
923
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
924
|
+
url: "/api/ai/limits/subjects",
|
|
925
|
+
...options,
|
|
926
|
+
})
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
* Delete an AI usage-limit policy
|
|
930
|
+
*/
|
|
931
|
+
export const deleteAiLimitPolicy = <ThrowOnError extends boolean = false>(
|
|
932
|
+
options: Options<DeleteAiLimitPolicyData, ThrowOnError>
|
|
933
|
+
) =>
|
|
934
|
+
(options.client ?? client).delete<
|
|
935
|
+
DeleteAiLimitPolicyResponses,
|
|
936
|
+
DeleteAiLimitPolicyErrors,
|
|
937
|
+
ThrowOnError
|
|
938
|
+
>({
|
|
939
|
+
security: [
|
|
940
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
941
|
+
{ scheme: "bearer", type: "http" },
|
|
942
|
+
],
|
|
943
|
+
url: "/api/ai/limits/{limitId}",
|
|
944
|
+
...options,
|
|
945
|
+
})
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* Update an AI usage-limit policy
|
|
949
|
+
*/
|
|
950
|
+
export const updateAiLimitPolicy = <ThrowOnError extends boolean = false>(
|
|
951
|
+
options: Options<UpdateAiLimitPolicyData, ThrowOnError>
|
|
952
|
+
) =>
|
|
953
|
+
(options.client ?? client).put<
|
|
954
|
+
UpdateAiLimitPolicyResponses,
|
|
955
|
+
UpdateAiLimitPolicyErrors,
|
|
956
|
+
ThrowOnError
|
|
957
|
+
>({
|
|
958
|
+
security: [
|
|
959
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
960
|
+
{ scheme: "bearer", type: "http" },
|
|
961
|
+
],
|
|
962
|
+
url: "/api/ai/limits/{limitId}",
|
|
963
|
+
...options,
|
|
964
|
+
headers: {
|
|
965
|
+
"Content-Type": "application/json",
|
|
966
|
+
...options.headers,
|
|
967
|
+
},
|
|
968
|
+
})
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* List AI model calls grouped by initiating execution
|
|
972
|
+
*/
|
|
973
|
+
export const listAiModelCallGroups = <ThrowOnError extends boolean = false>(
|
|
974
|
+
options: Options<ListAiModelCallGroupsData, ThrowOnError>
|
|
975
|
+
) =>
|
|
976
|
+
(options.client ?? client).get<
|
|
977
|
+
ListAiModelCallGroupsResponses,
|
|
978
|
+
ListAiModelCallGroupsErrors,
|
|
979
|
+
ThrowOnError
|
|
980
|
+
>({
|
|
981
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
982
|
+
url: "/api/ai/model-call-groups",
|
|
983
|
+
...options,
|
|
984
|
+
})
|
|
985
|
+
|
|
796
986
|
/**
|
|
797
987
|
* Get current project metadata
|
|
798
988
|
*/
|
|
@@ -1818,24 +2008,13 @@ export const headActionRunFileContent = <ThrowOnError extends boolean = false>(
|
|
|
1818
2008
|
})
|
|
1819
2009
|
|
|
1820
2010
|
/**
|
|
1821
|
-
*
|
|
1822
|
-
*/
|
|
1823
|
-
export const listAgents = <ThrowOnError extends boolean = false>(
|
|
1824
|
-
options?: Options<ListAgentsData, ThrowOnError>
|
|
1825
|
-
) =>
|
|
1826
|
-
(options?.client ?? client).get<ListAgentsResponses, unknown, ThrowOnError>({
|
|
1827
|
-
url: "/api/agents",
|
|
1828
|
-
...options,
|
|
1829
|
-
})
|
|
1830
|
-
|
|
1831
|
-
/**
|
|
1832
|
-
* Get agent metadata
|
|
2011
|
+
* Get the project Agent
|
|
1833
2012
|
*/
|
|
1834
2013
|
export const getAgent = <ThrowOnError extends boolean = false>(
|
|
1835
|
-
options
|
|
2014
|
+
options?: Options<GetAgentData, ThrowOnError>
|
|
1836
2015
|
) =>
|
|
1837
|
-
(options
|
|
1838
|
-
url: "/api/
|
|
2016
|
+
(options?.client ?? client).get<GetAgentResponses, GetAgentErrors, ThrowOnError>({
|
|
2017
|
+
url: "/api/agent",
|
|
1839
2018
|
...options,
|
|
1840
2019
|
})
|
|
1841
2020
|
|