@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,1285 @@
|
|
|
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, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
|
+
/**
|
|
30
|
+
* SubscribersApi - axios parameter creator
|
|
31
|
+
*/
|
|
32
|
+
export const SubscribersApiAxiosParamCreator = function (configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @summary POST /v1/subscribers/bulk — create multiple subscribers at once
|
|
37
|
+
* @param {BulkCreateSubscribers} bulkCreateSubscribers
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
bulkCreate: (bulkCreateSubscribers_1, ...args_1) => __awaiter(this, [bulkCreateSubscribers_1, ...args_1], void 0, function* (bulkCreateSubscribers, options = {}) {
|
|
42
|
+
// verify required parameter 'bulkCreateSubscribers' is not null or undefined
|
|
43
|
+
assertParamExists('bulkCreate', 'bulkCreateSubscribers', bulkCreateSubscribers);
|
|
44
|
+
const localVarPath = `/v1/subscribers/bulk/`;
|
|
45
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
47
|
+
let baseOptions;
|
|
48
|
+
if (configuration) {
|
|
49
|
+
baseOptions = configuration.baseOptions;
|
|
50
|
+
}
|
|
51
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
52
|
+
const localVarHeaderParameter = {};
|
|
53
|
+
const localVarQueryParameter = {};
|
|
54
|
+
// authentication bearer_auth required
|
|
55
|
+
// http bearer authentication required
|
|
56
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
57
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
58
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
59
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
60
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
62
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bulkCreateSubscribers, localVarRequestOptions, configuration);
|
|
63
|
+
return {
|
|
64
|
+
url: toPathString(localVarUrlObj),
|
|
65
|
+
options: localVarRequestOptions,
|
|
66
|
+
};
|
|
67
|
+
}),
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @summary PATCH /v1/subscribers/:id/preferences/bulk — update multiple workflow preferences at once
|
|
71
|
+
* @param {string} id Subscriber ID
|
|
72
|
+
* @param {BulkPreferences} bulkPreferences
|
|
73
|
+
* @param {*} [options] Override http request option.
|
|
74
|
+
* @throws {RequiredError}
|
|
75
|
+
*/
|
|
76
|
+
bulkUpdatePreferences: (id_1, bulkPreferences_1, ...args_1) => __awaiter(this, [id_1, bulkPreferences_1, ...args_1], void 0, function* (id, bulkPreferences, options = {}) {
|
|
77
|
+
// verify required parameter 'id' is not null or undefined
|
|
78
|
+
assertParamExists('bulkUpdatePreferences', 'id', id);
|
|
79
|
+
// verify required parameter 'bulkPreferences' is not null or undefined
|
|
80
|
+
assertParamExists('bulkUpdatePreferences', 'bulkPreferences', bulkPreferences);
|
|
81
|
+
const localVarPath = `/v1/subscribers/{id}/preferences/bulk/`
|
|
82
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
83
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
84
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
85
|
+
let baseOptions;
|
|
86
|
+
if (configuration) {
|
|
87
|
+
baseOptions = configuration.baseOptions;
|
|
88
|
+
}
|
|
89
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
90
|
+
const localVarHeaderParameter = {};
|
|
91
|
+
const localVarQueryParameter = {};
|
|
92
|
+
// authentication bearer_auth required
|
|
93
|
+
// http bearer authentication required
|
|
94
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
95
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
96
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
97
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
98
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
99
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bulkPreferences, localVarRequestOptions, configuration);
|
|
100
|
+
return {
|
|
101
|
+
url: toPathString(localVarUrlObj),
|
|
102
|
+
options: localVarRequestOptions,
|
|
103
|
+
};
|
|
104
|
+
}),
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @summary POST /v1/subscribers
|
|
108
|
+
* @param {CreateSubscriber} createSubscriber
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
createSubscriber: (createSubscriber_1, ...args_1) => __awaiter(this, [createSubscriber_1, ...args_1], void 0, function* (createSubscriber, options = {}) {
|
|
113
|
+
// verify required parameter 'createSubscriber' is not null or undefined
|
|
114
|
+
assertParamExists('createSubscriber', 'createSubscriber', createSubscriber);
|
|
115
|
+
const localVarPath = `/v1/subscribers/`;
|
|
116
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
117
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
118
|
+
let baseOptions;
|
|
119
|
+
if (configuration) {
|
|
120
|
+
baseOptions = configuration.baseOptions;
|
|
121
|
+
}
|
|
122
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
123
|
+
const localVarHeaderParameter = {};
|
|
124
|
+
const localVarQueryParameter = {};
|
|
125
|
+
// authentication bearer_auth required
|
|
126
|
+
// http bearer authentication required
|
|
127
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
128
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
129
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
130
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
131
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
132
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
133
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createSubscriber, localVarRequestOptions, configuration);
|
|
134
|
+
return {
|
|
135
|
+
url: toPathString(localVarUrlObj),
|
|
136
|
+
options: localVarRequestOptions,
|
|
137
|
+
};
|
|
138
|
+
}),
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @summary DELETE /v1/subscribers/:id/credentials/:provider_id — remove creds for a provider
|
|
142
|
+
* @param {string} id Subscriber ID
|
|
143
|
+
* @param {string} providerId Provider ID
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
*/
|
|
147
|
+
deleteCredentials: (id_1, providerId_1, ...args_1) => __awaiter(this, [id_1, providerId_1, ...args_1], void 0, function* (id, providerId, options = {}) {
|
|
148
|
+
// verify required parameter 'id' is not null or undefined
|
|
149
|
+
assertParamExists('deleteCredentials', 'id', id);
|
|
150
|
+
// verify required parameter 'providerId' is not null or undefined
|
|
151
|
+
assertParamExists('deleteCredentials', 'providerId', providerId);
|
|
152
|
+
const localVarPath = `/v1/subscribers/{id}/credentials/{provider_id}/`
|
|
153
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
154
|
+
.replace(`{${"provider_id"}}`, encodeURIComponent(String(providerId)));
|
|
155
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
156
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
157
|
+
let baseOptions;
|
|
158
|
+
if (configuration) {
|
|
159
|
+
baseOptions = configuration.baseOptions;
|
|
160
|
+
}
|
|
161
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
162
|
+
const localVarHeaderParameter = {};
|
|
163
|
+
const localVarQueryParameter = {};
|
|
164
|
+
// authentication bearer_auth required
|
|
165
|
+
// http bearer authentication required
|
|
166
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
167
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
168
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
169
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
170
|
+
return {
|
|
171
|
+
url: toPathString(localVarUrlObj),
|
|
172
|
+
options: localVarRequestOptions,
|
|
173
|
+
};
|
|
174
|
+
}),
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @summary DELETE /v1/subscribers/:subscriber_id
|
|
178
|
+
* @param {string} id Subscriber ID
|
|
179
|
+
* @param {*} [options] Override http request option.
|
|
180
|
+
* @throws {RequiredError}
|
|
181
|
+
*/
|
|
182
|
+
deleteSubscriber: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
183
|
+
// verify required parameter 'id' is not null or undefined
|
|
184
|
+
assertParamExists('deleteSubscriber', 'id', id);
|
|
185
|
+
const localVarPath = `/v1/subscribers/{id}/`
|
|
186
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
187
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
188
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
189
|
+
let baseOptions;
|
|
190
|
+
if (configuration) {
|
|
191
|
+
baseOptions = configuration.baseOptions;
|
|
192
|
+
}
|
|
193
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
194
|
+
const localVarHeaderParameter = {};
|
|
195
|
+
const localVarQueryParameter = {};
|
|
196
|
+
// authentication bearer_auth required
|
|
197
|
+
// http bearer authentication required
|
|
198
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
199
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
200
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
201
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
202
|
+
return {
|
|
203
|
+
url: toPathString(localVarUrlObj),
|
|
204
|
+
options: localVarRequestOptions,
|
|
205
|
+
};
|
|
206
|
+
}),
|
|
207
|
+
/**
|
|
208
|
+
*
|
|
209
|
+
* @summary GET /v1/subscribers/:subscriber_id
|
|
210
|
+
* @param {string} id Subscriber ID
|
|
211
|
+
* @param {*} [options] Override http request option.
|
|
212
|
+
* @throws {RequiredError}
|
|
213
|
+
*/
|
|
214
|
+
getSubscriber: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
215
|
+
// verify required parameter 'id' is not null or undefined
|
|
216
|
+
assertParamExists('getSubscriber', 'id', id);
|
|
217
|
+
const localVarPath = `/v1/subscribers/{id}/`
|
|
218
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
219
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
220
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
221
|
+
let baseOptions;
|
|
222
|
+
if (configuration) {
|
|
223
|
+
baseOptions = configuration.baseOptions;
|
|
224
|
+
}
|
|
225
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
226
|
+
const localVarHeaderParameter = {};
|
|
227
|
+
const localVarQueryParameter = {};
|
|
228
|
+
// authentication bearer_auth required
|
|
229
|
+
// http bearer authentication required
|
|
230
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
231
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
232
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
233
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
234
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
235
|
+
return {
|
|
236
|
+
url: toPathString(localVarUrlObj),
|
|
237
|
+
options: localVarRequestOptions,
|
|
238
|
+
};
|
|
239
|
+
}),
|
|
240
|
+
/**
|
|
241
|
+
*
|
|
242
|
+
* @summary GET /v1/subscribers/:id/subscriptions — list topic subscriptions for a subscriber
|
|
243
|
+
* @param {string} id Subscriber ID
|
|
244
|
+
* @param {*} [options] Override http request option.
|
|
245
|
+
* @throws {RequiredError}
|
|
246
|
+
*/
|
|
247
|
+
listSubscriberSubscriptions: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
248
|
+
// verify required parameter 'id' is not null or undefined
|
|
249
|
+
assertParamExists('listSubscriberSubscriptions', 'id', id);
|
|
250
|
+
const localVarPath = `/v1/subscribers/{id}/subscriptions/`
|
|
251
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
252
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
253
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
254
|
+
let baseOptions;
|
|
255
|
+
if (configuration) {
|
|
256
|
+
baseOptions = configuration.baseOptions;
|
|
257
|
+
}
|
|
258
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
259
|
+
const localVarHeaderParameter = {};
|
|
260
|
+
const localVarQueryParameter = {};
|
|
261
|
+
// authentication bearer_auth required
|
|
262
|
+
// http bearer authentication required
|
|
263
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
264
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
265
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
266
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
267
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
268
|
+
return {
|
|
269
|
+
url: toPathString(localVarUrlObj),
|
|
270
|
+
options: localVarRequestOptions,
|
|
271
|
+
};
|
|
272
|
+
}),
|
|
273
|
+
/**
|
|
274
|
+
* Lists subscribers for the current project. When the optional `q` query parameter is provided, the list is powered by Typesense full-text search (searching across email, name, phone, subscriber_id). Without `q`, a standard paginated listing from the primary store is returned.
|
|
275
|
+
* @summary GET /v1/subscribers
|
|
276
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default 10).
|
|
277
|
+
* @param {number | null} [offset] Number of items to skip (default 0).
|
|
278
|
+
* @param {string | null} [q] Optional full-text search query (e.g., an email, name, or phone number). When present, search is powered by Typesense.
|
|
279
|
+
* @param {string | null} [filterBy] Optional filter expression for narrowing results. Example: `is_online:=true` or `locale:=en-US`.
|
|
280
|
+
* @param {*} [options] Override http request option.
|
|
281
|
+
* @throws {RequiredError}
|
|
282
|
+
*/
|
|
283
|
+
listSubscribers: (limit_1, offset_1, q_1, filterBy_1, ...args_1) => __awaiter(this, [limit_1, offset_1, q_1, filterBy_1, ...args_1], void 0, function* (limit, offset, q, filterBy, options = {}) {
|
|
284
|
+
const localVarPath = `/v1/subscribers/`;
|
|
285
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
286
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
287
|
+
let baseOptions;
|
|
288
|
+
if (configuration) {
|
|
289
|
+
baseOptions = configuration.baseOptions;
|
|
290
|
+
}
|
|
291
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
292
|
+
const localVarHeaderParameter = {};
|
|
293
|
+
const localVarQueryParameter = {};
|
|
294
|
+
// authentication bearer_auth required
|
|
295
|
+
// http bearer authentication required
|
|
296
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
297
|
+
if (limit !== undefined) {
|
|
298
|
+
localVarQueryParameter['limit'] = limit;
|
|
299
|
+
}
|
|
300
|
+
if (offset !== undefined) {
|
|
301
|
+
localVarQueryParameter['offset'] = offset;
|
|
302
|
+
}
|
|
303
|
+
if (q !== undefined) {
|
|
304
|
+
localVarQueryParameter['q'] = q;
|
|
305
|
+
}
|
|
306
|
+
if (filterBy !== undefined) {
|
|
307
|
+
localVarQueryParameter['filter_by'] = filterBy;
|
|
308
|
+
}
|
|
309
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
310
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
311
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
312
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
313
|
+
return {
|
|
314
|
+
url: toPathString(localVarUrlObj),
|
|
315
|
+
options: localVarRequestOptions,
|
|
316
|
+
};
|
|
317
|
+
}),
|
|
318
|
+
/**
|
|
319
|
+
*
|
|
320
|
+
* @summary POST /v1/subscribers/:id/messages/mark-all — mark all messages
|
|
321
|
+
* @param {string} id Subscriber ID
|
|
322
|
+
* @param {MarkAll} markAll
|
|
323
|
+
* @param {*} [options] Override http request option.
|
|
324
|
+
* @throws {RequiredError}
|
|
325
|
+
*/
|
|
326
|
+
markAllMessages: (id_1, markAll_1, ...args_1) => __awaiter(this, [id_1, markAll_1, ...args_1], void 0, function* (id, markAll, options = {}) {
|
|
327
|
+
// verify required parameter 'id' is not null or undefined
|
|
328
|
+
assertParamExists('markAllMessages', 'id', id);
|
|
329
|
+
// verify required parameter 'markAll' is not null or undefined
|
|
330
|
+
assertParamExists('markAllMessages', 'markAll', markAll);
|
|
331
|
+
const localVarPath = `/v1/subscribers/{id}/messages/mark-all/`
|
|
332
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
333
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
334
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
335
|
+
let baseOptions;
|
|
336
|
+
if (configuration) {
|
|
337
|
+
baseOptions = configuration.baseOptions;
|
|
338
|
+
}
|
|
339
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
340
|
+
const localVarHeaderParameter = {};
|
|
341
|
+
const localVarQueryParameter = {};
|
|
342
|
+
// authentication bearer_auth required
|
|
343
|
+
// http bearer authentication required
|
|
344
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
345
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
346
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
347
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
348
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
349
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
350
|
+
localVarRequestOptions.data = serializeDataIfNeeded(markAll, localVarRequestOptions, configuration);
|
|
351
|
+
return {
|
|
352
|
+
url: toPathString(localVarUrlObj),
|
|
353
|
+
options: localVarRequestOptions,
|
|
354
|
+
};
|
|
355
|
+
}),
|
|
356
|
+
/**
|
|
357
|
+
*
|
|
358
|
+
* @summary POST /v1/subscribers/:id/messages/mark-as — mark messages as read/seen/unseen
|
|
359
|
+
* @param {string} id Subscriber ID
|
|
360
|
+
* @param {MarkMessages} markMessages
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
*/
|
|
364
|
+
markMessages: (id_1, markMessages_1, ...args_1) => __awaiter(this, [id_1, markMessages_1, ...args_1], void 0, function* (id, markMessages, options = {}) {
|
|
365
|
+
// verify required parameter 'id' is not null or undefined
|
|
366
|
+
assertParamExists('markMessages', 'id', id);
|
|
367
|
+
// verify required parameter 'markMessages' is not null or undefined
|
|
368
|
+
assertParamExists('markMessages', 'markMessages', markMessages);
|
|
369
|
+
const localVarPath = `/v1/subscribers/{id}/messages/mark-as/`
|
|
370
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
371
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
372
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
373
|
+
let baseOptions;
|
|
374
|
+
if (configuration) {
|
|
375
|
+
baseOptions = configuration.baseOptions;
|
|
376
|
+
}
|
|
377
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
378
|
+
const localVarHeaderParameter = {};
|
|
379
|
+
const localVarQueryParameter = {};
|
|
380
|
+
// authentication bearer_auth required
|
|
381
|
+
// http bearer authentication required
|
|
382
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
383
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
384
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
385
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
386
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
387
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
388
|
+
localVarRequestOptions.data = serializeDataIfNeeded(markMessages, localVarRequestOptions, configuration);
|
|
389
|
+
return {
|
|
390
|
+
url: toPathString(localVarUrlObj),
|
|
391
|
+
options: localVarRequestOptions,
|
|
392
|
+
};
|
|
393
|
+
}),
|
|
394
|
+
/**
|
|
395
|
+
*
|
|
396
|
+
* @summary PUT /v1/subscribers/:id/credentials — replace all creds for a provider
|
|
397
|
+
* @param {string} id Subscriber ID
|
|
398
|
+
* @param {SetCredentials} setCredentials
|
|
399
|
+
* @param {*} [options] Override http request option.
|
|
400
|
+
* @throws {RequiredError}
|
|
401
|
+
*/
|
|
402
|
+
setCredentials: (id_1, setCredentials_1, ...args_1) => __awaiter(this, [id_1, setCredentials_1, ...args_1], void 0, function* (id, setCredentials, options = {}) {
|
|
403
|
+
// verify required parameter 'id' is not null or undefined
|
|
404
|
+
assertParamExists('setCredentials', 'id', id);
|
|
405
|
+
// verify required parameter 'setCredentials' is not null or undefined
|
|
406
|
+
assertParamExists('setCredentials', 'setCredentials', setCredentials);
|
|
407
|
+
const localVarPath = `/v1/subscribers/{id}/credentials/`
|
|
408
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
409
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
410
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
411
|
+
let baseOptions;
|
|
412
|
+
if (configuration) {
|
|
413
|
+
baseOptions = configuration.baseOptions;
|
|
414
|
+
}
|
|
415
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
416
|
+
const localVarHeaderParameter = {};
|
|
417
|
+
const localVarQueryParameter = {};
|
|
418
|
+
// authentication bearer_auth required
|
|
419
|
+
// http bearer authentication required
|
|
420
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
421
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
422
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
423
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
424
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
425
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
426
|
+
localVarRequestOptions.data = serializeDataIfNeeded(setCredentials, localVarRequestOptions, configuration);
|
|
427
|
+
return {
|
|
428
|
+
url: toPathString(localVarUrlObj),
|
|
429
|
+
options: localVarRequestOptions,
|
|
430
|
+
};
|
|
431
|
+
}),
|
|
432
|
+
/**
|
|
433
|
+
*
|
|
434
|
+
* @summary GET /v1/subscribers/:id/notifications/feed — cursor-paginated message list
|
|
435
|
+
* @param {string} id Subscriber ID
|
|
436
|
+
* @param {number | null} [limit]
|
|
437
|
+
* @param {string | null} [after]
|
|
438
|
+
* @param {string | null} [before]
|
|
439
|
+
* @param {string | null} [channel]
|
|
440
|
+
* @param {boolean | null} [read]
|
|
441
|
+
* @param {boolean | null} [seen]
|
|
442
|
+
* @param {*} [options] Override http request option.
|
|
443
|
+
* @throws {RequiredError}
|
|
444
|
+
*/
|
|
445
|
+
subscriberFeed: (id_1, limit_1, after_1, before_1, channel_1, read_1, seen_1, ...args_1) => __awaiter(this, [id_1, limit_1, after_1, before_1, channel_1, read_1, seen_1, ...args_1], void 0, function* (id, limit, after, before, channel, read, seen, options = {}) {
|
|
446
|
+
// verify required parameter 'id' is not null or undefined
|
|
447
|
+
assertParamExists('subscriberFeed', 'id', id);
|
|
448
|
+
const localVarPath = `/v1/subscribers/{id}/notifications/feed/`
|
|
449
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
450
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
451
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
452
|
+
let baseOptions;
|
|
453
|
+
if (configuration) {
|
|
454
|
+
baseOptions = configuration.baseOptions;
|
|
455
|
+
}
|
|
456
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
457
|
+
const localVarHeaderParameter = {};
|
|
458
|
+
const localVarQueryParameter = {};
|
|
459
|
+
// authentication bearer_auth required
|
|
460
|
+
// http bearer authentication required
|
|
461
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
462
|
+
if (limit !== undefined) {
|
|
463
|
+
localVarQueryParameter['limit'] = limit;
|
|
464
|
+
}
|
|
465
|
+
if (after !== undefined) {
|
|
466
|
+
localVarQueryParameter['after'] = after;
|
|
467
|
+
}
|
|
468
|
+
if (before !== undefined) {
|
|
469
|
+
localVarQueryParameter['before'] = before;
|
|
470
|
+
}
|
|
471
|
+
if (channel !== undefined) {
|
|
472
|
+
localVarQueryParameter['channel'] = channel;
|
|
473
|
+
}
|
|
474
|
+
if (read !== undefined) {
|
|
475
|
+
localVarQueryParameter['read'] = read;
|
|
476
|
+
}
|
|
477
|
+
if (seen !== undefined) {
|
|
478
|
+
localVarQueryParameter['seen'] = seen;
|
|
479
|
+
}
|
|
480
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
481
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
482
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
483
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
484
|
+
return {
|
|
485
|
+
url: toPathString(localVarUrlObj),
|
|
486
|
+
options: localVarRequestOptions,
|
|
487
|
+
};
|
|
488
|
+
}),
|
|
489
|
+
/**
|
|
490
|
+
*
|
|
491
|
+
* @summary GET /v1/subscribers/:id/notifications/unseen — unseen count
|
|
492
|
+
* @param {string} id Subscriber ID
|
|
493
|
+
* @param {*} [options] Override http request option.
|
|
494
|
+
* @throws {RequiredError}
|
|
495
|
+
*/
|
|
496
|
+
unseenCount: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
497
|
+
// verify required parameter 'id' is not null or undefined
|
|
498
|
+
assertParamExists('unseenCount', 'id', id);
|
|
499
|
+
const localVarPath = `/v1/subscribers/{id}/notifications/unseen/`
|
|
500
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
501
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
502
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
503
|
+
let baseOptions;
|
|
504
|
+
if (configuration) {
|
|
505
|
+
baseOptions = configuration.baseOptions;
|
|
506
|
+
}
|
|
507
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
508
|
+
const localVarHeaderParameter = {};
|
|
509
|
+
const localVarQueryParameter = {};
|
|
510
|
+
// authentication bearer_auth required
|
|
511
|
+
// http bearer authentication required
|
|
512
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
513
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
514
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
515
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
516
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
517
|
+
return {
|
|
518
|
+
url: toPathString(localVarUrlObj),
|
|
519
|
+
options: localVarRequestOptions,
|
|
520
|
+
};
|
|
521
|
+
}),
|
|
522
|
+
/**
|
|
523
|
+
*
|
|
524
|
+
* @summary PATCH /v1/subscribers/:id/online-status — set online/offline
|
|
525
|
+
* @param {string} id Subscriber ID
|
|
526
|
+
* @param {OnlineStatus} onlineStatus
|
|
527
|
+
* @param {*} [options] Override http request option.
|
|
528
|
+
* @throws {RequiredError}
|
|
529
|
+
*/
|
|
530
|
+
updateOnlineStatus: (id_1, onlineStatus_1, ...args_1) => __awaiter(this, [id_1, onlineStatus_1, ...args_1], void 0, function* (id, onlineStatus, options = {}) {
|
|
531
|
+
// verify required parameter 'id' is not null or undefined
|
|
532
|
+
assertParamExists('updateOnlineStatus', 'id', id);
|
|
533
|
+
// verify required parameter 'onlineStatus' is not null or undefined
|
|
534
|
+
assertParamExists('updateOnlineStatus', 'onlineStatus', onlineStatus);
|
|
535
|
+
const localVarPath = `/v1/subscribers/{id}/online-status/`
|
|
536
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
537
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
538
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
539
|
+
let baseOptions;
|
|
540
|
+
if (configuration) {
|
|
541
|
+
baseOptions = configuration.baseOptions;
|
|
542
|
+
}
|
|
543
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
544
|
+
const localVarHeaderParameter = {};
|
|
545
|
+
const localVarQueryParameter = {};
|
|
546
|
+
// authentication bearer_auth required
|
|
547
|
+
// http bearer authentication required
|
|
548
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
549
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
550
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
551
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
552
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
553
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
554
|
+
localVarRequestOptions.data = serializeDataIfNeeded(onlineStatus, localVarRequestOptions, configuration);
|
|
555
|
+
return {
|
|
556
|
+
url: toPathString(localVarUrlObj),
|
|
557
|
+
options: localVarRequestOptions,
|
|
558
|
+
};
|
|
559
|
+
}),
|
|
560
|
+
/**
|
|
561
|
+
*
|
|
562
|
+
* @summary PATCH /v1/subscribers/:subscriber_id
|
|
563
|
+
* @param {string} id Subscriber ID
|
|
564
|
+
* @param {UpdateSubscriber} updateSubscriber
|
|
565
|
+
* @param {*} [options] Override http request option.
|
|
566
|
+
* @throws {RequiredError}
|
|
567
|
+
*/
|
|
568
|
+
updateSubscriber: (id_1, updateSubscriber_1, ...args_1) => __awaiter(this, [id_1, updateSubscriber_1, ...args_1], void 0, function* (id, updateSubscriber, options = {}) {
|
|
569
|
+
// verify required parameter 'id' is not null or undefined
|
|
570
|
+
assertParamExists('updateSubscriber', 'id', id);
|
|
571
|
+
// verify required parameter 'updateSubscriber' is not null or undefined
|
|
572
|
+
assertParamExists('updateSubscriber', 'updateSubscriber', updateSubscriber);
|
|
573
|
+
const localVarPath = `/v1/subscribers/{id}/`
|
|
574
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
575
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
576
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
577
|
+
let baseOptions;
|
|
578
|
+
if (configuration) {
|
|
579
|
+
baseOptions = configuration.baseOptions;
|
|
580
|
+
}
|
|
581
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
582
|
+
const localVarHeaderParameter = {};
|
|
583
|
+
const localVarQueryParameter = {};
|
|
584
|
+
// authentication bearer_auth required
|
|
585
|
+
// http bearer authentication required
|
|
586
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
587
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
588
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
589
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
590
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
591
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
592
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateSubscriber, localVarRequestOptions, configuration);
|
|
593
|
+
return {
|
|
594
|
+
url: toPathString(localVarUrlObj),
|
|
595
|
+
options: localVarRequestOptions,
|
|
596
|
+
};
|
|
597
|
+
}),
|
|
598
|
+
/**
|
|
599
|
+
*
|
|
600
|
+
* @summary PATCH /v1/subscribers/:id/credentials — upsert/merge creds for a provider
|
|
601
|
+
* @param {string} id Subscriber ID
|
|
602
|
+
* @param {PatchCredentials} patchCredentials
|
|
603
|
+
* @param {*} [options] Override http request option.
|
|
604
|
+
* @throws {RequiredError}
|
|
605
|
+
*/
|
|
606
|
+
upsertCredentials: (id_1, patchCredentials_1, ...args_1) => __awaiter(this, [id_1, patchCredentials_1, ...args_1], void 0, function* (id, patchCredentials, options = {}) {
|
|
607
|
+
// verify required parameter 'id' is not null or undefined
|
|
608
|
+
assertParamExists('upsertCredentials', 'id', id);
|
|
609
|
+
// verify required parameter 'patchCredentials' is not null or undefined
|
|
610
|
+
assertParamExists('upsertCredentials', 'patchCredentials', patchCredentials);
|
|
611
|
+
const localVarPath = `/v1/subscribers/{id}/credentials/`
|
|
612
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
613
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
614
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
615
|
+
let baseOptions;
|
|
616
|
+
if (configuration) {
|
|
617
|
+
baseOptions = configuration.baseOptions;
|
|
618
|
+
}
|
|
619
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
620
|
+
const localVarHeaderParameter = {};
|
|
621
|
+
const localVarQueryParameter = {};
|
|
622
|
+
// authentication bearer_auth required
|
|
623
|
+
// http bearer authentication required
|
|
624
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
625
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
626
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
627
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
628
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
629
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
630
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchCredentials, localVarRequestOptions, configuration);
|
|
631
|
+
return {
|
|
632
|
+
url: toPathString(localVarUrlObj),
|
|
633
|
+
options: localVarRequestOptions,
|
|
634
|
+
};
|
|
635
|
+
}),
|
|
636
|
+
};
|
|
637
|
+
};
|
|
638
|
+
/**
|
|
639
|
+
* SubscribersApi - functional programming interface
|
|
640
|
+
*/
|
|
641
|
+
export const SubscribersApiFp = function (configuration) {
|
|
642
|
+
const localVarAxiosParamCreator = SubscribersApiAxiosParamCreator(configuration);
|
|
643
|
+
return {
|
|
644
|
+
/**
|
|
645
|
+
*
|
|
646
|
+
* @summary POST /v1/subscribers/bulk — create multiple subscribers at once
|
|
647
|
+
* @param {BulkCreateSubscribers} bulkCreateSubscribers
|
|
648
|
+
* @param {*} [options] Override http request option.
|
|
649
|
+
* @throws {RequiredError}
|
|
650
|
+
*/
|
|
651
|
+
bulkCreate(bulkCreateSubscribers, options) {
|
|
652
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
653
|
+
var _a, _b, _c;
|
|
654
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkCreate(bulkCreateSubscribers, options);
|
|
655
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
656
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.bulkCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
657
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
658
|
+
});
|
|
659
|
+
},
|
|
660
|
+
/**
|
|
661
|
+
*
|
|
662
|
+
* @summary PATCH /v1/subscribers/:id/preferences/bulk — update multiple workflow preferences at once
|
|
663
|
+
* @param {string} id Subscriber ID
|
|
664
|
+
* @param {BulkPreferences} bulkPreferences
|
|
665
|
+
* @param {*} [options] Override http request option.
|
|
666
|
+
* @throws {RequiredError}
|
|
667
|
+
*/
|
|
668
|
+
bulkUpdatePreferences(id, bulkPreferences, options) {
|
|
669
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
670
|
+
var _a, _b, _c;
|
|
671
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkUpdatePreferences(id, bulkPreferences, options);
|
|
672
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
673
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.bulkUpdatePreferences']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
674
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
675
|
+
});
|
|
676
|
+
},
|
|
677
|
+
/**
|
|
678
|
+
*
|
|
679
|
+
* @summary POST /v1/subscribers
|
|
680
|
+
* @param {CreateSubscriber} createSubscriber
|
|
681
|
+
* @param {*} [options] Override http request option.
|
|
682
|
+
* @throws {RequiredError}
|
|
683
|
+
*/
|
|
684
|
+
createSubscriber(createSubscriber, options) {
|
|
685
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
686
|
+
var _a, _b, _c;
|
|
687
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriber(createSubscriber, options);
|
|
688
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
689
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.createSubscriber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
690
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
691
|
+
});
|
|
692
|
+
},
|
|
693
|
+
/**
|
|
694
|
+
*
|
|
695
|
+
* @summary DELETE /v1/subscribers/:id/credentials/:provider_id — remove creds for a provider
|
|
696
|
+
* @param {string} id Subscriber ID
|
|
697
|
+
* @param {string} providerId Provider ID
|
|
698
|
+
* @param {*} [options] Override http request option.
|
|
699
|
+
* @throws {RequiredError}
|
|
700
|
+
*/
|
|
701
|
+
deleteCredentials(id, providerId, options) {
|
|
702
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
703
|
+
var _a, _b, _c;
|
|
704
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteCredentials(id, providerId, options);
|
|
705
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
706
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.deleteCredentials']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
707
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
708
|
+
});
|
|
709
|
+
},
|
|
710
|
+
/**
|
|
711
|
+
*
|
|
712
|
+
* @summary DELETE /v1/subscribers/:subscriber_id
|
|
713
|
+
* @param {string} id Subscriber ID
|
|
714
|
+
* @param {*} [options] Override http request option.
|
|
715
|
+
* @throws {RequiredError}
|
|
716
|
+
*/
|
|
717
|
+
deleteSubscriber(id, options) {
|
|
718
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
719
|
+
var _a, _b, _c;
|
|
720
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSubscriber(id, options);
|
|
721
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
722
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.deleteSubscriber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
723
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
724
|
+
});
|
|
725
|
+
},
|
|
726
|
+
/**
|
|
727
|
+
*
|
|
728
|
+
* @summary GET /v1/subscribers/:subscriber_id
|
|
729
|
+
* @param {string} id Subscriber ID
|
|
730
|
+
* @param {*} [options] Override http request option.
|
|
731
|
+
* @throws {RequiredError}
|
|
732
|
+
*/
|
|
733
|
+
getSubscriber(id, options) {
|
|
734
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
735
|
+
var _a, _b, _c;
|
|
736
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSubscriber(id, options);
|
|
737
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
738
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.getSubscriber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
739
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
740
|
+
});
|
|
741
|
+
},
|
|
742
|
+
/**
|
|
743
|
+
*
|
|
744
|
+
* @summary GET /v1/subscribers/:id/subscriptions — list topic subscriptions for a subscriber
|
|
745
|
+
* @param {string} id Subscriber ID
|
|
746
|
+
* @param {*} [options] Override http request option.
|
|
747
|
+
* @throws {RequiredError}
|
|
748
|
+
*/
|
|
749
|
+
listSubscriberSubscriptions(id, options) {
|
|
750
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
751
|
+
var _a, _b, _c;
|
|
752
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSubscriberSubscriptions(id, options);
|
|
753
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
754
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.listSubscriberSubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
755
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
756
|
+
});
|
|
757
|
+
},
|
|
758
|
+
/**
|
|
759
|
+
* Lists subscribers for the current project. When the optional `q` query parameter is provided, the list is powered by Typesense full-text search (searching across email, name, phone, subscriber_id). Without `q`, a standard paginated listing from the primary store is returned.
|
|
760
|
+
* @summary GET /v1/subscribers
|
|
761
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default 10).
|
|
762
|
+
* @param {number | null} [offset] Number of items to skip (default 0).
|
|
763
|
+
* @param {string | null} [q] Optional full-text search query (e.g., an email, name, or phone number). When present, search is powered by Typesense.
|
|
764
|
+
* @param {string | null} [filterBy] Optional filter expression for narrowing results. Example: `is_online:=true` or `locale:=en-US`.
|
|
765
|
+
* @param {*} [options] Override http request option.
|
|
766
|
+
* @throws {RequiredError}
|
|
767
|
+
*/
|
|
768
|
+
listSubscribers(limit, offset, q, filterBy, options) {
|
|
769
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
770
|
+
var _a, _b, _c;
|
|
771
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSubscribers(limit, offset, q, filterBy, options);
|
|
772
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
773
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.listSubscribers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
774
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
775
|
+
});
|
|
776
|
+
},
|
|
777
|
+
/**
|
|
778
|
+
*
|
|
779
|
+
* @summary POST /v1/subscribers/:id/messages/mark-all — mark all messages
|
|
780
|
+
* @param {string} id Subscriber ID
|
|
781
|
+
* @param {MarkAll} markAll
|
|
782
|
+
* @param {*} [options] Override http request option.
|
|
783
|
+
* @throws {RequiredError}
|
|
784
|
+
*/
|
|
785
|
+
markAllMessages(id, markAll, options) {
|
|
786
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
787
|
+
var _a, _b, _c;
|
|
788
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.markAllMessages(id, markAll, options);
|
|
789
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
790
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.markAllMessages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
791
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
792
|
+
});
|
|
793
|
+
},
|
|
794
|
+
/**
|
|
795
|
+
*
|
|
796
|
+
* @summary POST /v1/subscribers/:id/messages/mark-as — mark messages as read/seen/unseen
|
|
797
|
+
* @param {string} id Subscriber ID
|
|
798
|
+
* @param {MarkMessages} markMessages
|
|
799
|
+
* @param {*} [options] Override http request option.
|
|
800
|
+
* @throws {RequiredError}
|
|
801
|
+
*/
|
|
802
|
+
markMessages(id, markMessages, options) {
|
|
803
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
804
|
+
var _a, _b, _c;
|
|
805
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.markMessages(id, markMessages, options);
|
|
806
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
807
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.markMessages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
808
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
809
|
+
});
|
|
810
|
+
},
|
|
811
|
+
/**
|
|
812
|
+
*
|
|
813
|
+
* @summary PUT /v1/subscribers/:id/credentials — replace all creds for a provider
|
|
814
|
+
* @param {string} id Subscriber ID
|
|
815
|
+
* @param {SetCredentials} setCredentials
|
|
816
|
+
* @param {*} [options] Override http request option.
|
|
817
|
+
* @throws {RequiredError}
|
|
818
|
+
*/
|
|
819
|
+
setCredentials(id, setCredentials, options) {
|
|
820
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
821
|
+
var _a, _b, _c;
|
|
822
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setCredentials(id, setCredentials, options);
|
|
823
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
824
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.setCredentials']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
825
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
826
|
+
});
|
|
827
|
+
},
|
|
828
|
+
/**
|
|
829
|
+
*
|
|
830
|
+
* @summary GET /v1/subscribers/:id/notifications/feed — cursor-paginated message list
|
|
831
|
+
* @param {string} id Subscriber ID
|
|
832
|
+
* @param {number | null} [limit]
|
|
833
|
+
* @param {string | null} [after]
|
|
834
|
+
* @param {string | null} [before]
|
|
835
|
+
* @param {string | null} [channel]
|
|
836
|
+
* @param {boolean | null} [read]
|
|
837
|
+
* @param {boolean | null} [seen]
|
|
838
|
+
* @param {*} [options] Override http request option.
|
|
839
|
+
* @throws {RequiredError}
|
|
840
|
+
*/
|
|
841
|
+
subscriberFeed(id, limit, after, before, channel, read, seen, options) {
|
|
842
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
843
|
+
var _a, _b, _c;
|
|
844
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.subscriberFeed(id, limit, after, before, channel, read, seen, options);
|
|
845
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
846
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.subscriberFeed']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
847
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
848
|
+
});
|
|
849
|
+
},
|
|
850
|
+
/**
|
|
851
|
+
*
|
|
852
|
+
* @summary GET /v1/subscribers/:id/notifications/unseen — unseen count
|
|
853
|
+
* @param {string} id Subscriber ID
|
|
854
|
+
* @param {*} [options] Override http request option.
|
|
855
|
+
* @throws {RequiredError}
|
|
856
|
+
*/
|
|
857
|
+
unseenCount(id, options) {
|
|
858
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
859
|
+
var _a, _b, _c;
|
|
860
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.unseenCount(id, options);
|
|
861
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
862
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.unseenCount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
863
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
864
|
+
});
|
|
865
|
+
},
|
|
866
|
+
/**
|
|
867
|
+
*
|
|
868
|
+
* @summary PATCH /v1/subscribers/:id/online-status — set online/offline
|
|
869
|
+
* @param {string} id Subscriber ID
|
|
870
|
+
* @param {OnlineStatus} onlineStatus
|
|
871
|
+
* @param {*} [options] Override http request option.
|
|
872
|
+
* @throws {RequiredError}
|
|
873
|
+
*/
|
|
874
|
+
updateOnlineStatus(id, onlineStatus, options) {
|
|
875
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
876
|
+
var _a, _b, _c;
|
|
877
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateOnlineStatus(id, onlineStatus, options);
|
|
878
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
879
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.updateOnlineStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
880
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
881
|
+
});
|
|
882
|
+
},
|
|
883
|
+
/**
|
|
884
|
+
*
|
|
885
|
+
* @summary PATCH /v1/subscribers/:subscriber_id
|
|
886
|
+
* @param {string} id Subscriber ID
|
|
887
|
+
* @param {UpdateSubscriber} updateSubscriber
|
|
888
|
+
* @param {*} [options] Override http request option.
|
|
889
|
+
* @throws {RequiredError}
|
|
890
|
+
*/
|
|
891
|
+
updateSubscriber(id, updateSubscriber, options) {
|
|
892
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
893
|
+
var _a, _b, _c;
|
|
894
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSubscriber(id, updateSubscriber, options);
|
|
895
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
896
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.updateSubscriber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
897
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
898
|
+
});
|
|
899
|
+
},
|
|
900
|
+
/**
|
|
901
|
+
*
|
|
902
|
+
* @summary PATCH /v1/subscribers/:id/credentials — upsert/merge creds for a provider
|
|
903
|
+
* @param {string} id Subscriber ID
|
|
904
|
+
* @param {PatchCredentials} patchCredentials
|
|
905
|
+
* @param {*} [options] Override http request option.
|
|
906
|
+
* @throws {RequiredError}
|
|
907
|
+
*/
|
|
908
|
+
upsertCredentials(id, patchCredentials, options) {
|
|
909
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
910
|
+
var _a, _b, _c;
|
|
911
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.upsertCredentials(id, patchCredentials, options);
|
|
912
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
913
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscribersApi.upsertCredentials']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
914
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
915
|
+
});
|
|
916
|
+
},
|
|
917
|
+
};
|
|
918
|
+
};
|
|
919
|
+
/**
|
|
920
|
+
* SubscribersApi - factory interface
|
|
921
|
+
*/
|
|
922
|
+
export const SubscribersApiFactory = function (configuration, basePath, axios) {
|
|
923
|
+
const localVarFp = SubscribersApiFp(configuration);
|
|
924
|
+
return {
|
|
925
|
+
/**
|
|
926
|
+
*
|
|
927
|
+
* @summary POST /v1/subscribers/bulk — create multiple subscribers at once
|
|
928
|
+
* @param {BulkCreateSubscribers} bulkCreateSubscribers
|
|
929
|
+
* @param {*} [options] Override http request option.
|
|
930
|
+
* @throws {RequiredError}
|
|
931
|
+
*/
|
|
932
|
+
bulkCreate(bulkCreateSubscribers, options) {
|
|
933
|
+
return localVarFp.bulkCreate(bulkCreateSubscribers, options).then((request) => request(axios, basePath));
|
|
934
|
+
},
|
|
935
|
+
/**
|
|
936
|
+
*
|
|
937
|
+
* @summary PATCH /v1/subscribers/:id/preferences/bulk — update multiple workflow preferences at once
|
|
938
|
+
* @param {string} id Subscriber ID
|
|
939
|
+
* @param {BulkPreferences} bulkPreferences
|
|
940
|
+
* @param {*} [options] Override http request option.
|
|
941
|
+
* @throws {RequiredError}
|
|
942
|
+
*/
|
|
943
|
+
bulkUpdatePreferences(id, bulkPreferences, options) {
|
|
944
|
+
return localVarFp.bulkUpdatePreferences(id, bulkPreferences, options).then((request) => request(axios, basePath));
|
|
945
|
+
},
|
|
946
|
+
/**
|
|
947
|
+
*
|
|
948
|
+
* @summary POST /v1/subscribers
|
|
949
|
+
* @param {CreateSubscriber} createSubscriber
|
|
950
|
+
* @param {*} [options] Override http request option.
|
|
951
|
+
* @throws {RequiredError}
|
|
952
|
+
*/
|
|
953
|
+
createSubscriber(createSubscriber, options) {
|
|
954
|
+
return localVarFp.createSubscriber(createSubscriber, options).then((request) => request(axios, basePath));
|
|
955
|
+
},
|
|
956
|
+
/**
|
|
957
|
+
*
|
|
958
|
+
* @summary DELETE /v1/subscribers/:id/credentials/:provider_id — remove creds for a provider
|
|
959
|
+
* @param {string} id Subscriber ID
|
|
960
|
+
* @param {string} providerId Provider ID
|
|
961
|
+
* @param {*} [options] Override http request option.
|
|
962
|
+
* @throws {RequiredError}
|
|
963
|
+
*/
|
|
964
|
+
deleteCredentials(id, providerId, options) {
|
|
965
|
+
return localVarFp.deleteCredentials(id, providerId, options).then((request) => request(axios, basePath));
|
|
966
|
+
},
|
|
967
|
+
/**
|
|
968
|
+
*
|
|
969
|
+
* @summary DELETE /v1/subscribers/:subscriber_id
|
|
970
|
+
* @param {string} id Subscriber ID
|
|
971
|
+
* @param {*} [options] Override http request option.
|
|
972
|
+
* @throws {RequiredError}
|
|
973
|
+
*/
|
|
974
|
+
deleteSubscriber(id, options) {
|
|
975
|
+
return localVarFp.deleteSubscriber(id, options).then((request) => request(axios, basePath));
|
|
976
|
+
},
|
|
977
|
+
/**
|
|
978
|
+
*
|
|
979
|
+
* @summary GET /v1/subscribers/:subscriber_id
|
|
980
|
+
* @param {string} id Subscriber ID
|
|
981
|
+
* @param {*} [options] Override http request option.
|
|
982
|
+
* @throws {RequiredError}
|
|
983
|
+
*/
|
|
984
|
+
getSubscriber(id, options) {
|
|
985
|
+
return localVarFp.getSubscriber(id, options).then((request) => request(axios, basePath));
|
|
986
|
+
},
|
|
987
|
+
/**
|
|
988
|
+
*
|
|
989
|
+
* @summary GET /v1/subscribers/:id/subscriptions — list topic subscriptions for a subscriber
|
|
990
|
+
* @param {string} id Subscriber ID
|
|
991
|
+
* @param {*} [options] Override http request option.
|
|
992
|
+
* @throws {RequiredError}
|
|
993
|
+
*/
|
|
994
|
+
listSubscriberSubscriptions(id, options) {
|
|
995
|
+
return localVarFp.listSubscriberSubscriptions(id, options).then((request) => request(axios, basePath));
|
|
996
|
+
},
|
|
997
|
+
/**
|
|
998
|
+
* Lists subscribers for the current project. When the optional `q` query parameter is provided, the list is powered by Typesense full-text search (searching across email, name, phone, subscriber_id). Without `q`, a standard paginated listing from the primary store is returned.
|
|
999
|
+
* @summary GET /v1/subscribers
|
|
1000
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default 10).
|
|
1001
|
+
* @param {number | null} [offset] Number of items to skip (default 0).
|
|
1002
|
+
* @param {string | null} [q] Optional full-text search query (e.g., an email, name, or phone number). When present, search is powered by Typesense.
|
|
1003
|
+
* @param {string | null} [filterBy] Optional filter expression for narrowing results. Example: `is_online:=true` or `locale:=en-US`.
|
|
1004
|
+
* @param {*} [options] Override http request option.
|
|
1005
|
+
* @throws {RequiredError}
|
|
1006
|
+
*/
|
|
1007
|
+
listSubscribers(limit, offset, q, filterBy, options) {
|
|
1008
|
+
return localVarFp.listSubscribers(limit, offset, q, filterBy, options).then((request) => request(axios, basePath));
|
|
1009
|
+
},
|
|
1010
|
+
/**
|
|
1011
|
+
*
|
|
1012
|
+
* @summary POST /v1/subscribers/:id/messages/mark-all — mark all messages
|
|
1013
|
+
* @param {string} id Subscriber ID
|
|
1014
|
+
* @param {MarkAll} markAll
|
|
1015
|
+
* @param {*} [options] Override http request option.
|
|
1016
|
+
* @throws {RequiredError}
|
|
1017
|
+
*/
|
|
1018
|
+
markAllMessages(id, markAll, options) {
|
|
1019
|
+
return localVarFp.markAllMessages(id, markAll, options).then((request) => request(axios, basePath));
|
|
1020
|
+
},
|
|
1021
|
+
/**
|
|
1022
|
+
*
|
|
1023
|
+
* @summary POST /v1/subscribers/:id/messages/mark-as — mark messages as read/seen/unseen
|
|
1024
|
+
* @param {string} id Subscriber ID
|
|
1025
|
+
* @param {MarkMessages} markMessages
|
|
1026
|
+
* @param {*} [options] Override http request option.
|
|
1027
|
+
* @throws {RequiredError}
|
|
1028
|
+
*/
|
|
1029
|
+
markMessages(id, markMessages, options) {
|
|
1030
|
+
return localVarFp.markMessages(id, markMessages, options).then((request) => request(axios, basePath));
|
|
1031
|
+
},
|
|
1032
|
+
/**
|
|
1033
|
+
*
|
|
1034
|
+
* @summary PUT /v1/subscribers/:id/credentials — replace all creds for a provider
|
|
1035
|
+
* @param {string} id Subscriber ID
|
|
1036
|
+
* @param {SetCredentials} setCredentials
|
|
1037
|
+
* @param {*} [options] Override http request option.
|
|
1038
|
+
* @throws {RequiredError}
|
|
1039
|
+
*/
|
|
1040
|
+
setCredentials(id, setCredentials, options) {
|
|
1041
|
+
return localVarFp.setCredentials(id, setCredentials, options).then((request) => request(axios, basePath));
|
|
1042
|
+
},
|
|
1043
|
+
/**
|
|
1044
|
+
*
|
|
1045
|
+
* @summary GET /v1/subscribers/:id/notifications/feed — cursor-paginated message list
|
|
1046
|
+
* @param {string} id Subscriber ID
|
|
1047
|
+
* @param {number | null} [limit]
|
|
1048
|
+
* @param {string | null} [after]
|
|
1049
|
+
* @param {string | null} [before]
|
|
1050
|
+
* @param {string | null} [channel]
|
|
1051
|
+
* @param {boolean | null} [read]
|
|
1052
|
+
* @param {boolean | null} [seen]
|
|
1053
|
+
* @param {*} [options] Override http request option.
|
|
1054
|
+
* @throws {RequiredError}
|
|
1055
|
+
*/
|
|
1056
|
+
subscriberFeed(id, limit, after, before, channel, read, seen, options) {
|
|
1057
|
+
return localVarFp.subscriberFeed(id, limit, after, before, channel, read, seen, options).then((request) => request(axios, basePath));
|
|
1058
|
+
},
|
|
1059
|
+
/**
|
|
1060
|
+
*
|
|
1061
|
+
* @summary GET /v1/subscribers/:id/notifications/unseen — unseen count
|
|
1062
|
+
* @param {string} id Subscriber ID
|
|
1063
|
+
* @param {*} [options] Override http request option.
|
|
1064
|
+
* @throws {RequiredError}
|
|
1065
|
+
*/
|
|
1066
|
+
unseenCount(id, options) {
|
|
1067
|
+
return localVarFp.unseenCount(id, options).then((request) => request(axios, basePath));
|
|
1068
|
+
},
|
|
1069
|
+
/**
|
|
1070
|
+
*
|
|
1071
|
+
* @summary PATCH /v1/subscribers/:id/online-status — set online/offline
|
|
1072
|
+
* @param {string} id Subscriber ID
|
|
1073
|
+
* @param {OnlineStatus} onlineStatus
|
|
1074
|
+
* @param {*} [options] Override http request option.
|
|
1075
|
+
* @throws {RequiredError}
|
|
1076
|
+
*/
|
|
1077
|
+
updateOnlineStatus(id, onlineStatus, options) {
|
|
1078
|
+
return localVarFp.updateOnlineStatus(id, onlineStatus, options).then((request) => request(axios, basePath));
|
|
1079
|
+
},
|
|
1080
|
+
/**
|
|
1081
|
+
*
|
|
1082
|
+
* @summary PATCH /v1/subscribers/:subscriber_id
|
|
1083
|
+
* @param {string} id Subscriber ID
|
|
1084
|
+
* @param {UpdateSubscriber} updateSubscriber
|
|
1085
|
+
* @param {*} [options] Override http request option.
|
|
1086
|
+
* @throws {RequiredError}
|
|
1087
|
+
*/
|
|
1088
|
+
updateSubscriber(id, updateSubscriber, options) {
|
|
1089
|
+
return localVarFp.updateSubscriber(id, updateSubscriber, options).then((request) => request(axios, basePath));
|
|
1090
|
+
},
|
|
1091
|
+
/**
|
|
1092
|
+
*
|
|
1093
|
+
* @summary PATCH /v1/subscribers/:id/credentials — upsert/merge creds for a provider
|
|
1094
|
+
* @param {string} id Subscriber ID
|
|
1095
|
+
* @param {PatchCredentials} patchCredentials
|
|
1096
|
+
* @param {*} [options] Override http request option.
|
|
1097
|
+
* @throws {RequiredError}
|
|
1098
|
+
*/
|
|
1099
|
+
upsertCredentials(id, patchCredentials, options) {
|
|
1100
|
+
return localVarFp.upsertCredentials(id, patchCredentials, options).then((request) => request(axios, basePath));
|
|
1101
|
+
},
|
|
1102
|
+
};
|
|
1103
|
+
};
|
|
1104
|
+
/**
|
|
1105
|
+
* SubscribersApi - object-oriented interface
|
|
1106
|
+
*/
|
|
1107
|
+
export class SubscribersApi extends BaseAPI {
|
|
1108
|
+
/**
|
|
1109
|
+
*
|
|
1110
|
+
* @summary POST /v1/subscribers/bulk — create multiple subscribers at once
|
|
1111
|
+
* @param {BulkCreateSubscribers} bulkCreateSubscribers
|
|
1112
|
+
* @param {*} [options] Override http request option.
|
|
1113
|
+
* @throws {RequiredError}
|
|
1114
|
+
*/
|
|
1115
|
+
bulkCreate(bulkCreateSubscribers, options) {
|
|
1116
|
+
return SubscribersApiFp(this.configuration).bulkCreate(bulkCreateSubscribers, options).then((request) => request(this.axios, this.basePath));
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
*
|
|
1120
|
+
* @summary PATCH /v1/subscribers/:id/preferences/bulk — update multiple workflow preferences at once
|
|
1121
|
+
* @param {string} id Subscriber ID
|
|
1122
|
+
* @param {BulkPreferences} bulkPreferences
|
|
1123
|
+
* @param {*} [options] Override http request option.
|
|
1124
|
+
* @throws {RequiredError}
|
|
1125
|
+
*/
|
|
1126
|
+
bulkUpdatePreferences(id, bulkPreferences, options) {
|
|
1127
|
+
return SubscribersApiFp(this.configuration).bulkUpdatePreferences(id, bulkPreferences, options).then((request) => request(this.axios, this.basePath));
|
|
1128
|
+
}
|
|
1129
|
+
/**
|
|
1130
|
+
*
|
|
1131
|
+
* @summary POST /v1/subscribers
|
|
1132
|
+
* @param {CreateSubscriber} createSubscriber
|
|
1133
|
+
* @param {*} [options] Override http request option.
|
|
1134
|
+
* @throws {RequiredError}
|
|
1135
|
+
*/
|
|
1136
|
+
createSubscriber(createSubscriber, options) {
|
|
1137
|
+
return SubscribersApiFp(this.configuration).createSubscriber(createSubscriber, options).then((request) => request(this.axios, this.basePath));
|
|
1138
|
+
}
|
|
1139
|
+
/**
|
|
1140
|
+
*
|
|
1141
|
+
* @summary DELETE /v1/subscribers/:id/credentials/:provider_id — remove creds for a provider
|
|
1142
|
+
* @param {string} id Subscriber ID
|
|
1143
|
+
* @param {string} providerId Provider ID
|
|
1144
|
+
* @param {*} [options] Override http request option.
|
|
1145
|
+
* @throws {RequiredError}
|
|
1146
|
+
*/
|
|
1147
|
+
deleteCredentials(id, providerId, options) {
|
|
1148
|
+
return SubscribersApiFp(this.configuration).deleteCredentials(id, providerId, options).then((request) => request(this.axios, this.basePath));
|
|
1149
|
+
}
|
|
1150
|
+
/**
|
|
1151
|
+
*
|
|
1152
|
+
* @summary DELETE /v1/subscribers/:subscriber_id
|
|
1153
|
+
* @param {string} id Subscriber ID
|
|
1154
|
+
* @param {*} [options] Override http request option.
|
|
1155
|
+
* @throws {RequiredError}
|
|
1156
|
+
*/
|
|
1157
|
+
deleteSubscriber(id, options) {
|
|
1158
|
+
return SubscribersApiFp(this.configuration).deleteSubscriber(id, options).then((request) => request(this.axios, this.basePath));
|
|
1159
|
+
}
|
|
1160
|
+
/**
|
|
1161
|
+
*
|
|
1162
|
+
* @summary GET /v1/subscribers/:subscriber_id
|
|
1163
|
+
* @param {string} id Subscriber ID
|
|
1164
|
+
* @param {*} [options] Override http request option.
|
|
1165
|
+
* @throws {RequiredError}
|
|
1166
|
+
*/
|
|
1167
|
+
getSubscriber(id, options) {
|
|
1168
|
+
return SubscribersApiFp(this.configuration).getSubscriber(id, options).then((request) => request(this.axios, this.basePath));
|
|
1169
|
+
}
|
|
1170
|
+
/**
|
|
1171
|
+
*
|
|
1172
|
+
* @summary GET /v1/subscribers/:id/subscriptions — list topic subscriptions for a subscriber
|
|
1173
|
+
* @param {string} id Subscriber ID
|
|
1174
|
+
* @param {*} [options] Override http request option.
|
|
1175
|
+
* @throws {RequiredError}
|
|
1176
|
+
*/
|
|
1177
|
+
listSubscriberSubscriptions(id, options) {
|
|
1178
|
+
return SubscribersApiFp(this.configuration).listSubscriberSubscriptions(id, options).then((request) => request(this.axios, this.basePath));
|
|
1179
|
+
}
|
|
1180
|
+
/**
|
|
1181
|
+
* Lists subscribers for the current project. When the optional `q` query parameter is provided, the list is powered by Typesense full-text search (searching across email, name, phone, subscriber_id). Without `q`, a standard paginated listing from the primary store is returned.
|
|
1182
|
+
* @summary GET /v1/subscribers
|
|
1183
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default 10).
|
|
1184
|
+
* @param {number | null} [offset] Number of items to skip (default 0).
|
|
1185
|
+
* @param {string | null} [q] Optional full-text search query (e.g., an email, name, or phone number). When present, search is powered by Typesense.
|
|
1186
|
+
* @param {string | null} [filterBy] Optional filter expression for narrowing results. Example: `is_online:=true` or `locale:=en-US`.
|
|
1187
|
+
* @param {*} [options] Override http request option.
|
|
1188
|
+
* @throws {RequiredError}
|
|
1189
|
+
*/
|
|
1190
|
+
listSubscribers(limit, offset, q, filterBy, options) {
|
|
1191
|
+
return SubscribersApiFp(this.configuration).listSubscribers(limit, offset, q, filterBy, options).then((request) => request(this.axios, this.basePath));
|
|
1192
|
+
}
|
|
1193
|
+
/**
|
|
1194
|
+
*
|
|
1195
|
+
* @summary POST /v1/subscribers/:id/messages/mark-all — mark all messages
|
|
1196
|
+
* @param {string} id Subscriber ID
|
|
1197
|
+
* @param {MarkAll} markAll
|
|
1198
|
+
* @param {*} [options] Override http request option.
|
|
1199
|
+
* @throws {RequiredError}
|
|
1200
|
+
*/
|
|
1201
|
+
markAllMessages(id, markAll, options) {
|
|
1202
|
+
return SubscribersApiFp(this.configuration).markAllMessages(id, markAll, options).then((request) => request(this.axios, this.basePath));
|
|
1203
|
+
}
|
|
1204
|
+
/**
|
|
1205
|
+
*
|
|
1206
|
+
* @summary POST /v1/subscribers/:id/messages/mark-as — mark messages as read/seen/unseen
|
|
1207
|
+
* @param {string} id Subscriber ID
|
|
1208
|
+
* @param {MarkMessages} markMessages
|
|
1209
|
+
* @param {*} [options] Override http request option.
|
|
1210
|
+
* @throws {RequiredError}
|
|
1211
|
+
*/
|
|
1212
|
+
markMessages(id, markMessages, options) {
|
|
1213
|
+
return SubscribersApiFp(this.configuration).markMessages(id, markMessages, options).then((request) => request(this.axios, this.basePath));
|
|
1214
|
+
}
|
|
1215
|
+
/**
|
|
1216
|
+
*
|
|
1217
|
+
* @summary PUT /v1/subscribers/:id/credentials — replace all creds for a provider
|
|
1218
|
+
* @param {string} id Subscriber ID
|
|
1219
|
+
* @param {SetCredentials} setCredentials
|
|
1220
|
+
* @param {*} [options] Override http request option.
|
|
1221
|
+
* @throws {RequiredError}
|
|
1222
|
+
*/
|
|
1223
|
+
setCredentials(id, setCredentials, options) {
|
|
1224
|
+
return SubscribersApiFp(this.configuration).setCredentials(id, setCredentials, options).then((request) => request(this.axios, this.basePath));
|
|
1225
|
+
}
|
|
1226
|
+
/**
|
|
1227
|
+
*
|
|
1228
|
+
* @summary GET /v1/subscribers/:id/notifications/feed — cursor-paginated message list
|
|
1229
|
+
* @param {string} id Subscriber ID
|
|
1230
|
+
* @param {number | null} [limit]
|
|
1231
|
+
* @param {string | null} [after]
|
|
1232
|
+
* @param {string | null} [before]
|
|
1233
|
+
* @param {string | null} [channel]
|
|
1234
|
+
* @param {boolean | null} [read]
|
|
1235
|
+
* @param {boolean | null} [seen]
|
|
1236
|
+
* @param {*} [options] Override http request option.
|
|
1237
|
+
* @throws {RequiredError}
|
|
1238
|
+
*/
|
|
1239
|
+
subscriberFeed(id, limit, after, before, channel, read, seen, options) {
|
|
1240
|
+
return SubscribersApiFp(this.configuration).subscriberFeed(id, limit, after, before, channel, read, seen, options).then((request) => request(this.axios, this.basePath));
|
|
1241
|
+
}
|
|
1242
|
+
/**
|
|
1243
|
+
*
|
|
1244
|
+
* @summary GET /v1/subscribers/:id/notifications/unseen — unseen count
|
|
1245
|
+
* @param {string} id Subscriber ID
|
|
1246
|
+
* @param {*} [options] Override http request option.
|
|
1247
|
+
* @throws {RequiredError}
|
|
1248
|
+
*/
|
|
1249
|
+
unseenCount(id, options) {
|
|
1250
|
+
return SubscribersApiFp(this.configuration).unseenCount(id, options).then((request) => request(this.axios, this.basePath));
|
|
1251
|
+
}
|
|
1252
|
+
/**
|
|
1253
|
+
*
|
|
1254
|
+
* @summary PATCH /v1/subscribers/:id/online-status — set online/offline
|
|
1255
|
+
* @param {string} id Subscriber ID
|
|
1256
|
+
* @param {OnlineStatus} onlineStatus
|
|
1257
|
+
* @param {*} [options] Override http request option.
|
|
1258
|
+
* @throws {RequiredError}
|
|
1259
|
+
*/
|
|
1260
|
+
updateOnlineStatus(id, onlineStatus, options) {
|
|
1261
|
+
return SubscribersApiFp(this.configuration).updateOnlineStatus(id, onlineStatus, options).then((request) => request(this.axios, this.basePath));
|
|
1262
|
+
}
|
|
1263
|
+
/**
|
|
1264
|
+
*
|
|
1265
|
+
* @summary PATCH /v1/subscribers/:subscriber_id
|
|
1266
|
+
* @param {string} id Subscriber ID
|
|
1267
|
+
* @param {UpdateSubscriber} updateSubscriber
|
|
1268
|
+
* @param {*} [options] Override http request option.
|
|
1269
|
+
* @throws {RequiredError}
|
|
1270
|
+
*/
|
|
1271
|
+
updateSubscriber(id, updateSubscriber, options) {
|
|
1272
|
+
return SubscribersApiFp(this.configuration).updateSubscriber(id, updateSubscriber, options).then((request) => request(this.axios, this.basePath));
|
|
1273
|
+
}
|
|
1274
|
+
/**
|
|
1275
|
+
*
|
|
1276
|
+
* @summary PATCH /v1/subscribers/:id/credentials — upsert/merge creds for a provider
|
|
1277
|
+
* @param {string} id Subscriber ID
|
|
1278
|
+
* @param {PatchCredentials} patchCredentials
|
|
1279
|
+
* @param {*} [options] Override http request option.
|
|
1280
|
+
* @throws {RequiredError}
|
|
1281
|
+
*/
|
|
1282
|
+
upsertCredentials(id, patchCredentials, options) {
|
|
1283
|
+
return SubscribersApiFp(this.configuration).upsertCredentials(id, patchCredentials, options).then((request) => request(this.axios, this.basePath));
|
|
1284
|
+
}
|
|
1285
|
+
}
|