@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
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,
|
|
@@ -77,6 +83,9 @@ import type {
|
|
|
77
83
|
GetAgentThreadData,
|
|
78
84
|
GetAgentThreadErrors,
|
|
79
85
|
GetAgentThreadResponses,
|
|
86
|
+
GetAiAccountingOverviewData,
|
|
87
|
+
GetAiAccountingOverviewErrors,
|
|
88
|
+
GetAiAccountingOverviewResponses,
|
|
80
89
|
GetAuthAccessManagementOptionsData,
|
|
81
90
|
GetAuthAccessManagementOptionsErrors,
|
|
82
91
|
GetAuthAccessManagementOptionsResponses,
|
|
@@ -91,6 +100,9 @@ import type {
|
|
|
91
100
|
GetBulkTelemetryHistoryData,
|
|
92
101
|
GetBulkTelemetryHistoryErrors,
|
|
93
102
|
GetBulkTelemetryHistoryResponses,
|
|
103
|
+
GetConnectorConnectionRunData,
|
|
104
|
+
GetConnectorConnectionRunErrors,
|
|
105
|
+
GetConnectorConnectionRunResponses,
|
|
94
106
|
GetConnectorData,
|
|
95
107
|
GetConnectorErrors,
|
|
96
108
|
GetConnectorResponses,
|
|
@@ -186,6 +198,9 @@ import type {
|
|
|
186
198
|
ListAgentThreadsData,
|
|
187
199
|
ListAgentThreadsErrors,
|
|
188
200
|
ListAgentThreadsResponses,
|
|
201
|
+
ListAiModelCallsData,
|
|
202
|
+
ListAiModelCallsErrors,
|
|
203
|
+
ListAiModelCallsResponses,
|
|
189
204
|
ListAuthAccessTokensData,
|
|
190
205
|
ListAuthAccessTokensErrors,
|
|
191
206
|
ListAuthAccessTokensResponses,
|
|
@@ -204,6 +219,9 @@ import type {
|
|
|
204
219
|
ListAuthSessionsData,
|
|
205
220
|
ListAuthSessionsErrors,
|
|
206
221
|
ListAuthSessionsResponses,
|
|
222
|
+
ListConnectorConnectionsData,
|
|
223
|
+
ListConnectorConnectionsErrors,
|
|
224
|
+
ListConnectorConnectionsResponses,
|
|
207
225
|
ListConnectorsData,
|
|
208
226
|
ListConnectorsResponses,
|
|
209
227
|
ListDatasetRowsData,
|
|
@@ -269,6 +287,9 @@ import type {
|
|
|
269
287
|
ReactivateAuthMemberData,
|
|
270
288
|
ReactivateAuthMemberErrors,
|
|
271
289
|
ReactivateAuthMemberResponses,
|
|
290
|
+
ReauthorizeConnectorConnectionData,
|
|
291
|
+
ReauthorizeConnectorConnectionErrors,
|
|
292
|
+
ReauthorizeConnectorConnectionResponses,
|
|
272
293
|
RemoveObjectLinkData,
|
|
273
294
|
RemoveObjectLinkErrors,
|
|
274
295
|
RemoveObjectLinkResponses,
|
|
@@ -299,9 +320,15 @@ import type {
|
|
|
299
320
|
RevokeAuthSessionData,
|
|
300
321
|
RevokeAuthSessionErrors,
|
|
301
322
|
RevokeAuthSessionResponses,
|
|
323
|
+
RevokeConnectorConnectionData,
|
|
324
|
+
RevokeConnectorConnectionErrors,
|
|
325
|
+
RevokeConnectorConnectionResponses,
|
|
302
326
|
SearchObjectsData,
|
|
303
327
|
SearchObjectsErrors,
|
|
304
328
|
SearchObjectsResponses,
|
|
329
|
+
SelectConnectorConnectionRunAccountData,
|
|
330
|
+
SelectConnectorConnectionRunAccountErrors,
|
|
331
|
+
SelectConnectorConnectionRunAccountResponses,
|
|
305
332
|
SignFileUploadPartData,
|
|
306
333
|
SignFileUploadPartErrors,
|
|
307
334
|
SignFileUploadPartResponses,
|
|
@@ -311,6 +338,9 @@ import type {
|
|
|
311
338
|
SignOutData,
|
|
312
339
|
SignOutErrors,
|
|
313
340
|
SignOutResponses,
|
|
341
|
+
StartConnectorConnectionRunData,
|
|
342
|
+
StartConnectorConnectionRunErrors,
|
|
343
|
+
StartConnectorConnectionRunResponses,
|
|
314
344
|
SubmitWorkflowInterventionData,
|
|
315
345
|
SubmitWorkflowInterventionErrors,
|
|
316
346
|
SubmitWorkflowInterventionResponses,
|
|
@@ -738,6 +768,29 @@ export const reactivateAuthMember = <ThrowOnError extends boolean = false>(
|
|
|
738
768
|
...options,
|
|
739
769
|
})
|
|
740
770
|
|
|
771
|
+
/**
|
|
772
|
+
* Get project AI usage and cost analytics
|
|
773
|
+
*/
|
|
774
|
+
export const getAiAccountingOverview = <ThrowOnError extends boolean = false>(
|
|
775
|
+
options: Options<GetAiAccountingOverviewData, ThrowOnError>
|
|
776
|
+
) =>
|
|
777
|
+
(options.client ?? client).get<
|
|
778
|
+
GetAiAccountingOverviewResponses,
|
|
779
|
+
GetAiAccountingOverviewErrors,
|
|
780
|
+
ThrowOnError
|
|
781
|
+
>({ url: "/api/ai/accounting/overview", ...options })
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* List project AI model-call accounting records
|
|
785
|
+
*/
|
|
786
|
+
export const listAiModelCalls = <ThrowOnError extends boolean = false>(
|
|
787
|
+
options: Options<ListAiModelCallsData, ThrowOnError>
|
|
788
|
+
) =>
|
|
789
|
+
(options.client ?? client).get<ListAiModelCallsResponses, ListAiModelCallsErrors, ThrowOnError>({
|
|
790
|
+
url: "/api/ai/model-calls",
|
|
791
|
+
...options,
|
|
792
|
+
})
|
|
793
|
+
|
|
741
794
|
/**
|
|
742
795
|
* Get current project metadata
|
|
743
796
|
*/
|
|
@@ -783,6 +836,142 @@ export const getConnector = <ThrowOnError extends boolean = false>(
|
|
|
783
836
|
...options,
|
|
784
837
|
})
|
|
785
838
|
|
|
839
|
+
/**
|
|
840
|
+
* List connector connections
|
|
841
|
+
*/
|
|
842
|
+
export const listConnectorConnections = <ThrowOnError extends boolean = false>(
|
|
843
|
+
options: Options<ListConnectorConnectionsData, ThrowOnError>
|
|
844
|
+
) =>
|
|
845
|
+
(options.client ?? client).get<
|
|
846
|
+
ListConnectorConnectionsResponses,
|
|
847
|
+
ListConnectorConnectionsErrors,
|
|
848
|
+
ThrowOnError
|
|
849
|
+
>({ url: "/api/connectors/{connectorId}/connections", ...options })
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* Disconnect a connector account
|
|
853
|
+
*/
|
|
854
|
+
export const disconnectConnectorConnection = <ThrowOnError extends boolean = false>(
|
|
855
|
+
options: Options<DisconnectConnectorConnectionData, ThrowOnError>
|
|
856
|
+
) =>
|
|
857
|
+
(options.client ?? client).delete<
|
|
858
|
+
DisconnectConnectorConnectionResponses,
|
|
859
|
+
DisconnectConnectorConnectionErrors,
|
|
860
|
+
ThrowOnError
|
|
861
|
+
>({
|
|
862
|
+
security: [{ name: "x-sixb-csrf", type: "apiKey" }],
|
|
863
|
+
url: "/api/connectors/{connectorId}/connections/{connectionId}",
|
|
864
|
+
...options,
|
|
865
|
+
})
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* Revoke a connector authorization
|
|
869
|
+
*/
|
|
870
|
+
export const revokeConnectorConnection = <ThrowOnError extends boolean = false>(
|
|
871
|
+
options: Options<RevokeConnectorConnectionData, ThrowOnError>
|
|
872
|
+
) =>
|
|
873
|
+
(options.client ?? client).post<
|
|
874
|
+
RevokeConnectorConnectionResponses,
|
|
875
|
+
RevokeConnectorConnectionErrors,
|
|
876
|
+
ThrowOnError
|
|
877
|
+
>({
|
|
878
|
+
security: [{ name: "x-sixb-csrf", type: "apiKey" }],
|
|
879
|
+
url: "/api/connectors/{connectorId}/connections/{connectionId}/revoke",
|
|
880
|
+
...options,
|
|
881
|
+
})
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* Start a connector connection run
|
|
885
|
+
*/
|
|
886
|
+
export const startConnectorConnectionRun = <ThrowOnError extends boolean = false>(
|
|
887
|
+
options: Options<StartConnectorConnectionRunData, ThrowOnError>
|
|
888
|
+
) =>
|
|
889
|
+
(options.client ?? client).post<
|
|
890
|
+
StartConnectorConnectionRunResponses,
|
|
891
|
+
StartConnectorConnectionRunErrors,
|
|
892
|
+
ThrowOnError
|
|
893
|
+
>({
|
|
894
|
+
security: [{ name: "x-sixb-csrf", type: "apiKey" }],
|
|
895
|
+
url: "/api/connectors/{connectorId}/connection-runs",
|
|
896
|
+
...options,
|
|
897
|
+
headers: {
|
|
898
|
+
"Content-Type": "application/json",
|
|
899
|
+
...options.headers,
|
|
900
|
+
},
|
|
901
|
+
})
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* Get a connector connection run
|
|
905
|
+
*/
|
|
906
|
+
export const getConnectorConnectionRun = <ThrowOnError extends boolean = false>(
|
|
907
|
+
options: Options<GetConnectorConnectionRunData, ThrowOnError>
|
|
908
|
+
) =>
|
|
909
|
+
(options.client ?? client).get<
|
|
910
|
+
GetConnectorConnectionRunResponses,
|
|
911
|
+
GetConnectorConnectionRunErrors,
|
|
912
|
+
ThrowOnError
|
|
913
|
+
>({ url: "/api/connectors/{connectorId}/connection-runs/{runId}", ...options })
|
|
914
|
+
|
|
915
|
+
/**
|
|
916
|
+
* Add a connector connection from an existing authorization
|
|
917
|
+
*/
|
|
918
|
+
export const addConnectorConnection = <ThrowOnError extends boolean = false>(
|
|
919
|
+
options: Options<AddConnectorConnectionData, ThrowOnError>
|
|
920
|
+
) =>
|
|
921
|
+
(options.client ?? client).post<
|
|
922
|
+
AddConnectorConnectionResponses,
|
|
923
|
+
AddConnectorConnectionErrors,
|
|
924
|
+
ThrowOnError
|
|
925
|
+
>({
|
|
926
|
+
security: [{ name: "x-sixb-csrf", type: "apiKey" }],
|
|
927
|
+
url: "/api/connectors/{connectorId}/connections/{connectionId}/connection-runs",
|
|
928
|
+
...options,
|
|
929
|
+
headers: {
|
|
930
|
+
"Content-Type": "application/json",
|
|
931
|
+
...options.headers,
|
|
932
|
+
},
|
|
933
|
+
})
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* Select a connector account
|
|
937
|
+
*/
|
|
938
|
+
export const selectConnectorConnectionRunAccount = <ThrowOnError extends boolean = false>(
|
|
939
|
+
options: Options<SelectConnectorConnectionRunAccountData, ThrowOnError>
|
|
940
|
+
) =>
|
|
941
|
+
(options.client ?? client).post<
|
|
942
|
+
SelectConnectorConnectionRunAccountResponses,
|
|
943
|
+
SelectConnectorConnectionRunAccountErrors,
|
|
944
|
+
ThrowOnError
|
|
945
|
+
>({
|
|
946
|
+
security: [{ name: "x-sixb-csrf", type: "apiKey" }],
|
|
947
|
+
url: "/api/connectors/{connectorId}/connection-runs/{runId}/selection",
|
|
948
|
+
...options,
|
|
949
|
+
headers: {
|
|
950
|
+
"Content-Type": "application/json",
|
|
951
|
+
...options.headers,
|
|
952
|
+
},
|
|
953
|
+
})
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* Reauthorize a connector connection
|
|
957
|
+
*/
|
|
958
|
+
export const reauthorizeConnectorConnection = <ThrowOnError extends boolean = false>(
|
|
959
|
+
options: Options<ReauthorizeConnectorConnectionData, ThrowOnError>
|
|
960
|
+
) =>
|
|
961
|
+
(options.client ?? client).post<
|
|
962
|
+
ReauthorizeConnectorConnectionResponses,
|
|
963
|
+
ReauthorizeConnectorConnectionErrors,
|
|
964
|
+
ThrowOnError
|
|
965
|
+
>({
|
|
966
|
+
security: [{ name: "x-sixb-csrf", type: "apiKey" }],
|
|
967
|
+
url: "/api/connectors/{connectorId}/connections/{connectionId}/reauthorize",
|
|
968
|
+
...options,
|
|
969
|
+
headers: {
|
|
970
|
+
"Content-Type": "application/json",
|
|
971
|
+
...options.headers,
|
|
972
|
+
},
|
|
973
|
+
})
|
|
974
|
+
|
|
786
975
|
/**
|
|
787
976
|
* List registered datasets
|
|
788
977
|
*/
|