@anduril-industries/lattice-sdk 2.4.0 → 4.0.0

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 (884) hide show
  1. package/README.md +132 -29
  2. package/dist/cjs/BaseClient.d.ts +39 -0
  3. package/dist/cjs/BaseClient.js +62 -0
  4. package/dist/cjs/Client.d.ts +15 -35
  5. package/dist/cjs/Client.js +9 -52
  6. package/dist/cjs/api/errors/BadRequestError.d.ts +1 -4
  7. package/dist/cjs/api/errors/BadRequestError.js +6 -4
  8. package/dist/cjs/api/errors/ContentTooLargeError.d.ts +1 -4
  9. package/dist/cjs/api/errors/ContentTooLargeError.js +6 -4
  10. package/dist/cjs/api/errors/InsufficientStorageError.d.ts +1 -4
  11. package/dist/cjs/api/errors/InsufficientStorageError.js +6 -4
  12. package/dist/cjs/api/errors/InternalServerError.d.ts +1 -4
  13. package/dist/cjs/api/errors/InternalServerError.js +6 -4
  14. package/dist/cjs/api/errors/NotFoundError.d.ts +1 -4
  15. package/dist/cjs/api/errors/NotFoundError.js +6 -4
  16. package/dist/cjs/api/errors/RequestTimeoutError.d.ts +1 -4
  17. package/dist/cjs/api/errors/RequestTimeoutError.js +6 -4
  18. package/dist/cjs/api/errors/TooManyRequestsError.d.ts +1 -4
  19. package/dist/cjs/api/errors/TooManyRequestsError.js +6 -4
  20. package/dist/cjs/api/errors/UnauthorizedError.d.ts +1 -4
  21. package/dist/cjs/api/errors/UnauthorizedError.js +6 -4
  22. package/dist/cjs/api/errors/index.d.ts +4 -4
  23. package/dist/cjs/api/errors/index.js +4 -4
  24. package/dist/cjs/api/index.d.ts +1 -1
  25. package/dist/cjs/api/index.js +1 -1
  26. package/dist/cjs/api/resources/entities/client/Client.d.ts +51 -48
  27. package/dist/cjs/api/resources/entities/client/Client.js +124 -162
  28. package/dist/cjs/api/resources/entities/client/index.d.ts +0 -1
  29. package/dist/cjs/api/resources/entities/client/requests/EntityEventRequest.d.ts +0 -3
  30. package/dist/cjs/api/resources/entities/client/requests/EntityEventRequest.js +1 -3
  31. package/dist/cjs/api/resources/entities/client/requests/EntityOverride.d.ts +9 -5
  32. package/dist/cjs/api/resources/entities/client/requests/EntityOverride.js +1 -3
  33. package/dist/cjs/api/resources/entities/client/requests/EntityStreamRequest.d.ts +0 -3
  34. package/dist/cjs/api/resources/entities/client/requests/EntityStreamRequest.js +1 -3
  35. package/dist/cjs/api/resources/entities/client/requests/GetEntityRequest.d.ts +10 -0
  36. package/dist/cjs/api/{types/TMat3.js → resources/entities/client/requests/GetEntityRequest.js} +1 -3
  37. package/dist/cjs/api/resources/entities/client/requests/RemoveEntityOverrideRequest.d.ts +13 -0
  38. package/dist/cjs/api/resources/entities/client/requests/RemoveEntityOverrideRequest.js +3 -0
  39. package/dist/cjs/api/resources/entities/client/requests/index.d.ts +5 -3
  40. package/dist/cjs/api/resources/entities/index.d.ts +1 -1
  41. package/dist/cjs/api/resources/entities/index.js +1 -1
  42. package/dist/cjs/api/resources/entities/types/StreamEntitiesResponse.d.ts +1 -4
  43. package/dist/cjs/api/resources/entities/types/StreamEntitiesResponse.js +1 -3
  44. package/dist/cjs/api/resources/entity/types/Error_.d.ts +0 -3
  45. package/dist/cjs/api/resources/entity/types/Error_.js +1 -3
  46. package/dist/cjs/api/resources/index.d.ts +5 -5
  47. package/dist/cjs/api/resources/index.js +9 -9
  48. package/dist/cjs/api/resources/object/types/Error_.d.ts +0 -3
  49. package/dist/cjs/api/resources/object/types/Error_.js +1 -3
  50. package/dist/cjs/api/resources/objects/client/Client.d.ts +30 -47
  51. package/dist/cjs/api/resources/objects/client/Client.js +90 -150
  52. package/dist/cjs/api/resources/objects/client/index.d.ts +0 -1
  53. package/dist/cjs/api/resources/objects/client/requests/DeleteObjectRequest.d.ts +10 -0
  54. package/dist/cjs/api/resources/objects/client/requests/DeleteObjectRequest.js +3 -0
  55. package/dist/cjs/api/resources/objects/client/requests/GetObjectMetadataRequest.d.ts +10 -0
  56. package/dist/cjs/api/resources/objects/client/requests/GetObjectMetadataRequest.js +3 -0
  57. package/dist/cjs/api/resources/objects/client/requests/GetObjectRequest.d.ts +6 -5
  58. package/dist/cjs/api/resources/objects/client/requests/GetObjectRequest.js +1 -3
  59. package/dist/cjs/api/resources/objects/client/requests/ListObjectsRequest.d.ts +1 -9
  60. package/dist/cjs/api/resources/objects/client/requests/ListObjectsRequest.js +1 -3
  61. package/dist/cjs/api/resources/objects/client/requests/index.d.ts +4 -2
  62. package/dist/cjs/api/resources/objects/index.d.ts +1 -1
  63. package/dist/cjs/api/resources/objects/index.js +1 -1
  64. package/dist/cjs/api/resources/objects/types/GetObjectRequestAcceptEncoding.d.ts +1 -4
  65. package/dist/cjs/api/resources/objects/types/GetObjectRequestAcceptEncoding.js +1 -3
  66. package/dist/cjs/api/resources/task/types/Error_.d.ts +0 -3
  67. package/dist/cjs/api/resources/task/types/Error_.js +1 -3
  68. package/dist/cjs/api/resources/tasks/client/Client.d.ts +85 -46
  69. package/dist/cjs/api/resources/tasks/client/Client.js +146 -138
  70. package/dist/cjs/api/resources/tasks/client/index.d.ts +0 -1
  71. package/dist/cjs/api/resources/tasks/client/requests/AgentListener.d.ts +1 -4
  72. package/dist/cjs/api/resources/tasks/client/requests/AgentListener.js +1 -3
  73. package/dist/cjs/api/resources/tasks/client/requests/GetTaskRequest.d.ts +10 -0
  74. package/dist/cjs/api/resources/tasks/client/requests/GetTaskRequest.js +3 -0
  75. package/dist/cjs/api/resources/tasks/client/requests/TaskCreation.d.ts +2 -5
  76. package/dist/cjs/api/resources/tasks/client/requests/TaskCreation.js +1 -3
  77. package/dist/cjs/api/resources/tasks/client/requests/TaskQuery.d.ts +3 -8
  78. package/dist/cjs/api/resources/tasks/client/requests/TaskQuery.js +2 -3
  79. package/dist/cjs/api/resources/tasks/client/requests/TaskStatusUpdate.d.ts +6 -5
  80. package/dist/cjs/api/resources/tasks/client/requests/TaskStatusUpdate.js +1 -3
  81. package/dist/cjs/api/resources/tasks/client/requests/index.d.ts +5 -4
  82. package/dist/cjs/api/types/AcmDetails.d.ts +1 -4
  83. package/dist/cjs/api/types/AcmDetails.js +1 -3
  84. package/dist/cjs/api/types/ActiveTarget.d.ts +1 -5
  85. package/dist/cjs/api/types/ActiveTarget.js +1 -3
  86. package/dist/cjs/api/types/Agent.d.ts +1 -4
  87. package/dist/cjs/api/types/Agent.js +1 -3
  88. package/dist/cjs/api/types/AgentRequest.d.ts +11 -2
  89. package/dist/cjs/api/types/AgentRequest.js +1 -3
  90. package/dist/cjs/api/types/Alert.d.ts +3 -8
  91. package/dist/cjs/api/types/Alert.js +2 -3
  92. package/dist/cjs/api/types/AlertCondition.d.ts +0 -3
  93. package/dist/cjs/api/types/AlertCondition.js +1 -3
  94. package/dist/cjs/api/types/Aliases.d.ts +1 -4
  95. package/dist/cjs/api/types/Aliases.js +1 -3
  96. package/dist/cjs/api/types/Allocation.d.ts +3 -6
  97. package/dist/cjs/api/types/Allocation.js +1 -3
  98. package/dist/cjs/api/types/AlternateId.d.ts +1 -4
  99. package/dist/cjs/api/types/AlternateId.js +1 -3
  100. package/dist/cjs/api/types/AngleOfArrival.d.ts +1 -4
  101. package/dist/cjs/api/types/AngleOfArrival.js +1 -3
  102. package/dist/cjs/api/types/Bandwidth.d.ts +0 -3
  103. package/dist/cjs/api/types/Bandwidth.js +1 -3
  104. package/dist/cjs/api/types/BandwidthRange.d.ts +1 -4
  105. package/dist/cjs/api/types/BandwidthRange.js +1 -3
  106. package/dist/cjs/api/types/CancelRequest.d.ts +4 -6
  107. package/dist/cjs/api/types/CancelRequest.js +1 -3
  108. package/dist/cjs/api/types/Classification.d.ts +1 -4
  109. package/dist/cjs/api/types/Classification.js +1 -3
  110. package/dist/cjs/api/types/ClassificationInformation.d.ts +2 -7
  111. package/dist/cjs/api/types/ClassificationInformation.js +2 -3
  112. package/dist/cjs/api/types/Color.d.ts +0 -3
  113. package/dist/cjs/api/types/Color.js +1 -3
  114. package/dist/cjs/api/types/CompleteRequest.d.ts +2 -4
  115. package/dist/cjs/api/types/CompleteRequest.js +1 -3
  116. package/dist/cjs/api/types/ComponentHealth.d.ts +3 -8
  117. package/dist/cjs/api/types/ComponentHealth.js +2 -3
  118. package/dist/cjs/api/types/ComponentMessage.d.ts +2 -7
  119. package/dist/cjs/api/types/ComponentMessage.js +2 -3
  120. package/dist/cjs/api/types/ContentIdentifier.d.ts +0 -3
  121. package/dist/cjs/api/types/ContentIdentifier.js +1 -3
  122. package/dist/cjs/api/types/ControlAreaDetails.d.ts +1 -4
  123. package/dist/cjs/api/types/ControlAreaDetails.js +1 -3
  124. package/dist/cjs/api/types/Correlation.d.ts +1 -4
  125. package/dist/cjs/api/types/Correlation.js +1 -3
  126. package/dist/cjs/api/types/CorrelationMembership.d.ts +1 -4
  127. package/dist/cjs/api/types/CorrelationMembership.js +1 -3
  128. package/dist/cjs/api/types/CorrelationMetadata.d.ts +4 -9
  129. package/dist/cjs/api/types/CorrelationMetadata.js +11 -3
  130. package/dist/cjs/api/types/CronWindow.d.ts +0 -3
  131. package/dist/cjs/api/types/CronWindow.js +1 -3
  132. package/dist/cjs/api/types/DecorrelatedAll.d.ts +1 -4
  133. package/dist/cjs/api/types/DecorrelatedAll.js +1 -3
  134. package/dist/cjs/api/types/DecorrelatedSingle.d.ts +1 -4
  135. package/dist/cjs/api/types/DecorrelatedSingle.js +1 -3
  136. package/dist/cjs/api/types/Decorrelation.d.ts +1 -4
  137. package/dist/cjs/api/types/Decorrelation.js +1 -3
  138. package/dist/cjs/api/types/Dimensions.d.ts +0 -3
  139. package/dist/cjs/api/types/Dimensions.js +1 -3
  140. package/dist/cjs/api/types/Echelon.d.ts +1 -4
  141. package/dist/cjs/api/types/Echelon.js +1 -3
  142. package/dist/cjs/api/types/EmitterNotation.d.ts +0 -3
  143. package/dist/cjs/api/types/EmitterNotation.js +1 -3
  144. package/dist/cjs/api/types/Entity.d.ts +3 -6
  145. package/dist/cjs/api/types/Entity.js +1 -3
  146. package/dist/cjs/api/types/EntityEvent.d.ts +2 -5
  147. package/dist/cjs/api/types/EntityEvent.js +1 -3
  148. package/dist/cjs/api/types/EntityEventResponse.d.ts +1 -4
  149. package/dist/cjs/api/types/EntityEventResponse.js +1 -3
  150. package/dist/cjs/api/types/EntityIdsSelector.d.ts +0 -3
  151. package/dist/cjs/api/types/EntityIdsSelector.js +1 -3
  152. package/dist/cjs/api/types/EntityManagerPose.d.ts +17 -0
  153. package/dist/cjs/api/types/EntityManagerPose.js +3 -0
  154. package/dist/cjs/api/types/{TMat3.d.ts → EntityManagerTMat3.d.ts} +1 -4
  155. package/dist/cjs/api/types/EntityManagerTMat3.js +3 -0
  156. package/dist/cjs/api/types/EntityStreamEvent.d.ts +1 -4
  157. package/dist/cjs/api/types/EntityStreamEvent.js +1 -3
  158. package/dist/cjs/api/types/EntityStreamHeartbeat.d.ts +1 -4
  159. package/dist/cjs/api/types/EntityStreamHeartbeat.js +1 -3
  160. package/dist/cjs/api/types/Enu.d.ts +0 -3
  161. package/dist/cjs/api/types/Enu.js +1 -3
  162. package/dist/cjs/api/types/ErrorEllipse.d.ts +0 -3
  163. package/dist/cjs/api/types/ErrorEllipse.js +1 -3
  164. package/dist/cjs/api/types/ExecuteRequest.d.ts +4 -6
  165. package/dist/cjs/api/types/ExecuteRequest.js +1 -3
  166. package/dist/cjs/api/types/FieldClassificationInformation.d.ts +1 -4
  167. package/dist/cjs/api/types/FieldClassificationInformation.js +1 -3
  168. package/dist/cjs/api/types/FieldOfView.d.ts +3 -6
  169. package/dist/cjs/api/types/FieldOfView.js +6 -3
  170. package/dist/cjs/api/types/Fixed.d.ts +1 -5
  171. package/dist/cjs/api/types/Fixed.js +1 -3
  172. package/dist/cjs/api/types/Frequency.d.ts +1 -4
  173. package/dist/cjs/api/types/Frequency.js +1 -3
  174. package/dist/cjs/api/types/FrequencyRange.d.ts +1 -4
  175. package/dist/cjs/api/types/FrequencyRange.js +1 -3
  176. package/dist/cjs/api/types/Fuel.d.ts +1 -4
  177. package/dist/cjs/api/types/Fuel.js +1 -3
  178. package/dist/cjs/api/types/GeoDetails.d.ts +2 -5
  179. package/dist/cjs/api/types/GeoDetails.js +1 -3
  180. package/dist/cjs/api/types/GeoEllipse.d.ts +0 -3
  181. package/dist/cjs/api/types/GeoEllipse.js +1 -3
  182. package/dist/cjs/api/types/GeoEllipsoid.d.ts +0 -3
  183. package/dist/cjs/api/types/GeoEllipsoid.js +1 -3
  184. package/dist/cjs/api/types/GeoLine.d.ts +1 -4
  185. package/dist/cjs/api/types/GeoLine.js +1 -3
  186. package/dist/cjs/api/types/GeoPoint.d.ts +1 -4
  187. package/dist/cjs/api/types/GeoPoint.js +1 -3
  188. package/dist/cjs/api/types/GeoPolygon.d.ts +1 -4
  189. package/dist/cjs/api/types/GeoPolygon.js +1 -3
  190. package/dist/cjs/api/types/GeoPolygonPosition.d.ts +1 -4
  191. package/dist/cjs/api/types/GeoPolygonPosition.js +1 -3
  192. package/dist/cjs/api/types/GeoShape.d.ts +1 -4
  193. package/dist/cjs/api/types/GeoShape.js +1 -3
  194. package/dist/cjs/api/types/GoogleProtobufAny.d.ts +0 -3
  195. package/dist/cjs/api/types/GoogleProtobufAny.js +1 -3
  196. package/dist/cjs/api/types/GroupChild.d.ts +1 -5
  197. package/dist/cjs/api/types/GroupChild.js +1 -3
  198. package/dist/cjs/api/types/GroupDetails.d.ts +1 -4
  199. package/dist/cjs/api/types/GroupDetails.js +1 -3
  200. package/dist/cjs/api/types/GroupParent.d.ts +1 -5
  201. package/dist/cjs/api/types/GroupParent.js +1 -3
  202. package/dist/cjs/api/types/Health.d.ts +5 -12
  203. package/dist/cjs/api/types/Health.js +3 -3
  204. package/dist/cjs/api/types/HeartbeatObject.d.ts +0 -3
  205. package/dist/cjs/api/types/HeartbeatObject.js +1 -3
  206. package/dist/cjs/api/types/HighValueTarget.d.ts +1 -4
  207. package/dist/cjs/api/types/HighValueTarget.js +1 -3
  208. package/dist/cjs/api/types/HighValueTargetMatch.d.ts +0 -3
  209. package/dist/cjs/api/types/HighValueTargetMatch.js +1 -3
  210. package/dist/cjs/api/types/Indicators.d.ts +0 -3
  211. package/dist/cjs/api/types/Indicators.js +1 -3
  212. package/dist/cjs/api/types/LineOfBearing.d.ts +1 -4
  213. package/dist/cjs/api/types/LineOfBearing.js +1 -3
  214. package/dist/cjs/api/types/LinearRing.d.ts +1 -4
  215. package/dist/cjs/api/types/LinearRing.js +1 -3
  216. package/dist/cjs/api/types/ListResponse.d.ts +1 -4
  217. package/dist/cjs/api/types/ListResponse.js +1 -3
  218. package/dist/cjs/api/types/Lla.d.ts +1 -4
  219. package/dist/cjs/api/types/Lla.js +6 -3
  220. package/dist/cjs/api/types/Location.d.ts +1 -4
  221. package/dist/cjs/api/types/Location.js +1 -3
  222. package/dist/cjs/api/types/LocationUncertainty.d.ts +3 -6
  223. package/dist/cjs/api/types/LocationUncertainty.js +1 -3
  224. package/dist/cjs/api/types/MeanKeplerianElements.d.ts +0 -3
  225. package/dist/cjs/api/types/MeanKeplerianElements.js +1 -3
  226. package/dist/cjs/api/types/Measurement.d.ts +0 -3
  227. package/dist/cjs/api/types/Measurement.js +1 -3
  228. package/dist/cjs/api/types/Media.d.ts +1 -4
  229. package/dist/cjs/api/types/Media.js +1 -3
  230. package/dist/cjs/api/types/MediaItem.d.ts +1 -4
  231. package/dist/cjs/api/types/MediaItem.js +1 -3
  232. package/dist/cjs/api/types/MergedFrom.d.ts +1 -5
  233. package/dist/cjs/api/types/MergedFrom.js +1 -3
  234. package/dist/cjs/api/types/MilStd2525C.d.ts +0 -3
  235. package/dist/cjs/api/types/MilStd2525C.js +1 -3
  236. package/dist/cjs/api/types/MilView.d.ts +3 -6
  237. package/dist/cjs/api/types/MilView.js +1 -3
  238. package/dist/cjs/api/types/Mode5.d.ts +2 -7
  239. package/dist/cjs/api/types/Mode5.js +2 -3
  240. package/dist/cjs/api/types/ModeS.d.ts +0 -3
  241. package/dist/cjs/api/types/ModeS.js +1 -3
  242. package/dist/cjs/api/types/NonPrimaryMembership.d.ts +1 -5
  243. package/dist/cjs/api/types/NonPrimaryMembership.js +1 -3
  244. package/dist/cjs/api/types/Ontology.d.ts +2 -7
  245. package/dist/cjs/api/types/Ontology.js +2 -3
  246. package/dist/cjs/api/types/Orbit.d.ts +1 -4
  247. package/dist/cjs/api/types/Orbit.js +1 -3
  248. package/dist/cjs/api/types/OrbitMeanElements.d.ts +1 -4
  249. package/dist/cjs/api/types/OrbitMeanElements.js +1 -3
  250. package/dist/cjs/api/types/OrbitMeanElementsMetadata.d.ts +3 -8
  251. package/dist/cjs/api/types/OrbitMeanElementsMetadata.js +2 -3
  252. package/dist/cjs/api/types/Override.d.ts +4 -9
  253. package/dist/cjs/api/types/Override.js +6 -3
  254. package/dist/cjs/api/types/Overrides.d.ts +1 -4
  255. package/dist/cjs/api/types/Overrides.js +1 -3
  256. package/dist/cjs/api/types/Owner.d.ts +1 -4
  257. package/dist/cjs/api/types/Owner.js +1 -3
  258. package/dist/cjs/api/types/PathMetadata.d.ts +1 -4
  259. package/dist/cjs/api/types/PathMetadata.js +1 -3
  260. package/dist/cjs/api/types/Payload.d.ts +1 -4
  261. package/dist/cjs/api/types/Payload.js +1 -3
  262. package/dist/cjs/api/types/PayloadConfiguration.d.ts +3 -8
  263. package/dist/cjs/api/types/PayloadConfiguration.js +2 -3
  264. package/dist/cjs/api/types/Payloads.d.ts +1 -4
  265. package/dist/cjs/api/types/Payloads.js +1 -3
  266. package/dist/cjs/api/types/Pose.d.ts +1 -4
  267. package/dist/cjs/api/types/Pose.js +1 -3
  268. package/dist/cjs/api/types/Position.d.ts +0 -3
  269. package/dist/cjs/api/types/Position.js +1 -3
  270. package/dist/cjs/api/types/PowerLevel.d.ts +0 -3
  271. package/dist/cjs/api/types/PowerLevel.js +1 -3
  272. package/dist/cjs/api/types/PowerSource.d.ts +5 -12
  273. package/dist/cjs/api/types/PowerSource.js +3 -3
  274. package/dist/cjs/api/types/PowerState.d.ts +1 -4
  275. package/dist/cjs/api/types/PowerState.js +1 -3
  276. package/dist/cjs/api/types/PrimaryCorrelation.d.ts +0 -3
  277. package/dist/cjs/api/types/PrimaryCorrelation.js +1 -3
  278. package/dist/cjs/api/types/PrimaryMembership.d.ts +1 -5
  279. package/dist/cjs/api/types/PrimaryMembership.js +1 -3
  280. package/dist/cjs/api/types/Principal.d.ts +2 -5
  281. package/dist/cjs/api/types/Principal.js +1 -3
  282. package/dist/cjs/api/types/ProjectedFrustum.d.ts +1 -4
  283. package/dist/cjs/api/types/ProjectedFrustum.js +1 -3
  284. package/dist/cjs/api/types/Provenance.d.ts +0 -3
  285. package/dist/cjs/api/types/Provenance.js +1 -3
  286. package/dist/cjs/api/types/PulseRepetitionInterval.d.ts +1 -4
  287. package/dist/cjs/api/types/PulseRepetitionInterval.js +1 -3
  288. package/dist/cjs/api/types/Quaternion.d.ts +0 -3
  289. package/dist/cjs/api/types/Quaternion.js +1 -3
  290. package/dist/cjs/api/types/RangeRings.d.ts +1 -4
  291. package/dist/cjs/api/types/RangeRings.js +1 -3
  292. package/dist/cjs/api/types/Relations.d.ts +5 -7
  293. package/dist/cjs/api/types/Relations.js +1 -3
  294. package/dist/cjs/api/types/Relationship.d.ts +1 -4
  295. package/dist/cjs/api/types/Relationship.js +1 -3
  296. package/dist/cjs/api/types/RelationshipType.d.ts +1 -4
  297. package/dist/cjs/api/types/RelationshipType.js +1 -3
  298. package/dist/cjs/api/types/Relationships.d.ts +1 -4
  299. package/dist/cjs/api/types/Relationships.js +1 -3
  300. package/dist/cjs/api/types/Replication.d.ts +2 -5
  301. package/dist/cjs/api/types/Replication.js +1 -3
  302. package/dist/cjs/api/types/RfConfiguration.d.ts +1 -4
  303. package/dist/cjs/api/types/RfConfiguration.js +1 -3
  304. package/dist/cjs/api/types/RouteDetails.d.ts +0 -3
  305. package/dist/cjs/api/types/RouteDetails.js +1 -3
  306. package/dist/cjs/api/types/ScanCharacteristics.d.ts +1 -4
  307. package/dist/cjs/api/types/ScanCharacteristics.js +1 -3
  308. package/dist/cjs/api/types/Schedule.d.ts +3 -8
  309. package/dist/cjs/api/types/Schedule.js +2 -3
  310. package/dist/cjs/api/types/Schedules.d.ts +1 -4
  311. package/dist/cjs/api/types/Schedules.js +1 -3
  312. package/dist/cjs/api/types/SecondaryCorrelation.d.ts +1 -4
  313. package/dist/cjs/api/types/SecondaryCorrelation.js +1 -3
  314. package/dist/cjs/api/types/Sensor.d.ts +4 -9
  315. package/dist/cjs/api/types/Sensor.js +2 -3
  316. package/dist/cjs/api/types/Sensors.d.ts +1 -4
  317. package/dist/cjs/api/types/Sensors.js +1 -3
  318. package/dist/cjs/api/types/Signal.d.ts +1 -4
  319. package/dist/cjs/api/types/Signal.js +1 -3
  320. package/dist/cjs/api/types/Status.d.ts +8 -11
  321. package/dist/cjs/api/types/Status.js +1 -3
  322. package/dist/cjs/api/types/Supplies.d.ts +1 -4
  323. package/dist/cjs/api/types/Supplies.js +1 -3
  324. package/dist/cjs/api/types/Symbology.d.ts +1 -4
  325. package/dist/cjs/api/types/Symbology.js +1 -3
  326. package/dist/cjs/api/types/System.d.ts +1 -4
  327. package/dist/cjs/api/types/System.js +1 -3
  328. package/dist/cjs/api/types/TMat2.d.ts +0 -3
  329. package/dist/cjs/api/types/TMat2.js +1 -3
  330. package/dist/cjs/api/types/TargetPriority.d.ts +1 -4
  331. package/dist/cjs/api/types/TargetPriority.js +1 -3
  332. package/dist/cjs/api/types/Task.d.ts +24 -19
  333. package/dist/cjs/api/types/Task.js +1 -3
  334. package/dist/cjs/api/types/TaskCatalog.d.ts +1 -4
  335. package/dist/cjs/api/types/TaskCatalog.js +1 -3
  336. package/dist/cjs/api/types/TaskDefinition.d.ts +0 -3
  337. package/dist/cjs/api/types/TaskDefinition.js +1 -3
  338. package/dist/cjs/api/types/TaskEntity.d.ts +7 -6
  339. package/dist/cjs/api/types/TaskEntity.js +1 -3
  340. package/dist/cjs/api/types/TaskError.d.ts +9 -10
  341. package/dist/cjs/api/types/TaskError.js +2 -3
  342. package/dist/cjs/api/types/TaskQueryResults.d.ts +8 -2
  343. package/dist/cjs/api/types/TaskQueryResults.js +1 -3
  344. package/dist/cjs/api/types/TaskStatus.d.ts +16 -17
  345. package/dist/cjs/api/types/TaskStatus.js +2 -3
  346. package/dist/cjs/api/types/TaskVersion.d.ts +14 -7
  347. package/dist/cjs/api/types/TaskVersion.js +1 -3
  348. package/dist/cjs/api/types/Team.d.ts +1 -4
  349. package/dist/cjs/api/types/Team.js +1 -3
  350. package/dist/cjs/api/types/Threat.d.ts +0 -3
  351. package/dist/cjs/api/types/Threat.js +1 -3
  352. package/dist/cjs/api/types/Timestamp.d.ts +0 -3
  353. package/dist/cjs/api/types/Timestamp.js +1 -3
  354. package/dist/cjs/api/types/TleParameters.d.ts +0 -3
  355. package/dist/cjs/api/types/TleParameters.js +1 -3
  356. package/dist/cjs/api/types/Tracked.d.ts +1 -4
  357. package/dist/cjs/api/types/Tracked.js +1 -3
  358. package/dist/cjs/api/types/TrackedBy.d.ts +1 -4
  359. package/dist/cjs/api/types/TrackedBy.js +1 -3
  360. package/dist/cjs/api/types/TransponderCodes.d.ts +3 -8
  361. package/dist/cjs/api/types/TransponderCodes.js +2 -3
  362. package/dist/cjs/api/types/UInt32Range.d.ts +0 -3
  363. package/dist/cjs/api/types/UInt32Range.js +1 -3
  364. package/dist/cjs/api/types/User.d.ts +0 -3
  365. package/dist/cjs/api/types/User.js +1 -3
  366. package/dist/cjs/api/types/VisualDetails.d.ts +1 -4
  367. package/dist/cjs/api/types/VisualDetails.js +1 -3
  368. package/dist/cjs/api/types/index.d.ts +115 -114
  369. package/dist/cjs/api/types/index.js +115 -114
  370. package/dist/cjs/auth/BearerAuthProvider.d.ts +16 -0
  371. package/dist/cjs/auth/BearerAuthProvider.js +70 -0
  372. package/dist/cjs/auth/index.d.ts +1 -0
  373. package/dist/cjs/auth/index.js +5 -0
  374. package/dist/cjs/core/auth/AuthProvider.d.ts +5 -2
  375. package/dist/cjs/core/auth/BasicAuth.js +2 -1
  376. package/dist/cjs/core/auth/BearerToken.d.ts +3 -1
  377. package/dist/cjs/core/auth/BearerToken.js +7 -6
  378. package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +5 -0
  379. package/dist/cjs/core/auth/NoOpAuthProvider.js +9 -0
  380. package/dist/cjs/core/auth/index.d.ts +1 -0
  381. package/dist/cjs/core/auth/index.js +3 -1
  382. package/dist/cjs/core/exports.d.ts +2 -0
  383. package/dist/cjs/core/exports.js +2 -0
  384. package/dist/cjs/core/fetcher/APIResponse.d.ts +1 -1
  385. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +6 -7
  386. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +2 -2
  387. package/dist/cjs/core/fetcher/Fetcher.d.ts +11 -4
  388. package/dist/cjs/core/fetcher/Fetcher.js +204 -9
  389. package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +1 -1
  390. package/dist/cjs/core/fetcher/getErrorResponseBody.js +2 -1
  391. package/dist/cjs/core/fetcher/getRequestBody.d.ts +1 -1
  392. package/dist/cjs/core/fetcher/getRequestBody.js +4 -0
  393. package/dist/cjs/core/fetcher/getResponseBody.js +21 -7
  394. package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -1
  395. package/dist/cjs/core/fetcher/makeRequest.js +2 -4
  396. package/dist/cjs/core/fetcher/requestWithRetries.js +3 -12
  397. package/dist/cjs/core/fetcher/signals.d.ts +1 -7
  398. package/dist/cjs/core/fetcher/signals.js +0 -12
  399. package/dist/cjs/core/file/file.d.ts +6 -1
  400. package/dist/cjs/core/file/file.js +25 -7
  401. package/dist/cjs/core/headers.js +6 -4
  402. package/dist/cjs/core/index.d.ts +6 -5
  403. package/dist/cjs/core/index.js +7 -6
  404. package/dist/cjs/core/logging/exports.d.ts +18 -0
  405. package/dist/cjs/core/logging/exports.js +45 -0
  406. package/dist/cjs/core/logging/index.d.ts +1 -0
  407. package/dist/cjs/core/logging/index.js +17 -0
  408. package/dist/cjs/core/logging/logger.d.ts +126 -0
  409. package/dist/cjs/core/logging/logger.js +144 -0
  410. package/dist/cjs/core/pagination/CustomPager.d.ts +82 -0
  411. package/dist/cjs/core/pagination/CustomPager.js +176 -0
  412. package/dist/cjs/core/pagination/Page.d.ts +8 -7
  413. package/dist/cjs/core/pagination/Page.js +1 -0
  414. package/dist/cjs/core/pagination/exports.d.ts +2 -0
  415. package/dist/cjs/core/pagination/exports.js +5 -0
  416. package/dist/cjs/core/pagination/index.d.ts +1 -1
  417. package/dist/cjs/core/pagination/index.js +3 -3
  418. package/dist/cjs/core/runtime/runtime.js +11 -10
  419. package/dist/cjs/core/stream/Stream.d.ts +1 -0
  420. package/dist/cjs/core/stream/Stream.js +8 -5
  421. package/dist/cjs/core/url/encodePathParam.d.ts +1 -0
  422. package/dist/cjs/core/url/encodePathParam.js +21 -0
  423. package/dist/cjs/core/url/index.d.ts +1 -0
  424. package/dist/cjs/core/url/index.js +3 -1
  425. package/dist/cjs/core/url/join.js +3 -4
  426. package/dist/cjs/environments.d.ts +0 -3
  427. package/dist/cjs/environments.js +1 -3
  428. package/dist/cjs/errors/LatticeError.d.ts +1 -4
  429. package/dist/cjs/errors/LatticeError.js +7 -5
  430. package/dist/cjs/errors/LatticeTimeoutError.d.ts +0 -3
  431. package/dist/cjs/errors/LatticeTimeoutError.js +6 -4
  432. package/dist/cjs/errors/handleNonStatusCodeError.d.ts +2 -0
  433. package/dist/cjs/errors/handleNonStatusCodeError.js +65 -0
  434. package/dist/cjs/index.d.ts +2 -1
  435. package/dist/cjs/index.js +4 -4
  436. package/dist/cjs/version.d.ts +1 -1
  437. package/dist/cjs/version.js +1 -1
  438. package/dist/esm/BaseClient.d.mts +39 -0
  439. package/dist/esm/BaseClient.mjs +25 -0
  440. package/dist/esm/Client.d.mts +15 -35
  441. package/dist/esm/Client.mjs +10 -20
  442. package/dist/esm/api/errors/BadRequestError.d.mts +1 -4
  443. package/dist/esm/api/errors/BadRequestError.mjs +6 -4
  444. package/dist/esm/api/errors/ContentTooLargeError.d.mts +1 -4
  445. package/dist/esm/api/errors/ContentTooLargeError.mjs +6 -4
  446. package/dist/esm/api/errors/InsufficientStorageError.d.mts +1 -4
  447. package/dist/esm/api/errors/InsufficientStorageError.mjs +6 -4
  448. package/dist/esm/api/errors/InternalServerError.d.mts +1 -4
  449. package/dist/esm/api/errors/InternalServerError.mjs +6 -4
  450. package/dist/esm/api/errors/NotFoundError.d.mts +1 -4
  451. package/dist/esm/api/errors/NotFoundError.mjs +6 -4
  452. package/dist/esm/api/errors/RequestTimeoutError.d.mts +1 -4
  453. package/dist/esm/api/errors/RequestTimeoutError.mjs +6 -4
  454. package/dist/esm/api/errors/TooManyRequestsError.d.mts +1 -4
  455. package/dist/esm/api/errors/TooManyRequestsError.mjs +6 -4
  456. package/dist/esm/api/errors/UnauthorizedError.d.mts +1 -4
  457. package/dist/esm/api/errors/UnauthorizedError.mjs +6 -4
  458. package/dist/esm/api/errors/index.d.mts +4 -4
  459. package/dist/esm/api/errors/index.mjs +4 -4
  460. package/dist/esm/api/index.d.mts +1 -1
  461. package/dist/esm/api/index.mjs +1 -1
  462. package/dist/esm/api/resources/entities/client/Client.d.mts +51 -48
  463. package/dist/esm/api/resources/entities/client/Client.mjs +122 -160
  464. package/dist/esm/api/resources/entities/client/index.d.mts +0 -1
  465. package/dist/esm/api/resources/entities/client/requests/EntityEventRequest.d.mts +0 -3
  466. package/dist/esm/api/resources/entities/client/requests/EntityEventRequest.mjs +1 -3
  467. package/dist/esm/api/resources/entities/client/requests/EntityOverride.d.mts +9 -5
  468. package/dist/esm/api/resources/entities/client/requests/EntityOverride.mjs +1 -3
  469. package/dist/esm/api/resources/entities/client/requests/EntityStreamRequest.d.mts +0 -3
  470. package/dist/esm/api/resources/entities/client/requests/EntityStreamRequest.mjs +1 -3
  471. package/dist/esm/api/resources/entities/client/requests/GetEntityRequest.d.mts +10 -0
  472. package/dist/esm/api/resources/entities/client/requests/GetEntityRequest.mjs +2 -0
  473. package/dist/esm/api/resources/entities/client/requests/RemoveEntityOverrideRequest.d.mts +13 -0
  474. package/dist/esm/api/resources/entities/client/requests/RemoveEntityOverrideRequest.mjs +2 -0
  475. package/dist/esm/api/resources/entities/client/requests/index.d.mts +5 -3
  476. package/dist/esm/api/resources/entities/index.d.mts +1 -1
  477. package/dist/esm/api/resources/entities/index.mjs +1 -1
  478. package/dist/esm/api/resources/entities/types/StreamEntitiesResponse.d.mts +1 -4
  479. package/dist/esm/api/resources/entities/types/StreamEntitiesResponse.mjs +1 -3
  480. package/dist/esm/api/resources/entity/types/Error_.d.mts +0 -3
  481. package/dist/esm/api/resources/entity/types/Error_.mjs +1 -3
  482. package/dist/esm/api/resources/index.d.mts +5 -5
  483. package/dist/esm/api/resources/index.mjs +5 -5
  484. package/dist/esm/api/resources/object/types/Error_.d.mts +0 -3
  485. package/dist/esm/api/resources/object/types/Error_.mjs +1 -3
  486. package/dist/esm/api/resources/objects/client/Client.d.mts +30 -47
  487. package/dist/esm/api/resources/objects/client/Client.mjs +88 -148
  488. package/dist/esm/api/resources/objects/client/index.d.mts +0 -1
  489. package/dist/esm/api/resources/objects/client/requests/DeleteObjectRequest.d.mts +10 -0
  490. package/dist/esm/api/resources/objects/client/requests/DeleteObjectRequest.mjs +2 -0
  491. package/dist/esm/api/resources/objects/client/requests/GetObjectMetadataRequest.d.mts +10 -0
  492. package/dist/esm/api/resources/objects/client/requests/GetObjectMetadataRequest.mjs +2 -0
  493. package/dist/esm/api/resources/objects/client/requests/GetObjectRequest.d.mts +6 -5
  494. package/dist/esm/api/resources/objects/client/requests/GetObjectRequest.mjs +1 -3
  495. package/dist/esm/api/resources/objects/client/requests/ListObjectsRequest.d.mts +1 -9
  496. package/dist/esm/api/resources/objects/client/requests/ListObjectsRequest.mjs +1 -3
  497. package/dist/esm/api/resources/objects/client/requests/index.d.mts +4 -2
  498. package/dist/esm/api/resources/objects/index.d.mts +1 -1
  499. package/dist/esm/api/resources/objects/index.mjs +1 -1
  500. package/dist/esm/api/resources/objects/types/GetObjectRequestAcceptEncoding.d.mts +1 -4
  501. package/dist/esm/api/resources/objects/types/GetObjectRequestAcceptEncoding.mjs +1 -3
  502. package/dist/esm/api/resources/task/types/Error_.d.mts +0 -3
  503. package/dist/esm/api/resources/task/types/Error_.mjs +1 -3
  504. package/dist/esm/api/resources/tasks/client/Client.d.mts +85 -46
  505. package/dist/esm/api/resources/tasks/client/Client.mjs +144 -136
  506. package/dist/esm/api/resources/tasks/client/index.d.mts +0 -1
  507. package/dist/esm/api/resources/tasks/client/requests/AgentListener.d.mts +1 -4
  508. package/dist/esm/api/resources/tasks/client/requests/AgentListener.mjs +1 -3
  509. package/dist/esm/api/resources/tasks/client/requests/GetTaskRequest.d.mts +10 -0
  510. package/dist/esm/api/resources/tasks/client/requests/GetTaskRequest.mjs +2 -0
  511. package/dist/esm/api/resources/tasks/client/requests/TaskCreation.d.mts +2 -5
  512. package/dist/esm/api/resources/tasks/client/requests/TaskCreation.mjs +1 -3
  513. package/dist/esm/api/resources/tasks/client/requests/TaskQuery.d.mts +3 -8
  514. package/dist/esm/api/resources/tasks/client/requests/TaskQuery.mjs +2 -3
  515. package/dist/esm/api/resources/tasks/client/requests/TaskStatusUpdate.d.mts +6 -5
  516. package/dist/esm/api/resources/tasks/client/requests/TaskStatusUpdate.mjs +1 -3
  517. package/dist/esm/api/resources/tasks/client/requests/index.d.mts +5 -4
  518. package/dist/esm/api/types/AcmDetails.d.mts +1 -4
  519. package/dist/esm/api/types/AcmDetails.mjs +1 -3
  520. package/dist/esm/api/types/ActiveTarget.d.mts +1 -5
  521. package/dist/esm/api/types/ActiveTarget.mjs +1 -3
  522. package/dist/esm/api/types/Agent.d.mts +1 -4
  523. package/dist/esm/api/types/Agent.mjs +1 -3
  524. package/dist/esm/api/types/AgentRequest.d.mts +11 -2
  525. package/dist/esm/api/types/AgentRequest.mjs +1 -3
  526. package/dist/esm/api/types/Alert.d.mts +3 -8
  527. package/dist/esm/api/types/Alert.mjs +2 -3
  528. package/dist/esm/api/types/AlertCondition.d.mts +0 -3
  529. package/dist/esm/api/types/AlertCondition.mjs +1 -3
  530. package/dist/esm/api/types/Aliases.d.mts +1 -4
  531. package/dist/esm/api/types/Aliases.mjs +1 -3
  532. package/dist/esm/api/types/Allocation.d.mts +3 -6
  533. package/dist/esm/api/types/Allocation.mjs +1 -3
  534. package/dist/esm/api/types/AlternateId.d.mts +1 -4
  535. package/dist/esm/api/types/AlternateId.mjs +1 -3
  536. package/dist/esm/api/types/AngleOfArrival.d.mts +1 -4
  537. package/dist/esm/api/types/AngleOfArrival.mjs +1 -3
  538. package/dist/esm/api/types/Bandwidth.d.mts +0 -3
  539. package/dist/esm/api/types/Bandwidth.mjs +1 -3
  540. package/dist/esm/api/types/BandwidthRange.d.mts +1 -4
  541. package/dist/esm/api/types/BandwidthRange.mjs +1 -3
  542. package/dist/esm/api/types/CancelRequest.d.mts +4 -6
  543. package/dist/esm/api/types/CancelRequest.mjs +1 -3
  544. package/dist/esm/api/types/Classification.d.mts +1 -4
  545. package/dist/esm/api/types/Classification.mjs +1 -3
  546. package/dist/esm/api/types/ClassificationInformation.d.mts +2 -7
  547. package/dist/esm/api/types/ClassificationInformation.mjs +2 -3
  548. package/dist/esm/api/types/Color.d.mts +0 -3
  549. package/dist/esm/api/types/Color.mjs +1 -3
  550. package/dist/esm/api/types/CompleteRequest.d.mts +2 -4
  551. package/dist/esm/api/types/CompleteRequest.mjs +1 -3
  552. package/dist/esm/api/types/ComponentHealth.d.mts +3 -8
  553. package/dist/esm/api/types/ComponentHealth.mjs +2 -3
  554. package/dist/esm/api/types/ComponentMessage.d.mts +2 -7
  555. package/dist/esm/api/types/ComponentMessage.mjs +2 -3
  556. package/dist/esm/api/types/ContentIdentifier.d.mts +0 -3
  557. package/dist/esm/api/types/ContentIdentifier.mjs +1 -3
  558. package/dist/esm/api/types/ControlAreaDetails.d.mts +1 -4
  559. package/dist/esm/api/types/ControlAreaDetails.mjs +1 -3
  560. package/dist/esm/api/types/Correlation.d.mts +1 -4
  561. package/dist/esm/api/types/Correlation.mjs +1 -3
  562. package/dist/esm/api/types/CorrelationMembership.d.mts +1 -4
  563. package/dist/esm/api/types/CorrelationMembership.mjs +1 -3
  564. package/dist/esm/api/types/CorrelationMetadata.d.mts +4 -9
  565. package/dist/esm/api/types/CorrelationMetadata.mjs +11 -3
  566. package/dist/esm/api/types/CronWindow.d.mts +0 -3
  567. package/dist/esm/api/types/CronWindow.mjs +1 -3
  568. package/dist/esm/api/types/DecorrelatedAll.d.mts +1 -4
  569. package/dist/esm/api/types/DecorrelatedAll.mjs +1 -3
  570. package/dist/esm/api/types/DecorrelatedSingle.d.mts +1 -4
  571. package/dist/esm/api/types/DecorrelatedSingle.mjs +1 -3
  572. package/dist/esm/api/types/Decorrelation.d.mts +1 -4
  573. package/dist/esm/api/types/Decorrelation.mjs +1 -3
  574. package/dist/esm/api/types/Dimensions.d.mts +0 -3
  575. package/dist/esm/api/types/Dimensions.mjs +1 -3
  576. package/dist/esm/api/types/Echelon.d.mts +1 -4
  577. package/dist/esm/api/types/Echelon.mjs +1 -3
  578. package/dist/esm/api/types/EmitterNotation.d.mts +0 -3
  579. package/dist/esm/api/types/EmitterNotation.mjs +1 -3
  580. package/dist/esm/api/types/Entity.d.mts +3 -6
  581. package/dist/esm/api/types/Entity.mjs +1 -3
  582. package/dist/esm/api/types/EntityEvent.d.mts +2 -5
  583. package/dist/esm/api/types/EntityEvent.mjs +1 -3
  584. package/dist/esm/api/types/EntityEventResponse.d.mts +1 -4
  585. package/dist/esm/api/types/EntityEventResponse.mjs +1 -3
  586. package/dist/esm/api/types/EntityIdsSelector.d.mts +0 -3
  587. package/dist/esm/api/types/EntityIdsSelector.mjs +1 -3
  588. package/dist/esm/api/types/EntityManagerPose.d.mts +17 -0
  589. package/dist/esm/api/types/EntityManagerPose.mjs +2 -0
  590. package/dist/esm/api/types/{TMat3.d.mts → EntityManagerTMat3.d.mts} +1 -4
  591. package/dist/esm/api/types/EntityManagerTMat3.mjs +2 -0
  592. package/dist/esm/api/types/EntityStreamEvent.d.mts +1 -4
  593. package/dist/esm/api/types/EntityStreamEvent.mjs +1 -3
  594. package/dist/esm/api/types/EntityStreamHeartbeat.d.mts +1 -4
  595. package/dist/esm/api/types/EntityStreamHeartbeat.mjs +1 -3
  596. package/dist/esm/api/types/Enu.d.mts +0 -3
  597. package/dist/esm/api/types/Enu.mjs +1 -3
  598. package/dist/esm/api/types/ErrorEllipse.d.mts +0 -3
  599. package/dist/esm/api/types/ErrorEllipse.mjs +1 -3
  600. package/dist/esm/api/types/ExecuteRequest.d.mts +4 -6
  601. package/dist/esm/api/types/ExecuteRequest.mjs +1 -3
  602. package/dist/esm/api/types/FieldClassificationInformation.d.mts +1 -4
  603. package/dist/esm/api/types/FieldClassificationInformation.mjs +1 -3
  604. package/dist/esm/api/types/FieldOfView.d.mts +3 -6
  605. package/dist/esm/api/types/FieldOfView.mjs +6 -3
  606. package/dist/esm/api/types/Fixed.d.mts +1 -5
  607. package/dist/esm/api/types/Fixed.mjs +1 -3
  608. package/dist/esm/api/types/Frequency.d.mts +1 -4
  609. package/dist/esm/api/types/Frequency.mjs +1 -3
  610. package/dist/esm/api/types/FrequencyRange.d.mts +1 -4
  611. package/dist/esm/api/types/FrequencyRange.mjs +1 -3
  612. package/dist/esm/api/types/Fuel.d.mts +1 -4
  613. package/dist/esm/api/types/Fuel.mjs +1 -3
  614. package/dist/esm/api/types/GeoDetails.d.mts +2 -5
  615. package/dist/esm/api/types/GeoDetails.mjs +1 -3
  616. package/dist/esm/api/types/GeoEllipse.d.mts +0 -3
  617. package/dist/esm/api/types/GeoEllipse.mjs +1 -3
  618. package/dist/esm/api/types/GeoEllipsoid.d.mts +0 -3
  619. package/dist/esm/api/types/GeoEllipsoid.mjs +1 -3
  620. package/dist/esm/api/types/GeoLine.d.mts +1 -4
  621. package/dist/esm/api/types/GeoLine.mjs +1 -3
  622. package/dist/esm/api/types/GeoPoint.d.mts +1 -4
  623. package/dist/esm/api/types/GeoPoint.mjs +1 -3
  624. package/dist/esm/api/types/GeoPolygon.d.mts +1 -4
  625. package/dist/esm/api/types/GeoPolygon.mjs +1 -3
  626. package/dist/esm/api/types/GeoPolygonPosition.d.mts +1 -4
  627. package/dist/esm/api/types/GeoPolygonPosition.mjs +1 -3
  628. package/dist/esm/api/types/GeoShape.d.mts +1 -4
  629. package/dist/esm/api/types/GeoShape.mjs +1 -3
  630. package/dist/esm/api/types/GoogleProtobufAny.d.mts +0 -3
  631. package/dist/esm/api/types/GoogleProtobufAny.mjs +1 -3
  632. package/dist/esm/api/types/GroupChild.d.mts +1 -5
  633. package/dist/esm/api/types/GroupChild.mjs +1 -3
  634. package/dist/esm/api/types/GroupDetails.d.mts +1 -4
  635. package/dist/esm/api/types/GroupDetails.mjs +1 -3
  636. package/dist/esm/api/types/GroupParent.d.mts +1 -5
  637. package/dist/esm/api/types/GroupParent.mjs +1 -3
  638. package/dist/esm/api/types/Health.d.mts +5 -12
  639. package/dist/esm/api/types/Health.mjs +3 -3
  640. package/dist/esm/api/types/HeartbeatObject.d.mts +0 -3
  641. package/dist/esm/api/types/HeartbeatObject.mjs +1 -3
  642. package/dist/esm/api/types/HighValueTarget.d.mts +1 -4
  643. package/dist/esm/api/types/HighValueTarget.mjs +1 -3
  644. package/dist/esm/api/types/HighValueTargetMatch.d.mts +0 -3
  645. package/dist/esm/api/types/HighValueTargetMatch.mjs +1 -3
  646. package/dist/esm/api/types/Indicators.d.mts +0 -3
  647. package/dist/esm/api/types/Indicators.mjs +1 -3
  648. package/dist/esm/api/types/LineOfBearing.d.mts +1 -4
  649. package/dist/esm/api/types/LineOfBearing.mjs +1 -3
  650. package/dist/esm/api/types/LinearRing.d.mts +1 -4
  651. package/dist/esm/api/types/LinearRing.mjs +1 -3
  652. package/dist/esm/api/types/ListResponse.d.mts +1 -4
  653. package/dist/esm/api/types/ListResponse.mjs +1 -3
  654. package/dist/esm/api/types/Lla.d.mts +1 -4
  655. package/dist/esm/api/types/Lla.mjs +6 -3
  656. package/dist/esm/api/types/Location.d.mts +1 -4
  657. package/dist/esm/api/types/Location.mjs +1 -3
  658. package/dist/esm/api/types/LocationUncertainty.d.mts +3 -6
  659. package/dist/esm/api/types/LocationUncertainty.mjs +1 -3
  660. package/dist/esm/api/types/MeanKeplerianElements.d.mts +0 -3
  661. package/dist/esm/api/types/MeanKeplerianElements.mjs +1 -3
  662. package/dist/esm/api/types/Measurement.d.mts +0 -3
  663. package/dist/esm/api/types/Measurement.mjs +1 -3
  664. package/dist/esm/api/types/Media.d.mts +1 -4
  665. package/dist/esm/api/types/Media.mjs +1 -3
  666. package/dist/esm/api/types/MediaItem.d.mts +1 -4
  667. package/dist/esm/api/types/MediaItem.mjs +1 -3
  668. package/dist/esm/api/types/MergedFrom.d.mts +1 -5
  669. package/dist/esm/api/types/MergedFrom.mjs +1 -3
  670. package/dist/esm/api/types/MilStd2525C.d.mts +0 -3
  671. package/dist/esm/api/types/MilStd2525C.mjs +1 -3
  672. package/dist/esm/api/types/MilView.d.mts +3 -6
  673. package/dist/esm/api/types/MilView.mjs +1 -3
  674. package/dist/esm/api/types/Mode5.d.mts +2 -7
  675. package/dist/esm/api/types/Mode5.mjs +2 -3
  676. package/dist/esm/api/types/ModeS.d.mts +0 -3
  677. package/dist/esm/api/types/ModeS.mjs +1 -3
  678. package/dist/esm/api/types/NonPrimaryMembership.d.mts +1 -5
  679. package/dist/esm/api/types/NonPrimaryMembership.mjs +1 -3
  680. package/dist/esm/api/types/Ontology.d.mts +2 -7
  681. package/dist/esm/api/types/Ontology.mjs +2 -3
  682. package/dist/esm/api/types/Orbit.d.mts +1 -4
  683. package/dist/esm/api/types/Orbit.mjs +1 -3
  684. package/dist/esm/api/types/OrbitMeanElements.d.mts +1 -4
  685. package/dist/esm/api/types/OrbitMeanElements.mjs +1 -3
  686. package/dist/esm/api/types/OrbitMeanElementsMetadata.d.mts +3 -8
  687. package/dist/esm/api/types/OrbitMeanElementsMetadata.mjs +2 -3
  688. package/dist/esm/api/types/Override.d.mts +4 -9
  689. package/dist/esm/api/types/Override.mjs +6 -3
  690. package/dist/esm/api/types/Overrides.d.mts +1 -4
  691. package/dist/esm/api/types/Overrides.mjs +1 -3
  692. package/dist/esm/api/types/Owner.d.mts +1 -4
  693. package/dist/esm/api/types/Owner.mjs +1 -3
  694. package/dist/esm/api/types/PathMetadata.d.mts +1 -4
  695. package/dist/esm/api/types/PathMetadata.mjs +1 -3
  696. package/dist/esm/api/types/Payload.d.mts +1 -4
  697. package/dist/esm/api/types/Payload.mjs +1 -3
  698. package/dist/esm/api/types/PayloadConfiguration.d.mts +3 -8
  699. package/dist/esm/api/types/PayloadConfiguration.mjs +2 -3
  700. package/dist/esm/api/types/Payloads.d.mts +1 -4
  701. package/dist/esm/api/types/Payloads.mjs +1 -3
  702. package/dist/esm/api/types/Pose.d.mts +1 -4
  703. package/dist/esm/api/types/Pose.mjs +1 -3
  704. package/dist/esm/api/types/Position.d.mts +0 -3
  705. package/dist/esm/api/types/Position.mjs +1 -3
  706. package/dist/esm/api/types/PowerLevel.d.mts +0 -3
  707. package/dist/esm/api/types/PowerLevel.mjs +1 -3
  708. package/dist/esm/api/types/PowerSource.d.mts +5 -12
  709. package/dist/esm/api/types/PowerSource.mjs +3 -3
  710. package/dist/esm/api/types/PowerState.d.mts +1 -4
  711. package/dist/esm/api/types/PowerState.mjs +1 -3
  712. package/dist/esm/api/types/PrimaryCorrelation.d.mts +0 -3
  713. package/dist/esm/api/types/PrimaryCorrelation.mjs +1 -3
  714. package/dist/esm/api/types/PrimaryMembership.d.mts +1 -5
  715. package/dist/esm/api/types/PrimaryMembership.mjs +1 -3
  716. package/dist/esm/api/types/Principal.d.mts +2 -5
  717. package/dist/esm/api/types/Principal.mjs +1 -3
  718. package/dist/esm/api/types/ProjectedFrustum.d.mts +1 -4
  719. package/dist/esm/api/types/ProjectedFrustum.mjs +1 -3
  720. package/dist/esm/api/types/Provenance.d.mts +0 -3
  721. package/dist/esm/api/types/Provenance.mjs +1 -3
  722. package/dist/esm/api/types/PulseRepetitionInterval.d.mts +1 -4
  723. package/dist/esm/api/types/PulseRepetitionInterval.mjs +1 -3
  724. package/dist/esm/api/types/Quaternion.d.mts +0 -3
  725. package/dist/esm/api/types/Quaternion.mjs +1 -3
  726. package/dist/esm/api/types/RangeRings.d.mts +1 -4
  727. package/dist/esm/api/types/RangeRings.mjs +1 -3
  728. package/dist/esm/api/types/Relations.d.mts +5 -7
  729. package/dist/esm/api/types/Relations.mjs +1 -3
  730. package/dist/esm/api/types/Relationship.d.mts +1 -4
  731. package/dist/esm/api/types/Relationship.mjs +1 -3
  732. package/dist/esm/api/types/RelationshipType.d.mts +1 -4
  733. package/dist/esm/api/types/RelationshipType.mjs +1 -3
  734. package/dist/esm/api/types/Relationships.d.mts +1 -4
  735. package/dist/esm/api/types/Relationships.mjs +1 -3
  736. package/dist/esm/api/types/Replication.d.mts +2 -5
  737. package/dist/esm/api/types/Replication.mjs +1 -3
  738. package/dist/esm/api/types/RfConfiguration.d.mts +1 -4
  739. package/dist/esm/api/types/RfConfiguration.mjs +1 -3
  740. package/dist/esm/api/types/RouteDetails.d.mts +0 -3
  741. package/dist/esm/api/types/RouteDetails.mjs +1 -3
  742. package/dist/esm/api/types/ScanCharacteristics.d.mts +1 -4
  743. package/dist/esm/api/types/ScanCharacteristics.mjs +1 -3
  744. package/dist/esm/api/types/Schedule.d.mts +3 -8
  745. package/dist/esm/api/types/Schedule.mjs +2 -3
  746. package/dist/esm/api/types/Schedules.d.mts +1 -4
  747. package/dist/esm/api/types/Schedules.mjs +1 -3
  748. package/dist/esm/api/types/SecondaryCorrelation.d.mts +1 -4
  749. package/dist/esm/api/types/SecondaryCorrelation.mjs +1 -3
  750. package/dist/esm/api/types/Sensor.d.mts +4 -9
  751. package/dist/esm/api/types/Sensor.mjs +2 -3
  752. package/dist/esm/api/types/Sensors.d.mts +1 -4
  753. package/dist/esm/api/types/Sensors.mjs +1 -3
  754. package/dist/esm/api/types/Signal.d.mts +1 -4
  755. package/dist/esm/api/types/Signal.mjs +1 -3
  756. package/dist/esm/api/types/Status.d.mts +8 -11
  757. package/dist/esm/api/types/Status.mjs +1 -3
  758. package/dist/esm/api/types/Supplies.d.mts +1 -4
  759. package/dist/esm/api/types/Supplies.mjs +1 -3
  760. package/dist/esm/api/types/Symbology.d.mts +1 -4
  761. package/dist/esm/api/types/Symbology.mjs +1 -3
  762. package/dist/esm/api/types/System.d.mts +1 -4
  763. package/dist/esm/api/types/System.mjs +1 -3
  764. package/dist/esm/api/types/TMat2.d.mts +0 -3
  765. package/dist/esm/api/types/TMat2.mjs +1 -3
  766. package/dist/esm/api/types/TargetPriority.d.mts +1 -4
  767. package/dist/esm/api/types/TargetPriority.mjs +1 -3
  768. package/dist/esm/api/types/Task.d.mts +24 -19
  769. package/dist/esm/api/types/Task.mjs +1 -3
  770. package/dist/esm/api/types/TaskCatalog.d.mts +1 -4
  771. package/dist/esm/api/types/TaskCatalog.mjs +1 -3
  772. package/dist/esm/api/types/TaskDefinition.d.mts +0 -3
  773. package/dist/esm/api/types/TaskDefinition.mjs +1 -3
  774. package/dist/esm/api/types/TaskEntity.d.mts +7 -6
  775. package/dist/esm/api/types/TaskEntity.mjs +1 -3
  776. package/dist/esm/api/types/TaskError.d.mts +9 -10
  777. package/dist/esm/api/types/TaskError.mjs +2 -3
  778. package/dist/esm/api/types/TaskQueryResults.d.mts +8 -2
  779. package/dist/esm/api/types/TaskQueryResults.mjs +1 -3
  780. package/dist/esm/api/types/TaskStatus.d.mts +16 -17
  781. package/dist/esm/api/types/TaskStatus.mjs +2 -3
  782. package/dist/esm/api/types/TaskVersion.d.mts +14 -7
  783. package/dist/esm/api/types/TaskVersion.mjs +1 -3
  784. package/dist/esm/api/types/Team.d.mts +1 -4
  785. package/dist/esm/api/types/Team.mjs +1 -3
  786. package/dist/esm/api/types/Threat.d.mts +0 -3
  787. package/dist/esm/api/types/Threat.mjs +1 -3
  788. package/dist/esm/api/types/Timestamp.d.mts +0 -3
  789. package/dist/esm/api/types/Timestamp.mjs +1 -3
  790. package/dist/esm/api/types/TleParameters.d.mts +0 -3
  791. package/dist/esm/api/types/TleParameters.mjs +1 -3
  792. package/dist/esm/api/types/Tracked.d.mts +1 -4
  793. package/dist/esm/api/types/Tracked.mjs +1 -3
  794. package/dist/esm/api/types/TrackedBy.d.mts +1 -4
  795. package/dist/esm/api/types/TrackedBy.mjs +1 -3
  796. package/dist/esm/api/types/TransponderCodes.d.mts +3 -8
  797. package/dist/esm/api/types/TransponderCodes.mjs +2 -3
  798. package/dist/esm/api/types/UInt32Range.d.mts +0 -3
  799. package/dist/esm/api/types/UInt32Range.mjs +1 -3
  800. package/dist/esm/api/types/User.d.mts +0 -3
  801. package/dist/esm/api/types/User.mjs +1 -3
  802. package/dist/esm/api/types/VisualDetails.d.mts +1 -4
  803. package/dist/esm/api/types/VisualDetails.mjs +1 -3
  804. package/dist/esm/api/types/index.d.mts +115 -114
  805. package/dist/esm/api/types/index.mjs +115 -114
  806. package/dist/esm/auth/BearerAuthProvider.d.mts +16 -0
  807. package/dist/esm/auth/BearerAuthProvider.mjs +33 -0
  808. package/dist/esm/auth/index.d.mts +1 -0
  809. package/dist/esm/auth/index.mjs +1 -0
  810. package/dist/esm/core/auth/AuthProvider.d.mts +5 -2
  811. package/dist/esm/core/auth/BasicAuth.mjs +2 -1
  812. package/dist/esm/core/auth/BearerToken.d.mts +3 -1
  813. package/dist/esm/core/auth/BearerToken.mjs +7 -6
  814. package/dist/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
  815. package/dist/esm/core/auth/NoOpAuthProvider.mjs +5 -0
  816. package/dist/esm/core/auth/index.d.mts +1 -0
  817. package/dist/esm/core/auth/index.mjs +1 -0
  818. package/dist/esm/core/exports.d.mts +2 -0
  819. package/dist/esm/core/exports.mjs +2 -0
  820. package/dist/esm/core/fetcher/APIResponse.d.mts +1 -1
  821. package/dist/esm/core/fetcher/BinaryResponse.d.mts +6 -7
  822. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
  823. package/dist/esm/core/fetcher/Fetcher.d.mts +11 -4
  824. package/dist/esm/core/fetcher/Fetcher.mjs +204 -9
  825. package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +1 -1
  826. package/dist/esm/core/fetcher/getErrorResponseBody.mjs +2 -1
  827. package/dist/esm/core/fetcher/getRequestBody.d.mts +1 -1
  828. package/dist/esm/core/fetcher/getRequestBody.mjs +4 -0
  829. package/dist/esm/core/fetcher/getResponseBody.mjs +21 -7
  830. package/dist/esm/core/fetcher/makeRequest.d.mts +1 -1
  831. package/dist/esm/core/fetcher/makeRequest.mjs +2 -4
  832. package/dist/esm/core/fetcher/requestWithRetries.mjs +3 -12
  833. package/dist/esm/core/fetcher/signals.d.mts +1 -7
  834. package/dist/esm/core/fetcher/signals.mjs +0 -12
  835. package/dist/esm/core/file/file.d.mts +6 -1
  836. package/dist/esm/core/file/file.mjs +24 -7
  837. package/dist/esm/core/headers.mjs +6 -4
  838. package/dist/esm/core/index.d.mts +6 -5
  839. package/dist/esm/core/index.mjs +6 -5
  840. package/dist/esm/core/logging/exports.d.mts +18 -0
  841. package/dist/esm/core/logging/exports.mjs +9 -0
  842. package/dist/esm/core/logging/index.d.mts +1 -0
  843. package/dist/esm/core/logging/index.mjs +1 -0
  844. package/dist/esm/core/logging/logger.d.mts +126 -0
  845. package/dist/esm/core/logging/logger.mjs +138 -0
  846. package/dist/esm/core/pagination/CustomPager.d.mts +82 -0
  847. package/dist/esm/core/pagination/CustomPager.mjs +172 -0
  848. package/dist/esm/core/pagination/Page.d.mts +8 -7
  849. package/dist/esm/core/pagination/Page.mjs +1 -0
  850. package/dist/esm/core/pagination/exports.d.mts +2 -0
  851. package/dist/esm/core/pagination/exports.mjs +1 -0
  852. package/dist/esm/core/pagination/index.d.mts +1 -1
  853. package/dist/esm/core/pagination/index.mjs +1 -1
  854. package/dist/esm/core/runtime/runtime.mjs +11 -10
  855. package/dist/esm/core/stream/Stream.d.mts +1 -0
  856. package/dist/esm/core/stream/Stream.mjs +8 -5
  857. package/dist/esm/core/url/encodePathParam.d.mts +1 -0
  858. package/dist/esm/core/url/encodePathParam.mjs +18 -0
  859. package/dist/esm/core/url/index.d.mts +1 -0
  860. package/dist/esm/core/url/index.mjs +1 -0
  861. package/dist/esm/core/url/join.mjs +3 -4
  862. package/dist/esm/environments.d.mts +0 -3
  863. package/dist/esm/environments.mjs +1 -3
  864. package/dist/esm/errors/LatticeError.d.mts +1 -4
  865. package/dist/esm/errors/LatticeError.mjs +7 -5
  866. package/dist/esm/errors/LatticeTimeoutError.d.mts +0 -3
  867. package/dist/esm/errors/LatticeTimeoutError.mjs +6 -4
  868. package/dist/esm/errors/handleNonStatusCodeError.d.mts +2 -0
  869. package/dist/esm/errors/handleNonStatusCodeError.mjs +29 -0
  870. package/dist/esm/index.d.mts +2 -1
  871. package/dist/esm/index.mjs +1 -1
  872. package/dist/esm/version.d.mts +1 -1
  873. package/dist/esm/version.mjs +1 -1
  874. package/package.json +11 -5
  875. package/reference.md +288 -162
  876. package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +0 -4
  877. package/dist/cjs/core/fetcher/ResponseWithBody.js +0 -6
  878. package/dist/cjs/core/pagination/Pageable.d.ts +0 -14
  879. package/dist/cjs/core/pagination/Pageable.js +0 -10
  880. package/dist/esm/api/types/TMat3.mjs +0 -4
  881. package/dist/esm/core/fetcher/ResponseWithBody.d.mts +0 -4
  882. package/dist/esm/core/fetcher/ResponseWithBody.mjs +0 -3
  883. package/dist/esm/core/pagination/Pageable.d.mts +0 -14
  884. package/dist/esm/core/pagination/Pageable.mjs +0 -6
package/README.md CHANGED
@@ -6,6 +6,30 @@
6
6
 
7
7
  The Lattice SDK TypeScript library provides convenient access to the Lattice SDK APIs from TypeScript.
8
8
 
9
+ ## Table of Contents
10
+
11
+ - [Documentation](#documentation)
12
+ - [Requirements](#requirements)
13
+ - [Installation](#installation)
14
+ - [Support](#support)
15
+ - [Reference](#reference)
16
+ - [Usage](#usage)
17
+ - [Request and Response Types](#request-and-response-types)
18
+ - [Exception Handling](#exception-handling)
19
+ - [Streaming Response](#streaming-response)
20
+ - [File Uploads](#file-uploads)
21
+ - [Binary Response](#binary-response)
22
+ - [Pagination](#pagination)
23
+ - [Advanced](#advanced)
24
+ - [Additional Headers](#additional-headers)
25
+ - [Additional Query String Parameters](#additional-query-string-parameters)
26
+ - [Retries](#retries)
27
+ - [Timeouts](#timeouts)
28
+ - [Aborting Requests](#aborting-requests)
29
+ - [Access Raw Response Data](#access-raw-response-data)
30
+ - [Logging](#logging)
31
+ - [Runtime Compatibility](#runtime-compatibility)
32
+
9
33
  ## Documentation
10
34
 
11
35
  API reference documentation is available [here](https://developer.anduril.com/).
@@ -39,11 +63,11 @@ import { LatticeClient } from "@anduril-industries/lattice-sdk";
39
63
 
40
64
  const client = new LatticeClient({ token: "YOUR_TOKEN" });
41
65
  await client.entities.longPollEntityEvents({
42
- sessionToken: "sessionToken",
66
+ sessionToken: "sessionToken"
43
67
  });
44
68
  ```
45
69
 
46
- ## Request And Response Types
70
+ ## Request and Response Types
47
71
 
48
72
  The SDK exports all request and response types as TypeScript interfaces. Simply import them with the
49
73
  following namespace:
@@ -51,7 +75,7 @@ following namespace:
51
75
  ```typescript
52
76
  import { Lattice } from "@anduril-industries/lattice-sdk";
53
77
 
54
- const request: Lattice.EntityOverride = {
78
+ const request: Lattice.GetEntityRequest = {
55
79
  ...
56
80
  };
57
81
  ```
@@ -76,6 +100,21 @@ try {
76
100
  }
77
101
  ```
78
102
 
103
+ ## Streaming Response
104
+
105
+ Some endpoints return streaming responses instead of returning the full response at once.
106
+ The SDK uses async iterators, so you can consume the responses using a `for await...of` loop.
107
+
108
+ ```typescript
109
+ import { LatticeClient } from "@anduril-industries/lattice-sdk";
110
+
111
+ const client = new LatticeClient({ token: "YOUR_TOKEN" });
112
+ const response = await client.entities.streamEntities();
113
+ for await (const item of response) {
114
+ console.log(item);
115
+ }
116
+ ```
117
+
79
118
  ## File Uploads
80
119
 
81
120
  You can upload files using the client:
@@ -91,39 +130,36 @@ await client.objects.uploadObject(new File(['binary data'], 'file.mp3'), ...);
91
130
  await client.objects.uploadObject(new ArrayBuffer(8), ...);
92
131
  await client.objects.uploadObject(new Uint8Array([0, 1, 2]), ...);
93
132
  ```
94
-
95
133
  The client accepts a variety of types for file upload parameters:
96
-
97
- - Stream types: `fs.ReadStream`, `stream.Readable`, and `ReadableStream`
98
- - Buffered types: `Buffer`, `Blob`, `File`, `ArrayBuffer`, `ArrayBufferView`, and `Uint8Array`
134
+ * Stream types: `fs.ReadStream`, `stream.Readable`, and `ReadableStream`
135
+ * Buffered types: `Buffer`, `Blob`, `File`, `ArrayBuffer`, `ArrayBufferView`, and `Uint8Array`
99
136
 
100
137
  ### Metadata
101
138
 
102
139
  You can configure metadata when uploading a file:
103
-
104
140
  ```typescript
105
141
  const file: Uploadable.WithMetadata = {
106
142
  data: createReadStream("path/to/file"),
107
- filename: "my-file", // optional
143
+ filename: "my-file", // optional
108
144
  contentType: "audio/mpeg", // optional
109
- contentLength: 1949, // optional
145
+ contentLength: 1949, // optional
110
146
  };
111
147
  ```
112
148
 
113
149
  Alternatively, you can upload a file directly from a file path:
114
-
115
150
  ```typescript
116
- const file: Uploadable.FromPath = {
151
+ const file : Uploadable.FromPath = {
117
152
  path: "path/to/file",
118
- filename: "my-file", // optional
119
- contentType: "audio/mpeg", // optional
120
- contentLength: 1949, // optional
153
+ filename: "my-file", // optional
154
+ contentType: "audio/mpeg", // optional
155
+ contentLength: 1949, // optional
121
156
  };
122
157
  ```
123
158
 
124
159
  The metadata is used to set the `Content-Length`, `Content-Type`, and `Content-Disposition` headers. If not provided, the client will attempt to determine them automatically.
125
160
  For example, `fs.ReadStream` has a `path` property which the SDK uses to retrieve the file size from the filesystem without loading it into memory.
126
161
 
162
+
127
163
  ## Binary Response
128
164
 
129
165
  You can consume binary data from endpoints using the `BinaryResponse` type which lets you choose how to consume the data:
@@ -138,7 +174,6 @@ const stream: ReadableStream<Uint8Array> = response.stream();
138
174
  // If you want to check if the response body has been used, you can use the following property.
139
175
  const bodyUsed = response.bodyUsed;
140
176
  ```
141
-
142
177
  <details>
143
178
  <summary>Save binary response to a file</summary>
144
179
 
@@ -522,26 +557,19 @@ List endpoints are paginated. The SDK provides an iterator so that you can simpl
522
557
  import { LatticeClient } from "@anduril-industries/lattice-sdk";
523
558
 
524
559
  const client = new LatticeClient({ token: "YOUR_TOKEN" });
525
- const response = await client.objects.listObjects({
526
- prefix: "prefix",
527
- sinceTimestamp: "2024-01-15T09:30:00Z",
528
- pageToken: "pageToken",
529
- allObjectsInMesh: true,
530
- });
531
- for await (const item of response) {
560
+ const pageableResponse = await client.objects.listObjects();
561
+ for await (const item of pageableResponse) {
532
562
  console.log(item);
533
563
  }
534
564
 
535
565
  // Or you can manually iterate page-by-page
536
- let page = await client.objects.listObjects({
537
- prefix: "prefix",
538
- sinceTimestamp: "2024-01-15T09:30:00Z",
539
- pageToken: "pageToken",
540
- allObjectsInMesh: true,
541
- });
566
+ let page = await client.objects.listObjects();
542
567
  while (page.hasNextPage()) {
543
568
  page = page.getNextPage();
544
569
  }
570
+
571
+ // You can also access the underlying response
572
+ const response = page.response;
545
573
  ```
546
574
 
547
575
  ## Advanced
@@ -551,6 +579,15 @@ while (page.hasNextPage()) {
551
579
  If you would like to send additional headers as part of the request, use the `headers` request option.
552
580
 
553
581
  ```typescript
582
+ import { LatticeClient } from "@anduril-industries/lattice-sdk";
583
+
584
+ const client = new LatticeClient({
585
+ ...
586
+ headers: {
587
+ 'X-Custom-Header': 'custom value'
588
+ }
589
+ });
590
+
554
591
  const response = await client.entities.longPollEntityEvents(..., {
555
592
  headers: {
556
593
  'X-Custom-Header': 'custom value'
@@ -624,10 +661,76 @@ console.log(data);
624
661
  console.log(rawResponse.headers['X-My-Header']);
625
662
  ```
626
663
 
664
+ ### Logging
665
+
666
+ The SDK supports logging. You can configure the logger by passing in a `logging` object to the client options.
667
+
668
+ ```typescript
669
+ import { LatticeClient, logging } from "@anduril-industries/lattice-sdk";
670
+
671
+ const client = new LatticeClient({
672
+ ...
673
+ logging: {
674
+ level: logging.LogLevel.Debug, // defaults to logging.LogLevel.Info
675
+ logger: new logging.ConsoleLogger(), // defaults to ConsoleLogger
676
+ silent: false, // defaults to true, set to false to enable logging
677
+ }
678
+ });
679
+ ```
680
+ The `logging` object can have the following properties:
681
+ - `level`: The log level to use. Defaults to `logging.LogLevel.Info`.
682
+ - `logger`: The logger to use. Defaults to a `logging.ConsoleLogger`.
683
+ - `silent`: Whether to silence the logger. Defaults to `true`.
684
+
685
+ The `level` property can be one of the following values:
686
+ - `logging.LogLevel.Debug`
687
+ - `logging.LogLevel.Info`
688
+ - `logging.LogLevel.Warn`
689
+ - `logging.LogLevel.Error`
690
+
691
+ To provide a custom logger, you can pass in an object that implements the `logging.ILogger` interface.
692
+
693
+ <details>
694
+ <summary>Custom logger examples</summary>
695
+
696
+ Here's an example using the popular `winston` logging library.
697
+ ```ts
698
+ import winston from 'winston';
699
+
700
+ const winstonLogger = winston.createLogger({...});
701
+
702
+ const logger: logging.ILogger = {
703
+ debug: (msg, ...args) => winstonLogger.debug(msg, ...args),
704
+ info: (msg, ...args) => winstonLogger.info(msg, ...args),
705
+ warn: (msg, ...args) => winstonLogger.warn(msg, ...args),
706
+ error: (msg, ...args) => winstonLogger.error(msg, ...args),
707
+ };
708
+ ```
709
+
710
+ Here's an example using the popular `pino` logging library.
711
+
712
+ ```ts
713
+ import pino from 'pino';
714
+
715
+ const pinoLogger = pino({...});
716
+
717
+ const logger: logging.ILogger = {
718
+ debug: (msg, ...args) => pinoLogger.debug(args, msg),
719
+ info: (msg, ...args) => pinoLogger.info(args, msg),
720
+ warn: (msg, ...args) => pinoLogger.warn(args, msg),
721
+ error: (msg, ...args) => pinoLogger.error(args, msg),
722
+ };
723
+ ```
724
+ </details>
725
+
726
+
627
727
  ### Runtime Compatibility
628
728
 
729
+
629
730
  The SDK works in the following runtimes:
630
731
 
732
+
733
+
631
734
  - Node.js 18+
632
735
  - Vercel
633
736
  - Cloudflare Workers
@@ -0,0 +1,39 @@
1
+ import { BearerAuthProvider } from "./auth/BearerAuthProvider.js";
2
+ import * as core from "./core/index.js";
3
+ import type * as environments from "./environments.js";
4
+ export type BaseClientOptions = {
5
+ environment?: core.Supplier<environments.LatticeEnvironment | string>;
6
+ /** Specify a custom URL to connect the client to. */
7
+ baseUrl?: core.Supplier<string>;
8
+ /** Additional headers to include in requests. */
9
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
10
+ /** The default maximum time to wait for a response in seconds. */
11
+ timeoutInSeconds?: number;
12
+ /** The default number of times to retry the request. Defaults to 2. */
13
+ maxRetries?: number;
14
+ /** Provide a custom fetch implementation. Useful for platforms that don't have a built-in fetch or need a custom implementation. */
15
+ fetch?: typeof fetch;
16
+ /** Configure logging for the client. */
17
+ logging?: core.logging.LogConfig | core.logging.Logger;
18
+ } & BearerAuthProvider.AuthOptions;
19
+ export interface BaseRequestOptions {
20
+ /** The maximum time to wait for a response in seconds. */
21
+ timeoutInSeconds?: number;
22
+ /** The number of times to retry the request. Defaults to 2. */
23
+ maxRetries?: number;
24
+ /** A hook to abort the request. */
25
+ abortSignal?: AbortSignal;
26
+ /** Additional query string parameters to include in the request. */
27
+ queryParams?: Record<string, unknown>;
28
+ /** Additional headers to include in the request. */
29
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
30
+ }
31
+ export type NormalizedClientOptions<T extends BaseClientOptions> = T & {
32
+ logging: core.logging.Logger;
33
+ authProvider?: core.AuthProvider;
34
+ };
35
+ export type NormalizedClientOptionsWithAuth<T extends BaseClientOptions> = NormalizedClientOptions<T> & {
36
+ authProvider: core.AuthProvider;
37
+ };
38
+ export declare function normalizeClientOptions<T extends BaseClientOptions>(options: T): NormalizedClientOptions<T>;
39
+ export declare function normalizeClientOptionsWithAuth<T extends BaseClientOptions>(options: T): NormalizedClientOptionsWithAuth<T>;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.normalizeClientOptions = normalizeClientOptions;
38
+ exports.normalizeClientOptionsWithAuth = normalizeClientOptionsWithAuth;
39
+ const BearerAuthProvider_js_1 = require("./auth/BearerAuthProvider.js");
40
+ const headers_js_1 = require("./core/headers.js");
41
+ const core = __importStar(require("./core/index.js"));
42
+ function normalizeClientOptions(options) {
43
+ const headers = (0, headers_js_1.mergeHeaders)({
44
+ "X-Fern-Language": "JavaScript",
45
+ "X-Fern-SDK-Name": "@anduril-industries/lattice-sdk",
46
+ "X-Fern-SDK-Version": "4.0.0",
47
+ "User-Agent": "@anduril-industries/lattice-sdk/4.0.0",
48
+ "X-Fern-Runtime": core.RUNTIME.type,
49
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
50
+ }, options === null || options === void 0 ? void 0 : options.headers);
51
+ return Object.assign(Object.assign({}, options), { logging: core.logging.createLogger(options === null || options === void 0 ? void 0 : options.logging), headers });
52
+ }
53
+ function normalizeClientOptionsWithAuth(options) {
54
+ var _a;
55
+ const normalized = normalizeClientOptions(options);
56
+ const normalizedWithNoOpAuthProvider = withNoOpAuthProvider(normalized);
57
+ (_a = normalized.authProvider) !== null && _a !== void 0 ? _a : (normalized.authProvider = new BearerAuthProvider_js_1.BearerAuthProvider(normalizedWithNoOpAuthProvider));
58
+ return normalized;
59
+ }
60
+ function withNoOpAuthProvider(options) {
61
+ return Object.assign(Object.assign({}, options), { authProvider: new core.NoOpAuthProvider() });
62
+ }
@@ -1,40 +1,20 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as environments from "./environments.js";
5
- import * as core from "./core/index.js";
6
- import { Entities } from "./api/resources/entities/client/Client.js";
7
- import { Tasks } from "./api/resources/tasks/client/Client.js";
8
- import { Objects } from "./api/resources/objects/client/Client.js";
1
+ import { EntitiesClient } from "./api/resources/entities/client/Client.js";
2
+ import { ObjectsClient } from "./api/resources/objects/client/Client.js";
3
+ import { TasksClient } from "./api/resources/tasks/client/Client.js";
4
+ import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
5
+ import { type NormalizedClientOptionsWithAuth } from "./BaseClient.js";
9
6
  export declare namespace LatticeClient {
10
- interface Options {
11
- environment?: core.Supplier<environments.LatticeEnvironment | string>;
12
- /** Specify a custom URL to connect the client to. */
13
- baseUrl?: core.Supplier<string>;
14
- token?: core.Supplier<core.BearerToken | undefined>;
15
- /** Additional headers to include in requests. */
16
- headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
17
- }
18
- interface RequestOptions {
19
- /** The maximum time to wait for a response in seconds. */
20
- timeoutInSeconds?: number;
21
- /** The number of times to retry the request. Defaults to 2. */
22
- maxRetries?: number;
23
- /** A hook to abort the request. */
24
- abortSignal?: AbortSignal;
25
- /** Additional query string parameters to include in the request. */
26
- queryParams?: Record<string, unknown>;
27
- /** Additional headers to include in the request. */
28
- headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
7
+ type Options = BaseClientOptions;
8
+ interface RequestOptions extends BaseRequestOptions {
29
9
  }
30
10
  }
31
11
  export declare class LatticeClient {
32
- protected readonly _options: LatticeClient.Options;
33
- protected _entities: Entities | undefined;
34
- protected _tasks: Tasks | undefined;
35
- protected _objects: Objects | undefined;
36
- constructor(_options?: LatticeClient.Options);
37
- get entities(): Entities;
38
- get tasks(): Tasks;
39
- get objects(): Objects;
12
+ protected readonly _options: NormalizedClientOptionsWithAuth<LatticeClient.Options>;
13
+ protected _entities: EntitiesClient | undefined;
14
+ protected _tasks: TasksClient | undefined;
15
+ protected _objects: ObjectsClient | undefined;
16
+ constructor(options: LatticeClient.Options);
17
+ get entities(): EntitiesClient;
18
+ get tasks(): TasksClient;
19
+ get objects(): ObjectsClient;
40
20
  }
@@ -1,69 +1,26 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
2
+ // This file was auto-generated by Fern from our API Definition.
38
3
  Object.defineProperty(exports, "__esModule", { value: true });
39
4
  exports.LatticeClient = void 0;
40
- const core = __importStar(require("./core/index.js"));
41
- const headers_js_1 = require("./core/headers.js");
42
5
  const Client_js_1 = require("./api/resources/entities/client/Client.js");
43
- const Client_js_2 = require("./api/resources/tasks/client/Client.js");
44
- const Client_js_3 = require("./api/resources/objects/client/Client.js");
6
+ const Client_js_2 = require("./api/resources/objects/client/Client.js");
7
+ const Client_js_3 = require("./api/resources/tasks/client/Client.js");
8
+ const BaseClient_js_1 = require("./BaseClient.js");
45
9
  class LatticeClient {
46
- constructor(_options = {}) {
47
- this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
48
- "X-Fern-Language": "JavaScript",
49
- "X-Fern-SDK-Name": "@anduril-industries/lattice-sdk",
50
- "X-Fern-SDK-Version": "2.4.0",
51
- "User-Agent": "@anduril-industries/lattice-sdk/2.4.0",
52
- "X-Fern-Runtime": core.RUNTIME.type,
53
- "X-Fern-Runtime-Version": core.RUNTIME.version,
54
- }, _options === null || _options === void 0 ? void 0 : _options.headers) });
10
+ constructor(options) {
11
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
55
12
  }
56
13
  get entities() {
57
14
  var _a;
58
- return ((_a = this._entities) !== null && _a !== void 0 ? _a : (this._entities = new Client_js_1.Entities(this._options)));
15
+ return ((_a = this._entities) !== null && _a !== void 0 ? _a : (this._entities = new Client_js_1.EntitiesClient(this._options)));
59
16
  }
60
17
  get tasks() {
61
18
  var _a;
62
- return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_js_2.Tasks(this._options)));
19
+ return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_js_3.TasksClient(this._options)));
63
20
  }
64
21
  get objects() {
65
22
  var _a;
66
- return ((_a = this._objects) !== null && _a !== void 0 ? _a : (this._objects = new Client_js_3.Objects(this._options)));
23
+ return ((_a = this._objects) !== null && _a !== void 0 ? _a : (this._objects = new Client_js_2.ObjectsClient(this._options)));
67
24
  }
68
25
  }
69
26
  exports.LatticeClient = LatticeClient;
@@ -1,8 +1,5 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
1
+ import type * as core from "../../core/index.js";
4
2
  import * as errors from "../../errors/index.js";
5
- import * as core from "../../core/index.js";
6
3
  export declare class BadRequestError extends errors.LatticeError {
7
4
  constructor(body?: unknown, rawResponse?: core.RawResponse);
8
5
  }
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
4
  if (k2 === undefined) k2 = k;
7
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -46,7 +44,11 @@ class BadRequestError extends errors.LatticeError {
46
44
  body: body,
47
45
  rawResponse: rawResponse,
48
46
  });
49
- Object.setPrototypeOf(this, BadRequestError.prototype);
47
+ Object.setPrototypeOf(this, new.target.prototype);
48
+ if (Error.captureStackTrace) {
49
+ Error.captureStackTrace(this, this.constructor);
50
+ }
51
+ this.name = this.constructor.name;
50
52
  }
51
53
  }
52
54
  exports.BadRequestError = BadRequestError;
@@ -1,8 +1,5 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
1
+ import type * as core from "../../core/index.js";
4
2
  import * as errors from "../../errors/index.js";
5
- import * as core from "../../core/index.js";
6
3
  export declare class ContentTooLargeError extends errors.LatticeError {
7
4
  constructor(body?: unknown, rawResponse?: core.RawResponse);
8
5
  }
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
4
  if (k2 === undefined) k2 = k;
7
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -46,7 +44,11 @@ class ContentTooLargeError extends errors.LatticeError {
46
44
  body: body,
47
45
  rawResponse: rawResponse,
48
46
  });
49
- Object.setPrototypeOf(this, ContentTooLargeError.prototype);
47
+ Object.setPrototypeOf(this, new.target.prototype);
48
+ if (Error.captureStackTrace) {
49
+ Error.captureStackTrace(this, this.constructor);
50
+ }
51
+ this.name = this.constructor.name;
50
52
  }
51
53
  }
52
54
  exports.ContentTooLargeError = ContentTooLargeError;
@@ -1,8 +1,5 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
1
+ import type * as core from "../../core/index.js";
4
2
  import * as errors from "../../errors/index.js";
5
- import * as core from "../../core/index.js";
6
3
  export declare class InsufficientStorageError extends errors.LatticeError {
7
4
  constructor(body?: unknown, rawResponse?: core.RawResponse);
8
5
  }
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
4
  if (k2 === undefined) k2 = k;
7
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -46,7 +44,11 @@ class InsufficientStorageError extends errors.LatticeError {
46
44
  body: body,
47
45
  rawResponse: rawResponse,
48
46
  });
49
- Object.setPrototypeOf(this, InsufficientStorageError.prototype);
47
+ Object.setPrototypeOf(this, new.target.prototype);
48
+ if (Error.captureStackTrace) {
49
+ Error.captureStackTrace(this, this.constructor);
50
+ }
51
+ this.name = this.constructor.name;
50
52
  }
51
53
  }
52
54
  exports.InsufficientStorageError = InsufficientStorageError;
@@ -1,8 +1,5 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
1
+ import type * as core from "../../core/index.js";
4
2
  import * as errors from "../../errors/index.js";
5
- import * as core from "../../core/index.js";
6
3
  export declare class InternalServerError extends errors.LatticeError {
7
4
  constructor(body?: unknown, rawResponse?: core.RawResponse);
8
5
  }
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
4
  if (k2 === undefined) k2 = k;
7
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -46,7 +44,11 @@ class InternalServerError extends errors.LatticeError {
46
44
  body: body,
47
45
  rawResponse: rawResponse,
48
46
  });
49
- Object.setPrototypeOf(this, InternalServerError.prototype);
47
+ Object.setPrototypeOf(this, new.target.prototype);
48
+ if (Error.captureStackTrace) {
49
+ Error.captureStackTrace(this, this.constructor);
50
+ }
51
+ this.name = this.constructor.name;
50
52
  }
51
53
  }
52
54
  exports.InternalServerError = InternalServerError;
@@ -1,8 +1,5 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
1
+ import type * as core from "../../core/index.js";
4
2
  import * as errors from "../../errors/index.js";
5
- import * as core from "../../core/index.js";
6
3
  export declare class NotFoundError extends errors.LatticeError {
7
4
  constructor(body?: unknown, rawResponse?: core.RawResponse);
8
5
  }
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
4
  if (k2 === undefined) k2 = k;
7
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -46,7 +44,11 @@ class NotFoundError extends errors.LatticeError {
46
44
  body: body,
47
45
  rawResponse: rawResponse,
48
46
  });
49
- Object.setPrototypeOf(this, NotFoundError.prototype);
47
+ Object.setPrototypeOf(this, new.target.prototype);
48
+ if (Error.captureStackTrace) {
49
+ Error.captureStackTrace(this, this.constructor);
50
+ }
51
+ this.name = this.constructor.name;
50
52
  }
51
53
  }
52
54
  exports.NotFoundError = NotFoundError;