@sixb/client 0.1.6 → 0.1.8
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/api.d.ts +5 -0
- package/dist/api.d.ts.map +1 -1
- package/dist/browser.d.ts +18 -1
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +180 -35
- package/dist/browser.js.map +3 -3
- package/dist/{chunk-hwg7mwq7.js → chunk-0g4bg41z.js} +46 -7
- package/dist/chunk-0g4bg41z.js.map +17 -0
- package/dist/chunk-3gvmb0w6.js +23 -0
- package/dist/chunk-3gvmb0w6.js.map +10 -0
- package/dist/{chunk-g19v53kt.js → chunk-cmfd585n.js} +17 -2
- package/dist/chunk-cmfd585n.js.map +10 -0
- package/dist/{chunk-ehjnq01h.js → chunk-n4160ht2.js} +179 -28
- package/dist/chunk-n4160ht2.js.map +19 -0
- package/dist/{chunk-ks27bq5b.js → chunk-se1tydhh.js} +2 -2
- package/dist/{chunk-9bwme2g7.js → chunk-v8q8185t.js} +61 -6
- package/dist/chunk-v8q8185t.js.map +10 -0
- package/dist/{chunk-5y58b4tr.js → chunk-x6pk2xhn.js} +21 -4
- package/dist/chunk-x6pk2xhn.js.map +12 -0
- package/dist/client-authority.d.ts +6 -0
- package/dist/client-authority.d.ts.map +1 -0
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/events-builder.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 +2687 -378
- 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 +65 -7
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +3539 -2377
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.js +280 -22
- package/dist/hooks.js.map +3 -3
- package/dist/index.js +41 -8
- package/dist/index.js.map +1 -1
- package/dist/logs-builder.d.ts.map +1 -1
- package/dist/logs.js +5 -4
- package/dist/logs.js.map +1 -1
- package/dist/models.js +32 -4
- package/dist/models.js.map +1 -1
- package/dist/query.js +5 -4
- package/dist/query.js.map +1 -1
- package/dist/ws-socket.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/agent-streams.ts +0 -1
- package/src/api.ts +92 -3
- package/src/browser.ts +257 -48
- package/src/client-authority.ts +31 -0
- package/src/events-builder.ts +18 -1
- package/src/file.ts +36 -0
- package/src/generated/@tanstack/react-query.gen.ts +549 -31
- package/src/generated/index.ts +88 -4
- package/src/generated/sdk.gen.ts +375 -30
- package/src/generated/types.gen.ts +1746 -227
- package/src/logs-builder.ts +14 -1
- package/src/ws-socket.ts +11 -0
- package/dist/chunk-5y58b4tr.js.map +0 -12
- package/dist/chunk-9bwme2g7.js.map +0 -10
- package/dist/chunk-ehjnq01h.js.map +0 -19
- package/dist/chunk-g19v53kt.js.map +0 -10
- package/dist/chunk-hwg7mwq7.js.map +0 -17
- /package/dist/{chunk-ks27bq5b.js.map → chunk-se1tydhh.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,26 @@ 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,
|
|
70
|
+
ExchangeSharedAccessData,
|
|
71
|
+
ExchangeSharedAccessErrors,
|
|
72
|
+
ExchangeSharedAccessResponses,
|
|
59
73
|
ExistsObjectsData,
|
|
60
74
|
ExistsObjectsErrors,
|
|
61
75
|
ExistsObjectsResponses,
|
|
@@ -86,6 +100,12 @@ import type {
|
|
|
86
100
|
GetAiAccountingOverviewData,
|
|
87
101
|
GetAiAccountingOverviewErrors,
|
|
88
102
|
GetAiAccountingOverviewResponses,
|
|
103
|
+
GetAiLimitStatusData,
|
|
104
|
+
GetAiLimitStatusErrors,
|
|
105
|
+
GetAiLimitStatusResponses,
|
|
106
|
+
GetAiLimitSubjectOptionsData,
|
|
107
|
+
GetAiLimitSubjectOptionsErrors,
|
|
108
|
+
GetAiLimitSubjectOptionsResponses,
|
|
89
109
|
GetAuthAccessManagementOptionsData,
|
|
90
110
|
GetAuthAccessManagementOptionsErrors,
|
|
91
111
|
GetAuthAccessManagementOptionsResponses,
|
|
@@ -141,6 +161,9 @@ import type {
|
|
|
141
161
|
GetRuleData,
|
|
142
162
|
GetRuleErrors,
|
|
143
163
|
GetRuleResponses,
|
|
164
|
+
GetSharedAccessSessionData,
|
|
165
|
+
GetSharedAccessSessionErrors,
|
|
166
|
+
GetSharedAccessSessionResponses,
|
|
144
167
|
GetStatusData,
|
|
145
168
|
GetStatusResponses,
|
|
146
169
|
GetSyncData,
|
|
@@ -182,13 +205,14 @@ import type {
|
|
|
182
205
|
HeadWorkflowRunFileContentData,
|
|
183
206
|
HeadWorkflowRunFileContentErrors,
|
|
184
207
|
HeadWorkflowRunFileContentResponses,
|
|
208
|
+
IssueSharedAccessGrantData,
|
|
209
|
+
IssueSharedAccessGrantErrors,
|
|
210
|
+
IssueSharedAccessGrantResponses,
|
|
185
211
|
ListActionRunsData,
|
|
186
212
|
ListActionRunsErrors,
|
|
187
213
|
ListActionRunsResponses,
|
|
188
214
|
ListActionsData,
|
|
189
215
|
ListActionsResponses,
|
|
190
|
-
ListAgentsData,
|
|
191
|
-
ListAgentsResponses,
|
|
192
216
|
ListAgentThreadMessagesData,
|
|
193
217
|
ListAgentThreadMessagesErrors,
|
|
194
218
|
ListAgentThreadMessagesResponses,
|
|
@@ -198,6 +222,12 @@ import type {
|
|
|
198
222
|
ListAgentThreadsData,
|
|
199
223
|
ListAgentThreadsErrors,
|
|
200
224
|
ListAgentThreadsResponses,
|
|
225
|
+
ListAiLimitPoliciesData,
|
|
226
|
+
ListAiLimitPoliciesErrors,
|
|
227
|
+
ListAiLimitPoliciesResponses,
|
|
228
|
+
ListAiModelCallGroupsData,
|
|
229
|
+
ListAiModelCallGroupsErrors,
|
|
230
|
+
ListAiModelCallGroupsResponses,
|
|
201
231
|
ListAiModelCallsData,
|
|
202
232
|
ListAiModelCallsErrors,
|
|
203
233
|
ListAiModelCallsResponses,
|
|
@@ -261,6 +291,9 @@ import type {
|
|
|
261
291
|
ListRuleStatesResponses,
|
|
262
292
|
ListRulesData,
|
|
263
293
|
ListRulesResponses,
|
|
294
|
+
ListSharedAccessGrantsData,
|
|
295
|
+
ListSharedAccessGrantsErrors,
|
|
296
|
+
ListSharedAccessGrantsResponses,
|
|
264
297
|
ListSyncRunsData,
|
|
265
298
|
ListSyncRunsErrors,
|
|
266
299
|
ListSyncRunsResponses,
|
|
@@ -325,6 +358,9 @@ import type {
|
|
|
325
358
|
RevokeConnectorConnectionData,
|
|
326
359
|
RevokeConnectorConnectionErrors,
|
|
327
360
|
RevokeConnectorConnectionResponses,
|
|
361
|
+
RevokeSharedAccessGrantData,
|
|
362
|
+
RevokeSharedAccessGrantErrors,
|
|
363
|
+
RevokeSharedAccessGrantResponses,
|
|
328
364
|
SearchObjectsData,
|
|
329
365
|
SearchObjectsErrors,
|
|
330
366
|
SearchObjectsResponses,
|
|
@@ -340,6 +376,9 @@ import type {
|
|
|
340
376
|
SignOutData,
|
|
341
377
|
SignOutErrors,
|
|
342
378
|
SignOutResponses,
|
|
379
|
+
SignOutSharedAccessData,
|
|
380
|
+
SignOutSharedAccessErrors,
|
|
381
|
+
SignOutSharedAccessResponses,
|
|
343
382
|
StartConnectorConnectionRunData,
|
|
344
383
|
StartConnectorConnectionRunErrors,
|
|
345
384
|
StartConnectorConnectionRunResponses,
|
|
@@ -349,6 +388,9 @@ import type {
|
|
|
349
388
|
SuspendAuthMemberData,
|
|
350
389
|
SuspendAuthMemberErrors,
|
|
351
390
|
SuspendAuthMemberResponses,
|
|
391
|
+
UpdateAiLimitPolicyData,
|
|
392
|
+
UpdateAiLimitPolicyErrors,
|
|
393
|
+
UpdateAiLimitPolicyResponses,
|
|
352
394
|
UpdateAuthMemberGroupsData,
|
|
353
395
|
UpdateAuthMemberGroupsErrors,
|
|
354
396
|
UpdateAuthMemberGroupsResponses,
|
|
@@ -383,6 +425,40 @@ export type Options<
|
|
|
383
425
|
meta?: Record<string, unknown>
|
|
384
426
|
}
|
|
385
427
|
|
|
428
|
+
/**
|
|
429
|
+
* Start device authorization
|
|
430
|
+
*/
|
|
431
|
+
export const createDeviceAuthorization = <ThrowOnError extends boolean = false>(
|
|
432
|
+
options: Options<CreateDeviceAuthorizationData, ThrowOnError>
|
|
433
|
+
) =>
|
|
434
|
+
(options.client ?? client).post<
|
|
435
|
+
CreateDeviceAuthorizationResponses,
|
|
436
|
+
CreateDeviceAuthorizationErrors,
|
|
437
|
+
ThrowOnError
|
|
438
|
+
>({
|
|
439
|
+
url: "/api/auth/device-authorizations",
|
|
440
|
+
...options,
|
|
441
|
+
headers: {
|
|
442
|
+
"Content-Type": "application/json",
|
|
443
|
+
...options.headers,
|
|
444
|
+
},
|
|
445
|
+
})
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Exchange an approved device authorization
|
|
449
|
+
*/
|
|
450
|
+
export const exchangeDeviceAuthorization = <ThrowOnError extends boolean = false>(
|
|
451
|
+
options: Options<ExchangeDeviceAuthorizationData, ThrowOnError>
|
|
452
|
+
) =>
|
|
453
|
+
(options.client ?? client).post<ExchangeDeviceAuthorizationResponses, unknown, ThrowOnError>({
|
|
454
|
+
url: "/api/auth/device-authorizations/token",
|
|
455
|
+
...options,
|
|
456
|
+
headers: {
|
|
457
|
+
"Content-Type": "application/json",
|
|
458
|
+
...options.headers,
|
|
459
|
+
},
|
|
460
|
+
})
|
|
461
|
+
|
|
386
462
|
/**
|
|
387
463
|
* Get current auth session
|
|
388
464
|
*/
|
|
@@ -780,7 +856,11 @@ export const getAiAccountingOverview = <ThrowOnError extends boolean = false>(
|
|
|
780
856
|
GetAiAccountingOverviewResponses,
|
|
781
857
|
GetAiAccountingOverviewErrors,
|
|
782
858
|
ThrowOnError
|
|
783
|
-
>({
|
|
859
|
+
>({
|
|
860
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
861
|
+
url: "/api/ai/accounting/overview",
|
|
862
|
+
...options,
|
|
863
|
+
})
|
|
784
864
|
|
|
785
865
|
/**
|
|
786
866
|
* List project AI model-call accounting records
|
|
@@ -789,10 +869,138 @@ export const listAiModelCalls = <ThrowOnError extends boolean = false>(
|
|
|
789
869
|
options: Options<ListAiModelCallsData, ThrowOnError>
|
|
790
870
|
) =>
|
|
791
871
|
(options.client ?? client).get<ListAiModelCallsResponses, ListAiModelCallsErrors, ThrowOnError>({
|
|
872
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
792
873
|
url: "/api/ai/model-calls",
|
|
793
874
|
...options,
|
|
794
875
|
})
|
|
795
876
|
|
|
877
|
+
/**
|
|
878
|
+
* List project AI usage-limit policies
|
|
879
|
+
*/
|
|
880
|
+
export const listAiLimitPolicies = <ThrowOnError extends boolean = false>(
|
|
881
|
+
options?: Options<ListAiLimitPoliciesData, ThrowOnError>
|
|
882
|
+
) =>
|
|
883
|
+
(options?.client ?? client).get<
|
|
884
|
+
ListAiLimitPoliciesResponses,
|
|
885
|
+
ListAiLimitPoliciesErrors,
|
|
886
|
+
ThrowOnError
|
|
887
|
+
>({
|
|
888
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
889
|
+
url: "/api/ai/limits",
|
|
890
|
+
...options,
|
|
891
|
+
})
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* Create an AI usage-limit policy
|
|
895
|
+
*/
|
|
896
|
+
export const createAiLimitPolicy = <ThrowOnError extends boolean = false>(
|
|
897
|
+
options: Options<CreateAiLimitPolicyData, ThrowOnError>
|
|
898
|
+
) =>
|
|
899
|
+
(options.client ?? client).post<
|
|
900
|
+
CreateAiLimitPolicyResponses,
|
|
901
|
+
CreateAiLimitPolicyErrors,
|
|
902
|
+
ThrowOnError
|
|
903
|
+
>({
|
|
904
|
+
security: [
|
|
905
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
906
|
+
{ scheme: "bearer", type: "http" },
|
|
907
|
+
],
|
|
908
|
+
url: "/api/ai/limits",
|
|
909
|
+
...options,
|
|
910
|
+
headers: {
|
|
911
|
+
"Content-Type": "application/json",
|
|
912
|
+
...options.headers,
|
|
913
|
+
},
|
|
914
|
+
})
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* Get current project AI usage-limit status
|
|
918
|
+
*/
|
|
919
|
+
export const getAiLimitStatus = <ThrowOnError extends boolean = false>(
|
|
920
|
+
options?: Options<GetAiLimitStatusData, ThrowOnError>
|
|
921
|
+
) =>
|
|
922
|
+
(options?.client ?? client).get<GetAiLimitStatusResponses, GetAiLimitStatusErrors, ThrowOnError>({
|
|
923
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
924
|
+
url: "/api/ai/limits/status",
|
|
925
|
+
...options,
|
|
926
|
+
})
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
* Get selectable AI usage-limit subjects
|
|
930
|
+
*
|
|
931
|
+
* Lists registered groups and auth principals available for AI usage-limit policies.
|
|
932
|
+
*/
|
|
933
|
+
export const getAiLimitSubjectOptions = <ThrowOnError extends boolean = false>(
|
|
934
|
+
options?: Options<GetAiLimitSubjectOptionsData, ThrowOnError>
|
|
935
|
+
) =>
|
|
936
|
+
(options?.client ?? client).get<
|
|
937
|
+
GetAiLimitSubjectOptionsResponses,
|
|
938
|
+
GetAiLimitSubjectOptionsErrors,
|
|
939
|
+
ThrowOnError
|
|
940
|
+
>({
|
|
941
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
942
|
+
url: "/api/ai/limits/subjects",
|
|
943
|
+
...options,
|
|
944
|
+
})
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Delete an AI usage-limit policy
|
|
948
|
+
*/
|
|
949
|
+
export const deleteAiLimitPolicy = <ThrowOnError extends boolean = false>(
|
|
950
|
+
options: Options<DeleteAiLimitPolicyData, ThrowOnError>
|
|
951
|
+
) =>
|
|
952
|
+
(options.client ?? client).delete<
|
|
953
|
+
DeleteAiLimitPolicyResponses,
|
|
954
|
+
DeleteAiLimitPolicyErrors,
|
|
955
|
+
ThrowOnError
|
|
956
|
+
>({
|
|
957
|
+
security: [
|
|
958
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
959
|
+
{ scheme: "bearer", type: "http" },
|
|
960
|
+
],
|
|
961
|
+
url: "/api/ai/limits/{limitId}",
|
|
962
|
+
...options,
|
|
963
|
+
})
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* Update an AI usage-limit policy
|
|
967
|
+
*/
|
|
968
|
+
export const updateAiLimitPolicy = <ThrowOnError extends boolean = false>(
|
|
969
|
+
options: Options<UpdateAiLimitPolicyData, ThrowOnError>
|
|
970
|
+
) =>
|
|
971
|
+
(options.client ?? client).put<
|
|
972
|
+
UpdateAiLimitPolicyResponses,
|
|
973
|
+
UpdateAiLimitPolicyErrors,
|
|
974
|
+
ThrowOnError
|
|
975
|
+
>({
|
|
976
|
+
security: [
|
|
977
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
978
|
+
{ scheme: "bearer", type: "http" },
|
|
979
|
+
],
|
|
980
|
+
url: "/api/ai/limits/{limitId}",
|
|
981
|
+
...options,
|
|
982
|
+
headers: {
|
|
983
|
+
"Content-Type": "application/json",
|
|
984
|
+
...options.headers,
|
|
985
|
+
},
|
|
986
|
+
})
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* List AI model calls grouped by initiating execution
|
|
990
|
+
*/
|
|
991
|
+
export const listAiModelCallGroups = <ThrowOnError extends boolean = false>(
|
|
992
|
+
options: Options<ListAiModelCallGroupsData, ThrowOnError>
|
|
993
|
+
) =>
|
|
994
|
+
(options.client ?? client).get<
|
|
995
|
+
ListAiModelCallGroupsResponses,
|
|
996
|
+
ListAiModelCallGroupsErrors,
|
|
997
|
+
ThrowOnError
|
|
998
|
+
>({
|
|
999
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1000
|
+
url: "/api/ai/model-call-groups",
|
|
1001
|
+
...options,
|
|
1002
|
+
})
|
|
1003
|
+
|
|
796
1004
|
/**
|
|
797
1005
|
* Get current project metadata
|
|
798
1006
|
*/
|
|
@@ -1409,6 +1617,111 @@ export const listRuleStates = <ThrowOnError extends boolean = false>(
|
|
|
1409
1617
|
...options,
|
|
1410
1618
|
})
|
|
1411
1619
|
|
|
1620
|
+
/**
|
|
1621
|
+
* List shared-access grants
|
|
1622
|
+
*/
|
|
1623
|
+
export const listSharedAccessGrants = <ThrowOnError extends boolean = false>(
|
|
1624
|
+
options: Options<ListSharedAccessGrantsData, ThrowOnError>
|
|
1625
|
+
) =>
|
|
1626
|
+
(options.client ?? client).get<
|
|
1627
|
+
ListSharedAccessGrantsResponses,
|
|
1628
|
+
ListSharedAccessGrantsErrors,
|
|
1629
|
+
ThrowOnError
|
|
1630
|
+
>({
|
|
1631
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1632
|
+
url: "/api/share-grants",
|
|
1633
|
+
...options,
|
|
1634
|
+
})
|
|
1635
|
+
|
|
1636
|
+
/**
|
|
1637
|
+
* Issue a shared-access grant
|
|
1638
|
+
*/
|
|
1639
|
+
export const issueSharedAccessGrant = <ThrowOnError extends boolean = false>(
|
|
1640
|
+
options: Options<IssueSharedAccessGrantData, ThrowOnError>
|
|
1641
|
+
) =>
|
|
1642
|
+
(options.client ?? client).post<
|
|
1643
|
+
IssueSharedAccessGrantResponses,
|
|
1644
|
+
IssueSharedAccessGrantErrors,
|
|
1645
|
+
ThrowOnError
|
|
1646
|
+
>({
|
|
1647
|
+
security: [
|
|
1648
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1649
|
+
{ scheme: "bearer", type: "http" },
|
|
1650
|
+
],
|
|
1651
|
+
url: "/api/share-grants",
|
|
1652
|
+
...options,
|
|
1653
|
+
headers: {
|
|
1654
|
+
"Content-Type": "application/json",
|
|
1655
|
+
...options.headers,
|
|
1656
|
+
},
|
|
1657
|
+
})
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Revoke a shared-access grant
|
|
1661
|
+
*/
|
|
1662
|
+
export const revokeSharedAccessGrant = <ThrowOnError extends boolean = false>(
|
|
1663
|
+
options: Options<RevokeSharedAccessGrantData, ThrowOnError>
|
|
1664
|
+
) =>
|
|
1665
|
+
(options.client ?? client).delete<
|
|
1666
|
+
RevokeSharedAccessGrantResponses,
|
|
1667
|
+
RevokeSharedAccessGrantErrors,
|
|
1668
|
+
ThrowOnError
|
|
1669
|
+
>({
|
|
1670
|
+
security: [
|
|
1671
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1672
|
+
{ scheme: "bearer", type: "http" },
|
|
1673
|
+
],
|
|
1674
|
+
url: "/api/share-grants/{grantId}",
|
|
1675
|
+
...options,
|
|
1676
|
+
})
|
|
1677
|
+
|
|
1678
|
+
/**
|
|
1679
|
+
* Exchange a shared link for a short-lived session
|
|
1680
|
+
*/
|
|
1681
|
+
export const exchangeSharedAccess = <ThrowOnError extends boolean = false>(
|
|
1682
|
+
options: Options<ExchangeSharedAccessData, ThrowOnError>
|
|
1683
|
+
) =>
|
|
1684
|
+
(options.client ?? client).post<
|
|
1685
|
+
ExchangeSharedAccessResponses,
|
|
1686
|
+
ExchangeSharedAccessErrors,
|
|
1687
|
+
ThrowOnError
|
|
1688
|
+
>({
|
|
1689
|
+
url: "/api/shared-access/{grantId}/exchange",
|
|
1690
|
+
...options,
|
|
1691
|
+
headers: {
|
|
1692
|
+
"Content-Type": "application/json",
|
|
1693
|
+
...options.headers,
|
|
1694
|
+
},
|
|
1695
|
+
})
|
|
1696
|
+
|
|
1697
|
+
/**
|
|
1698
|
+
* Get the current shared-access session
|
|
1699
|
+
*/
|
|
1700
|
+
export const getSharedAccessSession = <ThrowOnError extends boolean = false>(
|
|
1701
|
+
options: Options<GetSharedAccessSessionData, ThrowOnError>
|
|
1702
|
+
) =>
|
|
1703
|
+
(options.client ?? client).get<
|
|
1704
|
+
GetSharedAccessSessionResponses,
|
|
1705
|
+
GetSharedAccessSessionErrors,
|
|
1706
|
+
ThrowOnError
|
|
1707
|
+
>({ url: "/api/shared-access/{grantId}/session", ...options })
|
|
1708
|
+
|
|
1709
|
+
/**
|
|
1710
|
+
* Sign out a shared-access session
|
|
1711
|
+
*/
|
|
1712
|
+
export const signOutSharedAccess = <ThrowOnError extends boolean = false>(
|
|
1713
|
+
options: Options<SignOutSharedAccessData, ThrowOnError>
|
|
1714
|
+
) =>
|
|
1715
|
+
(options.client ?? client).post<
|
|
1716
|
+
SignOutSharedAccessResponses,
|
|
1717
|
+
SignOutSharedAccessErrors,
|
|
1718
|
+
ThrowOnError
|
|
1719
|
+
>({
|
|
1720
|
+
security: [{ name: "x-sixb-csrf", type: "apiKey" }],
|
|
1721
|
+
url: "/api/shared-access/{grantId}/sign-out",
|
|
1722
|
+
...options,
|
|
1723
|
+
})
|
|
1724
|
+
|
|
1412
1725
|
/**
|
|
1413
1726
|
* List registered object types
|
|
1414
1727
|
*/
|
|
@@ -1416,7 +1729,10 @@ export const listObjectTypes = <ThrowOnError extends boolean = false>(
|
|
|
1416
1729
|
options?: Options<ListObjectTypesData, ThrowOnError>
|
|
1417
1730
|
) =>
|
|
1418
1731
|
(options?.client ?? client).get<ListObjectTypesResponses, unknown, ThrowOnError>({
|
|
1419
|
-
security: [
|
|
1732
|
+
security: [
|
|
1733
|
+
{ scheme: "bearer", type: "http" },
|
|
1734
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1735
|
+
],
|
|
1420
1736
|
url: "/api/object-types",
|
|
1421
1737
|
...options,
|
|
1422
1738
|
})
|
|
@@ -1428,7 +1744,10 @@ export const getObjectType = <ThrowOnError extends boolean = false>(
|
|
|
1428
1744
|
options: Options<GetObjectTypeData, ThrowOnError>
|
|
1429
1745
|
) =>
|
|
1430
1746
|
(options.client ?? client).get<GetObjectTypeResponses, GetObjectTypeErrors, ThrowOnError>({
|
|
1431
|
-
security: [
|
|
1747
|
+
security: [
|
|
1748
|
+
{ scheme: "bearer", type: "http" },
|
|
1749
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1750
|
+
],
|
|
1432
1751
|
url: "/api/object-types/{objectTypeId}",
|
|
1433
1752
|
...options,
|
|
1434
1753
|
})
|
|
@@ -1440,7 +1759,10 @@ export const searchObjects = <ThrowOnError extends boolean = false>(
|
|
|
1440
1759
|
options: Options<SearchObjectsData, ThrowOnError>
|
|
1441
1760
|
) =>
|
|
1442
1761
|
(options.client ?? client).get<SearchObjectsResponses, SearchObjectsErrors, ThrowOnError>({
|
|
1443
|
-
security: [
|
|
1762
|
+
security: [
|
|
1763
|
+
{ scheme: "bearer", type: "http" },
|
|
1764
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1765
|
+
],
|
|
1444
1766
|
url: "/api/objects/search",
|
|
1445
1767
|
...options,
|
|
1446
1768
|
})
|
|
@@ -1452,7 +1774,10 @@ export const listObjects = <ThrowOnError extends boolean = false>(
|
|
|
1452
1774
|
options?: Options<ListObjectsData, ThrowOnError>
|
|
1453
1775
|
) =>
|
|
1454
1776
|
(options?.client ?? client).get<ListObjectsResponses, ListObjectsErrors, ThrowOnError>({
|
|
1455
|
-
security: [
|
|
1777
|
+
security: [
|
|
1778
|
+
{ scheme: "bearer", type: "http" },
|
|
1779
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1780
|
+
],
|
|
1456
1781
|
url: "/api/objects",
|
|
1457
1782
|
...options,
|
|
1458
1783
|
})
|
|
@@ -1467,6 +1792,7 @@ export const queryObjects = <ThrowOnError extends boolean = false>(
|
|
|
1467
1792
|
security: [
|
|
1468
1793
|
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1469
1794
|
{ scheme: "bearer", type: "http" },
|
|
1795
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1470
1796
|
],
|
|
1471
1797
|
url: "/api/objects/query",
|
|
1472
1798
|
...options,
|
|
@@ -1486,6 +1812,7 @@ export const queryObjectLinks = <ThrowOnError extends boolean = false>(
|
|
|
1486
1812
|
security: [
|
|
1487
1813
|
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1488
1814
|
{ scheme: "bearer", type: "http" },
|
|
1815
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1489
1816
|
],
|
|
1490
1817
|
url: "/api/objects/query/links",
|
|
1491
1818
|
...options,
|
|
@@ -1505,6 +1832,7 @@ export const countObjects = <ThrowOnError extends boolean = false>(
|
|
|
1505
1832
|
security: [
|
|
1506
1833
|
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1507
1834
|
{ scheme: "bearer", type: "http" },
|
|
1835
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1508
1836
|
],
|
|
1509
1837
|
url: "/api/objects/query/count",
|
|
1510
1838
|
...options,
|
|
@@ -1524,6 +1852,7 @@ export const existsObjects = <ThrowOnError extends boolean = false>(
|
|
|
1524
1852
|
security: [
|
|
1525
1853
|
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1526
1854
|
{ scheme: "bearer", type: "http" },
|
|
1855
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1527
1856
|
],
|
|
1528
1857
|
url: "/api/objects/query/exists",
|
|
1529
1858
|
...options,
|
|
@@ -1543,6 +1872,7 @@ export const facetObjects = <ThrowOnError extends boolean = false>(
|
|
|
1543
1872
|
security: [
|
|
1544
1873
|
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1545
1874
|
{ scheme: "bearer", type: "http" },
|
|
1875
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1546
1876
|
],
|
|
1547
1877
|
url: "/api/objects/query/facets",
|
|
1548
1878
|
...options,
|
|
@@ -1563,7 +1893,10 @@ export const getObjectFileContent = <ThrowOnError extends boolean = false>(
|
|
|
1563
1893
|
GetObjectFileContentErrors,
|
|
1564
1894
|
ThrowOnError
|
|
1565
1895
|
>({
|
|
1566
|
-
security: [
|
|
1896
|
+
security: [
|
|
1897
|
+
{ scheme: "bearer", type: "http" },
|
|
1898
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1899
|
+
],
|
|
1567
1900
|
url: "/api/objects/{objectTypeId}/{objectId}/files/content",
|
|
1568
1901
|
...options,
|
|
1569
1902
|
})
|
|
@@ -1579,7 +1912,10 @@ export const headObjectFileContent = <ThrowOnError extends boolean = false>(
|
|
|
1579
1912
|
HeadObjectFileContentErrors,
|
|
1580
1913
|
ThrowOnError
|
|
1581
1914
|
>({
|
|
1582
|
-
security: [
|
|
1915
|
+
security: [
|
|
1916
|
+
{ scheme: "bearer", type: "http" },
|
|
1917
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1918
|
+
],
|
|
1583
1919
|
url: "/api/objects/{objectTypeId}/{objectId}/files/content",
|
|
1584
1920
|
...options,
|
|
1585
1921
|
})
|
|
@@ -1591,7 +1927,10 @@ export const getObject = <ThrowOnError extends boolean = false>(
|
|
|
1591
1927
|
options: Options<GetObjectData, ThrowOnError>
|
|
1592
1928
|
) =>
|
|
1593
1929
|
(options.client ?? client).get<GetObjectResponses, GetObjectErrors, ThrowOnError>({
|
|
1594
|
-
security: [
|
|
1930
|
+
security: [
|
|
1931
|
+
{ scheme: "bearer", type: "http" },
|
|
1932
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1933
|
+
],
|
|
1595
1934
|
url: "/api/objects/{objectTypeId}/{objectId}",
|
|
1596
1935
|
...options,
|
|
1597
1936
|
})
|
|
@@ -1622,7 +1961,10 @@ export const listActions = <ThrowOnError extends boolean = false>(
|
|
|
1622
1961
|
options?: Options<ListActionsData, ThrowOnError>
|
|
1623
1962
|
) =>
|
|
1624
1963
|
(options?.client ?? client).get<ListActionsResponses, unknown, ThrowOnError>({
|
|
1625
|
-
security: [
|
|
1964
|
+
security: [
|
|
1965
|
+
{ scheme: "bearer", type: "http" },
|
|
1966
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1967
|
+
],
|
|
1626
1968
|
url: "/api/actions",
|
|
1627
1969
|
...options,
|
|
1628
1970
|
})
|
|
@@ -1634,7 +1976,10 @@ export const getAction = <ThrowOnError extends boolean = false>(
|
|
|
1634
1976
|
options: Options<GetActionData, ThrowOnError>
|
|
1635
1977
|
) =>
|
|
1636
1978
|
(options.client ?? client).get<GetActionResponses, GetActionErrors, ThrowOnError>({
|
|
1637
|
-
security: [
|
|
1979
|
+
security: [
|
|
1980
|
+
{ scheme: "bearer", type: "http" },
|
|
1981
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1982
|
+
],
|
|
1638
1983
|
url: "/api/actions/{actionId}",
|
|
1639
1984
|
...options,
|
|
1640
1985
|
})
|
|
@@ -1649,6 +1994,7 @@ export const requestAction = <ThrowOnError extends boolean = false>(
|
|
|
1649
1994
|
security: [
|
|
1650
1995
|
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1651
1996
|
{ scheme: "bearer", type: "http" },
|
|
1997
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1652
1998
|
],
|
|
1653
1999
|
url: "/api/actions/{actionId}",
|
|
1654
2000
|
...options,
|
|
@@ -1780,7 +2126,10 @@ export const getActionRun = <ThrowOnError extends boolean = false>(
|
|
|
1780
2126
|
options: Options<GetActionRunData, ThrowOnError>
|
|
1781
2127
|
) =>
|
|
1782
2128
|
(options.client ?? client).get<GetActionRunResponses, GetActionRunErrors, ThrowOnError>({
|
|
1783
|
-
security: [
|
|
2129
|
+
security: [
|
|
2130
|
+
{ scheme: "bearer", type: "http" },
|
|
2131
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
2132
|
+
],
|
|
1784
2133
|
url: "/api/action-runs/{runId}",
|
|
1785
2134
|
...options,
|
|
1786
2135
|
})
|
|
@@ -1818,24 +2167,13 @@ export const headActionRunFileContent = <ThrowOnError extends boolean = false>(
|
|
|
1818
2167
|
})
|
|
1819
2168
|
|
|
1820
2169
|
/**
|
|
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
|
|
2170
|
+
* Get the project Agent
|
|
1833
2171
|
*/
|
|
1834
2172
|
export const getAgent = <ThrowOnError extends boolean = false>(
|
|
1835
|
-
options
|
|
2173
|
+
options?: Options<GetAgentData, ThrowOnError>
|
|
1836
2174
|
) =>
|
|
1837
|
-
(options
|
|
1838
|
-
url: "/api/
|
|
2175
|
+
(options?.client ?? client).get<GetAgentResponses, GetAgentErrors, ThrowOnError>({
|
|
2176
|
+
url: "/api/agent",
|
|
1839
2177
|
...options,
|
|
1840
2178
|
})
|
|
1841
2179
|
|
|
@@ -2078,6 +2416,7 @@ export const getBulkTelemetryHistory = <ThrowOnError extends boolean = false>(
|
|
|
2078
2416
|
security: [
|
|
2079
2417
|
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
2080
2418
|
{ scheme: "bearer", type: "http" },
|
|
2419
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
2081
2420
|
],
|
|
2082
2421
|
url: "/api/telemetry/history",
|
|
2083
2422
|
...options,
|
|
@@ -2098,7 +2437,10 @@ export const getTelemetryHistory = <ThrowOnError extends boolean = false>(
|
|
|
2098
2437
|
GetTelemetryHistoryErrors,
|
|
2099
2438
|
ThrowOnError
|
|
2100
2439
|
>({
|
|
2101
|
-
security: [
|
|
2440
|
+
security: [
|
|
2441
|
+
{ scheme: "bearer", type: "http" },
|
|
2442
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
2443
|
+
],
|
|
2102
2444
|
url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}/history",
|
|
2103
2445
|
...options,
|
|
2104
2446
|
})
|
|
@@ -2114,7 +2456,10 @@ export const getLatestTelemetry = <ThrowOnError extends boolean = false>(
|
|
|
2114
2456
|
GetLatestTelemetryErrors,
|
|
2115
2457
|
ThrowOnError
|
|
2116
2458
|
>({
|
|
2117
|
-
security: [
|
|
2459
|
+
security: [
|
|
2460
|
+
{ scheme: "bearer", type: "http" },
|
|
2461
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
2462
|
+
],
|
|
2118
2463
|
url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}/latest",
|
|
2119
2464
|
...options,
|
|
2120
2465
|
})
|