@xyo-network/api 2.20.42 → 2.20.43

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.
Files changed (253) hide show
  1. package/dist/cjs/Archivist/Account/Api.d.ts +18 -18
  2. package/dist/cjs/Archivist/Account/Api.js +14 -14
  3. package/dist/cjs/Archivist/Account/index.d.ts +1 -1
  4. package/dist/cjs/Archivist/Account/index.js +4 -4
  5. package/dist/cjs/Archivist/Api.d.ts +33 -33
  6. package/dist/cjs/Archivist/Api.js +67 -67
  7. package/dist/cjs/Archivist/Archive/Api.d.ts +18 -18
  8. package/dist/cjs/Archivist/Archive/Api.js +39 -39
  9. package/dist/cjs/Archivist/Archive/Schema/Api.d.ts +7 -7
  10. package/dist/cjs/Archivist/Archive/Schema/Api.js +14 -14
  11. package/dist/cjs/Archivist/Archive/Schema/index.d.ts +1 -1
  12. package/dist/cjs/Archivist/Archive/Schema/index.js +4 -4
  13. package/dist/cjs/Archivist/Archive/Schemas/Api.d.ts +6 -6
  14. package/dist/cjs/Archivist/Archive/Schemas/Api.js +13 -13
  15. package/dist/cjs/Archivist/Archive/Schemas/index.d.ts +1 -1
  16. package/dist/cjs/Archivist/Archive/Schemas/index.js +4 -4
  17. package/dist/cjs/Archivist/Archive/Settings/Api.d.ts +6 -6
  18. package/dist/cjs/Archivist/Archive/Settings/Api.js +14 -14
  19. package/dist/cjs/Archivist/Archive/Settings/Key/Api.d.ts +5 -5
  20. package/dist/cjs/Archivist/Archive/Settings/Key/Api.js +10 -10
  21. package/dist/cjs/Archivist/Archive/Settings/Key/index.d.ts +1 -1
  22. package/dist/cjs/Archivist/Archive/Settings/Key/index.js +4 -4
  23. package/dist/cjs/Archivist/Archive/Settings/index.d.ts +2 -2
  24. package/dist/cjs/Archivist/Archive/Settings/index.js +5 -5
  25. package/dist/cjs/Archivist/Archive/index.d.ts +4 -4
  26. package/dist/cjs/Archivist/Archive/index.js +7 -7
  27. package/dist/cjs/Archivist/Archives/Api.d.ts +8 -8
  28. package/dist/cjs/Archivist/Archives/Api.js +15 -15
  29. package/dist/cjs/Archivist/Archives/index.d.ts +1 -1
  30. package/dist/cjs/Archivist/Archives/index.js +4 -4
  31. package/dist/cjs/Archivist/Block/Api.d.ts +8 -8
  32. package/dist/cjs/Archivist/Block/Api.js +11 -11
  33. package/dist/cjs/Archivist/Block/index.d.ts +1 -1
  34. package/dist/cjs/Archivist/Block/index.js +4 -4
  35. package/dist/cjs/Archivist/Payload/Api.d.ts +40 -40
  36. package/dist/cjs/Archivist/Payload/Api.js +83 -83
  37. package/dist/cjs/Archivist/Payload/Schema/Api.d.ts +8 -8
  38. package/dist/cjs/Archivist/Payload/Schema/Api.js +13 -13
  39. package/dist/cjs/Archivist/Payload/Schema/index.d.ts +1 -1
  40. package/dist/cjs/Archivist/Payload/Schema/index.js +4 -4
  41. package/dist/cjs/Archivist/Payload/index.d.ts +2 -2
  42. package/dist/cjs/Archivist/Payload/index.js +5 -5
  43. package/dist/cjs/Archivist/index.d.ts +6 -6
  44. package/dist/cjs/Archivist/index.js +9 -9
  45. package/dist/cjs/Base.d.ts +33 -33
  46. package/dist/cjs/Base.js +146 -146
  47. package/dist/cjs/Diviner/LocationDiviner/LocationDivinerApi.d.ts +11 -11
  48. package/dist/cjs/Diviner/LocationDiviner/LocationDivinerApi.js +27 -27
  49. package/dist/cjs/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.ts +9 -9
  50. package/dist/cjs/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.js +23 -23
  51. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts +4 -4
  52. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.js +2 -2
  53. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts +11 -11
  54. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.js +9 -9
  55. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts +2 -2
  56. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.js +5 -5
  57. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts +11 -11
  58. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.js +9 -9
  59. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts +1 -1
  60. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.js +4 -4
  61. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts +17 -17
  62. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.js +2 -2
  63. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts +4 -4
  64. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.js +2 -2
  65. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts +5 -5
  66. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQuerySchema.js +12 -12
  67. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts +7 -7
  68. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.js +2 -2
  69. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts +11 -11
  70. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.js +9 -9
  71. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts +2 -2
  72. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.js +5 -5
  73. package/dist/cjs/Diviner/LocationDiviner/Queries/index.d.ts +6 -6
  74. package/dist/cjs/Diviner/LocationDiviner/Queries/index.js +9 -9
  75. package/dist/cjs/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts +13 -13
  76. package/dist/cjs/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js +4 -4
  77. package/dist/cjs/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts +21 -21
  78. package/dist/cjs/Diviner/LocationDiviner/Witnesses/LocationWitness.js +4 -4
  79. package/dist/cjs/Diviner/LocationDiviner/Witnesses/index.d.ts +2 -2
  80. package/dist/cjs/Diviner/LocationDiviner/Witnesses/index.js +5 -5
  81. package/dist/cjs/Diviner/LocationDiviner/index.d.ts +4 -4
  82. package/dist/cjs/Diviner/LocationDiviner/index.js +7 -7
  83. package/dist/cjs/Diviner/LocationDiviner/models.d.ts +4 -4
  84. package/dist/cjs/Diviner/LocationDiviner/models.js +2 -2
  85. package/dist/cjs/Diviner/index.d.ts +1 -1
  86. package/dist/cjs/Diviner/index.js +4 -4
  87. package/dist/cjs/Simple.d.ts +21 -21
  88. package/dist/cjs/Simple.js +59 -59
  89. package/dist/cjs/Test/index.d.ts +2 -2
  90. package/dist/cjs/Test/index.js +5 -5
  91. package/dist/cjs/Test/testBoundWitness.d.ts +3 -3
  92. package/dist/cjs/Test/testBoundWitness.js +16 -16
  93. package/dist/cjs/Test/testPayload.d.ts +4 -4
  94. package/dist/cjs/Test/testPayload.js +18 -18
  95. package/dist/cjs/User/Api.d.ts +31 -31
  96. package/dist/cjs/User/Api.js +24 -24
  97. package/dist/cjs/User/index.d.ts +1 -1
  98. package/dist/cjs/User/index.js +4 -4
  99. package/dist/cjs/WithArchive.d.ts +3 -3
  100. package/dist/cjs/WithArchive.js +2 -2
  101. package/dist/cjs/index.d.ts +7 -7
  102. package/dist/cjs/index.js +10 -10
  103. package/dist/cjs/models/Api/Config.d.ts +24 -24
  104. package/dist/cjs/models/Api/Config.js +2 -2
  105. package/dist/cjs/models/Api/Envelope.d.ts +14 -14
  106. package/dist/cjs/models/Api/Envelope.js +2 -2
  107. package/dist/cjs/models/Api/Error.d.ts +4 -4
  108. package/dist/cjs/models/Api/Error.js +2 -2
  109. package/dist/cjs/models/Api/Reportable.d.ts +7 -7
  110. package/dist/cjs/models/Api/Reportable.js +2 -2
  111. package/dist/cjs/models/Api/Response.d.ts +7 -7
  112. package/dist/cjs/models/Api/Response.js +2 -2
  113. package/dist/cjs/models/Api/Warning.d.ts +1 -1
  114. package/dist/cjs/models/Api/Warning.js +2 -2
  115. package/dist/cjs/models/Api/index.d.ts +6 -6
  116. package/dist/cjs/models/Api/index.js +9 -9
  117. package/dist/cjs/models/Archive.d.ts +24 -24
  118. package/dist/cjs/models/Archive.js +2 -2
  119. package/dist/cjs/models/ArchiveKey.d.ts +5 -5
  120. package/dist/cjs/models/ArchiveKey.js +2 -2
  121. package/dist/cjs/models/ArchivePath.d.ts +3 -3
  122. package/dist/cjs/models/ArchivePath.js +2 -2
  123. package/dist/cjs/models/index.d.ts +4 -4
  124. package/dist/cjs/models/index.js +7 -7
  125. package/dist/cjs/objToQuery.d.ts +1 -1
  126. package/dist/cjs/objToQuery.js +12 -12
  127. package/dist/esm/Archivist/Account/Api.d.ts +18 -18
  128. package/dist/esm/Archivist/Account/Api.js +16 -16
  129. package/dist/esm/Archivist/Account/index.d.ts +1 -1
  130. package/dist/esm/Archivist/Account/index.js +1 -1
  131. package/dist/esm/Archivist/Api.d.ts +33 -33
  132. package/dist/esm/Archivist/Api.js +81 -81
  133. package/dist/esm/Archivist/Archive/Api.d.ts +18 -18
  134. package/dist/esm/Archivist/Archive/Api.js +50 -50
  135. package/dist/esm/Archivist/Archive/Schema/Api.d.ts +7 -7
  136. package/dist/esm/Archivist/Archive/Schema/Api.js +13 -13
  137. package/dist/esm/Archivist/Archive/Schema/index.d.ts +1 -1
  138. package/dist/esm/Archivist/Archive/Schema/index.js +1 -1
  139. package/dist/esm/Archivist/Archive/Schemas/Api.d.ts +6 -6
  140. package/dist/esm/Archivist/Archive/Schemas/Api.js +12 -12
  141. package/dist/esm/Archivist/Archive/Schemas/index.d.ts +1 -1
  142. package/dist/esm/Archivist/Archive/Schemas/index.js +1 -1
  143. package/dist/esm/Archivist/Archive/Settings/Api.d.ts +6 -6
  144. package/dist/esm/Archivist/Archive/Settings/Api.js +13 -13
  145. package/dist/esm/Archivist/Archive/Settings/Key/Api.d.ts +5 -5
  146. package/dist/esm/Archivist/Archive/Settings/Key/Api.js +9 -9
  147. package/dist/esm/Archivist/Archive/Settings/Key/index.d.ts +1 -1
  148. package/dist/esm/Archivist/Archive/Settings/Key/index.js +1 -1
  149. package/dist/esm/Archivist/Archive/Settings/index.d.ts +2 -2
  150. package/dist/esm/Archivist/Archive/Settings/index.js +2 -2
  151. package/dist/esm/Archivist/Archive/index.d.ts +4 -4
  152. package/dist/esm/Archivist/Archive/index.js +4 -4
  153. package/dist/esm/Archivist/Archives/Api.d.ts +8 -8
  154. package/dist/esm/Archivist/Archives/Api.js +14 -14
  155. package/dist/esm/Archivist/Archives/index.d.ts +1 -1
  156. package/dist/esm/Archivist/Archives/index.js +1 -1
  157. package/dist/esm/Archivist/Block/Api.d.ts +8 -8
  158. package/dist/esm/Archivist/Block/Api.js +10 -10
  159. package/dist/esm/Archivist/Block/index.d.ts +1 -1
  160. package/dist/esm/Archivist/Block/index.js +1 -1
  161. package/dist/esm/Archivist/Payload/Api.d.ts +40 -40
  162. package/dist/esm/Archivist/Payload/Api.js +67 -67
  163. package/dist/esm/Archivist/Payload/Schema/Api.d.ts +8 -8
  164. package/dist/esm/Archivist/Payload/Schema/Api.js +12 -12
  165. package/dist/esm/Archivist/Payload/Schema/index.d.ts +1 -1
  166. package/dist/esm/Archivist/Payload/Schema/index.js +1 -1
  167. package/dist/esm/Archivist/Payload/index.d.ts +2 -2
  168. package/dist/esm/Archivist/Payload/index.js +2 -2
  169. package/dist/esm/Archivist/index.d.ts +6 -6
  170. package/dist/esm/Archivist/index.js +6 -6
  171. package/dist/esm/Base.d.ts +33 -33
  172. package/dist/esm/Base.js +128 -128
  173. package/dist/esm/Diviner/LocationDiviner/LocationDivinerApi.d.ts +11 -11
  174. package/dist/esm/Diviner/LocationDiviner/LocationDivinerApi.js +19 -19
  175. package/dist/esm/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.ts +9 -9
  176. package/dist/esm/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.js +17 -17
  177. package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts +4 -4
  178. package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.js +1 -1
  179. package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts +11 -11
  180. package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.js +5 -5
  181. package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts +2 -2
  182. package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.js +2 -2
  183. package/dist/esm/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts +11 -11
  184. package/dist/esm/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.js +5 -5
  185. package/dist/esm/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts +1 -1
  186. package/dist/esm/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.js +1 -1
  187. package/dist/esm/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts +17 -17
  188. package/dist/esm/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.js +1 -1
  189. package/dist/esm/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts +4 -4
  190. package/dist/esm/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.js +1 -1
  191. package/dist/esm/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts +5 -5
  192. package/dist/esm/Diviner/LocationDiviner/Queries/LocationQuerySchema.js +8 -8
  193. package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts +7 -7
  194. package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.js +1 -1
  195. package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts +11 -11
  196. package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.js +5 -5
  197. package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts +2 -2
  198. package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.js +2 -2
  199. package/dist/esm/Diviner/LocationDiviner/Queries/index.d.ts +6 -6
  200. package/dist/esm/Diviner/LocationDiviner/Queries/index.js +6 -6
  201. package/dist/esm/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts +13 -13
  202. package/dist/esm/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js +1 -1
  203. package/dist/esm/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts +21 -21
  204. package/dist/esm/Diviner/LocationDiviner/Witnesses/LocationWitness.js +1 -1
  205. package/dist/esm/Diviner/LocationDiviner/Witnesses/index.d.ts +2 -2
  206. package/dist/esm/Diviner/LocationDiviner/Witnesses/index.js +2 -2
  207. package/dist/esm/Diviner/LocationDiviner/index.d.ts +4 -4
  208. package/dist/esm/Diviner/LocationDiviner/index.js +4 -4
  209. package/dist/esm/Diviner/LocationDiviner/models.d.ts +4 -4
  210. package/dist/esm/Diviner/LocationDiviner/models.js +1 -1
  211. package/dist/esm/Diviner/index.d.ts +1 -1
  212. package/dist/esm/Diviner/index.js +1 -1
  213. package/dist/esm/Simple.d.ts +21 -21
  214. package/dist/esm/Simple.js +44 -44
  215. package/dist/esm/Test/index.d.ts +2 -2
  216. package/dist/esm/Test/index.js +2 -2
  217. package/dist/esm/Test/testBoundWitness.d.ts +3 -3
  218. package/dist/esm/Test/testBoundWitness.js +13 -13
  219. package/dist/esm/Test/testPayload.d.ts +4 -4
  220. package/dist/esm/Test/testPayload.js +14 -14
  221. package/dist/esm/User/Api.d.ts +31 -31
  222. package/dist/esm/User/Api.js +26 -26
  223. package/dist/esm/User/index.d.ts +1 -1
  224. package/dist/esm/User/index.js +1 -1
  225. package/dist/esm/WithArchive.d.ts +3 -3
  226. package/dist/esm/WithArchive.js +1 -1
  227. package/dist/esm/index.d.ts +7 -7
  228. package/dist/esm/index.js +7 -7
  229. package/dist/esm/models/Api/Config.d.ts +24 -24
  230. package/dist/esm/models/Api/Config.js +1 -1
  231. package/dist/esm/models/Api/Envelope.d.ts +14 -14
  232. package/dist/esm/models/Api/Envelope.js +1 -1
  233. package/dist/esm/models/Api/Error.d.ts +4 -4
  234. package/dist/esm/models/Api/Error.js +1 -1
  235. package/dist/esm/models/Api/Reportable.d.ts +7 -7
  236. package/dist/esm/models/Api/Reportable.js +1 -1
  237. package/dist/esm/models/Api/Response.d.ts +7 -7
  238. package/dist/esm/models/Api/Response.js +1 -1
  239. package/dist/esm/models/Api/Warning.d.ts +1 -1
  240. package/dist/esm/models/Api/Warning.js +1 -1
  241. package/dist/esm/models/Api/index.d.ts +6 -6
  242. package/dist/esm/models/Api/index.js +6 -6
  243. package/dist/esm/models/Archive.d.ts +24 -24
  244. package/dist/esm/models/Archive.js +1 -1
  245. package/dist/esm/models/ArchiveKey.d.ts +5 -5
  246. package/dist/esm/models/ArchiveKey.js +1 -1
  247. package/dist/esm/models/ArchivePath.d.ts +3 -3
  248. package/dist/esm/models/ArchivePath.js +1 -1
  249. package/dist/esm/models/index.d.ts +4 -4
  250. package/dist/esm/models/index.js +4 -4
  251. package/dist/esm/objToQuery.d.ts +1 -1
  252. package/dist/esm/objToQuery.js +8 -8
  253. package/package.json +2 -2
@@ -1,19 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.testSchema = exports.testPayload = void 0;
4
- const testSchema = 'network.xyo.test';
5
- exports.testSchema = testSchema;
6
- const testPayload = {
7
- _archive: 'test',
8
- _hash: '20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c',
9
- _timestamp: 1609459255555,
10
- numberField: 1,
11
- objectField: {
12
- numberField: 1,
13
- stringField: 'stringValue',
14
- },
15
- schema: testSchema,
16
- stringField: 'stringValue',
17
- };
18
- exports.testPayload = testPayload;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.testSchema = exports.testPayload = void 0;
4
+ const testSchema = 'network.xyo.test';
5
+ exports.testSchema = testSchema;
6
+ const testPayload = {
7
+ _archive: 'test',
8
+ _hash: '20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c',
9
+ _timestamp: 1609459255555,
10
+ numberField: 1,
11
+ objectField: {
12
+ numberField: 1,
13
+ stringField: 'stringValue',
14
+ },
15
+ schema: testSchema,
16
+ stringField: 'stringValue',
17
+ };
18
+ exports.testPayload = testPayload;
19
19
  //# sourceMappingURL=testPayload.js.map
@@ -1,31 +1,31 @@
1
- import { XyoApiBase } from '../Base';
2
- import { XyoApiSimple } from '../Simple';
3
- export interface XyoUserLogin {
4
- /** @field Email address of the user [in] */
5
- email?: string;
6
- /** @field Password of the user [in] */
7
- password?: string;
8
- /** @field Token to access the API as that user [out] */
9
- token?: string;
10
- }
11
- export declare class XyoUserApi extends XyoApiBase {
12
- get authenticated(): boolean;
13
- get headers(): Record<string, string>;
14
- get login(): XyoApiSimple<XyoUserLogin, XyoUserLogin, Record<string, never>, import("../models/Api/Config").XyoApiConfig>;
15
- get profile(): XyoApiSimple<import("@xyo-network/core").XyoPayloadFull, import("@xyo-network/core").XyoPayloadFull, Record<string, never>, {
16
- root: string;
17
- apiDomain: string; /** @field Password of the user [in] */
18
- userid?: string | undefined;
19
- jwtToken?: string | undefined;
20
- apiKey?: string | undefined;
21
- query?: string | undefined;
22
- compressionThreshold?: number | undefined;
23
- throwFailure?: boolean | undefined;
24
- throwError?: boolean | undefined;
25
- reportableParent?: import("..").XyoApiReportable | undefined;
26
- onError?: ((error: import("..").XyoApiError<any, any>, depth: number) => void) | undefined;
27
- /** @field Password of the user [in] */
28
- onFailure?: ((response: import("..").XyoApiResponse<unknown, unknown>, depth: number) => void) | undefined; /** @field Token to access the API as that user [out] */
29
- onSuccess?: ((response: import("..").XyoApiResponse<unknown, unknown>, depth: number) => void) | undefined;
30
- }>;
31
- }
1
+ import { XyoApiBase } from '../Base';
2
+ import { XyoApiSimple } from '../Simple';
3
+ export interface XyoUserLogin {
4
+ /** @field Email address of the user [in] */
5
+ email?: string;
6
+ /** @field Password of the user [in] */
7
+ password?: string;
8
+ /** @field Token to access the API as that user [out] */
9
+ token?: string;
10
+ }
11
+ export declare class XyoUserApi extends XyoApiBase {
12
+ get authenticated(): boolean;
13
+ get headers(): Record<string, string>;
14
+ get login(): XyoApiSimple<XyoUserLogin, XyoUserLogin, Record<string, never>, import("../models/Api/Config").XyoApiConfig>;
15
+ get profile(): XyoApiSimple<import("@xyo-network/core").XyoPayloadFull, import("@xyo-network/core").XyoPayloadFull, Record<string, never>, {
16
+ root: string;
17
+ apiDomain: string; /** @field Password of the user [in] */
18
+ userid?: string | undefined;
19
+ jwtToken?: string | undefined;
20
+ apiKey?: string | undefined;
21
+ query?: string | undefined;
22
+ compressionThreshold?: number | undefined;
23
+ throwFailure?: boolean | undefined;
24
+ throwError?: boolean | undefined;
25
+ reportableParent?: import("..").XyoApiReportable | undefined;
26
+ onError?: ((error: import("..").XyoApiError<any, any>, depth: number) => void) | undefined;
27
+ /** @field Password of the user [in] */
28
+ onFailure?: ((response: import("..").XyoApiResponse<unknown, unknown>, depth: number) => void) | undefined; /** @field Token to access the API as that user [out] */
29
+ onSuccess?: ((response: import("..").XyoApiResponse<unknown, unknown>, depth: number) => void) | undefined;
30
+ }>;
31
+ }
@@ -1,25 +1,25 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.XyoUserApi = void 0;
4
- const Base_1 = require("../Base");
5
- const Simple_1 = require("../Simple");
6
- class XyoUserApi extends Base_1.XyoApiBase {
7
- get authenticated() {
8
- return !!this.config.jwtToken;
9
- }
10
- get headers() {
11
- const headers = {};
12
- if (this.config.jwtToken) {
13
- headers.Authorization = `Bearer ${this.config.jwtToken}`;
14
- }
15
- return headers;
16
- }
17
- get login() {
18
- return new Simple_1.XyoApiSimple(Object.assign(Object.assign({}, this.config), { root: `${this.root}login/` }));
19
- }
20
- get profile() {
21
- return new Simple_1.XyoApiSimple(Object.assign(Object.assign({}, this.config), { root: `${this.root}profile/` }));
22
- }
23
- }
24
- exports.XyoUserApi = XyoUserApi;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.XyoUserApi = void 0;
4
+ const Base_1 = require("../Base");
5
+ const Simple_1 = require("../Simple");
6
+ class XyoUserApi extends Base_1.XyoApiBase {
7
+ get authenticated() {
8
+ return !!this.config.jwtToken;
9
+ }
10
+ get headers() {
11
+ const headers = {};
12
+ if (this.config.jwtToken) {
13
+ headers.Authorization = `Bearer ${this.config.jwtToken}`;
14
+ }
15
+ return headers;
16
+ }
17
+ get login() {
18
+ return new Simple_1.XyoApiSimple(Object.assign(Object.assign({}, this.config), { root: `${this.root}login/` }));
19
+ }
20
+ get profile() {
21
+ return new Simple_1.XyoApiSimple(Object.assign(Object.assign({}, this.config), { root: `${this.root}profile/` }));
22
+ }
23
+ }
24
+ exports.XyoUserApi = XyoUserApi;
25
25
  //# sourceMappingURL=Api.js.map
@@ -1 +1 @@
1
- export * from './Api';
1
+ export * from './Api';
@@ -1,5 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./Api"), exports);
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Api"), exports);
5
5
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
- export declare type WithArchive<XyoArchivistApiConfig> = XyoArchivistApiConfig & {
2
- _archive?: string;
3
- };
1
+ export declare type WithArchive<XyoArchivistApiConfig> = XyoArchivistApiConfig & {
2
+ _archive?: string;
3
+ };
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=WithArchive.js.map
@@ -1,7 +1,7 @@
1
- export * from './Archivist';
2
- export * from './Base';
3
- export * from './Diviner';
4
- export * from './models';
5
- export * from './Simple';
6
- export * from './User';
7
- export * from './WithArchive';
1
+ export * from './Archivist';
2
+ export * from './Base';
3
+ export * from './Diviner';
4
+ export * from './models';
5
+ export * from './Simple';
6
+ export * from './User';
7
+ export * from './WithArchive';
package/dist/cjs/index.js CHANGED
@@ -1,11 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./Archivist"), exports);
5
- tslib_1.__exportStar(require("./Base"), exports);
6
- tslib_1.__exportStar(require("./Diviner"), exports);
7
- tslib_1.__exportStar(require("./models"), exports);
8
- tslib_1.__exportStar(require("./Simple"), exports);
9
- tslib_1.__exportStar(require("./User"), exports);
10
- tslib_1.__exportStar(require("./WithArchive"), exports);
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Archivist"), exports);
5
+ tslib_1.__exportStar(require("./Base"), exports);
6
+ tslib_1.__exportStar(require("./Diviner"), exports);
7
+ tslib_1.__exportStar(require("./models"), exports);
8
+ tslib_1.__exportStar(require("./Simple"), exports);
9
+ tslib_1.__exportStar(require("./User"), exports);
10
+ tslib_1.__exportStar(require("./WithArchive"), exports);
11
11
  //# sourceMappingURL=index.js.map
@@ -1,24 +1,24 @@
1
- import { XyoApiReportable } from './Reportable';
2
- interface XyoApiConfig extends XyoApiReportable {
3
- /** @description The domain where the api is located */
4
- apiDomain: string;
5
- /** @deprecated use the jwtToken instead*/
6
- userid?: string;
7
- /** @description The jwtToken of the currently logged in user */
8
- jwtToken?: string;
9
- /** @description The apiKey used for authentication */
10
- apiKey?: string;
11
- /** @description The location in the API tree where this API object is mounted */
12
- root?: string;
13
- /** @description The query string, if any, that is added to the end of every request */
14
- query?: string;
15
- /** @description Threshold for Content-Size to cause automatic gzip of request body [default = 1024] */
16
- compressionThreshold?: number;
17
- /** @description Throw on failures */
18
- throwFailure?: boolean;
19
- /** @description Throw on error */
20
- throwError?: boolean;
21
- /** @description Parent that should also report events from this api */
22
- reportableParent?: XyoApiReportable;
23
- }
24
- export type { XyoApiConfig };
1
+ import { XyoApiReportable } from './Reportable';
2
+ interface XyoApiConfig extends XyoApiReportable {
3
+ /** @description The domain where the api is located */
4
+ apiDomain: string;
5
+ /** @deprecated use the jwtToken instead*/
6
+ userid?: string;
7
+ /** @description The jwtToken of the currently logged in user */
8
+ jwtToken?: string;
9
+ /** @description The apiKey used for authentication */
10
+ apiKey?: string;
11
+ /** @description The location in the API tree where this API object is mounted */
12
+ root?: string;
13
+ /** @description The query string, if any, that is added to the end of every request */
14
+ query?: string;
15
+ /** @description Threshold for Content-Size to cause automatic gzip of request body [default = 1024] */
16
+ compressionThreshold?: number;
17
+ /** @description Throw on failures */
18
+ throwFailure?: boolean;
19
+ /** @description Throw on error */
20
+ throwError?: boolean;
21
+ /** @description Parent that should also report events from this api */
22
+ reportableParent?: XyoApiReportable;
23
+ }
24
+ export type { XyoApiConfig };
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=Config.js.map
@@ -1,14 +1,14 @@
1
- import { XyoApiError } from './Error';
2
- import { XyoApiWarning } from './Warning';
3
- export interface XyoApiEnvelopeBase {
4
- warning?: XyoApiWarning[];
5
- }
6
- export interface XyoApiEnvelopeSuccess<T> extends XyoApiEnvelopeBase {
7
- data: T;
8
- error: never;
9
- }
10
- export interface XyoApiEnvelopeError extends XyoApiEnvelopeBase {
11
- data: never;
12
- error: XyoApiError[];
13
- }
14
- export declare type XyoApiEnvelope<T> = XyoApiEnvelopeSuccess<T> | XyoApiEnvelopeError;
1
+ import { XyoApiError } from './Error';
2
+ import { XyoApiWarning } from './Warning';
3
+ export interface XyoApiEnvelopeBase {
4
+ warning?: XyoApiWarning[];
5
+ }
6
+ export interface XyoApiEnvelopeSuccess<T> extends XyoApiEnvelopeBase {
7
+ data: T;
8
+ error: never;
9
+ }
10
+ export interface XyoApiEnvelopeError extends XyoApiEnvelopeBase {
11
+ data: never;
12
+ error: XyoApiError[];
13
+ }
14
+ export declare type XyoApiEnvelope<T> = XyoApiEnvelopeSuccess<T> | XyoApiEnvelopeError;
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=Envelope.js.map
@@ -1,4 +1,4 @@
1
- import { AxiosError } from 'axios';
2
- export interface XyoApiError<T = any, D = any> extends AxiosError<T, D> {
3
- isXyoError: true;
4
- }
1
+ import { AxiosError } from 'axios';
2
+ export interface XyoApiError<T = any, D = any> extends AxiosError<T, D> {
3
+ isXyoError: true;
4
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=Error.js.map
@@ -1,7 +1,7 @@
1
- import { XyoApiError } from './Error';
2
- import { XyoApiResponse } from './Response';
3
- export interface XyoApiReportable {
4
- onError?: (error: XyoApiError, depth: number) => void;
5
- onFailure?: (response: XyoApiResponse, depth: number) => void;
6
- onSuccess?: (response: XyoApiResponse, depth: number) => void;
7
- }
1
+ import { XyoApiError } from './Error';
2
+ import { XyoApiResponse } from './Response';
3
+ export interface XyoApiReportable {
4
+ onError?: (error: XyoApiError, depth: number) => void;
5
+ onFailure?: (response: XyoApiResponse, depth: number) => void;
6
+ onSuccess?: (response: XyoApiResponse, depth: number) => void;
7
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=Reportable.js.map
@@ -1,7 +1,7 @@
1
- import { AxiosResponse } from 'axios';
2
- import { XyoApiEnvelope } from './Envelope';
3
- export declare type XyoApiResponse<T = unknown, D = unknown> = AxiosResponse<T, D>;
4
- export declare type XyoApiResponseBody<T> = T | undefined;
5
- export declare type XyoApiResponseTuple<T> = [T | undefined, XyoApiEnvelope<T | undefined>, XyoApiResponse<XyoApiEnvelope<T | undefined>>];
6
- export declare type XyoApiResponseTupleOrBody<T> = XyoApiResponseTuple<T> | XyoApiResponseBody<T>;
7
- export declare type XyoApiResponseType = 'body' | 'tuple';
1
+ import { AxiosResponse } from 'axios';
2
+ import { XyoApiEnvelope } from './Envelope';
3
+ export declare type XyoApiResponse<T = unknown, D = unknown> = AxiosResponse<T, D>;
4
+ export declare type XyoApiResponseBody<T> = T | undefined;
5
+ export declare type XyoApiResponseTuple<T> = [T | undefined, XyoApiEnvelope<T | undefined>, XyoApiResponse<XyoApiEnvelope<T | undefined>>];
6
+ export declare type XyoApiResponseTupleOrBody<T> = XyoApiResponseTuple<T> | XyoApiResponseBody<T>;
7
+ export declare type XyoApiResponseType = 'body' | 'tuple';
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=Response.js.map
@@ -1 +1 @@
1
- export declare type XyoApiWarning = Error;
1
+ export declare type XyoApiWarning = Error;
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=Warning.js.map
@@ -1,6 +1,6 @@
1
- export * from './Config';
2
- export * from './Envelope';
3
- export * from './Error';
4
- export * from './Reportable';
5
- export * from './Response';
6
- export * from './Warning';
1
+ export * from './Config';
2
+ export * from './Envelope';
3
+ export * from './Error';
4
+ export * from './Reportable';
5
+ export * from './Response';
6
+ export * from './Warning';
@@ -1,10 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./Config"), exports);
5
- tslib_1.__exportStar(require("./Envelope"), exports);
6
- tslib_1.__exportStar(require("./Error"), exports);
7
- tslib_1.__exportStar(require("./Reportable"), exports);
8
- tslib_1.__exportStar(require("./Response"), exports);
9
- tslib_1.__exportStar(require("./Warning"), exports);
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Config"), exports);
5
+ tslib_1.__exportStar(require("./Envelope"), exports);
6
+ tslib_1.__exportStar(require("./Error"), exports);
7
+ tslib_1.__exportStar(require("./Reportable"), exports);
8
+ tslib_1.__exportStar(require("./Response"), exports);
9
+ tslib_1.__exportStar(require("./Warning"), exports);
10
10
  //# sourceMappingURL=index.js.map
@@ -1,24 +1,24 @@
1
- import { XyoArchivePath } from './ArchivePath';
2
- export declare type AccessLevel = 'public' | 'private' | 'none';
3
- export declare type AccessType = 'read' | 'remove' | 'create' | 'list';
4
- export declare type ExpirationWindow = 'create' | 'read';
5
- export interface XyoAccessControl {
6
- access?: Record<AccessType, AccessLevel>;
7
- expiration?: {
8
- window?: ExpirationWindow;
9
- delay?: number;
10
- };
11
- }
12
- export interface XyoAccessControls {
13
- /**
14
- * Set access controls on a per schema basis.
15
- * '*' can be used as a wildcard
16
- * Access control is set from a generic to specific direction if
17
- * multiple wildcard versions apply to a schema
18
- */
19
- schema?: Record<string, XyoAccessControl>;
20
- }
21
- export interface XyoArchive extends XyoArchivePath {
22
- user?: string;
23
- accessControl?: XyoAccessControl | boolean;
24
- }
1
+ import { XyoArchivePath } from './ArchivePath';
2
+ export declare type AccessLevel = 'public' | 'private' | 'none';
3
+ export declare type AccessType = 'read' | 'remove' | 'create' | 'list';
4
+ export declare type ExpirationWindow = 'create' | 'read';
5
+ export interface XyoAccessControl {
6
+ access?: Record<AccessType, AccessLevel>;
7
+ expiration?: {
8
+ window?: ExpirationWindow;
9
+ delay?: number;
10
+ };
11
+ }
12
+ export interface XyoAccessControls {
13
+ /**
14
+ * Set access controls on a per schema basis.
15
+ * '*' can be used as a wildcard
16
+ * Access control is set from a generic to specific direction if
17
+ * multiple wildcard versions apply to a schema
18
+ */
19
+ schema?: Record<string, XyoAccessControl>;
20
+ }
21
+ export interface XyoArchive extends XyoArchivePath {
22
+ user?: string;
23
+ accessControl?: XyoAccessControl | boolean;
24
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=Archive.js.map
@@ -1,5 +1,5 @@
1
- export interface XyoArchiveKey {
2
- archive: string;
3
- created?: number;
4
- key: string;
5
- }
1
+ export interface XyoArchiveKey {
2
+ archive: string;
3
+ created?: number;
4
+ key: string;
5
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=ArchiveKey.js.map
@@ -1,3 +1,3 @@
1
- export interface XyoArchivePath {
2
- archive: string;
3
- }
1
+ export interface XyoArchivePath {
2
+ archive: string;
3
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=ArchivePath.js.map
@@ -1,4 +1,4 @@
1
- export * from './Api';
2
- export * from './Archive';
3
- export * from './ArchiveKey';
4
- export * from './ArchivePath';
1
+ export * from './Api';
2
+ export * from './Archive';
3
+ export * from './ArchiveKey';
4
+ export * from './ArchivePath';
@@ -1,8 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./Api"), exports);
5
- tslib_1.__exportStar(require("./Archive"), exports);
6
- tslib_1.__exportStar(require("./ArchiveKey"), exports);
7
- tslib_1.__exportStar(require("./ArchivePath"), exports);
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Api"), exports);
5
+ tslib_1.__exportStar(require("./Archive"), exports);
6
+ tslib_1.__exportStar(require("./ArchiveKey"), exports);
7
+ tslib_1.__exportStar(require("./ArchivePath"), exports);
8
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export declare const objToQuery: (obj: Record<string, string | number | undefined>) => string;
1
+ export declare const objToQuery: (obj: Record<string, string | number | undefined>) => string;
@@ -1,13 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.objToQuery = void 0;
4
- const objToQuery = (obj) => {
5
- return `?${Object.entries(obj)
6
- .map(([key, value]) => {
7
- return `${key}=${value}`;
8
- })
9
- .filter((value) => value !== undefined)
10
- .join('&')}`;
11
- };
12
- exports.objToQuery = objToQuery;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.objToQuery = void 0;
4
+ const objToQuery = (obj) => {
5
+ return `?${Object.entries(obj)
6
+ .map(([key, value]) => {
7
+ return `${key}=${value}`;
8
+ })
9
+ .filter((value) => value !== undefined)
10
+ .join('&')}`;
11
+ };
12
+ exports.objToQuery = objToQuery;
13
13
  //# sourceMappingURL=objToQuery.js.map
@@ -1,18 +1,18 @@
1
- import { XyoApiBase } from '../../Base';
2
- import { XyoApiSimple } from '../../Simple';
3
- export interface XyoAccountChallenge {
4
- /** @field Server specific state identifier [out] */
5
- state?: string;
6
- }
7
- export interface XyoAccountVerify {
8
- /** @field Message that was signed [in] */
9
- message: string;
10
- /** @field Signature [in] */
11
- signature: string;
12
- /** @field Token generated by server [out] */
13
- token?: string;
14
- }
15
- export declare class XyoAccountApi extends XyoApiBase {
16
- get challenge(): XyoApiSimple<XyoAccountChallenge, XyoAccountChallenge, Record<string, never>, import("../../models/Api/Config").XyoApiConfig>;
17
- get verify(): XyoApiSimple<XyoAccountVerify, XyoAccountVerify, Record<string, never>, import("../../models/Api/Config").XyoApiConfig>;
18
- }
1
+ import { XyoApiBase } from '../../Base';
2
+ import { XyoApiSimple } from '../../Simple';
3
+ export interface XyoAccountChallenge {
4
+ /** @field Server specific state identifier [out] */
5
+ state?: string;
6
+ }
7
+ export interface XyoAccountVerify {
8
+ /** @field Message that was signed [in] */
9
+ message: string;
10
+ /** @field Signature [in] */
11
+ signature: string;
12
+ /** @field Token generated by server [out] */
13
+ token?: string;
14
+ }
15
+ export declare class XyoAccountApi extends XyoApiBase {
16
+ get challenge(): XyoApiSimple<XyoAccountChallenge, XyoAccountChallenge, Record<string, never>, import("../../models/Api/Config").XyoApiConfig>;
17
+ get verify(): XyoApiSimple<XyoAccountVerify, XyoAccountVerify, Record<string, never>, import("../../models/Api/Config").XyoApiConfig>;
18
+ }