newscatcher-catchall-sdk 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +6 -0
- package/dist/cjs/Client.js +10 -0
- package/dist/cjs/api/resources/datasets/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/datasets/client/Client.js +4 -2
- package/dist/cjs/api/resources/datasets/client/requests/ListDatasetsRequest.d.ts +4 -1
- package/dist/cjs/api/resources/index.d.ts +5 -0
- package/dist/cjs/api/resources/index.js +6 -1
- package/dist/cjs/api/resources/jobs/client/Client.d.ts +21 -1
- package/dist/cjs/api/resources/jobs/client/Client.js +63 -2
- package/dist/cjs/api/resources/jobs/client/requests/GetUserJobsRequest.d.ts +5 -1
- package/dist/cjs/api/resources/jobs/client/requests/SubmitRequestDto.d.ts +4 -0
- package/dist/cjs/api/resources/jobs/client/requests/ValidateQueryRequestDto.d.ts +10 -0
- package/dist/cjs/api/resources/jobs/client/requests/ValidateQueryRequestDto.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/monitors/client/Client.d.ts +5 -15
- package/dist/cjs/api/resources/monitors/client/Client.js +7 -16
- package/dist/cjs/api/resources/monitors/client/requests/CreateMonitorRequestDto.d.ts +10 -10
- package/dist/cjs/api/resources/monitors/client/requests/ListMonitorsRequest.d.ts +5 -1
- package/dist/cjs/api/resources/monitors/client/requests/UpdateMonitorRequestDto.d.ts +7 -10
- package/dist/cjs/api/resources/monitors/types/DisableMonitorResponse.d.ts +1 -1
- package/dist/cjs/api/resources/monitors/types/EnableMonitorResponse.d.ts +1 -1
- package/dist/cjs/api/resources/projects/client/Client.d.ts +178 -0
- package/dist/cjs/api/resources/projects/client/Client.js +626 -0
- package/dist/cjs/api/resources/projects/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/projects/client/index.js +17 -0
- package/dist/cjs/api/resources/projects/client/requests/AddResourceRequestDto.d.ts +17 -0
- package/dist/cjs/api/resources/projects/client/requests/AddResourceRequestDto.js +3 -0
- package/dist/cjs/api/resources/projects/client/requests/CreateProjectRequestDto.d.ts +13 -0
- package/dist/cjs/api/resources/projects/client/requests/CreateProjectRequestDto.js +3 -0
- package/dist/cjs/api/resources/projects/client/requests/DeleteProjectRequest.d.ts +12 -0
- package/dist/cjs/api/resources/projects/client/requests/DeleteProjectRequest.js +3 -0
- package/dist/cjs/api/resources/projects/client/requests/GetProjectOverviewRequest.d.ts +10 -0
- package/dist/cjs/api/resources/projects/client/requests/GetProjectOverviewRequest.js +3 -0
- package/dist/cjs/api/resources/projects/client/requests/GetProjectRequest.d.ts +10 -0
- package/dist/cjs/api/resources/projects/client/requests/GetProjectRequest.js +3 -0
- package/dist/cjs/api/resources/projects/client/requests/ListProjectResourcesRequest.d.ts +16 -0
- package/dist/cjs/api/resources/projects/client/requests/ListProjectResourcesRequest.js +3 -0
- package/dist/cjs/api/resources/projects/client/requests/ListProjectsRequest.d.ts +16 -0
- package/dist/cjs/api/resources/projects/client/requests/ListProjectsRequest.js +3 -0
- package/dist/cjs/api/resources/projects/client/requests/RemoveResourceFromProjectRequest.d.ts +16 -0
- package/dist/cjs/api/resources/projects/client/requests/RemoveResourceFromProjectRequest.js +3 -0
- package/dist/cjs/api/resources/projects/client/requests/UpdateProjectRequestDto.d.ts +15 -0
- package/dist/cjs/api/resources/projects/client/requests/UpdateProjectRequestDto.js +3 -0
- package/dist/cjs/api/resources/projects/client/requests/index.d.ts +9 -0
- package/dist/cjs/api/resources/projects/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/projects/exports.d.ts +2 -0
- package/dist/cjs/api/resources/projects/exports.js +21 -0
- package/dist/cjs/api/resources/projects/index.d.ts +1 -0
- package/dist/cjs/api/resources/projects/index.js +17 -0
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +231 -0
- package/dist/cjs/api/resources/webhooks/client/Client.js +779 -0
- package/dist/cjs/api/resources/webhooks/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/webhooks/client/index.js +17 -0
- package/dist/cjs/api/resources/webhooks/client/requests/AssignWebhookResourceRequestDto.d.ts +17 -0
- package/dist/cjs/api/resources/webhooks/client/requests/AssignWebhookResourceRequestDto.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/CreateWebhookRequestDto.d.ts +42 -0
- package/dist/cjs/api/resources/webhooks/client/requests/CreateWebhookRequestDto.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/DeleteWebhookRequest.d.ts +10 -0
- package/dist/cjs/api/resources/webhooks/client/requests/DeleteWebhookRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/GetWebhookDeliveryHistoryRequest.d.ts +18 -0
- package/dist/cjs/api/resources/webhooks/client/requests/GetWebhookDeliveryHistoryRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/GetWebhookRequest.d.ts +10 -0
- package/dist/cjs/api/resources/webhooks/client/requests/GetWebhookRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/ListWebhookResourcesRequest.d.ts +16 -0
- package/dist/cjs/api/resources/webhooks/client/requests/ListWebhookResourcesRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/ListWebhooksForResourceRequest.d.ts +19 -0
- package/dist/cjs/api/resources/webhooks/client/requests/ListWebhooksForResourceRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/ListWebhooksRequest.d.ts +12 -0
- package/dist/cjs/api/resources/webhooks/client/requests/ListWebhooksRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/RemoveWebhookResourceRequest.d.ts +16 -0
- package/dist/cjs/api/resources/webhooks/client/requests/RemoveWebhookResourceRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/TestWebhookRequestDto.d.ts +19 -0
- package/dist/cjs/api/resources/webhooks/client/requests/TestWebhookRequestDto.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhookRequestDto.d.ts +30 -0
- package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhookRequestDto.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +11 -0
- package/dist/cjs/api/resources/webhooks/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/webhooks/exports.d.ts +2 -0
- package/dist/cjs/api/resources/webhooks/exports.js +21 -0
- package/dist/cjs/api/resources/webhooks/index.d.ts +2 -0
- package/dist/cjs/api/resources/webhooks/index.js +18 -0
- package/dist/cjs/api/resources/webhooks/types/CreateWebhookRequestDtoAuth.d.ts +19 -0
- package/dist/cjs/api/resources/webhooks/types/CreateWebhookRequestDtoAuth.js +3 -0
- package/dist/cjs/api/resources/webhooks/types/UpdateWebhookRequestDtoAuth.d.ts +16 -0
- package/dist/cjs/api/resources/webhooks/types/UpdateWebhookRequestDtoAuth.js +3 -0
- package/dist/cjs/api/resources/webhooks/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/webhooks/types/index.js +18 -0
- package/dist/cjs/api/types/AddResourceResponseDto.d.ts +9 -0
- package/dist/cjs/api/types/AddResourceResponseDto.js +3 -0
- package/dist/cjs/api/types/ApiKeyAuthDto.d.ts +6 -0
- package/dist/cjs/api/types/ApiKeyAuthDto.js +3 -0
- package/dist/cjs/api/types/AssignWebhookResourceResponseDto.d.ts +11 -0
- package/dist/cjs/api/types/AssignWebhookResourceResponseDto.js +3 -0
- package/dist/cjs/api/types/BasicAuthDto.d.ts +6 -0
- package/dist/cjs/api/types/BasicAuthDto.js +3 -0
- package/dist/cjs/api/types/BearerAuthDto.d.ts +4 -0
- package/dist/cjs/api/types/BearerAuthDto.js +3 -0
- package/dist/cjs/api/types/ConnectedEntity.d.ts +1 -1
- package/dist/cjs/api/types/CreateProjectResponseDto.d.ts +10 -0
- package/dist/cjs/api/types/CreateProjectResponseDto.js +3 -0
- package/dist/cjs/api/types/CreateWebhookResponseDto.d.ts +9 -0
- package/dist/cjs/api/types/CreateWebhookResponseDto.js +3 -0
- package/dist/cjs/api/types/DeleteJobResponseDto.d.ts +1 -1
- package/dist/cjs/api/types/DeleteMonitorResponseDto.d.ts +1 -1
- package/dist/cjs/api/types/DeliveryHistoryItemDto.d.ts +25 -0
- package/dist/cjs/api/types/DeliveryHistoryItemDto.js +3 -0
- package/dist/cjs/api/types/DeliveryHistoryResponseDto.d.ts +17 -0
- package/dist/cjs/api/types/DeliveryHistoryResponseDto.js +3 -0
- package/dist/cjs/api/types/DeliveryMode.d.ts +11 -0
- package/dist/cjs/api/types/DeliveryMode.js +14 -0
- package/dist/cjs/api/types/DeliveryStatus.d.ts +6 -0
- package/dist/cjs/api/types/DeliveryStatus.js +9 -0
- package/dist/cjs/api/types/GetWebhookResponseDto.d.ts +9 -0
- package/dist/cjs/api/types/GetWebhookResponseDto.js +3 -0
- package/dist/cjs/api/types/HttpMethod.d.ts +9 -0
- package/dist/cjs/api/types/HttpMethod.js +12 -0
- package/dist/cjs/api/types/IssueType.d.ts +25 -0
- package/dist/cjs/api/types/IssueType.js +28 -0
- package/dist/cjs/api/types/JobStep.d.ts +1 -1
- package/dist/cjs/api/types/ListWebhookResourcesResponseDto.d.ts +13 -0
- package/dist/cjs/api/types/ListWebhookResourcesResponseDto.js +3 -0
- package/dist/cjs/api/types/ListWebhooksResponseDto.d.ts +13 -0
- package/dist/cjs/api/types/ListWebhooksResponseDto.js +3 -0
- package/dist/cjs/api/types/MappableResourceType.d.ts +7 -0
- package/dist/cjs/api/types/MappableResourceType.js +10 -0
- package/dist/cjs/api/types/MonitorListItemDto.d.ts +1 -1
- package/dist/cjs/api/types/MonitorStatusHistoryResponseDto.d.ts +1 -1
- package/dist/cjs/api/types/ProjectListResponseDto.d.ts +13 -0
- package/dist/cjs/api/types/ProjectListResponseDto.js +3 -0
- package/dist/cjs/api/types/ProjectOverviewCountsDto.d.ts +4 -0
- package/dist/cjs/api/types/ProjectOverviewCountsDto.js +3 -0
- package/dist/cjs/api/types/ProjectOverviewResponseDto.d.ts +18 -0
- package/dist/cjs/api/types/ProjectOverviewResponseDto.js +3 -0
- package/dist/cjs/api/types/ProjectResourceDto.d.ts +18 -0
- package/dist/cjs/api/types/ProjectResourceDto.js +3 -0
- package/dist/cjs/api/types/ProjectResourceListResponseDto.d.ts +13 -0
- package/dist/cjs/api/types/ProjectResourceListResponseDto.js +3 -0
- package/dist/cjs/api/types/ProjectResourceType.d.ts +8 -0
- package/dist/cjs/api/types/ProjectResourceType.js +11 -0
- package/dist/cjs/api/types/ProjectResponseDto.d.ts +18 -0
- package/dist/cjs/api/types/ProjectResponseDto.js +3 -0
- package/dist/cjs/api/types/ProjectSummaryDto.d.ts +17 -0
- package/dist/cjs/api/types/ProjectSummaryDto.js +3 -0
- package/dist/cjs/api/types/QueryStatus.d.ts +13 -0
- package/dist/cjs/api/types/QueryStatus.js +16 -0
- package/dist/cjs/api/types/RemoveResourceResponseDto.d.ts +6 -0
- package/dist/cjs/api/types/RemoveResourceResponseDto.js +3 -0
- package/dist/cjs/api/types/ResourceItemDto.d.ts +6 -0
- package/dist/cjs/api/types/ResourceItemDto.js +3 -0
- package/dist/cjs/api/types/ResourceResultDto.d.ts +12 -0
- package/dist/cjs/api/types/ResourceResultDto.js +3 -0
- package/dist/cjs/api/types/Suggestion.d.ts +12 -0
- package/dist/cjs/api/types/Suggestion.js +3 -0
- package/dist/cjs/api/types/TestWebhookResponseDto.d.ts +10 -0
- package/dist/cjs/api/types/TestWebhookResponseDto.js +3 -0
- package/dist/cjs/api/types/UpdateProjectResponseDto.d.ts +8 -0
- package/dist/cjs/api/types/UpdateProjectResponseDto.js +3 -0
- package/dist/cjs/api/types/UpdateWebhookResponseDto.d.ts +9 -0
- package/dist/cjs/api/types/UpdateWebhookResponseDto.js +3 -0
- package/dist/cjs/api/types/ValidateQueryResponseDto.d.ts +18 -0
- package/dist/cjs/api/types/ValidateQueryResponseDto.js +3 -0
- package/dist/cjs/api/types/WebhookResourceMappingResponseDto.d.ts +12 -0
- package/dist/cjs/api/types/WebhookResourceMappingResponseDto.js +3 -0
- package/dist/cjs/api/types/WebhookResponseDto.d.ts +28 -0
- package/dist/cjs/api/types/WebhookResponseDto.js +3 -0
- package/dist/cjs/api/types/WebhookType.d.ts +17 -0
- package/dist/cjs/api/types/WebhookType.js +20 -0
- package/dist/cjs/api/types/index.d.ts +37 -0
- package/dist/cjs/api/types/index.js +37 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +6 -0
- package/dist/esm/Client.mjs +10 -0
- package/dist/esm/api/resources/datasets/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/datasets/client/Client.mjs +4 -2
- package/dist/esm/api/resources/datasets/client/requests/ListDatasetsRequest.d.mts +4 -1
- package/dist/esm/api/resources/index.d.mts +5 -0
- package/dist/esm/api/resources/index.mjs +5 -0
- package/dist/esm/api/resources/jobs/client/Client.d.mts +21 -1
- package/dist/esm/api/resources/jobs/client/Client.mjs +63 -2
- package/dist/esm/api/resources/jobs/client/requests/GetUserJobsRequest.d.mts +5 -1
- package/dist/esm/api/resources/jobs/client/requests/SubmitRequestDto.d.mts +4 -0
- package/dist/esm/api/resources/jobs/client/requests/ValidateQueryRequestDto.d.mts +10 -0
- package/dist/esm/api/resources/jobs/client/requests/ValidateQueryRequestDto.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/monitors/client/Client.d.mts +5 -15
- package/dist/esm/api/resources/monitors/client/Client.mjs +7 -16
- package/dist/esm/api/resources/monitors/client/requests/CreateMonitorRequestDto.d.mts +10 -10
- package/dist/esm/api/resources/monitors/client/requests/ListMonitorsRequest.d.mts +5 -1
- package/dist/esm/api/resources/monitors/client/requests/UpdateMonitorRequestDto.d.mts +7 -10
- package/dist/esm/api/resources/monitors/types/DisableMonitorResponse.d.mts +1 -1
- package/dist/esm/api/resources/monitors/types/EnableMonitorResponse.d.mts +1 -1
- package/dist/esm/api/resources/projects/client/Client.d.mts +178 -0
- package/dist/esm/api/resources/projects/client/Client.mjs +589 -0
- package/dist/esm/api/resources/projects/client/index.d.mts +1 -0
- package/dist/esm/api/resources/projects/client/index.mjs +1 -0
- package/dist/esm/api/resources/projects/client/requests/AddResourceRequestDto.d.mts +17 -0
- package/dist/esm/api/resources/projects/client/requests/AddResourceRequestDto.mjs +2 -0
- package/dist/esm/api/resources/projects/client/requests/CreateProjectRequestDto.d.mts +13 -0
- package/dist/esm/api/resources/projects/client/requests/CreateProjectRequestDto.mjs +2 -0
- package/dist/esm/api/resources/projects/client/requests/DeleteProjectRequest.d.mts +12 -0
- package/dist/esm/api/resources/projects/client/requests/DeleteProjectRequest.mjs +2 -0
- package/dist/esm/api/resources/projects/client/requests/GetProjectOverviewRequest.d.mts +10 -0
- package/dist/esm/api/resources/projects/client/requests/GetProjectOverviewRequest.mjs +2 -0
- package/dist/esm/api/resources/projects/client/requests/GetProjectRequest.d.mts +10 -0
- package/dist/esm/api/resources/projects/client/requests/GetProjectRequest.mjs +2 -0
- package/dist/esm/api/resources/projects/client/requests/ListProjectResourcesRequest.d.mts +16 -0
- package/dist/esm/api/resources/projects/client/requests/ListProjectResourcesRequest.mjs +2 -0
- package/dist/esm/api/resources/projects/client/requests/ListProjectsRequest.d.mts +16 -0
- package/dist/esm/api/resources/projects/client/requests/ListProjectsRequest.mjs +2 -0
- package/dist/esm/api/resources/projects/client/requests/RemoveResourceFromProjectRequest.d.mts +16 -0
- package/dist/esm/api/resources/projects/client/requests/RemoveResourceFromProjectRequest.mjs +2 -0
- package/dist/esm/api/resources/projects/client/requests/UpdateProjectRequestDto.d.mts +15 -0
- package/dist/esm/api/resources/projects/client/requests/UpdateProjectRequestDto.mjs +2 -0
- package/dist/esm/api/resources/projects/client/requests/index.d.mts +9 -0
- package/dist/esm/api/resources/projects/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/projects/exports.d.mts +2 -0
- package/dist/esm/api/resources/projects/exports.mjs +3 -0
- package/dist/esm/api/resources/projects/index.d.mts +1 -0
- package/dist/esm/api/resources/projects/index.mjs +1 -0
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +231 -0
- package/dist/esm/api/resources/webhooks/client/Client.mjs +742 -0
- package/dist/esm/api/resources/webhooks/client/index.d.mts +1 -0
- package/dist/esm/api/resources/webhooks/client/index.mjs +1 -0
- package/dist/esm/api/resources/webhooks/client/requests/AssignWebhookResourceRequestDto.d.mts +17 -0
- package/dist/esm/api/resources/webhooks/client/requests/AssignWebhookResourceRequestDto.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/CreateWebhookRequestDto.d.mts +42 -0
- package/dist/esm/api/resources/webhooks/client/requests/CreateWebhookRequestDto.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/DeleteWebhookRequest.d.mts +10 -0
- package/dist/esm/api/resources/webhooks/client/requests/DeleteWebhookRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/GetWebhookDeliveryHistoryRequest.d.mts +18 -0
- package/dist/esm/api/resources/webhooks/client/requests/GetWebhookDeliveryHistoryRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/GetWebhookRequest.d.mts +10 -0
- package/dist/esm/api/resources/webhooks/client/requests/GetWebhookRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/ListWebhookResourcesRequest.d.mts +16 -0
- package/dist/esm/api/resources/webhooks/client/requests/ListWebhookResourcesRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/ListWebhooksForResourceRequest.d.mts +19 -0
- package/dist/esm/api/resources/webhooks/client/requests/ListWebhooksForResourceRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/ListWebhooksRequest.d.mts +12 -0
- package/dist/esm/api/resources/webhooks/client/requests/ListWebhooksRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/RemoveWebhookResourceRequest.d.mts +16 -0
- package/dist/esm/api/resources/webhooks/client/requests/RemoveWebhookResourceRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/TestWebhookRequestDto.d.mts +19 -0
- package/dist/esm/api/resources/webhooks/client/requests/TestWebhookRequestDto.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhookRequestDto.d.mts +30 -0
- package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhookRequestDto.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +11 -0
- package/dist/esm/api/resources/webhooks/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/webhooks/exports.d.mts +2 -0
- package/dist/esm/api/resources/webhooks/exports.mjs +3 -0
- package/dist/esm/api/resources/webhooks/index.d.mts +2 -0
- package/dist/esm/api/resources/webhooks/index.mjs +2 -0
- package/dist/esm/api/resources/webhooks/types/CreateWebhookRequestDtoAuth.d.mts +19 -0
- package/dist/esm/api/resources/webhooks/types/CreateWebhookRequestDtoAuth.mjs +2 -0
- package/dist/esm/api/resources/webhooks/types/UpdateWebhookRequestDtoAuth.d.mts +16 -0
- package/dist/esm/api/resources/webhooks/types/UpdateWebhookRequestDtoAuth.mjs +2 -0
- package/dist/esm/api/resources/webhooks/types/index.d.mts +2 -0
- package/dist/esm/api/resources/webhooks/types/index.mjs +2 -0
- package/dist/esm/api/types/AddResourceResponseDto.d.mts +9 -0
- package/dist/esm/api/types/AddResourceResponseDto.mjs +2 -0
- package/dist/esm/api/types/ApiKeyAuthDto.d.mts +6 -0
- package/dist/esm/api/types/ApiKeyAuthDto.mjs +2 -0
- package/dist/esm/api/types/AssignWebhookResourceResponseDto.d.mts +11 -0
- package/dist/esm/api/types/AssignWebhookResourceResponseDto.mjs +2 -0
- package/dist/esm/api/types/BasicAuthDto.d.mts +6 -0
- package/dist/esm/api/types/BasicAuthDto.mjs +2 -0
- package/dist/esm/api/types/BearerAuthDto.d.mts +4 -0
- package/dist/esm/api/types/BearerAuthDto.mjs +2 -0
- package/dist/esm/api/types/ConnectedEntity.d.mts +1 -1
- package/dist/esm/api/types/CreateProjectResponseDto.d.mts +10 -0
- package/dist/esm/api/types/CreateProjectResponseDto.mjs +2 -0
- package/dist/esm/api/types/CreateWebhookResponseDto.d.mts +9 -0
- package/dist/esm/api/types/CreateWebhookResponseDto.mjs +2 -0
- package/dist/esm/api/types/DeleteJobResponseDto.d.mts +1 -1
- package/dist/esm/api/types/DeleteMonitorResponseDto.d.mts +1 -1
- package/dist/esm/api/types/DeliveryHistoryItemDto.d.mts +25 -0
- package/dist/esm/api/types/DeliveryHistoryItemDto.mjs +2 -0
- package/dist/esm/api/types/DeliveryHistoryResponseDto.d.mts +17 -0
- package/dist/esm/api/types/DeliveryHistoryResponseDto.mjs +2 -0
- package/dist/esm/api/types/DeliveryMode.d.mts +11 -0
- package/dist/esm/api/types/DeliveryMode.mjs +11 -0
- package/dist/esm/api/types/DeliveryStatus.d.mts +6 -0
- package/dist/esm/api/types/DeliveryStatus.mjs +6 -0
- package/dist/esm/api/types/GetWebhookResponseDto.d.mts +9 -0
- package/dist/esm/api/types/GetWebhookResponseDto.mjs +2 -0
- package/dist/esm/api/types/HttpMethod.d.mts +9 -0
- package/dist/esm/api/types/HttpMethod.mjs +9 -0
- package/dist/esm/api/types/IssueType.d.mts +25 -0
- package/dist/esm/api/types/IssueType.mjs +25 -0
- package/dist/esm/api/types/JobStep.d.mts +1 -1
- package/dist/esm/api/types/ListWebhookResourcesResponseDto.d.mts +13 -0
- package/dist/esm/api/types/ListWebhookResourcesResponseDto.mjs +2 -0
- package/dist/esm/api/types/ListWebhooksResponseDto.d.mts +13 -0
- package/dist/esm/api/types/ListWebhooksResponseDto.mjs +2 -0
- package/dist/esm/api/types/MappableResourceType.d.mts +7 -0
- package/dist/esm/api/types/MappableResourceType.mjs +7 -0
- package/dist/esm/api/types/MonitorListItemDto.d.mts +1 -1
- package/dist/esm/api/types/MonitorStatusHistoryResponseDto.d.mts +1 -1
- package/dist/esm/api/types/ProjectListResponseDto.d.mts +13 -0
- package/dist/esm/api/types/ProjectListResponseDto.mjs +2 -0
- package/dist/esm/api/types/ProjectOverviewCountsDto.d.mts +4 -0
- package/dist/esm/api/types/ProjectOverviewCountsDto.mjs +2 -0
- package/dist/esm/api/types/ProjectOverviewResponseDto.d.mts +18 -0
- package/dist/esm/api/types/ProjectOverviewResponseDto.mjs +2 -0
- package/dist/esm/api/types/ProjectResourceDto.d.mts +18 -0
- package/dist/esm/api/types/ProjectResourceDto.mjs +2 -0
- package/dist/esm/api/types/ProjectResourceListResponseDto.d.mts +13 -0
- package/dist/esm/api/types/ProjectResourceListResponseDto.mjs +2 -0
- package/dist/esm/api/types/ProjectResourceType.d.mts +8 -0
- package/dist/esm/api/types/ProjectResourceType.mjs +8 -0
- package/dist/esm/api/types/ProjectResponseDto.d.mts +18 -0
- package/dist/esm/api/types/ProjectResponseDto.mjs +2 -0
- package/dist/esm/api/types/ProjectSummaryDto.d.mts +17 -0
- package/dist/esm/api/types/ProjectSummaryDto.mjs +2 -0
- package/dist/esm/api/types/QueryStatus.d.mts +13 -0
- package/dist/esm/api/types/QueryStatus.mjs +13 -0
- package/dist/esm/api/types/RemoveResourceResponseDto.d.mts +6 -0
- package/dist/esm/api/types/RemoveResourceResponseDto.mjs +2 -0
- package/dist/esm/api/types/ResourceItemDto.d.mts +6 -0
- package/dist/esm/api/types/ResourceItemDto.mjs +2 -0
- package/dist/esm/api/types/ResourceResultDto.d.mts +12 -0
- package/dist/esm/api/types/ResourceResultDto.mjs +2 -0
- package/dist/esm/api/types/Suggestion.d.mts +12 -0
- package/dist/esm/api/types/Suggestion.mjs +2 -0
- package/dist/esm/api/types/TestWebhookResponseDto.d.mts +10 -0
- package/dist/esm/api/types/TestWebhookResponseDto.mjs +2 -0
- package/dist/esm/api/types/UpdateProjectResponseDto.d.mts +8 -0
- package/dist/esm/api/types/UpdateProjectResponseDto.mjs +2 -0
- package/dist/esm/api/types/UpdateWebhookResponseDto.d.mts +9 -0
- package/dist/esm/api/types/UpdateWebhookResponseDto.mjs +2 -0
- package/dist/esm/api/types/ValidateQueryResponseDto.d.mts +18 -0
- package/dist/esm/api/types/ValidateQueryResponseDto.mjs +2 -0
- package/dist/esm/api/types/WebhookResourceMappingResponseDto.d.mts +12 -0
- package/dist/esm/api/types/WebhookResourceMappingResponseDto.mjs +2 -0
- package/dist/esm/api/types/WebhookResponseDto.d.mts +28 -0
- package/dist/esm/api/types/WebhookResponseDto.mjs +2 -0
- package/dist/esm/api/types/WebhookType.d.mts +17 -0
- package/dist/esm/api/types/WebhookType.mjs +17 -0
- package/dist/esm/api/types/index.d.mts +37 -0
- package/dist/esm/api/types/index.mjs +37 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +23 -1
- package/reference.md +1599 -201
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Category of a query issue identified during validation.
|
|
3
|
+
*
|
|
4
|
+
* - `missing_event_type`: Query does not specify a type of event to find.
|
|
5
|
+
* - `too_vague`: Query lacks sufficient focus to return targeted results.
|
|
6
|
+
* - `too_specific`: Query is overly constrained and may return no results.
|
|
7
|
+
* - `wrong_timeframe`: Requested timeframe exceeds the 30-day maximum window or references a historical period outside the supported range.
|
|
8
|
+
* - `static_content`: Query targets static or reference content such as specifications, how-to guides, or historical data rather than events.
|
|
9
|
+
* - `article_request`: Query requests articles or news content rather than describing an event to search for.
|
|
10
|
+
* - `multiple_event_types`: Query mixes unrelated event types; results may be unfocused.
|
|
11
|
+
* - `too_short`: Query is too short to resolve meaningful search intent.
|
|
12
|
+
* - `too_long`: Query is excessively long and may confuse the pipeline.
|
|
13
|
+
*/
|
|
14
|
+
export declare const IssueType: {
|
|
15
|
+
readonly MissingEventType: "missing_event_type";
|
|
16
|
+
readonly TooVague: "too_vague";
|
|
17
|
+
readonly TooSpecific: "too_specific";
|
|
18
|
+
readonly WrongTimeframe: "wrong_timeframe";
|
|
19
|
+
readonly StaticContent: "static_content";
|
|
20
|
+
readonly ArticleRequest: "article_request";
|
|
21
|
+
readonly MultipleEventTypes: "multiple_event_types";
|
|
22
|
+
readonly TooShort: "too_short";
|
|
23
|
+
readonly TooLong: "too_long";
|
|
24
|
+
};
|
|
25
|
+
export type IssueType = (typeof IssueType)[keyof typeof IssueType];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/**
|
|
3
|
+
* Category of a query issue identified during validation.
|
|
4
|
+
*
|
|
5
|
+
* - `missing_event_type`: Query does not specify a type of event to find.
|
|
6
|
+
* - `too_vague`: Query lacks sufficient focus to return targeted results.
|
|
7
|
+
* - `too_specific`: Query is overly constrained and may return no results.
|
|
8
|
+
* - `wrong_timeframe`: Requested timeframe exceeds the 30-day maximum window or references a historical period outside the supported range.
|
|
9
|
+
* - `static_content`: Query targets static or reference content such as specifications, how-to guides, or historical data rather than events.
|
|
10
|
+
* - `article_request`: Query requests articles or news content rather than describing an event to search for.
|
|
11
|
+
* - `multiple_event_types`: Query mixes unrelated event types; results may be unfocused.
|
|
12
|
+
* - `too_short`: Query is too short to resolve meaningful search intent.
|
|
13
|
+
* - `too_long`: Query is excessively long and may confuse the pipeline.
|
|
14
|
+
*/
|
|
15
|
+
export const IssueType = {
|
|
16
|
+
MissingEventType: "missing_event_type",
|
|
17
|
+
TooVague: "too_vague",
|
|
18
|
+
TooSpecific: "too_specific",
|
|
19
|
+
WrongTimeframe: "wrong_timeframe",
|
|
20
|
+
StaticContent: "static_content",
|
|
21
|
+
ArticleRequest: "article_request",
|
|
22
|
+
MultipleEventTypes: "multiple_event_types",
|
|
23
|
+
TooShort: "too_short",
|
|
24
|
+
TooLong: "too_long",
|
|
25
|
+
};
|
|
@@ -3,6 +3,6 @@ export interface JobStep {
|
|
|
3
3
|
status: CatchAllApi.PublicJobStatus;
|
|
4
4
|
/** Sequential position of this step in the pipeline (1-7). */
|
|
5
5
|
order: number;
|
|
6
|
-
/**
|
|
6
|
+
/** True if this step has finished processing; false otherwise. */
|
|
7
7
|
completed: boolean;
|
|
8
8
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as CatchAllApi from "../index.mjs";
|
|
2
|
+
export interface ListWebhookResourcesResponseDto {
|
|
3
|
+
/** Total number of resource mappings for this webhook. */
|
|
4
|
+
total: number;
|
|
5
|
+
/** Current page number. */
|
|
6
|
+
page: number;
|
|
7
|
+
/** Number of mappings per page. */
|
|
8
|
+
page_size: number;
|
|
9
|
+
/** Total number of pages available. */
|
|
10
|
+
total_pages: number;
|
|
11
|
+
/** Resource mappings on this page. */
|
|
12
|
+
resources: CatchAllApi.WebhookResourceMappingResponseDto[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as CatchAllApi from "../index.mjs";
|
|
2
|
+
export interface ListWebhooksResponseDto {
|
|
3
|
+
/** Total number of webhooks in the organization. */
|
|
4
|
+
total: number;
|
|
5
|
+
/** Current page number. */
|
|
6
|
+
page: number;
|
|
7
|
+
/** Number of webhooks per page. */
|
|
8
|
+
page_size: number;
|
|
9
|
+
/** Total number of pages available. */
|
|
10
|
+
total_pages: number;
|
|
11
|
+
/** Webhooks on this page. */
|
|
12
|
+
webhooks: CatchAllApi.WebhookResponseDto[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Resource types that can be assigned to a webhook. */
|
|
2
|
+
export declare const MappableResourceType: {
|
|
3
|
+
readonly Job: "job";
|
|
4
|
+
readonly Monitor: "monitor";
|
|
5
|
+
readonly MonitorGroup: "monitor_group";
|
|
6
|
+
};
|
|
7
|
+
export type MappableResourceType = (typeof MappableResourceType)[keyof typeof MappableResourceType];
|
|
@@ -6,7 +6,7 @@ export interface MonitorListItemDto {
|
|
|
6
6
|
reference_job_id: string;
|
|
7
7
|
/** Plain text query from the reference job. */
|
|
8
8
|
reference_job_query: string;
|
|
9
|
-
/**
|
|
9
|
+
/** True if the monitor is currently active; false otherwise. */
|
|
10
10
|
enabled: boolean;
|
|
11
11
|
/** Cron expression for monitor schedule. */
|
|
12
12
|
schedule?: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as CatchAllApi from "../index.mjs";
|
|
2
2
|
export interface MonitorStatusHistoryResponseDto {
|
|
3
|
-
/**
|
|
3
|
+
/** True if the request succeeded; false otherwise. */
|
|
4
4
|
success: boolean;
|
|
5
5
|
/** Optional message. `null` on success. */
|
|
6
6
|
message?: (string | null) | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as CatchAllApi from "../index.mjs";
|
|
2
|
+
export interface ProjectListResponseDto {
|
|
3
|
+
/** Total number of projects matching the filter criteria. */
|
|
4
|
+
total: number;
|
|
5
|
+
/** Current page number. */
|
|
6
|
+
page: number;
|
|
7
|
+
/** Number of projects per page. */
|
|
8
|
+
page_size: number;
|
|
9
|
+
/** Total number of pages. */
|
|
10
|
+
total_pages: number;
|
|
11
|
+
/** Projects on this page. */
|
|
12
|
+
projects: CatchAllApi.ProjectSummaryDto[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as CatchAllApi from "../index.mjs";
|
|
2
|
+
export interface ProjectOverviewResponseDto {
|
|
3
|
+
/** Project identifier. */
|
|
4
|
+
project_id: string;
|
|
5
|
+
/** Resource counts grouped by type. */
|
|
6
|
+
overview: ProjectOverviewResponseDto.Overview;
|
|
7
|
+
}
|
|
8
|
+
export declare namespace ProjectOverviewResponseDto {
|
|
9
|
+
/**
|
|
10
|
+
* Resource counts grouped by type.
|
|
11
|
+
*/
|
|
12
|
+
interface Overview {
|
|
13
|
+
jobs: CatchAllApi.ProjectOverviewCountsDto;
|
|
14
|
+
monitors: CatchAllApi.ProjectOverviewCountsDto;
|
|
15
|
+
datasets: CatchAllApi.ProjectOverviewCountsDto;
|
|
16
|
+
monitor_groups: CatchAllApi.ProjectOverviewCountsDto;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as CatchAllApi from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* A resource assigned to a project.
|
|
4
|
+
*/
|
|
5
|
+
export interface ProjectResourceDto {
|
|
6
|
+
resource_type: CatchAllApi.ProjectResourceType;
|
|
7
|
+
/** Resource identifier. */
|
|
8
|
+
resource_id: string;
|
|
9
|
+
/**
|
|
10
|
+
* Resource display name. For jobs, this is the original query
|
|
11
|
+
* string. For monitors and datasets, this is the resource name.
|
|
12
|
+
*/
|
|
13
|
+
name?: string | undefined;
|
|
14
|
+
/** Resource creation timestamp. */
|
|
15
|
+
created_at?: string | undefined;
|
|
16
|
+
/** Additional resource-specific metadata. */
|
|
17
|
+
metadata?: Record<string, unknown> | undefined;
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as CatchAllApi from "../index.mjs";
|
|
2
|
+
export interface ProjectResourceListResponseDto {
|
|
3
|
+
/** Total number of resources assigned to the project. */
|
|
4
|
+
total: number;
|
|
5
|
+
/** Current page number. */
|
|
6
|
+
page: number;
|
|
7
|
+
/** Number of resources per page. */
|
|
8
|
+
page_size: number;
|
|
9
|
+
/** Total number of pages. */
|
|
10
|
+
total_pages: number;
|
|
11
|
+
/** Resources on this page. */
|
|
12
|
+
resources: CatchAllApi.ProjectResourceDto[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Resource type for project association. */
|
|
2
|
+
export declare const ProjectResourceType: {
|
|
3
|
+
readonly Job: "job";
|
|
4
|
+
readonly Monitor: "monitor";
|
|
5
|
+
readonly Dataset: "dataset";
|
|
6
|
+
readonly MonitorGroup: "monitor_group";
|
|
7
|
+
};
|
|
8
|
+
export type ProjectResourceType = (typeof ProjectResourceType)[keyof typeof ProjectResourceType];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ProjectResponseDto {
|
|
2
|
+
/** True if the operation succeeded; false otherwise. */
|
|
3
|
+
success: boolean;
|
|
4
|
+
/** Human-readable result message. */
|
|
5
|
+
message: string;
|
|
6
|
+
/** Project identifier. */
|
|
7
|
+
project_id: string;
|
|
8
|
+
/** Project name. */
|
|
9
|
+
name: string;
|
|
10
|
+
/** Project description. */
|
|
11
|
+
description?: (string | null) | undefined;
|
|
12
|
+
/** Number of resources assigned to this project. */
|
|
13
|
+
resources_count?: number | undefined;
|
|
14
|
+
/** Project creation timestamp. */
|
|
15
|
+
created_at?: string | undefined;
|
|
16
|
+
/** Timestamp of the last update. */
|
|
17
|
+
updated_at?: string | undefined;
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Abbreviated project object returned in list responses.
|
|
3
|
+
*/
|
|
4
|
+
export interface ProjectSummaryDto {
|
|
5
|
+
/** Project identifier. */
|
|
6
|
+
project_id: string;
|
|
7
|
+
/** Project name. */
|
|
8
|
+
name: string;
|
|
9
|
+
/** Project description. */
|
|
10
|
+
description?: (string | null) | undefined;
|
|
11
|
+
/** Number of resources assigned to this project. */
|
|
12
|
+
resources_count?: number | undefined;
|
|
13
|
+
/** Project creation timestamp. */
|
|
14
|
+
created_at?: string | undefined;
|
|
15
|
+
/** Timestamp of the last update. */
|
|
16
|
+
updated_at?: string | undefined;
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Quality level assigned to a query by the validation endpoint.
|
|
3
|
+
*
|
|
4
|
+
* - `good`: Query is well-formed and likely to produce relevant results.
|
|
5
|
+
* - `needs_work`: Query has issues that may reduce result quality. Review `suggestions` for improvements.
|
|
6
|
+
* - `critical`: Query is unlikely to produce useful results as written. Address all `issues` before submitting.
|
|
7
|
+
*/
|
|
8
|
+
export declare const QueryStatus: {
|
|
9
|
+
readonly Good: "good";
|
|
10
|
+
readonly NeedsWork: "needs_work";
|
|
11
|
+
readonly Critical: "critical";
|
|
12
|
+
};
|
|
13
|
+
export type QueryStatus = (typeof QueryStatus)[keyof typeof QueryStatus];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/**
|
|
3
|
+
* Quality level assigned to a query by the validation endpoint.
|
|
4
|
+
*
|
|
5
|
+
* - `good`: Query is well-formed and likely to produce relevant results.
|
|
6
|
+
* - `needs_work`: Query has issues that may reduce result quality. Review `suggestions` for improvements.
|
|
7
|
+
* - `critical`: Query is unlikely to produce useful results as written. Address all `issues` before submitting.
|
|
8
|
+
*/
|
|
9
|
+
export const QueryStatus = {
|
|
10
|
+
Good: "good",
|
|
11
|
+
NeedsWork: "needs_work",
|
|
12
|
+
Critical: "critical",
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ResourceResultDto {
|
|
2
|
+
/** Type of the resource. */
|
|
3
|
+
resource_type: string;
|
|
4
|
+
/** Resource identifier. */
|
|
5
|
+
resource_id: string;
|
|
6
|
+
/** True if this resource was processed successfully. */
|
|
7
|
+
success: boolean;
|
|
8
|
+
/** Per-resource result message. */
|
|
9
|
+
message: string;
|
|
10
|
+
/** True if the resource is already assigned to this project. */
|
|
11
|
+
already_exists?: boolean | undefined;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as CatchAllApi from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Actionable recommendation for improving a query.
|
|
4
|
+
*/
|
|
5
|
+
export interface Suggestion {
|
|
6
|
+
/** The issue this suggestion addresses. */
|
|
7
|
+
issue: CatchAllApi.IssueType;
|
|
8
|
+
/** Specific guidance for improving the query. */
|
|
9
|
+
message: string;
|
|
10
|
+
/** Revised query demonstrating the suggested improvement. */
|
|
11
|
+
example?: string | undefined;
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface TestWebhookResponseDto {
|
|
2
|
+
/** True if the test delivery received a 2xx response; false otherwise. */
|
|
3
|
+
success: boolean;
|
|
4
|
+
/** Human-readable result message. */
|
|
5
|
+
message: string;
|
|
6
|
+
/** HTTP status code returned by the webhook endpoint. */
|
|
7
|
+
http_status_code?: number | undefined;
|
|
8
|
+
/** Response body returned by the webhook endpoint. Type varies by target. */
|
|
9
|
+
response_body?: unknown | undefined;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as CatchAllApi from "../index.mjs";
|
|
2
|
+
export interface UpdateWebhookResponseDto {
|
|
3
|
+
/** True if the webhook was updated; false otherwise. */
|
|
4
|
+
success: boolean;
|
|
5
|
+
/** Human-readable result message. */
|
|
6
|
+
message: string;
|
|
7
|
+
/** The updated webhook object. */
|
|
8
|
+
webhook?: CatchAllApi.WebhookResponseDto | undefined;
|
|
9
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as CatchAllApi from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Query quality assessment returned by the validate endpoint.
|
|
4
|
+
*/
|
|
5
|
+
export interface ValidateQueryResponseDto {
|
|
6
|
+
/** Overall quality level of the query. */
|
|
7
|
+
status: CatchAllApi.QueryStatus;
|
|
8
|
+
/** Short headline summarising the assessment. */
|
|
9
|
+
title: string;
|
|
10
|
+
/** Plain-language explanation of the assessment result. */
|
|
11
|
+
description?: string | undefined;
|
|
12
|
+
/** Issues identified in the query. Empty when `status` is `good`. */
|
|
13
|
+
issues?: CatchAllApi.IssueType[] | undefined;
|
|
14
|
+
/** Actionable recommendations for each identified issue. Empty when `status` is `good`. Each suggestion corresponds to one entry in `issues`. */
|
|
15
|
+
suggestions?: CatchAllApi.Suggestion[] | undefined;
|
|
16
|
+
/** Confidence score for this assessment. */
|
|
17
|
+
confidence: number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface WebhookResourceMappingResponseDto {
|
|
2
|
+
/** Mapping identifier. */
|
|
3
|
+
id: string;
|
|
4
|
+
/** Webhook identifier. */
|
|
5
|
+
webhook_id: string;
|
|
6
|
+
/** Type of the assigned resource. */
|
|
7
|
+
resource_type: string;
|
|
8
|
+
/** Identifier of the assigned resource. */
|
|
9
|
+
resource_id: string;
|
|
10
|
+
/** Timestamp when the resource was assigned in ISO 8601 format with UTC timezone. */
|
|
11
|
+
assigned_at?: string | undefined;
|
|
12
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type * as CatchAllApi from "../index.mjs";
|
|
2
|
+
export interface WebhookResponseDto {
|
|
3
|
+
/** Webhook identifier. */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Human-readable label for this webhook. */
|
|
6
|
+
name: string;
|
|
7
|
+
/** Destination URL that receives the payload. */
|
|
8
|
+
url: string;
|
|
9
|
+
type: CatchAllApi.WebhookType;
|
|
10
|
+
delivery_mode: CatchAllApi.DeliveryMode;
|
|
11
|
+
method: CatchAllApi.HttpMethod;
|
|
12
|
+
/** Custom HTTP headers forwarded with each delivery. */
|
|
13
|
+
headers?: Record<string, string> | undefined;
|
|
14
|
+
/** Query parameters appended to the webhook URL. */
|
|
15
|
+
params?: Record<string, string> | undefined;
|
|
16
|
+
/** Custom payload transformation configuration. Used only when `type` is `custom`. */
|
|
17
|
+
formatter_config?: (Record<string, unknown> | null) | undefined;
|
|
18
|
+
/** True if the webhook is active; false otherwise. */
|
|
19
|
+
is_active: boolean;
|
|
20
|
+
/** Organization that owns this webhook. */
|
|
21
|
+
organization_id?: string | undefined;
|
|
22
|
+
/** ID of the user who created this webhook. */
|
|
23
|
+
created_by_user_id?: string | undefined;
|
|
24
|
+
/** Webhook creation timestamp in ISO 8601 format with UTC timezone. */
|
|
25
|
+
created_at?: string | undefined;
|
|
26
|
+
/** Timestamp of the last update in ISO 8601 format with UTC timezone. */
|
|
27
|
+
updated_at?: string | undefined;
|
|
28
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Webhook target type.
|
|
3
|
+
*
|
|
4
|
+
* - `generic`: Sends the raw result payload to any HTTPS endpoint.
|
|
5
|
+
* - `slack`: Sends a formatted Slack Block Kit message. URL must start with `https://hooks.slack.com/`.
|
|
6
|
+
* - `teams`: Sends a formatted Microsoft Teams Adaptive Card. URL hostname must match `*webhook.office.com` or `*.webhook.office365.com`.
|
|
7
|
+
* - `custom`: Sends a transformed payload using the configuration in `formatter_config`. Requires `formatter_config` to be set.
|
|
8
|
+
*
|
|
9
|
+
* When `type` is omitted, it is auto-detected from the URL.
|
|
10
|
+
*/
|
|
11
|
+
export declare const WebhookType: {
|
|
12
|
+
readonly Generic: "generic";
|
|
13
|
+
readonly Slack: "slack";
|
|
14
|
+
readonly Teams: "teams";
|
|
15
|
+
readonly Custom: "custom";
|
|
16
|
+
};
|
|
17
|
+
export type WebhookType = (typeof WebhookType)[keyof typeof WebhookType];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/**
|
|
3
|
+
* Webhook target type.
|
|
4
|
+
*
|
|
5
|
+
* - `generic`: Sends the raw result payload to any HTTPS endpoint.
|
|
6
|
+
* - `slack`: Sends a formatted Slack Block Kit message. URL must start with `https://hooks.slack.com/`.
|
|
7
|
+
* - `teams`: Sends a formatted Microsoft Teams Adaptive Card. URL hostname must match `*webhook.office.com` or `*.webhook.office365.com`.
|
|
8
|
+
* - `custom`: Sends a transformed payload using the configuration in `formatter_config`. Requires `formatter_config` to be set.
|
|
9
|
+
*
|
|
10
|
+
* When `type` is omitted, it is auto-detected from the URL.
|
|
11
|
+
*/
|
|
12
|
+
export const WebhookType = {
|
|
13
|
+
Generic: "generic",
|
|
14
|
+
Slack: "slack",
|
|
15
|
+
Teams: "teams",
|
|
16
|
+
Custom: "custom",
|
|
17
|
+
};
|