newscatcher-catchall-sdk 0.1.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/LICENSE +21 -0
- package/README.md +332 -0
- package/dist/cjs/BaseClient.d.ts +31 -0
- package/dist/cjs/BaseClient.js +50 -0
- package/dist/cjs/Client.d.ts +20 -0
- package/dist/cjs/Client.js +26 -0
- package/dist/cjs/api/errors/ForbiddenError.d.ts +6 -0
- package/dist/cjs/api/errors/ForbiddenError.js +50 -0
- package/dist/cjs/api/errors/NotFoundError.d.ts +6 -0
- package/dist/cjs/api/errors/NotFoundError.js +50 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +6 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.js +50 -0
- package/dist/cjs/api/errors/index.d.ts +3 -0
- package/dist/cjs/api/errors/index.js +19 -0
- package/dist/cjs/api/index.d.ts +3 -0
- package/dist/cjs/api/index.js +19 -0
- package/dist/cjs/api/resources/index.d.ts +7 -0
- package/dist/cjs/api/resources/index.js +46 -0
- package/dist/cjs/api/resources/jobs/client/Client.d.ts +77 -0
- package/dist/cjs/api/resources/jobs/client/Client.js +335 -0
- package/dist/cjs/api/resources/jobs/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/jobs/client/index.js +17 -0
- package/dist/cjs/api/resources/jobs/client/requests/GetJobResultsRequest.d.ts +14 -0
- package/dist/cjs/api/resources/jobs/client/requests/GetJobResultsRequest.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/GetJobStatusRequest.d.ts +10 -0
- package/dist/cjs/api/resources/jobs/client/requests/GetJobStatusRequest.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitRequestDto.d.ts +14 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitRequestDto.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/jobs/index.d.ts +1 -0
- package/dist/cjs/api/resources/jobs/index.js +17 -0
- package/dist/cjs/api/resources/meta/client/Client.d.ts +37 -0
- package/dist/cjs/api/resources/meta/client/Client.js +172 -0
- package/dist/cjs/api/resources/meta/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/meta/client/index.js +2 -0
- package/dist/cjs/api/resources/meta/index.d.ts +2 -0
- package/dist/cjs/api/resources/meta/index.js +18 -0
- package/dist/cjs/api/resources/meta/types/GetVersionResponse.d.ts +3 -0
- package/dist/cjs/api/resources/meta/types/GetVersionResponse.js +3 -0
- package/dist/cjs/api/resources/meta/types/HealthCheckResponse.d.ts +3 -0
- package/dist/cjs/api/resources/meta/types/HealthCheckResponse.js +3 -0
- package/dist/cjs/api/resources/meta/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/meta/types/index.js +18 -0
- package/dist/cjs/api/resources/monitors/client/Client.d.ts +119 -0
- package/dist/cjs/api/resources/monitors/client/Client.js +482 -0
- package/dist/cjs/api/resources/monitors/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/monitors/client/index.js +17 -0
- package/dist/cjs/api/resources/monitors/client/requests/CreateMonitorRequestDto.d.ts +23 -0
- package/dist/cjs/api/resources/monitors/client/requests/CreateMonitorRequestDto.js +3 -0
- package/dist/cjs/api/resources/monitors/client/requests/DisableMonitorRequest.d.ts +10 -0
- package/dist/cjs/api/resources/monitors/client/requests/DisableMonitorRequest.js +3 -0
- package/dist/cjs/api/resources/monitors/client/requests/EnableMonitorRequest.d.ts +10 -0
- package/dist/cjs/api/resources/monitors/client/requests/EnableMonitorRequest.js +3 -0
- package/dist/cjs/api/resources/monitors/client/requests/ListMonitorJobsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/monitors/client/requests/ListMonitorJobsRequest.js +3 -0
- package/dist/cjs/api/resources/monitors/client/requests/PullMonitorResultsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/monitors/client/requests/PullMonitorResultsRequest.js +3 -0
- package/dist/cjs/api/resources/monitors/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/monitors/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/monitors/index.d.ts +2 -0
- package/dist/cjs/api/resources/monitors/index.js +18 -0
- package/dist/cjs/api/resources/monitors/types/DisableMonitorResponse.d.ts +8 -0
- package/dist/cjs/api/resources/monitors/types/DisableMonitorResponse.js +3 -0
- package/dist/cjs/api/resources/monitors/types/EnableMonitorResponse.d.ts +8 -0
- package/dist/cjs/api/resources/monitors/types/EnableMonitorResponse.js +3 -0
- package/dist/cjs/api/resources/monitors/types/ListMonitorJobsRequestSort.d.ts +5 -0
- package/dist/cjs/api/resources/monitors/types/ListMonitorJobsRequestSort.js +8 -0
- package/dist/cjs/api/resources/monitors/types/ListMonitorJobsResponse.d.ts +19 -0
- package/dist/cjs/api/resources/monitors/types/ListMonitorJobsResponse.js +12 -0
- package/dist/cjs/api/resources/monitors/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/monitors/types/index.js +20 -0
- package/dist/cjs/api/types/Citation.d.ts +8 -0
- package/dist/cjs/api/types/Citation.js +3 -0
- package/dist/cjs/api/types/Context.d.ts +4 -0
- package/dist/cjs/api/types/Context.js +3 -0
- package/dist/cjs/api/types/CreateMonitorResponseDto.d.ts +6 -0
- package/dist/cjs/api/types/CreateMonitorResponseDto.js +3 -0
- package/dist/cjs/api/types/Error_.d.ts +4 -0
- package/dist/cjs/api/types/Error_.js +3 -0
- package/dist/cjs/api/types/JobStatus.d.ts +23 -0
- package/dist/cjs/api/types/JobStatus.js +26 -0
- package/dist/cjs/api/types/JobStep.d.ts +8 -0
- package/dist/cjs/api/types/JobStep.js +3 -0
- package/dist/cjs/api/types/ListMonitorsResponseDto.d.ts +7 -0
- package/dist/cjs/api/types/ListMonitorsResponseDto.js +3 -0
- package/dist/cjs/api/types/ListUserJobsResponseDto.d.ts +6 -0
- package/dist/cjs/api/types/ListUserJobsResponseDto.js +3 -0
- package/dist/cjs/api/types/MonitorCitation.d.ts +16 -0
- package/dist/cjs/api/types/MonitorCitation.js +3 -0
- package/dist/cjs/api/types/MonitorJobItem.d.ts +8 -0
- package/dist/cjs/api/types/MonitorJobItem.js +3 -0
- package/dist/cjs/api/types/MonitorListItemDto.d.ts +16 -0
- package/dist/cjs/api/types/MonitorListItemDto.js +3 -0
- package/dist/cjs/api/types/MonitorRecord.d.ts +23 -0
- package/dist/cjs/api/types/MonitorRecord.js +3 -0
- package/dist/cjs/api/types/PullJobResponseDto.d.ts +34 -0
- package/dist/cjs/api/types/PullJobResponseDto.js +3 -0
- package/dist/cjs/api/types/PullMonitorResponseDto.d.ts +35 -0
- package/dist/cjs/api/types/PullMonitorResponseDto.js +3 -0
- package/dist/cjs/api/types/Query.d.ts +6 -0
- package/dist/cjs/api/types/Query.js +3 -0
- package/dist/cjs/api/types/Record_.d.ts +15 -0
- package/dist/cjs/api/types/Record_.js +3 -0
- package/dist/cjs/api/types/ReferenceJob.d.ts +6 -0
- package/dist/cjs/api/types/ReferenceJob.js +3 -0
- package/dist/cjs/api/types/Schema.d.ts +6 -0
- package/dist/cjs/api/types/Schema.js +3 -0
- package/dist/cjs/api/types/StatusResponseDto.d.ts +9 -0
- package/dist/cjs/api/types/StatusResponseDto.js +3 -0
- package/dist/cjs/api/types/SubmitResponseBody.d.ts +4 -0
- package/dist/cjs/api/types/SubmitResponseBody.js +3 -0
- package/dist/cjs/api/types/ValidationErrorDetail.d.ts +14 -0
- package/dist/cjs/api/types/ValidationErrorDetail.js +3 -0
- package/dist/cjs/api/types/ValidationErrorResponse.d.ts +4 -0
- package/dist/cjs/api/types/ValidationErrorResponse.js +3 -0
- package/dist/cjs/api/types/WebhookDto.d.ts +20 -0
- package/dist/cjs/api/types/WebhookDto.js +12 -0
- package/dist/cjs/api/types/WebhookPayload.d.ts +28 -0
- package/dist/cjs/api/types/WebhookPayload.js +3 -0
- package/dist/cjs/api/types/index.d.ts +24 -0
- package/dist/cjs/api/types/index.js +40 -0
- package/dist/cjs/core/exports.d.ts +1 -0
- package/dist/cjs/core/exports.js +17 -0
- package/dist/cjs/core/fetcher/APIResponse.d.ts +20 -0
- package/dist/cjs/core/fetcher/APIResponse.js +2 -0
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +20 -0
- package/dist/cjs/core/fetcher/BinaryResponse.js +17 -0
- package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
- package/dist/cjs/core/fetcher/EndpointMetadata.js +2 -0
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
- package/dist/cjs/core/fetcher/EndpointSupplier.js +22 -0
- package/dist/cjs/core/fetcher/Fetcher.d.ts +45 -0
- package/dist/cjs/core/fetcher/Fetcher.js +315 -0
- package/dist/cjs/core/fetcher/Headers.d.ts +2 -0
- package/dist/cjs/core/fetcher/Headers.js +84 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/cjs/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/cjs/core/fetcher/RawResponse.js +44 -0
- package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +4 -0
- package/dist/cjs/core/fetcher/ResponseWithBody.js +6 -0
- package/dist/cjs/core/fetcher/Supplier.d.ts +4 -0
- package/dist/cjs/core/fetcher/Supplier.js +22 -0
- package/dist/cjs/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/cjs/core/fetcher/createRequestUrl.js +8 -0
- package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/dist/cjs/core/fetcher/getErrorResponseBody.js +45 -0
- package/dist/cjs/core/fetcher/getFetchFn.d.ts +1 -0
- package/dist/cjs/core/fetcher/getFetchFn.js +17 -0
- package/dist/cjs/core/fetcher/getHeader.d.ts +1 -0
- package/dist/cjs/core/fetcher/getHeader.js +11 -0
- package/dist/cjs/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/cjs/core/fetcher/getRequestBody.js +27 -0
- package/dist/cjs/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/cjs/core/fetcher/getResponseBody.js +55 -0
- package/dist/cjs/core/fetcher/index.d.ts +11 -0
- package/dist/cjs/core/fetcher/index.js +17 -0
- package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/cjs/core/fetcher/makeRequest.js +40 -0
- package/dist/cjs/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/cjs/core/fetcher/requestWithRetries.js +67 -0
- package/dist/cjs/core/fetcher/signals.d.ts +5 -0
- package/dist/cjs/core/fetcher/signals.js +24 -0
- package/dist/cjs/core/headers.d.ts +2 -0
- package/dist/cjs/core/headers.js +31 -0
- package/dist/cjs/core/index.d.ts +4 -0
- package/dist/cjs/core/index.js +43 -0
- package/dist/cjs/core/json.d.ts +15 -0
- package/dist/cjs/core/json.js +24 -0
- package/dist/cjs/core/logging/exports.d.ts +18 -0
- package/dist/cjs/core/logging/exports.js +45 -0
- package/dist/cjs/core/logging/index.d.ts +1 -0
- package/dist/cjs/core/logging/index.js +17 -0
- package/dist/cjs/core/logging/logger.d.ts +126 -0
- package/dist/cjs/core/logging/logger.js +144 -0
- package/dist/cjs/core/runtime/index.d.ts +1 -0
- package/dist/cjs/core/runtime/index.js +5 -0
- package/dist/cjs/core/runtime/runtime.d.ts +9 -0
- package/dist/cjs/core/runtime/runtime.js +102 -0
- package/dist/cjs/core/url/encodePathParam.d.ts +1 -0
- package/dist/cjs/core/url/encodePathParam.js +21 -0
- package/dist/cjs/core/url/index.d.ts +3 -0
- package/dist/cjs/core/url/index.js +9 -0
- package/dist/cjs/core/url/join.d.ts +1 -0
- package/dist/cjs/core/url/join.js +68 -0
- package/dist/cjs/core/url/qs.d.ts +6 -0
- package/dist/cjs/core/url/qs.js +64 -0
- package/dist/cjs/environments.d.ts +4 -0
- package/dist/cjs/environments.js +7 -0
- package/dist/cjs/errors/CatchAllApiError.d.ts +12 -0
- package/dist/cjs/errors/CatchAllApiError.js +28 -0
- package/dist/cjs/errors/CatchAllApiTimeoutError.d.ts +3 -0
- package/dist/cjs/errors/CatchAllApiTimeoutError.js +11 -0
- package/dist/cjs/errors/index.d.ts +2 -0
- package/dist/cjs/errors/index.js +7 -0
- package/dist/cjs/exports.d.ts +1 -0
- package/dist/cjs/exports.js +17 -0
- package/dist/cjs/index.d.ts +6 -0
- package/dist/cjs/index.js +48 -0
- package/dist/cjs/version.d.ts +1 -0
- package/dist/cjs/version.js +4 -0
- package/dist/esm/BaseClient.d.mts +31 -0
- package/dist/esm/BaseClient.mjs +14 -0
- package/dist/esm/Client.d.mts +20 -0
- package/dist/esm/Client.mjs +22 -0
- package/dist/esm/api/errors/ForbiddenError.d.mts +6 -0
- package/dist/esm/api/errors/ForbiddenError.mjs +13 -0
- package/dist/esm/api/errors/NotFoundError.d.mts +6 -0
- package/dist/esm/api/errors/NotFoundError.mjs +13 -0
- package/dist/esm/api/errors/UnprocessableEntityError.d.mts +6 -0
- package/dist/esm/api/errors/UnprocessableEntityError.mjs +13 -0
- package/dist/esm/api/errors/index.d.mts +3 -0
- package/dist/esm/api/errors/index.mjs +3 -0
- package/dist/esm/api/index.d.mts +3 -0
- package/dist/esm/api/index.mjs +3 -0
- package/dist/esm/api/resources/index.d.mts +7 -0
- package/dist/esm/api/resources/index.mjs +7 -0
- package/dist/esm/api/resources/jobs/client/Client.d.mts +77 -0
- package/dist/esm/api/resources/jobs/client/Client.mjs +298 -0
- package/dist/esm/api/resources/jobs/client/index.d.mts +1 -0
- package/dist/esm/api/resources/jobs/client/index.mjs +1 -0
- package/dist/esm/api/resources/jobs/client/requests/GetJobResultsRequest.d.mts +14 -0
- package/dist/esm/api/resources/jobs/client/requests/GetJobResultsRequest.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/GetJobStatusRequest.d.mts +10 -0
- package/dist/esm/api/resources/jobs/client/requests/GetJobStatusRequest.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitRequestDto.d.mts +14 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitRequestDto.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/jobs/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/jobs/index.d.mts +1 -0
- package/dist/esm/api/resources/jobs/index.mjs +1 -0
- package/dist/esm/api/resources/meta/client/Client.d.mts +37 -0
- package/dist/esm/api/resources/meta/client/Client.mjs +135 -0
- package/dist/esm/api/resources/meta/client/index.d.mts +1 -0
- package/dist/esm/api/resources/meta/client/index.mjs +1 -0
- package/dist/esm/api/resources/meta/index.d.mts +2 -0
- package/dist/esm/api/resources/meta/index.mjs +2 -0
- package/dist/esm/api/resources/meta/types/GetVersionResponse.d.mts +3 -0
- package/dist/esm/api/resources/meta/types/GetVersionResponse.mjs +2 -0
- package/dist/esm/api/resources/meta/types/HealthCheckResponse.d.mts +3 -0
- package/dist/esm/api/resources/meta/types/HealthCheckResponse.mjs +2 -0
- package/dist/esm/api/resources/meta/types/index.d.mts +2 -0
- package/dist/esm/api/resources/meta/types/index.mjs +2 -0
- package/dist/esm/api/resources/monitors/client/Client.d.mts +119 -0
- package/dist/esm/api/resources/monitors/client/Client.mjs +445 -0
- package/dist/esm/api/resources/monitors/client/index.d.mts +1 -0
- package/dist/esm/api/resources/monitors/client/index.mjs +1 -0
- package/dist/esm/api/resources/monitors/client/requests/CreateMonitorRequestDto.d.mts +23 -0
- package/dist/esm/api/resources/monitors/client/requests/CreateMonitorRequestDto.mjs +2 -0
- package/dist/esm/api/resources/monitors/client/requests/DisableMonitorRequest.d.mts +10 -0
- package/dist/esm/api/resources/monitors/client/requests/DisableMonitorRequest.mjs +2 -0
- package/dist/esm/api/resources/monitors/client/requests/EnableMonitorRequest.d.mts +10 -0
- package/dist/esm/api/resources/monitors/client/requests/EnableMonitorRequest.mjs +2 -0
- package/dist/esm/api/resources/monitors/client/requests/ListMonitorJobsRequest.d.mts +13 -0
- package/dist/esm/api/resources/monitors/client/requests/ListMonitorJobsRequest.mjs +2 -0
- package/dist/esm/api/resources/monitors/client/requests/PullMonitorResultsRequest.d.mts +10 -0
- package/dist/esm/api/resources/monitors/client/requests/PullMonitorResultsRequest.mjs +2 -0
- package/dist/esm/api/resources/monitors/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/monitors/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/monitors/index.d.mts +2 -0
- package/dist/esm/api/resources/monitors/index.mjs +2 -0
- package/dist/esm/api/resources/monitors/types/DisableMonitorResponse.d.mts +8 -0
- package/dist/esm/api/resources/monitors/types/DisableMonitorResponse.mjs +2 -0
- package/dist/esm/api/resources/monitors/types/EnableMonitorResponse.d.mts +8 -0
- package/dist/esm/api/resources/monitors/types/EnableMonitorResponse.mjs +2 -0
- package/dist/esm/api/resources/monitors/types/ListMonitorJobsRequestSort.d.mts +5 -0
- package/dist/esm/api/resources/monitors/types/ListMonitorJobsRequestSort.mjs +5 -0
- package/dist/esm/api/resources/monitors/types/ListMonitorJobsResponse.d.mts +19 -0
- package/dist/esm/api/resources/monitors/types/ListMonitorJobsResponse.mjs +9 -0
- package/dist/esm/api/resources/monitors/types/index.d.mts +4 -0
- package/dist/esm/api/resources/monitors/types/index.mjs +4 -0
- package/dist/esm/api/types/Citation.d.mts +8 -0
- package/dist/esm/api/types/Citation.mjs +2 -0
- package/dist/esm/api/types/Context.d.mts +4 -0
- package/dist/esm/api/types/Context.mjs +2 -0
- package/dist/esm/api/types/CreateMonitorResponseDto.d.mts +6 -0
- package/dist/esm/api/types/CreateMonitorResponseDto.mjs +2 -0
- package/dist/esm/api/types/Error_.d.mts +4 -0
- package/dist/esm/api/types/Error_.mjs +2 -0
- package/dist/esm/api/types/JobStatus.d.mts +23 -0
- package/dist/esm/api/types/JobStatus.mjs +23 -0
- package/dist/esm/api/types/JobStep.d.mts +8 -0
- package/dist/esm/api/types/JobStep.mjs +2 -0
- package/dist/esm/api/types/ListMonitorsResponseDto.d.mts +7 -0
- package/dist/esm/api/types/ListMonitorsResponseDto.mjs +2 -0
- package/dist/esm/api/types/ListUserJobsResponseDto.d.mts +6 -0
- package/dist/esm/api/types/ListUserJobsResponseDto.mjs +2 -0
- package/dist/esm/api/types/MonitorCitation.d.mts +16 -0
- package/dist/esm/api/types/MonitorCitation.mjs +2 -0
- package/dist/esm/api/types/MonitorJobItem.d.mts +8 -0
- package/dist/esm/api/types/MonitorJobItem.mjs +2 -0
- package/dist/esm/api/types/MonitorListItemDto.d.mts +16 -0
- package/dist/esm/api/types/MonitorListItemDto.mjs +2 -0
- package/dist/esm/api/types/MonitorRecord.d.mts +23 -0
- package/dist/esm/api/types/MonitorRecord.mjs +2 -0
- package/dist/esm/api/types/PullJobResponseDto.d.mts +34 -0
- package/dist/esm/api/types/PullJobResponseDto.mjs +2 -0
- package/dist/esm/api/types/PullMonitorResponseDto.d.mts +35 -0
- package/dist/esm/api/types/PullMonitorResponseDto.mjs +2 -0
- package/dist/esm/api/types/Query.d.mts +6 -0
- package/dist/esm/api/types/Query.mjs +2 -0
- package/dist/esm/api/types/Record_.d.mts +15 -0
- package/dist/esm/api/types/Record_.mjs +2 -0
- package/dist/esm/api/types/ReferenceJob.d.mts +6 -0
- package/dist/esm/api/types/ReferenceJob.mjs +2 -0
- package/dist/esm/api/types/Schema.d.mts +6 -0
- package/dist/esm/api/types/Schema.mjs +2 -0
- package/dist/esm/api/types/StatusResponseDto.d.mts +9 -0
- package/dist/esm/api/types/StatusResponseDto.mjs +2 -0
- package/dist/esm/api/types/SubmitResponseBody.d.mts +4 -0
- package/dist/esm/api/types/SubmitResponseBody.mjs +2 -0
- package/dist/esm/api/types/ValidationErrorDetail.d.mts +14 -0
- package/dist/esm/api/types/ValidationErrorDetail.mjs +2 -0
- package/dist/esm/api/types/ValidationErrorResponse.d.mts +4 -0
- package/dist/esm/api/types/ValidationErrorResponse.mjs +2 -0
- package/dist/esm/api/types/WebhookDto.d.mts +20 -0
- package/dist/esm/api/types/WebhookDto.mjs +9 -0
- package/dist/esm/api/types/WebhookPayload.d.mts +28 -0
- package/dist/esm/api/types/WebhookPayload.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +24 -0
- package/dist/esm/api/types/index.mjs +24 -0
- package/dist/esm/core/exports.d.mts +1 -0
- package/dist/esm/core/exports.mjs +1 -0
- package/dist/esm/core/fetcher/APIResponse.d.mts +20 -0
- package/dist/esm/core/fetcher/APIResponse.mjs +1 -0
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +20 -0
- package/dist/esm/core/fetcher/BinaryResponse.mjs +14 -0
- package/dist/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
- package/dist/esm/core/fetcher/EndpointMetadata.mjs +1 -0
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
- package/dist/esm/core/fetcher/EndpointSupplier.mjs +19 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +45 -0
- package/dist/esm/core/fetcher/Fetcher.mjs +311 -0
- package/dist/esm/core/fetcher/Headers.d.mts +2 -0
- package/dist/esm/core/fetcher/Headers.mjs +82 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +58 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.mjs +99 -0
- package/dist/esm/core/fetcher/RawResponse.d.mts +29 -0
- package/dist/esm/core/fetcher/RawResponse.mjs +40 -0
- package/dist/esm/core/fetcher/ResponseWithBody.d.mts +4 -0
- package/dist/esm/core/fetcher/ResponseWithBody.mjs +3 -0
- package/dist/esm/core/fetcher/Supplier.d.mts +4 -0
- package/dist/esm/core/fetcher/Supplier.mjs +19 -0
- package/dist/esm/core/fetcher/createRequestUrl.d.mts +1 -0
- package/dist/esm/core/fetcher/createRequestUrl.mjs +5 -0
- package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +1 -0
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +42 -0
- package/dist/esm/core/fetcher/getFetchFn.d.mts +1 -0
- package/dist/esm/core/fetcher/getFetchFn.mjs +14 -0
- package/dist/esm/core/fetcher/getHeader.d.mts +1 -0
- package/dist/esm/core/fetcher/getHeader.mjs +8 -0
- package/dist/esm/core/fetcher/getRequestBody.d.mts +7 -0
- package/dist/esm/core/fetcher/getRequestBody.mjs +24 -0
- package/dist/esm/core/fetcher/getResponseBody.d.mts +1 -0
- package/dist/esm/core/fetcher/getResponseBody.mjs +52 -0
- package/dist/esm/core/fetcher/index.d.mts +11 -0
- package/dist/esm/core/fetcher/index.mjs +6 -0
- package/dist/esm/core/fetcher/makeRequest.d.mts +1 -0
- package/dist/esm/core/fetcher/makeRequest.mjs +36 -0
- package/dist/esm/core/fetcher/requestWithRetries.d.mts +1 -0
- package/dist/esm/core/fetcher/requestWithRetries.mjs +64 -0
- package/dist/esm/core/fetcher/signals.d.mts +5 -0
- package/dist/esm/core/fetcher/signals.mjs +20 -0
- package/dist/esm/core/headers.d.mts +2 -0
- package/dist/esm/core/headers.mjs +27 -0
- package/dist/esm/core/index.d.mts +4 -0
- package/dist/esm/core/index.mjs +4 -0
- package/dist/esm/core/json.d.mts +15 -0
- package/dist/esm/core/json.mjs +19 -0
- package/dist/esm/core/logging/exports.d.mts +18 -0
- package/dist/esm/core/logging/exports.mjs +9 -0
- package/dist/esm/core/logging/index.d.mts +1 -0
- package/dist/esm/core/logging/index.mjs +1 -0
- package/dist/esm/core/logging/logger.d.mts +126 -0
- package/dist/esm/core/logging/logger.mjs +138 -0
- package/dist/esm/core/runtime/index.d.mts +1 -0
- package/dist/esm/core/runtime/index.mjs +1 -0
- package/dist/esm/core/runtime/runtime.d.mts +9 -0
- package/dist/esm/core/runtime/runtime.mjs +99 -0
- package/dist/esm/core/url/encodePathParam.d.mts +1 -0
- package/dist/esm/core/url/encodePathParam.mjs +18 -0
- package/dist/esm/core/url/index.d.mts +3 -0
- package/dist/esm/core/url/index.mjs +3 -0
- package/dist/esm/core/url/join.d.mts +1 -0
- package/dist/esm/core/url/join.mjs +65 -0
- package/dist/esm/core/url/qs.d.mts +6 -0
- package/dist/esm/core/url/qs.mjs +61 -0
- package/dist/esm/environments.d.mts +4 -0
- package/dist/esm/environments.mjs +4 -0
- package/dist/esm/errors/CatchAllApiError.d.mts +12 -0
- package/dist/esm/errors/CatchAllApiError.mjs +24 -0
- package/dist/esm/errors/CatchAllApiTimeoutError.d.mts +3 -0
- package/dist/esm/errors/CatchAllApiTimeoutError.mjs +7 -0
- package/dist/esm/errors/index.d.mts +2 -0
- package/dist/esm/errors/index.mjs +2 -0
- package/dist/esm/exports.d.mts +1 -0
- package/dist/esm/exports.mjs +1 -0
- package/dist/esm/index.d.mts +6 -0
- package/dist/esm/index.mjs +5 -0
- package/dist/esm/version.d.mts +1 -0
- package/dist/esm/version.mjs +1 -0
- package/package.json +67 -0
- package/reference.md +753 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.MetaClient = void 0;
|
|
47
|
+
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
48
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
49
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
50
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
51
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
52
|
+
/**
|
|
53
|
+
* Operations to check API health and version.
|
|
54
|
+
*/
|
|
55
|
+
class MetaClient {
|
|
56
|
+
constructor(options = {}) {
|
|
57
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Check API availability.
|
|
61
|
+
*
|
|
62
|
+
* @param {MetaClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* await client.meta.healthCheck()
|
|
66
|
+
*/
|
|
67
|
+
healthCheck(requestOptions) {
|
|
68
|
+
return core.HttpResponsePromise.fromPromise(this.__healthCheck(requestOptions));
|
|
69
|
+
}
|
|
70
|
+
__healthCheck(requestOptions) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
73
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
74
|
+
const _response = yield core.fetcher({
|
|
75
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, "health"),
|
|
76
|
+
method: "GET",
|
|
77
|
+
headers: _headers,
|
|
78
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
79
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
80
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
81
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
82
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
83
|
+
logging: this._options.logging,
|
|
84
|
+
});
|
|
85
|
+
if (_response.ok) {
|
|
86
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
87
|
+
}
|
|
88
|
+
if (_response.error.reason === "status-code") {
|
|
89
|
+
throw new errors.CatchAllApiError({
|
|
90
|
+
statusCode: _response.error.statusCode,
|
|
91
|
+
body: _response.error.body,
|
|
92
|
+
rawResponse: _response.rawResponse,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
switch (_response.error.reason) {
|
|
96
|
+
case "non-json":
|
|
97
|
+
throw new errors.CatchAllApiError({
|
|
98
|
+
statusCode: _response.error.statusCode,
|
|
99
|
+
body: _response.error.rawBody,
|
|
100
|
+
rawResponse: _response.rawResponse,
|
|
101
|
+
});
|
|
102
|
+
case "timeout":
|
|
103
|
+
throw new errors.CatchAllApiTimeoutError("Timeout exceeded when calling GET /health.");
|
|
104
|
+
case "unknown":
|
|
105
|
+
throw new errors.CatchAllApiError({
|
|
106
|
+
message: _response.error.errorMessage,
|
|
107
|
+
rawResponse: _response.rawResponse,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Returns current API version.
|
|
114
|
+
*
|
|
115
|
+
* @param {MetaClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* await client.meta.getVersion()
|
|
119
|
+
*/
|
|
120
|
+
getVersion(requestOptions) {
|
|
121
|
+
return core.HttpResponsePromise.fromPromise(this.__getVersion(requestOptions));
|
|
122
|
+
}
|
|
123
|
+
__getVersion(requestOptions) {
|
|
124
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
125
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
126
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
127
|
+
const _response = yield core.fetcher({
|
|
128
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, "version"),
|
|
129
|
+
method: "GET",
|
|
130
|
+
headers: _headers,
|
|
131
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
132
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
133
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
134
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
135
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
136
|
+
logging: this._options.logging,
|
|
137
|
+
});
|
|
138
|
+
if (_response.ok) {
|
|
139
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
140
|
+
}
|
|
141
|
+
if (_response.error.reason === "status-code") {
|
|
142
|
+
throw new errors.CatchAllApiError({
|
|
143
|
+
statusCode: _response.error.statusCode,
|
|
144
|
+
body: _response.error.body,
|
|
145
|
+
rawResponse: _response.rawResponse,
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
switch (_response.error.reason) {
|
|
149
|
+
case "non-json":
|
|
150
|
+
throw new errors.CatchAllApiError({
|
|
151
|
+
statusCode: _response.error.statusCode,
|
|
152
|
+
body: _response.error.rawBody,
|
|
153
|
+
rawResponse: _response.rawResponse,
|
|
154
|
+
});
|
|
155
|
+
case "timeout":
|
|
156
|
+
throw new errors.CatchAllApiTimeoutError("Timeout exceeded when calling GET /version.");
|
|
157
|
+
case "unknown":
|
|
158
|
+
throw new errors.CatchAllApiError({
|
|
159
|
+
message: _response.error.errorMessage,
|
|
160
|
+
rawResponse: _response.rawResponse,
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
_getCustomAuthorizationHeaders() {
|
|
166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
167
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
168
|
+
return { "x-api-key": apiKeyValue };
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
exports.MetaClient = MetaClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./types/index.js"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./GetVersionResponse.js"), exports);
|
|
18
|
+
__exportStar(require("./HealthCheckResponse.js"), exports);
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import * as CatchAllApi from "../../../index.js";
|
|
4
|
+
export declare namespace MonitorsClient {
|
|
5
|
+
interface Options extends BaseClientOptions {
|
|
6
|
+
}
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Operations to create, operate and retrieve monitor results.
|
|
12
|
+
*/
|
|
13
|
+
export declare class MonitorsClient {
|
|
14
|
+
protected readonly _options: MonitorsClient.Options;
|
|
15
|
+
constructor(options?: MonitorsClient.Options);
|
|
16
|
+
/**
|
|
17
|
+
* Create a monitor that runs jobs based on a reference job with a specified schedule.
|
|
18
|
+
*
|
|
19
|
+
* **Warning**: Schedule validation is limited. Invalid schedules may be parsed incorrectly.
|
|
20
|
+
* Always test schedules before production use.
|
|
21
|
+
*
|
|
22
|
+
* @param {CatchAllApi.CreateMonitorRequestDto} request
|
|
23
|
+
* @param {MonitorsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
24
|
+
*
|
|
25
|
+
* @throws {@link CatchAllApi.UnprocessableEntityError}
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* await client.monitors.createMonitor({
|
|
29
|
+
* reference_job_id: "reference_job_id",
|
|
30
|
+
* schedule: "every day at 12 PM UTC"
|
|
31
|
+
* })
|
|
32
|
+
*/
|
|
33
|
+
createMonitor(request: CatchAllApi.CreateMonitorRequestDto, requestOptions?: MonitorsClient.RequestOptions): core.HttpResponsePromise<CatchAllApi.CreateMonitorResponseDto>;
|
|
34
|
+
private __createMonitor;
|
|
35
|
+
/**
|
|
36
|
+
* Returns all jobs associated with a monitor, sorted by start_date.
|
|
37
|
+
* Each job includes job_id, start_date, and end_date.
|
|
38
|
+
*
|
|
39
|
+
* @param {CatchAllApi.ListMonitorJobsRequest} request
|
|
40
|
+
* @param {MonitorsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
|
+
*
|
|
42
|
+
* @throws {@link CatchAllApi.NotFoundError}
|
|
43
|
+
* @throws {@link CatchAllApi.UnprocessableEntityError}
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* await client.monitors.listMonitorJobs({
|
|
47
|
+
* monitor_id: "monitor_id"
|
|
48
|
+
* })
|
|
49
|
+
*/
|
|
50
|
+
listMonitorJobs(request: CatchAllApi.ListMonitorJobsRequest, requestOptions?: MonitorsClient.RequestOptions): core.HttpResponsePromise<CatchAllApi.ListMonitorJobsResponse>;
|
|
51
|
+
private __listMonitorJobs;
|
|
52
|
+
/**
|
|
53
|
+
* Retrieve aggregated results from all jobs executed by this monitor.
|
|
54
|
+
* Includes monitor configuration, execution history, and all records collected.
|
|
55
|
+
*
|
|
56
|
+
* @param {CatchAllApi.PullMonitorResultsRequest} request
|
|
57
|
+
* @param {MonitorsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link CatchAllApi.NotFoundError}
|
|
60
|
+
* @throws {@link CatchAllApi.UnprocessableEntityError}
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* await client.monitors.pullMonitorResults({
|
|
64
|
+
* monitor_id: "monitor_id"
|
|
65
|
+
* })
|
|
66
|
+
*/
|
|
67
|
+
pullMonitorResults(request: CatchAllApi.PullMonitorResultsRequest, requestOptions?: MonitorsClient.RequestOptions): core.HttpResponsePromise<CatchAllApi.PullMonitorResponseDto>;
|
|
68
|
+
private __pullMonitorResults;
|
|
69
|
+
/**
|
|
70
|
+
* Disables a monitor to stop executing scheduled jobs.
|
|
71
|
+
* Validates that the provided API key is associated with the monitor.
|
|
72
|
+
*
|
|
73
|
+
* @param {CatchAllApi.DisableMonitorRequest} request
|
|
74
|
+
* @param {MonitorsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link CatchAllApi.ForbiddenError}
|
|
77
|
+
* @throws {@link CatchAllApi.NotFoundError}
|
|
78
|
+
* @throws {@link CatchAllApi.UnprocessableEntityError}
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* await client.monitors.disableMonitor({
|
|
82
|
+
* monitor_id: "monitor_id"
|
|
83
|
+
* })
|
|
84
|
+
*/
|
|
85
|
+
disableMonitor(request: CatchAllApi.DisableMonitorRequest, requestOptions?: MonitorsClient.RequestOptions): core.HttpResponsePromise<CatchAllApi.DisableMonitorResponse>;
|
|
86
|
+
private __disableMonitor;
|
|
87
|
+
/**
|
|
88
|
+
* Enables a monitor to resume executing scheduled jobs.
|
|
89
|
+
* Validates that the provided API key is associated with the monitor.
|
|
90
|
+
*
|
|
91
|
+
* @param {CatchAllApi.EnableMonitorRequest} request
|
|
92
|
+
* @param {MonitorsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link CatchAllApi.ForbiddenError}
|
|
95
|
+
* @throws {@link CatchAllApi.NotFoundError}
|
|
96
|
+
* @throws {@link CatchAllApi.UnprocessableEntityError}
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* await client.monitors.enableMonitor({
|
|
100
|
+
* monitor_id: "monitor_id"
|
|
101
|
+
* })
|
|
102
|
+
*/
|
|
103
|
+
enableMonitor(request: CatchAllApi.EnableMonitorRequest, requestOptions?: MonitorsClient.RequestOptions): core.HttpResponsePromise<CatchAllApi.EnableMonitorResponse>;
|
|
104
|
+
private __enableMonitor;
|
|
105
|
+
/**
|
|
106
|
+
* Returns all monitors created by the authenticated user.
|
|
107
|
+
*
|
|
108
|
+
* @param {MonitorsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link CatchAllApi.ForbiddenError}
|
|
111
|
+
* @throws {@link CatchAllApi.UnprocessableEntityError}
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* await client.monitors.listMonitors()
|
|
115
|
+
*/
|
|
116
|
+
listMonitors(requestOptions?: MonitorsClient.RequestOptions): core.HttpResponsePromise<CatchAllApi.ListMonitorsResponseDto>;
|
|
117
|
+
private __listMonitors;
|
|
118
|
+
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
119
|
+
}
|