@sixb/client 0.1.7 → 0.1.9
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/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 +201 -56
- package/dist/browser.js.map +3 -3
- package/dist/{chunk-r8p88mbg.js → chunk-62nthgkf.js} +263 -181
- package/dist/chunk-62nthgkf.js.map +19 -0
- package/dist/chunk-65zz479s.js +23 -0
- package/dist/chunk-65zz479s.js.map +10 -0
- package/dist/{chunk-dcebhkmz.js → chunk-6pmyt76w.js} +103 -83
- package/dist/chunk-6pmyt76w.js.map +17 -0
- package/dist/{chunk-p0xrjaz6.js → chunk-cs98dfbc.js} +20 -20
- package/dist/{chunk-p0xrjaz6.js.map → chunk-cs98dfbc.js.map} +2 -2
- package/dist/{chunk-h80qj1f8.js → chunk-d0m9gz29.js} +19 -4
- package/dist/chunk-d0m9gz29.js.map +10 -0
- package/dist/{chunk-m4by7m5r.js → chunk-dp68jpeq.js} +32 -15
- package/dist/chunk-dp68jpeq.js.map +12 -0
- package/dist/chunk-rvaq39w5.js +215 -0
- package/dist/chunk-rvaq39w5.js.map +10 -0
- package/dist/{chunk-mpgzkmwc.js → chunk-tyym13kq.js} +10 -10
- package/dist/{chunk-mpgzkmwc.js.map → chunk-tyym13kq.js.map} +2 -2
- package/dist/client-authority.d.ts +6 -0
- package/dist/client-authority.d.ts.map +1 -0
- package/dist/connectors/queries.d.ts +8 -0
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/events-builder.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +1195 -135
- 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 +25 -1
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +501 -3
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.js +783 -669
- package/dist/hooks.js.map +3 -3
- package/dist/index.js +373 -358
- package/dist/index.js.map +1 -1
- package/dist/logs-builder.d.ts.map +1 -1
- package/dist/logs.js +18 -17
- package/dist/logs.js.map +1 -1
- package/dist/models.js +292 -280
- package/dist/models.js.map +1 -1
- package/dist/query.js +11 -10
- package/dist/query.js.map +1 -1
- package/dist/ws-socket.d.ts.map +1 -1
- package/package.json +3 -3
- 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/generated/@tanstack/react-query.gen.ts +229 -0
- package/src/generated/index.ts +36 -0
- package/src/generated/sdk.gen.ts +178 -12
- package/src/generated/types.gen.ts +550 -3
- package/src/logs-builder.ts +14 -1
- package/src/ws-socket.ts +11 -0
- package/dist/chunk-b3bfdm80.js +0 -160
- package/dist/chunk-b3bfdm80.js.map +0 -10
- package/dist/chunk-dcebhkmz.js.map +0 -17
- package/dist/chunk-h80qj1f8.js.map +0 -10
- package/dist/chunk-m4by7m5r.js.map +0 -12
- package/dist/chunk-r8p88mbg.js.map +0 -19
- /package/dist/{chunk-trpg18dp.js → chunk-0ka9ykez.js} +0 -0
- /package/dist/{chunk-trpg18dp.js.map → chunk-0ka9ykez.js.map} +0 -0
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -67,6 +67,9 @@ import type {
|
|
|
67
67
|
DisconnectConnectorConnectionResponses,
|
|
68
68
|
ExchangeDeviceAuthorizationData,
|
|
69
69
|
ExchangeDeviceAuthorizationResponses,
|
|
70
|
+
ExchangeSharedAccessData,
|
|
71
|
+
ExchangeSharedAccessErrors,
|
|
72
|
+
ExchangeSharedAccessResponses,
|
|
70
73
|
ExistsObjectsData,
|
|
71
74
|
ExistsObjectsErrors,
|
|
72
75
|
ExistsObjectsResponses,
|
|
@@ -158,6 +161,9 @@ import type {
|
|
|
158
161
|
GetRuleData,
|
|
159
162
|
GetRuleErrors,
|
|
160
163
|
GetRuleResponses,
|
|
164
|
+
GetSharedAccessSessionData,
|
|
165
|
+
GetSharedAccessSessionErrors,
|
|
166
|
+
GetSharedAccessSessionResponses,
|
|
161
167
|
GetStatusData,
|
|
162
168
|
GetStatusResponses,
|
|
163
169
|
GetSyncData,
|
|
@@ -199,6 +205,9 @@ import type {
|
|
|
199
205
|
HeadWorkflowRunFileContentData,
|
|
200
206
|
HeadWorkflowRunFileContentErrors,
|
|
201
207
|
HeadWorkflowRunFileContentResponses,
|
|
208
|
+
IssueSharedAccessGrantData,
|
|
209
|
+
IssueSharedAccessGrantErrors,
|
|
210
|
+
IssueSharedAccessGrantResponses,
|
|
202
211
|
ListActionRunsData,
|
|
203
212
|
ListActionRunsErrors,
|
|
204
213
|
ListActionRunsResponses,
|
|
@@ -282,6 +291,9 @@ import type {
|
|
|
282
291
|
ListRuleStatesResponses,
|
|
283
292
|
ListRulesData,
|
|
284
293
|
ListRulesResponses,
|
|
294
|
+
ListSharedAccessGrantsData,
|
|
295
|
+
ListSharedAccessGrantsErrors,
|
|
296
|
+
ListSharedAccessGrantsResponses,
|
|
285
297
|
ListSyncRunsData,
|
|
286
298
|
ListSyncRunsErrors,
|
|
287
299
|
ListSyncRunsResponses,
|
|
@@ -346,6 +358,9 @@ import type {
|
|
|
346
358
|
RevokeConnectorConnectionData,
|
|
347
359
|
RevokeConnectorConnectionErrors,
|
|
348
360
|
RevokeConnectorConnectionResponses,
|
|
361
|
+
RevokeSharedAccessGrantData,
|
|
362
|
+
RevokeSharedAccessGrantErrors,
|
|
363
|
+
RevokeSharedAccessGrantResponses,
|
|
349
364
|
SearchObjectsData,
|
|
350
365
|
SearchObjectsErrors,
|
|
351
366
|
SearchObjectsResponses,
|
|
@@ -361,6 +376,9 @@ import type {
|
|
|
361
376
|
SignOutData,
|
|
362
377
|
SignOutErrors,
|
|
363
378
|
SignOutResponses,
|
|
379
|
+
SignOutSharedAccessData,
|
|
380
|
+
SignOutSharedAccessErrors,
|
|
381
|
+
SignOutSharedAccessResponses,
|
|
364
382
|
StartConnectorConnectionRunData,
|
|
365
383
|
StartConnectorConnectionRunErrors,
|
|
366
384
|
StartConnectorConnectionRunResponses,
|
|
@@ -1599,6 +1617,111 @@ export const listRuleStates = <ThrowOnError extends boolean = false>(
|
|
|
1599
1617
|
...options,
|
|
1600
1618
|
})
|
|
1601
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
|
+
|
|
1602
1725
|
/**
|
|
1603
1726
|
* List registered object types
|
|
1604
1727
|
*/
|
|
@@ -1606,7 +1729,10 @@ export const listObjectTypes = <ThrowOnError extends boolean = false>(
|
|
|
1606
1729
|
options?: Options<ListObjectTypesData, ThrowOnError>
|
|
1607
1730
|
) =>
|
|
1608
1731
|
(options?.client ?? client).get<ListObjectTypesResponses, unknown, ThrowOnError>({
|
|
1609
|
-
security: [
|
|
1732
|
+
security: [
|
|
1733
|
+
{ scheme: "bearer", type: "http" },
|
|
1734
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1735
|
+
],
|
|
1610
1736
|
url: "/api/object-types",
|
|
1611
1737
|
...options,
|
|
1612
1738
|
})
|
|
@@ -1618,7 +1744,10 @@ export const getObjectType = <ThrowOnError extends boolean = false>(
|
|
|
1618
1744
|
options: Options<GetObjectTypeData, ThrowOnError>
|
|
1619
1745
|
) =>
|
|
1620
1746
|
(options.client ?? client).get<GetObjectTypeResponses, GetObjectTypeErrors, ThrowOnError>({
|
|
1621
|
-
security: [
|
|
1747
|
+
security: [
|
|
1748
|
+
{ scheme: "bearer", type: "http" },
|
|
1749
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1750
|
+
],
|
|
1622
1751
|
url: "/api/object-types/{objectTypeId}",
|
|
1623
1752
|
...options,
|
|
1624
1753
|
})
|
|
@@ -1630,7 +1759,10 @@ export const searchObjects = <ThrowOnError extends boolean = false>(
|
|
|
1630
1759
|
options: Options<SearchObjectsData, ThrowOnError>
|
|
1631
1760
|
) =>
|
|
1632
1761
|
(options.client ?? client).get<SearchObjectsResponses, SearchObjectsErrors, ThrowOnError>({
|
|
1633
|
-
security: [
|
|
1762
|
+
security: [
|
|
1763
|
+
{ scheme: "bearer", type: "http" },
|
|
1764
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1765
|
+
],
|
|
1634
1766
|
url: "/api/objects/search",
|
|
1635
1767
|
...options,
|
|
1636
1768
|
})
|
|
@@ -1642,7 +1774,10 @@ export const listObjects = <ThrowOnError extends boolean = false>(
|
|
|
1642
1774
|
options?: Options<ListObjectsData, ThrowOnError>
|
|
1643
1775
|
) =>
|
|
1644
1776
|
(options?.client ?? client).get<ListObjectsResponses, ListObjectsErrors, ThrowOnError>({
|
|
1645
|
-
security: [
|
|
1777
|
+
security: [
|
|
1778
|
+
{ scheme: "bearer", type: "http" },
|
|
1779
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1780
|
+
],
|
|
1646
1781
|
url: "/api/objects",
|
|
1647
1782
|
...options,
|
|
1648
1783
|
})
|
|
@@ -1657,6 +1792,7 @@ export const queryObjects = <ThrowOnError extends boolean = false>(
|
|
|
1657
1792
|
security: [
|
|
1658
1793
|
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1659
1794
|
{ scheme: "bearer", type: "http" },
|
|
1795
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1660
1796
|
],
|
|
1661
1797
|
url: "/api/objects/query",
|
|
1662
1798
|
...options,
|
|
@@ -1676,6 +1812,7 @@ export const queryObjectLinks = <ThrowOnError extends boolean = false>(
|
|
|
1676
1812
|
security: [
|
|
1677
1813
|
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1678
1814
|
{ scheme: "bearer", type: "http" },
|
|
1815
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1679
1816
|
],
|
|
1680
1817
|
url: "/api/objects/query/links",
|
|
1681
1818
|
...options,
|
|
@@ -1695,6 +1832,7 @@ export const countObjects = <ThrowOnError extends boolean = false>(
|
|
|
1695
1832
|
security: [
|
|
1696
1833
|
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1697
1834
|
{ scheme: "bearer", type: "http" },
|
|
1835
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1698
1836
|
],
|
|
1699
1837
|
url: "/api/objects/query/count",
|
|
1700
1838
|
...options,
|
|
@@ -1714,6 +1852,7 @@ export const existsObjects = <ThrowOnError extends boolean = false>(
|
|
|
1714
1852
|
security: [
|
|
1715
1853
|
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1716
1854
|
{ scheme: "bearer", type: "http" },
|
|
1855
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1717
1856
|
],
|
|
1718
1857
|
url: "/api/objects/query/exists",
|
|
1719
1858
|
...options,
|
|
@@ -1733,6 +1872,7 @@ export const facetObjects = <ThrowOnError extends boolean = false>(
|
|
|
1733
1872
|
security: [
|
|
1734
1873
|
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1735
1874
|
{ scheme: "bearer", type: "http" },
|
|
1875
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1736
1876
|
],
|
|
1737
1877
|
url: "/api/objects/query/facets",
|
|
1738
1878
|
...options,
|
|
@@ -1753,7 +1893,10 @@ export const getObjectFileContent = <ThrowOnError extends boolean = false>(
|
|
|
1753
1893
|
GetObjectFileContentErrors,
|
|
1754
1894
|
ThrowOnError
|
|
1755
1895
|
>({
|
|
1756
|
-
security: [
|
|
1896
|
+
security: [
|
|
1897
|
+
{ scheme: "bearer", type: "http" },
|
|
1898
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1899
|
+
],
|
|
1757
1900
|
url: "/api/objects/{objectTypeId}/{objectId}/files/content",
|
|
1758
1901
|
...options,
|
|
1759
1902
|
})
|
|
@@ -1769,7 +1912,10 @@ export const headObjectFileContent = <ThrowOnError extends boolean = false>(
|
|
|
1769
1912
|
HeadObjectFileContentErrors,
|
|
1770
1913
|
ThrowOnError
|
|
1771
1914
|
>({
|
|
1772
|
-
security: [
|
|
1915
|
+
security: [
|
|
1916
|
+
{ scheme: "bearer", type: "http" },
|
|
1917
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1918
|
+
],
|
|
1773
1919
|
url: "/api/objects/{objectTypeId}/{objectId}/files/content",
|
|
1774
1920
|
...options,
|
|
1775
1921
|
})
|
|
@@ -1781,7 +1927,10 @@ export const getObject = <ThrowOnError extends boolean = false>(
|
|
|
1781
1927
|
options: Options<GetObjectData, ThrowOnError>
|
|
1782
1928
|
) =>
|
|
1783
1929
|
(options.client ?? client).get<GetObjectResponses, GetObjectErrors, ThrowOnError>({
|
|
1784
|
-
security: [
|
|
1930
|
+
security: [
|
|
1931
|
+
{ scheme: "bearer", type: "http" },
|
|
1932
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1933
|
+
],
|
|
1785
1934
|
url: "/api/objects/{objectTypeId}/{objectId}",
|
|
1786
1935
|
...options,
|
|
1787
1936
|
})
|
|
@@ -1812,7 +1961,10 @@ export const listActions = <ThrowOnError extends boolean = false>(
|
|
|
1812
1961
|
options?: Options<ListActionsData, ThrowOnError>
|
|
1813
1962
|
) =>
|
|
1814
1963
|
(options?.client ?? client).get<ListActionsResponses, unknown, ThrowOnError>({
|
|
1815
|
-
security: [
|
|
1964
|
+
security: [
|
|
1965
|
+
{ scheme: "bearer", type: "http" },
|
|
1966
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1967
|
+
],
|
|
1816
1968
|
url: "/api/actions",
|
|
1817
1969
|
...options,
|
|
1818
1970
|
})
|
|
@@ -1824,7 +1976,10 @@ export const getAction = <ThrowOnError extends boolean = false>(
|
|
|
1824
1976
|
options: Options<GetActionData, ThrowOnError>
|
|
1825
1977
|
) =>
|
|
1826
1978
|
(options.client ?? client).get<GetActionResponses, GetActionErrors, ThrowOnError>({
|
|
1827
|
-
security: [
|
|
1979
|
+
security: [
|
|
1980
|
+
{ scheme: "bearer", type: "http" },
|
|
1981
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1982
|
+
],
|
|
1828
1983
|
url: "/api/actions/{actionId}",
|
|
1829
1984
|
...options,
|
|
1830
1985
|
})
|
|
@@ -1839,6 +1994,7 @@ export const requestAction = <ThrowOnError extends boolean = false>(
|
|
|
1839
1994
|
security: [
|
|
1840
1995
|
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1841
1996
|
{ scheme: "bearer", type: "http" },
|
|
1997
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
1842
1998
|
],
|
|
1843
1999
|
url: "/api/actions/{actionId}",
|
|
1844
2000
|
...options,
|
|
@@ -1970,7 +2126,10 @@ export const getActionRun = <ThrowOnError extends boolean = false>(
|
|
|
1970
2126
|
options: Options<GetActionRunData, ThrowOnError>
|
|
1971
2127
|
) =>
|
|
1972
2128
|
(options.client ?? client).get<GetActionRunResponses, GetActionRunErrors, ThrowOnError>({
|
|
1973
|
-
security: [
|
|
2129
|
+
security: [
|
|
2130
|
+
{ scheme: "bearer", type: "http" },
|
|
2131
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
2132
|
+
],
|
|
1974
2133
|
url: "/api/action-runs/{runId}",
|
|
1975
2134
|
...options,
|
|
1976
2135
|
})
|
|
@@ -2257,6 +2416,7 @@ export const getBulkTelemetryHistory = <ThrowOnError extends boolean = false>(
|
|
|
2257
2416
|
security: [
|
|
2258
2417
|
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
2259
2418
|
{ scheme: "bearer", type: "http" },
|
|
2419
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
2260
2420
|
],
|
|
2261
2421
|
url: "/api/telemetry/history",
|
|
2262
2422
|
...options,
|
|
@@ -2277,7 +2437,10 @@ export const getTelemetryHistory = <ThrowOnError extends boolean = false>(
|
|
|
2277
2437
|
GetTelemetryHistoryErrors,
|
|
2278
2438
|
ThrowOnError
|
|
2279
2439
|
>({
|
|
2280
|
-
security: [
|
|
2440
|
+
security: [
|
|
2441
|
+
{ scheme: "bearer", type: "http" },
|
|
2442
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
2443
|
+
],
|
|
2281
2444
|
url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}/history",
|
|
2282
2445
|
...options,
|
|
2283
2446
|
})
|
|
@@ -2293,7 +2456,10 @@ export const getLatestTelemetry = <ThrowOnError extends boolean = false>(
|
|
|
2293
2456
|
GetLatestTelemetryErrors,
|
|
2294
2457
|
ThrowOnError
|
|
2295
2458
|
>({
|
|
2296
|
-
security: [
|
|
2459
|
+
security: [
|
|
2460
|
+
{ scheme: "bearer", type: "http" },
|
|
2461
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
2462
|
+
],
|
|
2297
2463
|
url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}/latest",
|
|
2298
2464
|
...options,
|
|
2299
2465
|
})
|