@anduril-industries/lattice-sdk 2.4.0 → 3.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.
- package/README.md +15 -16
- package/dist/cjs/BaseClient.d.ts +26 -0
- package/dist/cjs/BaseClient.js +3 -0
- package/dist/cjs/Client.d.ts +4 -24
- package/dist/cjs/Client.js +9 -11
- package/dist/cjs/api/errors/BadRequestError.d.ts +1 -4
- package/dist/cjs/api/errors/BadRequestError.js +1 -3
- package/dist/cjs/api/errors/ContentTooLargeError.d.ts +1 -4
- package/dist/cjs/api/errors/ContentTooLargeError.js +1 -3
- package/dist/cjs/api/errors/InsufficientStorageError.d.ts +1 -4
- package/dist/cjs/api/errors/InsufficientStorageError.js +1 -3
- package/dist/cjs/api/errors/InternalServerError.d.ts +1 -4
- package/dist/cjs/api/errors/InternalServerError.js +1 -3
- package/dist/cjs/api/errors/NotFoundError.d.ts +1 -4
- package/dist/cjs/api/errors/NotFoundError.js +1 -3
- package/dist/cjs/api/errors/RequestTimeoutError.d.ts +1 -4
- package/dist/cjs/api/errors/RequestTimeoutError.js +1 -3
- package/dist/cjs/api/errors/TooManyRequestsError.d.ts +1 -4
- package/dist/cjs/api/errors/TooManyRequestsError.js +1 -3
- package/dist/cjs/api/errors/UnauthorizedError.d.ts +1 -4
- package/dist/cjs/api/errors/UnauthorizedError.js +1 -3
- package/dist/cjs/api/errors/index.d.ts +4 -4
- package/dist/cjs/api/errors/index.js +4 -4
- package/dist/cjs/api/index.d.ts +1 -1
- package/dist/cjs/api/index.js +1 -1
- package/dist/cjs/api/resources/entities/client/Client.d.ts +3 -22
- package/dist/cjs/api/resources/entities/client/Client.js +31 -33
- package/dist/cjs/api/resources/entities/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/entities/client/requests/EntityEventRequest.d.ts +0 -3
- package/dist/cjs/api/resources/entities/client/requests/EntityEventRequest.js +1 -3
- package/dist/cjs/api/resources/entities/client/requests/EntityOverride.d.ts +1 -4
- package/dist/cjs/api/resources/entities/client/requests/EntityOverride.js +1 -3
- package/dist/cjs/api/resources/entities/client/requests/EntityStreamRequest.d.ts +0 -3
- package/dist/cjs/api/resources/entities/client/requests/EntityStreamRequest.js +1 -3
- package/dist/cjs/api/resources/entities/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/entities/index.d.ts +1 -1
- package/dist/cjs/api/resources/entities/index.js +1 -1
- package/dist/cjs/api/resources/entities/types/StreamEntitiesResponse.d.ts +1 -4
- package/dist/cjs/api/resources/entities/types/StreamEntitiesResponse.js +1 -3
- package/dist/cjs/api/resources/entity/types/Error_.d.ts +0 -3
- package/dist/cjs/api/resources/entity/types/Error_.js +1 -3
- package/dist/cjs/api/resources/index.d.ts +5 -5
- package/dist/cjs/api/resources/index.js +9 -9
- package/dist/cjs/api/resources/object/types/Error_.d.ts +0 -3
- package/dist/cjs/api/resources/object/types/Error_.js +1 -3
- package/dist/cjs/api/resources/objects/client/Client.d.ts +3 -22
- package/dist/cjs/api/resources/objects/client/Client.js +32 -34
- package/dist/cjs/api/resources/objects/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/objects/client/requests/GetObjectRequest.d.ts +1 -4
- package/dist/cjs/api/resources/objects/client/requests/GetObjectRequest.js +1 -3
- package/dist/cjs/api/resources/objects/client/requests/ListObjectsRequest.d.ts +0 -3
- package/dist/cjs/api/resources/objects/client/requests/ListObjectsRequest.js +1 -3
- package/dist/cjs/api/resources/objects/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/objects/index.d.ts +1 -1
- package/dist/cjs/api/resources/objects/index.js +1 -1
- package/dist/cjs/api/resources/objects/types/GetObjectRequestAcceptEncoding.d.ts +1 -4
- package/dist/cjs/api/resources/objects/types/GetObjectRequestAcceptEncoding.js +1 -3
- package/dist/cjs/api/resources/task/types/Error_.d.ts +0 -3
- package/dist/cjs/api/resources/task/types/Error_.js +1 -3
- package/dist/cjs/api/resources/tasks/client/Client.d.ts +3 -22
- package/dist/cjs/api/resources/tasks/client/Client.js +26 -28
- package/dist/cjs/api/resources/tasks/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tasks/client/requests/AgentListener.d.ts +1 -4
- package/dist/cjs/api/resources/tasks/client/requests/AgentListener.js +1 -3
- package/dist/cjs/api/resources/tasks/client/requests/TaskCreation.d.ts +1 -4
- package/dist/cjs/api/resources/tasks/client/requests/TaskCreation.js +1 -3
- package/dist/cjs/api/resources/tasks/client/requests/TaskQuery.d.ts +2 -7
- package/dist/cjs/api/resources/tasks/client/requests/TaskQuery.js +2 -3
- package/dist/cjs/api/resources/tasks/client/requests/TaskStatusUpdate.d.ts +1 -4
- package/dist/cjs/api/resources/tasks/client/requests/TaskStatusUpdate.js +1 -3
- package/dist/cjs/api/resources/tasks/client/requests/index.d.ts +4 -4
- package/dist/cjs/api/types/AcmDetails.d.ts +1 -4
- package/dist/cjs/api/types/AcmDetails.js +1 -3
- package/dist/cjs/api/types/ActiveTarget.d.ts +1 -5
- package/dist/cjs/api/types/ActiveTarget.js +1 -3
- package/dist/cjs/api/types/Agent.d.ts +0 -3
- package/dist/cjs/api/types/Agent.js +1 -3
- package/dist/cjs/api/types/AgentRequest.d.ts +1 -4
- package/dist/cjs/api/types/AgentRequest.js +1 -3
- package/dist/cjs/api/types/Alert.d.ts +3 -8
- package/dist/cjs/api/types/Alert.js +2 -3
- package/dist/cjs/api/types/AlertCondition.d.ts +0 -3
- package/dist/cjs/api/types/AlertCondition.js +1 -3
- package/dist/cjs/api/types/Aliases.d.ts +1 -4
- package/dist/cjs/api/types/Aliases.js +1 -3
- package/dist/cjs/api/types/Allocation.d.ts +1 -4
- package/dist/cjs/api/types/Allocation.js +1 -3
- package/dist/cjs/api/types/AlternateId.d.ts +1 -4
- package/dist/cjs/api/types/AlternateId.js +1 -3
- package/dist/cjs/api/types/AngleOfArrival.d.ts +1 -4
- package/dist/cjs/api/types/AngleOfArrival.js +1 -3
- package/dist/cjs/api/types/Bandwidth.d.ts +0 -3
- package/dist/cjs/api/types/Bandwidth.js +1 -3
- package/dist/cjs/api/types/BandwidthRange.d.ts +1 -4
- package/dist/cjs/api/types/BandwidthRange.js +1 -3
- package/dist/cjs/api/types/CancelRequest.d.ts +1 -4
- package/dist/cjs/api/types/CancelRequest.js +1 -3
- package/dist/cjs/api/types/Classification.d.ts +1 -4
- package/dist/cjs/api/types/Classification.js +1 -3
- package/dist/cjs/api/types/ClassificationInformation.d.ts +2 -7
- package/dist/cjs/api/types/ClassificationInformation.js +2 -3
- package/dist/cjs/api/types/Color.d.ts +0 -3
- package/dist/cjs/api/types/Color.js +1 -3
- package/dist/cjs/api/types/CompleteRequest.d.ts +0 -3
- package/dist/cjs/api/types/CompleteRequest.js +1 -3
- package/dist/cjs/api/types/ComponentHealth.d.ts +3 -8
- package/dist/cjs/api/types/ComponentHealth.js +2 -3
- package/dist/cjs/api/types/ComponentMessage.d.ts +2 -7
- package/dist/cjs/api/types/ComponentMessage.js +2 -3
- package/dist/cjs/api/types/ContentIdentifier.d.ts +0 -3
- package/dist/cjs/api/types/ContentIdentifier.js +1 -3
- package/dist/cjs/api/types/ControlAreaDetails.d.ts +1 -4
- package/dist/cjs/api/types/ControlAreaDetails.js +1 -3
- package/dist/cjs/api/types/Correlation.d.ts +1 -4
- package/dist/cjs/api/types/Correlation.js +1 -3
- package/dist/cjs/api/types/CorrelationMembership.d.ts +1 -4
- package/dist/cjs/api/types/CorrelationMembership.js +1 -3
- package/dist/cjs/api/types/CorrelationMetadata.d.ts +4 -9
- package/dist/cjs/api/types/CorrelationMetadata.js +11 -3
- package/dist/cjs/api/types/CronWindow.d.ts +0 -3
- package/dist/cjs/api/types/CronWindow.js +1 -3
- package/dist/cjs/api/types/DecorrelatedAll.d.ts +1 -4
- package/dist/cjs/api/types/DecorrelatedAll.js +1 -3
- package/dist/cjs/api/types/DecorrelatedSingle.d.ts +1 -4
- package/dist/cjs/api/types/DecorrelatedSingle.js +1 -3
- package/dist/cjs/api/types/Decorrelation.d.ts +1 -4
- package/dist/cjs/api/types/Decorrelation.js +1 -3
- package/dist/cjs/api/types/Dimensions.d.ts +0 -3
- package/dist/cjs/api/types/Dimensions.js +1 -3
- package/dist/cjs/api/types/Echelon.d.ts +1 -4
- package/dist/cjs/api/types/Echelon.js +1 -3
- package/dist/cjs/api/types/EmitterNotation.d.ts +0 -3
- package/dist/cjs/api/types/EmitterNotation.js +1 -3
- package/dist/cjs/api/types/Entity.d.ts +1 -4
- package/dist/cjs/api/types/Entity.js +1 -3
- package/dist/cjs/api/types/EntityEvent.d.ts +2 -5
- package/dist/cjs/api/types/EntityEvent.js +1 -3
- package/dist/cjs/api/types/EntityEventResponse.d.ts +1 -4
- package/dist/cjs/api/types/EntityEventResponse.js +1 -3
- package/dist/cjs/api/types/EntityIdsSelector.d.ts +0 -3
- package/dist/cjs/api/types/EntityIdsSelector.js +1 -3
- package/dist/cjs/api/types/EntityStreamEvent.d.ts +1 -4
- package/dist/cjs/api/types/EntityStreamEvent.js +1 -3
- package/dist/cjs/api/types/EntityStreamHeartbeat.d.ts +1 -4
- package/dist/cjs/api/types/EntityStreamHeartbeat.js +1 -3
- package/dist/cjs/api/types/Enu.d.ts +0 -3
- package/dist/cjs/api/types/Enu.js +1 -3
- package/dist/cjs/api/types/ErrorEllipse.d.ts +0 -3
- package/dist/cjs/api/types/ErrorEllipse.js +1 -3
- package/dist/cjs/api/types/ExecuteRequest.d.ts +1 -4
- package/dist/cjs/api/types/ExecuteRequest.js +1 -3
- package/dist/cjs/api/types/FieldClassificationInformation.d.ts +1 -4
- package/dist/cjs/api/types/FieldClassificationInformation.js +1 -3
- package/dist/cjs/api/types/FieldOfView.d.ts +2 -5
- package/dist/cjs/api/types/FieldOfView.js +6 -3
- package/dist/cjs/api/types/Fixed.d.ts +1 -5
- package/dist/cjs/api/types/Fixed.js +1 -3
- package/dist/cjs/api/types/Frequency.d.ts +1 -4
- package/dist/cjs/api/types/Frequency.js +1 -3
- package/dist/cjs/api/types/FrequencyRange.d.ts +1 -4
- package/dist/cjs/api/types/FrequencyRange.js +1 -3
- package/dist/cjs/api/types/Fuel.d.ts +1 -4
- package/dist/cjs/api/types/Fuel.js +1 -3
- package/dist/cjs/api/types/GeoDetails.d.ts +2 -5
- package/dist/cjs/api/types/GeoDetails.js +1 -3
- package/dist/cjs/api/types/GeoEllipse.d.ts +0 -3
- package/dist/cjs/api/types/GeoEllipse.js +1 -3
- package/dist/cjs/api/types/GeoEllipsoid.d.ts +0 -3
- package/dist/cjs/api/types/GeoEllipsoid.js +1 -3
- package/dist/cjs/api/types/GeoLine.d.ts +1 -4
- package/dist/cjs/api/types/GeoLine.js +1 -3
- package/dist/cjs/api/types/GeoPoint.d.ts +1 -4
- package/dist/cjs/api/types/GeoPoint.js +1 -3
- package/dist/cjs/api/types/GeoPolygon.d.ts +1 -4
- package/dist/cjs/api/types/GeoPolygon.js +1 -3
- package/dist/cjs/api/types/GeoPolygonPosition.d.ts +1 -4
- package/dist/cjs/api/types/GeoPolygonPosition.js +1 -3
- package/dist/cjs/api/types/GeoShape.d.ts +1 -4
- package/dist/cjs/api/types/GeoShape.js +1 -3
- package/dist/cjs/api/types/GoogleProtobufAny.d.ts +0 -3
- package/dist/cjs/api/types/GoogleProtobufAny.js +1 -3
- package/dist/cjs/api/types/GroupChild.d.ts +1 -5
- package/dist/cjs/api/types/GroupChild.js +1 -3
- package/dist/cjs/api/types/GroupDetails.d.ts +1 -4
- package/dist/cjs/api/types/GroupDetails.js +1 -3
- package/dist/cjs/api/types/GroupParent.d.ts +1 -5
- package/dist/cjs/api/types/GroupParent.js +1 -3
- package/dist/cjs/api/types/Health.d.ts +5 -12
- package/dist/cjs/api/types/Health.js +3 -3
- package/dist/cjs/api/types/HeartbeatObject.d.ts +0 -3
- package/dist/cjs/api/types/HeartbeatObject.js +1 -3
- package/dist/cjs/api/types/HighValueTarget.d.ts +1 -4
- package/dist/cjs/api/types/HighValueTarget.js +1 -3
- package/dist/cjs/api/types/HighValueTargetMatch.d.ts +0 -3
- package/dist/cjs/api/types/HighValueTargetMatch.js +1 -3
- package/dist/cjs/api/types/Indicators.d.ts +0 -3
- package/dist/cjs/api/types/Indicators.js +1 -3
- package/dist/cjs/api/types/LineOfBearing.d.ts +1 -4
- package/dist/cjs/api/types/LineOfBearing.js +1 -3
- package/dist/cjs/api/types/LinearRing.d.ts +1 -4
- package/dist/cjs/api/types/LinearRing.js +1 -3
- package/dist/cjs/api/types/ListResponse.d.ts +1 -4
- package/dist/cjs/api/types/ListResponse.js +1 -3
- package/dist/cjs/api/types/Lla.d.ts +1 -4
- package/dist/cjs/api/types/Lla.js +6 -3
- package/dist/cjs/api/types/Location.d.ts +1 -4
- package/dist/cjs/api/types/Location.js +1 -3
- package/dist/cjs/api/types/LocationUncertainty.d.ts +1 -4
- package/dist/cjs/api/types/LocationUncertainty.js +1 -3
- package/dist/cjs/api/types/MeanKeplerianElements.d.ts +0 -3
- package/dist/cjs/api/types/MeanKeplerianElements.js +1 -3
- package/dist/cjs/api/types/Measurement.d.ts +0 -3
- package/dist/cjs/api/types/Measurement.js +1 -3
- package/dist/cjs/api/types/Media.d.ts +1 -4
- package/dist/cjs/api/types/Media.js +1 -3
- package/dist/cjs/api/types/MediaItem.d.ts +1 -4
- package/dist/cjs/api/types/MediaItem.js +1 -3
- package/dist/cjs/api/types/MergedFrom.d.ts +1 -5
- package/dist/cjs/api/types/MergedFrom.js +1 -3
- package/dist/cjs/api/types/MilStd2525C.d.ts +0 -3
- package/dist/cjs/api/types/MilStd2525C.js +1 -3
- package/dist/cjs/api/types/MilView.d.ts +3 -6
- package/dist/cjs/api/types/MilView.js +1 -3
- package/dist/cjs/api/types/Mode5.d.ts +2 -7
- package/dist/cjs/api/types/Mode5.js +2 -3
- package/dist/cjs/api/types/ModeS.d.ts +0 -3
- package/dist/cjs/api/types/ModeS.js +1 -3
- package/dist/cjs/api/types/NonPrimaryMembership.d.ts +1 -5
- package/dist/cjs/api/types/NonPrimaryMembership.js +1 -3
- package/dist/cjs/api/types/Ontology.d.ts +2 -7
- package/dist/cjs/api/types/Ontology.js +2 -3
- package/dist/cjs/api/types/Orbit.d.ts +1 -4
- package/dist/cjs/api/types/Orbit.js +1 -3
- package/dist/cjs/api/types/OrbitMeanElements.d.ts +1 -4
- package/dist/cjs/api/types/OrbitMeanElements.js +1 -3
- package/dist/cjs/api/types/OrbitMeanElementsMetadata.d.ts +3 -8
- package/dist/cjs/api/types/OrbitMeanElementsMetadata.js +2 -3
- package/dist/cjs/api/types/Override.d.ts +4 -9
- package/dist/cjs/api/types/Override.js +6 -3
- package/dist/cjs/api/types/Overrides.d.ts +1 -4
- package/dist/cjs/api/types/Overrides.js +1 -3
- package/dist/cjs/api/types/Owner.d.ts +0 -3
- package/dist/cjs/api/types/Owner.js +1 -3
- package/dist/cjs/api/types/PathMetadata.d.ts +1 -4
- package/dist/cjs/api/types/PathMetadata.js +1 -3
- package/dist/cjs/api/types/Payload.d.ts +1 -4
- package/dist/cjs/api/types/Payload.js +1 -3
- package/dist/cjs/api/types/PayloadConfiguration.d.ts +3 -8
- package/dist/cjs/api/types/PayloadConfiguration.js +2 -3
- package/dist/cjs/api/types/Payloads.d.ts +1 -4
- package/dist/cjs/api/types/Payloads.js +1 -3
- package/dist/cjs/api/types/Pose.d.ts +1 -4
- package/dist/cjs/api/types/Pose.js +1 -3
- package/dist/cjs/api/types/Position.d.ts +0 -3
- package/dist/cjs/api/types/Position.js +1 -3
- package/dist/cjs/api/types/PowerLevel.d.ts +0 -3
- package/dist/cjs/api/types/PowerLevel.js +1 -3
- package/dist/cjs/api/types/PowerSource.d.ts +5 -12
- package/dist/cjs/api/types/PowerSource.js +3 -3
- package/dist/cjs/api/types/PowerState.d.ts +1 -4
- package/dist/cjs/api/types/PowerState.js +1 -3
- package/dist/cjs/api/types/PrimaryCorrelation.d.ts +0 -3
- package/dist/cjs/api/types/PrimaryCorrelation.js +1 -3
- package/dist/cjs/api/types/PrimaryMembership.d.ts +1 -5
- package/dist/cjs/api/types/PrimaryMembership.js +1 -3
- package/dist/cjs/api/types/Principal.d.ts +1 -4
- package/dist/cjs/api/types/Principal.js +1 -3
- package/dist/cjs/api/types/ProjectedFrustum.d.ts +1 -4
- package/dist/cjs/api/types/ProjectedFrustum.js +1 -3
- package/dist/cjs/api/types/Provenance.d.ts +0 -3
- package/dist/cjs/api/types/Provenance.js +1 -3
- package/dist/cjs/api/types/PulseRepetitionInterval.d.ts +1 -4
- package/dist/cjs/api/types/PulseRepetitionInterval.js +1 -3
- package/dist/cjs/api/types/Quaternion.d.ts +0 -3
- package/dist/cjs/api/types/Quaternion.js +1 -3
- package/dist/cjs/api/types/RangeRings.d.ts +1 -4
- package/dist/cjs/api/types/RangeRings.js +1 -3
- package/dist/cjs/api/types/Relations.d.ts +1 -4
- package/dist/cjs/api/types/Relations.js +1 -3
- package/dist/cjs/api/types/Relationship.d.ts +1 -4
- package/dist/cjs/api/types/Relationship.js +1 -3
- package/dist/cjs/api/types/RelationshipType.d.ts +1 -4
- package/dist/cjs/api/types/RelationshipType.js +1 -3
- package/dist/cjs/api/types/Relationships.d.ts +1 -4
- package/dist/cjs/api/types/Relationships.js +1 -3
- package/dist/cjs/api/types/Replication.d.ts +0 -3
- package/dist/cjs/api/types/Replication.js +1 -3
- package/dist/cjs/api/types/RfConfiguration.d.ts +1 -4
- package/dist/cjs/api/types/RfConfiguration.js +1 -3
- package/dist/cjs/api/types/RouteDetails.d.ts +0 -3
- package/dist/cjs/api/types/RouteDetails.js +1 -3
- package/dist/cjs/api/types/ScanCharacteristics.d.ts +1 -4
- package/dist/cjs/api/types/ScanCharacteristics.js +1 -3
- package/dist/cjs/api/types/Schedule.d.ts +3 -8
- package/dist/cjs/api/types/Schedule.js +2 -3
- package/dist/cjs/api/types/Schedules.d.ts +1 -4
- package/dist/cjs/api/types/Schedules.js +1 -3
- package/dist/cjs/api/types/SecondaryCorrelation.d.ts +1 -4
- package/dist/cjs/api/types/SecondaryCorrelation.js +1 -3
- package/dist/cjs/api/types/Sensor.d.ts +4 -9
- package/dist/cjs/api/types/Sensor.js +2 -3
- package/dist/cjs/api/types/Sensors.d.ts +1 -4
- package/dist/cjs/api/types/Sensors.js +1 -3
- package/dist/cjs/api/types/Signal.d.ts +1 -4
- package/dist/cjs/api/types/Signal.js +1 -3
- package/dist/cjs/api/types/Status.d.ts +8 -11
- package/dist/cjs/api/types/Status.js +1 -3
- package/dist/cjs/api/types/Supplies.d.ts +1 -4
- package/dist/cjs/api/types/Supplies.js +1 -3
- package/dist/cjs/api/types/Symbology.d.ts +1 -4
- package/dist/cjs/api/types/Symbology.js +1 -3
- package/dist/cjs/api/types/System.d.ts +0 -3
- package/dist/cjs/api/types/System.js +1 -3
- package/dist/cjs/api/types/TMat2.d.ts +0 -3
- package/dist/cjs/api/types/TMat2.js +1 -3
- package/dist/cjs/api/types/TMat3.d.ts +0 -3
- package/dist/cjs/api/types/TMat3.js +1 -3
- package/dist/cjs/api/types/TargetPriority.d.ts +1 -4
- package/dist/cjs/api/types/TargetPriority.js +1 -3
- package/dist/cjs/api/types/Task.d.ts +1 -4
- package/dist/cjs/api/types/Task.js +1 -3
- package/dist/cjs/api/types/TaskCatalog.d.ts +1 -4
- package/dist/cjs/api/types/TaskCatalog.js +1 -3
- package/dist/cjs/api/types/TaskDefinition.d.ts +0 -3
- package/dist/cjs/api/types/TaskDefinition.js +1 -3
- package/dist/cjs/api/types/TaskEntity.d.ts +1 -4
- package/dist/cjs/api/types/TaskEntity.js +1 -3
- package/dist/cjs/api/types/TaskError.d.ts +3 -8
- package/dist/cjs/api/types/TaskError.js +2 -3
- package/dist/cjs/api/types/TaskQueryResults.d.ts +1 -4
- package/dist/cjs/api/types/TaskQueryResults.js +1 -3
- package/dist/cjs/api/types/TaskStatus.d.ts +3 -8
- package/dist/cjs/api/types/TaskStatus.js +2 -3
- package/dist/cjs/api/types/TaskVersion.d.ts +0 -3
- package/dist/cjs/api/types/TaskVersion.js +1 -3
- package/dist/cjs/api/types/Team.d.ts +1 -4
- package/dist/cjs/api/types/Team.js +1 -3
- package/dist/cjs/api/types/Threat.d.ts +0 -3
- package/dist/cjs/api/types/Threat.js +1 -3
- package/dist/cjs/api/types/Timestamp.d.ts +0 -3
- package/dist/cjs/api/types/Timestamp.js +1 -3
- package/dist/cjs/api/types/TleParameters.d.ts +0 -3
- package/dist/cjs/api/types/TleParameters.js +1 -3
- package/dist/cjs/api/types/Tracked.d.ts +1 -4
- package/dist/cjs/api/types/Tracked.js +1 -3
- package/dist/cjs/api/types/TrackedBy.d.ts +1 -4
- package/dist/cjs/api/types/TrackedBy.js +1 -3
- package/dist/cjs/api/types/TransponderCodes.d.ts +3 -8
- package/dist/cjs/api/types/TransponderCodes.js +2 -3
- package/dist/cjs/api/types/UInt32Range.d.ts +0 -3
- package/dist/cjs/api/types/UInt32Range.js +1 -3
- package/dist/cjs/api/types/User.d.ts +0 -3
- package/dist/cjs/api/types/User.js +1 -3
- package/dist/cjs/api/types/VisualDetails.d.ts +1 -4
- package/dist/cjs/api/types/VisualDetails.js +1 -3
- package/dist/cjs/api/types/index.d.ts +114 -114
- package/dist/cjs/api/types/index.js +114 -114
- package/dist/cjs/core/auth/AuthProvider.d.ts +1 -1
- package/dist/cjs/core/auth/BasicAuth.js +2 -1
- package/dist/cjs/core/fetcher/APIResponse.d.ts +1 -1
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +1 -1
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +2 -2
- package/dist/cjs/core/fetcher/Fetcher.d.ts +2 -2
- package/dist/cjs/core/fetcher/Fetcher.js +2 -1
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +1 -1
- package/dist/cjs/core/fetcher/getErrorResponseBody.js +2 -1
- package/dist/cjs/core/fetcher/getResponseBody.js +3 -3
- package/dist/cjs/core/fetcher/makeRequest.js +2 -2
- package/dist/cjs/core/fetcher/requestWithRetries.js +3 -3
- package/dist/cjs/core/file/file.d.ts +6 -1
- package/dist/cjs/core/file/file.js +25 -7
- package/dist/cjs/core/index.d.ts +5 -5
- package/dist/cjs/core/index.js +6 -6
- package/dist/cjs/core/pagination/Page.d.ts +1 -1
- package/dist/cjs/core/pagination/Pageable.d.ts +1 -1
- package/dist/cjs/core/url/encodePathParam.d.ts +1 -0
- package/dist/cjs/core/url/encodePathParam.js +21 -0
- package/dist/cjs/core/url/index.d.ts +1 -0
- package/dist/cjs/core/url/index.js +3 -1
- package/dist/cjs/core/url/join.js +3 -3
- package/dist/cjs/environments.d.ts +0 -3
- package/dist/cjs/environments.js +1 -3
- package/dist/cjs/errors/LatticeError.d.ts +1 -4
- package/dist/cjs/errors/LatticeError.js +2 -4
- package/dist/cjs/errors/LatticeTimeoutError.d.ts +0 -3
- package/dist/cjs/errors/LatticeTimeoutError.js +1 -3
- package/dist/cjs/index.d.ts +2 -1
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +26 -0
- package/dist/esm/BaseClient.mjs +2 -0
- package/dist/esm/Client.d.mts +4 -24
- package/dist/esm/Client.mjs +6 -8
- package/dist/esm/api/errors/BadRequestError.d.mts +1 -4
- package/dist/esm/api/errors/BadRequestError.mjs +1 -3
- package/dist/esm/api/errors/ContentTooLargeError.d.mts +1 -4
- package/dist/esm/api/errors/ContentTooLargeError.mjs +1 -3
- package/dist/esm/api/errors/InsufficientStorageError.d.mts +1 -4
- package/dist/esm/api/errors/InsufficientStorageError.mjs +1 -3
- package/dist/esm/api/errors/InternalServerError.d.mts +1 -4
- package/dist/esm/api/errors/InternalServerError.mjs +1 -3
- package/dist/esm/api/errors/NotFoundError.d.mts +1 -4
- package/dist/esm/api/errors/NotFoundError.mjs +1 -3
- package/dist/esm/api/errors/RequestTimeoutError.d.mts +1 -4
- package/dist/esm/api/errors/RequestTimeoutError.mjs +1 -3
- package/dist/esm/api/errors/TooManyRequestsError.d.mts +1 -4
- package/dist/esm/api/errors/TooManyRequestsError.mjs +1 -3
- package/dist/esm/api/errors/UnauthorizedError.d.mts +1 -4
- package/dist/esm/api/errors/UnauthorizedError.mjs +1 -3
- package/dist/esm/api/errors/index.d.mts +4 -4
- package/dist/esm/api/errors/index.mjs +4 -4
- package/dist/esm/api/index.d.mts +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/resources/entities/client/Client.d.mts +3 -22
- package/dist/esm/api/resources/entities/client/Client.mjs +31 -33
- package/dist/esm/api/resources/entities/client/index.d.mts +0 -1
- package/dist/esm/api/resources/entities/client/requests/EntityEventRequest.d.mts +0 -3
- package/dist/esm/api/resources/entities/client/requests/EntityEventRequest.mjs +1 -3
- package/dist/esm/api/resources/entities/client/requests/EntityOverride.d.mts +1 -4
- package/dist/esm/api/resources/entities/client/requests/EntityOverride.mjs +1 -3
- package/dist/esm/api/resources/entities/client/requests/EntityStreamRequest.d.mts +0 -3
- package/dist/esm/api/resources/entities/client/requests/EntityStreamRequest.mjs +1 -3
- package/dist/esm/api/resources/entities/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/entities/index.d.mts +1 -1
- package/dist/esm/api/resources/entities/index.mjs +1 -1
- package/dist/esm/api/resources/entities/types/StreamEntitiesResponse.d.mts +1 -4
- package/dist/esm/api/resources/entities/types/StreamEntitiesResponse.mjs +1 -3
- package/dist/esm/api/resources/entity/types/Error_.d.mts +0 -3
- package/dist/esm/api/resources/entity/types/Error_.mjs +1 -3
- package/dist/esm/api/resources/index.d.mts +5 -5
- package/dist/esm/api/resources/index.mjs +5 -5
- package/dist/esm/api/resources/object/types/Error_.d.mts +0 -3
- package/dist/esm/api/resources/object/types/Error_.mjs +1 -3
- package/dist/esm/api/resources/objects/client/Client.d.mts +3 -22
- package/dist/esm/api/resources/objects/client/Client.mjs +32 -34
- package/dist/esm/api/resources/objects/client/index.d.mts +0 -1
- package/dist/esm/api/resources/objects/client/requests/GetObjectRequest.d.mts +1 -4
- package/dist/esm/api/resources/objects/client/requests/GetObjectRequest.mjs +1 -3
- package/dist/esm/api/resources/objects/client/requests/ListObjectsRequest.d.mts +0 -3
- package/dist/esm/api/resources/objects/client/requests/ListObjectsRequest.mjs +1 -3
- package/dist/esm/api/resources/objects/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/objects/index.d.mts +1 -1
- package/dist/esm/api/resources/objects/index.mjs +1 -1
- package/dist/esm/api/resources/objects/types/GetObjectRequestAcceptEncoding.d.mts +1 -4
- package/dist/esm/api/resources/objects/types/GetObjectRequestAcceptEncoding.mjs +1 -3
- package/dist/esm/api/resources/task/types/Error_.d.mts +0 -3
- package/dist/esm/api/resources/task/types/Error_.mjs +1 -3
- package/dist/esm/api/resources/tasks/client/Client.d.mts +3 -22
- package/dist/esm/api/resources/tasks/client/Client.mjs +26 -28
- package/dist/esm/api/resources/tasks/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tasks/client/requests/AgentListener.d.mts +1 -4
- package/dist/esm/api/resources/tasks/client/requests/AgentListener.mjs +1 -3
- package/dist/esm/api/resources/tasks/client/requests/TaskCreation.d.mts +1 -4
- package/dist/esm/api/resources/tasks/client/requests/TaskCreation.mjs +1 -3
- package/dist/esm/api/resources/tasks/client/requests/TaskQuery.d.mts +2 -7
- package/dist/esm/api/resources/tasks/client/requests/TaskQuery.mjs +2 -3
- package/dist/esm/api/resources/tasks/client/requests/TaskStatusUpdate.d.mts +1 -4
- package/dist/esm/api/resources/tasks/client/requests/TaskStatusUpdate.mjs +1 -3
- package/dist/esm/api/resources/tasks/client/requests/index.d.mts +4 -4
- package/dist/esm/api/types/AcmDetails.d.mts +1 -4
- package/dist/esm/api/types/AcmDetails.mjs +1 -3
- package/dist/esm/api/types/ActiveTarget.d.mts +1 -5
- package/dist/esm/api/types/ActiveTarget.mjs +1 -3
- package/dist/esm/api/types/Agent.d.mts +0 -3
- package/dist/esm/api/types/Agent.mjs +1 -3
- package/dist/esm/api/types/AgentRequest.d.mts +1 -4
- package/dist/esm/api/types/AgentRequest.mjs +1 -3
- package/dist/esm/api/types/Alert.d.mts +3 -8
- package/dist/esm/api/types/Alert.mjs +2 -3
- package/dist/esm/api/types/AlertCondition.d.mts +0 -3
- package/dist/esm/api/types/AlertCondition.mjs +1 -3
- package/dist/esm/api/types/Aliases.d.mts +1 -4
- package/dist/esm/api/types/Aliases.mjs +1 -3
- package/dist/esm/api/types/Allocation.d.mts +1 -4
- package/dist/esm/api/types/Allocation.mjs +1 -3
- package/dist/esm/api/types/AlternateId.d.mts +1 -4
- package/dist/esm/api/types/AlternateId.mjs +1 -3
- package/dist/esm/api/types/AngleOfArrival.d.mts +1 -4
- package/dist/esm/api/types/AngleOfArrival.mjs +1 -3
- package/dist/esm/api/types/Bandwidth.d.mts +0 -3
- package/dist/esm/api/types/Bandwidth.mjs +1 -3
- package/dist/esm/api/types/BandwidthRange.d.mts +1 -4
- package/dist/esm/api/types/BandwidthRange.mjs +1 -3
- package/dist/esm/api/types/CancelRequest.d.mts +1 -4
- package/dist/esm/api/types/CancelRequest.mjs +1 -3
- package/dist/esm/api/types/Classification.d.mts +1 -4
- package/dist/esm/api/types/Classification.mjs +1 -3
- package/dist/esm/api/types/ClassificationInformation.d.mts +2 -7
- package/dist/esm/api/types/ClassificationInformation.mjs +2 -3
- package/dist/esm/api/types/Color.d.mts +0 -3
- package/dist/esm/api/types/Color.mjs +1 -3
- package/dist/esm/api/types/CompleteRequest.d.mts +0 -3
- package/dist/esm/api/types/CompleteRequest.mjs +1 -3
- package/dist/esm/api/types/ComponentHealth.d.mts +3 -8
- package/dist/esm/api/types/ComponentHealth.mjs +2 -3
- package/dist/esm/api/types/ComponentMessage.d.mts +2 -7
- package/dist/esm/api/types/ComponentMessage.mjs +2 -3
- package/dist/esm/api/types/ContentIdentifier.d.mts +0 -3
- package/dist/esm/api/types/ContentIdentifier.mjs +1 -3
- package/dist/esm/api/types/ControlAreaDetails.d.mts +1 -4
- package/dist/esm/api/types/ControlAreaDetails.mjs +1 -3
- package/dist/esm/api/types/Correlation.d.mts +1 -4
- package/dist/esm/api/types/Correlation.mjs +1 -3
- package/dist/esm/api/types/CorrelationMembership.d.mts +1 -4
- package/dist/esm/api/types/CorrelationMembership.mjs +1 -3
- package/dist/esm/api/types/CorrelationMetadata.d.mts +4 -9
- package/dist/esm/api/types/CorrelationMetadata.mjs +11 -3
- package/dist/esm/api/types/CronWindow.d.mts +0 -3
- package/dist/esm/api/types/CronWindow.mjs +1 -3
- package/dist/esm/api/types/DecorrelatedAll.d.mts +1 -4
- package/dist/esm/api/types/DecorrelatedAll.mjs +1 -3
- package/dist/esm/api/types/DecorrelatedSingle.d.mts +1 -4
- package/dist/esm/api/types/DecorrelatedSingle.mjs +1 -3
- package/dist/esm/api/types/Decorrelation.d.mts +1 -4
- package/dist/esm/api/types/Decorrelation.mjs +1 -3
- package/dist/esm/api/types/Dimensions.d.mts +0 -3
- package/dist/esm/api/types/Dimensions.mjs +1 -3
- package/dist/esm/api/types/Echelon.d.mts +1 -4
- package/dist/esm/api/types/Echelon.mjs +1 -3
- package/dist/esm/api/types/EmitterNotation.d.mts +0 -3
- package/dist/esm/api/types/EmitterNotation.mjs +1 -3
- package/dist/esm/api/types/Entity.d.mts +1 -4
- package/dist/esm/api/types/Entity.mjs +1 -3
- package/dist/esm/api/types/EntityEvent.d.mts +2 -5
- package/dist/esm/api/types/EntityEvent.mjs +1 -3
- package/dist/esm/api/types/EntityEventResponse.d.mts +1 -4
- package/dist/esm/api/types/EntityEventResponse.mjs +1 -3
- package/dist/esm/api/types/EntityIdsSelector.d.mts +0 -3
- package/dist/esm/api/types/EntityIdsSelector.mjs +1 -3
- package/dist/esm/api/types/EntityStreamEvent.d.mts +1 -4
- package/dist/esm/api/types/EntityStreamEvent.mjs +1 -3
- package/dist/esm/api/types/EntityStreamHeartbeat.d.mts +1 -4
- package/dist/esm/api/types/EntityStreamHeartbeat.mjs +1 -3
- package/dist/esm/api/types/Enu.d.mts +0 -3
- package/dist/esm/api/types/Enu.mjs +1 -3
- package/dist/esm/api/types/ErrorEllipse.d.mts +0 -3
- package/dist/esm/api/types/ErrorEllipse.mjs +1 -3
- package/dist/esm/api/types/ExecuteRequest.d.mts +1 -4
- package/dist/esm/api/types/ExecuteRequest.mjs +1 -3
- package/dist/esm/api/types/FieldClassificationInformation.d.mts +1 -4
- package/dist/esm/api/types/FieldClassificationInformation.mjs +1 -3
- package/dist/esm/api/types/FieldOfView.d.mts +2 -5
- package/dist/esm/api/types/FieldOfView.mjs +6 -3
- package/dist/esm/api/types/Fixed.d.mts +1 -5
- package/dist/esm/api/types/Fixed.mjs +1 -3
- package/dist/esm/api/types/Frequency.d.mts +1 -4
- package/dist/esm/api/types/Frequency.mjs +1 -3
- package/dist/esm/api/types/FrequencyRange.d.mts +1 -4
- package/dist/esm/api/types/FrequencyRange.mjs +1 -3
- package/dist/esm/api/types/Fuel.d.mts +1 -4
- package/dist/esm/api/types/Fuel.mjs +1 -3
- package/dist/esm/api/types/GeoDetails.d.mts +2 -5
- package/dist/esm/api/types/GeoDetails.mjs +1 -3
- package/dist/esm/api/types/GeoEllipse.d.mts +0 -3
- package/dist/esm/api/types/GeoEllipse.mjs +1 -3
- package/dist/esm/api/types/GeoEllipsoid.d.mts +0 -3
- package/dist/esm/api/types/GeoEllipsoid.mjs +1 -3
- package/dist/esm/api/types/GeoLine.d.mts +1 -4
- package/dist/esm/api/types/GeoLine.mjs +1 -3
- package/dist/esm/api/types/GeoPoint.d.mts +1 -4
- package/dist/esm/api/types/GeoPoint.mjs +1 -3
- package/dist/esm/api/types/GeoPolygon.d.mts +1 -4
- package/dist/esm/api/types/GeoPolygon.mjs +1 -3
- package/dist/esm/api/types/GeoPolygonPosition.d.mts +1 -4
- package/dist/esm/api/types/GeoPolygonPosition.mjs +1 -3
- package/dist/esm/api/types/GeoShape.d.mts +1 -4
- package/dist/esm/api/types/GeoShape.mjs +1 -3
- package/dist/esm/api/types/GoogleProtobufAny.d.mts +0 -3
- package/dist/esm/api/types/GoogleProtobufAny.mjs +1 -3
- package/dist/esm/api/types/GroupChild.d.mts +1 -5
- package/dist/esm/api/types/GroupChild.mjs +1 -3
- package/dist/esm/api/types/GroupDetails.d.mts +1 -4
- package/dist/esm/api/types/GroupDetails.mjs +1 -3
- package/dist/esm/api/types/GroupParent.d.mts +1 -5
- package/dist/esm/api/types/GroupParent.mjs +1 -3
- package/dist/esm/api/types/Health.d.mts +5 -12
- package/dist/esm/api/types/Health.mjs +3 -3
- package/dist/esm/api/types/HeartbeatObject.d.mts +0 -3
- package/dist/esm/api/types/HeartbeatObject.mjs +1 -3
- package/dist/esm/api/types/HighValueTarget.d.mts +1 -4
- package/dist/esm/api/types/HighValueTarget.mjs +1 -3
- package/dist/esm/api/types/HighValueTargetMatch.d.mts +0 -3
- package/dist/esm/api/types/HighValueTargetMatch.mjs +1 -3
- package/dist/esm/api/types/Indicators.d.mts +0 -3
- package/dist/esm/api/types/Indicators.mjs +1 -3
- package/dist/esm/api/types/LineOfBearing.d.mts +1 -4
- package/dist/esm/api/types/LineOfBearing.mjs +1 -3
- package/dist/esm/api/types/LinearRing.d.mts +1 -4
- package/dist/esm/api/types/LinearRing.mjs +1 -3
- package/dist/esm/api/types/ListResponse.d.mts +1 -4
- package/dist/esm/api/types/ListResponse.mjs +1 -3
- package/dist/esm/api/types/Lla.d.mts +1 -4
- package/dist/esm/api/types/Lla.mjs +6 -3
- package/dist/esm/api/types/Location.d.mts +1 -4
- package/dist/esm/api/types/Location.mjs +1 -3
- package/dist/esm/api/types/LocationUncertainty.d.mts +1 -4
- package/dist/esm/api/types/LocationUncertainty.mjs +1 -3
- package/dist/esm/api/types/MeanKeplerianElements.d.mts +0 -3
- package/dist/esm/api/types/MeanKeplerianElements.mjs +1 -3
- package/dist/esm/api/types/Measurement.d.mts +0 -3
- package/dist/esm/api/types/Measurement.mjs +1 -3
- package/dist/esm/api/types/Media.d.mts +1 -4
- package/dist/esm/api/types/Media.mjs +1 -3
- package/dist/esm/api/types/MediaItem.d.mts +1 -4
- package/dist/esm/api/types/MediaItem.mjs +1 -3
- package/dist/esm/api/types/MergedFrom.d.mts +1 -5
- package/dist/esm/api/types/MergedFrom.mjs +1 -3
- package/dist/esm/api/types/MilStd2525C.d.mts +0 -3
- package/dist/esm/api/types/MilStd2525C.mjs +1 -3
- package/dist/esm/api/types/MilView.d.mts +3 -6
- package/dist/esm/api/types/MilView.mjs +1 -3
- package/dist/esm/api/types/Mode5.d.mts +2 -7
- package/dist/esm/api/types/Mode5.mjs +2 -3
- package/dist/esm/api/types/ModeS.d.mts +0 -3
- package/dist/esm/api/types/ModeS.mjs +1 -3
- package/dist/esm/api/types/NonPrimaryMembership.d.mts +1 -5
- package/dist/esm/api/types/NonPrimaryMembership.mjs +1 -3
- package/dist/esm/api/types/Ontology.d.mts +2 -7
- package/dist/esm/api/types/Ontology.mjs +2 -3
- package/dist/esm/api/types/Orbit.d.mts +1 -4
- package/dist/esm/api/types/Orbit.mjs +1 -3
- package/dist/esm/api/types/OrbitMeanElements.d.mts +1 -4
- package/dist/esm/api/types/OrbitMeanElements.mjs +1 -3
- package/dist/esm/api/types/OrbitMeanElementsMetadata.d.mts +3 -8
- package/dist/esm/api/types/OrbitMeanElementsMetadata.mjs +2 -3
- package/dist/esm/api/types/Override.d.mts +4 -9
- package/dist/esm/api/types/Override.mjs +6 -3
- package/dist/esm/api/types/Overrides.d.mts +1 -4
- package/dist/esm/api/types/Overrides.mjs +1 -3
- package/dist/esm/api/types/Owner.d.mts +0 -3
- package/dist/esm/api/types/Owner.mjs +1 -3
- package/dist/esm/api/types/PathMetadata.d.mts +1 -4
- package/dist/esm/api/types/PathMetadata.mjs +1 -3
- package/dist/esm/api/types/Payload.d.mts +1 -4
- package/dist/esm/api/types/Payload.mjs +1 -3
- package/dist/esm/api/types/PayloadConfiguration.d.mts +3 -8
- package/dist/esm/api/types/PayloadConfiguration.mjs +2 -3
- package/dist/esm/api/types/Payloads.d.mts +1 -4
- package/dist/esm/api/types/Payloads.mjs +1 -3
- package/dist/esm/api/types/Pose.d.mts +1 -4
- package/dist/esm/api/types/Pose.mjs +1 -3
- package/dist/esm/api/types/Position.d.mts +0 -3
- package/dist/esm/api/types/Position.mjs +1 -3
- package/dist/esm/api/types/PowerLevel.d.mts +0 -3
- package/dist/esm/api/types/PowerLevel.mjs +1 -3
- package/dist/esm/api/types/PowerSource.d.mts +5 -12
- package/dist/esm/api/types/PowerSource.mjs +3 -3
- package/dist/esm/api/types/PowerState.d.mts +1 -4
- package/dist/esm/api/types/PowerState.mjs +1 -3
- package/dist/esm/api/types/PrimaryCorrelation.d.mts +0 -3
- package/dist/esm/api/types/PrimaryCorrelation.mjs +1 -3
- package/dist/esm/api/types/PrimaryMembership.d.mts +1 -5
- package/dist/esm/api/types/PrimaryMembership.mjs +1 -3
- package/dist/esm/api/types/Principal.d.mts +1 -4
- package/dist/esm/api/types/Principal.mjs +1 -3
- package/dist/esm/api/types/ProjectedFrustum.d.mts +1 -4
- package/dist/esm/api/types/ProjectedFrustum.mjs +1 -3
- package/dist/esm/api/types/Provenance.d.mts +0 -3
- package/dist/esm/api/types/Provenance.mjs +1 -3
- package/dist/esm/api/types/PulseRepetitionInterval.d.mts +1 -4
- package/dist/esm/api/types/PulseRepetitionInterval.mjs +1 -3
- package/dist/esm/api/types/Quaternion.d.mts +0 -3
- package/dist/esm/api/types/Quaternion.mjs +1 -3
- package/dist/esm/api/types/RangeRings.d.mts +1 -4
- package/dist/esm/api/types/RangeRings.mjs +1 -3
- package/dist/esm/api/types/Relations.d.mts +1 -4
- package/dist/esm/api/types/Relations.mjs +1 -3
- package/dist/esm/api/types/Relationship.d.mts +1 -4
- package/dist/esm/api/types/Relationship.mjs +1 -3
- package/dist/esm/api/types/RelationshipType.d.mts +1 -4
- package/dist/esm/api/types/RelationshipType.mjs +1 -3
- package/dist/esm/api/types/Relationships.d.mts +1 -4
- package/dist/esm/api/types/Relationships.mjs +1 -3
- package/dist/esm/api/types/Replication.d.mts +0 -3
- package/dist/esm/api/types/Replication.mjs +1 -3
- package/dist/esm/api/types/RfConfiguration.d.mts +1 -4
- package/dist/esm/api/types/RfConfiguration.mjs +1 -3
- package/dist/esm/api/types/RouteDetails.d.mts +0 -3
- package/dist/esm/api/types/RouteDetails.mjs +1 -3
- package/dist/esm/api/types/ScanCharacteristics.d.mts +1 -4
- package/dist/esm/api/types/ScanCharacteristics.mjs +1 -3
- package/dist/esm/api/types/Schedule.d.mts +3 -8
- package/dist/esm/api/types/Schedule.mjs +2 -3
- package/dist/esm/api/types/Schedules.d.mts +1 -4
- package/dist/esm/api/types/Schedules.mjs +1 -3
- package/dist/esm/api/types/SecondaryCorrelation.d.mts +1 -4
- package/dist/esm/api/types/SecondaryCorrelation.mjs +1 -3
- package/dist/esm/api/types/Sensor.d.mts +4 -9
- package/dist/esm/api/types/Sensor.mjs +2 -3
- package/dist/esm/api/types/Sensors.d.mts +1 -4
- package/dist/esm/api/types/Sensors.mjs +1 -3
- package/dist/esm/api/types/Signal.d.mts +1 -4
- package/dist/esm/api/types/Signal.mjs +1 -3
- package/dist/esm/api/types/Status.d.mts +8 -11
- package/dist/esm/api/types/Status.mjs +1 -3
- package/dist/esm/api/types/Supplies.d.mts +1 -4
- package/dist/esm/api/types/Supplies.mjs +1 -3
- package/dist/esm/api/types/Symbology.d.mts +1 -4
- package/dist/esm/api/types/Symbology.mjs +1 -3
- package/dist/esm/api/types/System.d.mts +0 -3
- package/dist/esm/api/types/System.mjs +1 -3
- package/dist/esm/api/types/TMat2.d.mts +0 -3
- package/dist/esm/api/types/TMat2.mjs +1 -3
- package/dist/esm/api/types/TMat3.d.mts +0 -3
- package/dist/esm/api/types/TMat3.mjs +1 -3
- package/dist/esm/api/types/TargetPriority.d.mts +1 -4
- package/dist/esm/api/types/TargetPriority.mjs +1 -3
- package/dist/esm/api/types/Task.d.mts +1 -4
- package/dist/esm/api/types/Task.mjs +1 -3
- package/dist/esm/api/types/TaskCatalog.d.mts +1 -4
- package/dist/esm/api/types/TaskCatalog.mjs +1 -3
- package/dist/esm/api/types/TaskDefinition.d.mts +0 -3
- package/dist/esm/api/types/TaskDefinition.mjs +1 -3
- package/dist/esm/api/types/TaskEntity.d.mts +1 -4
- package/dist/esm/api/types/TaskEntity.mjs +1 -3
- package/dist/esm/api/types/TaskError.d.mts +3 -8
- package/dist/esm/api/types/TaskError.mjs +2 -3
- package/dist/esm/api/types/TaskQueryResults.d.mts +1 -4
- package/dist/esm/api/types/TaskQueryResults.mjs +1 -3
- package/dist/esm/api/types/TaskStatus.d.mts +3 -8
- package/dist/esm/api/types/TaskStatus.mjs +2 -3
- package/dist/esm/api/types/TaskVersion.d.mts +0 -3
- package/dist/esm/api/types/TaskVersion.mjs +1 -3
- package/dist/esm/api/types/Team.d.mts +1 -4
- package/dist/esm/api/types/Team.mjs +1 -3
- package/dist/esm/api/types/Threat.d.mts +0 -3
- package/dist/esm/api/types/Threat.mjs +1 -3
- package/dist/esm/api/types/Timestamp.d.mts +0 -3
- package/dist/esm/api/types/Timestamp.mjs +1 -3
- package/dist/esm/api/types/TleParameters.d.mts +0 -3
- package/dist/esm/api/types/TleParameters.mjs +1 -3
- package/dist/esm/api/types/Tracked.d.mts +1 -4
- package/dist/esm/api/types/Tracked.mjs +1 -3
- package/dist/esm/api/types/TrackedBy.d.mts +1 -4
- package/dist/esm/api/types/TrackedBy.mjs +1 -3
- package/dist/esm/api/types/TransponderCodes.d.mts +3 -8
- package/dist/esm/api/types/TransponderCodes.mjs +2 -3
- package/dist/esm/api/types/UInt32Range.d.mts +0 -3
- package/dist/esm/api/types/UInt32Range.mjs +1 -3
- package/dist/esm/api/types/User.d.mts +0 -3
- package/dist/esm/api/types/User.mjs +1 -3
- package/dist/esm/api/types/VisualDetails.d.mts +1 -4
- package/dist/esm/api/types/VisualDetails.mjs +1 -3
- package/dist/esm/api/types/index.d.mts +114 -114
- package/dist/esm/api/types/index.mjs +114 -114
- package/dist/esm/core/auth/AuthProvider.d.mts +1 -1
- package/dist/esm/core/auth/BasicAuth.mjs +2 -1
- package/dist/esm/core/fetcher/APIResponse.d.mts +1 -1
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +1 -1
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
- package/dist/esm/core/fetcher/Fetcher.d.mts +2 -2
- package/dist/esm/core/fetcher/Fetcher.mjs +2 -1
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +1 -1
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +2 -1
- package/dist/esm/core/fetcher/getResponseBody.mjs +3 -3
- package/dist/esm/core/fetcher/makeRequest.mjs +2 -2
- package/dist/esm/core/fetcher/requestWithRetries.mjs +3 -3
- package/dist/esm/core/file/file.d.mts +6 -1
- package/dist/esm/core/file/file.mjs +24 -7
- package/dist/esm/core/index.d.mts +5 -5
- package/dist/esm/core/index.mjs +5 -5
- package/dist/esm/core/pagination/Page.d.mts +1 -1
- package/dist/esm/core/pagination/Pageable.d.mts +1 -1
- package/dist/esm/core/url/encodePathParam.d.mts +1 -0
- package/dist/esm/core/url/encodePathParam.mjs +18 -0
- package/dist/esm/core/url/index.d.mts +1 -0
- package/dist/esm/core/url/index.mjs +1 -0
- package/dist/esm/core/url/join.mjs +3 -3
- package/dist/esm/environments.d.mts +0 -3
- package/dist/esm/environments.mjs +1 -3
- package/dist/esm/errors/LatticeError.d.mts +1 -4
- package/dist/esm/errors/LatticeError.mjs +2 -4
- package/dist/esm/errors/LatticeTimeoutError.d.mts +0 -3
- package/dist/esm/errors/LatticeTimeoutError.mjs +1 -3
- package/dist/esm/index.d.mts +2 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +5 -3
- package/reference.md +105 -107
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ import { LatticeClient } from "@anduril-industries/lattice-sdk";
|
|
|
39
39
|
|
|
40
40
|
const client = new LatticeClient({ token: "YOUR_TOKEN" });
|
|
41
41
|
await client.entities.longPollEntityEvents({
|
|
42
|
-
sessionToken: "sessionToken"
|
|
42
|
+
sessionToken: "sessionToken"
|
|
43
43
|
});
|
|
44
44
|
```
|
|
45
45
|
|
|
@@ -91,39 +91,36 @@ await client.objects.uploadObject(new File(['binary data'], 'file.mp3'), ...);
|
|
|
91
91
|
await client.objects.uploadObject(new ArrayBuffer(8), ...);
|
|
92
92
|
await client.objects.uploadObject(new Uint8Array([0, 1, 2]), ...);
|
|
93
93
|
```
|
|
94
|
-
|
|
95
94
|
The client accepts a variety of types for file upload parameters:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
- Buffered types: `Buffer`, `Blob`, `File`, `ArrayBuffer`, `ArrayBufferView`, and `Uint8Array`
|
|
95
|
+
* Stream types: `fs.ReadStream`, `stream.Readable`, and `ReadableStream`
|
|
96
|
+
* Buffered types: `Buffer`, `Blob`, `File`, `ArrayBuffer`, `ArrayBufferView`, and `Uint8Array`
|
|
99
97
|
|
|
100
98
|
### Metadata
|
|
101
99
|
|
|
102
100
|
You can configure metadata when uploading a file:
|
|
103
|
-
|
|
104
101
|
```typescript
|
|
105
102
|
const file: Uploadable.WithMetadata = {
|
|
106
103
|
data: createReadStream("path/to/file"),
|
|
107
|
-
filename: "my-file",
|
|
104
|
+
filename: "my-file", // optional
|
|
108
105
|
contentType: "audio/mpeg", // optional
|
|
109
|
-
contentLength: 1949,
|
|
106
|
+
contentLength: 1949, // optional
|
|
110
107
|
};
|
|
111
108
|
```
|
|
112
109
|
|
|
113
110
|
Alternatively, you can upload a file directly from a file path:
|
|
114
|
-
|
|
115
111
|
```typescript
|
|
116
|
-
const file: Uploadable.FromPath = {
|
|
112
|
+
const file : Uploadable.FromPath = {
|
|
117
113
|
path: "path/to/file",
|
|
118
|
-
filename: "my-file",
|
|
119
|
-
contentType: "audio/mpeg",
|
|
120
|
-
contentLength: 1949,
|
|
114
|
+
filename: "my-file", // optional
|
|
115
|
+
contentType: "audio/mpeg", // optional
|
|
116
|
+
contentLength: 1949, // optional
|
|
121
117
|
};
|
|
122
118
|
```
|
|
123
119
|
|
|
124
120
|
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
121
|
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
122
|
|
|
123
|
+
|
|
127
124
|
## Binary Response
|
|
128
125
|
|
|
129
126
|
You can consume binary data from endpoints using the `BinaryResponse` type which lets you choose how to consume the data:
|
|
@@ -138,7 +135,6 @@ const stream: ReadableStream<Uint8Array> = response.stream();
|
|
|
138
135
|
// If you want to check if the response body has been used, you can use the following property.
|
|
139
136
|
const bodyUsed = response.bodyUsed;
|
|
140
137
|
```
|
|
141
|
-
|
|
142
138
|
<details>
|
|
143
139
|
<summary>Save binary response to a file</summary>
|
|
144
140
|
|
|
@@ -526,7 +522,7 @@ const response = await client.objects.listObjects({
|
|
|
526
522
|
prefix: "prefix",
|
|
527
523
|
sinceTimestamp: "2024-01-15T09:30:00Z",
|
|
528
524
|
pageToken: "pageToken",
|
|
529
|
-
allObjectsInMesh: true
|
|
525
|
+
allObjectsInMesh: true
|
|
530
526
|
});
|
|
531
527
|
for await (const item of response) {
|
|
532
528
|
console.log(item);
|
|
@@ -537,7 +533,7 @@ let page = await client.objects.listObjects({
|
|
|
537
533
|
prefix: "prefix",
|
|
538
534
|
sinceTimestamp: "2024-01-15T09:30:00Z",
|
|
539
535
|
pageToken: "pageToken",
|
|
540
|
-
allObjectsInMesh: true
|
|
536
|
+
allObjectsInMesh: true
|
|
541
537
|
});
|
|
542
538
|
while (page.hasNextPage()) {
|
|
543
539
|
page = page.getNextPage();
|
|
@@ -626,8 +622,11 @@ console.log(rawResponse.headers['X-My-Header']);
|
|
|
626
622
|
|
|
627
623
|
### Runtime Compatibility
|
|
628
624
|
|
|
625
|
+
|
|
629
626
|
The SDK works in the following runtimes:
|
|
630
627
|
|
|
628
|
+
|
|
629
|
+
|
|
631
630
|
- Node.js 18+
|
|
632
631
|
- Vercel
|
|
633
632
|
- Cloudflare Workers
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type * as core from "./core/index.js";
|
|
2
|
+
import type * as environments from "./environments.js";
|
|
3
|
+
export interface BaseClientOptions {
|
|
4
|
+
environment?: core.Supplier<environments.LatticeEnvironment | string>;
|
|
5
|
+
/** Specify a custom URL to connect the client to. */
|
|
6
|
+
baseUrl?: core.Supplier<string>;
|
|
7
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
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
|
+
}
|
|
15
|
+
export interface BaseRequestOptions {
|
|
16
|
+
/** The maximum time to wait for a response in seconds. */
|
|
17
|
+
timeoutInSeconds?: number;
|
|
18
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
19
|
+
maxRetries?: number;
|
|
20
|
+
/** A hook to abort the request. */
|
|
21
|
+
abortSignal?: AbortSignal;
|
|
22
|
+
/** Additional query string parameters to include in the request. */
|
|
23
|
+
queryParams?: Record<string, unknown>;
|
|
24
|
+
/** Additional headers to include in the request. */
|
|
25
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
26
|
+
}
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -1,31 +1,11 @@
|
|
|
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
1
|
import { Entities } from "./api/resources/entities/client/Client.js";
|
|
7
|
-
import { Tasks } from "./api/resources/tasks/client/Client.js";
|
|
8
2
|
import { Objects } from "./api/resources/objects/client/Client.js";
|
|
3
|
+
import { Tasks } from "./api/resources/tasks/client/Client.js";
|
|
4
|
+
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
|
|
9
5
|
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>;
|
|
6
|
+
interface Options extends BaseClientOptions {
|
|
17
7
|
}
|
|
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>;
|
|
8
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
29
9
|
}
|
|
30
10
|
}
|
|
31
11
|
export declare class LatticeClient {
|
package/dist/cjs/Client.js
CHANGED
|
@@ -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);
|
|
@@ -37,18 +35,18 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
37
35
|
})();
|
|
38
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
37
|
exports.LatticeClient = void 0;
|
|
40
|
-
const core = __importStar(require("./core/index.js"));
|
|
41
|
-
const headers_js_1 = require("./core/headers.js");
|
|
42
38
|
const Client_js_1 = require("./api/resources/entities/client/Client.js");
|
|
43
|
-
const Client_js_2 = require("./api/resources/
|
|
44
|
-
const Client_js_3 = require("./api/resources/
|
|
39
|
+
const Client_js_2 = require("./api/resources/objects/client/Client.js");
|
|
40
|
+
const Client_js_3 = require("./api/resources/tasks/client/Client.js");
|
|
41
|
+
const headers_js_1 = require("./core/headers.js");
|
|
42
|
+
const core = __importStar(require("./core/index.js"));
|
|
45
43
|
class LatticeClient {
|
|
46
44
|
constructor(_options = {}) {
|
|
47
45
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
48
46
|
"X-Fern-Language": "JavaScript",
|
|
49
47
|
"X-Fern-SDK-Name": "@anduril-industries/lattice-sdk",
|
|
50
|
-
"X-Fern-SDK-Version": "
|
|
51
|
-
"User-Agent": "@anduril-industries/lattice-sdk/
|
|
48
|
+
"X-Fern-SDK-Version": "3.0.0",
|
|
49
|
+
"User-Agent": "@anduril-industries/lattice-sdk/3.0.0",
|
|
52
50
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
53
51
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
54
52
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -59,11 +57,11 @@ class LatticeClient {
|
|
|
59
57
|
}
|
|
60
58
|
get tasks() {
|
|
61
59
|
var _a;
|
|
62
|
-
return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new
|
|
60
|
+
return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_js_3.Tasks(this._options)));
|
|
63
61
|
}
|
|
64
62
|
get objects() {
|
|
65
63
|
var _a;
|
|
66
|
-
return ((_a = this._objects) !== null && _a !== void 0 ? _a : (this._objects = new
|
|
64
|
+
return ((_a = this._objects) !== null && _a !== void 0 ? _a : (this._objects = new Client_js_2.Objects(this._options)));
|
|
67
65
|
}
|
|
68
66
|
}
|
|
69
67
|
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);
|
|
@@ -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);
|
|
@@ -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);
|
|
@@ -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);
|
|
@@ -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);
|
|
@@ -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 RequestTimeoutError 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);
|
|
@@ -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 TooManyRequestsError 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);
|
|
@@ -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 UnauthorizedError 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);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from "./BadRequestError.js";
|
|
2
|
-
export * from "./
|
|
2
|
+
export * from "./ContentTooLargeError.js";
|
|
3
|
+
export * from "./InsufficientStorageError.js";
|
|
4
|
+
export * from "./InternalServerError.js";
|
|
3
5
|
export * from "./NotFoundError.js";
|
|
4
6
|
export * from "./RequestTimeoutError.js";
|
|
5
7
|
export * from "./TooManyRequestsError.js";
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./ContentTooLargeError.js";
|
|
8
|
-
export * from "./InsufficientStorageError.js";
|
|
8
|
+
export * from "./UnauthorizedError.js";
|
|
@@ -15,10 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./BadRequestError.js"), exports);
|
|
18
|
-
__exportStar(require("./
|
|
18
|
+
__exportStar(require("./ContentTooLargeError.js"), exports);
|
|
19
|
+
__exportStar(require("./InsufficientStorageError.js"), exports);
|
|
20
|
+
__exportStar(require("./InternalServerError.js"), exports);
|
|
19
21
|
__exportStar(require("./NotFoundError.js"), exports);
|
|
20
22
|
__exportStar(require("./RequestTimeoutError.js"), exports);
|
|
21
23
|
__exportStar(require("./TooManyRequestsError.js"), exports);
|
|
22
|
-
__exportStar(require("./
|
|
23
|
-
__exportStar(require("./ContentTooLargeError.js"), exports);
|
|
24
|
-
__exportStar(require("./InsufficientStorageError.js"), exports);
|
|
24
|
+
__exportStar(require("./UnauthorizedError.js"), exports);
|
package/dist/cjs/api/index.d.ts
CHANGED
package/dist/cjs/api/index.js
CHANGED
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./errors/index.js"), exports);
|
|
17
18
|
__exportStar(require("./resources/index.js"), exports);
|
|
18
19
|
__exportStar(require("./types/index.js"), exports);
|
|
19
|
-
__exportStar(require("./errors/index.js"), exports);
|
|
@@ -1,29 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as environments from "../../../../environments.js";
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
5
2
|
import * as core from "../../../../core/index.js";
|
|
6
3
|
import * as Lattice from "../../../index.js";
|
|
7
4
|
export declare namespace Entities {
|
|
8
|
-
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.LatticeEnvironment | string>;
|
|
10
|
-
/** Specify a custom URL to connect the client to. */
|
|
11
|
-
baseUrl?: core.Supplier<string>;
|
|
12
|
-
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
-
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
5
|
+
interface Options extends BaseClientOptions {
|
|
15
6
|
}
|
|
16
|
-
interface RequestOptions {
|
|
17
|
-
/** The maximum time to wait for a response in seconds. */
|
|
18
|
-
timeoutInSeconds?: number;
|
|
19
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
20
|
-
maxRetries?: number;
|
|
21
|
-
/** A hook to abort the request. */
|
|
22
|
-
abortSignal?: AbortSignal;
|
|
23
|
-
/** Additional query string parameters to include in the request. */
|
|
24
|
-
queryParams?: Record<string, unknown>;
|
|
25
|
-
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
27
8
|
}
|
|
28
9
|
}
|
|
29
10
|
/**
|
|
@@ -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,11 +44,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
46
44
|
};
|
|
47
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
46
|
exports.Entities = void 0;
|
|
49
|
-
const environments = __importStar(require("../../../../environments.js"));
|
|
50
|
-
const core = __importStar(require("../../../../core/index.js"));
|
|
51
|
-
const Lattice = __importStar(require("../../../index.js"));
|
|
52
47
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
48
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
49
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
53
50
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
51
|
+
const Lattice = __importStar(require("../../../index.js"));
|
|
54
52
|
/**
|
|
55
53
|
* The Entities API
|
|
56
54
|
*/
|
|
@@ -81,8 +79,8 @@ class Entities {
|
|
|
81
79
|
}
|
|
82
80
|
__publishEntity(request, requestOptions) {
|
|
83
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
-
var _a, _b, _c;
|
|
85
|
-
|
|
82
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
83
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
86
84
|
const _response = yield core.fetcher({
|
|
87
85
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LatticeEnvironment.Default, "api/v1/entities"),
|
|
88
86
|
method: "PUT",
|
|
@@ -91,8 +89,8 @@ class Entities {
|
|
|
91
89
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
92
90
|
requestType: "json",
|
|
93
91
|
body: request,
|
|
94
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
95
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
92
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
93
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
96
94
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
97
95
|
});
|
|
98
96
|
if (_response.ok) {
|
|
@@ -145,15 +143,15 @@ class Entities {
|
|
|
145
143
|
}
|
|
146
144
|
__getEntity(entityId, requestOptions) {
|
|
147
145
|
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
-
var _a, _b, _c;
|
|
149
|
-
|
|
146
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
147
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
150
148
|
const _response = yield core.fetcher({
|
|
151
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LatticeEnvironment.Default, `api/v1/entities/${
|
|
149
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LatticeEnvironment.Default, `api/v1/entities/${core.url.encodePathParam(entityId)}`),
|
|
152
150
|
method: "GET",
|
|
153
151
|
headers: _headers,
|
|
154
152
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
155
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
156
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
153
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
154
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
157
155
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
158
156
|
});
|
|
159
157
|
if (_response.ok) {
|
|
@@ -218,18 +216,18 @@ class Entities {
|
|
|
218
216
|
}
|
|
219
217
|
__overrideEntity(entityId_1, fieldPath_1) {
|
|
220
218
|
return __awaiter(this, arguments, void 0, function* (entityId, fieldPath, request = {}, requestOptions) {
|
|
221
|
-
var _a, _b, _c;
|
|
222
|
-
|
|
219
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
220
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
223
221
|
const _response = yield core.fetcher({
|
|
224
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LatticeEnvironment.Default, `api/v1/entities/${
|
|
222
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LatticeEnvironment.Default, `api/v1/entities/${core.url.encodePathParam(entityId)}/override/${core.url.encodePathParam(fieldPath)}`),
|
|
225
223
|
method: "PUT",
|
|
226
224
|
headers: _headers,
|
|
227
225
|
contentType: "application/json",
|
|
228
226
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
229
227
|
requestType: "json",
|
|
230
228
|
body: request,
|
|
231
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
232
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
229
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
230
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
233
231
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
234
232
|
});
|
|
235
233
|
if (_response.ok) {
|
|
@@ -287,15 +285,15 @@ class Entities {
|
|
|
287
285
|
}
|
|
288
286
|
__removeEntityOverride(entityId, fieldPath, requestOptions) {
|
|
289
287
|
return __awaiter(this, void 0, void 0, function* () {
|
|
290
|
-
var _a, _b, _c;
|
|
291
|
-
|
|
288
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
289
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
292
290
|
const _response = yield core.fetcher({
|
|
293
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LatticeEnvironment.Default, `api/v1/entities/${
|
|
291
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LatticeEnvironment.Default, `api/v1/entities/${core.url.encodePathParam(entityId)}/override/${core.url.encodePathParam(fieldPath)}`),
|
|
294
292
|
method: "DELETE",
|
|
295
293
|
headers: _headers,
|
|
296
294
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
297
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
298
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
295
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
296
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
299
297
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
300
298
|
});
|
|
301
299
|
if (_response.ok) {
|
|
@@ -364,8 +362,8 @@ class Entities {
|
|
|
364
362
|
}
|
|
365
363
|
__longPollEntityEvents(request, requestOptions) {
|
|
366
364
|
return __awaiter(this, void 0, void 0, function* () {
|
|
367
|
-
var _a, _b, _c;
|
|
368
|
-
|
|
365
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
366
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
369
367
|
const _response = yield core.fetcher({
|
|
370
368
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LatticeEnvironment.Default, "api/v1/entities/events"),
|
|
371
369
|
method: "POST",
|
|
@@ -374,8 +372,8 @@ class Entities {
|
|
|
374
372
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
375
373
|
requestType: "json",
|
|
376
374
|
body: request,
|
|
377
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
378
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
375
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
376
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
379
377
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
380
378
|
});
|
|
381
379
|
if (_response.ok) {
|
|
@@ -426,8 +424,8 @@ class Entities {
|
|
|
426
424
|
}
|
|
427
425
|
__streamEntities() {
|
|
428
426
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
429
|
-
var _a, _b, _c;
|
|
430
|
-
|
|
427
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
428
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
431
429
|
const _response = yield core.fetcher({
|
|
432
430
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LatticeEnvironment.Default, "api/v1/entities/stream"),
|
|
433
431
|
method: "POST",
|
|
@@ -437,8 +435,8 @@ class Entities {
|
|
|
437
435
|
requestType: "json",
|
|
438
436
|
body: request,
|
|
439
437
|
responseType: "sse",
|
|
440
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
441
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
438
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
439
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
442
440
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
443
441
|
});
|
|
444
442
|
if (_response.ok) {
|