@enbbox/api 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/README.md +380 -0
- package/dist/api/activity-api.d.ts +381 -0
- package/dist/api/activity-api.js +636 -0
- package/dist/api/billing-api.d.ts +337 -0
- package/dist/api/billing-api.js +571 -0
- package/dist/api/channel-connections-api.d.ts +263 -0
- package/dist/api/channel-connections-api.js +437 -0
- package/dist/api/channel-endpoints-api.d.ts +263 -0
- package/dist/api/channel-endpoints-api.js +437 -0
- package/dist/api/contexts-api.d.ts +278 -0
- package/dist/api/contexts-api.js +458 -0
- package/dist/api/events-api.d.ts +203 -0
- package/dist/api/events-api.js +341 -0
- package/dist/api/feature-flags-api.d.ts +74 -0
- package/dist/api/feature-flags-api.js +124 -0
- package/dist/api/health-api.d.ts +144 -0
- package/dist/api/health-api.js +237 -0
- package/dist/api/inbound-parse-api.d.ts +79 -0
- package/dist/api/inbound-parse-api.js +129 -0
- package/dist/api/inbox-api.d.ts +582 -0
- package/dist/api/inbox-api.js +976 -0
- package/dist/api/integrations-api.d.ts +420 -0
- package/dist/api/integrations-api.js +707 -0
- package/dist/api/layouts-api.d.ts +431 -0
- package/dist/api/layouts-api.js +721 -0
- package/dist/api/messages-api.d.ts +185 -0
- package/dist/api/messages-api.js +303 -0
- package/dist/api/metrics-api.d.ts +74 -0
- package/dist/api/metrics-api.js +121 -0
- package/dist/api/notification-groups-api.d.ts +202 -0
- package/dist/api/notification-groups-api.js +340 -0
- package/dist/api/notifications-api.d.ts +171 -0
- package/dist/api/notifications-api.js +284 -0
- package/dist/api/preferences-api.d.ts +176 -0
- package/dist/api/preferences-api.js +293 -0
- package/dist/api/projects-api.d.ts +541 -0
- package/dist/api/projects-api.js +915 -0
- package/dist/api/subscribers-api.d.ts +780 -0
- package/dist/api/subscribers-api.js +1292 -0
- package/dist/api/topics-api.d.ts +689 -0
- package/dist/api/topics-api.js +1143 -0
- package/dist/api/translations-api.d.ts +239 -0
- package/dist/api/translations-api.js +405 -0
- package/dist/api/webhooks-api.d.ts +208 -0
- package/dist/api/webhooks-api.js +344 -0
- package/dist/api/workflows-api.d.ts +493 -0
- package/dist/api/workflows-api.js +820 -0
- package/dist/api.d.ts +34 -0
- package/dist/api.js +52 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +46 -0
- package/dist/common.d.ts +34 -0
- package/dist/common.js +139 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api/activity-api.d.ts +381 -0
- package/dist/esm/api/activity-api.js +629 -0
- package/dist/esm/api/billing-api.d.ts +337 -0
- package/dist/esm/api/billing-api.js +564 -0
- package/dist/esm/api/channel-connections-api.d.ts +263 -0
- package/dist/esm/api/channel-connections-api.js +430 -0
- package/dist/esm/api/channel-endpoints-api.d.ts +263 -0
- package/dist/esm/api/channel-endpoints-api.js +430 -0
- package/dist/esm/api/contexts-api.d.ts +278 -0
- package/dist/esm/api/contexts-api.js +451 -0
- package/dist/esm/api/events-api.d.ts +203 -0
- package/dist/esm/api/events-api.js +334 -0
- package/dist/esm/api/feature-flags-api.d.ts +74 -0
- package/dist/esm/api/feature-flags-api.js +117 -0
- package/dist/esm/api/health-api.d.ts +144 -0
- package/dist/esm/api/health-api.js +230 -0
- package/dist/esm/api/inbound-parse-api.d.ts +79 -0
- package/dist/esm/api/inbound-parse-api.js +122 -0
- package/dist/esm/api/inbox-api.d.ts +582 -0
- package/dist/esm/api/inbox-api.js +969 -0
- package/dist/esm/api/integrations-api.d.ts +420 -0
- package/dist/esm/api/integrations-api.js +700 -0
- package/dist/esm/api/layouts-api.d.ts +431 -0
- package/dist/esm/api/layouts-api.js +714 -0
- package/dist/esm/api/messages-api.d.ts +185 -0
- package/dist/esm/api/messages-api.js +296 -0
- package/dist/esm/api/metrics-api.d.ts +74 -0
- package/dist/esm/api/metrics-api.js +114 -0
- package/dist/esm/api/notification-groups-api.d.ts +202 -0
- package/dist/esm/api/notification-groups-api.js +333 -0
- package/dist/esm/api/notifications-api.d.ts +171 -0
- package/dist/esm/api/notifications-api.js +277 -0
- package/dist/esm/api/preferences-api.d.ts +176 -0
- package/dist/esm/api/preferences-api.js +286 -0
- package/dist/esm/api/projects-api.d.ts +541 -0
- package/dist/esm/api/projects-api.js +908 -0
- package/dist/esm/api/subscribers-api.d.ts +780 -0
- package/dist/esm/api/subscribers-api.js +1285 -0
- package/dist/esm/api/topics-api.d.ts +689 -0
- package/dist/esm/api/topics-api.js +1136 -0
- package/dist/esm/api/translations-api.d.ts +239 -0
- package/dist/esm/api/translations-api.js +398 -0
- package/dist/esm/api/webhooks-api.d.ts +208 -0
- package/dist/esm/api/webhooks-api.js +337 -0
- package/dist/esm/api/workflows-api.d.ts +493 -0
- package/dist/esm/api/workflows-api.js +813 -0
- package/dist/esm/api.d.ts +34 -0
- package/dist/esm/api.js +36 -0
- package/dist/esm/base.d.ts +42 -0
- package/dist/esm/base.js +41 -0
- package/dist/esm/common.d.ts +34 -0
- package/dist/esm/common.js +126 -0
- package/dist/esm/configuration.d.ts +98 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/models/action-body.d.ts +20 -0
- package/dist/esm/models/action-body.js +14 -0
- package/dist/esm/models/action-record.d.ts +22 -0
- package/dist/esm/models/action-record.js +14 -0
- package/dist/esm/models/action-type.d.ts +22 -0
- package/dist/esm/models/action-type.js +23 -0
- package/dist/esm/models/activity-chart-point.d.ts +40 -0
- package/dist/esm/models/activity-chart-point.js +14 -0
- package/dist/esm/models/activity-record.d.ts +56 -0
- package/dist/esm/models/activity-record.js +14 -0
- package/dist/esm/models/activity-request-record.d.ts +40 -0
- package/dist/esm/models/activity-request-record.js +14 -0
- package/dist/esm/models/activity-stats.d.ts +40 -0
- package/dist/esm/models/activity-stats.js +14 -0
- package/dist/esm/models/actor-type.d.ts +21 -0
- package/dist/esm/models/actor-type.js +22 -0
- package/dist/esm/models/api-key-created.d.ts +32 -0
- package/dist/esm/models/api-key-created.js +14 -0
- package/dist/esm/models/api-key-info.d.ts +32 -0
- package/dist/esm/models/api-key-info.js +14 -0
- package/dist/esm/models/auto-configure-result.d.ts +17 -0
- package/dist/esm/models/auto-configure-result.js +14 -0
- package/dist/esm/models/billing-interval.d.ts +19 -0
- package/dist/esm/models/billing-interval.js +20 -0
- package/dist/esm/models/branding.d.ts +40 -0
- package/dist/esm/models/branding.js +14 -0
- package/dist/esm/models/broadcast-trigger.d.ts +23 -0
- package/dist/esm/models/broadcast-trigger.js +14 -0
- package/dist/esm/models/bulk-create-subscribers.d.ts +18 -0
- package/dist/esm/models/bulk-create-subscribers.js +14 -0
- package/dist/esm/models/bulk-preference-item.d.ts +17 -0
- package/dist/esm/models/bulk-preference-item.js +14 -0
- package/dist/esm/models/bulk-preferences.d.ts +18 -0
- package/dist/esm/models/bulk-preferences.js +14 -0
- package/dist/esm/models/bulk-result.d.ts +16 -0
- package/dist/esm/models/bulk-result.js +14 -0
- package/dist/esm/models/bulk-trigger.d.ts +21 -0
- package/dist/esm/models/bulk-trigger.js +14 -0
- package/dist/esm/models/channel-connection-record.d.ts +37 -0
- package/dist/esm/models/channel-connection-record.js +14 -0
- package/dist/esm/models/channel-endpoint-record.d.ts +41 -0
- package/dist/esm/models/channel-endpoint-record.js +14 -0
- package/dist/esm/models/channel-preferences.d.ts +21 -0
- package/dist/esm/models/channel-preferences.js +14 -0
- package/dist/esm/models/channel-type.d.ts +22 -0
- package/dist/esm/models/channel-type.js +23 -0
- package/dist/esm/models/chart-query.d.ts +20 -0
- package/dist/esm/models/chart-query.js +14 -0
- package/dist/esm/models/chat-oauth-request.d.ts +15 -0
- package/dist/esm/models/chat-oauth-request.js +14 -0
- package/dist/esm/models/chat-oauth.d.ts +17 -0
- package/dist/esm/models/chat-oauth.js +14 -0
- package/dist/esm/models/checkout-session.d.ts +25 -0
- package/dist/esm/models/checkout-session.js +14 -0
- package/dist/esm/models/context-record.d.ts +36 -0
- package/dist/esm/models/context-record.js +14 -0
- package/dist/esm/models/create-channel-connection.d.ts +29 -0
- package/dist/esm/models/create-channel-connection.js +14 -0
- package/dist/esm/models/create-channel-endpoint.d.ts +33 -0
- package/dist/esm/models/create-channel-endpoint.js +14 -0
- package/dist/esm/models/create-checkout.d.ts +25 -0
- package/dist/esm/models/create-checkout.js +14 -0
- package/dist/esm/models/create-context.d.ts +28 -0
- package/dist/esm/models/create-context.js +14 -0
- package/dist/esm/models/create-integration.d.ts +41 -0
- package/dist/esm/models/create-integration.js +14 -0
- package/dist/esm/models/create-layout.d.ts +28 -0
- package/dist/esm/models/create-layout.js +14 -0
- package/dist/esm/models/create-notification-group.d.ts +20 -0
- package/dist/esm/models/create-notification-group.js +14 -0
- package/dist/esm/models/create-project.d.ts +20 -0
- package/dist/esm/models/create-project.js +14 -0
- package/dist/esm/models/create-subscriber.d.ts +52 -0
- package/dist/esm/models/create-subscriber.js +14 -0
- package/dist/esm/models/create-subscription.d.ts +17 -0
- package/dist/esm/models/create-subscription.js +14 -0
- package/dist/esm/models/create-topic.d.ts +24 -0
- package/dist/esm/models/create-topic.js +14 -0
- package/dist/esm/models/create-webhook.d.ts +24 -0
- package/dist/esm/models/create-webhook.js +14 -0
- package/dist/esm/models/create-workflow.d.ts +50 -0
- package/dist/esm/models/create-workflow.js +14 -0
- package/dist/esm/models/cta-type.d.ts +18 -0
- package/dist/esm/models/cta-type.js +19 -0
- package/dist/esm/models/cursor-meta.d.ts +32 -0
- package/dist/esm/models/cursor-meta.js +14 -0
- package/dist/esm/models/cursor-paginated-feed-item-data-inner.d.ts +34 -0
- package/dist/esm/models/cursor-paginated-feed-item-data-inner.js +14 -0
- package/dist/esm/models/cursor-paginated-feed-item.d.ts +26 -0
- package/dist/esm/models/cursor-paginated-feed-item.js +14 -0
- package/dist/esm/models/cursor-paginated-message-record-data-inner.d.ts +39 -0
- package/dist/esm/models/cursor-paginated-message-record-data-inner.js +14 -0
- package/dist/esm/models/cursor-paginated-message-record.d.ts +26 -0
- package/dist/esm/models/cursor-paginated-message-record.js +14 -0
- package/dist/esm/models/cursor-pagination.d.ts +28 -0
- package/dist/esm/models/cursor-pagination.js +14 -0
- package/dist/esm/models/delete-subscription.d.ts +14 -0
- package/dist/esm/models/delete-subscription.js +14 -0
- package/dist/esm/models/delivery-ack.d.ts +17 -0
- package/dist/esm/models/delivery-ack.js +14 -0
- package/dist/esm/models/delivery-status-webhook.d.ts +23 -0
- package/dist/esm/models/delivery-status-webhook.js +14 -0
- package/dist/esm/models/dns-settings.d.ts +24 -0
- package/dist/esm/models/dns-settings.js +14 -0
- package/dist/esm/models/engagement-stats-response.d.ts +32 -0
- package/dist/esm/models/engagement-stats-response.js +14 -0
- package/dist/esm/models/entitlement-item.d.ts +28 -0
- package/dist/esm/models/entitlement-item.js +14 -0
- package/dist/esm/models/entitlements.d.ts +18 -0
- package/dist/esm/models/entitlements.js +14 -0
- package/dist/esm/models/error-detail.d.ts +32 -0
- package/dist/esm/models/error-detail.js +14 -0
- package/dist/esm/models/events-usage.d.ts +24 -0
- package/dist/esm/models/events-usage.js +14 -0
- package/dist/esm/models/feed-item.d.ts +34 -0
- package/dist/esm/models/feed-item.js +14 -0
- package/dist/esm/models/feed-query.d.ts +22 -0
- package/dist/esm/models/feed-query.js +14 -0
- package/dist/esm/models/inbox-notification.d.ts +33 -0
- package/dist/esm/models/inbox-notification.js +14 -0
- package/dist/esm/models/inbox-preference.d.ts +19 -0
- package/dist/esm/models/inbox-preference.js +14 -0
- package/dist/esm/models/inbox-query.d.ts +20 -0
- package/dist/esm/models/inbox-query.js +14 -0
- package/dist/esm/models/index.d.ts +158 -0
- package/dist/esm/models/index.js +158 -0
- package/dist/esm/models/init-session-request.d.ts +24 -0
- package/dist/esm/models/init-session-request.js +14 -0
- package/dist/esm/models/init-session-response.d.ts +24 -0
- package/dist/esm/models/init-session-response.js +14 -0
- package/dist/esm/models/integration-record.d.ts +49 -0
- package/dist/esm/models/integration-record.js +14 -0
- package/dist/esm/models/invite-member-body.d.ts +24 -0
- package/dist/esm/models/invite-member-body.js +14 -0
- package/dist/esm/models/invite-member.d.ts +24 -0
- package/dist/esm/models/invite-member.js +14 -0
- package/dist/esm/models/job-log.d.ts +41 -0
- package/dist/esm/models/job-log.js +14 -0
- package/dist/esm/models/layout-preview-result.d.ts +17 -0
- package/dist/esm/models/layout-preview-result.js +14 -0
- package/dist/esm/models/layout-preview.d.ts +17 -0
- package/dist/esm/models/layout-preview.js +14 -0
- package/dist/esm/models/layout-record.d.ts +31 -0
- package/dist/esm/models/layout-record.js +14 -0
- package/dist/esm/models/layout-usage-item.d.ts +18 -0
- package/dist/esm/models/layout-usage-item.js +14 -0
- package/dist/esm/models/mark-all.d.ts +17 -0
- package/dist/esm/models/mark-all.js +14 -0
- package/dist/esm/models/mark-messages.d.ts +18 -0
- package/dist/esm/models/mark-messages.js +14 -0
- package/dist/esm/models/mark-result.d.ts +17 -0
- package/dist/esm/models/mark-result.js +14 -0
- package/dist/esm/models/member-record.d.ts +32 -0
- package/dist/esm/models/member-record.js +14 -0
- package/dist/esm/models/member-role.d.ts +21 -0
- package/dist/esm/models/member-role.js +22 -0
- package/dist/esm/models/member-status.d.ts +20 -0
- package/dist/esm/models/member-status.js +21 -0
- package/dist/esm/models/message-query.d.ts +40 -0
- package/dist/esm/models/message-query.js +14 -0
- package/dist/esm/models/message-record.d.ts +39 -0
- package/dist/esm/models/message-record.js +14 -0
- package/dist/esm/models/notification-count.d.ts +19 -0
- package/dist/esm/models/notification-count.js +14 -0
- package/dist/esm/models/notification-group-record.d.ts +24 -0
- package/dist/esm/models/notification-group-record.js +14 -0
- package/dist/esm/models/notification-log.d.ts +33 -0
- package/dist/esm/models/notification-log.js +14 -0
- package/dist/esm/models/notification-query.d.ts +28 -0
- package/dist/esm/models/notification-query.js +14 -0
- package/dist/esm/models/offset-meta.d.ts +32 -0
- package/dist/esm/models/offset-meta.js +14 -0
- package/dist/esm/models/offset-pagination.d.ts +32 -0
- package/dist/esm/models/offset-pagination.js +14 -0
- package/dist/esm/models/online-status.d.ts +17 -0
- package/dist/esm/models/online-status.js +14 -0
- package/dist/esm/models/paginated-channel-connection-record-data-inner.d.ts +37 -0
- package/dist/esm/models/paginated-channel-connection-record-data-inner.js +14 -0
- package/dist/esm/models/paginated-channel-connection-record.d.ts +26 -0
- package/dist/esm/models/paginated-channel-connection-record.js +14 -0
- package/dist/esm/models/paginated-channel-endpoint-record-data-inner.d.ts +41 -0
- package/dist/esm/models/paginated-channel-endpoint-record-data-inner.js +14 -0
- package/dist/esm/models/paginated-channel-endpoint-record.d.ts +26 -0
- package/dist/esm/models/paginated-channel-endpoint-record.js +14 -0
- package/dist/esm/models/paginated-context-record-data-inner.d.ts +36 -0
- package/dist/esm/models/paginated-context-record-data-inner.js +14 -0
- package/dist/esm/models/paginated-context-record.d.ts +26 -0
- package/dist/esm/models/paginated-context-record.js +14 -0
- package/dist/esm/models/paginated-integration-record-data-inner.d.ts +49 -0
- package/dist/esm/models/paginated-integration-record-data-inner.js +14 -0
- package/dist/esm/models/paginated-integration-record.d.ts +26 -0
- package/dist/esm/models/paginated-integration-record.js +14 -0
- package/dist/esm/models/paginated-layout-record-data-inner.d.ts +31 -0
- package/dist/esm/models/paginated-layout-record-data-inner.js +14 -0
- package/dist/esm/models/paginated-layout-record.d.ts +26 -0
- package/dist/esm/models/paginated-layout-record.js +14 -0
- package/dist/esm/models/paginated-subscriber-record-data-inner.d.ts +61 -0
- package/dist/esm/models/paginated-subscriber-record-data-inner.js +14 -0
- package/dist/esm/models/paginated-subscriber-record.d.ts +26 -0
- package/dist/esm/models/paginated-subscriber-record.js +14 -0
- package/dist/esm/models/paginated-topic-record-data-inner.d.ts +22 -0
- package/dist/esm/models/paginated-topic-record-data-inner.js +14 -0
- package/dist/esm/models/paginated-topic-record.d.ts +26 -0
- package/dist/esm/models/paginated-topic-record.js +14 -0
- package/dist/esm/models/paginated-topic-subscription-record-data-inner.d.ts +33 -0
- package/dist/esm/models/paginated-topic-subscription-record-data-inner.js +14 -0
- package/dist/esm/models/paginated-topic-subscription-record.d.ts +26 -0
- package/dist/esm/models/paginated-topic-subscription-record.js +14 -0
- package/dist/esm/models/paginated-workflow-record-data-inner.d.ts +52 -0
- package/dist/esm/models/paginated-workflow-record-data-inner.js +14 -0
- package/dist/esm/models/paginated-workflow-record.d.ts +26 -0
- package/dist/esm/models/paginated-workflow-record.js +14 -0
- package/dist/esm/models/pagination-query.d.ts +28 -0
- package/dist/esm/models/pagination-query.js +14 -0
- package/dist/esm/models/patch-credentials.d.ts +23 -0
- package/dist/esm/models/patch-credentials.js +14 -0
- package/dist/esm/models/plan-limits-response.d.ts +45 -0
- package/dist/esm/models/plan-limits-response.js +14 -0
- package/dist/esm/models/plan.d.ts +22 -0
- package/dist/esm/models/plan.js +23 -0
- package/dist/esm/models/portal-url.d.ts +20 -0
- package/dist/esm/models/portal-url.js +14 -0
- package/dist/esm/models/preference-channels.d.ts +21 -0
- package/dist/esm/models/preference-channels.js +14 -0
- package/dist/esm/models/preference-record.d.ts +24 -0
- package/dist/esm/models/preference-record.js +14 -0
- package/dist/esm/models/preview-result.d.ts +14 -0
- package/dist/esm/models/preview-result.js +14 -0
- package/dist/esm/models/price-info.d.ts +32 -0
- package/dist/esm/models/price-info.js +14 -0
- package/dist/esm/models/prices.d.ts +18 -0
- package/dist/esm/models/prices.js +14 -0
- package/dist/esm/models/project-record.d.ts +34 -0
- package/dist/esm/models/project-record.js +14 -0
- package/dist/esm/models/set-credentials.d.ts +23 -0
- package/dist/esm/models/set-credentials.js +14 -0
- package/dist/esm/models/step-preview.d.ts +17 -0
- package/dist/esm/models/step-preview.js +14 -0
- package/dist/esm/models/step-record.d.ts +30 -0
- package/dist/esm/models/step-record.js +14 -0
- package/dist/esm/models/step-type.d.ts +27 -0
- package/dist/esm/models/step-type.js +28 -0
- package/dist/esm/models/subscriber-credential.d.ts +20 -0
- package/dist/esm/models/subscriber-credential.js +14 -0
- package/dist/esm/models/subscriber-payload.d.ts +17 -0
- package/dist/esm/models/subscriber-payload.js +14 -0
- package/dist/esm/models/subscriber-record.d.ts +61 -0
- package/dist/esm/models/subscriber-record.js +14 -0
- package/dist/esm/models/subscription.d.ts +59 -0
- package/dist/esm/models/subscription.js +14 -0
- package/dist/esm/models/sync-workflow.d.ts +18 -0
- package/dist/esm/models/sync-workflow.js +14 -0
- package/dist/esm/models/system-avatar-icon.d.ts +23 -0
- package/dist/esm/models/system-avatar-icon.js +24 -0
- package/dist/esm/models/topic-record.d.ts +22 -0
- package/dist/esm/models/topic-record.js +14 -0
- package/dist/esm/models/topic-subscribers.d.ts +17 -0
- package/dist/esm/models/topic-subscribers.js +14 -0
- package/dist/esm/models/topic-subscription-record.d.ts +33 -0
- package/dist/esm/models/topic-subscription-record.js +14 -0
- package/dist/esm/models/topic-subscription.d.ts +21 -0
- package/dist/esm/models/topic-subscription.js +14 -0
- package/dist/esm/models/trial-info.d.ts +32 -0
- package/dist/esm/models/trial-info.js +14 -0
- package/dist/esm/models/trigger-event.d.ts +41 -0
- package/dist/esm/models/trigger-event.js +14 -0
- package/dist/esm/models/trigger-recipients-one-of.d.ts +17 -0
- package/dist/esm/models/trigger-recipients-one-of.js +14 -0
- package/dist/esm/models/trigger-recipients.d.ts +18 -0
- package/dist/esm/models/trigger-recipients.js +14 -0
- package/dist/esm/models/trigger-result.d.ts +29 -0
- package/dist/esm/models/trigger-result.js +14 -0
- package/dist/esm/models/trigger-status.d.ts +24 -0
- package/dist/esm/models/trigger-status.js +25 -0
- package/dist/esm/models/unseen-count.d.ts +17 -0
- package/dist/esm/models/unseen-count.js +14 -0
- package/dist/esm/models/update-channel-connection.d.ts +17 -0
- package/dist/esm/models/update-channel-connection.js +14 -0
- package/dist/esm/models/update-channel-endpoint.d.ts +21 -0
- package/dist/esm/models/update-channel-endpoint.js +14 -0
- package/dist/esm/models/update-context.d.ts +20 -0
- package/dist/esm/models/update-context.js +14 -0
- package/dist/esm/models/update-inbox-preferences.d.ts +21 -0
- package/dist/esm/models/update-inbox-preferences.js +14 -0
- package/dist/esm/models/update-integration.d.ts +32 -0
- package/dist/esm/models/update-integration.js +14 -0
- package/dist/esm/models/update-layout.d.ts +23 -0
- package/dist/esm/models/update-layout.js +14 -0
- package/dist/esm/models/update-notification-group.d.ts +20 -0
- package/dist/esm/models/update-notification-group.js +14 -0
- package/dist/esm/models/update-preference.d.ts +19 -0
- package/dist/esm/models/update-preference.js +14 -0
- package/dist/esm/models/update-project.d.ts +25 -0
- package/dist/esm/models/update-project.js +14 -0
- package/dist/esm/models/update-subscriber.d.ts +48 -0
- package/dist/esm/models/update-subscriber.js +14 -0
- package/dist/esm/models/update-subscription-meta.d.ts +17 -0
- package/dist/esm/models/update-subscription-meta.js +14 -0
- package/dist/esm/models/update-topic.d.ts +20 -0
- package/dist/esm/models/update-topic.js +14 -0
- package/dist/esm/models/update-workflow.d.ts +42 -0
- package/dist/esm/models/update-workflow.js +14 -0
- package/dist/esm/models/usage.d.ts +49 -0
- package/dist/esm/models/usage.js +14 -0
- package/dist/esm/models/webhook-record.d.ts +40 -0
- package/dist/esm/models/webhook-record.js +14 -0
- package/dist/esm/models/widget-settings.d.ts +20 -0
- package/dist/esm/models/widget-settings.js +14 -0
- package/dist/esm/models/workflow-record.d.ts +52 -0
- package/dist/esm/models/workflow-record.js +14 -0
- package/dist/esm/models/workflow-run-record.d.ts +40 -0
- package/dist/esm/models/workflow-run-record.js +14 -0
- package/dist/esm/models/workflow-stats-response.d.ts +32 -0
- package/dist/esm/models/workflow-stats-response.js +14 -0
- package/dist/esm/models/workflow-status.d.ts +20 -0
- package/dist/esm/models/workflow-status.js +14 -0
- package/dist/esm/models/workflow-step-create.d.ts +41 -0
- package/dist/esm/models/workflow-step-create.js +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +32 -0
- package/dist/models/action-body.d.ts +20 -0
- package/dist/models/action-body.js +15 -0
- package/dist/models/action-record.d.ts +22 -0
- package/dist/models/action-record.js +15 -0
- package/dist/models/action-type.d.ts +22 -0
- package/dist/models/action-type.js +26 -0
- package/dist/models/activity-chart-point.d.ts +40 -0
- package/dist/models/activity-chart-point.js +15 -0
- package/dist/models/activity-record.d.ts +56 -0
- package/dist/models/activity-record.js +15 -0
- package/dist/models/activity-request-record.d.ts +40 -0
- package/dist/models/activity-request-record.js +15 -0
- package/dist/models/activity-stats.d.ts +40 -0
- package/dist/models/activity-stats.js +15 -0
- package/dist/models/actor-type.d.ts +21 -0
- package/dist/models/actor-type.js +25 -0
- package/dist/models/api-key-created.d.ts +32 -0
- package/dist/models/api-key-created.js +15 -0
- package/dist/models/api-key-info.d.ts +32 -0
- package/dist/models/api-key-info.js +15 -0
- package/dist/models/auto-configure-result.d.ts +17 -0
- package/dist/models/auto-configure-result.js +15 -0
- package/dist/models/billing-interval.d.ts +19 -0
- package/dist/models/billing-interval.js +23 -0
- package/dist/models/branding.d.ts +40 -0
- package/dist/models/branding.js +15 -0
- package/dist/models/broadcast-trigger.d.ts +23 -0
- package/dist/models/broadcast-trigger.js +15 -0
- package/dist/models/bulk-create-subscribers.d.ts +18 -0
- package/dist/models/bulk-create-subscribers.js +15 -0
- package/dist/models/bulk-preference-item.d.ts +17 -0
- package/dist/models/bulk-preference-item.js +15 -0
- package/dist/models/bulk-preferences.d.ts +18 -0
- package/dist/models/bulk-preferences.js +15 -0
- package/dist/models/bulk-result.d.ts +16 -0
- package/dist/models/bulk-result.js +15 -0
- package/dist/models/bulk-trigger.d.ts +21 -0
- package/dist/models/bulk-trigger.js +15 -0
- package/dist/models/channel-connection-record.d.ts +37 -0
- package/dist/models/channel-connection-record.js +15 -0
- package/dist/models/channel-endpoint-record.d.ts +41 -0
- package/dist/models/channel-endpoint-record.js +15 -0
- package/dist/models/channel-preferences.d.ts +21 -0
- package/dist/models/channel-preferences.js +15 -0
- package/dist/models/channel-type.d.ts +22 -0
- package/dist/models/channel-type.js +26 -0
- package/dist/models/chart-query.d.ts +20 -0
- package/dist/models/chart-query.js +15 -0
- package/dist/models/chat-oauth-request.d.ts +15 -0
- package/dist/models/chat-oauth-request.js +15 -0
- package/dist/models/chat-oauth.d.ts +17 -0
- package/dist/models/chat-oauth.js +15 -0
- package/dist/models/checkout-session.d.ts +25 -0
- package/dist/models/checkout-session.js +15 -0
- package/dist/models/context-record.d.ts +36 -0
- package/dist/models/context-record.js +15 -0
- package/dist/models/create-channel-connection.d.ts +29 -0
- package/dist/models/create-channel-connection.js +15 -0
- package/dist/models/create-channel-endpoint.d.ts +33 -0
- package/dist/models/create-channel-endpoint.js +15 -0
- package/dist/models/create-checkout.d.ts +25 -0
- package/dist/models/create-checkout.js +15 -0
- package/dist/models/create-context.d.ts +28 -0
- package/dist/models/create-context.js +15 -0
- package/dist/models/create-integration.d.ts +41 -0
- package/dist/models/create-integration.js +15 -0
- package/dist/models/create-layout.d.ts +28 -0
- package/dist/models/create-layout.js +15 -0
- package/dist/models/create-notification-group.d.ts +20 -0
- package/dist/models/create-notification-group.js +15 -0
- package/dist/models/create-project.d.ts +20 -0
- package/dist/models/create-project.js +15 -0
- package/dist/models/create-subscriber.d.ts +52 -0
- package/dist/models/create-subscriber.js +15 -0
- package/dist/models/create-subscription.d.ts +17 -0
- package/dist/models/create-subscription.js +15 -0
- package/dist/models/create-topic.d.ts +24 -0
- package/dist/models/create-topic.js +15 -0
- package/dist/models/create-webhook.d.ts +24 -0
- package/dist/models/create-webhook.js +15 -0
- package/dist/models/create-workflow.d.ts +50 -0
- package/dist/models/create-workflow.js +15 -0
- package/dist/models/cta-type.d.ts +18 -0
- package/dist/models/cta-type.js +22 -0
- package/dist/models/cursor-meta.d.ts +32 -0
- package/dist/models/cursor-meta.js +15 -0
- package/dist/models/cursor-paginated-feed-item-data-inner.d.ts +34 -0
- package/dist/models/cursor-paginated-feed-item-data-inner.js +15 -0
- package/dist/models/cursor-paginated-feed-item.d.ts +26 -0
- package/dist/models/cursor-paginated-feed-item.js +15 -0
- package/dist/models/cursor-paginated-message-record-data-inner.d.ts +39 -0
- package/dist/models/cursor-paginated-message-record-data-inner.js +15 -0
- package/dist/models/cursor-paginated-message-record.d.ts +26 -0
- package/dist/models/cursor-paginated-message-record.js +15 -0
- package/dist/models/cursor-pagination.d.ts +28 -0
- package/dist/models/cursor-pagination.js +15 -0
- package/dist/models/delete-subscription.d.ts +14 -0
- package/dist/models/delete-subscription.js +15 -0
- package/dist/models/delivery-ack.d.ts +17 -0
- package/dist/models/delivery-ack.js +15 -0
- package/dist/models/delivery-status-webhook.d.ts +23 -0
- package/dist/models/delivery-status-webhook.js +15 -0
- package/dist/models/dns-settings.d.ts +24 -0
- package/dist/models/dns-settings.js +15 -0
- package/dist/models/engagement-stats-response.d.ts +32 -0
- package/dist/models/engagement-stats-response.js +15 -0
- package/dist/models/entitlement-item.d.ts +28 -0
- package/dist/models/entitlement-item.js +15 -0
- package/dist/models/entitlements.d.ts +18 -0
- package/dist/models/entitlements.js +15 -0
- package/dist/models/error-detail.d.ts +32 -0
- package/dist/models/error-detail.js +15 -0
- package/dist/models/events-usage.d.ts +24 -0
- package/dist/models/events-usage.js +15 -0
- package/dist/models/feed-item.d.ts +34 -0
- package/dist/models/feed-item.js +15 -0
- package/dist/models/feed-query.d.ts +22 -0
- package/dist/models/feed-query.js +15 -0
- package/dist/models/inbox-notification.d.ts +33 -0
- package/dist/models/inbox-notification.js +15 -0
- package/dist/models/inbox-preference.d.ts +19 -0
- package/dist/models/inbox-preference.js +15 -0
- package/dist/models/inbox-query.d.ts +20 -0
- package/dist/models/inbox-query.js +15 -0
- package/dist/models/index.d.ts +158 -0
- package/dist/models/index.js +174 -0
- package/dist/models/init-session-request.d.ts +24 -0
- package/dist/models/init-session-request.js +15 -0
- package/dist/models/init-session-response.d.ts +24 -0
- package/dist/models/init-session-response.js +15 -0
- package/dist/models/integration-record.d.ts +49 -0
- package/dist/models/integration-record.js +15 -0
- package/dist/models/invite-member-body.d.ts +24 -0
- package/dist/models/invite-member-body.js +15 -0
- package/dist/models/invite-member.d.ts +24 -0
- package/dist/models/invite-member.js +15 -0
- package/dist/models/job-log.d.ts +41 -0
- package/dist/models/job-log.js +15 -0
- package/dist/models/layout-preview-result.d.ts +17 -0
- package/dist/models/layout-preview-result.js +15 -0
- package/dist/models/layout-preview.d.ts +17 -0
- package/dist/models/layout-preview.js +15 -0
- package/dist/models/layout-record.d.ts +31 -0
- package/dist/models/layout-record.js +15 -0
- package/dist/models/layout-usage-item.d.ts +18 -0
- package/dist/models/layout-usage-item.js +15 -0
- package/dist/models/mark-all.d.ts +17 -0
- package/dist/models/mark-all.js +15 -0
- package/dist/models/mark-messages.d.ts +18 -0
- package/dist/models/mark-messages.js +15 -0
- package/dist/models/mark-result.d.ts +17 -0
- package/dist/models/mark-result.js +15 -0
- package/dist/models/member-record.d.ts +32 -0
- package/dist/models/member-record.js +15 -0
- package/dist/models/member-role.d.ts +21 -0
- package/dist/models/member-role.js +25 -0
- package/dist/models/member-status.d.ts +20 -0
- package/dist/models/member-status.js +24 -0
- package/dist/models/message-query.d.ts +40 -0
- package/dist/models/message-query.js +15 -0
- package/dist/models/message-record.d.ts +39 -0
- package/dist/models/message-record.js +15 -0
- package/dist/models/notification-count.d.ts +19 -0
- package/dist/models/notification-count.js +15 -0
- package/dist/models/notification-group-record.d.ts +24 -0
- package/dist/models/notification-group-record.js +15 -0
- package/dist/models/notification-log.d.ts +33 -0
- package/dist/models/notification-log.js +15 -0
- package/dist/models/notification-query.d.ts +28 -0
- package/dist/models/notification-query.js +15 -0
- package/dist/models/offset-meta.d.ts +32 -0
- package/dist/models/offset-meta.js +15 -0
- package/dist/models/offset-pagination.d.ts +32 -0
- package/dist/models/offset-pagination.js +15 -0
- package/dist/models/online-status.d.ts +17 -0
- package/dist/models/online-status.js +15 -0
- package/dist/models/paginated-channel-connection-record-data-inner.d.ts +37 -0
- package/dist/models/paginated-channel-connection-record-data-inner.js +15 -0
- package/dist/models/paginated-channel-connection-record.d.ts +26 -0
- package/dist/models/paginated-channel-connection-record.js +15 -0
- package/dist/models/paginated-channel-endpoint-record-data-inner.d.ts +41 -0
- package/dist/models/paginated-channel-endpoint-record-data-inner.js +15 -0
- package/dist/models/paginated-channel-endpoint-record.d.ts +26 -0
- package/dist/models/paginated-channel-endpoint-record.js +15 -0
- package/dist/models/paginated-context-record-data-inner.d.ts +36 -0
- package/dist/models/paginated-context-record-data-inner.js +15 -0
- package/dist/models/paginated-context-record.d.ts +26 -0
- package/dist/models/paginated-context-record.js +15 -0
- package/dist/models/paginated-integration-record-data-inner.d.ts +49 -0
- package/dist/models/paginated-integration-record-data-inner.js +15 -0
- package/dist/models/paginated-integration-record.d.ts +26 -0
- package/dist/models/paginated-integration-record.js +15 -0
- package/dist/models/paginated-layout-record-data-inner.d.ts +31 -0
- package/dist/models/paginated-layout-record-data-inner.js +15 -0
- package/dist/models/paginated-layout-record.d.ts +26 -0
- package/dist/models/paginated-layout-record.js +15 -0
- package/dist/models/paginated-subscriber-record-data-inner.d.ts +61 -0
- package/dist/models/paginated-subscriber-record-data-inner.js +15 -0
- package/dist/models/paginated-subscriber-record.d.ts +26 -0
- package/dist/models/paginated-subscriber-record.js +15 -0
- package/dist/models/paginated-topic-record-data-inner.d.ts +22 -0
- package/dist/models/paginated-topic-record-data-inner.js +15 -0
- package/dist/models/paginated-topic-record.d.ts +26 -0
- package/dist/models/paginated-topic-record.js +15 -0
- package/dist/models/paginated-topic-subscription-record-data-inner.d.ts +33 -0
- package/dist/models/paginated-topic-subscription-record-data-inner.js +15 -0
- package/dist/models/paginated-topic-subscription-record.d.ts +26 -0
- package/dist/models/paginated-topic-subscription-record.js +15 -0
- package/dist/models/paginated-workflow-record-data-inner.d.ts +52 -0
- package/dist/models/paginated-workflow-record-data-inner.js +15 -0
- package/dist/models/paginated-workflow-record.d.ts +26 -0
- package/dist/models/paginated-workflow-record.js +15 -0
- package/dist/models/pagination-query.d.ts +28 -0
- package/dist/models/pagination-query.js +15 -0
- package/dist/models/patch-credentials.d.ts +23 -0
- package/dist/models/patch-credentials.js +15 -0
- package/dist/models/plan-limits-response.d.ts +45 -0
- package/dist/models/plan-limits-response.js +15 -0
- package/dist/models/plan.d.ts +22 -0
- package/dist/models/plan.js +26 -0
- package/dist/models/portal-url.d.ts +20 -0
- package/dist/models/portal-url.js +15 -0
- package/dist/models/preference-channels.d.ts +21 -0
- package/dist/models/preference-channels.js +15 -0
- package/dist/models/preference-record.d.ts +24 -0
- package/dist/models/preference-record.js +15 -0
- package/dist/models/preview-result.d.ts +14 -0
- package/dist/models/preview-result.js +15 -0
- package/dist/models/price-info.d.ts +32 -0
- package/dist/models/price-info.js +15 -0
- package/dist/models/prices.d.ts +18 -0
- package/dist/models/prices.js +15 -0
- package/dist/models/project-record.d.ts +34 -0
- package/dist/models/project-record.js +15 -0
- package/dist/models/set-credentials.d.ts +23 -0
- package/dist/models/set-credentials.js +15 -0
- package/dist/models/step-preview.d.ts +17 -0
- package/dist/models/step-preview.js +15 -0
- package/dist/models/step-record.d.ts +30 -0
- package/dist/models/step-record.js +15 -0
- package/dist/models/step-type.d.ts +27 -0
- package/dist/models/step-type.js +31 -0
- package/dist/models/subscriber-credential.d.ts +20 -0
- package/dist/models/subscriber-credential.js +15 -0
- package/dist/models/subscriber-payload.d.ts +17 -0
- package/dist/models/subscriber-payload.js +15 -0
- package/dist/models/subscriber-record.d.ts +61 -0
- package/dist/models/subscriber-record.js +15 -0
- package/dist/models/subscription.d.ts +59 -0
- package/dist/models/subscription.js +15 -0
- package/dist/models/sync-workflow.d.ts +18 -0
- package/dist/models/sync-workflow.js +15 -0
- package/dist/models/system-avatar-icon.d.ts +23 -0
- package/dist/models/system-avatar-icon.js +27 -0
- package/dist/models/topic-record.d.ts +22 -0
- package/dist/models/topic-record.js +15 -0
- package/dist/models/topic-subscribers.d.ts +17 -0
- package/dist/models/topic-subscribers.js +15 -0
- package/dist/models/topic-subscription-record.d.ts +33 -0
- package/dist/models/topic-subscription-record.js +15 -0
- package/dist/models/topic-subscription.d.ts +21 -0
- package/dist/models/topic-subscription.js +15 -0
- package/dist/models/trial-info.d.ts +32 -0
- package/dist/models/trial-info.js +15 -0
- package/dist/models/trigger-event.d.ts +41 -0
- package/dist/models/trigger-event.js +15 -0
- package/dist/models/trigger-recipients-one-of.d.ts +17 -0
- package/dist/models/trigger-recipients-one-of.js +15 -0
- package/dist/models/trigger-recipients.d.ts +18 -0
- package/dist/models/trigger-recipients.js +15 -0
- package/dist/models/trigger-result.d.ts +29 -0
- package/dist/models/trigger-result.js +15 -0
- package/dist/models/trigger-status.d.ts +24 -0
- package/dist/models/trigger-status.js +28 -0
- package/dist/models/unseen-count.d.ts +17 -0
- package/dist/models/unseen-count.js +15 -0
- package/dist/models/update-channel-connection.d.ts +17 -0
- package/dist/models/update-channel-connection.js +15 -0
- package/dist/models/update-channel-endpoint.d.ts +21 -0
- package/dist/models/update-channel-endpoint.js +15 -0
- package/dist/models/update-context.d.ts +20 -0
- package/dist/models/update-context.js +15 -0
- package/dist/models/update-inbox-preferences.d.ts +21 -0
- package/dist/models/update-inbox-preferences.js +15 -0
- package/dist/models/update-integration.d.ts +32 -0
- package/dist/models/update-integration.js +15 -0
- package/dist/models/update-layout.d.ts +23 -0
- package/dist/models/update-layout.js +15 -0
- package/dist/models/update-notification-group.d.ts +20 -0
- package/dist/models/update-notification-group.js +15 -0
- package/dist/models/update-preference.d.ts +19 -0
- package/dist/models/update-preference.js +15 -0
- package/dist/models/update-project.d.ts +25 -0
- package/dist/models/update-project.js +15 -0
- package/dist/models/update-subscriber.d.ts +48 -0
- package/dist/models/update-subscriber.js +15 -0
- package/dist/models/update-subscription-meta.d.ts +17 -0
- package/dist/models/update-subscription-meta.js +15 -0
- package/dist/models/update-topic.d.ts +20 -0
- package/dist/models/update-topic.js +15 -0
- package/dist/models/update-workflow.d.ts +42 -0
- package/dist/models/update-workflow.js +15 -0
- package/dist/models/usage.d.ts +49 -0
- package/dist/models/usage.js +15 -0
- package/dist/models/webhook-record.d.ts +40 -0
- package/dist/models/webhook-record.js +15 -0
- package/dist/models/widget-settings.d.ts +20 -0
- package/dist/models/widget-settings.js +15 -0
- package/dist/models/workflow-record.d.ts +52 -0
- package/dist/models/workflow-record.js +15 -0
- package/dist/models/workflow-run-record.d.ts +40 -0
- package/dist/models/workflow-run-record.js +15 -0
- package/dist/models/workflow-stats-response.d.ts +32 -0
- package/dist/models/workflow-stats-response.js +15 -0
- package/dist/models/workflow-status.d.ts +20 -0
- package/dist/models/workflow-status.js +15 -0
- package/dist/models/workflow-step-create.d.ts +41 -0
- package/dist/models/workflow-step-create.js +15 -0
- package/package.json +56 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* enbbox API
|
|
3
|
+
* Notification infrastructure API — open-source alternative to Novu/Courier
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { CursorPaginatedMessageRecord } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* MessagesApi - axios parameter creator
|
|
18
|
+
*/
|
|
19
|
+
export declare const MessagesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @summary DELETE /v1/messages/transaction/:transaction_id — delete all messages by transaction
|
|
23
|
+
* @param {string} transactionId Transaction ID
|
|
24
|
+
* @param {*} [options] Override http request option.
|
|
25
|
+
* @throws {RequiredError}
|
|
26
|
+
*/
|
|
27
|
+
deleteByTransaction: (transactionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @summary DELETE /v1/messages/:id — soft-delete a single message
|
|
31
|
+
* @param {string} id Message ID
|
|
32
|
+
* @param {*} [options] Override http request option.
|
|
33
|
+
* @throws {RequiredError}
|
|
34
|
+
*/
|
|
35
|
+
deleteMessage: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @summary GET /v1/messages — list all messages with cursor pagination
|
|
39
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default: 25).
|
|
40
|
+
* @param {string | null} [after] Cursor for next page (ISO 8601 timestamp from previous response).
|
|
41
|
+
* @param {string | null} [before] Cursor for previous page.
|
|
42
|
+
* @param {string | null} [channel] Filter by channel type.
|
|
43
|
+
* @param {string | null} [subscriberId] Filter by subscriber identifier.
|
|
44
|
+
* @param {string | null} [q] Optional full-text search query (e.g. content, subject, subscriber_id).
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
*/
|
|
48
|
+
listMessages: (limit?: number | null, after?: string | null, before?: string | null, channel?: string | null, subscriberId?: string | null, q?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* MessagesApi - functional programming interface
|
|
52
|
+
*/
|
|
53
|
+
export declare const MessagesApiFp: (configuration?: Configuration) => {
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @summary DELETE /v1/messages/transaction/:transaction_id — delete all messages by transaction
|
|
57
|
+
* @param {string} transactionId Transaction ID
|
|
58
|
+
* @param {*} [options] Override http request option.
|
|
59
|
+
* @throws {RequiredError}
|
|
60
|
+
*/
|
|
61
|
+
deleteByTransaction(transactionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @summary DELETE /v1/messages/:id — soft-delete a single message
|
|
65
|
+
* @param {string} id Message ID
|
|
66
|
+
* @param {*} [options] Override http request option.
|
|
67
|
+
* @throws {RequiredError}
|
|
68
|
+
*/
|
|
69
|
+
deleteMessage(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @summary GET /v1/messages — list all messages with cursor pagination
|
|
73
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default: 25).
|
|
74
|
+
* @param {string | null} [after] Cursor for next page (ISO 8601 timestamp from previous response).
|
|
75
|
+
* @param {string | null} [before] Cursor for previous page.
|
|
76
|
+
* @param {string | null} [channel] Filter by channel type.
|
|
77
|
+
* @param {string | null} [subscriberId] Filter by subscriber identifier.
|
|
78
|
+
* @param {string | null} [q] Optional full-text search query (e.g. content, subject, subscriber_id).
|
|
79
|
+
* @param {*} [options] Override http request option.
|
|
80
|
+
* @throws {RequiredError}
|
|
81
|
+
*/
|
|
82
|
+
listMessages(limit?: number | null, after?: string | null, before?: string | null, channel?: string | null, subscriberId?: string | null, q?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CursorPaginatedMessageRecord>>;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* MessagesApi - factory interface
|
|
86
|
+
*/
|
|
87
|
+
export declare const MessagesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @summary DELETE /v1/messages/transaction/:transaction_id — delete all messages by transaction
|
|
91
|
+
* @param {string} transactionId Transaction ID
|
|
92
|
+
* @param {*} [options] Override http request option.
|
|
93
|
+
* @throws {RequiredError}
|
|
94
|
+
*/
|
|
95
|
+
deleteByTransaction(transactionId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @summary DELETE /v1/messages/:id — soft-delete a single message
|
|
99
|
+
* @param {string} id Message ID
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
deleteMessage(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @summary GET /v1/messages — list all messages with cursor pagination
|
|
107
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default: 25).
|
|
108
|
+
* @param {string | null} [after] Cursor for next page (ISO 8601 timestamp from previous response).
|
|
109
|
+
* @param {string | null} [before] Cursor for previous page.
|
|
110
|
+
* @param {string | null} [channel] Filter by channel type.
|
|
111
|
+
* @param {string | null} [subscriberId] Filter by subscriber identifier.
|
|
112
|
+
* @param {string | null} [q] Optional full-text search query (e.g. content, subject, subscriber_id).
|
|
113
|
+
* @param {*} [options] Override http request option.
|
|
114
|
+
* @throws {RequiredError}
|
|
115
|
+
*/
|
|
116
|
+
listMessages(limit?: number | null, after?: string | null, before?: string | null, channel?: string | null, subscriberId?: string | null, q?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<CursorPaginatedMessageRecord>;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* MessagesApi - interface
|
|
120
|
+
*/
|
|
121
|
+
export interface MessagesApiInterface {
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @summary DELETE /v1/messages/transaction/:transaction_id — delete all messages by transaction
|
|
125
|
+
* @param {string} transactionId Transaction ID
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
*/
|
|
129
|
+
deleteByTransaction(transactionId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @summary DELETE /v1/messages/:id — soft-delete a single message
|
|
133
|
+
* @param {string} id Message ID
|
|
134
|
+
* @param {*} [options] Override http request option.
|
|
135
|
+
* @throws {RequiredError}
|
|
136
|
+
*/
|
|
137
|
+
deleteMessage(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @summary GET /v1/messages — list all messages with cursor pagination
|
|
141
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default: 25).
|
|
142
|
+
* @param {string | null} [after] Cursor for next page (ISO 8601 timestamp from previous response).
|
|
143
|
+
* @param {string | null} [before] Cursor for previous page.
|
|
144
|
+
* @param {string | null} [channel] Filter by channel type.
|
|
145
|
+
* @param {string | null} [subscriberId] Filter by subscriber identifier.
|
|
146
|
+
* @param {string | null} [q] Optional full-text search query (e.g. content, subject, subscriber_id).
|
|
147
|
+
* @param {*} [options] Override http request option.
|
|
148
|
+
* @throws {RequiredError}
|
|
149
|
+
*/
|
|
150
|
+
listMessages(limit?: number | null, after?: string | null, before?: string | null, channel?: string | null, subscriberId?: string | null, q?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<CursorPaginatedMessageRecord>;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* MessagesApi - object-oriented interface
|
|
154
|
+
*/
|
|
155
|
+
export declare class MessagesApi extends BaseAPI implements MessagesApiInterface {
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @summary DELETE /v1/messages/transaction/:transaction_id — delete all messages by transaction
|
|
159
|
+
* @param {string} transactionId Transaction ID
|
|
160
|
+
* @param {*} [options] Override http request option.
|
|
161
|
+
* @throws {RequiredError}
|
|
162
|
+
*/
|
|
163
|
+
deleteByTransaction(transactionId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @summary DELETE /v1/messages/:id — soft-delete a single message
|
|
167
|
+
* @param {string} id Message ID
|
|
168
|
+
* @param {*} [options] Override http request option.
|
|
169
|
+
* @throws {RequiredError}
|
|
170
|
+
*/
|
|
171
|
+
deleteMessage(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @summary GET /v1/messages — list all messages with cursor pagination
|
|
175
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default: 25).
|
|
176
|
+
* @param {string | null} [after] Cursor for next page (ISO 8601 timestamp from previous response).
|
|
177
|
+
* @param {string | null} [before] Cursor for previous page.
|
|
178
|
+
* @param {string | null} [channel] Filter by channel type.
|
|
179
|
+
* @param {string | null} [subscriberId] Filter by subscriber identifier.
|
|
180
|
+
* @param {string | null} [q] Optional full-text search query (e.g. content, subject, subscriber_id).
|
|
181
|
+
* @param {*} [options] Override http request option.
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
*/
|
|
184
|
+
listMessages(limit?: number | null, after?: string | null, before?: string | null, channel?: string | null, subscriberId?: string | null, q?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CursorPaginatedMessageRecord, any, {}>>;
|
|
185
|
+
}
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* enbbox API
|
|
5
|
+
* Notification infrastructure API — open-source alternative to Novu/Courier
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
|
+
/**
|
|
30
|
+
* MessagesApi - axios parameter creator
|
|
31
|
+
*/
|
|
32
|
+
export const MessagesApiAxiosParamCreator = function (configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @summary DELETE /v1/messages/transaction/:transaction_id — delete all messages by transaction
|
|
37
|
+
* @param {string} transactionId Transaction ID
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
deleteByTransaction: (transactionId_1, ...args_1) => __awaiter(this, [transactionId_1, ...args_1], void 0, function* (transactionId, options = {}) {
|
|
42
|
+
// verify required parameter 'transactionId' is not null or undefined
|
|
43
|
+
assertParamExists('deleteByTransaction', 'transactionId', transactionId);
|
|
44
|
+
const localVarPath = `/v1/messages/transaction/{transaction_id}/`
|
|
45
|
+
.replace(`{${"transaction_id"}}`, encodeURIComponent(String(transactionId)));
|
|
46
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48
|
+
let baseOptions;
|
|
49
|
+
if (configuration) {
|
|
50
|
+
baseOptions = configuration.baseOptions;
|
|
51
|
+
}
|
|
52
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
53
|
+
const localVarHeaderParameter = {};
|
|
54
|
+
const localVarQueryParameter = {};
|
|
55
|
+
// authentication bearer_auth required
|
|
56
|
+
// http bearer authentication required
|
|
57
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
58
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
59
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
60
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
61
|
+
return {
|
|
62
|
+
url: toPathString(localVarUrlObj),
|
|
63
|
+
options: localVarRequestOptions,
|
|
64
|
+
};
|
|
65
|
+
}),
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @summary DELETE /v1/messages/:id — soft-delete a single message
|
|
69
|
+
* @param {string} id Message ID
|
|
70
|
+
* @param {*} [options] Override http request option.
|
|
71
|
+
* @throws {RequiredError}
|
|
72
|
+
*/
|
|
73
|
+
deleteMessage: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
74
|
+
// verify required parameter 'id' is not null or undefined
|
|
75
|
+
assertParamExists('deleteMessage', 'id', id);
|
|
76
|
+
const localVarPath = `/v1/messages/{id}/`
|
|
77
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
78
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
79
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
80
|
+
let baseOptions;
|
|
81
|
+
if (configuration) {
|
|
82
|
+
baseOptions = configuration.baseOptions;
|
|
83
|
+
}
|
|
84
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
85
|
+
const localVarHeaderParameter = {};
|
|
86
|
+
const localVarQueryParameter = {};
|
|
87
|
+
// authentication bearer_auth required
|
|
88
|
+
// http bearer authentication required
|
|
89
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
90
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
91
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
92
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
93
|
+
return {
|
|
94
|
+
url: toPathString(localVarUrlObj),
|
|
95
|
+
options: localVarRequestOptions,
|
|
96
|
+
};
|
|
97
|
+
}),
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @summary GET /v1/messages — list all messages with cursor pagination
|
|
101
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default: 25).
|
|
102
|
+
* @param {string | null} [after] Cursor for next page (ISO 8601 timestamp from previous response).
|
|
103
|
+
* @param {string | null} [before] Cursor for previous page.
|
|
104
|
+
* @param {string | null} [channel] Filter by channel type.
|
|
105
|
+
* @param {string | null} [subscriberId] Filter by subscriber identifier.
|
|
106
|
+
* @param {string | null} [q] Optional full-text search query (e.g. content, subject, subscriber_id).
|
|
107
|
+
* @param {*} [options] Override http request option.
|
|
108
|
+
* @throws {RequiredError}
|
|
109
|
+
*/
|
|
110
|
+
listMessages: (limit_1, after_1, before_1, channel_1, subscriberId_1, q_1, ...args_1) => __awaiter(this, [limit_1, after_1, before_1, channel_1, subscriberId_1, q_1, ...args_1], void 0, function* (limit, after, before, channel, subscriberId, q, options = {}) {
|
|
111
|
+
const localVarPath = `/v1/messages/`;
|
|
112
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
113
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
114
|
+
let baseOptions;
|
|
115
|
+
if (configuration) {
|
|
116
|
+
baseOptions = configuration.baseOptions;
|
|
117
|
+
}
|
|
118
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
119
|
+
const localVarHeaderParameter = {};
|
|
120
|
+
const localVarQueryParameter = {};
|
|
121
|
+
// authentication bearer_auth required
|
|
122
|
+
// http bearer authentication required
|
|
123
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
124
|
+
if (limit !== undefined) {
|
|
125
|
+
localVarQueryParameter['limit'] = limit;
|
|
126
|
+
}
|
|
127
|
+
if (after !== undefined) {
|
|
128
|
+
localVarQueryParameter['after'] = after;
|
|
129
|
+
}
|
|
130
|
+
if (before !== undefined) {
|
|
131
|
+
localVarQueryParameter['before'] = before;
|
|
132
|
+
}
|
|
133
|
+
if (channel !== undefined) {
|
|
134
|
+
localVarQueryParameter['channel'] = channel;
|
|
135
|
+
}
|
|
136
|
+
if (subscriberId !== undefined) {
|
|
137
|
+
localVarQueryParameter['subscriber_id'] = subscriberId;
|
|
138
|
+
}
|
|
139
|
+
if (q !== undefined) {
|
|
140
|
+
localVarQueryParameter['q'] = q;
|
|
141
|
+
}
|
|
142
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
143
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
144
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
146
|
+
return {
|
|
147
|
+
url: toPathString(localVarUrlObj),
|
|
148
|
+
options: localVarRequestOptions,
|
|
149
|
+
};
|
|
150
|
+
}),
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* MessagesApi - functional programming interface
|
|
155
|
+
*/
|
|
156
|
+
export const MessagesApiFp = function (configuration) {
|
|
157
|
+
const localVarAxiosParamCreator = MessagesApiAxiosParamCreator(configuration);
|
|
158
|
+
return {
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @summary DELETE /v1/messages/transaction/:transaction_id — delete all messages by transaction
|
|
162
|
+
* @param {string} transactionId Transaction ID
|
|
163
|
+
* @param {*} [options] Override http request option.
|
|
164
|
+
* @throws {RequiredError}
|
|
165
|
+
*/
|
|
166
|
+
deleteByTransaction(transactionId, options) {
|
|
167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
168
|
+
var _a, _b, _c;
|
|
169
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteByTransaction(transactionId, options);
|
|
170
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
171
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MessagesApi.deleteByTransaction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
172
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
173
|
+
});
|
|
174
|
+
},
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @summary DELETE /v1/messages/:id — soft-delete a single message
|
|
178
|
+
* @param {string} id Message ID
|
|
179
|
+
* @param {*} [options] Override http request option.
|
|
180
|
+
* @throws {RequiredError}
|
|
181
|
+
*/
|
|
182
|
+
deleteMessage(id, options) {
|
|
183
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
184
|
+
var _a, _b, _c;
|
|
185
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteMessage(id, options);
|
|
186
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
187
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MessagesApi.deleteMessage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
188
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
189
|
+
});
|
|
190
|
+
},
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @summary GET /v1/messages — list all messages with cursor pagination
|
|
194
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default: 25).
|
|
195
|
+
* @param {string | null} [after] Cursor for next page (ISO 8601 timestamp from previous response).
|
|
196
|
+
* @param {string | null} [before] Cursor for previous page.
|
|
197
|
+
* @param {string | null} [channel] Filter by channel type.
|
|
198
|
+
* @param {string | null} [subscriberId] Filter by subscriber identifier.
|
|
199
|
+
* @param {string | null} [q] Optional full-text search query (e.g. content, subject, subscriber_id).
|
|
200
|
+
* @param {*} [options] Override http request option.
|
|
201
|
+
* @throws {RequiredError}
|
|
202
|
+
*/
|
|
203
|
+
listMessages(limit, after, before, channel, subscriberId, q, options) {
|
|
204
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
205
|
+
var _a, _b, _c;
|
|
206
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listMessages(limit, after, before, channel, subscriberId, q, options);
|
|
207
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
208
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MessagesApi.listMessages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
209
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
210
|
+
});
|
|
211
|
+
},
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* MessagesApi - factory interface
|
|
216
|
+
*/
|
|
217
|
+
export const MessagesApiFactory = function (configuration, basePath, axios) {
|
|
218
|
+
const localVarFp = MessagesApiFp(configuration);
|
|
219
|
+
return {
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @summary DELETE /v1/messages/transaction/:transaction_id — delete all messages by transaction
|
|
223
|
+
* @param {string} transactionId Transaction ID
|
|
224
|
+
* @param {*} [options] Override http request option.
|
|
225
|
+
* @throws {RequiredError}
|
|
226
|
+
*/
|
|
227
|
+
deleteByTransaction(transactionId, options) {
|
|
228
|
+
return localVarFp.deleteByTransaction(transactionId, options).then((request) => request(axios, basePath));
|
|
229
|
+
},
|
|
230
|
+
/**
|
|
231
|
+
*
|
|
232
|
+
* @summary DELETE /v1/messages/:id — soft-delete a single message
|
|
233
|
+
* @param {string} id Message ID
|
|
234
|
+
* @param {*} [options] Override http request option.
|
|
235
|
+
* @throws {RequiredError}
|
|
236
|
+
*/
|
|
237
|
+
deleteMessage(id, options) {
|
|
238
|
+
return localVarFp.deleteMessage(id, options).then((request) => request(axios, basePath));
|
|
239
|
+
},
|
|
240
|
+
/**
|
|
241
|
+
*
|
|
242
|
+
* @summary GET /v1/messages — list all messages with cursor pagination
|
|
243
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default: 25).
|
|
244
|
+
* @param {string | null} [after] Cursor for next page (ISO 8601 timestamp from previous response).
|
|
245
|
+
* @param {string | null} [before] Cursor for previous page.
|
|
246
|
+
* @param {string | null} [channel] Filter by channel type.
|
|
247
|
+
* @param {string | null} [subscriberId] Filter by subscriber identifier.
|
|
248
|
+
* @param {string | null} [q] Optional full-text search query (e.g. content, subject, subscriber_id).
|
|
249
|
+
* @param {*} [options] Override http request option.
|
|
250
|
+
* @throws {RequiredError}
|
|
251
|
+
*/
|
|
252
|
+
listMessages(limit, after, before, channel, subscriberId, q, options) {
|
|
253
|
+
return localVarFp.listMessages(limit, after, before, channel, subscriberId, q, options).then((request) => request(axios, basePath));
|
|
254
|
+
},
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
/**
|
|
258
|
+
* MessagesApi - object-oriented interface
|
|
259
|
+
*/
|
|
260
|
+
export class MessagesApi extends BaseAPI {
|
|
261
|
+
/**
|
|
262
|
+
*
|
|
263
|
+
* @summary DELETE /v1/messages/transaction/:transaction_id — delete all messages by transaction
|
|
264
|
+
* @param {string} transactionId Transaction ID
|
|
265
|
+
* @param {*} [options] Override http request option.
|
|
266
|
+
* @throws {RequiredError}
|
|
267
|
+
*/
|
|
268
|
+
deleteByTransaction(transactionId, options) {
|
|
269
|
+
return MessagesApiFp(this.configuration).deleteByTransaction(transactionId, options).then((request) => request(this.axios, this.basePath));
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
*
|
|
273
|
+
* @summary DELETE /v1/messages/:id — soft-delete a single message
|
|
274
|
+
* @param {string} id Message ID
|
|
275
|
+
* @param {*} [options] Override http request option.
|
|
276
|
+
* @throws {RequiredError}
|
|
277
|
+
*/
|
|
278
|
+
deleteMessage(id, options) {
|
|
279
|
+
return MessagesApiFp(this.configuration).deleteMessage(id, options).then((request) => request(this.axios, this.basePath));
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
*
|
|
283
|
+
* @summary GET /v1/messages — list all messages with cursor pagination
|
|
284
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default: 25).
|
|
285
|
+
* @param {string | null} [after] Cursor for next page (ISO 8601 timestamp from previous response).
|
|
286
|
+
* @param {string | null} [before] Cursor for previous page.
|
|
287
|
+
* @param {string | null} [channel] Filter by channel type.
|
|
288
|
+
* @param {string | null} [subscriberId] Filter by subscriber identifier.
|
|
289
|
+
* @param {string | null} [q] Optional full-text search query (e.g. content, subject, subscriber_id).
|
|
290
|
+
* @param {*} [options] Override http request option.
|
|
291
|
+
* @throws {RequiredError}
|
|
292
|
+
*/
|
|
293
|
+
listMessages(limit, after, before, channel, subscriberId, q, options) {
|
|
294
|
+
return MessagesApiFp(this.configuration).listMessages(limit, after, before, channel, subscriberId, q, options).then((request) => request(this.axios, this.basePath));
|
|
295
|
+
}
|
|
296
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* enbbox API
|
|
3
|
+
* Notification infrastructure API — open-source alternative to Novu/Courier
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
/**
|
|
16
|
+
* MetricsApi - axios parameter creator
|
|
17
|
+
*/
|
|
18
|
+
export declare const MetricsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @summary `GET /metrics` — Prometheus scrape endpoint.
|
|
22
|
+
* @param {*} [options] Override http request option.
|
|
23
|
+
* @throws {RequiredError}
|
|
24
|
+
*/
|
|
25
|
+
metricsEndpoint: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* MetricsApi - functional programming interface
|
|
29
|
+
*/
|
|
30
|
+
export declare const MetricsApiFp: (configuration?: Configuration) => {
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @summary `GET /metrics` — Prometheus scrape endpoint.
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
*/
|
|
37
|
+
metricsEndpoint(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* MetricsApi - factory interface
|
|
41
|
+
*/
|
|
42
|
+
export declare const MetricsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @summary `GET /metrics` — Prometheus scrape endpoint.
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
metricsEndpoint(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* MetricsApi - interface
|
|
53
|
+
*/
|
|
54
|
+
export interface MetricsApiInterface {
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @summary `GET /metrics` — Prometheus scrape endpoint.
|
|
58
|
+
* @param {*} [options] Override http request option.
|
|
59
|
+
* @throws {RequiredError}
|
|
60
|
+
*/
|
|
61
|
+
metricsEndpoint(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* MetricsApi - object-oriented interface
|
|
65
|
+
*/
|
|
66
|
+
export declare class MetricsApi extends BaseAPI implements MetricsApiInterface {
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @summary `GET /metrics` — Prometheus scrape endpoint.
|
|
70
|
+
* @param {*} [options] Override http request option.
|
|
71
|
+
* @throws {RequiredError}
|
|
72
|
+
*/
|
|
73
|
+
metricsEndpoint(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
74
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* enbbox API
|
|
5
|
+
* Notification infrastructure API — open-source alternative to Novu/Courier
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, setSearchParams, toPathString, createRequestFunction } from '../common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
|
+
/**
|
|
30
|
+
* MetricsApi - axios parameter creator
|
|
31
|
+
*/
|
|
32
|
+
export const MetricsApiAxiosParamCreator = function (configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @summary `GET /metrics` — Prometheus scrape endpoint.
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
metricsEndpoint: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
41
|
+
const localVarPath = `/metrics/`;
|
|
42
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
44
|
+
let baseOptions;
|
|
45
|
+
if (configuration) {
|
|
46
|
+
baseOptions = configuration.baseOptions;
|
|
47
|
+
}
|
|
48
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
49
|
+
const localVarHeaderParameter = {};
|
|
50
|
+
const localVarQueryParameter = {};
|
|
51
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
52
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
53
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
54
|
+
return {
|
|
55
|
+
url: toPathString(localVarUrlObj),
|
|
56
|
+
options: localVarRequestOptions,
|
|
57
|
+
};
|
|
58
|
+
}),
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* MetricsApi - functional programming interface
|
|
63
|
+
*/
|
|
64
|
+
export const MetricsApiFp = function (configuration) {
|
|
65
|
+
const localVarAxiosParamCreator = MetricsApiAxiosParamCreator(configuration);
|
|
66
|
+
return {
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @summary `GET /metrics` — Prometheus scrape endpoint.
|
|
70
|
+
* @param {*} [options] Override http request option.
|
|
71
|
+
* @throws {RequiredError}
|
|
72
|
+
*/
|
|
73
|
+
metricsEndpoint(options) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
var _a, _b, _c;
|
|
76
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.metricsEndpoint(options);
|
|
77
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
78
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MetricsApi.metricsEndpoint']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
79
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
80
|
+
});
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* MetricsApi - factory interface
|
|
86
|
+
*/
|
|
87
|
+
export const MetricsApiFactory = function (configuration, basePath, axios) {
|
|
88
|
+
const localVarFp = MetricsApiFp(configuration);
|
|
89
|
+
return {
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @summary `GET /metrics` — Prometheus scrape endpoint.
|
|
93
|
+
* @param {*} [options] Override http request option.
|
|
94
|
+
* @throws {RequiredError}
|
|
95
|
+
*/
|
|
96
|
+
metricsEndpoint(options) {
|
|
97
|
+
return localVarFp.metricsEndpoint(options).then((request) => request(axios, basePath));
|
|
98
|
+
},
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* MetricsApi - object-oriented interface
|
|
103
|
+
*/
|
|
104
|
+
export class MetricsApi extends BaseAPI {
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @summary `GET /metrics` — Prometheus scrape endpoint.
|
|
108
|
+
* @param {*} [options] Override http request option.
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
metricsEndpoint(options) {
|
|
112
|
+
return MetricsApiFp(this.configuration).metricsEndpoint(options).then((request) => request(this.axios, this.basePath));
|
|
113
|
+
}
|
|
114
|
+
}
|