@lusor/sdk 0.0.0-stage → 1.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/CHANGELOG.md +27 -0
- package/LICENSE +21 -0
- package/LICENSE-APACHE-2.0.txt +177 -0
- package/README.md +108 -2
- package/THIRD_PARTY_NOTICES.md +21 -0
- package/dist/BaseClient.d.ts +54 -0
- package/dist/BaseClient.js +43 -0
- package/dist/Client.d.ts +68 -0
- package/dist/Client.js +105 -0
- package/dist/api/errors/BadGatewayError.d.ts +7 -0
- package/dist/api/errors/BadGatewayError.js +17 -0
- package/dist/api/errors/BadRequestError.d.ts +5 -0
- package/dist/api/errors/BadRequestError.js +17 -0
- package/dist/api/errors/ConflictError.d.ts +7 -0
- package/dist/api/errors/ConflictError.js +17 -0
- package/dist/api/errors/ForbiddenError.d.ts +7 -0
- package/dist/api/errors/ForbiddenError.js +17 -0
- package/dist/api/errors/GatewayTimeoutError.d.ts +7 -0
- package/dist/api/errors/GatewayTimeoutError.js +17 -0
- package/dist/api/errors/GoneError.d.ts +5 -0
- package/dist/api/errors/GoneError.js +17 -0
- package/dist/api/errors/InternalServerError.d.ts +7 -0
- package/dist/api/errors/InternalServerError.js +17 -0
- package/dist/api/errors/NotFoundError.d.ts +7 -0
- package/dist/api/errors/NotFoundError.js +17 -0
- package/dist/api/errors/PaymentRequiredError.d.ts +7 -0
- package/dist/api/errors/PaymentRequiredError.js +17 -0
- package/dist/api/errors/PreconditionFailedError.d.ts +7 -0
- package/dist/api/errors/PreconditionFailedError.js +17 -0
- package/dist/api/errors/ServiceUnavailableError.d.ts +7 -0
- package/dist/api/errors/ServiceUnavailableError.js +17 -0
- package/dist/api/errors/TooManyRequestsError.d.ts +7 -0
- package/dist/api/errors/TooManyRequestsError.js +17 -0
- package/dist/api/errors/UnauthorizedError.d.ts +7 -0
- package/dist/api/errors/UnauthorizedError.js +17 -0
- package/dist/api/errors/UnprocessableEntityError.d.ts +7 -0
- package/dist/api/errors/UnprocessableEntityError.js +17 -0
- package/dist/api/errors/index.d.ts +14 -0
- package/dist/api/errors/index.js +14 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.js +3 -0
- package/dist/api/resources/agents/client/Client.d.ts +209 -0
- package/dist/api/resources/agents/client/Client.js +596 -0
- package/dist/api/resources/agents/client/index.d.ts +1 -0
- package/dist/api/resources/agents/client/index.js +1 -0
- package/dist/api/resources/agents/client/requests/ArchiveAgentsRequest.d.ts +13 -0
- package/dist/api/resources/agents/client/requests/ArchiveAgentsRequest.js +2 -0
- package/dist/api/resources/agents/client/requests/CreateAgentInput.d.ts +53 -0
- package/dist/api/resources/agents/client/requests/CreateAgentInput.js +2 -0
- package/dist/api/resources/agents/client/requests/GetAgentsRequest.d.ts +16 -0
- package/dist/api/resources/agents/client/requests/GetAgentsRequest.js +2 -0
- package/dist/api/resources/agents/client/requests/ListAgentsRequest.d.ts +16 -0
- package/dist/api/resources/agents/client/requests/ListAgentsRequest.js +2 -0
- package/dist/api/resources/agents/client/requests/ListArchivedAgentsRequest.d.ts +12 -0
- package/dist/api/resources/agents/client/requests/ListArchivedAgentsRequest.js +2 -0
- package/dist/api/resources/agents/client/requests/RestoreAgentsRequest.d.ts +13 -0
- package/dist/api/resources/agents/client/requests/RestoreAgentsRequest.js +2 -0
- package/dist/api/resources/agents/client/requests/RetargetQueueAgentsRequest.d.ts +13 -0
- package/dist/api/resources/agents/client/requests/RetargetQueueAgentsRequest.js +2 -0
- package/dist/api/resources/agents/client/requests/UpdateAgentInput.d.ts +30 -0
- package/dist/api/resources/agents/client/requests/UpdateAgentInput.js +2 -0
- package/dist/api/resources/agents/client/requests/index.d.ts +8 -0
- package/dist/api/resources/agents/client/requests/index.js +1 -0
- package/dist/api/resources/agents/exports.d.ts +3 -0
- package/dist/api/resources/agents/exports.js +4 -0
- package/dist/api/resources/agents/index.d.ts +3 -0
- package/dist/api/resources/agents/index.js +3 -0
- package/dist/api/resources/agents/resources/index.d.ts +3 -0
- package/dist/api/resources/agents/resources/index.js +3 -0
- package/dist/api/resources/agents/resources/turns/client/Client.d.ts +100 -0
- package/dist/api/resources/agents/resources/turns/client/Client.js +240 -0
- package/dist/api/resources/agents/resources/turns/client/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/turns/client/index.js +1 -0
- package/dist/api/resources/agents/resources/turns/client/requests/CancelTurnsRequest.d.ts +16 -0
- package/dist/api/resources/agents/resources/turns/client/requests/CancelTurnsRequest.js +2 -0
- package/dist/api/resources/agents/resources/turns/client/requests/CreateAgentTurnInput.d.ts +23 -0
- package/dist/api/resources/agents/resources/turns/client/requests/CreateAgentTurnInput.js +2 -0
- package/dist/api/resources/agents/resources/turns/client/requests/ListTurnsRequest.d.ts +20 -0
- package/dist/api/resources/agents/resources/turns/client/requests/ListTurnsRequest.js +2 -0
- package/dist/api/resources/agents/resources/turns/client/requests/index.d.ts +3 -0
- package/dist/api/resources/agents/resources/turns/client/requests/index.js +1 -0
- package/dist/api/resources/agents/resources/turns/exports.d.ts +2 -0
- package/dist/api/resources/agents/resources/turns/exports.js +3 -0
- package/dist/api/resources/agents/resources/turns/index.d.ts +2 -0
- package/dist/api/resources/agents/resources/turns/index.js +2 -0
- package/dist/api/resources/agents/resources/turns/types/CancelTurnsResponse.d.ts +14 -0
- package/dist/api/resources/agents/resources/turns/types/CancelTurnsResponse.js +2 -0
- package/dist/api/resources/agents/resources/turns/types/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/turns/types/index.js +1 -0
- package/dist/api/resources/agents/types/RetargetQueueAgentsResponse.d.ts +4 -0
- package/dist/api/resources/agents/types/RetargetQueueAgentsResponse.js +2 -0
- package/dist/api/resources/agents/types/index.d.ts +1 -0
- package/dist/api/resources/agents/types/index.js +1 -0
- package/dist/api/resources/appInstalls/client/Client.d.ts +216 -0
- package/dist/api/resources/appInstalls/client/Client.js +591 -0
- package/dist/api/resources/appInstalls/client/index.d.ts +1 -0
- package/dist/api/resources/appInstalls/client/index.js +1 -0
- package/dist/api/resources/appInstalls/client/requests/AppInstallBatchInput.d.ts +16 -0
- package/dist/api/resources/appInstalls/client/requests/AppInstallBatchInput.js +2 -0
- package/dist/api/resources/appInstalls/client/requests/AppStoreInstallInput.d.ts +21 -0
- package/dist/api/resources/appInstalls/client/requests/AppStoreInstallInput.js +2 -0
- package/dist/api/resources/appInstalls/client/requests/CancelBatchAppInstallsRequest.d.ts +15 -0
- package/dist/api/resources/appInstalls/client/requests/CancelBatchAppInstallsRequest.js +2 -0
- package/dist/api/resources/appInstalls/client/requests/CreateAppInstallsRequest.d.ts +19 -0
- package/dist/api/resources/appInstalls/client/requests/CreateAppInstallsRequest.js +2 -0
- package/dist/api/resources/appInstalls/client/requests/EventsAppInstallsRequest.d.ts +13 -0
- package/dist/api/resources/appInstalls/client/requests/EventsAppInstallsRequest.js +2 -0
- package/dist/api/resources/appInstalls/client/requests/GetActiveBatchAppInstallsRequest.d.ts +13 -0
- package/dist/api/resources/appInstalls/client/requests/GetActiveBatchAppInstallsRequest.js +2 -0
- package/dist/api/resources/appInstalls/client/requests/ListAppInstallsRequest.d.ts +15 -0
- package/dist/api/resources/appInstalls/client/requests/ListAppInstallsRequest.js +2 -0
- package/dist/api/resources/appInstalls/client/requests/UninstallAppInstallsRequest.d.ts +15 -0
- package/dist/api/resources/appInstalls/client/requests/UninstallAppInstallsRequest.js +2 -0
- package/dist/api/resources/appInstalls/client/requests/index.d.ts +8 -0
- package/dist/api/resources/appInstalls/client/requests/index.js +1 -0
- package/dist/api/resources/appInstalls/exports.d.ts +2 -0
- package/dist/api/resources/appInstalls/exports.js +3 -0
- package/dist/api/resources/appInstalls/index.d.ts +2 -0
- package/dist/api/resources/appInstalls/index.js +2 -0
- package/dist/api/resources/appInstalls/types/CancelBatchAppInstallsResponse.d.ts +3 -0
- package/dist/api/resources/appInstalls/types/CancelBatchAppInstallsResponse.js +2 -0
- package/dist/api/resources/appInstalls/types/CreateAppInstallsResponse.d.ts +4 -0
- package/dist/api/resources/appInstalls/types/CreateAppInstallsResponse.js +2 -0
- package/dist/api/resources/appInstalls/types/ListAppInstallsResponse.d.ts +4 -0
- package/dist/api/resources/appInstalls/types/ListAppInstallsResponse.js +2 -0
- package/dist/api/resources/appInstalls/types/UninstallAppInstallsResponse.d.ts +4 -0
- package/dist/api/resources/appInstalls/types/UninstallAppInstallsResponse.js +2 -0
- package/dist/api/resources/appInstalls/types/index.d.ts +4 -0
- package/dist/api/resources/appInstalls/types/index.js +4 -0
- package/dist/api/resources/catalog/client/Client.d.ts +46 -0
- package/dist/api/resources/catalog/client/Client.js +144 -0
- package/dist/api/resources/catalog/client/index.d.ts +1 -0
- package/dist/api/resources/catalog/client/index.js +1 -0
- package/dist/api/resources/catalog/client/requests/GetAppIconCatalogRequest.d.ts +16 -0
- package/dist/api/resources/catalog/client/requests/GetAppIconCatalogRequest.js +2 -0
- package/dist/api/resources/catalog/client/requests/ListAppsCatalogRequest.d.ts +12 -0
- package/dist/api/resources/catalog/client/requests/ListAppsCatalogRequest.js +2 -0
- package/dist/api/resources/catalog/client/requests/index.d.ts +2 -0
- package/dist/api/resources/catalog/client/requests/index.js +1 -0
- package/dist/api/resources/catalog/exports.d.ts +2 -0
- package/dist/api/resources/catalog/exports.js +3 -0
- package/dist/api/resources/catalog/index.d.ts +2 -0
- package/dist/api/resources/catalog/index.js +2 -0
- package/dist/api/resources/catalog/types/ListAppsCatalogResponse.d.ts +4 -0
- package/dist/api/resources/catalog/types/ListAppsCatalogResponse.js +2 -0
- package/dist/api/resources/catalog/types/index.d.ts +1 -0
- package/dist/api/resources/catalog/types/index.js +1 -0
- package/dist/api/resources/datasets/client/Client.d.ts +109 -0
- package/dist/api/resources/datasets/client/Client.js +303 -0
- package/dist/api/resources/datasets/client/index.d.ts +1 -0
- package/dist/api/resources/datasets/client/index.js +1 -0
- package/dist/api/resources/datasets/client/requests/DeleteDatasetsRequest.d.ts +10 -0
- package/dist/api/resources/datasets/client/requests/DeleteDatasetsRequest.js +2 -0
- package/dist/api/resources/datasets/client/requests/GetDatasetsRequest.d.ts +10 -0
- package/dist/api/resources/datasets/client/requests/GetDatasetsRequest.js +2 -0
- package/dist/api/resources/datasets/client/requests/PromoteDatasetInput.d.ts +13 -0
- package/dist/api/resources/datasets/client/requests/PromoteDatasetInput.js +2 -0
- package/dist/api/resources/datasets/client/requests/UpdateDatasetInput.d.ts +13 -0
- package/dist/api/resources/datasets/client/requests/UpdateDatasetInput.js +2 -0
- package/dist/api/resources/datasets/client/requests/index.d.ts +4 -0
- package/dist/api/resources/datasets/client/requests/index.js +1 -0
- package/dist/api/resources/datasets/exports.d.ts +2 -0
- package/dist/api/resources/datasets/exports.js +3 -0
- package/dist/api/resources/datasets/index.d.ts +1 -0
- package/dist/api/resources/datasets/index.js +1 -0
- package/dist/api/resources/devices/client/Client.d.ts +979 -0
- package/dist/api/resources/devices/client/Client.js +2576 -0
- package/dist/api/resources/devices/client/index.d.ts +1 -0
- package/dist/api/resources/devices/client/index.js +1 -0
- package/dist/api/resources/devices/client/requests/BackDevicesRequest.d.ts +46 -0
- package/dist/api/resources/devices/client/requests/BackDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/ChainRequest.d.ts +50 -0
- package/dist/api/resources/devices/client/requests/ChainRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/ClearDevicesRequest.d.ts +46 -0
- package/dist/api/resources/devices/client/requests/ClearDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/ClearGeoDevicesRequest.d.ts +39 -0
- package/dist/api/resources/devices/client/requests/ClearGeoDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/DeployDevicesRequest.d.ts +15 -0
- package/dist/api/resources/devices/client/requests/DeployDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/DeviceDeployPreviewInput.d.ts +41 -0
- package/dist/api/resources/devices/client/requests/DeviceDeployPreviewInput.js +13 -0
- package/dist/api/resources/devices/client/requests/DeviceGeoInput.d.ts +48 -0
- package/dist/api/resources/devices/client/requests/DeviceGeoInput.js +2 -0
- package/dist/api/resources/devices/client/requests/DeviceLanguageInput.d.ts +44 -0
- package/dist/api/resources/devices/client/requests/DeviceLanguageInput.js +2 -0
- package/dist/api/resources/devices/client/requests/GetAdvertisingIdDevicesRequest.d.ts +13 -0
- package/dist/api/resources/devices/client/requests/GetAdvertisingIdDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/GetGeoDevicesRequest.d.ts +13 -0
- package/dist/api/resources/devices/client/requests/GetGeoDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/GetIdentityDevicesRequest.d.ts +13 -0
- package/dist/api/resources/devices/client/requests/GetIdentityDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/GetInternetLocationDevicesRequest.d.ts +13 -0
- package/dist/api/resources/devices/client/requests/GetInternetLocationDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/GetLanguageDevicesRequest.d.ts +13 -0
- package/dist/api/resources/devices/client/requests/GetLanguageDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/GetResetDevicesRequest.d.ts +13 -0
- package/dist/api/resources/devices/client/requests/GetResetDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/GetStaticIpDevicesRequest.d.ts +15 -0
- package/dist/api/resources/devices/client/requests/GetStaticIpDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/HomeDevicesRequest.d.ts +46 -0
- package/dist/api/resources/devices/client/requests/HomeDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/KeyInput.d.ts +47 -0
- package/dist/api/resources/devices/client/requests/KeyInput.js +2 -0
- package/dist/api/resources/devices/client/requests/ListDevicesRequest.d.ts +12 -0
- package/dist/api/resources/devices/client/requests/ListDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/ListInWorkspaceDevicesRequest.d.ts +10 -0
- package/dist/api/resources/devices/client/requests/ListInWorkspaceDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/ListInternetLocationsRequest.d.ts +10 -0
- package/dist/api/resources/devices/client/requests/ListInternetLocationsRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/OccupancyDevicesRequest.d.ts +13 -0
- package/dist/api/resources/devices/client/requests/OccupancyDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/PreviewRemoveDevicesRequest.d.ts +17 -0
- package/dist/api/resources/devices/client/requests/PreviewRemoveDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/RecentDevicesRequest.d.ts +46 -0
- package/dist/api/resources/devices/client/requests/RecentDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/RemoveDevicesRequest.d.ts +18 -0
- package/dist/api/resources/devices/client/requests/RemoveDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/ResetAdvertisingIdDevicesRequest.d.ts +39 -0
- package/dist/api/resources/devices/client/requests/ResetAdvertisingIdDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/ScreenshotDevicesRequest.d.ts +13 -0
- package/dist/api/resources/devices/client/requests/ScreenshotDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/SetIdentityDevicesRequest.d.ts +42 -0
- package/dist/api/resources/devices/client/requests/SetIdentityDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/ShellInput.d.ts +45 -0
- package/dist/api/resources/devices/client/requests/ShellInput.js +2 -0
- package/dist/api/resources/devices/client/requests/StartAppInput.d.ts +58 -0
- package/dist/api/resources/devices/client/requests/StartAppInput.js +2 -0
- package/dist/api/resources/devices/client/requests/StateDevicesRequest.d.ts +13 -0
- package/dist/api/resources/devices/client/requests/StateDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/StopAppInput.d.ts +51 -0
- package/dist/api/resources/devices/client/requests/StopAppInput.js +2 -0
- package/dist/api/resources/devices/client/requests/SwipeInput.d.ts +61 -0
- package/dist/api/resources/devices/client/requests/SwipeInput.js +2 -0
- package/dist/api/resources/devices/client/requests/TakeScreenshotDevicesRequest.d.ts +46 -0
- package/dist/api/resources/devices/client/requests/TakeScreenshotDevicesRequest.js +2 -0
- package/dist/api/resources/devices/client/requests/TapInput.d.ts +58 -0
- package/dist/api/resources/devices/client/requests/TapInput.js +2 -0
- package/dist/api/resources/devices/client/requests/TypeTextInput.d.ts +60 -0
- package/dist/api/resources/devices/client/requests/TypeTextInput.js +2 -0
- package/dist/api/resources/devices/client/requests/index.d.ts +35 -0
- package/dist/api/resources/devices/client/requests/index.js +1 -0
- package/dist/api/resources/devices/exports.d.ts +3 -0
- package/dist/api/resources/devices/exports.js +4 -0
- package/dist/api/resources/devices/index.d.ts +3 -0
- package/dist/api/resources/devices/index.js +3 -0
- package/dist/api/resources/devices/resources/index.d.ts +3 -0
- package/dist/api/resources/devices/resources/index.js +3 -0
- package/dist/api/resources/devices/resources/sessions/client/Client.d.ts +62 -0
- package/dist/api/resources/devices/resources/sessions/client/Client.js +162 -0
- package/dist/api/resources/devices/resources/sessions/client/index.d.ts +1 -0
- package/dist/api/resources/devices/resources/sessions/client/index.js +1 -0
- package/dist/api/resources/devices/resources/sessions/client/requests/CreateSessionInput.d.ts +57 -0
- package/dist/api/resources/devices/resources/sessions/client/requests/CreateSessionInput.js +2 -0
- package/dist/api/resources/devices/resources/sessions/client/requests/ListSessionsRequest.d.ts +16 -0
- package/dist/api/resources/devices/resources/sessions/client/requests/ListSessionsRequest.js +2 -0
- package/dist/api/resources/devices/resources/sessions/client/requests/index.d.ts +2 -0
- package/dist/api/resources/devices/resources/sessions/client/requests/index.js +1 -0
- package/dist/api/resources/devices/resources/sessions/exports.d.ts +2 -0
- package/dist/api/resources/devices/resources/sessions/exports.js +3 -0
- package/dist/api/resources/devices/resources/sessions/index.d.ts +2 -0
- package/dist/api/resources/devices/resources/sessions/index.js +2 -0
- package/dist/api/resources/devices/resources/sessions/types/ListSessionsResponse.d.ts +4 -0
- package/dist/api/resources/devices/resources/sessions/types/ListSessionsResponse.js +2 -0
- package/dist/api/resources/devices/resources/sessions/types/index.d.ts +1 -0
- package/dist/api/resources/devices/resources/sessions/types/index.js +1 -0
- package/dist/api/resources/devices/types/ClearGeoDevicesResponse.d.ts +4 -0
- package/dist/api/resources/devices/types/ClearGeoDevicesResponse.js +2 -0
- package/dist/api/resources/devices/types/DeployDevicesResponse.d.ts +4 -0
- package/dist/api/resources/devices/types/DeployDevicesResponse.js +2 -0
- package/dist/api/resources/devices/types/GetAdvertisingIdDevicesResponse.d.ts +4 -0
- package/dist/api/resources/devices/types/GetAdvertisingIdDevicesResponse.js +2 -0
- package/dist/api/resources/devices/types/GetGeoDevicesResponse.d.ts +4 -0
- package/dist/api/resources/devices/types/GetGeoDevicesResponse.js +2 -0
- package/dist/api/resources/devices/types/GetIdentityDevicesResponse.d.ts +4 -0
- package/dist/api/resources/devices/types/GetIdentityDevicesResponse.js +2 -0
- package/dist/api/resources/devices/types/GetInternetLocationDevicesResponse.d.ts +4 -0
- package/dist/api/resources/devices/types/GetInternetLocationDevicesResponse.js +2 -0
- package/dist/api/resources/devices/types/GetLanguageDevicesResponse.d.ts +4 -0
- package/dist/api/resources/devices/types/GetLanguageDevicesResponse.js +2 -0
- package/dist/api/resources/devices/types/GetResetDevicesResponse.d.ts +4 -0
- package/dist/api/resources/devices/types/GetResetDevicesResponse.js +2 -0
- package/dist/api/resources/devices/types/GetStaticIpDevicesResponse.d.ts +4 -0
- package/dist/api/resources/devices/types/GetStaticIpDevicesResponse.js +2 -0
- package/dist/api/resources/devices/types/ListDevicesResponse.d.ts +4 -0
- package/dist/api/resources/devices/types/ListDevicesResponse.js +2 -0
- package/dist/api/resources/devices/types/ListInWorkspaceDevicesResponse.d.ts +4 -0
- package/dist/api/resources/devices/types/ListInWorkspaceDevicesResponse.js +2 -0
- package/dist/api/resources/devices/types/ListInternetLocationsResponse.d.ts +9 -0
- package/dist/api/resources/devices/types/ListInternetLocationsResponse.js +2 -0
- package/dist/api/resources/devices/types/OccupancyDevicesResponse.d.ts +4 -0
- package/dist/api/resources/devices/types/OccupancyDevicesResponse.js +2 -0
- package/dist/api/resources/devices/types/PreviewDeployDevicesResponse.d.ts +4 -0
- package/dist/api/resources/devices/types/PreviewDeployDevicesResponse.js +2 -0
- package/dist/api/resources/devices/types/PreviewRemoveDevicesResponse.d.ts +4 -0
- package/dist/api/resources/devices/types/PreviewRemoveDevicesResponse.js +2 -0
- package/dist/api/resources/devices/types/RemoveDevicesResponse.d.ts +4 -0
- package/dist/api/resources/devices/types/RemoveDevicesResponse.js +2 -0
- package/dist/api/resources/devices/types/ResetAdvertisingIdDevicesResponse.d.ts +4 -0
- package/dist/api/resources/devices/types/ResetAdvertisingIdDevicesResponse.js +2 -0
- package/dist/api/resources/devices/types/SetGeoDevicesResponse.d.ts +4 -0
- package/dist/api/resources/devices/types/SetGeoDevicesResponse.js +2 -0
- package/dist/api/resources/devices/types/SetIdentityDevicesResponse.d.ts +4 -0
- package/dist/api/resources/devices/types/SetIdentityDevicesResponse.js +2 -0
- package/dist/api/resources/devices/types/SetLanguageDevicesResponse.d.ts +4 -0
- package/dist/api/resources/devices/types/SetLanguageDevicesResponse.js +2 -0
- package/dist/api/resources/devices/types/index.d.ts +20 -0
- package/dist/api/resources/devices/types/index.js +20 -0
- package/dist/api/resources/emails/client/Client.d.ts +212 -0
- package/dist/api/resources/emails/client/Client.js +537 -0
- package/dist/api/resources/emails/client/index.d.ts +1 -0
- package/dist/api/resources/emails/client/index.js +1 -0
- package/dist/api/resources/emails/client/requests/EmailAddressAddInput.d.ts +16 -0
- package/dist/api/resources/emails/client/requests/EmailAddressAddInput.js +2 -0
- package/dist/api/resources/emails/client/requests/ListAddressesEmailsRequest.d.ts +12 -0
- package/dist/api/resources/emails/client/requests/ListAddressesEmailsRequest.js +2 -0
- package/dist/api/resources/emails/client/requests/ListMessagesEmailsRequest.d.ts +20 -0
- package/dist/api/resources/emails/client/requests/ListMessagesEmailsRequest.js +2 -0
- package/dist/api/resources/emails/client/requests/PreviewAddAddressEmailsRequest.d.ts +17 -0
- package/dist/api/resources/emails/client/requests/PreviewAddAddressEmailsRequest.js +2 -0
- package/dist/api/resources/emails/client/requests/PreviewRemoveAddressEmailsRequest.d.ts +20 -0
- package/dist/api/resources/emails/client/requests/PreviewRemoveAddressEmailsRequest.js +2 -0
- package/dist/api/resources/emails/client/requests/RemoveAddressEmailsRequest.d.ts +21 -0
- package/dist/api/resources/emails/client/requests/RemoveAddressEmailsRequest.js +2 -0
- package/dist/api/resources/emails/client/requests/index.d.ts +6 -0
- package/dist/api/resources/emails/client/requests/index.js +1 -0
- package/dist/api/resources/emails/exports.d.ts +2 -0
- package/dist/api/resources/emails/exports.js +3 -0
- package/dist/api/resources/emails/index.d.ts +2 -0
- package/dist/api/resources/emails/index.js +2 -0
- package/dist/api/resources/emails/types/AddAddressEmailsResponse.d.ts +4 -0
- package/dist/api/resources/emails/types/AddAddressEmailsResponse.js +2 -0
- package/dist/api/resources/emails/types/PreviewAddAddressEmailsResponse.d.ts +4 -0
- package/dist/api/resources/emails/types/PreviewAddAddressEmailsResponse.js +2 -0
- package/dist/api/resources/emails/types/PreviewRemoveAddressEmailsResponse.d.ts +4 -0
- package/dist/api/resources/emails/types/PreviewRemoveAddressEmailsResponse.js +2 -0
- package/dist/api/resources/emails/types/RemoveAddressEmailsResponse.d.ts +4 -0
- package/dist/api/resources/emails/types/RemoveAddressEmailsResponse.js +2 -0
- package/dist/api/resources/emails/types/index.d.ts +4 -0
- package/dist/api/resources/emails/types/index.js +4 -0
- package/dist/api/resources/files/client/Client.d.ts +69 -0
- package/dist/api/resources/files/client/Client.js +205 -0
- package/dist/api/resources/files/client/index.d.ts +1 -0
- package/dist/api/resources/files/client/index.js +1 -0
- package/dist/api/resources/files/client/requests/DownloadFilesRequest.d.ts +16 -0
- package/dist/api/resources/files/client/requests/DownloadFilesRequest.js +2 -0
- package/dist/api/resources/files/client/requests/GetFilesRequest.d.ts +16 -0
- package/dist/api/resources/files/client/requests/GetFilesRequest.js +2 -0
- package/dist/api/resources/files/client/requests/ListFilesRequest.d.ts +13 -0
- package/dist/api/resources/files/client/requests/ListFilesRequest.js +2 -0
- package/dist/api/resources/files/client/requests/index.d.ts +3 -0
- package/dist/api/resources/files/client/requests/index.js +1 -0
- package/dist/api/resources/files/exports.d.ts +2 -0
- package/dist/api/resources/files/exports.js +3 -0
- package/dist/api/resources/files/index.d.ts +2 -0
- package/dist/api/resources/files/index.js +2 -0
- package/dist/api/resources/files/types/DownloadFilesResponse.d.ts +4 -0
- package/dist/api/resources/files/types/DownloadFilesResponse.js +2 -0
- package/dist/api/resources/files/types/GetFilesResponse.d.ts +4 -0
- package/dist/api/resources/files/types/GetFilesResponse.js +2 -0
- package/dist/api/resources/files/types/ListFilesResponse.d.ts +4 -0
- package/dist/api/resources/files/types/ListFilesResponse.js +2 -0
- package/dist/api/resources/files/types/index.d.ts +3 -0
- package/dist/api/resources/files/types/index.js +3 -0
- package/dist/api/resources/health/client/Client.d.ts +29 -0
- package/dist/api/resources/health/client/Client.js +57 -0
- package/dist/api/resources/health/client/index.d.ts +1 -0
- package/dist/api/resources/health/client/index.js +1 -0
- package/dist/api/resources/health/exports.d.ts +2 -0
- package/dist/api/resources/health/exports.js +3 -0
- package/dist/api/resources/health/index.d.ts +2 -0
- package/dist/api/resources/health/index.js +2 -0
- package/dist/api/resources/health/types/CheckHealthResponse.d.ts +4 -0
- package/dist/api/resources/health/types/CheckHealthResponse.js +2 -0
- package/dist/api/resources/health/types/index.d.ts +1 -0
- package/dist/api/resources/health/types/index.js +1 -0
- package/dist/api/resources/index.d.ts +42 -0
- package/dist/api/resources/index.js +42 -0
- package/dist/api/resources/modelKeys/client/Client.d.ts +94 -0
- package/dist/api/resources/modelKeys/client/Client.js +224 -0
- package/dist/api/resources/modelKeys/client/index.d.ts +1 -0
- package/dist/api/resources/modelKeys/client/index.js +1 -0
- package/dist/api/resources/modelKeys/client/requests/DeleteModelKeysRequest.d.ts +13 -0
- package/dist/api/resources/modelKeys/client/requests/DeleteModelKeysRequest.js +2 -0
- package/dist/api/resources/modelKeys/client/requests/ListModelKeysRequest.d.ts +10 -0
- package/dist/api/resources/modelKeys/client/requests/ListModelKeysRequest.js +2 -0
- package/dist/api/resources/modelKeys/client/requests/ModelKeyInput.d.ts +16 -0
- package/dist/api/resources/modelKeys/client/requests/ModelKeyInput.js +2 -0
- package/dist/api/resources/modelKeys/client/requests/index.d.ts +3 -0
- package/dist/api/resources/modelKeys/client/requests/index.js +1 -0
- package/dist/api/resources/modelKeys/exports.d.ts +2 -0
- package/dist/api/resources/modelKeys/exports.js +3 -0
- package/dist/api/resources/modelKeys/index.d.ts +2 -0
- package/dist/api/resources/modelKeys/index.js +2 -0
- package/dist/api/resources/modelKeys/types/DeleteModelKeysRequestProvider.d.ts +5 -0
- package/dist/api/resources/modelKeys/types/DeleteModelKeysRequestProvider.js +5 -0
- package/dist/api/resources/modelKeys/types/ListModelKeysResponse.d.ts +4 -0
- package/dist/api/resources/modelKeys/types/ListModelKeysResponse.js +2 -0
- package/dist/api/resources/modelKeys/types/SetModelKeysRequestProvider.d.ts +5 -0
- package/dist/api/resources/modelKeys/types/SetModelKeysRequestProvider.js +5 -0
- package/dist/api/resources/modelKeys/types/SetModelKeysResponse.d.ts +4 -0
- package/dist/api/resources/modelKeys/types/SetModelKeysResponse.js +2 -0
- package/dist/api/resources/modelKeys/types/index.d.ts +4 -0
- package/dist/api/resources/modelKeys/types/index.js +4 -0
- package/dist/api/resources/notifications/client/Client.d.ts +98 -0
- package/dist/api/resources/notifications/client/Client.js +264 -0
- package/dist/api/resources/notifications/client/index.d.ts +1 -0
- package/dist/api/resources/notifications/client/index.js +1 -0
- package/dist/api/resources/notifications/client/requests/GetSettingsNotificationsRequest.d.ts +13 -0
- package/dist/api/resources/notifications/client/requests/GetSettingsNotificationsRequest.js +2 -0
- package/dist/api/resources/notifications/client/requests/ListAppsNotificationsRequest.d.ts +13 -0
- package/dist/api/resources/notifications/client/requests/ListAppsNotificationsRequest.js +2 -0
- package/dist/api/resources/notifications/client/requests/ListNotificationsRequest.d.ts +17 -0
- package/dist/api/resources/notifications/client/requests/ListNotificationsRequest.js +2 -0
- package/dist/api/resources/notifications/client/requests/ListRulesNotificationsRequest.d.ts +10 -0
- package/dist/api/resources/notifications/client/requests/ListRulesNotificationsRequest.js +2 -0
- package/dist/api/resources/notifications/client/requests/index.d.ts +4 -0
- package/dist/api/resources/notifications/client/requests/index.js +1 -0
- package/dist/api/resources/notifications/exports.d.ts +2 -0
- package/dist/api/resources/notifications/exports.js +3 -0
- package/dist/api/resources/notifications/index.d.ts +2 -0
- package/dist/api/resources/notifications/index.js +2 -0
- package/dist/api/resources/notifications/types/GetSettingsNotificationsResponse.d.ts +4 -0
- package/dist/api/resources/notifications/types/GetSettingsNotificationsResponse.js +2 -0
- package/dist/api/resources/notifications/types/ListAppsNotificationsResponse.d.ts +4 -0
- package/dist/api/resources/notifications/types/ListAppsNotificationsResponse.js +2 -0
- package/dist/api/resources/notifications/types/ListNotificationsResponse.d.ts +4 -0
- package/dist/api/resources/notifications/types/ListNotificationsResponse.js +2 -0
- package/dist/api/resources/notifications/types/ListRulesNotificationsResponse.d.ts +4 -0
- package/dist/api/resources/notifications/types/ListRulesNotificationsResponse.js +2 -0
- package/dist/api/resources/notifications/types/index.d.ts +4 -0
- package/dist/api/resources/notifications/types/index.js +4 -0
- package/dist/api/resources/phoneNumbers/client/Client.d.ts +92 -0
- package/dist/api/resources/phoneNumbers/client/Client.js +219 -0
- package/dist/api/resources/phoneNumbers/client/index.d.ts +1 -0
- package/dist/api/resources/phoneNumbers/client/index.js +1 -0
- package/dist/api/resources/phoneNumbers/client/requests/GetPhoneNumbersRequest.d.ts +13 -0
- package/dist/api/resources/phoneNumbers/client/requests/GetPhoneNumbersRequest.js +2 -0
- package/dist/api/resources/phoneNumbers/client/requests/ListMessagesPhoneNumbersRequest.d.ts +19 -0
- package/dist/api/resources/phoneNumbers/client/requests/ListMessagesPhoneNumbersRequest.js +2 -0
- package/dist/api/resources/phoneNumbers/client/requests/ListPhoneNumbersRequest.d.ts +10 -0
- package/dist/api/resources/phoneNumbers/client/requests/ListPhoneNumbersRequest.js +2 -0
- package/dist/api/resources/phoneNumbers/client/requests/index.d.ts +3 -0
- package/dist/api/resources/phoneNumbers/client/requests/index.js +1 -0
- package/dist/api/resources/phoneNumbers/exports.d.ts +2 -0
- package/dist/api/resources/phoneNumbers/exports.js +3 -0
- package/dist/api/resources/phoneNumbers/index.d.ts +1 -0
- package/dist/api/resources/phoneNumbers/index.js +1 -0
- package/dist/api/resources/secrets/client/Client.d.ts +80 -0
- package/dist/api/resources/secrets/client/Client.js +192 -0
- package/dist/api/resources/secrets/client/index.d.ts +1 -0
- package/dist/api/resources/secrets/client/index.js +1 -0
- package/dist/api/resources/secrets/client/requests/GetSecretsRequest.d.ts +10 -0
- package/dist/api/resources/secrets/client/requests/GetSecretsRequest.js +2 -0
- package/dist/api/resources/secrets/client/requests/ListSecretsRequest.d.ts +10 -0
- package/dist/api/resources/secrets/client/requests/ListSecretsRequest.js +2 -0
- package/dist/api/resources/secrets/client/requests/ListTagsSecretsRequest.d.ts +10 -0
- package/dist/api/resources/secrets/client/requests/ListTagsSecretsRequest.js +2 -0
- package/dist/api/resources/secrets/client/requests/index.d.ts +3 -0
- package/dist/api/resources/secrets/client/requests/index.js +1 -0
- package/dist/api/resources/secrets/exports.d.ts +2 -0
- package/dist/api/resources/secrets/exports.js +3 -0
- package/dist/api/resources/secrets/index.d.ts +2 -0
- package/dist/api/resources/secrets/index.js +2 -0
- package/dist/api/resources/secrets/types/GetSecretsResponse.d.ts +4 -0
- package/dist/api/resources/secrets/types/GetSecretsResponse.js +2 -0
- package/dist/api/resources/secrets/types/ListTagsSecretsResponse.d.ts +4 -0
- package/dist/api/resources/secrets/types/ListTagsSecretsResponse.js +2 -0
- package/dist/api/resources/secrets/types/index.d.ts +2 -0
- package/dist/api/resources/secrets/types/index.js +2 -0
- package/dist/api/resources/sessions/client/Client.d.ts +442 -0
- package/dist/api/resources/sessions/client/Client.js +1241 -0
- package/dist/api/resources/sessions/client/index.d.ts +1 -0
- package/dist/api/resources/sessions/client/index.js +1 -0
- package/dist/api/resources/sessions/client/requests/AnswerHitlInput.d.ts +18 -0
- package/dist/api/resources/sessions/client/requests/AnswerHitlInput.js +2 -0
- package/dist/api/resources/sessions/client/requests/ArtifactsSessionsRequest.d.ts +16 -0
- package/dist/api/resources/sessions/client/requests/ArtifactsSessionsRequest.js +2 -0
- package/dist/api/resources/sessions/client/requests/BreakdownSessionsRequest.d.ts +10 -0
- package/dist/api/resources/sessions/client/requests/BreakdownSessionsRequest.js +2 -0
- package/dist/api/resources/sessions/client/requests/CancelQueuedSessionsRequest.d.ts +18 -0
- package/dist/api/resources/sessions/client/requests/CancelQueuedSessionsRequest.js +2 -0
- package/dist/api/resources/sessions/client/requests/ContinueSessionInput.d.ts +24 -0
- package/dist/api/resources/sessions/client/requests/ContinueSessionInput.js +2 -0
- package/dist/api/resources/sessions/client/requests/EventsSessionsRequest.d.ts +12 -0
- package/dist/api/resources/sessions/client/requests/EventsSessionsRequest.js +2 -0
- package/dist/api/resources/sessions/client/requests/GetLegacySessionsRequest.d.ts +16 -0
- package/dist/api/resources/sessions/client/requests/GetLegacySessionsRequest.js +2 -0
- package/dist/api/resources/sessions/client/requests/GetSessionsRequest.d.ts +10 -0
- package/dist/api/resources/sessions/client/requests/GetSessionsRequest.js +2 -0
- package/dist/api/resources/sessions/client/requests/GetUiStateSessionsRequest.d.ts +19 -0
- package/dist/api/resources/sessions/client/requests/GetUiStateSessionsRequest.js +2 -0
- package/dist/api/resources/sessions/client/requests/HistoryPolicySessionsRequest.d.ts +12 -0
- package/dist/api/resources/sessions/client/requests/HistoryPolicySessionsRequest.js +2 -0
- package/dist/api/resources/sessions/client/requests/ListSessionsRequest.d.ts +78 -0
- package/dist/api/resources/sessions/client/requests/ListSessionsRequest.js +2 -0
- package/dist/api/resources/sessions/client/requests/RecordingSessionsRequest.d.ts +16 -0
- package/dist/api/resources/sessions/client/requests/RecordingSessionsRequest.js +2 -0
- package/dist/api/resources/sessions/client/requests/ReplayFrameSessionsRequest.d.ts +19 -0
- package/dist/api/resources/sessions/client/requests/ReplayFrameSessionsRequest.js +2 -0
- package/dist/api/resources/sessions/client/requests/ReplaySessionsRequest.d.ts +16 -0
- package/dist/api/resources/sessions/client/requests/ReplaySessionsRequest.js +2 -0
- package/dist/api/resources/sessions/client/requests/StatusSessionsRequest.d.ts +16 -0
- package/dist/api/resources/sessions/client/requests/StatusSessionsRequest.js +2 -0
- package/dist/api/resources/sessions/client/requests/StopSessionsRequest.d.ts +19 -0
- package/dist/api/resources/sessions/client/requests/StopSessionsRequest.js +2 -0
- package/dist/api/resources/sessions/client/requests/UpdateSessionInput.d.ts +13 -0
- package/dist/api/resources/sessions/client/requests/UpdateSessionInput.js +2 -0
- package/dist/api/resources/sessions/client/requests/index.d.ts +17 -0
- package/dist/api/resources/sessions/client/requests/index.js +1 -0
- package/dist/api/resources/sessions/exports.d.ts +3 -0
- package/dist/api/resources/sessions/exports.js +4 -0
- package/dist/api/resources/sessions/index.d.ts +3 -0
- package/dist/api/resources/sessions/index.js +3 -0
- package/dist/api/resources/sessions/resources/index.d.ts +3 -0
- package/dist/api/resources/sessions/resources/index.js +3 -0
- package/dist/api/resources/sessions/resources/liveView/client/Client.d.ts +210 -0
- package/dist/api/resources/sessions/resources/liveView/client/Client.js +616 -0
- package/dist/api/resources/sessions/resources/liveView/client/index.d.ts +1 -0
- package/dist/api/resources/sessions/resources/liveView/client/index.js +1 -0
- package/dist/api/resources/sessions/resources/liveView/client/requests/ConnectLiveViewRequest.d.ts +13 -0
- package/dist/api/resources/sessions/resources/liveView/client/requests/ConnectLiveViewRequest.js +2 -0
- package/dist/api/resources/sessions/resources/liveView/client/requests/EventsLiveViewRequest.d.ts +16 -0
- package/dist/api/resources/sessions/resources/liveView/client/requests/EventsLiveViewRequest.js +2 -0
- package/dist/api/resources/sessions/resources/liveView/client/requests/IceServersLiveViewRequest.d.ts +16 -0
- package/dist/api/resources/sessions/resources/liveView/client/requests/IceServersLiveViewRequest.js +2 -0
- package/dist/api/resources/sessions/resources/liveView/client/requests/KeepaliveLiveViewRequest.d.ts +13 -0
- package/dist/api/resources/sessions/resources/liveView/client/requests/KeepaliveLiveViewRequest.js +2 -0
- package/dist/api/resources/sessions/resources/liveView/client/requests/RequestFrameLiveViewRequest.d.ts +13 -0
- package/dist/api/resources/sessions/resources/liveView/client/requests/RequestFrameLiveViewRequest.js +2 -0
- package/dist/api/resources/sessions/resources/liveView/client/requests/StartLiveViewRequest.d.ts +13 -0
- package/dist/api/resources/sessions/resources/liveView/client/requests/StartLiveViewRequest.js +2 -0
- package/dist/api/resources/sessions/resources/liveView/client/requests/StreamSignalInput.d.ts +30 -0
- package/dist/api/resources/sessions/resources/liveView/client/requests/StreamSignalInput.js +11 -0
- package/dist/api/resources/sessions/resources/liveView/client/requests/StreamStopInput.d.ts +15 -0
- package/dist/api/resources/sessions/resources/liveView/client/requests/StreamStopInput.js +2 -0
- package/dist/api/resources/sessions/resources/liveView/client/requests/index.d.ts +8 -0
- package/dist/api/resources/sessions/resources/liveView/client/requests/index.js +1 -0
- package/dist/api/resources/sessions/resources/liveView/exports.d.ts +2 -0
- package/dist/api/resources/sessions/resources/liveView/exports.js +3 -0
- package/dist/api/resources/sessions/resources/liveView/index.d.ts +2 -0
- package/dist/api/resources/sessions/resources/liveView/index.js +2 -0
- package/dist/api/resources/sessions/resources/liveView/types/IceServersLiveViewResponse.d.ts +4 -0
- package/dist/api/resources/sessions/resources/liveView/types/IceServersLiveViewResponse.js +2 -0
- package/dist/api/resources/sessions/resources/liveView/types/index.d.ts +1 -0
- package/dist/api/resources/sessions/resources/liveView/types/index.js +1 -0
- package/dist/api/resources/sessions/types/BreakdownSessionsResponse.d.ts +18 -0
- package/dist/api/resources/sessions/types/BreakdownSessionsResponse.js +10 -0
- package/dist/api/resources/sessions/types/EventsSessionsResponse.d.ts +4 -0
- package/dist/api/resources/sessions/types/EventsSessionsResponse.js +2 -0
- package/dist/api/resources/sessions/types/HistoryPolicySessionsResponse.d.ts +4 -0
- package/dist/api/resources/sessions/types/HistoryPolicySessionsResponse.js +2 -0
- package/dist/api/resources/sessions/types/ListSessionsRequestStatusMode.d.ts +5 -0
- package/dist/api/resources/sessions/types/ListSessionsRequestStatusMode.js +5 -0
- package/dist/api/resources/sessions/types/ListSessionsResponse.d.ts +4 -0
- package/dist/api/resources/sessions/types/ListSessionsResponse.js +2 -0
- package/dist/api/resources/sessions/types/index.d.ts +5 -0
- package/dist/api/resources/sessions/types/index.js +5 -0
- package/dist/api/resources/skills/client/Client.d.ts +106 -0
- package/dist/api/resources/skills/client/Client.js +310 -0
- package/dist/api/resources/skills/client/index.d.ts +1 -0
- package/dist/api/resources/skills/client/index.js +1 -0
- package/dist/api/resources/skills/client/requests/CreateSkillInput.d.ts +44 -0
- package/dist/api/resources/skills/client/requests/CreateSkillInput.js +2 -0
- package/dist/api/resources/skills/client/requests/DeleteSkillsRequest.d.ts +10 -0
- package/dist/api/resources/skills/client/requests/DeleteSkillsRequest.js +2 -0
- package/dist/api/resources/skills/client/requests/GetSkillsRequest.d.ts +10 -0
- package/dist/api/resources/skills/client/requests/GetSkillsRequest.js +2 -0
- package/dist/api/resources/skills/client/requests/ListSkillsRequest.d.ts +9 -0
- package/dist/api/resources/skills/client/requests/ListSkillsRequest.js +2 -0
- package/dist/api/resources/skills/client/requests/UpdateSkillsRequest.d.ts +20 -0
- package/dist/api/resources/skills/client/requests/UpdateSkillsRequest.js +2 -0
- package/dist/api/resources/skills/client/requests/index.d.ts +5 -0
- package/dist/api/resources/skills/client/requests/index.js +1 -0
- package/dist/api/resources/skills/exports.d.ts +2 -0
- package/dist/api/resources/skills/exports.js +3 -0
- package/dist/api/resources/skills/index.d.ts +2 -0
- package/dist/api/resources/skills/index.js +2 -0
- package/dist/api/resources/skills/types/ListSkillsRequestScope.d.ts +5 -0
- package/dist/api/resources/skills/types/ListSkillsRequestScope.js +5 -0
- package/dist/api/resources/skills/types/ListSkillsResponse.d.ts +4 -0
- package/dist/api/resources/skills/types/ListSkillsResponse.js +2 -0
- package/dist/api/resources/skills/types/index.d.ts +2 -0
- package/dist/api/resources/skills/types/index.js +2 -0
- package/dist/api/resources/workspaces/client/Client.d.ts +34 -0
- package/dist/api/resources/workspaces/client/Client.js +72 -0
- package/dist/api/resources/workspaces/client/index.d.ts +1 -0
- package/dist/api/resources/workspaces/client/index.js +1 -0
- package/dist/api/resources/workspaces/client/requests/GetWorkspacesRequest.d.ts +10 -0
- package/dist/api/resources/workspaces/client/requests/GetWorkspacesRequest.js +2 -0
- package/dist/api/resources/workspaces/client/requests/index.d.ts +1 -0
- package/dist/api/resources/workspaces/client/requests/index.js +1 -0
- package/dist/api/resources/workspaces/exports.d.ts +2 -0
- package/dist/api/resources/workspaces/exports.js +3 -0
- package/dist/api/resources/workspaces/index.d.ts +2 -0
- package/dist/api/resources/workspaces/index.js +2 -0
- package/dist/api/resources/workspaces/types/GetWorkspacesResponse.d.ts +4 -0
- package/dist/api/resources/workspaces/types/GetWorkspacesResponse.js +2 -0
- package/dist/api/resources/workspaces/types/index.d.ts +1 -0
- package/dist/api/resources/workspaces/types/index.js +1 -0
- package/dist/api/types/Agent.d.ts +19 -0
- package/dist/api/types/Agent.js +2 -0
- package/dist/api/types/AgentDetail.d.ts +9 -0
- package/dist/api/types/AgentDetail.js +2 -0
- package/dist/api/types/AgentDetailResponse.d.ts +4 -0
- package/dist/api/types/AgentDetailResponse.js +2 -0
- package/dist/api/types/AgentDevice.d.ts +7 -0
- package/dist/api/types/AgentDevice.js +2 -0
- package/dist/api/types/AgentDeviceInput.d.ts +6 -0
- package/dist/api/types/AgentDeviceInput.js +2 -0
- package/dist/api/types/AgentListResponse.d.ts +8 -0
- package/dist/api/types/AgentListResponse.js +2 -0
- package/dist/api/types/AgentTurn.d.ts +14 -0
- package/dist/api/types/AgentTurn.js +2 -0
- package/dist/api/types/AgentTurnDispatchResponse.d.ts +29 -0
- package/dist/api/types/AgentTurnDispatchResponse.js +14 -0
- package/dist/api/types/AgentTurnPage.d.ts +7 -0
- package/dist/api/types/AgentTurnPage.js +2 -0
- package/dist/api/types/AgentTurnPageResponse.d.ts +4 -0
- package/dist/api/types/AgentTurnPageResponse.js +2 -0
- package/dist/api/types/AnswerHitlResult.d.ts +26 -0
- package/dist/api/types/AnswerHitlResult.js +13 -0
- package/dist/api/types/AppInstall.d.ts +36 -0
- package/dist/api/types/AppInstall.js +22 -0
- package/dist/api/types/AppInstallBatch.d.ts +39 -0
- package/dist/api/types/AppInstallBatch.js +28 -0
- package/dist/api/types/AppInstallBatchStarted.d.ts +19 -0
- package/dist/api/types/AppInstallBatchStarted.js +13 -0
- package/dist/api/types/AppInstallEvent.d.ts +16 -0
- package/dist/api/types/AppInstallEvent.js +8 -0
- package/dist/api/types/AppStoreInstallResponse.d.ts +31 -0
- package/dist/api/types/AppStoreInstallResponse.js +14 -0
- package/dist/api/types/ArchiveAgentResponse.d.ts +10 -0
- package/dist/api/types/ArchiveAgentResponse.js +2 -0
- package/dist/api/types/BackChainStep.d.ts +5 -0
- package/dist/api/types/BackChainStep.js +2 -0
- package/dist/api/types/BadRequestErrorBody.d.ts +2 -0
- package/dist/api/types/BadRequestErrorBody.js +2 -0
- package/dist/api/types/Busy.d.ts +19 -0
- package/dist/api/types/Busy.js +9 -0
- package/dist/api/types/CancelQueuedFollowupResult.d.ts +8 -0
- package/dist/api/types/CancelQueuedFollowupResult.js +2 -0
- package/dist/api/types/CaptureField.d.ts +7 -0
- package/dist/api/types/CaptureField.js +2 -0
- package/dist/api/types/CaptureOnlyFilter.d.ts +8 -0
- package/dist/api/types/CaptureOnlyFilter.js +8 -0
- package/dist/api/types/CaptureOptions.d.ts +20 -0
- package/dist/api/types/CaptureOptions.js +2 -0
- package/dist/api/types/CaptureResponse.d.ts +56 -0
- package/dist/api/types/CaptureResponse.js +2 -0
- package/dist/api/types/CaptureVerbosity.d.ts +12 -0
- package/dist/api/types/CaptureVerbosity.js +12 -0
- package/dist/api/types/CatalogApp.d.ts +11 -0
- package/dist/api/types/CatalogApp.js +2 -0
- package/dist/api/types/ChainCapturePolicy.d.ts +12 -0
- package/dist/api/types/ChainCapturePolicy.js +12 -0
- package/dist/api/types/ChainResponse.d.ts +6 -0
- package/dist/api/types/ChainResponse.js +2 -0
- package/dist/api/types/ChainStep.d.ts +45 -0
- package/dist/api/types/ChainStep.js +2 -0
- package/dist/api/types/ChainStepResponse.d.ts +14 -0
- package/dist/api/types/ChainStepResponse.js +2 -0
- package/dist/api/types/ChainVerb.d.ts +16 -0
- package/dist/api/types/ChainVerb.js +16 -0
- package/dist/api/types/ClearChainStep.d.ts +5 -0
- package/dist/api/types/ClearChainStep.js +2 -0
- package/dist/api/types/ContinueSessionResult.d.ts +25 -0
- package/dist/api/types/ContinueSessionResult.js +7 -0
- package/dist/api/types/CreateSessionResult.d.ts +13 -0
- package/dist/api/types/CreateSessionResult.js +7 -0
- package/dist/api/types/Dataset.d.ts +18 -0
- package/dist/api/types/Dataset.js +7 -0
- package/dist/api/types/DatasetColumn.d.ts +5 -0
- package/dist/api/types/DatasetColumn.js +2 -0
- package/dist/api/types/DatasetColumnType.d.ts +6 -0
- package/dist/api/types/DatasetColumnType.js +6 -0
- package/dist/api/types/DatasetListResponse.d.ts +4 -0
- package/dist/api/types/DatasetListResponse.js +2 -0
- package/dist/api/types/DatasetOutput.d.ts +12 -0
- package/dist/api/types/DatasetOutput.js +2 -0
- package/dist/api/types/DatasetResponse.d.ts +4 -0
- package/dist/api/types/DatasetResponse.js +2 -0
- package/dist/api/types/DeleteDatasetResponse.d.ts +3 -0
- package/dist/api/types/DeleteDatasetResponse.js +2 -0
- package/dist/api/types/Device.d.ts +41 -0
- package/dist/api/types/Device.js +16 -0
- package/dist/api/types/DeviceAdvertisingIdReset.d.ts +6 -0
- package/dist/api/types/DeviceAdvertisingIdReset.js +2 -0
- package/dist/api/types/DeviceChangeConfirmInput.d.ts +4 -0
- package/dist/api/types/DeviceChangeConfirmInput.js +2 -0
- package/dist/api/types/DeviceChangePreview.d.ts +36 -0
- package/dist/api/types/DeviceChangePreview.js +7 -0
- package/dist/api/types/DeviceChangeResult.d.ts +9 -0
- package/dist/api/types/DeviceChangeResult.js +2 -0
- package/dist/api/types/DeviceControlError.d.ts +15 -0
- package/dist/api/types/DeviceControlError.js +15 -0
- package/dist/api/types/DeviceControlInProgress.d.ts +7 -0
- package/dist/api/types/DeviceControlInProgress.js +7 -0
- package/dist/api/types/DeviceControlState.d.ts +18 -0
- package/dist/api/types/DeviceControlState.js +18 -0
- package/dist/api/types/DeviceGeo.d.ts +37 -0
- package/dist/api/types/DeviceGeo.js +18 -0
- package/dist/api/types/DeviceIdentity.d.ts +9 -0
- package/dist/api/types/DeviceIdentity.js +2 -0
- package/dist/api/types/DeviceIdentityFields.d.ts +16 -0
- package/dist/api/types/DeviceIdentityFields.js +2 -0
- package/dist/api/types/DeviceInternetLocation.d.ts +28 -0
- package/dist/api/types/DeviceInternetLocation.js +16 -0
- package/dist/api/types/DeviceLanguage.d.ts +8 -0
- package/dist/api/types/DeviceLanguage.js +2 -0
- package/dist/api/types/DeviceOccupancy.d.ts +39 -0
- package/dist/api/types/DeviceOccupancy.js +2 -0
- package/dist/api/types/DeviceRemoveResult.d.ts +8 -0
- package/dist/api/types/DeviceRemoveResult.js +2 -0
- package/dist/api/types/DeviceReset.d.ts +35 -0
- package/dist/api/types/DeviceReset.js +20 -0
- package/dist/api/types/DeviceState.d.ts +21 -0
- package/dist/api/types/DeviceState.js +2 -0
- package/dist/api/types/DeviceStaticIp.d.ts +18 -0
- package/dist/api/types/DeviceStaticIp.js +10 -0
- package/dist/api/types/DeviceStaticIpStatus.d.ts +17 -0
- package/dist/api/types/DeviceStaticIpStatus.js +10 -0
- package/dist/api/types/EmailAddress.d.ts +11 -0
- package/dist/api/types/EmailAddress.js +2 -0
- package/dist/api/types/EmailAddressListResponse.d.ts +4 -0
- package/dist/api/types/EmailAddressListResponse.js +2 -0
- package/dist/api/types/EmailMessage.d.ts +15 -0
- package/dist/api/types/EmailMessage.js +2 -0
- package/dist/api/types/EmailMessageListResponse.d.ts +6 -0
- package/dist/api/types/EmailMessageListResponse.js +2 -0
- package/dist/api/types/EmptyChainStepParams.d.ts +6 -0
- package/dist/api/types/EmptyChainStepParams.js +2 -0
- package/dist/api/types/EmptyVerbInput.d.ts +9 -0
- package/dist/api/types/EmptyVerbInput.js +2 -0
- package/dist/api/types/ErrorResponse.d.ts +4 -0
- package/dist/api/types/ErrorResponse.js +2 -0
- package/dist/api/types/HistoryPolicy.d.ts +17 -0
- package/dist/api/types/HistoryPolicy.js +2 -0
- package/dist/api/types/HomeChainStep.d.ts +5 -0
- package/dist/api/types/HomeChainStep.js +2 -0
- package/dist/api/types/IceServer.d.ts +8 -0
- package/dist/api/types/IceServer.js +2 -0
- package/dist/api/types/IceServerIssuance.d.ts +13 -0
- package/dist/api/types/IceServerIssuance.js +2 -0
- package/dist/api/types/InboxAddressAddResult.d.ts +18 -0
- package/dist/api/types/InboxAddressAddResult.js +2 -0
- package/dist/api/types/InboxAddressPreview.d.ts +34 -0
- package/dist/api/types/InboxAddressPreview.js +7 -0
- package/dist/api/types/InboxAddressRemoveResult.d.ts +13 -0
- package/dist/api/types/InboxAddressRemoveResult.js +2 -0
- package/dist/api/types/KeyChainStep.d.ts +5 -0
- package/dist/api/types/KeyChainStep.js +2 -0
- package/dist/api/types/KeyChainStepParams.d.ts +3 -0
- package/dist/api/types/KeyChainStepParams.js +2 -0
- package/dist/api/types/LegacySession.d.ts +21 -0
- package/dist/api/types/LegacySession.js +11 -0
- package/dist/api/types/ModelKey.d.ts +14 -0
- package/dist/api/types/ModelKey.js +8 -0
- package/dist/api/types/NotificationApp.d.ts +6 -0
- package/dist/api/types/NotificationApp.js +2 -0
- package/dist/api/types/NotificationFeedItem.d.ts +34 -0
- package/dist/api/types/NotificationFeedItem.js +2 -0
- package/dist/api/types/NotificationRule.d.ts +41 -0
- package/dist/api/types/NotificationRule.js +12 -0
- package/dist/api/types/NotificationSettings.d.ts +29 -0
- package/dist/api/types/NotificationSettings.js +2 -0
- package/dist/api/types/PhoneNumber.d.ts +34 -0
- package/dist/api/types/PhoneNumber.js +18 -0
- package/dist/api/types/PhoneNumberListResponse.d.ts +4 -0
- package/dist/api/types/PhoneNumberListResponse.js +2 -0
- package/dist/api/types/PhoneNumberMessage.d.ts +9 -0
- package/dist/api/types/PhoneNumberMessage.js +2 -0
- package/dist/api/types/PhoneNumberMessageListResponse.d.ts +6 -0
- package/dist/api/types/PhoneNumberMessageListResponse.js +2 -0
- package/dist/api/types/PhoneNumberResponse.d.ts +4 -0
- package/dist/api/types/PhoneNumberResponse.js +2 -0
- package/dist/api/types/RecentChainStep.d.ts +5 -0
- package/dist/api/types/RecentChainStep.js +2 -0
- package/dist/api/types/RecordingFinalizationStatus.d.ts +11 -0
- package/dist/api/types/RecordingFinalizationStatus.js +11 -0
- package/dist/api/types/RetargetQueuedTurnsResult.d.ts +10 -0
- package/dist/api/types/RetargetQueuedTurnsResult.js +2 -0
- package/dist/api/types/ScreenshotChainStep.d.ts +5 -0
- package/dist/api/types/ScreenshotChainStep.js +2 -0
- package/dist/api/types/SecretTag.d.ts +6 -0
- package/dist/api/types/SecretTag.js +2 -0
- package/dist/api/types/SessionArtifacts.d.ts +29 -0
- package/dist/api/types/SessionArtifacts.js +2 -0
- package/dist/api/types/SessionDetail.d.ts +15 -0
- package/dist/api/types/SessionDetail.js +2 -0
- package/dist/api/types/SessionEvent.d.ts +10 -0
- package/dist/api/types/SessionEvent.js +2 -0
- package/dist/api/types/SessionRecording.d.ts +20 -0
- package/dist/api/types/SessionRecording.js +9 -0
- package/dist/api/types/SessionRecordingResponse.d.ts +8 -0
- package/dist/api/types/SessionRecordingResponse.js +2 -0
- package/dist/api/types/SessionRecordingSegment.d.ts +11 -0
- package/dist/api/types/SessionRecordingSegment.js +2 -0
- package/dist/api/types/SessionReplayFrame.d.ts +24 -0
- package/dist/api/types/SessionReplayFrame.js +10 -0
- package/dist/api/types/SessionReplayResponse.d.ts +4 -0
- package/dist/api/types/SessionReplayResponse.js +2 -0
- package/dist/api/types/SessionStatusV2.d.ts +11 -0
- package/dist/api/types/SessionStatusV2.js +11 -0
- package/dist/api/types/SessionStatusView.d.ts +9 -0
- package/dist/api/types/SessionStatusView.js +2 -0
- package/dist/api/types/SessionV2.d.ts +42 -0
- package/dist/api/types/SessionV2.js +2 -0
- package/dist/api/types/ShellResult.d.ts +6 -0
- package/dist/api/types/ShellResult.js +2 -0
- package/dist/api/types/Skill.d.ts +17 -0
- package/dist/api/types/Skill.js +2 -0
- package/dist/api/types/StartAppChainStep.d.ts +5 -0
- package/dist/api/types/StartAppChainStep.js +2 -0
- package/dist/api/types/StartAppChainStepParams.d.ts +12 -0
- package/dist/api/types/StartAppChainStepParams.js +2 -0
- package/dist/api/types/StopAppChainStep.d.ts +5 -0
- package/dist/api/types/StopAppChainStep.js +2 -0
- package/dist/api/types/StopAppChainStepParams.d.ts +7 -0
- package/dist/api/types/StopAppChainStepParams.js +2 -0
- package/dist/api/types/StopSessionResult.d.ts +7 -0
- package/dist/api/types/StopSessionResult.js +2 -0
- package/dist/api/types/StreamCommandResult.d.ts +10 -0
- package/dist/api/types/StreamCommandResult.js +2 -0
- package/dist/api/types/StreamSignalEvent.d.ts +23 -0
- package/dist/api/types/StreamSignalEvent.js +12 -0
- package/dist/api/types/StreamStartInput.d.ts +12 -0
- package/dist/api/types/StreamStartInput.js +2 -0
- package/dist/api/types/StreamViewerInput.d.ts +6 -0
- package/dist/api/types/StreamViewerInput.js +2 -0
- package/dist/api/types/SwipeChainStep.d.ts +5 -0
- package/dist/api/types/SwipeChainStep.js +2 -0
- package/dist/api/types/SwipeChainStepParams.d.ts +8 -0
- package/dist/api/types/SwipeChainStepParams.js +2 -0
- package/dist/api/types/TapChainStep.d.ts +5 -0
- package/dist/api/types/TapChainStep.js +2 -0
- package/dist/api/types/TapChainStepParams.d.ts +13 -0
- package/dist/api/types/TapChainStepParams.js +2 -0
- package/dist/api/types/TapResult.d.ts +12 -0
- package/dist/api/types/TapResult.js +2 -0
- package/dist/api/types/TypeChainStep.d.ts +5 -0
- package/dist/api/types/TypeChainStep.js +2 -0
- package/dist/api/types/TypeChainStepParams.d.ts +5 -0
- package/dist/api/types/TypeChainStepParams.js +2 -0
- package/dist/api/types/ValidationErrorResponse.d.ts +4 -0
- package/dist/api/types/ValidationErrorResponse.js +2 -0
- package/dist/api/types/VerbResult.d.ts +12 -0
- package/dist/api/types/VerbResult.js +2 -0
- package/dist/api/types/VerbResultWithOptionalCapture.d.ts +4 -0
- package/dist/api/types/VerbResultWithOptionalCapture.js +2 -0
- package/dist/api/types/WaitChainStep.d.ts +5 -0
- package/dist/api/types/WaitChainStep.js +2 -0
- package/dist/api/types/WaitChainStepParams.d.ts +11 -0
- package/dist/api/types/WaitChainStepParams.js +2 -0
- package/dist/api/types/Workspace.d.ts +7 -0
- package/dist/api/types/Workspace.js +2 -0
- package/dist/api/types/WorkspaceFile.d.ts +20 -0
- package/dist/api/types/WorkspaceFile.js +8 -0
- package/dist/api/types/WorkspaceFileDownload.d.ts +8 -0
- package/dist/api/types/WorkspaceFileDownload.js +2 -0
- package/dist/api/types/WorkspaceScopeInput.d.ts +4 -0
- package/dist/api/types/WorkspaceScopeInput.js +2 -0
- package/dist/api/types/WorkspaceSecret.d.ts +26 -0
- package/dist/api/types/WorkspaceSecret.js +2 -0
- package/dist/api/types/WorkspaceSecretListResponse.d.ts +4 -0
- package/dist/api/types/WorkspaceSecretListResponse.js +2 -0
- package/dist/api/types/index.d.ts +133 -0
- package/dist/api/types/index.js +133 -0
- package/dist/auth/HeaderAuthProvider.d.ts +20 -0
- package/dist/auth/HeaderAuthProvider.js +33 -0
- package/dist/auth/index.d.ts +1 -0
- package/dist/auth/index.js +1 -0
- package/dist/core/auth/AuthProvider.d.ts +8 -0
- package/dist/core/auth/AuthProvider.js +6 -0
- package/dist/core/auth/AuthRequest.d.ts +9 -0
- package/dist/core/auth/AuthRequest.js +1 -0
- package/dist/core/auth/BasicAuth.d.ts +8 -0
- package/dist/core/auth/BasicAuth.js +29 -0
- package/dist/core/auth/BearerToken.d.ts +7 -0
- package/dist/core/auth/BearerToken.js +13 -0
- package/dist/core/auth/NoOpAuthProvider.d.ts +5 -0
- package/dist/core/auth/NoOpAuthProvider.js +5 -0
- package/dist/core/auth/index.d.ts +5 -0
- package/dist/core/auth/index.js +4 -0
- package/dist/core/base64.d.ts +2 -0
- package/dist/core/base64.js +22 -0
- package/dist/core/exports.d.ts +1 -0
- package/dist/core/exports.js +1 -0
- package/dist/core/fetcher/APIResponse.d.ts +20 -0
- package/dist/core/fetcher/APIResponse.js +1 -0
- package/dist/core/fetcher/BinaryResponse.d.ts +19 -0
- package/dist/core/fetcher/BinaryResponse.js +14 -0
- package/dist/core/fetcher/EndpointMetadata.d.ts +13 -0
- package/dist/core/fetcher/EndpointMetadata.js +1 -0
- package/dist/core/fetcher/EndpointSupplier.d.ts +12 -0
- package/dist/core/fetcher/EndpointSupplier.js +10 -0
- package/dist/core/fetcher/Fetcher.d.ts +56 -0
- package/dist/core/fetcher/Fetcher.js +223 -0
- package/dist/core/fetcher/Headers.d.ts +2 -0
- package/dist/core/fetcher/Headers.js +83 -0
- package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/core/fetcher/HttpResponsePromise.js +90 -0
- package/dist/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/core/fetcher/RawResponse.js +40 -0
- package/dist/core/fetcher/Supplier.d.ts +4 -0
- package/dist/core/fetcher/Supplier.js +10 -0
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +5 -0
- package/dist/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getErrorResponseBody.js +30 -0
- package/dist/core/fetcher/getFetchFn.d.ts +1 -0
- package/dist/core/fetcher/getFetchFn.js +3 -0
- package/dist/core/fetcher/getHeader.d.ts +1 -0
- package/dist/core/fetcher/getHeader.js +8 -0
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +13 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +66 -0
- package/dist/core/fetcher/index.d.ts +13 -0
- package/dist/core/fetcher/index.js +7 -0
- package/dist/core/fetcher/makePassthroughRequest.d.ts +49 -0
- package/dist/core/fetcher/makePassthroughRequest.js +144 -0
- package/dist/core/fetcher/makeRequest.d.ts +6 -0
- package/dist/core/fetcher/makeRequest.js +57 -0
- package/dist/core/fetcher/redactUrl.d.ts +2 -0
- package/dist/core/fetcher/redactUrl.js +84 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +56 -0
- package/dist/core/fetcher/signals.d.ts +5 -0
- package/dist/core/fetcher/signals.js +29 -0
- package/dist/core/headers.d.ts +2 -0
- package/dist/core/headers.js +27 -0
- package/dist/core/index.d.ts +7 -0
- package/dist/core/index.js +7 -0
- package/dist/core/json.d.ts +15 -0
- package/dist/core/json.js +19 -0
- package/dist/core/logging/exports.d.ts +18 -0
- package/dist/core/logging/exports.js +9 -0
- package/dist/core/logging/index.d.ts +1 -0
- package/dist/core/logging/index.js +1 -0
- package/dist/core/logging/logger.d.ts +126 -0
- package/dist/core/logging/logger.js +140 -0
- package/dist/core/requestBody.d.ts +12 -0
- package/dist/core/requestBody.js +23 -0
- package/dist/core/runtime/index.d.ts +1 -0
- package/dist/core/runtime/index.js +1 -0
- package/dist/core/runtime/runtime.d.ts +28 -0
- package/dist/core/runtime/runtime.js +171 -0
- package/dist/core/stream/Stream.d.ts +100 -0
- package/dist/core/stream/Stream.js +428 -0
- package/dist/core/stream/index.d.ts +2 -0
- package/dist/core/stream/index.js +1 -0
- package/dist/core/url/QueryStringBuilder.d.ts +47 -0
- package/dist/core/url/QueryStringBuilder.js +78 -0
- package/dist/core/url/encodePathParam.d.ts +1 -0
- package/dist/core/url/encodePathParam.js +18 -0
- package/dist/core/url/index.d.ts +4 -0
- package/dist/core/url/index.js +4 -0
- package/dist/core/url/join.d.ts +1 -0
- package/dist/core/url/join.js +65 -0
- package/dist/core/url/qs.d.ts +7 -0
- package/dist/core/url/qs.js +76 -0
- package/dist/environments.d.ts +4 -0
- package/dist/environments.js +4 -0
- package/dist/errors/LusorError.d.ts +15 -0
- package/dist/errors/LusorError.js +38 -0
- package/dist/errors/LusorTimeoutError.d.ts +6 -0
- package/dist/errors/LusorTimeoutError.js +15 -0
- package/dist/errors/handleNonStatusCodeError.d.ts +2 -0
- package/dist/errors/handleNonStatusCodeError.js +32 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +2 -0
- package/dist/exports.d.ts +1 -0
- package/dist/exports.js +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +5 -0
- package/package.json +54 -4
|
@@ -0,0 +1,1241 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.js";
|
|
5
|
+
import { mergeAdditionalBodyParameters } from "../../../../core/requestBody.js";
|
|
6
|
+
import * as environments from "../../../../environments.js";
|
|
7
|
+
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.js";
|
|
8
|
+
import * as errors from "../../../../errors/index.js";
|
|
9
|
+
import * as Lusor from "../../../index.js";
|
|
10
|
+
import { LiveViewClient } from "../resources/liveView/client/Client.js";
|
|
11
|
+
/**
|
|
12
|
+
* Run records: list, inspect, stop, and read events and artifacts. Start
|
|
13
|
+
* a run with `POST /v1/agents/{id}/turns`, or without an agent through
|
|
14
|
+
* `POST /v1/workspaces/{workspaceId}/devices/{deviceId}/sessions`.
|
|
15
|
+
*/
|
|
16
|
+
export class SessionsClient {
|
|
17
|
+
_options;
|
|
18
|
+
_liveView;
|
|
19
|
+
constructor(options = {}) {
|
|
20
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
|
+
}
|
|
22
|
+
get liveView() {
|
|
23
|
+
return (this._liveView ??= new LiveViewClient(this._options));
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @param {Lusor.GetSessionsRequest} request
|
|
27
|
+
* @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
|
+
*
|
|
29
|
+
* @throws {@link Lusor.UnauthorizedError}
|
|
30
|
+
* @throws {@link Lusor.NotFoundError}
|
|
31
|
+
* @throws {@link errors.LusorError}
|
|
32
|
+
* @throws {@link errors.LusorTimeoutError}
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* await client.sessions.get({
|
|
36
|
+
* id: "id"
|
|
37
|
+
* })
|
|
38
|
+
*/
|
|
39
|
+
get(request, requestOptions) {
|
|
40
|
+
return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));
|
|
41
|
+
}
|
|
42
|
+
async __get(request, requestOptions) {
|
|
43
|
+
const { id } = request;
|
|
44
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
45
|
+
let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
46
|
+
const _response = await core.fetcher({
|
|
47
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
48
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
49
|
+
environments.LusorEnvironment.Production, `v1/sessions/${core.url.encodePathParam(id)}`),
|
|
50
|
+
method: "GET",
|
|
51
|
+
headers: _headers,
|
|
52
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
53
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
54
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
55
|
+
abortSignal: requestOptions?.abortSignal,
|
|
56
|
+
fetchFn: this._options?.fetch,
|
|
57
|
+
logging: this._options.logging,
|
|
58
|
+
});
|
|
59
|
+
if (_response.ok) {
|
|
60
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
61
|
+
}
|
|
62
|
+
if (_response.error.reason === "status-code") {
|
|
63
|
+
switch (_response.error.statusCode) {
|
|
64
|
+
case 401:
|
|
65
|
+
throw new Lusor.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
66
|
+
case 404:
|
|
67
|
+
throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
|
|
68
|
+
default:
|
|
69
|
+
throw new errors.LusorError({
|
|
70
|
+
statusCode: _response.error.statusCode,
|
|
71
|
+
body: _response.error.body,
|
|
72
|
+
rawResponse: _response.rawResponse,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/sessions/{id}");
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Sets the session's display name. Send `name: null` to clear it, so
|
|
80
|
+
* the name is derived from the prompt again. Returns the updated
|
|
81
|
+
* session.
|
|
82
|
+
*
|
|
83
|
+
* Workspace scope is resolved from `workspaceId` in the JSON body, or
|
|
84
|
+
* the workspace bound to the API key, so API-key callers may omit it.
|
|
85
|
+
*
|
|
86
|
+
* **Retries:** safe without an `Idempotency-Key`: the same patch converges on the same state.
|
|
87
|
+
*
|
|
88
|
+
* @param {Lusor.UpdateSessionInput} request
|
|
89
|
+
* @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link Lusor.BadRequestError}
|
|
92
|
+
* @throws {@link Lusor.UnauthorizedError}
|
|
93
|
+
* @throws {@link Lusor.NotFoundError}
|
|
94
|
+
* @throws {@link errors.LusorError}
|
|
95
|
+
* @throws {@link errors.LusorTimeoutError}
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* await client.sessions.update({
|
|
99
|
+
* id: "id"
|
|
100
|
+
* })
|
|
101
|
+
*/
|
|
102
|
+
update(request, requestOptions) {
|
|
103
|
+
return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
|
|
104
|
+
}
|
|
105
|
+
async __update(request, requestOptions) {
|
|
106
|
+
const { id, ..._body } = request;
|
|
107
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
108
|
+
let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
109
|
+
const _response = await core.fetcher({
|
|
110
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
111
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
112
|
+
environments.LusorEnvironment.Production, `v1/sessions/${core.url.encodePathParam(id)}`),
|
|
113
|
+
method: "PATCH",
|
|
114
|
+
headers: _headers,
|
|
115
|
+
contentType: "application/json",
|
|
116
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
117
|
+
requestType: "json",
|
|
118
|
+
body: mergeAdditionalBodyParameters(_body, requestOptions?.additionalBodyParameters),
|
|
119
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
120
|
+
maxRetries: 0,
|
|
121
|
+
abortSignal: requestOptions?.abortSignal,
|
|
122
|
+
fetchFn: this._options?.fetch,
|
|
123
|
+
logging: this._options.logging,
|
|
124
|
+
});
|
|
125
|
+
if (_response.ok) {
|
|
126
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
127
|
+
}
|
|
128
|
+
if (_response.error.reason === "status-code") {
|
|
129
|
+
switch (_response.error.statusCode) {
|
|
130
|
+
case 400:
|
|
131
|
+
throw new Lusor.BadRequestError(_response.error.body, _response.rawResponse);
|
|
132
|
+
case 401:
|
|
133
|
+
throw new Lusor.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
134
|
+
case 404:
|
|
135
|
+
throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
|
|
136
|
+
default:
|
|
137
|
+
throw new errors.LusorError({
|
|
138
|
+
statusCode: _response.error.statusCode,
|
|
139
|
+
body: _response.error.body,
|
|
140
|
+
rawResponse: _response.rawResponse,
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/v1/sessions/{id}");
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* @param {Lusor.EventsSessionsRequest} request
|
|
148
|
+
* @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
149
|
+
*
|
|
150
|
+
* @throws {@link Lusor.UnauthorizedError}
|
|
151
|
+
* @throws {@link Lusor.NotFoundError}
|
|
152
|
+
* @throws {@link errors.LusorError}
|
|
153
|
+
* @throws {@link errors.LusorTimeoutError}
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* await client.sessions.events({
|
|
157
|
+
* id: "id"
|
|
158
|
+
* })
|
|
159
|
+
*/
|
|
160
|
+
events(request, requestOptions) {
|
|
161
|
+
return core.HttpResponsePromise.fromPromise(this.__events(request, requestOptions));
|
|
162
|
+
}
|
|
163
|
+
async __events(request, requestOptions) {
|
|
164
|
+
const { id, since } = request;
|
|
165
|
+
const _queryParams = {
|
|
166
|
+
since: since != null ? since : undefined,
|
|
167
|
+
};
|
|
168
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
169
|
+
let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
170
|
+
const _response = await core.fetcher({
|
|
171
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
172
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
173
|
+
environments.LusorEnvironment.Production, `v1/sessions/${core.url.encodePathParam(id)}/events`),
|
|
174
|
+
method: "GET",
|
|
175
|
+
headers: _headers,
|
|
176
|
+
queryString: core.url
|
|
177
|
+
.queryBuilder()
|
|
178
|
+
.addMany(_queryParams)
|
|
179
|
+
.mergeAdditional(requestOptions?.queryParams)
|
|
180
|
+
.build(),
|
|
181
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
182
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
183
|
+
abortSignal: requestOptions?.abortSignal,
|
|
184
|
+
fetchFn: this._options?.fetch,
|
|
185
|
+
logging: this._options.logging,
|
|
186
|
+
});
|
|
187
|
+
if (_response.ok) {
|
|
188
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
189
|
+
}
|
|
190
|
+
if (_response.error.reason === "status-code") {
|
|
191
|
+
switch (_response.error.statusCode) {
|
|
192
|
+
case 401:
|
|
193
|
+
throw new Lusor.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
194
|
+
case 404:
|
|
195
|
+
throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
|
|
196
|
+
default:
|
|
197
|
+
throw new errors.LusorError({
|
|
198
|
+
statusCode: _response.error.statusCode,
|
|
199
|
+
body: _response.error.body,
|
|
200
|
+
rawResponse: _response.rawResponse,
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/sessions/{id}/events");
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* The replay view's JSON breakdown: the session detail and its full event
|
|
208
|
+
* list as one `lusor.session.v1` document. Included only on App tiers with
|
|
209
|
+
* the detailed step breakdown (Hobby and above); other tiers get 403
|
|
210
|
+
* `detailed_breakdown_not_in_plan` and no session data. The same
|
|
211
|
+
* retention window as `GET /v1/sessions/{id}` and `/events` applies.
|
|
212
|
+
*
|
|
213
|
+
* @param {Lusor.BreakdownSessionsRequest} request
|
|
214
|
+
* @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
215
|
+
*
|
|
216
|
+
* @throws {@link Lusor.UnauthorizedError}
|
|
217
|
+
* @throws {@link Lusor.ForbiddenError}
|
|
218
|
+
* @throws {@link Lusor.NotFoundError}
|
|
219
|
+
* @throws {@link Lusor.ServiceUnavailableError}
|
|
220
|
+
* @throws {@link errors.LusorError}
|
|
221
|
+
* @throws {@link errors.LusorTimeoutError}
|
|
222
|
+
*
|
|
223
|
+
* @example
|
|
224
|
+
* await client.sessions.breakdown({
|
|
225
|
+
* id: "id"
|
|
226
|
+
* })
|
|
227
|
+
*/
|
|
228
|
+
breakdown(request, requestOptions) {
|
|
229
|
+
return core.HttpResponsePromise.fromPromise(this.__breakdown(request, requestOptions));
|
|
230
|
+
}
|
|
231
|
+
async __breakdown(request, requestOptions) {
|
|
232
|
+
const { id } = request;
|
|
233
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
234
|
+
let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
235
|
+
const _response = await core.fetcher({
|
|
236
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
237
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
238
|
+
environments.LusorEnvironment.Production, `v1/sessions/${core.url.encodePathParam(id)}/breakdown`),
|
|
239
|
+
method: "GET",
|
|
240
|
+
headers: _headers,
|
|
241
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
242
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
243
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
244
|
+
abortSignal: requestOptions?.abortSignal,
|
|
245
|
+
fetchFn: this._options?.fetch,
|
|
246
|
+
logging: this._options.logging,
|
|
247
|
+
});
|
|
248
|
+
if (_response.ok) {
|
|
249
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
250
|
+
}
|
|
251
|
+
if (_response.error.reason === "status-code") {
|
|
252
|
+
switch (_response.error.statusCode) {
|
|
253
|
+
case 401:
|
|
254
|
+
throw new Lusor.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
255
|
+
case 403:
|
|
256
|
+
throw new Lusor.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
257
|
+
case 404:
|
|
258
|
+
throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
|
|
259
|
+
case 503:
|
|
260
|
+
throw new Lusor.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
261
|
+
default:
|
|
262
|
+
throw new errors.LusorError({
|
|
263
|
+
statusCode: _response.error.statusCode,
|
|
264
|
+
body: _response.error.body,
|
|
265
|
+
rawResponse: _response.rawResponse,
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/sessions/{id}/breakdown");
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Server-side filtering over the workspace's session history, newest
|
|
273
|
+
* first. `deviceId` and `status` are exact single-value matches; the
|
|
274
|
+
* filter parameters (`statuses`, `statusMode`,
|
|
275
|
+
* `nameContains`, `deviceContains`, `createdBefore`, `createdAfter`)
|
|
276
|
+
* are applied server-side so the result stays correct across
|
|
277
|
+
* `limit`/`offset` pages.
|
|
278
|
+
*
|
|
279
|
+
* @param {Lusor.ListSessionsRequest} request
|
|
280
|
+
* @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
281
|
+
*
|
|
282
|
+
* @throws {@link Lusor.BadRequestError}
|
|
283
|
+
* @throws {@link errors.LusorError}
|
|
284
|
+
* @throws {@link errors.LusorTimeoutError}
|
|
285
|
+
*
|
|
286
|
+
* @example
|
|
287
|
+
* await client.sessions.list()
|
|
288
|
+
*/
|
|
289
|
+
list(request = {}, requestOptions) {
|
|
290
|
+
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
291
|
+
}
|
|
292
|
+
async __list(request = {}, requestOptions) {
|
|
293
|
+
const { workspaceId, deviceId, status, statuses, statusMode, nameContains, deviceContains, createdBefore, createdAfter, limit, offset, } = request;
|
|
294
|
+
const _queryParams = {
|
|
295
|
+
workspaceId,
|
|
296
|
+
deviceId,
|
|
297
|
+
status,
|
|
298
|
+
statuses,
|
|
299
|
+
statusMode: statusMode != null ? statusMode : undefined,
|
|
300
|
+
nameContains,
|
|
301
|
+
deviceContains,
|
|
302
|
+
createdBefore,
|
|
303
|
+
createdAfter,
|
|
304
|
+
limit,
|
|
305
|
+
offset,
|
|
306
|
+
};
|
|
307
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
308
|
+
let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
309
|
+
const _response = await core.fetcher({
|
|
310
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
311
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
312
|
+
environments.LusorEnvironment.Production, "v1/sessions"),
|
|
313
|
+
method: "GET",
|
|
314
|
+
headers: _headers,
|
|
315
|
+
queryString: core.url
|
|
316
|
+
.queryBuilder()
|
|
317
|
+
.addMany(_queryParams)
|
|
318
|
+
.mergeAdditional(requestOptions?.queryParams)
|
|
319
|
+
.build(),
|
|
320
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
321
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
322
|
+
abortSignal: requestOptions?.abortSignal,
|
|
323
|
+
fetchFn: this._options?.fetch,
|
|
324
|
+
logging: this._options.logging,
|
|
325
|
+
});
|
|
326
|
+
if (_response.ok) {
|
|
327
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
328
|
+
}
|
|
329
|
+
if (_response.error.reason === "status-code") {
|
|
330
|
+
switch (_response.error.statusCode) {
|
|
331
|
+
case 400:
|
|
332
|
+
throw new Lusor.BadRequestError(_response.error.body, _response.rawResponse);
|
|
333
|
+
default:
|
|
334
|
+
throw new errors.LusorError({
|
|
335
|
+
statusCode: _response.error.statusCode,
|
|
336
|
+
body: _response.error.body,
|
|
337
|
+
rawResponse: _response.rawResponse,
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/sessions");
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* How long the workspace's plan keeps session history and recordings,
|
|
345
|
+
* with the server's clock. A session older than `cutoff` answers
|
|
346
|
+
* `403 upgrade_required` on its reads.
|
|
347
|
+
*
|
|
348
|
+
* @param {Lusor.HistoryPolicySessionsRequest} request
|
|
349
|
+
* @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
350
|
+
*
|
|
351
|
+
* @throws {@link Lusor.BadRequestError}
|
|
352
|
+
* @throws {@link Lusor.UnauthorizedError}
|
|
353
|
+
* @throws {@link Lusor.NotFoundError}
|
|
354
|
+
* @throws {@link errors.LusorError}
|
|
355
|
+
* @throws {@link errors.LusorTimeoutError}
|
|
356
|
+
*
|
|
357
|
+
* @example
|
|
358
|
+
* await client.sessions.historyPolicy()
|
|
359
|
+
*/
|
|
360
|
+
historyPolicy(request = {}, requestOptions) {
|
|
361
|
+
return core.HttpResponsePromise.fromPromise(this.__historyPolicy(request, requestOptions));
|
|
362
|
+
}
|
|
363
|
+
async __historyPolicy(request = {}, requestOptions) {
|
|
364
|
+
const { workspaceId } = request;
|
|
365
|
+
const _queryParams = {
|
|
366
|
+
workspaceId,
|
|
367
|
+
};
|
|
368
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
369
|
+
let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
370
|
+
const _response = await core.fetcher({
|
|
371
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
372
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
373
|
+
environments.LusorEnvironment.Production, "v1/sessions/history-policy"),
|
|
374
|
+
method: "GET",
|
|
375
|
+
headers: _headers,
|
|
376
|
+
queryString: core.url
|
|
377
|
+
.queryBuilder()
|
|
378
|
+
.addMany(_queryParams)
|
|
379
|
+
.mergeAdditional(requestOptions?.queryParams)
|
|
380
|
+
.build(),
|
|
381
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
382
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
383
|
+
abortSignal: requestOptions?.abortSignal,
|
|
384
|
+
fetchFn: this._options?.fetch,
|
|
385
|
+
logging: this._options.logging,
|
|
386
|
+
});
|
|
387
|
+
if (_response.ok) {
|
|
388
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
389
|
+
}
|
|
390
|
+
if (_response.error.reason === "status-code") {
|
|
391
|
+
switch (_response.error.statusCode) {
|
|
392
|
+
case 400:
|
|
393
|
+
throw new Lusor.BadRequestError(_response.error.body, _response.rawResponse);
|
|
394
|
+
case 401:
|
|
395
|
+
throw new Lusor.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
396
|
+
case 404:
|
|
397
|
+
throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
|
|
398
|
+
default:
|
|
399
|
+
throw new errors.LusorError({
|
|
400
|
+
statusCode: _response.error.statusCode,
|
|
401
|
+
body: _response.error.body,
|
|
402
|
+
rawResponse: _response.rawResponse,
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/sessions/history-policy");
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* @deprecated
|
|
410
|
+
*
|
|
411
|
+
* The original session shape, kept for older clients. Use
|
|
412
|
+
* `GET /v1/sessions/{id}`.
|
|
413
|
+
*
|
|
414
|
+
* @param {Lusor.GetLegacySessionsRequest} request
|
|
415
|
+
* @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
416
|
+
*
|
|
417
|
+
* @throws {@link Lusor.BadRequestError}
|
|
418
|
+
* @throws {@link Lusor.UnauthorizedError}
|
|
419
|
+
* @throws {@link Lusor.NotFoundError}
|
|
420
|
+
* @throws {@link errors.LusorError}
|
|
421
|
+
* @throws {@link errors.LusorTimeoutError}
|
|
422
|
+
*
|
|
423
|
+
* @example
|
|
424
|
+
* await client.sessions.getLegacy({
|
|
425
|
+
* id: "id"
|
|
426
|
+
* })
|
|
427
|
+
*/
|
|
428
|
+
getLegacy(request, requestOptions) {
|
|
429
|
+
return core.HttpResponsePromise.fromPromise(this.__getLegacy(request, requestOptions));
|
|
430
|
+
}
|
|
431
|
+
async __getLegacy(request, requestOptions) {
|
|
432
|
+
const { id, workspaceId } = request;
|
|
433
|
+
const _queryParams = {
|
|
434
|
+
workspaceId,
|
|
435
|
+
};
|
|
436
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
437
|
+
let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
438
|
+
const _response = await core.fetcher({
|
|
439
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
440
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
441
|
+
environments.LusorEnvironment.Production, `v1/sessions/${core.url.encodePathParam(id)}/legacy`),
|
|
442
|
+
method: "GET",
|
|
443
|
+
headers: _headers,
|
|
444
|
+
queryString: core.url
|
|
445
|
+
.queryBuilder()
|
|
446
|
+
.addMany(_queryParams)
|
|
447
|
+
.mergeAdditional(requestOptions?.queryParams)
|
|
448
|
+
.build(),
|
|
449
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
450
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
451
|
+
abortSignal: requestOptions?.abortSignal,
|
|
452
|
+
fetchFn: this._options?.fetch,
|
|
453
|
+
logging: this._options.logging,
|
|
454
|
+
});
|
|
455
|
+
if (_response.ok) {
|
|
456
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
457
|
+
}
|
|
458
|
+
if (_response.error.reason === "status-code") {
|
|
459
|
+
switch (_response.error.statusCode) {
|
|
460
|
+
case 400:
|
|
461
|
+
throw new Lusor.BadRequestError(_response.error.body, _response.rawResponse);
|
|
462
|
+
case 401:
|
|
463
|
+
throw new Lusor.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
464
|
+
case 404:
|
|
465
|
+
throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
|
|
466
|
+
default:
|
|
467
|
+
throw new errors.LusorError({
|
|
468
|
+
statusCode: _response.error.statusCode,
|
|
469
|
+
body: _response.error.body,
|
|
470
|
+
rawResponse: _response.rawResponse,
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/sessions/{id}/legacy");
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* @param {Lusor.StatusSessionsRequest} request
|
|
478
|
+
* @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
479
|
+
*
|
|
480
|
+
* @throws {@link Lusor.NotFoundError}
|
|
481
|
+
* @throws {@link errors.LusorError}
|
|
482
|
+
* @throws {@link errors.LusorTimeoutError}
|
|
483
|
+
*
|
|
484
|
+
* @example
|
|
485
|
+
* await client.sessions.status({
|
|
486
|
+
* id: "id"
|
|
487
|
+
* })
|
|
488
|
+
*/
|
|
489
|
+
status(request, requestOptions) {
|
|
490
|
+
return core.HttpResponsePromise.fromPromise(this.__status(request, requestOptions));
|
|
491
|
+
}
|
|
492
|
+
async __status(request, requestOptions) {
|
|
493
|
+
const { id, workspaceId } = request;
|
|
494
|
+
const _queryParams = {
|
|
495
|
+
workspaceId,
|
|
496
|
+
};
|
|
497
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
498
|
+
let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
499
|
+
const _response = await core.fetcher({
|
|
500
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
501
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
502
|
+
environments.LusorEnvironment.Production, `v1/sessions/${core.url.encodePathParam(id)}/status`),
|
|
503
|
+
method: "GET",
|
|
504
|
+
headers: _headers,
|
|
505
|
+
queryString: core.url
|
|
506
|
+
.queryBuilder()
|
|
507
|
+
.addMany(_queryParams)
|
|
508
|
+
.mergeAdditional(requestOptions?.queryParams)
|
|
509
|
+
.build(),
|
|
510
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
511
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
512
|
+
abortSignal: requestOptions?.abortSignal,
|
|
513
|
+
fetchFn: this._options?.fetch,
|
|
514
|
+
logging: this._options.logging,
|
|
515
|
+
});
|
|
516
|
+
if (_response.ok) {
|
|
517
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
518
|
+
}
|
|
519
|
+
if (_response.error.reason === "status-code") {
|
|
520
|
+
switch (_response.error.statusCode) {
|
|
521
|
+
case 404:
|
|
522
|
+
throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
|
|
523
|
+
default:
|
|
524
|
+
throw new errors.LusorError({
|
|
525
|
+
statusCode: _response.error.statusCode,
|
|
526
|
+
body: _response.error.body,
|
|
527
|
+
rawResponse: _response.rawResponse,
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/sessions/{id}/status");
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* @param {Lusor.ArtifactsSessionsRequest} request
|
|
535
|
+
* @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
536
|
+
*
|
|
537
|
+
* @throws {@link Lusor.NotFoundError}
|
|
538
|
+
* @throws {@link errors.LusorError}
|
|
539
|
+
* @throws {@link errors.LusorTimeoutError}
|
|
540
|
+
*
|
|
541
|
+
* @example
|
|
542
|
+
* await client.sessions.artifacts({
|
|
543
|
+
* id: "id"
|
|
544
|
+
* })
|
|
545
|
+
*/
|
|
546
|
+
artifacts(request, requestOptions) {
|
|
547
|
+
return core.HttpResponsePromise.fromPromise(this.__artifacts(request, requestOptions));
|
|
548
|
+
}
|
|
549
|
+
async __artifacts(request, requestOptions) {
|
|
550
|
+
const { id, workspaceId } = request;
|
|
551
|
+
const _queryParams = {
|
|
552
|
+
workspaceId,
|
|
553
|
+
};
|
|
554
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
555
|
+
let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
556
|
+
const _response = await core.fetcher({
|
|
557
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
558
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
559
|
+
environments.LusorEnvironment.Production, `v1/sessions/${core.url.encodePathParam(id)}/artifacts`),
|
|
560
|
+
method: "GET",
|
|
561
|
+
headers: _headers,
|
|
562
|
+
queryString: core.url
|
|
563
|
+
.queryBuilder()
|
|
564
|
+
.addMany(_queryParams)
|
|
565
|
+
.mergeAdditional(requestOptions?.queryParams)
|
|
566
|
+
.build(),
|
|
567
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
568
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
569
|
+
abortSignal: requestOptions?.abortSignal,
|
|
570
|
+
fetchFn: this._options?.fetch,
|
|
571
|
+
logging: this._options.logging,
|
|
572
|
+
});
|
|
573
|
+
if (_response.ok) {
|
|
574
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
575
|
+
}
|
|
576
|
+
if (_response.error.reason === "status-code") {
|
|
577
|
+
switch (_response.error.statusCode) {
|
|
578
|
+
case 404:
|
|
579
|
+
throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
|
|
580
|
+
default:
|
|
581
|
+
throw new errors.LusorError({
|
|
582
|
+
statusCode: _response.error.statusCode,
|
|
583
|
+
body: _response.error.body,
|
|
584
|
+
rawResponse: _response.rawResponse,
|
|
585
|
+
});
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/sessions/{id}/artifacts");
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* Idempotent cancel. Repeated calls after a successful cancel return
|
|
592
|
+
* `status: "noop"`.
|
|
593
|
+
*
|
|
594
|
+
* Workspace scope is resolved in this order (first non-empty wins):
|
|
595
|
+
* `workspaceId` in the JSON body, then `?workspaceId=`, then the
|
|
596
|
+
* workspace bound to the API key, so API-key callers may omit it.
|
|
597
|
+
*
|
|
598
|
+
* **Retries:** safe without an `Idempotency-Key`: a repeat converges on the same stopped state.
|
|
599
|
+
*
|
|
600
|
+
* @param {Lusor.StopSessionsRequest} request
|
|
601
|
+
* @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
602
|
+
*
|
|
603
|
+
* @throws {@link Lusor.BadRequestError}
|
|
604
|
+
* @throws {@link Lusor.NotFoundError}
|
|
605
|
+
* @throws {@link errors.LusorError}
|
|
606
|
+
* @throws {@link errors.LusorTimeoutError}
|
|
607
|
+
*
|
|
608
|
+
* @example
|
|
609
|
+
* await client.sessions.stop({
|
|
610
|
+
* id: "id",
|
|
611
|
+
* body: {}
|
|
612
|
+
* })
|
|
613
|
+
*/
|
|
614
|
+
stop(request, requestOptions) {
|
|
615
|
+
return core.HttpResponsePromise.fromPromise(this.__stop(request, requestOptions));
|
|
616
|
+
}
|
|
617
|
+
async __stop(request, requestOptions) {
|
|
618
|
+
const { id, workspaceId, body: _body } = request;
|
|
619
|
+
const _queryParams = {
|
|
620
|
+
workspaceId,
|
|
621
|
+
};
|
|
622
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
623
|
+
let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
624
|
+
const _response = await core.fetcher({
|
|
625
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
626
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
627
|
+
environments.LusorEnvironment.Production, `v1/sessions/${core.url.encodePathParam(id)}/stop`),
|
|
628
|
+
method: "POST",
|
|
629
|
+
headers: _headers,
|
|
630
|
+
contentType: "application/json",
|
|
631
|
+
queryString: core.url
|
|
632
|
+
.queryBuilder()
|
|
633
|
+
.addMany(_queryParams)
|
|
634
|
+
.mergeAdditional(requestOptions?.queryParams)
|
|
635
|
+
.build(),
|
|
636
|
+
requestType: "json",
|
|
637
|
+
body: mergeAdditionalBodyParameters(_body, requestOptions?.additionalBodyParameters),
|
|
638
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
639
|
+
maxRetries: 0,
|
|
640
|
+
abortSignal: requestOptions?.abortSignal,
|
|
641
|
+
fetchFn: this._options?.fetch,
|
|
642
|
+
logging: this._options.logging,
|
|
643
|
+
});
|
|
644
|
+
if (_response.ok) {
|
|
645
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
646
|
+
}
|
|
647
|
+
if (_response.error.reason === "status-code") {
|
|
648
|
+
switch (_response.error.statusCode) {
|
|
649
|
+
case 400:
|
|
650
|
+
throw new Lusor.BadRequestError(_response.error.body, _response.rawResponse);
|
|
651
|
+
case 404:
|
|
652
|
+
throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
|
|
653
|
+
default:
|
|
654
|
+
throw new errors.LusorError({
|
|
655
|
+
statusCode: _response.error.statusCode,
|
|
656
|
+
body: _response.error.body,
|
|
657
|
+
rawResponse: _response.rawResponse,
|
|
658
|
+
});
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/sessions/{id}/stop");
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* The UI tree the agent saw at one step of the run, as the JSON array
|
|
665
|
+
* of nodes it was captured as. `file` is the step index followed by
|
|
666
|
+
* `.json`, for example `0.json`. Content follows the workspace's
|
|
667
|
+
* history window: a state older than the window returns `404`.
|
|
668
|
+
*
|
|
669
|
+
* @param {Lusor.GetUiStateSessionsRequest} request
|
|
670
|
+
* @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
671
|
+
*
|
|
672
|
+
* @throws {@link Lusor.BadRequestError}
|
|
673
|
+
* @throws {@link Lusor.UnauthorizedError}
|
|
674
|
+
* @throws {@link Lusor.NotFoundError}
|
|
675
|
+
* @throws {@link Lusor.BadGatewayError}
|
|
676
|
+
* @throws {@link Lusor.ServiceUnavailableError}
|
|
677
|
+
* @throws {@link errors.LusorError}
|
|
678
|
+
* @throws {@link errors.LusorTimeoutError}
|
|
679
|
+
*
|
|
680
|
+
* @example
|
|
681
|
+
* await client.sessions.getUiState({
|
|
682
|
+
* id: "id",
|
|
683
|
+
* file: "file"
|
|
684
|
+
* })
|
|
685
|
+
*/
|
|
686
|
+
getUiState(request, requestOptions) {
|
|
687
|
+
return core.HttpResponsePromise.fromPromise(this.__getUiState(request, requestOptions));
|
|
688
|
+
}
|
|
689
|
+
async __getUiState(request, requestOptions) {
|
|
690
|
+
const { id, file, workspaceId } = request;
|
|
691
|
+
const _queryParams = {
|
|
692
|
+
workspaceId,
|
|
693
|
+
};
|
|
694
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
695
|
+
let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
696
|
+
const _response = await core.fetcher({
|
|
697
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
698
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
699
|
+
environments.LusorEnvironment.Production, `v1/sessions/${core.url.encodePathParam(id)}/ui-states/${core.url.encodePathParam(file)}`),
|
|
700
|
+
method: "GET",
|
|
701
|
+
headers: _headers,
|
|
702
|
+
queryString: core.url
|
|
703
|
+
.queryBuilder()
|
|
704
|
+
.addMany(_queryParams)
|
|
705
|
+
.mergeAdditional(requestOptions?.queryParams)
|
|
706
|
+
.build(),
|
|
707
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
708
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
709
|
+
abortSignal: requestOptions?.abortSignal,
|
|
710
|
+
fetchFn: this._options?.fetch,
|
|
711
|
+
logging: this._options.logging,
|
|
712
|
+
});
|
|
713
|
+
if (_response.ok) {
|
|
714
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
715
|
+
}
|
|
716
|
+
if (_response.error.reason === "status-code") {
|
|
717
|
+
switch (_response.error.statusCode) {
|
|
718
|
+
case 400:
|
|
719
|
+
throw new Lusor.BadRequestError(_response.error.body, _response.rawResponse);
|
|
720
|
+
case 401:
|
|
721
|
+
throw new Lusor.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
722
|
+
case 404:
|
|
723
|
+
throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
|
|
724
|
+
case 502:
|
|
725
|
+
throw new Lusor.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
726
|
+
case 503:
|
|
727
|
+
throw new Lusor.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
728
|
+
default:
|
|
729
|
+
throw new errors.LusorError({
|
|
730
|
+
statusCode: _response.error.statusCode,
|
|
731
|
+
body: _response.error.body,
|
|
732
|
+
rawResponse: _response.rawResponse,
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/sessions/{id}/ui-states/{file}");
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
* Removes a turn that is waiting behind a running one, before it
|
|
740
|
+
* starts. `invocationId` is the `invocationId` of the `202`
|
|
741
|
+
* `{ queued: true }` response of `POST /v1/sessions/{id}/continue` or
|
|
742
|
+
* `POST /v1/agents/{id}/turns`. Idempotent: cancelling an
|
|
743
|
+
* already-cancelled entry returns `alreadyCancelled: true`. An unknown
|
|
744
|
+
* `invocationId` returns `404`.
|
|
745
|
+
*
|
|
746
|
+
* Workspace scope is resolved from `?workspaceId=` or the workspace
|
|
747
|
+
* bound to the API key.
|
|
748
|
+
*
|
|
749
|
+
* **Retries:** safe without an `Idempotency-Key`: a repeat converges on the same cancelled state.
|
|
750
|
+
*
|
|
751
|
+
* @param {Lusor.CancelQueuedSessionsRequest} request
|
|
752
|
+
* @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
753
|
+
*
|
|
754
|
+
* @throws {@link Lusor.BadRequestError}
|
|
755
|
+
* @throws {@link Lusor.UnauthorizedError}
|
|
756
|
+
* @throws {@link Lusor.NotFoundError}
|
|
757
|
+
* @throws {@link Lusor.BadGatewayError}
|
|
758
|
+
* @throws {@link errors.LusorError}
|
|
759
|
+
* @throws {@link errors.LusorTimeoutError}
|
|
760
|
+
*
|
|
761
|
+
* @example
|
|
762
|
+
* await client.sessions.cancelQueued({
|
|
763
|
+
* id: "id",
|
|
764
|
+
* invocationId: "invocationId"
|
|
765
|
+
* })
|
|
766
|
+
*/
|
|
767
|
+
cancelQueued(request, requestOptions) {
|
|
768
|
+
return core.HttpResponsePromise.fromPromise(this.__cancelQueued(request, requestOptions));
|
|
769
|
+
}
|
|
770
|
+
async __cancelQueued(request, requestOptions) {
|
|
771
|
+
const { id, invocationId, workspaceId } = request;
|
|
772
|
+
const _queryParams = {
|
|
773
|
+
workspaceId,
|
|
774
|
+
};
|
|
775
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
776
|
+
let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
777
|
+
const _response = await core.fetcher({
|
|
778
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
779
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
780
|
+
environments.LusorEnvironment.Production, `v1/sessions/${core.url.encodePathParam(id)}/queue/${core.url.encodePathParam(invocationId)}`),
|
|
781
|
+
method: "DELETE",
|
|
782
|
+
headers: _headers,
|
|
783
|
+
queryString: core.url
|
|
784
|
+
.queryBuilder()
|
|
785
|
+
.addMany(_queryParams)
|
|
786
|
+
.mergeAdditional(requestOptions?.queryParams)
|
|
787
|
+
.build(),
|
|
788
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
789
|
+
maxRetries: 0,
|
|
790
|
+
abortSignal: requestOptions?.abortSignal,
|
|
791
|
+
fetchFn: this._options?.fetch,
|
|
792
|
+
logging: this._options.logging,
|
|
793
|
+
});
|
|
794
|
+
if (_response.ok) {
|
|
795
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
796
|
+
}
|
|
797
|
+
if (_response.error.reason === "status-code") {
|
|
798
|
+
switch (_response.error.statusCode) {
|
|
799
|
+
case 400:
|
|
800
|
+
throw new Lusor.BadRequestError(_response.error.body, _response.rawResponse);
|
|
801
|
+
case 401:
|
|
802
|
+
throw new Lusor.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
803
|
+
case 404:
|
|
804
|
+
throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
|
|
805
|
+
case 502:
|
|
806
|
+
throw new Lusor.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
807
|
+
default:
|
|
808
|
+
throw new errors.LusorError({
|
|
809
|
+
statusCode: _response.error.statusCode,
|
|
810
|
+
body: _response.error.body,
|
|
811
|
+
rawResponse: _response.rawResponse,
|
|
812
|
+
});
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/v1/sessions/{id}/queue/{invocationId}");
|
|
816
|
+
}
|
|
817
|
+
/**
|
|
818
|
+
* Continues the session with a new prompt on the same transcript. The
|
|
819
|
+
* follow-up runs on the session's phone (for an agent's session, the
|
|
820
|
+
* phone the agent has now). If the session is still running, the
|
|
821
|
+
* follow-up is queued behind it (`queued: true`) and runs when the
|
|
822
|
+
* current run ends. Continuing a finished session is allowed.
|
|
823
|
+
*
|
|
824
|
+
* Send an `Idempotency-Key` header to make retries safe: the same key
|
|
825
|
+
* attaches to the original follow-up instead of sending a second one.
|
|
826
|
+
*
|
|
827
|
+
* Workspace scope: `workspaceId` in the body, otherwise the workspace
|
|
828
|
+
* bound to the API key.
|
|
829
|
+
*
|
|
830
|
+
* @param {Lusor.ContinueSessionInput} request
|
|
831
|
+
* @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
832
|
+
*
|
|
833
|
+
* @throws {@link Lusor.BadRequestError}
|
|
834
|
+
* @throws {@link Lusor.UnauthorizedError}
|
|
835
|
+
* @throws {@link Lusor.PaymentRequiredError}
|
|
836
|
+
* @throws {@link Lusor.NotFoundError}
|
|
837
|
+
* @throws {@link Lusor.ConflictError}
|
|
838
|
+
* @throws {@link Lusor.TooManyRequestsError}
|
|
839
|
+
* @throws {@link Lusor.BadGatewayError}
|
|
840
|
+
* @throws {@link errors.LusorError}
|
|
841
|
+
* @throws {@link errors.LusorTimeoutError}
|
|
842
|
+
*
|
|
843
|
+
* @example
|
|
844
|
+
* await client.sessions.continue({
|
|
845
|
+
* id: "id",
|
|
846
|
+
* prompt: "prompt"
|
|
847
|
+
* })
|
|
848
|
+
*/
|
|
849
|
+
continue(request, requestOptions) {
|
|
850
|
+
return core.HttpResponsePromise.fromPromise(this.__continue(request, requestOptions));
|
|
851
|
+
}
|
|
852
|
+
async __continue(request, requestOptions) {
|
|
853
|
+
const { id, "Idempotency-Key": idempotencyKey, ..._body } = request;
|
|
854
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
855
|
+
let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, mergeOnlyDefinedHeaders({ "Idempotency-Key": idempotencyKey }), requestOptions?.headers);
|
|
856
|
+
const _response = await core.fetcher({
|
|
857
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
858
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
859
|
+
environments.LusorEnvironment.Production, `v1/sessions/${core.url.encodePathParam(id)}/continue`),
|
|
860
|
+
method: "POST",
|
|
861
|
+
headers: _headers,
|
|
862
|
+
contentType: "application/json",
|
|
863
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
864
|
+
requestType: "json",
|
|
865
|
+
body: mergeAdditionalBodyParameters(_body, requestOptions?.additionalBodyParameters),
|
|
866
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
867
|
+
maxRetries: 0,
|
|
868
|
+
abortSignal: requestOptions?.abortSignal,
|
|
869
|
+
fetchFn: this._options?.fetch,
|
|
870
|
+
logging: this._options.logging,
|
|
871
|
+
});
|
|
872
|
+
if (_response.ok) {
|
|
873
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
874
|
+
}
|
|
875
|
+
if (_response.error.reason === "status-code") {
|
|
876
|
+
switch (_response.error.statusCode) {
|
|
877
|
+
case 400:
|
|
878
|
+
throw new Lusor.BadRequestError(_response.error.body, _response.rawResponse);
|
|
879
|
+
case 401:
|
|
880
|
+
throw new Lusor.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
881
|
+
case 402:
|
|
882
|
+
throw new Lusor.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
883
|
+
case 404:
|
|
884
|
+
throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
|
|
885
|
+
case 409:
|
|
886
|
+
throw new Lusor.ConflictError(_response.error.body, _response.rawResponse);
|
|
887
|
+
case 429:
|
|
888
|
+
throw new Lusor.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
889
|
+
case 502:
|
|
890
|
+
throw new Lusor.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
891
|
+
default:
|
|
892
|
+
throw new errors.LusorError({
|
|
893
|
+
statusCode: _response.error.statusCode,
|
|
894
|
+
body: _response.error.body,
|
|
895
|
+
rawResponse: _response.rawResponse,
|
|
896
|
+
});
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/sessions/{id}/continue");
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* When the agent asks a question, the run pauses: the session's status
|
|
903
|
+
* becomes `awaiting_human` and its events include a `hitl_requested`
|
|
904
|
+
* event whose `data.correlation_id` identifies the question
|
|
905
|
+
* (`data.question`, and `data.options` when the agent offered
|
|
906
|
+
* answer labels). Post the answer here; the run resumes with your text
|
|
907
|
+
* as the reply. A question stays answerable until the session ends or
|
|
908
|
+
* a newer message supersedes it.
|
|
909
|
+
*
|
|
910
|
+
* Only plain questions can be answered here. A request for a secret
|
|
911
|
+
* (a `hitl_requested` event whose `data.kind` is `credential` or
|
|
912
|
+
* `2fa`) is answered only in the Lusor dashboard: any reply to it
|
|
913
|
+
* made with an API key returns `403` `secure_ask_dashboard_only` and
|
|
914
|
+
* stores nothing.
|
|
915
|
+
*
|
|
916
|
+
* A run created with an API key never reaches that state: when the
|
|
917
|
+
* agent asks for a secret, the run ends as `failed` with `error`
|
|
918
|
+
* `secret_required:<name>` (see `SessionV2.error`) instead of
|
|
919
|
+
* pausing, so there is nothing to answer. Save the secret in the
|
|
920
|
+
* workspace, then retry the run naming it in `secrets`.
|
|
921
|
+
*
|
|
922
|
+
* Retrying with the same text is idempotent (`idempotent: true`). A
|
|
923
|
+
* different answer to a question that was already answered returns
|
|
924
|
+
* `409`; the first answer stands.
|
|
925
|
+
*
|
|
926
|
+
* Workspace scope: `workspaceId` in the body, otherwise the workspace
|
|
927
|
+
* bound to the API key.
|
|
928
|
+
*
|
|
929
|
+
* **Retries:** safe without an `Idempotency-Key`: an answer is keyed by its `correlationId`, so a repeat is delivered once.
|
|
930
|
+
*
|
|
931
|
+
* @param {Lusor.AnswerHitlInput} request
|
|
932
|
+
* @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
933
|
+
*
|
|
934
|
+
* @throws {@link Lusor.BadRequestError}
|
|
935
|
+
* @throws {@link Lusor.UnauthorizedError}
|
|
936
|
+
* @throws {@link Lusor.PaymentRequiredError}
|
|
937
|
+
* @throws {@link Lusor.ForbiddenError}
|
|
938
|
+
* @throws {@link Lusor.NotFoundError}
|
|
939
|
+
* @throws {@link Lusor.ConflictError}
|
|
940
|
+
* @throws {@link Lusor.GoneError}
|
|
941
|
+
* @throws {@link Lusor.TooManyRequestsError}
|
|
942
|
+
* @throws {@link Lusor.InternalServerError}
|
|
943
|
+
* @throws {@link Lusor.BadGatewayError}
|
|
944
|
+
* @throws {@link errors.LusorError}
|
|
945
|
+
* @throws {@link errors.LusorTimeoutError}
|
|
946
|
+
*
|
|
947
|
+
* @example
|
|
948
|
+
* await client.sessions.answer({
|
|
949
|
+
* id: "id",
|
|
950
|
+
* correlation_id: "correlation_id",
|
|
951
|
+
* response: "response"
|
|
952
|
+
* })
|
|
953
|
+
*/
|
|
954
|
+
answer(request, requestOptions) {
|
|
955
|
+
return core.HttpResponsePromise.fromPromise(this.__answer(request, requestOptions));
|
|
956
|
+
}
|
|
957
|
+
async __answer(request, requestOptions) {
|
|
958
|
+
const { id, ..._body } = request;
|
|
959
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
960
|
+
let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
961
|
+
const _response = await core.fetcher({
|
|
962
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
963
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
964
|
+
environments.LusorEnvironment.Production, `v1/sessions/${core.url.encodePathParam(id)}/hitl`),
|
|
965
|
+
method: "POST",
|
|
966
|
+
headers: _headers,
|
|
967
|
+
contentType: "application/json",
|
|
968
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
969
|
+
requestType: "json",
|
|
970
|
+
body: mergeAdditionalBodyParameters(_body, requestOptions?.additionalBodyParameters),
|
|
971
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
972
|
+
maxRetries: 0,
|
|
973
|
+
abortSignal: requestOptions?.abortSignal,
|
|
974
|
+
fetchFn: this._options?.fetch,
|
|
975
|
+
logging: this._options.logging,
|
|
976
|
+
});
|
|
977
|
+
if (_response.ok) {
|
|
978
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
979
|
+
}
|
|
980
|
+
if (_response.error.reason === "status-code") {
|
|
981
|
+
switch (_response.error.statusCode) {
|
|
982
|
+
case 400:
|
|
983
|
+
throw new Lusor.BadRequestError(_response.error.body, _response.rawResponse);
|
|
984
|
+
case 401:
|
|
985
|
+
throw new Lusor.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
986
|
+
case 402:
|
|
987
|
+
throw new Lusor.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
988
|
+
case 403:
|
|
989
|
+
throw new Lusor.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
990
|
+
case 404:
|
|
991
|
+
throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
|
|
992
|
+
case 409:
|
|
993
|
+
throw new Lusor.ConflictError(_response.error.body, _response.rawResponse);
|
|
994
|
+
case 410:
|
|
995
|
+
throw new Lusor.GoneError(_response.error.body, _response.rawResponse);
|
|
996
|
+
case 429:
|
|
997
|
+
throw new Lusor.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
998
|
+
case 500:
|
|
999
|
+
throw new Lusor.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1000
|
+
case 502:
|
|
1001
|
+
throw new Lusor.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
1002
|
+
default:
|
|
1003
|
+
throw new errors.LusorError({
|
|
1004
|
+
statusCode: _response.error.statusCode,
|
|
1005
|
+
body: _response.error.body,
|
|
1006
|
+
rawResponse: _response.rawResponse,
|
|
1007
|
+
});
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/sessions/{id}/hitl");
|
|
1011
|
+
}
|
|
1012
|
+
/**
|
|
1013
|
+
* Returns signed URLs for the recording's MP4 segments, in order.
|
|
1014
|
+
* URLs expire at each segment's `expires_at` (Unix seconds); fetch
|
|
1015
|
+
* this endpoint again for fresh ones.
|
|
1016
|
+
*
|
|
1017
|
+
* `recording_status` is always present:
|
|
1018
|
+
*
|
|
1019
|
+
* - `absent`: the session has no recording.
|
|
1020
|
+
* - `pending`: the recording is still being finalized. Poll again.
|
|
1021
|
+
* - `complete`: finished. When `data` is present it is always
|
|
1022
|
+
* `complete`.
|
|
1023
|
+
* - `failed`: finalization failed; `recording_status_reason` says
|
|
1024
|
+
* why.
|
|
1025
|
+
*
|
|
1026
|
+
* `data` is null until there is playable media. A recording follows
|
|
1027
|
+
* the workspace's history window: past it, `402` with
|
|
1028
|
+
* `reason: "history_window"`, unless the plan includes video replay
|
|
1029
|
+
* or the recording was made on a paid Lusor Phone plan.
|
|
1030
|
+
*
|
|
1031
|
+
* @param {Lusor.RecordingSessionsRequest} request
|
|
1032
|
+
* @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1033
|
+
*
|
|
1034
|
+
* @throws {@link Lusor.UnauthorizedError}
|
|
1035
|
+
* @throws {@link Lusor.PaymentRequiredError}
|
|
1036
|
+
* @throws {@link Lusor.NotFoundError}
|
|
1037
|
+
* @throws {@link Lusor.BadGatewayError}
|
|
1038
|
+
* @throws {@link Lusor.ServiceUnavailableError}
|
|
1039
|
+
* @throws {@link errors.LusorError}
|
|
1040
|
+
* @throws {@link errors.LusorTimeoutError}
|
|
1041
|
+
*
|
|
1042
|
+
* @example
|
|
1043
|
+
* await client.sessions.recording({
|
|
1044
|
+
* id: "id"
|
|
1045
|
+
* })
|
|
1046
|
+
*/
|
|
1047
|
+
recording(request, requestOptions) {
|
|
1048
|
+
return core.HttpResponsePromise.fromPromise(this.__recording(request, requestOptions));
|
|
1049
|
+
}
|
|
1050
|
+
async __recording(request, requestOptions) {
|
|
1051
|
+
const { id, workspaceId } = request;
|
|
1052
|
+
const _queryParams = {
|
|
1053
|
+
workspaceId,
|
|
1054
|
+
};
|
|
1055
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1056
|
+
let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1057
|
+
const _response = await core.fetcher({
|
|
1058
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1059
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1060
|
+
environments.LusorEnvironment.Production, `v1/sessions/${core.url.encodePathParam(id)}/recording`),
|
|
1061
|
+
method: "GET",
|
|
1062
|
+
headers: _headers,
|
|
1063
|
+
queryString: core.url
|
|
1064
|
+
.queryBuilder()
|
|
1065
|
+
.addMany(_queryParams)
|
|
1066
|
+
.mergeAdditional(requestOptions?.queryParams)
|
|
1067
|
+
.build(),
|
|
1068
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1069
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1070
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1071
|
+
fetchFn: this._options?.fetch,
|
|
1072
|
+
logging: this._options.logging,
|
|
1073
|
+
});
|
|
1074
|
+
if (_response.ok) {
|
|
1075
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1076
|
+
}
|
|
1077
|
+
if (_response.error.reason === "status-code") {
|
|
1078
|
+
switch (_response.error.statusCode) {
|
|
1079
|
+
case 401:
|
|
1080
|
+
throw new Lusor.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1081
|
+
case 402:
|
|
1082
|
+
throw new Lusor.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
1083
|
+
case 404:
|
|
1084
|
+
throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1085
|
+
case 502:
|
|
1086
|
+
throw new Lusor.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
1087
|
+
case 503:
|
|
1088
|
+
throw new Lusor.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
1089
|
+
default:
|
|
1090
|
+
throw new errors.LusorError({
|
|
1091
|
+
statusCode: _response.error.statusCode,
|
|
1092
|
+
body: _response.error.body,
|
|
1093
|
+
rawResponse: _response.rawResponse,
|
|
1094
|
+
});
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/sessions/{id}/recording");
|
|
1098
|
+
}
|
|
1099
|
+
/**
|
|
1100
|
+
* Each completed action paired with the screenshot taken after it, in
|
|
1101
|
+
* time order, with a signed `frame_url` that expires at `expires_at`
|
|
1102
|
+
* (Unix seconds, about five minutes). Frames still uploading are left
|
|
1103
|
+
* out until they are ready. Past the workspace's history window this
|
|
1104
|
+
* returns `402` with `reason: "history_window"`.
|
|
1105
|
+
*
|
|
1106
|
+
* @param {Lusor.ReplaySessionsRequest} request
|
|
1107
|
+
* @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1108
|
+
*
|
|
1109
|
+
* @throws {@link Lusor.UnauthorizedError}
|
|
1110
|
+
* @throws {@link Lusor.PaymentRequiredError}
|
|
1111
|
+
* @throws {@link Lusor.NotFoundError}
|
|
1112
|
+
* @throws {@link Lusor.BadGatewayError}
|
|
1113
|
+
* @throws {@link Lusor.ServiceUnavailableError}
|
|
1114
|
+
* @throws {@link errors.LusorError}
|
|
1115
|
+
* @throws {@link errors.LusorTimeoutError}
|
|
1116
|
+
*
|
|
1117
|
+
* @example
|
|
1118
|
+
* await client.sessions.replay({
|
|
1119
|
+
* id: "id"
|
|
1120
|
+
* })
|
|
1121
|
+
*/
|
|
1122
|
+
replay(request, requestOptions) {
|
|
1123
|
+
return core.HttpResponsePromise.fromPromise(this.__replay(request, requestOptions));
|
|
1124
|
+
}
|
|
1125
|
+
async __replay(request, requestOptions) {
|
|
1126
|
+
const { id, workspaceId } = request;
|
|
1127
|
+
const _queryParams = {
|
|
1128
|
+
workspaceId,
|
|
1129
|
+
};
|
|
1130
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1131
|
+
let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1132
|
+
const _response = await core.fetcher({
|
|
1133
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1134
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1135
|
+
environments.LusorEnvironment.Production, `v1/sessions/${core.url.encodePathParam(id)}/replay`),
|
|
1136
|
+
method: "GET",
|
|
1137
|
+
headers: _headers,
|
|
1138
|
+
queryString: core.url
|
|
1139
|
+
.queryBuilder()
|
|
1140
|
+
.addMany(_queryParams)
|
|
1141
|
+
.mergeAdditional(requestOptions?.queryParams)
|
|
1142
|
+
.build(),
|
|
1143
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1144
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1145
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1146
|
+
fetchFn: this._options?.fetch,
|
|
1147
|
+
logging: this._options.logging,
|
|
1148
|
+
});
|
|
1149
|
+
if (_response.ok) {
|
|
1150
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1151
|
+
}
|
|
1152
|
+
if (_response.error.reason === "status-code") {
|
|
1153
|
+
switch (_response.error.statusCode) {
|
|
1154
|
+
case 401:
|
|
1155
|
+
throw new Lusor.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1156
|
+
case 402:
|
|
1157
|
+
throw new Lusor.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
1158
|
+
case 404:
|
|
1159
|
+
throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1160
|
+
case 502:
|
|
1161
|
+
throw new Lusor.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
1162
|
+
case 503:
|
|
1163
|
+
throw new Lusor.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
1164
|
+
default:
|
|
1165
|
+
throw new errors.LusorError({
|
|
1166
|
+
statusCode: _response.error.statusCode,
|
|
1167
|
+
body: _response.error.body,
|
|
1168
|
+
rawResponse: _response.rawResponse,
|
|
1169
|
+
});
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/sessions/{id}/replay");
|
|
1173
|
+
}
|
|
1174
|
+
/**
|
|
1175
|
+
* The bytes of one replay screenshot, served by the API instead of a
|
|
1176
|
+
* signed URL. `index` selects into the list `GET
|
|
1177
|
+
* /v1/sessions/{id}/replay` returns, counting from 0.
|
|
1178
|
+
*
|
|
1179
|
+
* @throws {@link Lusor.UnauthorizedError}
|
|
1180
|
+
* @throws {@link Lusor.PaymentRequiredError}
|
|
1181
|
+
* @throws {@link Lusor.NotFoundError}
|
|
1182
|
+
* @throws {@link Lusor.BadGatewayError}
|
|
1183
|
+
* @throws {@link Lusor.ServiceUnavailableError}
|
|
1184
|
+
* @throws {@link errors.LusorError}
|
|
1185
|
+
* @throws {@link errors.LusorTimeoutError}
|
|
1186
|
+
*/
|
|
1187
|
+
replayFrame(request, requestOptions) {
|
|
1188
|
+
return core.HttpResponsePromise.fromPromise(this.__replayFrame(request, requestOptions));
|
|
1189
|
+
}
|
|
1190
|
+
async __replayFrame(request, requestOptions) {
|
|
1191
|
+
const { id, workspaceId, index } = request;
|
|
1192
|
+
const _queryParams = {
|
|
1193
|
+
workspaceId,
|
|
1194
|
+
index,
|
|
1195
|
+
};
|
|
1196
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1197
|
+
let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1198
|
+
const _response = await core.fetcher({
|
|
1199
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1200
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1201
|
+
environments.LusorEnvironment.Production, `v1/sessions/${core.url.encodePathParam(id)}/replay/frame`),
|
|
1202
|
+
method: "GET",
|
|
1203
|
+
headers: _headers,
|
|
1204
|
+
queryString: core.url
|
|
1205
|
+
.queryBuilder()
|
|
1206
|
+
.addMany(_queryParams)
|
|
1207
|
+
.mergeAdditional(requestOptions?.queryParams)
|
|
1208
|
+
.build(),
|
|
1209
|
+
responseType: "binary-response",
|
|
1210
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1211
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1212
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1213
|
+
fetchFn: this._options?.fetch,
|
|
1214
|
+
logging: this._options.logging,
|
|
1215
|
+
});
|
|
1216
|
+
if (_response.ok) {
|
|
1217
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1218
|
+
}
|
|
1219
|
+
if (_response.error.reason === "status-code") {
|
|
1220
|
+
switch (_response.error.statusCode) {
|
|
1221
|
+
case 401:
|
|
1222
|
+
throw new Lusor.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1223
|
+
case 402:
|
|
1224
|
+
throw new Lusor.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
1225
|
+
case 404:
|
|
1226
|
+
throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1227
|
+
case 502:
|
|
1228
|
+
throw new Lusor.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
1229
|
+
case 503:
|
|
1230
|
+
throw new Lusor.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
1231
|
+
default:
|
|
1232
|
+
throw new errors.LusorError({
|
|
1233
|
+
statusCode: _response.error.statusCode,
|
|
1234
|
+
body: _response.error.body,
|
|
1235
|
+
rawResponse: _response.rawResponse,
|
|
1236
|
+
});
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/sessions/{id}/replay/frame");
|
|
1240
|
+
}
|
|
1241
|
+
}
|