@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,1143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* enbbox API
|
|
6
|
+
* Notification infrastructure API — open-source alternative to Novu/Courier
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.TopicsApi = exports.TopicsApiFactory = exports.TopicsApiFp = exports.TopicsApiAxiosParamCreator = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// Some imports not used depending on template conditions
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const common_1 = require("../common");
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
const base_1 = require("../base");
|
|
32
|
+
/**
|
|
33
|
+
* TopicsApi - axios parameter creator
|
|
34
|
+
*/
|
|
35
|
+
const TopicsApiAxiosParamCreator = function (configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @summary POST /v1/topics/:topicKey/subscribers
|
|
40
|
+
* @param {string} key Topic key
|
|
41
|
+
* @param {TopicSubscribers} topicSubscribers
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
addSubscribers: (key_1, topicSubscribers_1, ...args_1) => __awaiter(this, [key_1, topicSubscribers_1, ...args_1], void 0, function* (key, topicSubscribers, options = {}) {
|
|
46
|
+
// verify required parameter 'key' is not null or undefined
|
|
47
|
+
(0, common_1.assertParamExists)('addSubscribers', 'key', key);
|
|
48
|
+
// verify required parameter 'topicSubscribers' is not null or undefined
|
|
49
|
+
(0, common_1.assertParamExists)('addSubscribers', 'topicSubscribers', topicSubscribers);
|
|
50
|
+
const localVarPath = `/v1/topics/{key}/subscribers/`
|
|
51
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
52
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
53
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
54
|
+
let baseOptions;
|
|
55
|
+
if (configuration) {
|
|
56
|
+
baseOptions = configuration.baseOptions;
|
|
57
|
+
}
|
|
58
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
59
|
+
const localVarHeaderParameter = {};
|
|
60
|
+
const localVarQueryParameter = {};
|
|
61
|
+
// authentication bearer_auth required
|
|
62
|
+
// http bearer authentication required
|
|
63
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
64
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
65
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
66
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
67
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
68
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(topicSubscribers, localVarRequestOptions, configuration);
|
|
69
|
+
return {
|
|
70
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
71
|
+
options: localVarRequestOptions,
|
|
72
|
+
};
|
|
73
|
+
}),
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @summary GET /v1/topics/:key/subscribers/:subscriber_id — membership check
|
|
77
|
+
* @param {string} key
|
|
78
|
+
* @param {string} subscriberId
|
|
79
|
+
* @param {*} [options] Override http request option.
|
|
80
|
+
* @throws {RequiredError}
|
|
81
|
+
*/
|
|
82
|
+
checkSubscriber: (key_1, subscriberId_1, ...args_1) => __awaiter(this, [key_1, subscriberId_1, ...args_1], void 0, function* (key, subscriberId, options = {}) {
|
|
83
|
+
// verify required parameter 'key' is not null or undefined
|
|
84
|
+
(0, common_1.assertParamExists)('checkSubscriber', 'key', key);
|
|
85
|
+
// verify required parameter 'subscriberId' is not null or undefined
|
|
86
|
+
(0, common_1.assertParamExists)('checkSubscriber', 'subscriberId', subscriberId);
|
|
87
|
+
const localVarPath = `/v1/topics/{key}/subscribers/{subscriber_id}/`
|
|
88
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)))
|
|
89
|
+
.replace(`{${"subscriber_id"}}`, encodeURIComponent(String(subscriberId)));
|
|
90
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
91
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
92
|
+
let baseOptions;
|
|
93
|
+
if (configuration) {
|
|
94
|
+
baseOptions = configuration.baseOptions;
|
|
95
|
+
}
|
|
96
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
97
|
+
const localVarHeaderParameter = {};
|
|
98
|
+
const localVarQueryParameter = {};
|
|
99
|
+
// authentication bearer_auth required
|
|
100
|
+
// http bearer authentication required
|
|
101
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
102
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
103
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
104
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
105
|
+
return {
|
|
106
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
107
|
+
options: localVarRequestOptions,
|
|
108
|
+
};
|
|
109
|
+
}),
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @summary POST /v1/topics/:key/subscriptions — create subscriptions
|
|
113
|
+
* @param {string} key
|
|
114
|
+
* @param {CreateSubscription} createSubscription
|
|
115
|
+
* @param {*} [options] Override http request option.
|
|
116
|
+
* @throws {RequiredError}
|
|
117
|
+
*/
|
|
118
|
+
createSubscriptions: (key_1, createSubscription_1, ...args_1) => __awaiter(this, [key_1, createSubscription_1, ...args_1], void 0, function* (key, createSubscription, options = {}) {
|
|
119
|
+
// verify required parameter 'key' is not null or undefined
|
|
120
|
+
(0, common_1.assertParamExists)('createSubscriptions', 'key', key);
|
|
121
|
+
// verify required parameter 'createSubscription' is not null or undefined
|
|
122
|
+
(0, common_1.assertParamExists)('createSubscriptions', 'createSubscription', createSubscription);
|
|
123
|
+
const localVarPath = `/v1/topics/{key}/subscriptions/`
|
|
124
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
125
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
126
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
127
|
+
let baseOptions;
|
|
128
|
+
if (configuration) {
|
|
129
|
+
baseOptions = configuration.baseOptions;
|
|
130
|
+
}
|
|
131
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
132
|
+
const localVarHeaderParameter = {};
|
|
133
|
+
const localVarQueryParameter = {};
|
|
134
|
+
// authentication bearer_auth required
|
|
135
|
+
// http bearer authentication required
|
|
136
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
137
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
138
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
139
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
140
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
141
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
142
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSubscription, localVarRequestOptions, configuration);
|
|
143
|
+
return {
|
|
144
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
145
|
+
options: localVarRequestOptions,
|
|
146
|
+
};
|
|
147
|
+
}),
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* @summary POST /v1/topics
|
|
151
|
+
* @param {CreateTopic} createTopic
|
|
152
|
+
* @param {*} [options] Override http request option.
|
|
153
|
+
* @throws {RequiredError}
|
|
154
|
+
*/
|
|
155
|
+
createTopic: (createTopic_1, ...args_1) => __awaiter(this, [createTopic_1, ...args_1], void 0, function* (createTopic, options = {}) {
|
|
156
|
+
// verify required parameter 'createTopic' is not null or undefined
|
|
157
|
+
(0, common_1.assertParamExists)('createTopic', 'createTopic', createTopic);
|
|
158
|
+
const localVarPath = `/v1/topics/`;
|
|
159
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
160
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
161
|
+
let baseOptions;
|
|
162
|
+
if (configuration) {
|
|
163
|
+
baseOptions = configuration.baseOptions;
|
|
164
|
+
}
|
|
165
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
166
|
+
const localVarHeaderParameter = {};
|
|
167
|
+
const localVarQueryParameter = {};
|
|
168
|
+
// authentication bearer_auth required
|
|
169
|
+
// http bearer authentication required
|
|
170
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
171
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
172
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
173
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
174
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
175
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
176
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createTopic, localVarRequestOptions, configuration);
|
|
177
|
+
return {
|
|
178
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
179
|
+
options: localVarRequestOptions,
|
|
180
|
+
};
|
|
181
|
+
}),
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
* @summary DELETE /v1/topics/:key/subscriptions — bulk delete
|
|
185
|
+
* @param {string} key
|
|
186
|
+
* @param {DeleteSubscription} deleteSubscription
|
|
187
|
+
* @param {*} [options] Override http request option.
|
|
188
|
+
* @throws {RequiredError}
|
|
189
|
+
*/
|
|
190
|
+
deleteSubscriptions: (key_1, deleteSubscription_1, ...args_1) => __awaiter(this, [key_1, deleteSubscription_1, ...args_1], void 0, function* (key, deleteSubscription, options = {}) {
|
|
191
|
+
// verify required parameter 'key' is not null or undefined
|
|
192
|
+
(0, common_1.assertParamExists)('deleteSubscriptions', 'key', key);
|
|
193
|
+
// verify required parameter 'deleteSubscription' is not null or undefined
|
|
194
|
+
(0, common_1.assertParamExists)('deleteSubscriptions', 'deleteSubscription', deleteSubscription);
|
|
195
|
+
const localVarPath = `/v1/topics/{key}/subscriptions/`
|
|
196
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
197
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
198
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
199
|
+
let baseOptions;
|
|
200
|
+
if (configuration) {
|
|
201
|
+
baseOptions = configuration.baseOptions;
|
|
202
|
+
}
|
|
203
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
204
|
+
const localVarHeaderParameter = {};
|
|
205
|
+
const localVarQueryParameter = {};
|
|
206
|
+
// authentication bearer_auth required
|
|
207
|
+
// http bearer authentication required
|
|
208
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
209
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
210
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
211
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
212
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
213
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deleteSubscription, localVarRequestOptions, configuration);
|
|
214
|
+
return {
|
|
215
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
216
|
+
options: localVarRequestOptions,
|
|
217
|
+
};
|
|
218
|
+
}),
|
|
219
|
+
/**
|
|
220
|
+
*
|
|
221
|
+
* @summary DELETE /v1/topics/:topicKey
|
|
222
|
+
* @param {string} key Topic key
|
|
223
|
+
* @param {*} [options] Override http request option.
|
|
224
|
+
* @throws {RequiredError}
|
|
225
|
+
*/
|
|
226
|
+
deleteTopic: (key_1, ...args_1) => __awaiter(this, [key_1, ...args_1], void 0, function* (key, options = {}) {
|
|
227
|
+
// verify required parameter 'key' is not null or undefined
|
|
228
|
+
(0, common_1.assertParamExists)('deleteTopic', 'key', key);
|
|
229
|
+
const localVarPath = `/v1/topics/{key}/`
|
|
230
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
231
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
232
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
233
|
+
let baseOptions;
|
|
234
|
+
if (configuration) {
|
|
235
|
+
baseOptions = configuration.baseOptions;
|
|
236
|
+
}
|
|
237
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
238
|
+
const localVarHeaderParameter = {};
|
|
239
|
+
const localVarQueryParameter = {};
|
|
240
|
+
// authentication bearer_auth required
|
|
241
|
+
// http bearer authentication required
|
|
242
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
243
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
244
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
245
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
246
|
+
return {
|
|
247
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
248
|
+
options: localVarRequestOptions,
|
|
249
|
+
};
|
|
250
|
+
}),
|
|
251
|
+
/**
|
|
252
|
+
*
|
|
253
|
+
* @summary GET /v1/topics/:key/subscriptions/:id — get single subscription
|
|
254
|
+
* @param {string} key
|
|
255
|
+
* @param {string} id
|
|
256
|
+
* @param {*} [options] Override http request option.
|
|
257
|
+
* @throws {RequiredError}
|
|
258
|
+
*/
|
|
259
|
+
getSubscription: (key_1, id_1, ...args_1) => __awaiter(this, [key_1, id_1, ...args_1], void 0, function* (key, id, options = {}) {
|
|
260
|
+
// verify required parameter 'key' is not null or undefined
|
|
261
|
+
(0, common_1.assertParamExists)('getSubscription', 'key', key);
|
|
262
|
+
// verify required parameter 'id' is not null or undefined
|
|
263
|
+
(0, common_1.assertParamExists)('getSubscription', 'id', id);
|
|
264
|
+
const localVarPath = `/v1/topics/{key}/subscriptions/{id}/`
|
|
265
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)))
|
|
266
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
267
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
268
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
269
|
+
let baseOptions;
|
|
270
|
+
if (configuration) {
|
|
271
|
+
baseOptions = configuration.baseOptions;
|
|
272
|
+
}
|
|
273
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
274
|
+
const localVarHeaderParameter = {};
|
|
275
|
+
const localVarQueryParameter = {};
|
|
276
|
+
// authentication bearer_auth required
|
|
277
|
+
// http bearer authentication required
|
|
278
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
279
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
280
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
281
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
282
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
283
|
+
return {
|
|
284
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
285
|
+
options: localVarRequestOptions,
|
|
286
|
+
};
|
|
287
|
+
}),
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
* @summary GET /v1/topics/:topicKey
|
|
291
|
+
* @param {string} key Topic key
|
|
292
|
+
* @param {*} [options] Override http request option.
|
|
293
|
+
* @throws {RequiredError}
|
|
294
|
+
*/
|
|
295
|
+
getTopic: (key_1, ...args_1) => __awaiter(this, [key_1, ...args_1], void 0, function* (key, options = {}) {
|
|
296
|
+
// verify required parameter 'key' is not null or undefined
|
|
297
|
+
(0, common_1.assertParamExists)('getTopic', 'key', key);
|
|
298
|
+
const localVarPath = `/v1/topics/{key}/`
|
|
299
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
300
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
301
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
302
|
+
let baseOptions;
|
|
303
|
+
if (configuration) {
|
|
304
|
+
baseOptions = configuration.baseOptions;
|
|
305
|
+
}
|
|
306
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
307
|
+
const localVarHeaderParameter = {};
|
|
308
|
+
const localVarQueryParameter = {};
|
|
309
|
+
// authentication bearer_auth required
|
|
310
|
+
// http bearer authentication required
|
|
311
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
312
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
313
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
314
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
315
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
316
|
+
return {
|
|
317
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
318
|
+
options: localVarRequestOptions,
|
|
319
|
+
};
|
|
320
|
+
}),
|
|
321
|
+
/**
|
|
322
|
+
*
|
|
323
|
+
* @summary GET /v1/topics/:key/subscriptions — list subscriptions
|
|
324
|
+
* @param {string} key
|
|
325
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default: 10).
|
|
326
|
+
* @param {number | null} [offset] Number of items to skip before returning results (default: 0).
|
|
327
|
+
* @param {string | null} [q] Optional full-text search query. When present, listing is powered by Typesense full-text search.
|
|
328
|
+
* @param {string | null} [filterBy] Optional Typesense filter expression for narrowing results. Example: `identifier:=acme-corp` or `name:=General`.
|
|
329
|
+
* @param {*} [options] Override http request option.
|
|
330
|
+
* @throws {RequiredError}
|
|
331
|
+
*/
|
|
332
|
+
listSubscriptions: (key_1, limit_1, offset_1, q_1, filterBy_1, ...args_1) => __awaiter(this, [key_1, limit_1, offset_1, q_1, filterBy_1, ...args_1], void 0, function* (key, limit, offset, q, filterBy, options = {}) {
|
|
333
|
+
// verify required parameter 'key' is not null or undefined
|
|
334
|
+
(0, common_1.assertParamExists)('listSubscriptions', 'key', key);
|
|
335
|
+
const localVarPath = `/v1/topics/{key}/subscriptions/`
|
|
336
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
337
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
338
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
339
|
+
let baseOptions;
|
|
340
|
+
if (configuration) {
|
|
341
|
+
baseOptions = configuration.baseOptions;
|
|
342
|
+
}
|
|
343
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
344
|
+
const localVarHeaderParameter = {};
|
|
345
|
+
const localVarQueryParameter = {};
|
|
346
|
+
// authentication bearer_auth required
|
|
347
|
+
// http bearer authentication required
|
|
348
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
349
|
+
if (limit !== undefined) {
|
|
350
|
+
localVarQueryParameter['limit'] = limit;
|
|
351
|
+
}
|
|
352
|
+
if (offset !== undefined) {
|
|
353
|
+
localVarQueryParameter['offset'] = offset;
|
|
354
|
+
}
|
|
355
|
+
if (q !== undefined) {
|
|
356
|
+
localVarQueryParameter['q'] = q;
|
|
357
|
+
}
|
|
358
|
+
if (filterBy !== undefined) {
|
|
359
|
+
localVarQueryParameter['filter_by'] = filterBy;
|
|
360
|
+
}
|
|
361
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
362
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
363
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
364
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
365
|
+
return {
|
|
366
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
367
|
+
options: localVarRequestOptions,
|
|
368
|
+
};
|
|
369
|
+
}),
|
|
370
|
+
/**
|
|
371
|
+
*
|
|
372
|
+
* @summary GET /v1/topics/:topicKey/subscribers
|
|
373
|
+
* @param {string} key Topic key
|
|
374
|
+
* @param {*} [options] Override http request option.
|
|
375
|
+
* @throws {RequiredError}
|
|
376
|
+
*/
|
|
377
|
+
listTopicSubscribers: (key_1, ...args_1) => __awaiter(this, [key_1, ...args_1], void 0, function* (key, options = {}) {
|
|
378
|
+
// verify required parameter 'key' is not null or undefined
|
|
379
|
+
(0, common_1.assertParamExists)('listTopicSubscribers', 'key', key);
|
|
380
|
+
const localVarPath = `/v1/topics/{key}/subscribers/`
|
|
381
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
382
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
383
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
384
|
+
let baseOptions;
|
|
385
|
+
if (configuration) {
|
|
386
|
+
baseOptions = configuration.baseOptions;
|
|
387
|
+
}
|
|
388
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
389
|
+
const localVarHeaderParameter = {};
|
|
390
|
+
const localVarQueryParameter = {};
|
|
391
|
+
// authentication bearer_auth required
|
|
392
|
+
// http bearer authentication required
|
|
393
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
394
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
395
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
396
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
397
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
398
|
+
return {
|
|
399
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
400
|
+
options: localVarRequestOptions,
|
|
401
|
+
};
|
|
402
|
+
}),
|
|
403
|
+
/**
|
|
404
|
+
*
|
|
405
|
+
* @summary GET /v1/topics
|
|
406
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default: 10).
|
|
407
|
+
* @param {number | null} [offset] Number of items to skip before returning results (default: 0).
|
|
408
|
+
* @param {string | null} [q] Optional full-text search query. When present, listing is powered by Typesense full-text search.
|
|
409
|
+
* @param {string | null} [filterBy] Optional Typesense filter expression for narrowing results. Example: `identifier:=acme-corp` or `name:=General`.
|
|
410
|
+
* @param {*} [options] Override http request option.
|
|
411
|
+
* @throws {RequiredError}
|
|
412
|
+
*/
|
|
413
|
+
listTopics: (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 = {}) {
|
|
414
|
+
const localVarPath = `/v1/topics/`;
|
|
415
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
416
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
417
|
+
let baseOptions;
|
|
418
|
+
if (configuration) {
|
|
419
|
+
baseOptions = configuration.baseOptions;
|
|
420
|
+
}
|
|
421
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
422
|
+
const localVarHeaderParameter = {};
|
|
423
|
+
const localVarQueryParameter = {};
|
|
424
|
+
// authentication bearer_auth required
|
|
425
|
+
// http bearer authentication required
|
|
426
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
427
|
+
if (limit !== undefined) {
|
|
428
|
+
localVarQueryParameter['limit'] = limit;
|
|
429
|
+
}
|
|
430
|
+
if (offset !== undefined) {
|
|
431
|
+
localVarQueryParameter['offset'] = offset;
|
|
432
|
+
}
|
|
433
|
+
if (q !== undefined) {
|
|
434
|
+
localVarQueryParameter['q'] = q;
|
|
435
|
+
}
|
|
436
|
+
if (filterBy !== undefined) {
|
|
437
|
+
localVarQueryParameter['filter_by'] = filterBy;
|
|
438
|
+
}
|
|
439
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
440
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
441
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
442
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
443
|
+
return {
|
|
444
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
445
|
+
options: localVarRequestOptions,
|
|
446
|
+
};
|
|
447
|
+
}),
|
|
448
|
+
/**
|
|
449
|
+
*
|
|
450
|
+
* @summary POST /v1/topics/:topicKey/subscribers/removal
|
|
451
|
+
* @param {string} key Topic key
|
|
452
|
+
* @param {TopicSubscribers} topicSubscribers
|
|
453
|
+
* @param {*} [options] Override http request option.
|
|
454
|
+
* @throws {RequiredError}
|
|
455
|
+
*/
|
|
456
|
+
removeSubscribers: (key_1, topicSubscribers_1, ...args_1) => __awaiter(this, [key_1, topicSubscribers_1, ...args_1], void 0, function* (key, topicSubscribers, options = {}) {
|
|
457
|
+
// verify required parameter 'key' is not null or undefined
|
|
458
|
+
(0, common_1.assertParamExists)('removeSubscribers', 'key', key);
|
|
459
|
+
// verify required parameter 'topicSubscribers' is not null or undefined
|
|
460
|
+
(0, common_1.assertParamExists)('removeSubscribers', 'topicSubscribers', topicSubscribers);
|
|
461
|
+
const localVarPath = `/v1/topics/{key}/subscribers/removal/`
|
|
462
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
463
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
464
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
465
|
+
let baseOptions;
|
|
466
|
+
if (configuration) {
|
|
467
|
+
baseOptions = configuration.baseOptions;
|
|
468
|
+
}
|
|
469
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
470
|
+
const localVarHeaderParameter = {};
|
|
471
|
+
const localVarQueryParameter = {};
|
|
472
|
+
// authentication bearer_auth required
|
|
473
|
+
// http bearer authentication required
|
|
474
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
475
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
476
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
477
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
478
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
479
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(topicSubscribers, localVarRequestOptions, configuration);
|
|
480
|
+
return {
|
|
481
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
482
|
+
options: localVarRequestOptions,
|
|
483
|
+
};
|
|
484
|
+
}),
|
|
485
|
+
/**
|
|
486
|
+
*
|
|
487
|
+
* @summary PATCH /v1/topics/:key/subscriptions/:id — update subscription metadata
|
|
488
|
+
* @param {string} key
|
|
489
|
+
* @param {string} id
|
|
490
|
+
* @param {UpdateSubscriptionMeta} updateSubscriptionMeta
|
|
491
|
+
* @param {*} [options] Override http request option.
|
|
492
|
+
* @throws {RequiredError}
|
|
493
|
+
*/
|
|
494
|
+
updateSubscription: (key_1, id_1, updateSubscriptionMeta_1, ...args_1) => __awaiter(this, [key_1, id_1, updateSubscriptionMeta_1, ...args_1], void 0, function* (key, id, updateSubscriptionMeta, options = {}) {
|
|
495
|
+
// verify required parameter 'key' is not null or undefined
|
|
496
|
+
(0, common_1.assertParamExists)('updateSubscription', 'key', key);
|
|
497
|
+
// verify required parameter 'id' is not null or undefined
|
|
498
|
+
(0, common_1.assertParamExists)('updateSubscription', 'id', id);
|
|
499
|
+
// verify required parameter 'updateSubscriptionMeta' is not null or undefined
|
|
500
|
+
(0, common_1.assertParamExists)('updateSubscription', 'updateSubscriptionMeta', updateSubscriptionMeta);
|
|
501
|
+
const localVarPath = `/v1/topics/{key}/subscriptions/{id}/`
|
|
502
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)))
|
|
503
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
504
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
505
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
506
|
+
let baseOptions;
|
|
507
|
+
if (configuration) {
|
|
508
|
+
baseOptions = configuration.baseOptions;
|
|
509
|
+
}
|
|
510
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
511
|
+
const localVarHeaderParameter = {};
|
|
512
|
+
const localVarQueryParameter = {};
|
|
513
|
+
// authentication bearer_auth required
|
|
514
|
+
// http bearer authentication required
|
|
515
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
516
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
517
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
518
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
519
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
520
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
521
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSubscriptionMeta, localVarRequestOptions, configuration);
|
|
522
|
+
return {
|
|
523
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
524
|
+
options: localVarRequestOptions,
|
|
525
|
+
};
|
|
526
|
+
}),
|
|
527
|
+
/**
|
|
528
|
+
*
|
|
529
|
+
* @summary PATCH /v1/topics/:topicKey
|
|
530
|
+
* @param {string} key Topic key
|
|
531
|
+
* @param {UpdateTopic} updateTopic
|
|
532
|
+
* @param {*} [options] Override http request option.
|
|
533
|
+
* @throws {RequiredError}
|
|
534
|
+
*/
|
|
535
|
+
updateTopic: (key_1, updateTopic_1, ...args_1) => __awaiter(this, [key_1, updateTopic_1, ...args_1], void 0, function* (key, updateTopic, options = {}) {
|
|
536
|
+
// verify required parameter 'key' is not null or undefined
|
|
537
|
+
(0, common_1.assertParamExists)('updateTopic', 'key', key);
|
|
538
|
+
// verify required parameter 'updateTopic' is not null or undefined
|
|
539
|
+
(0, common_1.assertParamExists)('updateTopic', 'updateTopic', updateTopic);
|
|
540
|
+
const localVarPath = `/v1/topics/{key}/`
|
|
541
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
542
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
543
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
544
|
+
let baseOptions;
|
|
545
|
+
if (configuration) {
|
|
546
|
+
baseOptions = configuration.baseOptions;
|
|
547
|
+
}
|
|
548
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
549
|
+
const localVarHeaderParameter = {};
|
|
550
|
+
const localVarQueryParameter = {};
|
|
551
|
+
// authentication bearer_auth required
|
|
552
|
+
// http bearer authentication required
|
|
553
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
554
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
555
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
556
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
557
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
558
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
559
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateTopic, localVarRequestOptions, configuration);
|
|
560
|
+
return {
|
|
561
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
562
|
+
options: localVarRequestOptions,
|
|
563
|
+
};
|
|
564
|
+
}),
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
exports.TopicsApiAxiosParamCreator = TopicsApiAxiosParamCreator;
|
|
568
|
+
/**
|
|
569
|
+
* TopicsApi - functional programming interface
|
|
570
|
+
*/
|
|
571
|
+
const TopicsApiFp = function (configuration) {
|
|
572
|
+
const localVarAxiosParamCreator = (0, exports.TopicsApiAxiosParamCreator)(configuration);
|
|
573
|
+
return {
|
|
574
|
+
/**
|
|
575
|
+
*
|
|
576
|
+
* @summary POST /v1/topics/:topicKey/subscribers
|
|
577
|
+
* @param {string} key Topic key
|
|
578
|
+
* @param {TopicSubscribers} topicSubscribers
|
|
579
|
+
* @param {*} [options] Override http request option.
|
|
580
|
+
* @throws {RequiredError}
|
|
581
|
+
*/
|
|
582
|
+
addSubscribers(key, topicSubscribers, options) {
|
|
583
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
584
|
+
var _a, _b, _c;
|
|
585
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addSubscribers(key, topicSubscribers, options);
|
|
586
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
587
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.addSubscribers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
588
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
589
|
+
});
|
|
590
|
+
},
|
|
591
|
+
/**
|
|
592
|
+
*
|
|
593
|
+
* @summary GET /v1/topics/:key/subscribers/:subscriber_id — membership check
|
|
594
|
+
* @param {string} key
|
|
595
|
+
* @param {string} subscriberId
|
|
596
|
+
* @param {*} [options] Override http request option.
|
|
597
|
+
* @throws {RequiredError}
|
|
598
|
+
*/
|
|
599
|
+
checkSubscriber(key, subscriberId, options) {
|
|
600
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
601
|
+
var _a, _b, _c;
|
|
602
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkSubscriber(key, subscriberId, options);
|
|
603
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
604
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.checkSubscriber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
605
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
606
|
+
});
|
|
607
|
+
},
|
|
608
|
+
/**
|
|
609
|
+
*
|
|
610
|
+
* @summary POST /v1/topics/:key/subscriptions — create subscriptions
|
|
611
|
+
* @param {string} key
|
|
612
|
+
* @param {CreateSubscription} createSubscription
|
|
613
|
+
* @param {*} [options] Override http request option.
|
|
614
|
+
* @throws {RequiredError}
|
|
615
|
+
*/
|
|
616
|
+
createSubscriptions(key, createSubscription, options) {
|
|
617
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
618
|
+
var _a, _b, _c;
|
|
619
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptions(key, createSubscription, options);
|
|
620
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
621
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.createSubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
622
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
623
|
+
});
|
|
624
|
+
},
|
|
625
|
+
/**
|
|
626
|
+
*
|
|
627
|
+
* @summary POST /v1/topics
|
|
628
|
+
* @param {CreateTopic} createTopic
|
|
629
|
+
* @param {*} [options] Override http request option.
|
|
630
|
+
* @throws {RequiredError}
|
|
631
|
+
*/
|
|
632
|
+
createTopic(createTopic, options) {
|
|
633
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
634
|
+
var _a, _b, _c;
|
|
635
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createTopic(createTopic, options);
|
|
636
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
637
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.createTopic']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
638
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
639
|
+
});
|
|
640
|
+
},
|
|
641
|
+
/**
|
|
642
|
+
*
|
|
643
|
+
* @summary DELETE /v1/topics/:key/subscriptions — bulk delete
|
|
644
|
+
* @param {string} key
|
|
645
|
+
* @param {DeleteSubscription} deleteSubscription
|
|
646
|
+
* @param {*} [options] Override http request option.
|
|
647
|
+
* @throws {RequiredError}
|
|
648
|
+
*/
|
|
649
|
+
deleteSubscriptions(key, deleteSubscription, options) {
|
|
650
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
651
|
+
var _a, _b, _c;
|
|
652
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSubscriptions(key, deleteSubscription, options);
|
|
653
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
654
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.deleteSubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
655
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
656
|
+
});
|
|
657
|
+
},
|
|
658
|
+
/**
|
|
659
|
+
*
|
|
660
|
+
* @summary DELETE /v1/topics/:topicKey
|
|
661
|
+
* @param {string} key Topic key
|
|
662
|
+
* @param {*} [options] Override http request option.
|
|
663
|
+
* @throws {RequiredError}
|
|
664
|
+
*/
|
|
665
|
+
deleteTopic(key, options) {
|
|
666
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
667
|
+
var _a, _b, _c;
|
|
668
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteTopic(key, options);
|
|
669
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
670
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.deleteTopic']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
671
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
672
|
+
});
|
|
673
|
+
},
|
|
674
|
+
/**
|
|
675
|
+
*
|
|
676
|
+
* @summary GET /v1/topics/:key/subscriptions/:id — get single subscription
|
|
677
|
+
* @param {string} key
|
|
678
|
+
* @param {string} id
|
|
679
|
+
* @param {*} [options] Override http request option.
|
|
680
|
+
* @throws {RequiredError}
|
|
681
|
+
*/
|
|
682
|
+
getSubscription(key, id, options) {
|
|
683
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
684
|
+
var _a, _b, _c;
|
|
685
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSubscription(key, id, options);
|
|
686
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
687
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.getSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
688
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
689
|
+
});
|
|
690
|
+
},
|
|
691
|
+
/**
|
|
692
|
+
*
|
|
693
|
+
* @summary GET /v1/topics/:topicKey
|
|
694
|
+
* @param {string} key Topic key
|
|
695
|
+
* @param {*} [options] Override http request option.
|
|
696
|
+
* @throws {RequiredError}
|
|
697
|
+
*/
|
|
698
|
+
getTopic(key, options) {
|
|
699
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
700
|
+
var _a, _b, _c;
|
|
701
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTopic(key, options);
|
|
702
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
703
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.getTopic']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
704
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
705
|
+
});
|
|
706
|
+
},
|
|
707
|
+
/**
|
|
708
|
+
*
|
|
709
|
+
* @summary GET /v1/topics/:key/subscriptions — list subscriptions
|
|
710
|
+
* @param {string} key
|
|
711
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default: 10).
|
|
712
|
+
* @param {number | null} [offset] Number of items to skip before returning results (default: 0).
|
|
713
|
+
* @param {string | null} [q] Optional full-text search query. When present, listing is powered by Typesense full-text search.
|
|
714
|
+
* @param {string | null} [filterBy] Optional Typesense filter expression for narrowing results. Example: `identifier:=acme-corp` or `name:=General`.
|
|
715
|
+
* @param {*} [options] Override http request option.
|
|
716
|
+
* @throws {RequiredError}
|
|
717
|
+
*/
|
|
718
|
+
listSubscriptions(key, limit, offset, q, filterBy, options) {
|
|
719
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
720
|
+
var _a, _b, _c;
|
|
721
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSubscriptions(key, limit, offset, q, filterBy, options);
|
|
722
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
723
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.listSubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
724
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
725
|
+
});
|
|
726
|
+
},
|
|
727
|
+
/**
|
|
728
|
+
*
|
|
729
|
+
* @summary GET /v1/topics/:topicKey/subscribers
|
|
730
|
+
* @param {string} key Topic key
|
|
731
|
+
* @param {*} [options] Override http request option.
|
|
732
|
+
* @throws {RequiredError}
|
|
733
|
+
*/
|
|
734
|
+
listTopicSubscribers(key, options) {
|
|
735
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
736
|
+
var _a, _b, _c;
|
|
737
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listTopicSubscribers(key, options);
|
|
738
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
739
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.listTopicSubscribers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
740
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
741
|
+
});
|
|
742
|
+
},
|
|
743
|
+
/**
|
|
744
|
+
*
|
|
745
|
+
* @summary GET /v1/topics
|
|
746
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default: 10).
|
|
747
|
+
* @param {number | null} [offset] Number of items to skip before returning results (default: 0).
|
|
748
|
+
* @param {string | null} [q] Optional full-text search query. When present, listing is powered by Typesense full-text search.
|
|
749
|
+
* @param {string | null} [filterBy] Optional Typesense filter expression for narrowing results. Example: `identifier:=acme-corp` or `name:=General`.
|
|
750
|
+
* @param {*} [options] Override http request option.
|
|
751
|
+
* @throws {RequiredError}
|
|
752
|
+
*/
|
|
753
|
+
listTopics(limit, offset, q, filterBy, options) {
|
|
754
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
755
|
+
var _a, _b, _c;
|
|
756
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listTopics(limit, offset, q, filterBy, options);
|
|
757
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
758
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.listTopics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
759
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
760
|
+
});
|
|
761
|
+
},
|
|
762
|
+
/**
|
|
763
|
+
*
|
|
764
|
+
* @summary POST /v1/topics/:topicKey/subscribers/removal
|
|
765
|
+
* @param {string} key Topic key
|
|
766
|
+
* @param {TopicSubscribers} topicSubscribers
|
|
767
|
+
* @param {*} [options] Override http request option.
|
|
768
|
+
* @throws {RequiredError}
|
|
769
|
+
*/
|
|
770
|
+
removeSubscribers(key, topicSubscribers, options) {
|
|
771
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
772
|
+
var _a, _b, _c;
|
|
773
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeSubscribers(key, topicSubscribers, options);
|
|
774
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
775
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.removeSubscribers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
776
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
777
|
+
});
|
|
778
|
+
},
|
|
779
|
+
/**
|
|
780
|
+
*
|
|
781
|
+
* @summary PATCH /v1/topics/:key/subscriptions/:id — update subscription metadata
|
|
782
|
+
* @param {string} key
|
|
783
|
+
* @param {string} id
|
|
784
|
+
* @param {UpdateSubscriptionMeta} updateSubscriptionMeta
|
|
785
|
+
* @param {*} [options] Override http request option.
|
|
786
|
+
* @throws {RequiredError}
|
|
787
|
+
*/
|
|
788
|
+
updateSubscription(key, id, updateSubscriptionMeta, options) {
|
|
789
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
790
|
+
var _a, _b, _c;
|
|
791
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSubscription(key, id, updateSubscriptionMeta, options);
|
|
792
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
793
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.updateSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
794
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
795
|
+
});
|
|
796
|
+
},
|
|
797
|
+
/**
|
|
798
|
+
*
|
|
799
|
+
* @summary PATCH /v1/topics/:topicKey
|
|
800
|
+
* @param {string} key Topic key
|
|
801
|
+
* @param {UpdateTopic} updateTopic
|
|
802
|
+
* @param {*} [options] Override http request option.
|
|
803
|
+
* @throws {RequiredError}
|
|
804
|
+
*/
|
|
805
|
+
updateTopic(key, updateTopic, options) {
|
|
806
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
807
|
+
var _a, _b, _c;
|
|
808
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTopic(key, updateTopic, options);
|
|
809
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
810
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopicsApi.updateTopic']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
811
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
812
|
+
});
|
|
813
|
+
},
|
|
814
|
+
};
|
|
815
|
+
};
|
|
816
|
+
exports.TopicsApiFp = TopicsApiFp;
|
|
817
|
+
/**
|
|
818
|
+
* TopicsApi - factory interface
|
|
819
|
+
*/
|
|
820
|
+
const TopicsApiFactory = function (configuration, basePath, axios) {
|
|
821
|
+
const localVarFp = (0, exports.TopicsApiFp)(configuration);
|
|
822
|
+
return {
|
|
823
|
+
/**
|
|
824
|
+
*
|
|
825
|
+
* @summary POST /v1/topics/:topicKey/subscribers
|
|
826
|
+
* @param {string} key Topic key
|
|
827
|
+
* @param {TopicSubscribers} topicSubscribers
|
|
828
|
+
* @param {*} [options] Override http request option.
|
|
829
|
+
* @throws {RequiredError}
|
|
830
|
+
*/
|
|
831
|
+
addSubscribers(key, topicSubscribers, options) {
|
|
832
|
+
return localVarFp.addSubscribers(key, topicSubscribers, options).then((request) => request(axios, basePath));
|
|
833
|
+
},
|
|
834
|
+
/**
|
|
835
|
+
*
|
|
836
|
+
* @summary GET /v1/topics/:key/subscribers/:subscriber_id — membership check
|
|
837
|
+
* @param {string} key
|
|
838
|
+
* @param {string} subscriberId
|
|
839
|
+
* @param {*} [options] Override http request option.
|
|
840
|
+
* @throws {RequiredError}
|
|
841
|
+
*/
|
|
842
|
+
checkSubscriber(key, subscriberId, options) {
|
|
843
|
+
return localVarFp.checkSubscriber(key, subscriberId, options).then((request) => request(axios, basePath));
|
|
844
|
+
},
|
|
845
|
+
/**
|
|
846
|
+
*
|
|
847
|
+
* @summary POST /v1/topics/:key/subscriptions — create subscriptions
|
|
848
|
+
* @param {string} key
|
|
849
|
+
* @param {CreateSubscription} createSubscription
|
|
850
|
+
* @param {*} [options] Override http request option.
|
|
851
|
+
* @throws {RequiredError}
|
|
852
|
+
*/
|
|
853
|
+
createSubscriptions(key, createSubscription, options) {
|
|
854
|
+
return localVarFp.createSubscriptions(key, createSubscription, options).then((request) => request(axios, basePath));
|
|
855
|
+
},
|
|
856
|
+
/**
|
|
857
|
+
*
|
|
858
|
+
* @summary POST /v1/topics
|
|
859
|
+
* @param {CreateTopic} createTopic
|
|
860
|
+
* @param {*} [options] Override http request option.
|
|
861
|
+
* @throws {RequiredError}
|
|
862
|
+
*/
|
|
863
|
+
createTopic(createTopic, options) {
|
|
864
|
+
return localVarFp.createTopic(createTopic, options).then((request) => request(axios, basePath));
|
|
865
|
+
},
|
|
866
|
+
/**
|
|
867
|
+
*
|
|
868
|
+
* @summary DELETE /v1/topics/:key/subscriptions — bulk delete
|
|
869
|
+
* @param {string} key
|
|
870
|
+
* @param {DeleteSubscription} deleteSubscription
|
|
871
|
+
* @param {*} [options] Override http request option.
|
|
872
|
+
* @throws {RequiredError}
|
|
873
|
+
*/
|
|
874
|
+
deleteSubscriptions(key, deleteSubscription, options) {
|
|
875
|
+
return localVarFp.deleteSubscriptions(key, deleteSubscription, options).then((request) => request(axios, basePath));
|
|
876
|
+
},
|
|
877
|
+
/**
|
|
878
|
+
*
|
|
879
|
+
* @summary DELETE /v1/topics/:topicKey
|
|
880
|
+
* @param {string} key Topic key
|
|
881
|
+
* @param {*} [options] Override http request option.
|
|
882
|
+
* @throws {RequiredError}
|
|
883
|
+
*/
|
|
884
|
+
deleteTopic(key, options) {
|
|
885
|
+
return localVarFp.deleteTopic(key, options).then((request) => request(axios, basePath));
|
|
886
|
+
},
|
|
887
|
+
/**
|
|
888
|
+
*
|
|
889
|
+
* @summary GET /v1/topics/:key/subscriptions/:id — get single subscription
|
|
890
|
+
* @param {string} key
|
|
891
|
+
* @param {string} id
|
|
892
|
+
* @param {*} [options] Override http request option.
|
|
893
|
+
* @throws {RequiredError}
|
|
894
|
+
*/
|
|
895
|
+
getSubscription(key, id, options) {
|
|
896
|
+
return localVarFp.getSubscription(key, id, options).then((request) => request(axios, basePath));
|
|
897
|
+
},
|
|
898
|
+
/**
|
|
899
|
+
*
|
|
900
|
+
* @summary GET /v1/topics/:topicKey
|
|
901
|
+
* @param {string} key Topic key
|
|
902
|
+
* @param {*} [options] Override http request option.
|
|
903
|
+
* @throws {RequiredError}
|
|
904
|
+
*/
|
|
905
|
+
getTopic(key, options) {
|
|
906
|
+
return localVarFp.getTopic(key, options).then((request) => request(axios, basePath));
|
|
907
|
+
},
|
|
908
|
+
/**
|
|
909
|
+
*
|
|
910
|
+
* @summary GET /v1/topics/:key/subscriptions — list subscriptions
|
|
911
|
+
* @param {string} key
|
|
912
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default: 10).
|
|
913
|
+
* @param {number | null} [offset] Number of items to skip before returning results (default: 0).
|
|
914
|
+
* @param {string | null} [q] Optional full-text search query. When present, listing is powered by Typesense full-text search.
|
|
915
|
+
* @param {string | null} [filterBy] Optional Typesense filter expression for narrowing results. Example: `identifier:=acme-corp` or `name:=General`.
|
|
916
|
+
* @param {*} [options] Override http request option.
|
|
917
|
+
* @throws {RequiredError}
|
|
918
|
+
*/
|
|
919
|
+
listSubscriptions(key, limit, offset, q, filterBy, options) {
|
|
920
|
+
return localVarFp.listSubscriptions(key, limit, offset, q, filterBy, options).then((request) => request(axios, basePath));
|
|
921
|
+
},
|
|
922
|
+
/**
|
|
923
|
+
*
|
|
924
|
+
* @summary GET /v1/topics/:topicKey/subscribers
|
|
925
|
+
* @param {string} key Topic key
|
|
926
|
+
* @param {*} [options] Override http request option.
|
|
927
|
+
* @throws {RequiredError}
|
|
928
|
+
*/
|
|
929
|
+
listTopicSubscribers(key, options) {
|
|
930
|
+
return localVarFp.listTopicSubscribers(key, options).then((request) => request(axios, basePath));
|
|
931
|
+
},
|
|
932
|
+
/**
|
|
933
|
+
*
|
|
934
|
+
* @summary GET /v1/topics
|
|
935
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default: 10).
|
|
936
|
+
* @param {number | null} [offset] Number of items to skip before returning results (default: 0).
|
|
937
|
+
* @param {string | null} [q] Optional full-text search query. When present, listing is powered by Typesense full-text search.
|
|
938
|
+
* @param {string | null} [filterBy] Optional Typesense filter expression for narrowing results. Example: `identifier:=acme-corp` or `name:=General`.
|
|
939
|
+
* @param {*} [options] Override http request option.
|
|
940
|
+
* @throws {RequiredError}
|
|
941
|
+
*/
|
|
942
|
+
listTopics(limit, offset, q, filterBy, options) {
|
|
943
|
+
return localVarFp.listTopics(limit, offset, q, filterBy, options).then((request) => request(axios, basePath));
|
|
944
|
+
},
|
|
945
|
+
/**
|
|
946
|
+
*
|
|
947
|
+
* @summary POST /v1/topics/:topicKey/subscribers/removal
|
|
948
|
+
* @param {string} key Topic key
|
|
949
|
+
* @param {TopicSubscribers} topicSubscribers
|
|
950
|
+
* @param {*} [options] Override http request option.
|
|
951
|
+
* @throws {RequiredError}
|
|
952
|
+
*/
|
|
953
|
+
removeSubscribers(key, topicSubscribers, options) {
|
|
954
|
+
return localVarFp.removeSubscribers(key, topicSubscribers, options).then((request) => request(axios, basePath));
|
|
955
|
+
},
|
|
956
|
+
/**
|
|
957
|
+
*
|
|
958
|
+
* @summary PATCH /v1/topics/:key/subscriptions/:id — update subscription metadata
|
|
959
|
+
* @param {string} key
|
|
960
|
+
* @param {string} id
|
|
961
|
+
* @param {UpdateSubscriptionMeta} updateSubscriptionMeta
|
|
962
|
+
* @param {*} [options] Override http request option.
|
|
963
|
+
* @throws {RequiredError}
|
|
964
|
+
*/
|
|
965
|
+
updateSubscription(key, id, updateSubscriptionMeta, options) {
|
|
966
|
+
return localVarFp.updateSubscription(key, id, updateSubscriptionMeta, options).then((request) => request(axios, basePath));
|
|
967
|
+
},
|
|
968
|
+
/**
|
|
969
|
+
*
|
|
970
|
+
* @summary PATCH /v1/topics/:topicKey
|
|
971
|
+
* @param {string} key Topic key
|
|
972
|
+
* @param {UpdateTopic} updateTopic
|
|
973
|
+
* @param {*} [options] Override http request option.
|
|
974
|
+
* @throws {RequiredError}
|
|
975
|
+
*/
|
|
976
|
+
updateTopic(key, updateTopic, options) {
|
|
977
|
+
return localVarFp.updateTopic(key, updateTopic, options).then((request) => request(axios, basePath));
|
|
978
|
+
},
|
|
979
|
+
};
|
|
980
|
+
};
|
|
981
|
+
exports.TopicsApiFactory = TopicsApiFactory;
|
|
982
|
+
/**
|
|
983
|
+
* TopicsApi - object-oriented interface
|
|
984
|
+
*/
|
|
985
|
+
class TopicsApi extends base_1.BaseAPI {
|
|
986
|
+
/**
|
|
987
|
+
*
|
|
988
|
+
* @summary POST /v1/topics/:topicKey/subscribers
|
|
989
|
+
* @param {string} key Topic key
|
|
990
|
+
* @param {TopicSubscribers} topicSubscribers
|
|
991
|
+
* @param {*} [options] Override http request option.
|
|
992
|
+
* @throws {RequiredError}
|
|
993
|
+
*/
|
|
994
|
+
addSubscribers(key, topicSubscribers, options) {
|
|
995
|
+
return (0, exports.TopicsApiFp)(this.configuration).addSubscribers(key, topicSubscribers, options).then((request) => request(this.axios, this.basePath));
|
|
996
|
+
}
|
|
997
|
+
/**
|
|
998
|
+
*
|
|
999
|
+
* @summary GET /v1/topics/:key/subscribers/:subscriber_id — membership check
|
|
1000
|
+
* @param {string} key
|
|
1001
|
+
* @param {string} subscriberId
|
|
1002
|
+
* @param {*} [options] Override http request option.
|
|
1003
|
+
* @throws {RequiredError}
|
|
1004
|
+
*/
|
|
1005
|
+
checkSubscriber(key, subscriberId, options) {
|
|
1006
|
+
return (0, exports.TopicsApiFp)(this.configuration).checkSubscriber(key, subscriberId, options).then((request) => request(this.axios, this.basePath));
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
*
|
|
1010
|
+
* @summary POST /v1/topics/:key/subscriptions — create subscriptions
|
|
1011
|
+
* @param {string} key
|
|
1012
|
+
* @param {CreateSubscription} createSubscription
|
|
1013
|
+
* @param {*} [options] Override http request option.
|
|
1014
|
+
* @throws {RequiredError}
|
|
1015
|
+
*/
|
|
1016
|
+
createSubscriptions(key, createSubscription, options) {
|
|
1017
|
+
return (0, exports.TopicsApiFp)(this.configuration).createSubscriptions(key, createSubscription, options).then((request) => request(this.axios, this.basePath));
|
|
1018
|
+
}
|
|
1019
|
+
/**
|
|
1020
|
+
*
|
|
1021
|
+
* @summary POST /v1/topics
|
|
1022
|
+
* @param {CreateTopic} createTopic
|
|
1023
|
+
* @param {*} [options] Override http request option.
|
|
1024
|
+
* @throws {RequiredError}
|
|
1025
|
+
*/
|
|
1026
|
+
createTopic(createTopic, options) {
|
|
1027
|
+
return (0, exports.TopicsApiFp)(this.configuration).createTopic(createTopic, options).then((request) => request(this.axios, this.basePath));
|
|
1028
|
+
}
|
|
1029
|
+
/**
|
|
1030
|
+
*
|
|
1031
|
+
* @summary DELETE /v1/topics/:key/subscriptions — bulk delete
|
|
1032
|
+
* @param {string} key
|
|
1033
|
+
* @param {DeleteSubscription} deleteSubscription
|
|
1034
|
+
* @param {*} [options] Override http request option.
|
|
1035
|
+
* @throws {RequiredError}
|
|
1036
|
+
*/
|
|
1037
|
+
deleteSubscriptions(key, deleteSubscription, options) {
|
|
1038
|
+
return (0, exports.TopicsApiFp)(this.configuration).deleteSubscriptions(key, deleteSubscription, options).then((request) => request(this.axios, this.basePath));
|
|
1039
|
+
}
|
|
1040
|
+
/**
|
|
1041
|
+
*
|
|
1042
|
+
* @summary DELETE /v1/topics/:topicKey
|
|
1043
|
+
* @param {string} key Topic key
|
|
1044
|
+
* @param {*} [options] Override http request option.
|
|
1045
|
+
* @throws {RequiredError}
|
|
1046
|
+
*/
|
|
1047
|
+
deleteTopic(key, options) {
|
|
1048
|
+
return (0, exports.TopicsApiFp)(this.configuration).deleteTopic(key, options).then((request) => request(this.axios, this.basePath));
|
|
1049
|
+
}
|
|
1050
|
+
/**
|
|
1051
|
+
*
|
|
1052
|
+
* @summary GET /v1/topics/:key/subscriptions/:id — get single subscription
|
|
1053
|
+
* @param {string} key
|
|
1054
|
+
* @param {string} id
|
|
1055
|
+
* @param {*} [options] Override http request option.
|
|
1056
|
+
* @throws {RequiredError}
|
|
1057
|
+
*/
|
|
1058
|
+
getSubscription(key, id, options) {
|
|
1059
|
+
return (0, exports.TopicsApiFp)(this.configuration).getSubscription(key, id, options).then((request) => request(this.axios, this.basePath));
|
|
1060
|
+
}
|
|
1061
|
+
/**
|
|
1062
|
+
*
|
|
1063
|
+
* @summary GET /v1/topics/:topicKey
|
|
1064
|
+
* @param {string} key Topic key
|
|
1065
|
+
* @param {*} [options] Override http request option.
|
|
1066
|
+
* @throws {RequiredError}
|
|
1067
|
+
*/
|
|
1068
|
+
getTopic(key, options) {
|
|
1069
|
+
return (0, exports.TopicsApiFp)(this.configuration).getTopic(key, options).then((request) => request(this.axios, this.basePath));
|
|
1070
|
+
}
|
|
1071
|
+
/**
|
|
1072
|
+
*
|
|
1073
|
+
* @summary GET /v1/topics/:key/subscriptions — list subscriptions
|
|
1074
|
+
* @param {string} key
|
|
1075
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default: 10).
|
|
1076
|
+
* @param {number | null} [offset] Number of items to skip before returning results (default: 0).
|
|
1077
|
+
* @param {string | null} [q] Optional full-text search query. When present, listing is powered by Typesense full-text search.
|
|
1078
|
+
* @param {string | null} [filterBy] Optional Typesense filter expression for narrowing results. Example: `identifier:=acme-corp` or `name:=General`.
|
|
1079
|
+
* @param {*} [options] Override http request option.
|
|
1080
|
+
* @throws {RequiredError}
|
|
1081
|
+
*/
|
|
1082
|
+
listSubscriptions(key, limit, offset, q, filterBy, options) {
|
|
1083
|
+
return (0, exports.TopicsApiFp)(this.configuration).listSubscriptions(key, limit, offset, q, filterBy, options).then((request) => request(this.axios, this.basePath));
|
|
1084
|
+
}
|
|
1085
|
+
/**
|
|
1086
|
+
*
|
|
1087
|
+
* @summary GET /v1/topics/:topicKey/subscribers
|
|
1088
|
+
* @param {string} key Topic key
|
|
1089
|
+
* @param {*} [options] Override http request option.
|
|
1090
|
+
* @throws {RequiredError}
|
|
1091
|
+
*/
|
|
1092
|
+
listTopicSubscribers(key, options) {
|
|
1093
|
+
return (0, exports.TopicsApiFp)(this.configuration).listTopicSubscribers(key, options).then((request) => request(this.axios, this.basePath));
|
|
1094
|
+
}
|
|
1095
|
+
/**
|
|
1096
|
+
*
|
|
1097
|
+
* @summary GET /v1/topics
|
|
1098
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default: 10).
|
|
1099
|
+
* @param {number | null} [offset] Number of items to skip before returning results (default: 0).
|
|
1100
|
+
* @param {string | null} [q] Optional full-text search query. When present, listing is powered by Typesense full-text search.
|
|
1101
|
+
* @param {string | null} [filterBy] Optional Typesense filter expression for narrowing results. Example: `identifier:=acme-corp` or `name:=General`.
|
|
1102
|
+
* @param {*} [options] Override http request option.
|
|
1103
|
+
* @throws {RequiredError}
|
|
1104
|
+
*/
|
|
1105
|
+
listTopics(limit, offset, q, filterBy, options) {
|
|
1106
|
+
return (0, exports.TopicsApiFp)(this.configuration).listTopics(limit, offset, q, filterBy, options).then((request) => request(this.axios, this.basePath));
|
|
1107
|
+
}
|
|
1108
|
+
/**
|
|
1109
|
+
*
|
|
1110
|
+
* @summary POST /v1/topics/:topicKey/subscribers/removal
|
|
1111
|
+
* @param {string} key Topic key
|
|
1112
|
+
* @param {TopicSubscribers} topicSubscribers
|
|
1113
|
+
* @param {*} [options] Override http request option.
|
|
1114
|
+
* @throws {RequiredError}
|
|
1115
|
+
*/
|
|
1116
|
+
removeSubscribers(key, topicSubscribers, options) {
|
|
1117
|
+
return (0, exports.TopicsApiFp)(this.configuration).removeSubscribers(key, topicSubscribers, options).then((request) => request(this.axios, this.basePath));
|
|
1118
|
+
}
|
|
1119
|
+
/**
|
|
1120
|
+
*
|
|
1121
|
+
* @summary PATCH /v1/topics/:key/subscriptions/:id — update subscription metadata
|
|
1122
|
+
* @param {string} key
|
|
1123
|
+
* @param {string} id
|
|
1124
|
+
* @param {UpdateSubscriptionMeta} updateSubscriptionMeta
|
|
1125
|
+
* @param {*} [options] Override http request option.
|
|
1126
|
+
* @throws {RequiredError}
|
|
1127
|
+
*/
|
|
1128
|
+
updateSubscription(key, id, updateSubscriptionMeta, options) {
|
|
1129
|
+
return (0, exports.TopicsApiFp)(this.configuration).updateSubscription(key, id, updateSubscriptionMeta, options).then((request) => request(this.axios, this.basePath));
|
|
1130
|
+
}
|
|
1131
|
+
/**
|
|
1132
|
+
*
|
|
1133
|
+
* @summary PATCH /v1/topics/:topicKey
|
|
1134
|
+
* @param {string} key Topic key
|
|
1135
|
+
* @param {UpdateTopic} updateTopic
|
|
1136
|
+
* @param {*} [options] Override http request option.
|
|
1137
|
+
* @throws {RequiredError}
|
|
1138
|
+
*/
|
|
1139
|
+
updateTopic(key, updateTopic, options) {
|
|
1140
|
+
return (0, exports.TopicsApiFp)(this.configuration).updateTopic(key, updateTopic, options).then((request) => request(this.axios, this.basePath));
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
exports.TopicsApi = TopicsApi;
|