@sixb/client 0.1.0 → 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-3g6ad4jc.js → chunk-5vp5zr0d.js} +1 -1
- package/dist/{chunk-fxrh83wy.js → chunk-ctf97s25.js} +2 -2
- package/dist/{chunk-05yz32g0.js → chunk-mpgzkmwc.js} +2 -74
- package/dist/chunk-mpgzkmwc.js.map +10 -0
- package/dist/{chunk-ctsdm59b.js → chunk-skkt217g.js} +58 -3
- package/dist/chunk-skkt217g.js.map +19 -0
- package/dist/{chunk-pey7nh0d.js → chunk-tsdnw994.js} +2 -2
- package/dist/{chunk-2d7239yx.js → chunk-v4jdc1nb.js} +40 -28
- package/dist/{chunk-2d7239yx.js.map → chunk-v4jdc1nb.js.map} +3 -3
- package/dist/{chunk-aw8rcsq3.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 +3954 -950
- 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 +1953 -251
- 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 +168 -1
- package/src/generated/types.gen.ts +2789 -293
- 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-05yz32g0.js.map +0 -10
- package/dist/chunk-aw8rcsq3.js.map +0 -10
- package/dist/chunk-ctsdm59b.js.map +0 -19
- /package/dist/{chunk-3g6ad4jc.js.map → chunk-5vp5zr0d.js.map} +0 -0
- /package/dist/{chunk-fxrh83wy.js.map → chunk-ctf97s25.js.map} +0 -0
- /package/dist/{chunk-pey7nh0d.js.map → chunk-tsdnw994.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,
|
|
@@ -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
|
*/
|
|
@@ -1042,6 +1202,7 @@ export const listWorkflowRuns = <ThrowOnError extends boolean = false>(
|
|
|
1042
1202
|
options?: Options<ListWorkflowRunsData, ThrowOnError>
|
|
1043
1203
|
) =>
|
|
1044
1204
|
(options?.client ?? client).get<ListWorkflowRunsResponses, ListWorkflowRunsErrors, ThrowOnError>({
|
|
1205
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1045
1206
|
url: "/api/workflow-runs",
|
|
1046
1207
|
...options,
|
|
1047
1208
|
})
|
|
@@ -1053,6 +1214,7 @@ export const getWorkflowRun = <ThrowOnError extends boolean = false>(
|
|
|
1053
1214
|
options: Options<GetWorkflowRunData, ThrowOnError>
|
|
1054
1215
|
) =>
|
|
1055
1216
|
(options.client ?? client).get<GetWorkflowRunResponses, GetWorkflowRunErrors, ThrowOnError>({
|
|
1217
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1056
1218
|
url: "/api/workflow-runs/{runId}",
|
|
1057
1219
|
...options,
|
|
1058
1220
|
})
|
|
@@ -1454,7 +1616,10 @@ export const uploadFileRaw = <ThrowOnError extends boolean = false>(
|
|
|
1454
1616
|
) =>
|
|
1455
1617
|
(options.client ?? client).post<UploadFileRawResponses, UploadFileRawErrors, ThrowOnError>({
|
|
1456
1618
|
...formDataBodySerializer,
|
|
1457
|
-
security: [
|
|
1619
|
+
security: [
|
|
1620
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1621
|
+
{ scheme: "bearer", type: "http" },
|
|
1622
|
+
],
|
|
1458
1623
|
url: "/api/files",
|
|
1459
1624
|
...options,
|
|
1460
1625
|
headers: {
|
|
@@ -1553,6 +1718,7 @@ export const listActionRuns = <ThrowOnError extends boolean = false>(
|
|
|
1553
1718
|
options?: Options<ListActionRunsData, ThrowOnError>
|
|
1554
1719
|
) =>
|
|
1555
1720
|
(options?.client ?? client).get<ListActionRunsResponses, ListActionRunsErrors, ThrowOnError>({
|
|
1721
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1556
1722
|
url: "/api/action-runs",
|
|
1557
1723
|
...options,
|
|
1558
1724
|
})
|
|
@@ -1787,6 +1953,7 @@ export const listObjectLinks = <ThrowOnError extends boolean = false>(
|
|
|
1787
1953
|
options: Options<ListObjectLinksData, ThrowOnError>
|
|
1788
1954
|
) =>
|
|
1789
1955
|
(options.client ?? client).get<ListObjectLinksResponses, ListObjectLinksErrors, ThrowOnError>({
|
|
1956
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1790
1957
|
url: "/api/objects/{objectTypeId}/{objectId}/links",
|
|
1791
1958
|
...options,
|
|
1792
1959
|
})
|