@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,969 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* enbbox API
|
|
5
|
+
* Notification infrastructure API — open-source alternative to Novu/Courier
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
|
+
/**
|
|
30
|
+
* InboxApi - axios parameter creator
|
|
31
|
+
*/
|
|
32
|
+
export const InboxApiAxiosParamCreator = function (configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @summary POST /v1/inbox/notifications/:id/archive
|
|
37
|
+
* @param {string} id Notification ID
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
archive: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
42
|
+
// verify required parameter 'id' is not null or undefined
|
|
43
|
+
assertParamExists('archive', 'id', id);
|
|
44
|
+
const localVarPath = `/v1/inbox/notifications/{id}/archive/`
|
|
45
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
46
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48
|
+
let baseOptions;
|
|
49
|
+
if (configuration) {
|
|
50
|
+
baseOptions = configuration.baseOptions;
|
|
51
|
+
}
|
|
52
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
53
|
+
const localVarHeaderParameter = {};
|
|
54
|
+
const localVarQueryParameter = {};
|
|
55
|
+
// authentication bearer_auth required
|
|
56
|
+
// http bearer authentication required
|
|
57
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
58
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
59
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
60
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
61
|
+
return {
|
|
62
|
+
url: toPathString(localVarUrlObj),
|
|
63
|
+
options: localVarRequestOptions,
|
|
64
|
+
};
|
|
65
|
+
}),
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @summary POST /v1/inbox/notifications/archive (archive all)
|
|
69
|
+
* @param {*} [options] Override http request option.
|
|
70
|
+
* @throws {RequiredError}
|
|
71
|
+
*/
|
|
72
|
+
archiveAll: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
73
|
+
const localVarPath = `/v1/inbox/notifications/archive/`;
|
|
74
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
75
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
76
|
+
let baseOptions;
|
|
77
|
+
if (configuration) {
|
|
78
|
+
baseOptions = configuration.baseOptions;
|
|
79
|
+
}
|
|
80
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
81
|
+
const localVarHeaderParameter = {};
|
|
82
|
+
const localVarQueryParameter = {};
|
|
83
|
+
// authentication bearer_auth required
|
|
84
|
+
// http bearer authentication required
|
|
85
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
86
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
87
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
88
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
89
|
+
return {
|
|
90
|
+
url: toPathString(localVarUrlObj),
|
|
91
|
+
options: localVarRequestOptions,
|
|
92
|
+
};
|
|
93
|
+
}),
|
|
94
|
+
/**
|
|
95
|
+
* Execute an action on a notification (e.g. primary/secondary button click). Sets the action result on the message and optionally publishes an SSE event.
|
|
96
|
+
* @summary POST /v1/inbox/notifications/:id/actions/:actionType
|
|
97
|
+
* @param {string} id Notification ID
|
|
98
|
+
* @param {string} actionType Action type
|
|
99
|
+
* @param {ActionBody} actionBody
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
executeAction: (id_1, actionType_1, actionBody_1, ...args_1) => __awaiter(this, [id_1, actionType_1, actionBody_1, ...args_1], void 0, function* (id, actionType, actionBody, options = {}) {
|
|
104
|
+
// verify required parameter 'id' is not null or undefined
|
|
105
|
+
assertParamExists('executeAction', 'id', id);
|
|
106
|
+
// verify required parameter 'actionType' is not null or undefined
|
|
107
|
+
assertParamExists('executeAction', 'actionType', actionType);
|
|
108
|
+
// verify required parameter 'actionBody' is not null or undefined
|
|
109
|
+
assertParamExists('executeAction', 'actionBody', actionBody);
|
|
110
|
+
const localVarPath = `/v1/inbox/notifications/{id}/actions/{action_type}/`
|
|
111
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
112
|
+
.replace(`{${"action_type"}}`, encodeURIComponent(String(actionType)));
|
|
113
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
114
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
115
|
+
let baseOptions;
|
|
116
|
+
if (configuration) {
|
|
117
|
+
baseOptions = configuration.baseOptions;
|
|
118
|
+
}
|
|
119
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
120
|
+
const localVarHeaderParameter = {};
|
|
121
|
+
const localVarQueryParameter = {};
|
|
122
|
+
// authentication bearer_auth required
|
|
123
|
+
// http bearer authentication required
|
|
124
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
125
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
126
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
127
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
128
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
129
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
130
|
+
localVarRequestOptions.data = serializeDataIfNeeded(actionBody, localVarRequestOptions, configuration);
|
|
131
|
+
return {
|
|
132
|
+
url: toPathString(localVarUrlObj),
|
|
133
|
+
options: localVarRequestOptions,
|
|
134
|
+
};
|
|
135
|
+
}),
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @summary GET /v1/inbox/preferences
|
|
139
|
+
* @param {*} [options] Override http request option.
|
|
140
|
+
* @throws {RequiredError}
|
|
141
|
+
*/
|
|
142
|
+
getInboxPreferences: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
143
|
+
const localVarPath = `/v1/inbox/preferences/`;
|
|
144
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
145
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
146
|
+
let baseOptions;
|
|
147
|
+
if (configuration) {
|
|
148
|
+
baseOptions = configuration.baseOptions;
|
|
149
|
+
}
|
|
150
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
151
|
+
const localVarHeaderParameter = {};
|
|
152
|
+
const localVarQueryParameter = {};
|
|
153
|
+
// authentication bearer_auth required
|
|
154
|
+
// http bearer authentication required
|
|
155
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
156
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
157
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
158
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
159
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
160
|
+
return {
|
|
161
|
+
url: toPathString(localVarUrlObj),
|
|
162
|
+
options: localVarRequestOptions,
|
|
163
|
+
};
|
|
164
|
+
}),
|
|
165
|
+
/**
|
|
166
|
+
* Content negotiation: - `Accept: application/json` (default) → paginated JSON list - `Accept: text/event-stream` → SSE real-time stream (authenticated via subscriber JWT)
|
|
167
|
+
* @summary GET /v1/inbox/notifications/
|
|
168
|
+
* @param {number | null} [limit]
|
|
169
|
+
* @param {string | null} [after]
|
|
170
|
+
* @param {boolean | null} [read]
|
|
171
|
+
* @param {boolean | null} [archived]
|
|
172
|
+
* @param {*} [options] Override http request option.
|
|
173
|
+
* @throws {RequiredError}
|
|
174
|
+
*/
|
|
175
|
+
inboxListNotifications: (limit_1, after_1, read_1, archived_1, ...args_1) => __awaiter(this, [limit_1, after_1, read_1, archived_1, ...args_1], void 0, function* (limit, after, read, archived, options = {}) {
|
|
176
|
+
const localVarPath = `/v1/inbox/notifications/`;
|
|
177
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
178
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
179
|
+
let baseOptions;
|
|
180
|
+
if (configuration) {
|
|
181
|
+
baseOptions = configuration.baseOptions;
|
|
182
|
+
}
|
|
183
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
184
|
+
const localVarHeaderParameter = {};
|
|
185
|
+
const localVarQueryParameter = {};
|
|
186
|
+
// authentication bearer_auth required
|
|
187
|
+
// http bearer authentication required
|
|
188
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
189
|
+
if (limit !== undefined) {
|
|
190
|
+
localVarQueryParameter['limit'] = limit;
|
|
191
|
+
}
|
|
192
|
+
if (after !== undefined) {
|
|
193
|
+
localVarQueryParameter['after'] = after;
|
|
194
|
+
}
|
|
195
|
+
if (read !== undefined) {
|
|
196
|
+
localVarQueryParameter['read'] = read;
|
|
197
|
+
}
|
|
198
|
+
if (archived !== undefined) {
|
|
199
|
+
localVarQueryParameter['archived'] = archived;
|
|
200
|
+
}
|
|
201
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
202
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
203
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
204
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
205
|
+
return {
|
|
206
|
+
url: toPathString(localVarUrlObj),
|
|
207
|
+
options: localVarRequestOptions,
|
|
208
|
+
};
|
|
209
|
+
}),
|
|
210
|
+
/**
|
|
211
|
+
* Unauthenticated endpoint — this is the initial handshake for SDK subscribers. Project ID is provided via the `X-Project-Id` header (same as all project-aware endpoints). Validates the project, optionally verifies HMAC subscriber hash, auto-creates the subscriber if needed, and returns a short-lived JWT.
|
|
212
|
+
* @summary POST /v1/inbox/session/
|
|
213
|
+
* @param {string} xProjectId Project UUID
|
|
214
|
+
* @param {InitSessionRequest} initSessionRequest
|
|
215
|
+
* @param {*} [options] Override http request option.
|
|
216
|
+
* @throws {RequiredError}
|
|
217
|
+
*/
|
|
218
|
+
initInboxSession: (xProjectId_1, initSessionRequest_1, ...args_1) => __awaiter(this, [xProjectId_1, initSessionRequest_1, ...args_1], void 0, function* (xProjectId, initSessionRequest, options = {}) {
|
|
219
|
+
// verify required parameter 'xProjectId' is not null or undefined
|
|
220
|
+
assertParamExists('initInboxSession', 'xProjectId', xProjectId);
|
|
221
|
+
// verify required parameter 'initSessionRequest' is not null or undefined
|
|
222
|
+
assertParamExists('initInboxSession', 'initSessionRequest', initSessionRequest);
|
|
223
|
+
const localVarPath = `/v1/inbox/session/`;
|
|
224
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
225
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
226
|
+
let baseOptions;
|
|
227
|
+
if (configuration) {
|
|
228
|
+
baseOptions = configuration.baseOptions;
|
|
229
|
+
}
|
|
230
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
231
|
+
const localVarHeaderParameter = {};
|
|
232
|
+
const localVarQueryParameter = {};
|
|
233
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
234
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
235
|
+
if (xProjectId != null) {
|
|
236
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
237
|
+
}
|
|
238
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
239
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
240
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
241
|
+
localVarRequestOptions.data = serializeDataIfNeeded(initSessionRequest, localVarRequestOptions, configuration);
|
|
242
|
+
return {
|
|
243
|
+
url: toPathString(localVarUrlObj),
|
|
244
|
+
options: localVarRequestOptions,
|
|
245
|
+
};
|
|
246
|
+
}),
|
|
247
|
+
/**
|
|
248
|
+
*
|
|
249
|
+
* @summary POST /v1/inbox/notifications/read (mark all as read)
|
|
250
|
+
* @param {*} [options] Override http request option.
|
|
251
|
+
* @throws {RequiredError}
|
|
252
|
+
*/
|
|
253
|
+
markAllRead: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
254
|
+
const localVarPath = `/v1/inbox/notifications/read/`;
|
|
255
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
256
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
257
|
+
let baseOptions;
|
|
258
|
+
if (configuration) {
|
|
259
|
+
baseOptions = configuration.baseOptions;
|
|
260
|
+
}
|
|
261
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
262
|
+
const localVarHeaderParameter = {};
|
|
263
|
+
const localVarQueryParameter = {};
|
|
264
|
+
// authentication bearer_auth required
|
|
265
|
+
// http bearer authentication required
|
|
266
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
267
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
268
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
269
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
270
|
+
return {
|
|
271
|
+
url: toPathString(localVarUrlObj),
|
|
272
|
+
options: localVarRequestOptions,
|
|
273
|
+
};
|
|
274
|
+
}),
|
|
275
|
+
/**
|
|
276
|
+
*
|
|
277
|
+
* @summary POST /v1/inbox/notifications/:id/read
|
|
278
|
+
* @param {string} id Notification ID
|
|
279
|
+
* @param {*} [options] Override http request option.
|
|
280
|
+
* @throws {RequiredError}
|
|
281
|
+
*/
|
|
282
|
+
markRead: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
283
|
+
// verify required parameter 'id' is not null or undefined
|
|
284
|
+
assertParamExists('markRead', 'id', id);
|
|
285
|
+
const localVarPath = `/v1/inbox/notifications/{id}/read/`
|
|
286
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
287
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
288
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
289
|
+
let baseOptions;
|
|
290
|
+
if (configuration) {
|
|
291
|
+
baseOptions = configuration.baseOptions;
|
|
292
|
+
}
|
|
293
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
294
|
+
const localVarHeaderParameter = {};
|
|
295
|
+
const localVarQueryParameter = {};
|
|
296
|
+
// authentication bearer_auth required
|
|
297
|
+
// http bearer authentication required
|
|
298
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
299
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
300
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
301
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
302
|
+
return {
|
|
303
|
+
url: toPathString(localVarUrlObj),
|
|
304
|
+
options: localVarRequestOptions,
|
|
305
|
+
};
|
|
306
|
+
}),
|
|
307
|
+
/**
|
|
308
|
+
*
|
|
309
|
+
* @summary POST /v1/inbox/notifications/:id/unread
|
|
310
|
+
* @param {string} id Notification ID
|
|
311
|
+
* @param {*} [options] Override http request option.
|
|
312
|
+
* @throws {RequiredError}
|
|
313
|
+
*/
|
|
314
|
+
markUnread: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
315
|
+
// verify required parameter 'id' is not null or undefined
|
|
316
|
+
assertParamExists('markUnread', 'id', id);
|
|
317
|
+
const localVarPath = `/v1/inbox/notifications/{id}/unread/`
|
|
318
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
319
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
320
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
321
|
+
let baseOptions;
|
|
322
|
+
if (configuration) {
|
|
323
|
+
baseOptions = configuration.baseOptions;
|
|
324
|
+
}
|
|
325
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
326
|
+
const localVarHeaderParameter = {};
|
|
327
|
+
const localVarQueryParameter = {};
|
|
328
|
+
// authentication bearer_auth required
|
|
329
|
+
// http bearer authentication required
|
|
330
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
331
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
332
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
333
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
334
|
+
return {
|
|
335
|
+
url: toPathString(localVarUrlObj),
|
|
336
|
+
options: localVarRequestOptions,
|
|
337
|
+
};
|
|
338
|
+
}),
|
|
339
|
+
/**
|
|
340
|
+
*
|
|
341
|
+
* @summary GET /v1/inbox/notifications/count
|
|
342
|
+
* @param {*} [options] Override http request option.
|
|
343
|
+
* @throws {RequiredError}
|
|
344
|
+
*/
|
|
345
|
+
notificationCount: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
346
|
+
const localVarPath = `/v1/inbox/notifications/count/`;
|
|
347
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
348
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
349
|
+
let baseOptions;
|
|
350
|
+
if (configuration) {
|
|
351
|
+
baseOptions = configuration.baseOptions;
|
|
352
|
+
}
|
|
353
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
354
|
+
const localVarHeaderParameter = {};
|
|
355
|
+
const localVarQueryParameter = {};
|
|
356
|
+
// authentication bearer_auth required
|
|
357
|
+
// http bearer authentication required
|
|
358
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
359
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
360
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
361
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
362
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
363
|
+
return {
|
|
364
|
+
url: toPathString(localVarUrlObj),
|
|
365
|
+
options: localVarRequestOptions,
|
|
366
|
+
};
|
|
367
|
+
}),
|
|
368
|
+
/**
|
|
369
|
+
*
|
|
370
|
+
* @summary POST /v1/inbox/notifications/:id/unarchive
|
|
371
|
+
* @param {string} id Notification ID
|
|
372
|
+
* @param {*} [options] Override http request option.
|
|
373
|
+
* @throws {RequiredError}
|
|
374
|
+
*/
|
|
375
|
+
unarchive: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
376
|
+
// verify required parameter 'id' is not null or undefined
|
|
377
|
+
assertParamExists('unarchive', 'id', id);
|
|
378
|
+
const localVarPath = `/v1/inbox/notifications/{id}/unarchive/`
|
|
379
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
380
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
381
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
382
|
+
let baseOptions;
|
|
383
|
+
if (configuration) {
|
|
384
|
+
baseOptions = configuration.baseOptions;
|
|
385
|
+
}
|
|
386
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
387
|
+
const localVarHeaderParameter = {};
|
|
388
|
+
const localVarQueryParameter = {};
|
|
389
|
+
// authentication bearer_auth required
|
|
390
|
+
// http bearer authentication required
|
|
391
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
392
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
393
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
394
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
395
|
+
return {
|
|
396
|
+
url: toPathString(localVarUrlObj),
|
|
397
|
+
options: localVarRequestOptions,
|
|
398
|
+
};
|
|
399
|
+
}),
|
|
400
|
+
/**
|
|
401
|
+
*
|
|
402
|
+
* @summary PATCH /v1/inbox/preferences
|
|
403
|
+
* @param {UpdateInboxPreferences} updateInboxPreferences
|
|
404
|
+
* @param {*} [options] Override http request option.
|
|
405
|
+
* @throws {RequiredError}
|
|
406
|
+
*/
|
|
407
|
+
updateInboxGlobalPreference: (updateInboxPreferences_1, ...args_1) => __awaiter(this, [updateInboxPreferences_1, ...args_1], void 0, function* (updateInboxPreferences, options = {}) {
|
|
408
|
+
// verify required parameter 'updateInboxPreferences' is not null or undefined
|
|
409
|
+
assertParamExists('updateInboxGlobalPreference', 'updateInboxPreferences', updateInboxPreferences);
|
|
410
|
+
const localVarPath = `/v1/inbox/preferences/`;
|
|
411
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
412
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
413
|
+
let baseOptions;
|
|
414
|
+
if (configuration) {
|
|
415
|
+
baseOptions = configuration.baseOptions;
|
|
416
|
+
}
|
|
417
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
418
|
+
const localVarHeaderParameter = {};
|
|
419
|
+
const localVarQueryParameter = {};
|
|
420
|
+
// authentication bearer_auth required
|
|
421
|
+
// http bearer authentication required
|
|
422
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
423
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
424
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
425
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
426
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
427
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateInboxPreferences, localVarRequestOptions, configuration);
|
|
428
|
+
return {
|
|
429
|
+
url: toPathString(localVarUrlObj),
|
|
430
|
+
options: localVarRequestOptions,
|
|
431
|
+
};
|
|
432
|
+
}),
|
|
433
|
+
/**
|
|
434
|
+
*
|
|
435
|
+
* @summary PATCH /v1/inbox/preferences/:workflowId
|
|
436
|
+
* @param {string} workflowId Workflow ID
|
|
437
|
+
* @param {UpdateInboxPreferences} updateInboxPreferences
|
|
438
|
+
* @param {*} [options] Override http request option.
|
|
439
|
+
* @throws {RequiredError}
|
|
440
|
+
*/
|
|
441
|
+
updateInboxWorkflowPreference: (workflowId_1, updateInboxPreferences_1, ...args_1) => __awaiter(this, [workflowId_1, updateInboxPreferences_1, ...args_1], void 0, function* (workflowId, updateInboxPreferences, options = {}) {
|
|
442
|
+
// verify required parameter 'workflowId' is not null or undefined
|
|
443
|
+
assertParamExists('updateInboxWorkflowPreference', 'workflowId', workflowId);
|
|
444
|
+
// verify required parameter 'updateInboxPreferences' is not null or undefined
|
|
445
|
+
assertParamExists('updateInboxWorkflowPreference', 'updateInboxPreferences', updateInboxPreferences);
|
|
446
|
+
const localVarPath = `/v1/inbox/preferences/{workflow_id}/`
|
|
447
|
+
.replace(`{${"workflow_id"}}`, encodeURIComponent(String(workflowId)));
|
|
448
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
449
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
450
|
+
let baseOptions;
|
|
451
|
+
if (configuration) {
|
|
452
|
+
baseOptions = configuration.baseOptions;
|
|
453
|
+
}
|
|
454
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
455
|
+
const localVarHeaderParameter = {};
|
|
456
|
+
const localVarQueryParameter = {};
|
|
457
|
+
// authentication bearer_auth required
|
|
458
|
+
// http bearer authentication required
|
|
459
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
460
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
461
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
462
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
463
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
464
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateInboxPreferences, localVarRequestOptions, configuration);
|
|
465
|
+
return {
|
|
466
|
+
url: toPathString(localVarUrlObj),
|
|
467
|
+
options: localVarRequestOptions,
|
|
468
|
+
};
|
|
469
|
+
}),
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
/**
|
|
473
|
+
* InboxApi - functional programming interface
|
|
474
|
+
*/
|
|
475
|
+
export const InboxApiFp = function (configuration) {
|
|
476
|
+
const localVarAxiosParamCreator = InboxApiAxiosParamCreator(configuration);
|
|
477
|
+
return {
|
|
478
|
+
/**
|
|
479
|
+
*
|
|
480
|
+
* @summary POST /v1/inbox/notifications/:id/archive
|
|
481
|
+
* @param {string} id Notification ID
|
|
482
|
+
* @param {*} [options] Override http request option.
|
|
483
|
+
* @throws {RequiredError}
|
|
484
|
+
*/
|
|
485
|
+
archive(id, options) {
|
|
486
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
487
|
+
var _a, _b, _c;
|
|
488
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.archive(id, options);
|
|
489
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
490
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InboxApi.archive']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
491
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
492
|
+
});
|
|
493
|
+
},
|
|
494
|
+
/**
|
|
495
|
+
*
|
|
496
|
+
* @summary POST /v1/inbox/notifications/archive (archive all)
|
|
497
|
+
* @param {*} [options] Override http request option.
|
|
498
|
+
* @throws {RequiredError}
|
|
499
|
+
*/
|
|
500
|
+
archiveAll(options) {
|
|
501
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
502
|
+
var _a, _b, _c;
|
|
503
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.archiveAll(options);
|
|
504
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
505
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InboxApi.archiveAll']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
506
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
507
|
+
});
|
|
508
|
+
},
|
|
509
|
+
/**
|
|
510
|
+
* Execute an action on a notification (e.g. primary/secondary button click). Sets the action result on the message and optionally publishes an SSE event.
|
|
511
|
+
* @summary POST /v1/inbox/notifications/:id/actions/:actionType
|
|
512
|
+
* @param {string} id Notification ID
|
|
513
|
+
* @param {string} actionType Action type
|
|
514
|
+
* @param {ActionBody} actionBody
|
|
515
|
+
* @param {*} [options] Override http request option.
|
|
516
|
+
* @throws {RequiredError}
|
|
517
|
+
*/
|
|
518
|
+
executeAction(id, actionType, actionBody, options) {
|
|
519
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
520
|
+
var _a, _b, _c;
|
|
521
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.executeAction(id, actionType, actionBody, options);
|
|
522
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
523
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InboxApi.executeAction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
524
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
525
|
+
});
|
|
526
|
+
},
|
|
527
|
+
/**
|
|
528
|
+
*
|
|
529
|
+
* @summary GET /v1/inbox/preferences
|
|
530
|
+
* @param {*} [options] Override http request option.
|
|
531
|
+
* @throws {RequiredError}
|
|
532
|
+
*/
|
|
533
|
+
getInboxPreferences(options) {
|
|
534
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
535
|
+
var _a, _b, _c;
|
|
536
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInboxPreferences(options);
|
|
537
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
538
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InboxApi.getInboxPreferences']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
539
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
540
|
+
});
|
|
541
|
+
},
|
|
542
|
+
/**
|
|
543
|
+
* Content negotiation: - `Accept: application/json` (default) → paginated JSON list - `Accept: text/event-stream` → SSE real-time stream (authenticated via subscriber JWT)
|
|
544
|
+
* @summary GET /v1/inbox/notifications/
|
|
545
|
+
* @param {number | null} [limit]
|
|
546
|
+
* @param {string | null} [after]
|
|
547
|
+
* @param {boolean | null} [read]
|
|
548
|
+
* @param {boolean | null} [archived]
|
|
549
|
+
* @param {*} [options] Override http request option.
|
|
550
|
+
* @throws {RequiredError}
|
|
551
|
+
*/
|
|
552
|
+
inboxListNotifications(limit, after, read, archived, options) {
|
|
553
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
554
|
+
var _a, _b, _c;
|
|
555
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.inboxListNotifications(limit, after, read, archived, options);
|
|
556
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
557
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InboxApi.inboxListNotifications']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
558
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
559
|
+
});
|
|
560
|
+
},
|
|
561
|
+
/**
|
|
562
|
+
* Unauthenticated endpoint — this is the initial handshake for SDK subscribers. Project ID is provided via the `X-Project-Id` header (same as all project-aware endpoints). Validates the project, optionally verifies HMAC subscriber hash, auto-creates the subscriber if needed, and returns a short-lived JWT.
|
|
563
|
+
* @summary POST /v1/inbox/session/
|
|
564
|
+
* @param {string} xProjectId Project UUID
|
|
565
|
+
* @param {InitSessionRequest} initSessionRequest
|
|
566
|
+
* @param {*} [options] Override http request option.
|
|
567
|
+
* @throws {RequiredError}
|
|
568
|
+
*/
|
|
569
|
+
initInboxSession(xProjectId, initSessionRequest, options) {
|
|
570
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
571
|
+
var _a, _b, _c;
|
|
572
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.initInboxSession(xProjectId, initSessionRequest, options);
|
|
573
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
574
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InboxApi.initInboxSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
575
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
576
|
+
});
|
|
577
|
+
},
|
|
578
|
+
/**
|
|
579
|
+
*
|
|
580
|
+
* @summary POST /v1/inbox/notifications/read (mark all as read)
|
|
581
|
+
* @param {*} [options] Override http request option.
|
|
582
|
+
* @throws {RequiredError}
|
|
583
|
+
*/
|
|
584
|
+
markAllRead(options) {
|
|
585
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
586
|
+
var _a, _b, _c;
|
|
587
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.markAllRead(options);
|
|
588
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
589
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InboxApi.markAllRead']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
590
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
591
|
+
});
|
|
592
|
+
},
|
|
593
|
+
/**
|
|
594
|
+
*
|
|
595
|
+
* @summary POST /v1/inbox/notifications/:id/read
|
|
596
|
+
* @param {string} id Notification ID
|
|
597
|
+
* @param {*} [options] Override http request option.
|
|
598
|
+
* @throws {RequiredError}
|
|
599
|
+
*/
|
|
600
|
+
markRead(id, options) {
|
|
601
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
602
|
+
var _a, _b, _c;
|
|
603
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.markRead(id, options);
|
|
604
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
605
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InboxApi.markRead']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
606
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
607
|
+
});
|
|
608
|
+
},
|
|
609
|
+
/**
|
|
610
|
+
*
|
|
611
|
+
* @summary POST /v1/inbox/notifications/:id/unread
|
|
612
|
+
* @param {string} id Notification ID
|
|
613
|
+
* @param {*} [options] Override http request option.
|
|
614
|
+
* @throws {RequiredError}
|
|
615
|
+
*/
|
|
616
|
+
markUnread(id, options) {
|
|
617
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
618
|
+
var _a, _b, _c;
|
|
619
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.markUnread(id, 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 = operationServerMap['InboxApi.markUnread']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
622
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
623
|
+
});
|
|
624
|
+
},
|
|
625
|
+
/**
|
|
626
|
+
*
|
|
627
|
+
* @summary GET /v1/inbox/notifications/count
|
|
628
|
+
* @param {*} [options] Override http request option.
|
|
629
|
+
* @throws {RequiredError}
|
|
630
|
+
*/
|
|
631
|
+
notificationCount(options) {
|
|
632
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
633
|
+
var _a, _b, _c;
|
|
634
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.notificationCount(options);
|
|
635
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
636
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InboxApi.notificationCount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
637
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
638
|
+
});
|
|
639
|
+
},
|
|
640
|
+
/**
|
|
641
|
+
*
|
|
642
|
+
* @summary POST /v1/inbox/notifications/:id/unarchive
|
|
643
|
+
* @param {string} id Notification ID
|
|
644
|
+
* @param {*} [options] Override http request option.
|
|
645
|
+
* @throws {RequiredError}
|
|
646
|
+
*/
|
|
647
|
+
unarchive(id, options) {
|
|
648
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
649
|
+
var _a, _b, _c;
|
|
650
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.unarchive(id, options);
|
|
651
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
652
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InboxApi.unarchive']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
653
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
654
|
+
});
|
|
655
|
+
},
|
|
656
|
+
/**
|
|
657
|
+
*
|
|
658
|
+
* @summary PATCH /v1/inbox/preferences
|
|
659
|
+
* @param {UpdateInboxPreferences} updateInboxPreferences
|
|
660
|
+
* @param {*} [options] Override http request option.
|
|
661
|
+
* @throws {RequiredError}
|
|
662
|
+
*/
|
|
663
|
+
updateInboxGlobalPreference(updateInboxPreferences, options) {
|
|
664
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
665
|
+
var _a, _b, _c;
|
|
666
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateInboxGlobalPreference(updateInboxPreferences, options);
|
|
667
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
668
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InboxApi.updateInboxGlobalPreference']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
669
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
670
|
+
});
|
|
671
|
+
},
|
|
672
|
+
/**
|
|
673
|
+
*
|
|
674
|
+
* @summary PATCH /v1/inbox/preferences/:workflowId
|
|
675
|
+
* @param {string} workflowId Workflow ID
|
|
676
|
+
* @param {UpdateInboxPreferences} updateInboxPreferences
|
|
677
|
+
* @param {*} [options] Override http request option.
|
|
678
|
+
* @throws {RequiredError}
|
|
679
|
+
*/
|
|
680
|
+
updateInboxWorkflowPreference(workflowId, updateInboxPreferences, options) {
|
|
681
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
682
|
+
var _a, _b, _c;
|
|
683
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateInboxWorkflowPreference(workflowId, updateInboxPreferences, options);
|
|
684
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
685
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InboxApi.updateInboxWorkflowPreference']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
686
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
687
|
+
});
|
|
688
|
+
},
|
|
689
|
+
};
|
|
690
|
+
};
|
|
691
|
+
/**
|
|
692
|
+
* InboxApi - factory interface
|
|
693
|
+
*/
|
|
694
|
+
export const InboxApiFactory = function (configuration, basePath, axios) {
|
|
695
|
+
const localVarFp = InboxApiFp(configuration);
|
|
696
|
+
return {
|
|
697
|
+
/**
|
|
698
|
+
*
|
|
699
|
+
* @summary POST /v1/inbox/notifications/:id/archive
|
|
700
|
+
* @param {string} id Notification ID
|
|
701
|
+
* @param {*} [options] Override http request option.
|
|
702
|
+
* @throws {RequiredError}
|
|
703
|
+
*/
|
|
704
|
+
archive(id, options) {
|
|
705
|
+
return localVarFp.archive(id, options).then((request) => request(axios, basePath));
|
|
706
|
+
},
|
|
707
|
+
/**
|
|
708
|
+
*
|
|
709
|
+
* @summary POST /v1/inbox/notifications/archive (archive all)
|
|
710
|
+
* @param {*} [options] Override http request option.
|
|
711
|
+
* @throws {RequiredError}
|
|
712
|
+
*/
|
|
713
|
+
archiveAll(options) {
|
|
714
|
+
return localVarFp.archiveAll(options).then((request) => request(axios, basePath));
|
|
715
|
+
},
|
|
716
|
+
/**
|
|
717
|
+
* Execute an action on a notification (e.g. primary/secondary button click). Sets the action result on the message and optionally publishes an SSE event.
|
|
718
|
+
* @summary POST /v1/inbox/notifications/:id/actions/:actionType
|
|
719
|
+
* @param {string} id Notification ID
|
|
720
|
+
* @param {string} actionType Action type
|
|
721
|
+
* @param {ActionBody} actionBody
|
|
722
|
+
* @param {*} [options] Override http request option.
|
|
723
|
+
* @throws {RequiredError}
|
|
724
|
+
*/
|
|
725
|
+
executeAction(id, actionType, actionBody, options) {
|
|
726
|
+
return localVarFp.executeAction(id, actionType, actionBody, options).then((request) => request(axios, basePath));
|
|
727
|
+
},
|
|
728
|
+
/**
|
|
729
|
+
*
|
|
730
|
+
* @summary GET /v1/inbox/preferences
|
|
731
|
+
* @param {*} [options] Override http request option.
|
|
732
|
+
* @throws {RequiredError}
|
|
733
|
+
*/
|
|
734
|
+
getInboxPreferences(options) {
|
|
735
|
+
return localVarFp.getInboxPreferences(options).then((request) => request(axios, basePath));
|
|
736
|
+
},
|
|
737
|
+
/**
|
|
738
|
+
* Content negotiation: - `Accept: application/json` (default) → paginated JSON list - `Accept: text/event-stream` → SSE real-time stream (authenticated via subscriber JWT)
|
|
739
|
+
* @summary GET /v1/inbox/notifications/
|
|
740
|
+
* @param {number | null} [limit]
|
|
741
|
+
* @param {string | null} [after]
|
|
742
|
+
* @param {boolean | null} [read]
|
|
743
|
+
* @param {boolean | null} [archived]
|
|
744
|
+
* @param {*} [options] Override http request option.
|
|
745
|
+
* @throws {RequiredError}
|
|
746
|
+
*/
|
|
747
|
+
inboxListNotifications(limit, after, read, archived, options) {
|
|
748
|
+
return localVarFp.inboxListNotifications(limit, after, read, archived, options).then((request) => request(axios, basePath));
|
|
749
|
+
},
|
|
750
|
+
/**
|
|
751
|
+
* Unauthenticated endpoint — this is the initial handshake for SDK subscribers. Project ID is provided via the `X-Project-Id` header (same as all project-aware endpoints). Validates the project, optionally verifies HMAC subscriber hash, auto-creates the subscriber if needed, and returns a short-lived JWT.
|
|
752
|
+
* @summary POST /v1/inbox/session/
|
|
753
|
+
* @param {string} xProjectId Project UUID
|
|
754
|
+
* @param {InitSessionRequest} initSessionRequest
|
|
755
|
+
* @param {*} [options] Override http request option.
|
|
756
|
+
* @throws {RequiredError}
|
|
757
|
+
*/
|
|
758
|
+
initInboxSession(xProjectId, initSessionRequest, options) {
|
|
759
|
+
return localVarFp.initInboxSession(xProjectId, initSessionRequest, options).then((request) => request(axios, basePath));
|
|
760
|
+
},
|
|
761
|
+
/**
|
|
762
|
+
*
|
|
763
|
+
* @summary POST /v1/inbox/notifications/read (mark all as read)
|
|
764
|
+
* @param {*} [options] Override http request option.
|
|
765
|
+
* @throws {RequiredError}
|
|
766
|
+
*/
|
|
767
|
+
markAllRead(options) {
|
|
768
|
+
return localVarFp.markAllRead(options).then((request) => request(axios, basePath));
|
|
769
|
+
},
|
|
770
|
+
/**
|
|
771
|
+
*
|
|
772
|
+
* @summary POST /v1/inbox/notifications/:id/read
|
|
773
|
+
* @param {string} id Notification ID
|
|
774
|
+
* @param {*} [options] Override http request option.
|
|
775
|
+
* @throws {RequiredError}
|
|
776
|
+
*/
|
|
777
|
+
markRead(id, options) {
|
|
778
|
+
return localVarFp.markRead(id, options).then((request) => request(axios, basePath));
|
|
779
|
+
},
|
|
780
|
+
/**
|
|
781
|
+
*
|
|
782
|
+
* @summary POST /v1/inbox/notifications/:id/unread
|
|
783
|
+
* @param {string} id Notification ID
|
|
784
|
+
* @param {*} [options] Override http request option.
|
|
785
|
+
* @throws {RequiredError}
|
|
786
|
+
*/
|
|
787
|
+
markUnread(id, options) {
|
|
788
|
+
return localVarFp.markUnread(id, options).then((request) => request(axios, basePath));
|
|
789
|
+
},
|
|
790
|
+
/**
|
|
791
|
+
*
|
|
792
|
+
* @summary GET /v1/inbox/notifications/count
|
|
793
|
+
* @param {*} [options] Override http request option.
|
|
794
|
+
* @throws {RequiredError}
|
|
795
|
+
*/
|
|
796
|
+
notificationCount(options) {
|
|
797
|
+
return localVarFp.notificationCount(options).then((request) => request(axios, basePath));
|
|
798
|
+
},
|
|
799
|
+
/**
|
|
800
|
+
*
|
|
801
|
+
* @summary POST /v1/inbox/notifications/:id/unarchive
|
|
802
|
+
* @param {string} id Notification ID
|
|
803
|
+
* @param {*} [options] Override http request option.
|
|
804
|
+
* @throws {RequiredError}
|
|
805
|
+
*/
|
|
806
|
+
unarchive(id, options) {
|
|
807
|
+
return localVarFp.unarchive(id, options).then((request) => request(axios, basePath));
|
|
808
|
+
},
|
|
809
|
+
/**
|
|
810
|
+
*
|
|
811
|
+
* @summary PATCH /v1/inbox/preferences
|
|
812
|
+
* @param {UpdateInboxPreferences} updateInboxPreferences
|
|
813
|
+
* @param {*} [options] Override http request option.
|
|
814
|
+
* @throws {RequiredError}
|
|
815
|
+
*/
|
|
816
|
+
updateInboxGlobalPreference(updateInboxPreferences, options) {
|
|
817
|
+
return localVarFp.updateInboxGlobalPreference(updateInboxPreferences, options).then((request) => request(axios, basePath));
|
|
818
|
+
},
|
|
819
|
+
/**
|
|
820
|
+
*
|
|
821
|
+
* @summary PATCH /v1/inbox/preferences/:workflowId
|
|
822
|
+
* @param {string} workflowId Workflow ID
|
|
823
|
+
* @param {UpdateInboxPreferences} updateInboxPreferences
|
|
824
|
+
* @param {*} [options] Override http request option.
|
|
825
|
+
* @throws {RequiredError}
|
|
826
|
+
*/
|
|
827
|
+
updateInboxWorkflowPreference(workflowId, updateInboxPreferences, options) {
|
|
828
|
+
return localVarFp.updateInboxWorkflowPreference(workflowId, updateInboxPreferences, options).then((request) => request(axios, basePath));
|
|
829
|
+
},
|
|
830
|
+
};
|
|
831
|
+
};
|
|
832
|
+
/**
|
|
833
|
+
* InboxApi - object-oriented interface
|
|
834
|
+
*/
|
|
835
|
+
export class InboxApi extends BaseAPI {
|
|
836
|
+
/**
|
|
837
|
+
*
|
|
838
|
+
* @summary POST /v1/inbox/notifications/:id/archive
|
|
839
|
+
* @param {string} id Notification ID
|
|
840
|
+
* @param {*} [options] Override http request option.
|
|
841
|
+
* @throws {RequiredError}
|
|
842
|
+
*/
|
|
843
|
+
archive(id, options) {
|
|
844
|
+
return InboxApiFp(this.configuration).archive(id, options).then((request) => request(this.axios, this.basePath));
|
|
845
|
+
}
|
|
846
|
+
/**
|
|
847
|
+
*
|
|
848
|
+
* @summary POST /v1/inbox/notifications/archive (archive all)
|
|
849
|
+
* @param {*} [options] Override http request option.
|
|
850
|
+
* @throws {RequiredError}
|
|
851
|
+
*/
|
|
852
|
+
archiveAll(options) {
|
|
853
|
+
return InboxApiFp(this.configuration).archiveAll(options).then((request) => request(this.axios, this.basePath));
|
|
854
|
+
}
|
|
855
|
+
/**
|
|
856
|
+
* Execute an action on a notification (e.g. primary/secondary button click). Sets the action result on the message and optionally publishes an SSE event.
|
|
857
|
+
* @summary POST /v1/inbox/notifications/:id/actions/:actionType
|
|
858
|
+
* @param {string} id Notification ID
|
|
859
|
+
* @param {string} actionType Action type
|
|
860
|
+
* @param {ActionBody} actionBody
|
|
861
|
+
* @param {*} [options] Override http request option.
|
|
862
|
+
* @throws {RequiredError}
|
|
863
|
+
*/
|
|
864
|
+
executeAction(id, actionType, actionBody, options) {
|
|
865
|
+
return InboxApiFp(this.configuration).executeAction(id, actionType, actionBody, options).then((request) => request(this.axios, this.basePath));
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
*
|
|
869
|
+
* @summary GET /v1/inbox/preferences
|
|
870
|
+
* @param {*} [options] Override http request option.
|
|
871
|
+
* @throws {RequiredError}
|
|
872
|
+
*/
|
|
873
|
+
getInboxPreferences(options) {
|
|
874
|
+
return InboxApiFp(this.configuration).getInboxPreferences(options).then((request) => request(this.axios, this.basePath));
|
|
875
|
+
}
|
|
876
|
+
/**
|
|
877
|
+
* Content negotiation: - `Accept: application/json` (default) → paginated JSON list - `Accept: text/event-stream` → SSE real-time stream (authenticated via subscriber JWT)
|
|
878
|
+
* @summary GET /v1/inbox/notifications/
|
|
879
|
+
* @param {number | null} [limit]
|
|
880
|
+
* @param {string | null} [after]
|
|
881
|
+
* @param {boolean | null} [read]
|
|
882
|
+
* @param {boolean | null} [archived]
|
|
883
|
+
* @param {*} [options] Override http request option.
|
|
884
|
+
* @throws {RequiredError}
|
|
885
|
+
*/
|
|
886
|
+
inboxListNotifications(limit, after, read, archived, options) {
|
|
887
|
+
return InboxApiFp(this.configuration).inboxListNotifications(limit, after, read, archived, options).then((request) => request(this.axios, this.basePath));
|
|
888
|
+
}
|
|
889
|
+
/**
|
|
890
|
+
* Unauthenticated endpoint — this is the initial handshake for SDK subscribers. Project ID is provided via the `X-Project-Id` header (same as all project-aware endpoints). Validates the project, optionally verifies HMAC subscriber hash, auto-creates the subscriber if needed, and returns a short-lived JWT.
|
|
891
|
+
* @summary POST /v1/inbox/session/
|
|
892
|
+
* @param {string} xProjectId Project UUID
|
|
893
|
+
* @param {InitSessionRequest} initSessionRequest
|
|
894
|
+
* @param {*} [options] Override http request option.
|
|
895
|
+
* @throws {RequiredError}
|
|
896
|
+
*/
|
|
897
|
+
initInboxSession(xProjectId, initSessionRequest, options) {
|
|
898
|
+
return InboxApiFp(this.configuration).initInboxSession(xProjectId, initSessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
899
|
+
}
|
|
900
|
+
/**
|
|
901
|
+
*
|
|
902
|
+
* @summary POST /v1/inbox/notifications/read (mark all as read)
|
|
903
|
+
* @param {*} [options] Override http request option.
|
|
904
|
+
* @throws {RequiredError}
|
|
905
|
+
*/
|
|
906
|
+
markAllRead(options) {
|
|
907
|
+
return InboxApiFp(this.configuration).markAllRead(options).then((request) => request(this.axios, this.basePath));
|
|
908
|
+
}
|
|
909
|
+
/**
|
|
910
|
+
*
|
|
911
|
+
* @summary POST /v1/inbox/notifications/:id/read
|
|
912
|
+
* @param {string} id Notification ID
|
|
913
|
+
* @param {*} [options] Override http request option.
|
|
914
|
+
* @throws {RequiredError}
|
|
915
|
+
*/
|
|
916
|
+
markRead(id, options) {
|
|
917
|
+
return InboxApiFp(this.configuration).markRead(id, options).then((request) => request(this.axios, this.basePath));
|
|
918
|
+
}
|
|
919
|
+
/**
|
|
920
|
+
*
|
|
921
|
+
* @summary POST /v1/inbox/notifications/:id/unread
|
|
922
|
+
* @param {string} id Notification ID
|
|
923
|
+
* @param {*} [options] Override http request option.
|
|
924
|
+
* @throws {RequiredError}
|
|
925
|
+
*/
|
|
926
|
+
markUnread(id, options) {
|
|
927
|
+
return InboxApiFp(this.configuration).markUnread(id, options).then((request) => request(this.axios, this.basePath));
|
|
928
|
+
}
|
|
929
|
+
/**
|
|
930
|
+
*
|
|
931
|
+
* @summary GET /v1/inbox/notifications/count
|
|
932
|
+
* @param {*} [options] Override http request option.
|
|
933
|
+
* @throws {RequiredError}
|
|
934
|
+
*/
|
|
935
|
+
notificationCount(options) {
|
|
936
|
+
return InboxApiFp(this.configuration).notificationCount(options).then((request) => request(this.axios, this.basePath));
|
|
937
|
+
}
|
|
938
|
+
/**
|
|
939
|
+
*
|
|
940
|
+
* @summary POST /v1/inbox/notifications/:id/unarchive
|
|
941
|
+
* @param {string} id Notification ID
|
|
942
|
+
* @param {*} [options] Override http request option.
|
|
943
|
+
* @throws {RequiredError}
|
|
944
|
+
*/
|
|
945
|
+
unarchive(id, options) {
|
|
946
|
+
return InboxApiFp(this.configuration).unarchive(id, options).then((request) => request(this.axios, this.basePath));
|
|
947
|
+
}
|
|
948
|
+
/**
|
|
949
|
+
*
|
|
950
|
+
* @summary PATCH /v1/inbox/preferences
|
|
951
|
+
* @param {UpdateInboxPreferences} updateInboxPreferences
|
|
952
|
+
* @param {*} [options] Override http request option.
|
|
953
|
+
* @throws {RequiredError}
|
|
954
|
+
*/
|
|
955
|
+
updateInboxGlobalPreference(updateInboxPreferences, options) {
|
|
956
|
+
return InboxApiFp(this.configuration).updateInboxGlobalPreference(updateInboxPreferences, options).then((request) => request(this.axios, this.basePath));
|
|
957
|
+
}
|
|
958
|
+
/**
|
|
959
|
+
*
|
|
960
|
+
* @summary PATCH /v1/inbox/preferences/:workflowId
|
|
961
|
+
* @param {string} workflowId Workflow ID
|
|
962
|
+
* @param {UpdateInboxPreferences} updateInboxPreferences
|
|
963
|
+
* @param {*} [options] Override http request option.
|
|
964
|
+
* @throws {RequiredError}
|
|
965
|
+
*/
|
|
966
|
+
updateInboxWorkflowPreference(workflowId, updateInboxPreferences, options) {
|
|
967
|
+
return InboxApiFp(this.configuration).updateInboxWorkflowPreference(workflowId, updateInboxPreferences, options).then((request) => request(this.axios, this.basePath));
|
|
968
|
+
}
|
|
969
|
+
}
|