magicbell-js 1.3.0 → 1.5.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 +19 -2
- package/dist/commonjs/project-client/http/client.d.ts +4 -2
- package/dist/commonjs/project-client/http/client.d.ts.map +1 -1
- package/dist/commonjs/project-client/http/client.js +34 -5
- package/dist/commonjs/project-client/http/client.js.map +1 -1
- package/dist/commonjs/project-client/http/handlers/hook-handler.d.ts.map +1 -1
- package/dist/commonjs/project-client/http/handlers/hook-handler.js +5 -3
- package/dist/commonjs/project-client/http/handlers/hook-handler.js.map +1 -1
- package/dist/commonjs/project-client/http/handlers/request-validation-handler.d.ts +1 -1
- package/dist/commonjs/project-client/http/handlers/request-validation-handler.d.ts.map +1 -1
- package/dist/commonjs/project-client/http/handlers/request-validation-handler.js +15 -4
- package/dist/commonjs/project-client/http/handlers/request-validation-handler.js.map +1 -1
- package/dist/commonjs/project-client/http/handlers/response-validation-handler.js +3 -2
- package/dist/commonjs/project-client/http/handlers/response-validation-handler.js.map +1 -1
- package/dist/commonjs/project-client/http/handlers/retry-handler.d.ts.map +1 -1
- package/dist/commonjs/project-client/http/handlers/retry-handler.js +2 -1
- package/dist/commonjs/project-client/http/handlers/retry-handler.js.map +1 -1
- package/dist/commonjs/project-client/http/hooks/hook.d.ts +1 -1
- package/dist/commonjs/project-client/http/hooks/hook.d.ts.map +1 -1
- package/dist/commonjs/project-client/http/serialization/query-serializer.d.ts.map +1 -1
- package/dist/commonjs/project-client/http/serialization/query-serializer.js +4 -0
- package/dist/commonjs/project-client/http/serialization/query-serializer.js.map +1 -1
- package/dist/commonjs/project-client/http/transport/request-builder.d.ts +4 -1
- package/dist/commonjs/project-client/http/transport/request-builder.d.ts.map +1 -1
- package/dist/commonjs/project-client/http/transport/request-builder.js +23 -1
- package/dist/commonjs/project-client/http/transport/request-builder.js.map +1 -1
- package/dist/commonjs/project-client/http/transport/request-fetch-adapter.d.ts +1 -0
- package/dist/commonjs/project-client/http/transport/request-fetch-adapter.d.ts.map +1 -1
- package/dist/commonjs/project-client/http/transport/request-fetch-adapter.js +5 -2
- package/dist/commonjs/project-client/http/transport/request-fetch-adapter.js.map +1 -1
- package/dist/commonjs/project-client/http/transport/request.d.ts +6 -3
- package/dist/commonjs/project-client/http/transport/request.d.ts.map +1 -1
- package/dist/commonjs/project-client/http/transport/request.js +37 -5
- package/dist/commonjs/project-client/http/transport/request.js.map +1 -1
- package/dist/commonjs/project-client/http/transport/transport-hook-adapter.d.ts.map +1 -1
- package/dist/commonjs/project-client/http/transport/transport-hook-adapter.js +2 -1
- package/dist/commonjs/project-client/http/transport/transport-hook-adapter.js.map +1 -1
- package/dist/commonjs/project-client/http/transport/types.d.ts +12 -2
- package/dist/commonjs/project-client/http/transport/types.d.ts.map +1 -1
- package/dist/commonjs/project-client/http/transport/types.js +4 -0
- package/dist/commonjs/project-client/http/transport/types.js.map +1 -1
- package/dist/commonjs/project-client/http/types.d.ts +6 -1
- package/dist/commonjs/project-client/http/types.d.ts.map +1 -1
- package/dist/commonjs/project-client/http/types.js.map +1 -1
- package/dist/commonjs/project-client/http/utils/content-type.d.ts.map +1 -1
- package/dist/commonjs/project-client/http/utils/content-type.js +22 -9
- package/dist/commonjs/project-client/http/utils/content-type.js.map +1 -1
- package/dist/commonjs/project-client/index.d.ts +3 -0
- package/dist/commonjs/project-client/index.d.ts.map +1 -1
- package/dist/commonjs/project-client/index.js +13 -0
- package/dist/commonjs/project-client/index.js.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/broadcasts-service.d.ts +6 -6
- package/dist/commonjs/project-client/services/broadcasts/broadcasts-service.js +6 -6
- package/dist/commonjs/project-client/services/channels/channels-service.d.ts +73 -47
- package/dist/commonjs/project-client/services/channels/channels-service.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/channels/channels-service.js +161 -46
- package/dist/commonjs/project-client/services/channels/channels-service.js.map +1 -1
- package/dist/commonjs/project-client/services/channels/models/apns-token.d.ts +1 -1
- package/dist/commonjs/project-client/services/channels/models/fcm-token-collection.d.ts +0 -23
- package/dist/commonjs/project-client/services/channels/models/fcm-token-collection.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/channels/models/fcm-token.d.ts +0 -14
- package/dist/commonjs/project-client/services/channels/models/fcm-token.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/channels/models/fcm-token.js +0 -5
- package/dist/commonjs/project-client/services/channels/models/fcm-token.js.map +1 -1
- package/dist/commonjs/project-client/services/channels/models/index.d.ts +1 -2
- package/dist/commonjs/project-client/services/channels/models/index.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/channels/models/index.js +3 -5
- package/dist/commonjs/project-client/services/channels/models/index.js.map +1 -1
- package/dist/commonjs/project-client/services/channels/models/installation-id.d.ts +5 -0
- package/dist/commonjs/project-client/services/channels/models/installation-id.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/channels/models/installation-id.js +9 -0
- package/dist/commonjs/project-client/services/channels/models/installation-id.js.map +1 -0
- package/dist/commonjs/project-client/services/channels/request-params.d.ts +5 -0
- package/dist/commonjs/project-client/services/channels/request-params.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/events/events-service.d.ts +4 -4
- package/dist/commonjs/project-client/services/events/events-service.js +4 -4
- package/dist/commonjs/project-client/services/integrations/integrations-service.d.ts +144 -81
- package/dist/commonjs/project-client/services/integrations/integrations-service.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/integrations/integrations-service.js +332 -80
- package/dist/commonjs/project-client/services/integrations/integrations-service.js.map +1 -1
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-collection.d.ts +312 -0
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-collection.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-collection.js +46 -0
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-collection.js.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-payload.d.ts +48 -0
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-payload.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-payload.js +39 -0
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-payload.js.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/event-source-config.d.ts +122 -0
- package/dist/commonjs/project-client/services/integrations/models/event-source-config.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/event-source-config.js +50 -0
- package/dist/commonjs/project-client/services/integrations/models/event-source-config.js.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/index.d.ts +13 -1
- package/dist/commonjs/project-client/services/integrations/models/index.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/integrations/models/index.js +3 -1
- package/dist/commonjs/project-client/services/integrations/models/index.js.map +1 -1
- package/dist/commonjs/project-client/services/integrations/models/security.d.ts +6 -0
- package/dist/commonjs/project-client/services/integrations/models/security.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/security.js +10 -0
- package/dist/commonjs/project-client/services/integrations/models/security.js.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/{reply-to.d.ts → sendgrid-config-payload-reply-to.d.ts} +6 -6
- package/dist/commonjs/project-client/services/integrations/models/sendgrid-config-payload-reply-to.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/{reply-to.js → sendgrid-config-payload-reply-to.js} +5 -5
- package/dist/commonjs/project-client/services/integrations/models/sendgrid-config-payload-reply-to.js.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/sendgrid-config-payload.d.ts +1 -1
- package/dist/commonjs/project-client/services/integrations/models/sendgrid-config-payload.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/integrations/models/sendgrid-config-payload.js +4 -4
- package/dist/commonjs/project-client/services/integrations/models/sendgrid-config-payload.js.map +1 -1
- package/dist/commonjs/project-client/services/integrations/models/slack-bot-config-collection.d.ts +312 -0
- package/dist/commonjs/project-client/services/integrations/models/slack-bot-config-collection.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/slack-bot-config-collection.js +46 -0
- package/dist/commonjs/project-client/services/integrations/models/slack-bot-config-collection.js.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/slack-bot-config-payload.d.ts +48 -0
- package/dist/commonjs/project-client/services/integrations/models/slack-bot-config-payload.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/slack-bot-config-payload.js +39 -0
- package/dist/commonjs/project-client/services/integrations/models/slack-bot-config-payload.js.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/slack-bot-config.d.ts +122 -0
- package/dist/commonjs/project-client/services/integrations/models/slack-bot-config.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/slack-bot-config.js +50 -0
- package/dist/commonjs/project-client/services/integrations/models/slack-bot-config.js.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/smtp-config-from.d.ts +62 -0
- package/dist/commonjs/project-client/services/integrations/models/smtp-config-from.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/smtp-config-from.js +44 -0
- package/dist/commonjs/project-client/services/integrations/models/smtp-config-from.js.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/smtp-config-object-collection.d.ts +768 -0
- package/dist/commonjs/project-client/services/integrations/models/smtp-config-object-collection.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/smtp-config-object-collection.js +46 -0
- package/dist/commonjs/project-client/services/integrations/models/smtp-config-object-collection.js.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/smtp-config-object.d.ts +458 -0
- package/dist/commonjs/project-client/services/integrations/models/smtp-config-object.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/smtp-config-object.js +50 -0
- package/dist/commonjs/project-client/services/integrations/models/smtp-config-object.js.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/smtp-config-reply-to.d.ts +62 -0
- package/dist/commonjs/project-client/services/integrations/models/smtp-config-reply-to.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/smtp-config-reply-to.js +44 -0
- package/dist/commonjs/project-client/services/integrations/models/smtp-config-reply-to.js.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/smtp-config.d.ts +270 -0
- package/dist/commonjs/project-client/services/integrations/models/smtp-config.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/smtp-config.js +71 -0
- package/dist/commonjs/project-client/services/integrations/models/smtp-config.js.map +1 -0
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-collection.d.ts +33 -0
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-collection.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-payload.d.ts +14 -0
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-payload.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-payload.js +5 -0
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-payload.js.map +1 -1
- package/dist/commonjs/project-client/services/integrations/models/stripe-config.d.ts +23 -0
- package/dist/commonjs/project-client/services/integrations/models/stripe-config.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/integrations/models/webpush-config-payload.d.ts +1 -1
- package/dist/commonjs/project-client/services/integrations/request-params.d.ts +9 -0
- package/dist/commonjs/project-client/services/integrations/request-params.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/users/users-service.d.ts +6 -6
- package/dist/commonjs/project-client/services/users/users-service.js +6 -6
- package/dist/commonjs/project-client/services/workflows/index.d.ts +3 -0
- package/dist/commonjs/project-client/services/workflows/index.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/workflows/index.js +8 -0
- package/dist/commonjs/project-client/services/workflows/index.js.map +1 -0
- package/dist/commonjs/project-client/services/workflows/models/create-run-response.d.ts +48 -0
- package/dist/commonjs/project-client/services/workflows/models/create-run-response.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/workflows/models/create-run-response.js +39 -0
- package/dist/commonjs/project-client/services/workflows/models/create-run-response.js.map +1 -0
- package/dist/commonjs/project-client/services/workflows/models/execute-workflow-request.d.ts +62 -0
- package/dist/commonjs/project-client/services/workflows/models/execute-workflow-request.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/workflows/models/execute-workflow-request.js +44 -0
- package/dist/commonjs/project-client/services/workflows/models/execute-workflow-request.js.map +1 -0
- package/dist/commonjs/project-client/services/workflows/models/get-run-response-status.d.ts +104 -0
- package/dist/commonjs/project-client/services/workflows/models/get-run-response-status.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/workflows/models/get-run-response-status.js +59 -0
- package/dist/commonjs/project-client/services/workflows/models/get-run-response-status.js.map +1 -0
- package/dist/commonjs/project-client/services/workflows/models/get-run-response.d.ts +228 -0
- package/dist/commonjs/project-client/services/workflows/models/get-run-response.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/workflows/models/get-run-response.js +55 -0
- package/dist/commonjs/project-client/services/workflows/models/get-run-response.js.map +1 -0
- package/dist/commonjs/project-client/services/workflows/models/index.d.ts +10 -0
- package/dist/commonjs/project-client/services/workflows/models/index.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/workflows/models/index.js +3 -0
- package/dist/commonjs/project-client/services/workflows/models/index.js.map +1 -0
- package/dist/commonjs/project-client/services/workflows/models/steps.d.ts +76 -0
- package/dist/commonjs/project-client/services/workflows/models/steps.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/workflows/models/steps.js +49 -0
- package/dist/commonjs/project-client/services/workflows/models/steps.js.map +1 -0
- package/dist/commonjs/project-client/services/workflows/models/workflow-definition.d.ts +168 -0
- package/dist/commonjs/project-client/services/workflows/models/workflow-definition.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/workflows/models/workflow-definition.js +59 -0
- package/dist/commonjs/project-client/services/workflows/models/workflow-definition.js.map +1 -0
- package/dist/commonjs/project-client/services/workflows/models/workflow-run-collection.d.ts +467 -0
- package/dist/commonjs/project-client/services/workflows/models/workflow-run-collection.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/workflows/models/workflow-run-collection.js +46 -0
- package/dist/commonjs/project-client/services/workflows/models/workflow-run-collection.js.map +1 -0
- package/dist/commonjs/project-client/services/workflows/models/workflow-run-status.d.ts +104 -0
- package/dist/commonjs/project-client/services/workflows/models/workflow-run-status.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/workflows/models/workflow-run-status.js +59 -0
- package/dist/commonjs/project-client/services/workflows/models/workflow-run-status.js.map +1 -0
- package/dist/commonjs/project-client/services/workflows/models/workflow-run.d.ts +228 -0
- package/dist/commonjs/project-client/services/workflows/models/workflow-run.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/workflows/models/workflow-run.js +55 -0
- package/dist/commonjs/project-client/services/workflows/models/workflow-run.js.map +1 -0
- package/dist/commonjs/project-client/services/workflows/workflows-service.d.ts +42 -0
- package/dist/commonjs/project-client/services/workflows/workflows-service.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/workflows/workflows-service.js +156 -0
- package/dist/commonjs/project-client/services/workflows/workflows-service.js.map +1 -0
- package/dist/commonjs/user-client/http/client.d.ts +4 -2
- package/dist/commonjs/user-client/http/client.d.ts.map +1 -1
- package/dist/commonjs/user-client/http/client.js +34 -5
- package/dist/commonjs/user-client/http/client.js.map +1 -1
- package/dist/commonjs/user-client/http/handlers/hook-handler.d.ts.map +1 -1
- package/dist/commonjs/user-client/http/handlers/hook-handler.js +5 -3
- package/dist/commonjs/user-client/http/handlers/hook-handler.js.map +1 -1
- package/dist/commonjs/user-client/http/handlers/request-validation-handler.d.ts +1 -1
- package/dist/commonjs/user-client/http/handlers/request-validation-handler.d.ts.map +1 -1
- package/dist/commonjs/user-client/http/handlers/request-validation-handler.js +15 -4
- package/dist/commonjs/user-client/http/handlers/request-validation-handler.js.map +1 -1
- package/dist/commonjs/user-client/http/handlers/response-validation-handler.js +3 -2
- package/dist/commonjs/user-client/http/handlers/response-validation-handler.js.map +1 -1
- package/dist/commonjs/user-client/http/handlers/retry-handler.d.ts.map +1 -1
- package/dist/commonjs/user-client/http/handlers/retry-handler.js +2 -1
- package/dist/commonjs/user-client/http/handlers/retry-handler.js.map +1 -1
- package/dist/commonjs/user-client/http/hooks/hook.d.ts +1 -1
- package/dist/commonjs/user-client/http/hooks/hook.d.ts.map +1 -1
- package/dist/commonjs/user-client/http/serialization/query-serializer.d.ts.map +1 -1
- package/dist/commonjs/user-client/http/serialization/query-serializer.js +4 -0
- package/dist/commonjs/user-client/http/serialization/query-serializer.js.map +1 -1
- package/dist/commonjs/user-client/http/transport/request-builder.d.ts +4 -1
- package/dist/commonjs/user-client/http/transport/request-builder.d.ts.map +1 -1
- package/dist/commonjs/user-client/http/transport/request-builder.js +23 -1
- package/dist/commonjs/user-client/http/transport/request-builder.js.map +1 -1
- package/dist/commonjs/user-client/http/transport/request-fetch-adapter.d.ts +1 -0
- package/dist/commonjs/user-client/http/transport/request-fetch-adapter.d.ts.map +1 -1
- package/dist/commonjs/user-client/http/transport/request-fetch-adapter.js +5 -2
- package/dist/commonjs/user-client/http/transport/request-fetch-adapter.js.map +1 -1
- package/dist/commonjs/user-client/http/transport/request.d.ts +6 -3
- package/dist/commonjs/user-client/http/transport/request.d.ts.map +1 -1
- package/dist/commonjs/user-client/http/transport/request.js +37 -5
- package/dist/commonjs/user-client/http/transport/request.js.map +1 -1
- package/dist/commonjs/user-client/http/transport/transport-hook-adapter.d.ts.map +1 -1
- package/dist/commonjs/user-client/http/transport/transport-hook-adapter.js +2 -1
- package/dist/commonjs/user-client/http/transport/transport-hook-adapter.js.map +1 -1
- package/dist/commonjs/user-client/http/transport/types.d.ts +12 -2
- package/dist/commonjs/user-client/http/transport/types.d.ts.map +1 -1
- package/dist/commonjs/user-client/http/transport/types.js +4 -0
- package/dist/commonjs/user-client/http/transport/types.js.map +1 -1
- package/dist/commonjs/user-client/http/types.d.ts +6 -1
- package/dist/commonjs/user-client/http/types.d.ts.map +1 -1
- package/dist/commonjs/user-client/http/types.js.map +1 -1
- package/dist/commonjs/user-client/http/utils/content-type.d.ts.map +1 -1
- package/dist/commonjs/user-client/http/utils/content-type.js +22 -9
- package/dist/commonjs/user-client/http/utils/content-type.js.map +1 -1
- package/dist/commonjs/user-client/services/channels/channels-service.d.ts +90 -61
- package/dist/commonjs/user-client/services/channels/channels-service.d.ts.map +1 -1
- package/dist/commonjs/user-client/services/channels/channels-service.js +187 -60
- package/dist/commonjs/user-client/services/channels/channels-service.js.map +1 -1
- package/dist/commonjs/user-client/services/channels/models/fcm-token-collection.d.ts +0 -23
- package/dist/commonjs/user-client/services/channels/models/fcm-token-collection.d.ts.map +1 -1
- package/dist/commonjs/user-client/services/channels/models/fcm-token-payload.d.ts +0 -14
- package/dist/commonjs/user-client/services/channels/models/fcm-token-payload.d.ts.map +1 -1
- package/dist/commonjs/user-client/services/channels/models/fcm-token-payload.js +0 -5
- package/dist/commonjs/user-client/services/channels/models/fcm-token-payload.js.map +1 -1
- package/dist/commonjs/user-client/services/channels/models/fcm-token.d.ts +0 -14
- package/dist/commonjs/user-client/services/channels/models/fcm-token.d.ts.map +1 -1
- package/dist/commonjs/user-client/services/channels/models/fcm-token.js +0 -5
- package/dist/commonjs/user-client/services/channels/models/fcm-token.js.map +1 -1
- package/dist/commonjs/user-client/services/channels/models/index.d.ts +0 -2
- package/dist/commonjs/user-client/services/channels/models/index.d.ts.map +1 -1
- package/dist/commonjs/user-client/services/channels/models/index.js +1 -5
- package/dist/commonjs/user-client/services/channels/models/index.js.map +1 -1
- package/dist/commonjs/user-client/services/channels/request-params.d.ts +5 -0
- package/dist/commonjs/user-client/services/channels/request-params.d.ts.map +1 -1
- package/dist/commonjs/user-client/services/integrations/integrations-service.d.ts +32 -14
- package/dist/commonjs/user-client/services/integrations/integrations-service.d.ts.map +1 -1
- package/dist/commonjs/user-client/services/integrations/integrations-service.js +95 -14
- package/dist/commonjs/user-client/services/integrations/integrations-service.js.map +1 -1
- package/dist/commonjs/user-client/services/notifications/notifications-service.d.ts +16 -16
- package/dist/commonjs/user-client/services/notifications/notifications-service.js +16 -16
- package/dist/esm/project-client/http/client.d.ts +4 -2
- package/dist/esm/project-client/http/client.d.ts.map +1 -1
- package/dist/esm/project-client/http/client.js +34 -5
- package/dist/esm/project-client/http/client.js.map +1 -1
- package/dist/esm/project-client/http/handlers/hook-handler.d.ts.map +1 -1
- package/dist/esm/project-client/http/handlers/hook-handler.js +5 -3
- package/dist/esm/project-client/http/handlers/hook-handler.js.map +1 -1
- package/dist/esm/project-client/http/handlers/request-validation-handler.d.ts +1 -1
- package/dist/esm/project-client/http/handlers/request-validation-handler.d.ts.map +1 -1
- package/dist/esm/project-client/http/handlers/request-validation-handler.js +15 -4
- package/dist/esm/project-client/http/handlers/request-validation-handler.js.map +1 -1
- package/dist/esm/project-client/http/handlers/response-validation-handler.js +3 -2
- package/dist/esm/project-client/http/handlers/response-validation-handler.js.map +1 -1
- package/dist/esm/project-client/http/handlers/retry-handler.d.ts.map +1 -1
- package/dist/esm/project-client/http/handlers/retry-handler.js +2 -1
- package/dist/esm/project-client/http/handlers/retry-handler.js.map +1 -1
- package/dist/esm/project-client/http/hooks/hook.d.ts +1 -1
- package/dist/esm/project-client/http/hooks/hook.d.ts.map +1 -1
- package/dist/esm/project-client/http/serialization/query-serializer.d.ts.map +1 -1
- package/dist/esm/project-client/http/serialization/query-serializer.js +4 -0
- package/dist/esm/project-client/http/serialization/query-serializer.js.map +1 -1
- package/dist/esm/project-client/http/transport/request-builder.d.ts +4 -1
- package/dist/esm/project-client/http/transport/request-builder.d.ts.map +1 -1
- package/dist/esm/project-client/http/transport/request-builder.js +23 -1
- package/dist/esm/project-client/http/transport/request-builder.js.map +1 -1
- package/dist/esm/project-client/http/transport/request-fetch-adapter.d.ts +1 -0
- package/dist/esm/project-client/http/transport/request-fetch-adapter.d.ts.map +1 -1
- package/dist/esm/project-client/http/transport/request-fetch-adapter.js +5 -2
- package/dist/esm/project-client/http/transport/request-fetch-adapter.js.map +1 -1
- package/dist/esm/project-client/http/transport/request.d.ts +6 -3
- package/dist/esm/project-client/http/transport/request.d.ts.map +1 -1
- package/dist/esm/project-client/http/transport/request.js +37 -5
- package/dist/esm/project-client/http/transport/request.js.map +1 -1
- package/dist/esm/project-client/http/transport/transport-hook-adapter.d.ts.map +1 -1
- package/dist/esm/project-client/http/transport/transport-hook-adapter.js +2 -1
- package/dist/esm/project-client/http/transport/transport-hook-adapter.js.map +1 -1
- package/dist/esm/project-client/http/transport/types.d.ts +12 -2
- package/dist/esm/project-client/http/transport/types.d.ts.map +1 -1
- package/dist/esm/project-client/http/transport/types.js +3 -1
- package/dist/esm/project-client/http/transport/types.js.map +1 -1
- package/dist/esm/project-client/http/types.d.ts +6 -1
- package/dist/esm/project-client/http/types.d.ts.map +1 -1
- package/dist/esm/project-client/http/types.js.map +1 -1
- package/dist/esm/project-client/http/utils/content-type.d.ts.map +1 -1
- package/dist/esm/project-client/http/utils/content-type.js +22 -9
- package/dist/esm/project-client/http/utils/content-type.js.map +1 -1
- package/dist/esm/project-client/index.d.ts +3 -0
- package/dist/esm/project-client/index.d.ts.map +1 -1
- package/dist/esm/project-client/index.js +13 -0
- package/dist/esm/project-client/index.js.map +1 -1
- package/dist/esm/project-client/services/broadcasts/broadcasts-service.d.ts +6 -6
- package/dist/esm/project-client/services/broadcasts/broadcasts-service.js +6 -6
- package/dist/esm/project-client/services/channels/channels-service.d.ts +73 -47
- package/dist/esm/project-client/services/channels/channels-service.d.ts.map +1 -1
- package/dist/esm/project-client/services/channels/channels-service.js +161 -46
- package/dist/esm/project-client/services/channels/channels-service.js.map +1 -1
- package/dist/esm/project-client/services/channels/models/apns-token.d.ts +1 -1
- package/dist/esm/project-client/services/channels/models/fcm-token-collection.d.ts +0 -23
- package/dist/esm/project-client/services/channels/models/fcm-token-collection.d.ts.map +1 -1
- package/dist/esm/project-client/services/channels/models/fcm-token.d.ts +0 -14
- package/dist/esm/project-client/services/channels/models/fcm-token.d.ts.map +1 -1
- package/dist/esm/project-client/services/channels/models/fcm-token.js +0 -5
- package/dist/esm/project-client/services/channels/models/fcm-token.js.map +1 -1
- package/dist/esm/project-client/services/channels/models/index.d.ts +1 -2
- package/dist/esm/project-client/services/channels/models/index.d.ts.map +1 -1
- package/dist/esm/project-client/services/channels/models/index.js +1 -2
- package/dist/esm/project-client/services/channels/models/index.js.map +1 -1
- package/dist/esm/project-client/services/channels/models/installation-id.d.ts +5 -0
- package/dist/esm/project-client/services/channels/models/installation-id.d.ts.map +1 -0
- package/dist/esm/project-client/services/channels/models/installation-id.js +6 -0
- package/dist/esm/project-client/services/channels/models/installation-id.js.map +1 -0
- package/dist/esm/project-client/services/channels/request-params.d.ts +5 -0
- package/dist/esm/project-client/services/channels/request-params.d.ts.map +1 -1
- package/dist/esm/project-client/services/events/events-service.d.ts +4 -4
- package/dist/esm/project-client/services/events/events-service.js +4 -4
- package/dist/esm/project-client/services/integrations/integrations-service.d.ts +144 -81
- package/dist/esm/project-client/services/integrations/integrations-service.d.ts.map +1 -1
- package/dist/esm/project-client/services/integrations/integrations-service.js +332 -80
- package/dist/esm/project-client/services/integrations/integrations-service.js.map +1 -1
- package/dist/esm/project-client/services/integrations/models/event-source-config-collection.d.ts +312 -0
- package/dist/esm/project-client/services/integrations/models/event-source-config-collection.d.ts.map +1 -0
- package/dist/esm/project-client/services/integrations/models/event-source-config-collection.js +43 -0
- package/dist/esm/project-client/services/integrations/models/event-source-config-collection.js.map +1 -0
- package/dist/esm/project-client/services/integrations/models/event-source-config-payload.d.ts +48 -0
- package/dist/esm/project-client/services/integrations/models/event-source-config-payload.d.ts.map +1 -0
- package/dist/esm/project-client/services/integrations/models/event-source-config-payload.js +36 -0
- package/dist/esm/project-client/services/integrations/models/event-source-config-payload.js.map +1 -0
- package/dist/esm/project-client/services/integrations/models/event-source-config.d.ts +122 -0
- package/dist/esm/project-client/services/integrations/models/event-source-config.d.ts.map +1 -0
- package/dist/esm/project-client/services/integrations/models/event-source-config.js +47 -0
- package/dist/esm/project-client/services/integrations/models/event-source-config.js.map +1 -0
- package/dist/esm/project-client/services/integrations/models/index.d.ts +13 -1
- package/dist/esm/project-client/services/integrations/models/index.d.ts.map +1 -1
- package/dist/esm/project-client/services/integrations/models/index.js +1 -0
- package/dist/esm/project-client/services/integrations/models/index.js.map +1 -1
- package/dist/esm/project-client/services/integrations/models/security.d.ts +6 -0
- package/dist/esm/project-client/services/integrations/models/security.d.ts.map +1 -0
- package/dist/esm/project-client/services/integrations/models/security.js +7 -0
- package/dist/esm/project-client/services/integrations/models/security.js.map +1 -0
- package/dist/esm/project-client/services/integrations/models/{reply-to.d.ts → sendgrid-config-payload-reply-to.d.ts} +6 -6
- package/dist/esm/project-client/services/integrations/models/sendgrid-config-payload-reply-to.d.ts.map +1 -0
- package/dist/esm/project-client/services/integrations/models/{reply-to.js → sendgrid-config-payload-reply-to.js} +4 -4
- package/dist/esm/project-client/services/integrations/models/sendgrid-config-payload-reply-to.js.map +1 -0
- package/dist/esm/project-client/services/integrations/models/sendgrid-config-payload.d.ts +1 -1
- package/dist/esm/project-client/services/integrations/models/sendgrid-config-payload.d.ts.map +1 -1
- package/dist/esm/project-client/services/integrations/models/sendgrid-config-payload.js +4 -4
- package/dist/esm/project-client/services/integrations/models/sendgrid-config-payload.js.map +1 -1
- package/dist/esm/project-client/services/integrations/models/slack-bot-config-collection.d.ts +312 -0
- package/dist/esm/project-client/services/integrations/models/slack-bot-config-collection.d.ts.map +1 -0
- package/dist/esm/project-client/services/integrations/models/slack-bot-config-collection.js +43 -0
- package/dist/esm/project-client/services/integrations/models/slack-bot-config-collection.js.map +1 -0
- package/dist/esm/project-client/services/integrations/models/slack-bot-config-payload.d.ts +48 -0
- package/dist/esm/project-client/services/integrations/models/slack-bot-config-payload.d.ts.map +1 -0
- package/dist/esm/project-client/services/integrations/models/slack-bot-config-payload.js +36 -0
- package/dist/esm/project-client/services/integrations/models/slack-bot-config-payload.js.map +1 -0
- package/dist/esm/project-client/services/integrations/models/slack-bot-config.d.ts +122 -0
- package/dist/esm/project-client/services/integrations/models/slack-bot-config.d.ts.map +1 -0
- package/dist/esm/project-client/services/integrations/models/slack-bot-config.js +47 -0
- package/dist/esm/project-client/services/integrations/models/slack-bot-config.js.map +1 -0
- package/dist/esm/project-client/services/integrations/models/smtp-config-from.d.ts +62 -0
- package/dist/esm/project-client/services/integrations/models/smtp-config-from.d.ts.map +1 -0
- package/dist/esm/project-client/services/integrations/models/smtp-config-from.js +41 -0
- package/dist/esm/project-client/services/integrations/models/smtp-config-from.js.map +1 -0
- package/dist/esm/project-client/services/integrations/models/smtp-config-object-collection.d.ts +768 -0
- package/dist/esm/project-client/services/integrations/models/smtp-config-object-collection.d.ts.map +1 -0
- package/dist/esm/project-client/services/integrations/models/smtp-config-object-collection.js +43 -0
- package/dist/esm/project-client/services/integrations/models/smtp-config-object-collection.js.map +1 -0
- package/dist/esm/project-client/services/integrations/models/smtp-config-object.d.ts +458 -0
- package/dist/esm/project-client/services/integrations/models/smtp-config-object.d.ts.map +1 -0
- package/dist/esm/project-client/services/integrations/models/smtp-config-object.js +47 -0
- package/dist/esm/project-client/services/integrations/models/smtp-config-object.js.map +1 -0
- package/dist/esm/project-client/services/integrations/models/smtp-config-reply-to.d.ts +62 -0
- package/dist/esm/project-client/services/integrations/models/smtp-config-reply-to.d.ts.map +1 -0
- package/dist/esm/project-client/services/integrations/models/smtp-config-reply-to.js +41 -0
- package/dist/esm/project-client/services/integrations/models/smtp-config-reply-to.js.map +1 -0
- package/dist/esm/project-client/services/integrations/models/smtp-config.d.ts +270 -0
- package/dist/esm/project-client/services/integrations/models/smtp-config.d.ts.map +1 -0
- package/dist/esm/project-client/services/integrations/models/smtp-config.js +68 -0
- package/dist/esm/project-client/services/integrations/models/smtp-config.js.map +1 -0
- package/dist/esm/project-client/services/integrations/models/stripe-config-collection.d.ts +33 -0
- package/dist/esm/project-client/services/integrations/models/stripe-config-collection.d.ts.map +1 -1
- package/dist/esm/project-client/services/integrations/models/stripe-config-payload.d.ts +14 -0
- package/dist/esm/project-client/services/integrations/models/stripe-config-payload.d.ts.map +1 -1
- package/dist/esm/project-client/services/integrations/models/stripe-config-payload.js +5 -0
- package/dist/esm/project-client/services/integrations/models/stripe-config-payload.js.map +1 -1
- package/dist/esm/project-client/services/integrations/models/stripe-config.d.ts +23 -0
- package/dist/esm/project-client/services/integrations/models/stripe-config.d.ts.map +1 -1
- package/dist/esm/project-client/services/integrations/models/webpush-config-payload.d.ts +1 -1
- package/dist/esm/project-client/services/integrations/request-params.d.ts +9 -0
- package/dist/esm/project-client/services/integrations/request-params.d.ts.map +1 -1
- package/dist/esm/project-client/services/users/users-service.d.ts +6 -6
- package/dist/esm/project-client/services/users/users-service.js +6 -6
- package/dist/esm/project-client/services/workflows/index.d.ts +3 -0
- package/dist/esm/project-client/services/workflows/index.d.ts.map +1 -0
- package/dist/esm/project-client/services/workflows/index.js +3 -0
- package/dist/esm/project-client/services/workflows/index.js.map +1 -0
- package/dist/esm/project-client/services/workflows/models/create-run-response.d.ts +48 -0
- package/dist/esm/project-client/services/workflows/models/create-run-response.d.ts.map +1 -0
- package/dist/esm/project-client/services/workflows/models/create-run-response.js +36 -0
- package/dist/esm/project-client/services/workflows/models/create-run-response.js.map +1 -0
- package/dist/esm/project-client/services/workflows/models/execute-workflow-request.d.ts +62 -0
- package/dist/esm/project-client/services/workflows/models/execute-workflow-request.d.ts.map +1 -0
- package/dist/esm/project-client/services/workflows/models/execute-workflow-request.js +41 -0
- package/dist/esm/project-client/services/workflows/models/execute-workflow-request.js.map +1 -0
- package/dist/esm/project-client/services/workflows/models/get-run-response-status.d.ts +104 -0
- package/dist/esm/project-client/services/workflows/models/get-run-response-status.d.ts.map +1 -0
- package/dist/esm/project-client/services/workflows/models/get-run-response-status.js +56 -0
- package/dist/esm/project-client/services/workflows/models/get-run-response-status.js.map +1 -0
- package/dist/esm/project-client/services/workflows/models/get-run-response.d.ts +228 -0
- package/dist/esm/project-client/services/workflows/models/get-run-response.d.ts.map +1 -0
- package/dist/esm/project-client/services/workflows/models/get-run-response.js +52 -0
- package/dist/esm/project-client/services/workflows/models/get-run-response.js.map +1 -0
- package/dist/esm/project-client/services/workflows/models/index.d.ts +10 -0
- package/dist/esm/project-client/services/workflows/models/index.d.ts.map +1 -0
- package/dist/esm/project-client/services/workflows/models/index.js +2 -0
- package/dist/esm/project-client/services/workflows/models/index.js.map +1 -0
- package/dist/esm/project-client/services/workflows/models/steps.d.ts +76 -0
- package/dist/esm/project-client/services/workflows/models/steps.d.ts.map +1 -0
- package/dist/esm/project-client/services/workflows/models/steps.js +46 -0
- package/dist/esm/project-client/services/workflows/models/steps.js.map +1 -0
- package/dist/esm/project-client/services/workflows/models/workflow-definition.d.ts +168 -0
- package/dist/esm/project-client/services/workflows/models/workflow-definition.d.ts.map +1 -0
- package/dist/esm/project-client/services/workflows/models/workflow-definition.js +56 -0
- package/dist/esm/project-client/services/workflows/models/workflow-definition.js.map +1 -0
- package/dist/esm/project-client/services/workflows/models/workflow-run-collection.d.ts +467 -0
- package/dist/esm/project-client/services/workflows/models/workflow-run-collection.d.ts.map +1 -0
- package/dist/esm/project-client/services/workflows/models/workflow-run-collection.js +43 -0
- package/dist/esm/project-client/services/workflows/models/workflow-run-collection.js.map +1 -0
- package/dist/esm/project-client/services/workflows/models/workflow-run-status.d.ts +104 -0
- package/dist/esm/project-client/services/workflows/models/workflow-run-status.d.ts.map +1 -0
- package/dist/esm/project-client/services/workflows/models/workflow-run-status.js +56 -0
- package/dist/esm/project-client/services/workflows/models/workflow-run-status.js.map +1 -0
- package/dist/esm/project-client/services/workflows/models/workflow-run.d.ts +228 -0
- package/dist/esm/project-client/services/workflows/models/workflow-run.d.ts.map +1 -0
- package/dist/esm/project-client/services/workflows/models/workflow-run.js +52 -0
- package/dist/esm/project-client/services/workflows/models/workflow-run.js.map +1 -0
- package/dist/esm/project-client/services/workflows/workflows-service.d.ts +42 -0
- package/dist/esm/project-client/services/workflows/workflows-service.d.ts.map +1 -0
- package/dist/esm/project-client/services/workflows/workflows-service.js +152 -0
- package/dist/esm/project-client/services/workflows/workflows-service.js.map +1 -0
- package/dist/esm/user-client/http/client.d.ts +4 -2
- package/dist/esm/user-client/http/client.d.ts.map +1 -1
- package/dist/esm/user-client/http/client.js +34 -5
- package/dist/esm/user-client/http/client.js.map +1 -1
- package/dist/esm/user-client/http/handlers/hook-handler.d.ts.map +1 -1
- package/dist/esm/user-client/http/handlers/hook-handler.js +5 -3
- package/dist/esm/user-client/http/handlers/hook-handler.js.map +1 -1
- package/dist/esm/user-client/http/handlers/request-validation-handler.d.ts +1 -1
- package/dist/esm/user-client/http/handlers/request-validation-handler.d.ts.map +1 -1
- package/dist/esm/user-client/http/handlers/request-validation-handler.js +15 -4
- package/dist/esm/user-client/http/handlers/request-validation-handler.js.map +1 -1
- package/dist/esm/user-client/http/handlers/response-validation-handler.js +3 -2
- package/dist/esm/user-client/http/handlers/response-validation-handler.js.map +1 -1
- package/dist/esm/user-client/http/handlers/retry-handler.d.ts.map +1 -1
- package/dist/esm/user-client/http/handlers/retry-handler.js +2 -1
- package/dist/esm/user-client/http/handlers/retry-handler.js.map +1 -1
- package/dist/esm/user-client/http/hooks/hook.d.ts +1 -1
- package/dist/esm/user-client/http/hooks/hook.d.ts.map +1 -1
- package/dist/esm/user-client/http/serialization/query-serializer.d.ts.map +1 -1
- package/dist/esm/user-client/http/serialization/query-serializer.js +4 -0
- package/dist/esm/user-client/http/serialization/query-serializer.js.map +1 -1
- package/dist/esm/user-client/http/transport/request-builder.d.ts +4 -1
- package/dist/esm/user-client/http/transport/request-builder.d.ts.map +1 -1
- package/dist/esm/user-client/http/transport/request-builder.js +23 -1
- package/dist/esm/user-client/http/transport/request-builder.js.map +1 -1
- package/dist/esm/user-client/http/transport/request-fetch-adapter.d.ts +1 -0
- package/dist/esm/user-client/http/transport/request-fetch-adapter.d.ts.map +1 -1
- package/dist/esm/user-client/http/transport/request-fetch-adapter.js +5 -2
- package/dist/esm/user-client/http/transport/request-fetch-adapter.js.map +1 -1
- package/dist/esm/user-client/http/transport/request.d.ts +6 -3
- package/dist/esm/user-client/http/transport/request.d.ts.map +1 -1
- package/dist/esm/user-client/http/transport/request.js +37 -5
- package/dist/esm/user-client/http/transport/request.js.map +1 -1
- package/dist/esm/user-client/http/transport/transport-hook-adapter.d.ts.map +1 -1
- package/dist/esm/user-client/http/transport/transport-hook-adapter.js +2 -1
- package/dist/esm/user-client/http/transport/transport-hook-adapter.js.map +1 -1
- package/dist/esm/user-client/http/transport/types.d.ts +12 -2
- package/dist/esm/user-client/http/transport/types.d.ts.map +1 -1
- package/dist/esm/user-client/http/transport/types.js +3 -1
- package/dist/esm/user-client/http/transport/types.js.map +1 -1
- package/dist/esm/user-client/http/types.d.ts +6 -1
- package/dist/esm/user-client/http/types.d.ts.map +1 -1
- package/dist/esm/user-client/http/types.js.map +1 -1
- package/dist/esm/user-client/http/utils/content-type.d.ts.map +1 -1
- package/dist/esm/user-client/http/utils/content-type.js +22 -9
- package/dist/esm/user-client/http/utils/content-type.js.map +1 -1
- package/dist/esm/user-client/services/channels/channels-service.d.ts +90 -61
- package/dist/esm/user-client/services/channels/channels-service.d.ts.map +1 -1
- package/dist/esm/user-client/services/channels/channels-service.js +187 -60
- package/dist/esm/user-client/services/channels/channels-service.js.map +1 -1
- package/dist/esm/user-client/services/channels/models/fcm-token-collection.d.ts +0 -23
- package/dist/esm/user-client/services/channels/models/fcm-token-collection.d.ts.map +1 -1
- package/dist/esm/user-client/services/channels/models/fcm-token-payload.d.ts +0 -14
- package/dist/esm/user-client/services/channels/models/fcm-token-payload.d.ts.map +1 -1
- package/dist/esm/user-client/services/channels/models/fcm-token-payload.js +0 -5
- package/dist/esm/user-client/services/channels/models/fcm-token-payload.js.map +1 -1
- package/dist/esm/user-client/services/channels/models/fcm-token.d.ts +0 -14
- package/dist/esm/user-client/services/channels/models/fcm-token.d.ts.map +1 -1
- package/dist/esm/user-client/services/channels/models/fcm-token.js +0 -5
- package/dist/esm/user-client/services/channels/models/fcm-token.js.map +1 -1
- package/dist/esm/user-client/services/channels/models/index.d.ts +0 -2
- package/dist/esm/user-client/services/channels/models/index.d.ts.map +1 -1
- package/dist/esm/user-client/services/channels/models/index.js +0 -2
- package/dist/esm/user-client/services/channels/models/index.js.map +1 -1
- package/dist/esm/user-client/services/channels/request-params.d.ts +5 -0
- package/dist/esm/user-client/services/channels/request-params.d.ts.map +1 -1
- package/dist/esm/user-client/services/integrations/integrations-service.d.ts +32 -14
- package/dist/esm/user-client/services/integrations/integrations-service.d.ts.map +1 -1
- package/dist/esm/user-client/services/integrations/integrations-service.js +95 -14
- package/dist/esm/user-client/services/integrations/integrations-service.js.map +1 -1
- package/dist/esm/user-client/services/notifications/notifications-service.d.ts +16 -16
- package/dist/esm/user-client/services/notifications/notifications-service.js +16 -16
- package/package.json +1 -1
- package/src/project-client/http/client.ts +44 -6
- package/src/project-client/http/handlers/hook-handler.ts +6 -3
- package/src/project-client/http/handlers/request-validation-handler.ts +14 -4
- package/src/project-client/http/handlers/response-validation-handler.ts +2 -2
- package/src/project-client/http/handlers/retry-handler.ts +4 -1
- package/src/project-client/http/hooks/hook.ts +1 -1
- package/src/project-client/http/serialization/query-serializer.ts +5 -0
- package/src/project-client/http/transport/request-builder.ts +27 -1
- package/src/project-client/http/transport/request-fetch-adapter.ts +6 -2
- package/src/project-client/http/transport/request.ts +31 -5
- package/src/project-client/http/transport/transport-hook-adapter.ts +1 -0
- package/src/project-client/http/transport/types.ts +18 -2
- package/src/project-client/http/types.ts +9 -1
- package/src/project-client/http/utils/content-type.ts +26 -9
- package/src/project-client/index.ts +10 -0
- package/src/project-client/services/broadcasts/broadcasts-service.ts +6 -6
- package/src/project-client/services/channels/channels-service.ts +177 -46
- package/src/project-client/services/channels/models/apns-token.ts +1 -1
- package/src/project-client/services/channels/models/fcm-token.ts +0 -6
- package/src/project-client/services/channels/models/index.ts +1 -2
- package/src/project-client/services/channels/models/{fcm-token-installation-id.ts → installation-id.ts} +1 -1
- package/src/project-client/services/channels/request-params.ts +6 -0
- package/src/project-client/services/events/events-service.ts +4 -4
- package/src/project-client/services/integrations/integrations-service.ts +375 -80
- package/src/project-client/services/integrations/models/event-source-config-collection.ts +59 -0
- package/src/project-client/services/integrations/models/event-source-config-payload.ts +45 -0
- package/src/project-client/services/integrations/models/event-source-config.ts +64 -0
- package/src/project-client/services/integrations/models/index.ts +13 -1
- package/src/project-client/services/integrations/models/security.ts +7 -0
- package/src/project-client/services/integrations/models/{reply-to.ts → sendgrid-config-payload-reply-to.ts} +5 -5
- package/src/project-client/services/integrations/models/sendgrid-config-payload.ts +10 -5
- package/src/project-client/services/integrations/models/slack-bot-config-collection.ts +54 -0
- package/src/project-client/services/integrations/models/slack-bot-config-payload.ts +45 -0
- package/src/project-client/services/integrations/models/slack-bot-config.ts +64 -0
- package/src/project-client/services/integrations/models/smtp-config-from.ts +51 -0
- package/src/project-client/services/integrations/models/smtp-config-object-collection.ts +59 -0
- package/src/project-client/services/integrations/models/smtp-config-object.ts +59 -0
- package/src/project-client/services/integrations/models/smtp-config-reply-to.ts +51 -0
- package/src/project-client/services/integrations/models/smtp-config.ts +89 -0
- package/src/project-client/services/integrations/models/stripe-config-payload.ts +6 -0
- package/src/project-client/services/integrations/models/webpush-config-payload.ts +1 -1
- package/src/project-client/services/integrations/request-params.ts +12 -0
- package/src/project-client/services/users/users-service.ts +6 -6
- package/src/project-client/services/workflows/index.ts +2 -0
- package/src/project-client/services/workflows/models/create-run-response.ts +45 -0
- package/src/project-client/services/workflows/models/execute-workflow-request.ts +51 -0
- package/src/project-client/services/workflows/models/get-run-response-status.ts +69 -0
- package/src/project-client/services/workflows/models/get-run-response.ts +70 -0
- package/src/project-client/services/workflows/models/index.ts +9 -0
- package/src/project-client/services/workflows/models/steps.ts +57 -0
- package/src/project-client/services/workflows/models/workflow-definition.ts +68 -0
- package/src/project-client/services/workflows/models/workflow-run-collection.ts +54 -0
- package/src/project-client/services/workflows/models/workflow-run-status.ts +69 -0
- package/src/project-client/services/workflows/models/workflow-run.ts +70 -0
- package/src/project-client/services/workflows/workflows-service.ts +172 -0
- package/src/user-client/http/client.ts +44 -6
- package/src/user-client/http/handlers/hook-handler.ts +6 -3
- package/src/user-client/http/handlers/request-validation-handler.ts +14 -4
- package/src/user-client/http/handlers/response-validation-handler.ts +2 -2
- package/src/user-client/http/handlers/retry-handler.ts +4 -1
- package/src/user-client/http/hooks/hook.ts +1 -1
- package/src/user-client/http/serialization/query-serializer.ts +5 -0
- package/src/user-client/http/transport/request-builder.ts +27 -1
- package/src/user-client/http/transport/request-fetch-adapter.ts +6 -2
- package/src/user-client/http/transport/request.ts +31 -5
- package/src/user-client/http/transport/transport-hook-adapter.ts +1 -0
- package/src/user-client/http/transport/types.ts +18 -2
- package/src/user-client/http/types.ts +9 -1
- package/src/user-client/http/utils/content-type.ts +26 -9
- package/src/user-client/services/channels/channels-service.ts +201 -60
- package/src/user-client/services/channels/models/fcm-token-payload.ts +0 -6
- package/src/user-client/services/channels/models/fcm-token.ts +0 -6
- package/src/user-client/services/channels/models/index.ts +0 -2
- package/src/user-client/services/channels/request-params.ts +6 -0
- package/src/user-client/services/integrations/integrations-service.ts +107 -14
- package/src/user-client/services/notifications/notifications-service.ts +16 -16
- package/dist/commonjs/project-client/services/channels/models/apns-token-installation-id.d.ts +0 -5
- package/dist/commonjs/project-client/services/channels/models/apns-token-installation-id.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/channels/models/apns-token-installation-id.js +0 -9
- package/dist/commonjs/project-client/services/channels/models/apns-token-installation-id.js.map +0 -1
- package/dist/commonjs/project-client/services/channels/models/fcm-token-installation-id.d.ts +0 -5
- package/dist/commonjs/project-client/services/channels/models/fcm-token-installation-id.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/channels/models/fcm-token-installation-id.js +0 -9
- package/dist/commonjs/project-client/services/channels/models/fcm-token-installation-id.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/reply-to.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/reply-to.js.map +0 -1
- package/dist/commonjs/user-client/services/channels/models/fcm-token-installation-id.d.ts +0 -5
- package/dist/commonjs/user-client/services/channels/models/fcm-token-installation-id.d.ts.map +0 -1
- package/dist/commonjs/user-client/services/channels/models/fcm-token-installation-id.js +0 -9
- package/dist/commonjs/user-client/services/channels/models/fcm-token-installation-id.js.map +0 -1
- package/dist/commonjs/user-client/services/channels/models/fcm-token-payload-installation-id.d.ts +0 -5
- package/dist/commonjs/user-client/services/channels/models/fcm-token-payload-installation-id.d.ts.map +0 -1
- package/dist/commonjs/user-client/services/channels/models/fcm-token-payload-installation-id.js +0 -9
- package/dist/commonjs/user-client/services/channels/models/fcm-token-payload-installation-id.js.map +0 -1
- package/dist/esm/project-client/services/channels/models/apns-token-installation-id.d.ts +0 -5
- package/dist/esm/project-client/services/channels/models/apns-token-installation-id.d.ts.map +0 -1
- package/dist/esm/project-client/services/channels/models/apns-token-installation-id.js +0 -6
- package/dist/esm/project-client/services/channels/models/apns-token-installation-id.js.map +0 -1
- package/dist/esm/project-client/services/channels/models/fcm-token-installation-id.d.ts +0 -5
- package/dist/esm/project-client/services/channels/models/fcm-token-installation-id.d.ts.map +0 -1
- package/dist/esm/project-client/services/channels/models/fcm-token-installation-id.js +0 -6
- package/dist/esm/project-client/services/channels/models/fcm-token-installation-id.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/reply-to.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/reply-to.js.map +0 -1
- package/dist/esm/user-client/services/channels/models/fcm-token-installation-id.d.ts +0 -5
- package/dist/esm/user-client/services/channels/models/fcm-token-installation-id.d.ts.map +0 -1
- package/dist/esm/user-client/services/channels/models/fcm-token-installation-id.js +0 -6
- package/dist/esm/user-client/services/channels/models/fcm-token-installation-id.js.map +0 -1
- package/dist/esm/user-client/services/channels/models/fcm-token-payload-installation-id.d.ts +0 -5
- package/dist/esm/user-client/services/channels/models/fcm-token-payload-installation-id.d.ts.map +0 -1
- package/dist/esm/user-client/services/channels/models/fcm-token-payload-installation-id.js +0 -6
- package/dist/esm/user-client/services/channels/models/fcm-token-payload-installation-id.js.map +0 -1
- package/src/project-client/services/channels/models/apns-token-installation-id.ts +0 -6
- package/src/user-client/services/channels/models/fcm-token-installation-id.ts +0 -6
- package/src/user-client/services/channels/models/fcm-token-payload-installation-id.ts +0 -6
|
@@ -12,6 +12,15 @@ import {
|
|
|
12
12
|
apnsConfigPayloadRequest,
|
|
13
13
|
apnsConfigPayloadResponse,
|
|
14
14
|
} from './models/apns-config-payload.js';
|
|
15
|
+
import {
|
|
16
|
+
EventSourceConfigCollection,
|
|
17
|
+
eventSourceConfigCollectionResponse,
|
|
18
|
+
} from './models/event-source-config-collection.js';
|
|
19
|
+
import {
|
|
20
|
+
EventSourceConfigPayload,
|
|
21
|
+
eventSourceConfigPayloadRequest,
|
|
22
|
+
eventSourceConfigPayloadResponse,
|
|
23
|
+
} from './models/event-source-config-payload.js';
|
|
15
24
|
import { ExpoConfigCollection, expoConfigCollectionResponse } from './models/expo-config-collection.js';
|
|
16
25
|
import {
|
|
17
26
|
ExpoConfigPayload,
|
|
@@ -56,12 +65,23 @@ import {
|
|
|
56
65
|
} from './models/sendgrid-config-payload.js';
|
|
57
66
|
import { SesConfigCollection, sesConfigCollectionResponse } from './models/ses-config-collection.js';
|
|
58
67
|
import { SesConfigPayload, sesConfigPayloadRequest, sesConfigPayloadResponse } from './models/ses-config-payload.js';
|
|
68
|
+
import { SlackBotConfigCollection, slackBotConfigCollectionResponse } from './models/slack-bot-config-collection.js';
|
|
69
|
+
import {
|
|
70
|
+
SlackBotConfigPayload,
|
|
71
|
+
slackBotConfigPayloadRequest,
|
|
72
|
+
slackBotConfigPayloadResponse,
|
|
73
|
+
} from './models/slack-bot-config-payload.js';
|
|
59
74
|
import { SlackConfigCollection, slackConfigCollectionResponse } from './models/slack-config-collection.js';
|
|
60
75
|
import {
|
|
61
76
|
SlackConfigPayload,
|
|
62
77
|
slackConfigPayloadRequest,
|
|
63
78
|
slackConfigPayloadResponse,
|
|
64
79
|
} from './models/slack-config-payload.js';
|
|
80
|
+
import { SmtpConfig, smtpConfigRequest, smtpConfigResponse } from './models/smtp-config.js';
|
|
81
|
+
import {
|
|
82
|
+
SmtpConfigObjectCollection,
|
|
83
|
+
smtpConfigObjectCollectionResponse,
|
|
84
|
+
} from './models/smtp-config-object-collection.js';
|
|
65
85
|
import { StripeConfigCollection, stripeConfigCollectionResponse } from './models/stripe-config-collection.js';
|
|
66
86
|
import {
|
|
67
87
|
StripeConfigPayload,
|
|
@@ -82,15 +102,18 @@ import {
|
|
|
82
102
|
} from './models/webpush-config-payload.js';
|
|
83
103
|
import {
|
|
84
104
|
DeleteApnsIntegrationParams,
|
|
105
|
+
DeleteEventsourceIntegrationParams,
|
|
85
106
|
DeleteExpoIntegrationParams,
|
|
86
107
|
DeleteFcmIntegrationParams,
|
|
87
108
|
DeleteGithubIntegrationParams,
|
|
88
109
|
DeleteInboxIntegrationParams,
|
|
110
|
+
DeleteMagicbellSlackbotIntegrationParams,
|
|
89
111
|
DeleteMailgunIntegrationParams,
|
|
90
112
|
DeletePingEmailIntegrationParams,
|
|
91
113
|
DeleteSendgridIntegrationParams,
|
|
92
114
|
DeleteSesIntegrationParams,
|
|
93
115
|
DeleteSlackIntegrationParams,
|
|
116
|
+
DeleteSmtpIntegrationParams,
|
|
94
117
|
DeleteStripeIntegrationParams,
|
|
95
118
|
DeleteTwilioIntegrationParams,
|
|
96
119
|
DeleteWebPushIntegrationParams,
|
|
@@ -103,8 +126,8 @@ export class IntegrationsService extends BaseService {
|
|
|
103
126
|
* @param {number} [params.limit] -
|
|
104
127
|
* @param {string} [params.startingAfter] -
|
|
105
128
|
* @param {string} [params.endingBefore] -
|
|
106
|
-
* @param {RequestConfig} requestConfig -
|
|
107
|
-
* @returns {Promise<HttpResponse<IntegrationConfigCollection>>} OK
|
|
129
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
130
|
+
* @returns {Promise<HttpResponse<IntegrationConfigCollection>>} - OK
|
|
108
131
|
*/
|
|
109
132
|
async listIntegrations(
|
|
110
133
|
params?: ListIntegrationsParams,
|
|
@@ -144,8 +167,8 @@ export class IntegrationsService extends BaseService {
|
|
|
144
167
|
|
|
145
168
|
/**
|
|
146
169
|
* Retrieves the current APNs integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
147
|
-
* @param {RequestConfig} requestConfig -
|
|
148
|
-
* @returns {Promise<HttpResponse<ApnsConfigCollection>>} OK
|
|
170
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
171
|
+
* @returns {Promise<HttpResponse<ApnsConfigCollection>>} - OK
|
|
149
172
|
*/
|
|
150
173
|
async listApnsIntegrations(requestConfig?: RequestConfig): Promise<HttpResponse<ApnsConfigCollection>> {
|
|
151
174
|
const request = new RequestBuilder()
|
|
@@ -170,8 +193,8 @@ export class IntegrationsService extends BaseService {
|
|
|
170
193
|
|
|
171
194
|
/**
|
|
172
195
|
* Updates or creates the APNs integration for the project.
|
|
173
|
-
* @param {RequestConfig} requestConfig -
|
|
174
|
-
* @returns {Promise<HttpResponse<ApnsConfigPayload>>} OK
|
|
196
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
197
|
+
* @returns {Promise<HttpResponse<ApnsConfigPayload>>} - OK
|
|
175
198
|
*/
|
|
176
199
|
async saveApnsIntegration(
|
|
177
200
|
body: ApnsConfigPayload,
|
|
@@ -202,8 +225,8 @@ export class IntegrationsService extends BaseService {
|
|
|
202
225
|
/**
|
|
203
226
|
* Deletes the APNs integration configuration from the project. This will disable the integration's functionality within the project.
|
|
204
227
|
* @param {string} [params.id] -
|
|
205
|
-
* @param {RequestConfig} requestConfig -
|
|
206
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
228
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
229
|
+
* @returns {Promise<HttpResponse<any>>} - No Content
|
|
207
230
|
*/
|
|
208
231
|
async deleteApnsIntegration(
|
|
209
232
|
params?: DeleteApnsIntegrationParams,
|
|
@@ -233,10 +256,101 @@ export class IntegrationsService extends BaseService {
|
|
|
233
256
|
return this.client.call<void>(request);
|
|
234
257
|
}
|
|
235
258
|
|
|
259
|
+
/**
|
|
260
|
+
* Retrieves the current EventSource integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
261
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
262
|
+
* @returns {Promise<HttpResponse<EventSourceConfigCollection>>} - OK
|
|
263
|
+
*/
|
|
264
|
+
async listEventsourceIntegrations(requestConfig?: RequestConfig): Promise<HttpResponse<EventSourceConfigCollection>> {
|
|
265
|
+
const request = new RequestBuilder()
|
|
266
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
267
|
+
.setConfig(this.config)
|
|
268
|
+
.setMethod('GET')
|
|
269
|
+
.setPath('/integrations/eventsource')
|
|
270
|
+
.setRequestSchema(z.any())
|
|
271
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
272
|
+
.setRequestContentType(ContentType.Json)
|
|
273
|
+
.addResponse({
|
|
274
|
+
schema: eventSourceConfigCollectionResponse,
|
|
275
|
+
contentType: ContentType.Json,
|
|
276
|
+
status: 200,
|
|
277
|
+
})
|
|
278
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
279
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
280
|
+
.setResponseValidation(this.config, requestConfig)
|
|
281
|
+
.build();
|
|
282
|
+
return this.client.call<EventSourceConfigCollection>(request);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Updates or creates the EventSource integration for the project.
|
|
287
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
288
|
+
* @returns {Promise<HttpResponse<EventSourceConfigPayload>>} - OK
|
|
289
|
+
*/
|
|
290
|
+
async saveEventsourceIntegration(
|
|
291
|
+
body: EventSourceConfigPayload,
|
|
292
|
+
requestConfig?: RequestConfig,
|
|
293
|
+
): Promise<HttpResponse<EventSourceConfigPayload>> {
|
|
294
|
+
const request = new RequestBuilder()
|
|
295
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
296
|
+
.setConfig(this.config)
|
|
297
|
+
.setMethod('PUT')
|
|
298
|
+
.setPath('/integrations/eventsource')
|
|
299
|
+
.setRequestSchema(eventSourceConfigPayloadRequest)
|
|
300
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
301
|
+
.setRequestContentType(ContentType.Json)
|
|
302
|
+
.addResponse({
|
|
303
|
+
schema: eventSourceConfigPayloadResponse,
|
|
304
|
+
contentType: ContentType.Json,
|
|
305
|
+
status: 200,
|
|
306
|
+
})
|
|
307
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
308
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
309
|
+
.setResponseValidation(this.config, requestConfig)
|
|
310
|
+
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
311
|
+
.addBody(body)
|
|
312
|
+
.build();
|
|
313
|
+
return this.client.call<EventSourceConfigPayload>(request);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Deletes the EventSource integration configuration from the project. This will disable the integration's functionality within the project.
|
|
318
|
+
* @param {string} [params.id] -
|
|
319
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
320
|
+
* @returns {Promise<HttpResponse<any>>} - No Content
|
|
321
|
+
*/
|
|
322
|
+
async deleteEventsourceIntegration(
|
|
323
|
+
params?: DeleteEventsourceIntegrationParams,
|
|
324
|
+
requestConfig?: RequestConfig,
|
|
325
|
+
): Promise<HttpResponse<void>> {
|
|
326
|
+
const request = new RequestBuilder()
|
|
327
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
328
|
+
.setConfig(this.config)
|
|
329
|
+
.setMethod('DELETE')
|
|
330
|
+
.setPath('/integrations/eventsource')
|
|
331
|
+
.setRequestSchema(z.any())
|
|
332
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
333
|
+
.setRequestContentType(ContentType.Json)
|
|
334
|
+
.addResponse({
|
|
335
|
+
schema: z.undefined(),
|
|
336
|
+
contentType: ContentType.NoContent,
|
|
337
|
+
status: 204,
|
|
338
|
+
})
|
|
339
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
340
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
341
|
+
.setResponseValidation(this.config, requestConfig)
|
|
342
|
+
.addQueryParam({
|
|
343
|
+
key: 'id',
|
|
344
|
+
value: params?.id,
|
|
345
|
+
})
|
|
346
|
+
.build();
|
|
347
|
+
return this.client.call<void>(request);
|
|
348
|
+
}
|
|
349
|
+
|
|
236
350
|
/**
|
|
237
351
|
* Retrieves the current Expo integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
238
|
-
* @param {RequestConfig} requestConfig -
|
|
239
|
-
* @returns {Promise<HttpResponse<ExpoConfigCollection>>} OK
|
|
352
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
353
|
+
* @returns {Promise<HttpResponse<ExpoConfigCollection>>} - OK
|
|
240
354
|
*/
|
|
241
355
|
async listExpoIntegrations(requestConfig?: RequestConfig): Promise<HttpResponse<ExpoConfigCollection>> {
|
|
242
356
|
const request = new RequestBuilder()
|
|
@@ -261,8 +375,8 @@ export class IntegrationsService extends BaseService {
|
|
|
261
375
|
|
|
262
376
|
/**
|
|
263
377
|
* Updates or creates the Expo integration for the project.
|
|
264
|
-
* @param {RequestConfig} requestConfig -
|
|
265
|
-
* @returns {Promise<HttpResponse<ExpoConfigPayload>>} OK
|
|
378
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
379
|
+
* @returns {Promise<HttpResponse<ExpoConfigPayload>>} - OK
|
|
266
380
|
*/
|
|
267
381
|
async saveExpoIntegration(
|
|
268
382
|
body: ExpoConfigPayload,
|
|
@@ -293,8 +407,8 @@ export class IntegrationsService extends BaseService {
|
|
|
293
407
|
/**
|
|
294
408
|
* Deletes the Expo integration configuration from the project. This will disable the integration's functionality within the project.
|
|
295
409
|
* @param {string} [params.id] -
|
|
296
|
-
* @param {RequestConfig} requestConfig -
|
|
297
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
410
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
411
|
+
* @returns {Promise<HttpResponse<any>>} - No Content
|
|
298
412
|
*/
|
|
299
413
|
async deleteExpoIntegration(
|
|
300
414
|
params?: DeleteExpoIntegrationParams,
|
|
@@ -326,8 +440,8 @@ export class IntegrationsService extends BaseService {
|
|
|
326
440
|
|
|
327
441
|
/**
|
|
328
442
|
* Retrieves the current FCM integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
329
|
-
* @param {RequestConfig} requestConfig -
|
|
330
|
-
* @returns {Promise<HttpResponse<FcmConfigCollection>>} OK
|
|
443
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
444
|
+
* @returns {Promise<HttpResponse<FcmConfigCollection>>} - OK
|
|
331
445
|
*/
|
|
332
446
|
async listFcmIntegrations(requestConfig?: RequestConfig): Promise<HttpResponse<FcmConfigCollection>> {
|
|
333
447
|
const request = new RequestBuilder()
|
|
@@ -352,8 +466,8 @@ export class IntegrationsService extends BaseService {
|
|
|
352
466
|
|
|
353
467
|
/**
|
|
354
468
|
* Updates or creates the FCM integration for the project.
|
|
355
|
-
* @param {RequestConfig} requestConfig -
|
|
356
|
-
* @returns {Promise<HttpResponse<FcmConfigPayload>>} OK
|
|
469
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
470
|
+
* @returns {Promise<HttpResponse<FcmConfigPayload>>} - OK
|
|
357
471
|
*/
|
|
358
472
|
async saveFcmIntegration(
|
|
359
473
|
body: FcmConfigPayload,
|
|
@@ -384,8 +498,8 @@ export class IntegrationsService extends BaseService {
|
|
|
384
498
|
/**
|
|
385
499
|
* Deletes the FCM integration configuration from the project. This will disable the integration's functionality within the project.
|
|
386
500
|
* @param {string} [params.id] -
|
|
387
|
-
* @param {RequestConfig} requestConfig -
|
|
388
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
501
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
502
|
+
* @returns {Promise<HttpResponse<any>>} - No Content
|
|
389
503
|
*/
|
|
390
504
|
async deleteFcmIntegration(
|
|
391
505
|
params?: DeleteFcmIntegrationParams,
|
|
@@ -417,8 +531,8 @@ export class IntegrationsService extends BaseService {
|
|
|
417
531
|
|
|
418
532
|
/**
|
|
419
533
|
* Retrieves the current GitHub integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
420
|
-
* @param {RequestConfig} requestConfig -
|
|
421
|
-
* @returns {Promise<HttpResponse<GithubConfigCollection>>} OK
|
|
534
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
535
|
+
* @returns {Promise<HttpResponse<GithubConfigCollection>>} - OK
|
|
422
536
|
*/
|
|
423
537
|
async listGithubIntegrations(requestConfig?: RequestConfig): Promise<HttpResponse<GithubConfigCollection>> {
|
|
424
538
|
const request = new RequestBuilder()
|
|
@@ -443,8 +557,8 @@ export class IntegrationsService extends BaseService {
|
|
|
443
557
|
|
|
444
558
|
/**
|
|
445
559
|
* Updates or creates the GitHub integration for the project.
|
|
446
|
-
* @param {RequestConfig} requestConfig -
|
|
447
|
-
* @returns {Promise<HttpResponse<GithubConfigPayload>>} OK
|
|
560
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
561
|
+
* @returns {Promise<HttpResponse<GithubConfigPayload>>} - OK
|
|
448
562
|
*/
|
|
449
563
|
async saveGithubIntegration(
|
|
450
564
|
body: GithubConfigPayload,
|
|
@@ -475,8 +589,8 @@ export class IntegrationsService extends BaseService {
|
|
|
475
589
|
/**
|
|
476
590
|
* Deletes the GitHub integration configuration from the project. This will disable the integration's functionality within the project.
|
|
477
591
|
* @param {string} [params.id] -
|
|
478
|
-
* @param {RequestConfig} requestConfig -
|
|
479
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
592
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
593
|
+
* @returns {Promise<HttpResponse<any>>} - No Content
|
|
480
594
|
*/
|
|
481
595
|
async deleteGithubIntegration(
|
|
482
596
|
params?: DeleteGithubIntegrationParams,
|
|
@@ -508,8 +622,8 @@ export class IntegrationsService extends BaseService {
|
|
|
508
622
|
|
|
509
623
|
/**
|
|
510
624
|
* Retrieves the current Inbox integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
511
|
-
* @param {RequestConfig} requestConfig -
|
|
512
|
-
* @returns {Promise<HttpResponse<InboxConfigCollection>>} OK
|
|
625
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
626
|
+
* @returns {Promise<HttpResponse<InboxConfigCollection>>} - OK
|
|
513
627
|
*/
|
|
514
628
|
async listInboxIntegrations(requestConfig?: RequestConfig): Promise<HttpResponse<InboxConfigCollection>> {
|
|
515
629
|
const request = new RequestBuilder()
|
|
@@ -534,8 +648,8 @@ export class IntegrationsService extends BaseService {
|
|
|
534
648
|
|
|
535
649
|
/**
|
|
536
650
|
* Updates or creates the Inbox integration for the project.
|
|
537
|
-
* @param {RequestConfig} requestConfig -
|
|
538
|
-
* @returns {Promise<HttpResponse<InboxConfigPayload>>} OK
|
|
651
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
652
|
+
* @returns {Promise<HttpResponse<InboxConfigPayload>>} - OK
|
|
539
653
|
*/
|
|
540
654
|
async saveInboxIntegration(
|
|
541
655
|
body: InboxConfigPayload,
|
|
@@ -566,8 +680,8 @@ export class IntegrationsService extends BaseService {
|
|
|
566
680
|
/**
|
|
567
681
|
* Deletes the Inbox integration configuration from the project. This will disable the integration's functionality within the project.
|
|
568
682
|
* @param {string} [params.id] -
|
|
569
|
-
* @param {RequestConfig} requestConfig -
|
|
570
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
683
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
684
|
+
* @returns {Promise<HttpResponse<any>>} - No Content
|
|
571
685
|
*/
|
|
572
686
|
async deleteInboxIntegration(
|
|
573
687
|
params?: DeleteInboxIntegrationParams,
|
|
@@ -597,10 +711,103 @@ export class IntegrationsService extends BaseService {
|
|
|
597
711
|
return this.client.call<void>(request);
|
|
598
712
|
}
|
|
599
713
|
|
|
714
|
+
/**
|
|
715
|
+
* Retrieves the current MagicBell SlackBot integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
716
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
717
|
+
* @returns {Promise<HttpResponse<SlackBotConfigCollection>>} - OK
|
|
718
|
+
*/
|
|
719
|
+
async listMagicbellSlackbotIntegrations(
|
|
720
|
+
requestConfig?: RequestConfig,
|
|
721
|
+
): Promise<HttpResponse<SlackBotConfigCollection>> {
|
|
722
|
+
const request = new RequestBuilder()
|
|
723
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
724
|
+
.setConfig(this.config)
|
|
725
|
+
.setMethod('GET')
|
|
726
|
+
.setPath('/integrations/magicbell_slackbot')
|
|
727
|
+
.setRequestSchema(z.any())
|
|
728
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
729
|
+
.setRequestContentType(ContentType.Json)
|
|
730
|
+
.addResponse({
|
|
731
|
+
schema: slackBotConfigCollectionResponse,
|
|
732
|
+
contentType: ContentType.Json,
|
|
733
|
+
status: 200,
|
|
734
|
+
})
|
|
735
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
736
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
737
|
+
.setResponseValidation(this.config, requestConfig)
|
|
738
|
+
.build();
|
|
739
|
+
return this.client.call<SlackBotConfigCollection>(request);
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Updates or creates the MagicBell SlackBot integration for the project.
|
|
744
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
745
|
+
* @returns {Promise<HttpResponse<SlackBotConfigPayload>>} - OK
|
|
746
|
+
*/
|
|
747
|
+
async saveMagicbellSlackbotIntegration(
|
|
748
|
+
body: SlackBotConfigPayload,
|
|
749
|
+
requestConfig?: RequestConfig,
|
|
750
|
+
): Promise<HttpResponse<SlackBotConfigPayload>> {
|
|
751
|
+
const request = new RequestBuilder()
|
|
752
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
753
|
+
.setConfig(this.config)
|
|
754
|
+
.setMethod('PUT')
|
|
755
|
+
.setPath('/integrations/magicbell_slackbot')
|
|
756
|
+
.setRequestSchema(slackBotConfigPayloadRequest)
|
|
757
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
758
|
+
.setRequestContentType(ContentType.Json)
|
|
759
|
+
.addResponse({
|
|
760
|
+
schema: slackBotConfigPayloadResponse,
|
|
761
|
+
contentType: ContentType.Json,
|
|
762
|
+
status: 200,
|
|
763
|
+
})
|
|
764
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
765
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
766
|
+
.setResponseValidation(this.config, requestConfig)
|
|
767
|
+
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
768
|
+
.addBody(body)
|
|
769
|
+
.build();
|
|
770
|
+
return this.client.call<SlackBotConfigPayload>(request);
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* Deletes the MagicBell SlackBot integration configuration from the project. This will disable the integration's functionality within the project.
|
|
775
|
+
* @param {string} [params.id] -
|
|
776
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
777
|
+
* @returns {Promise<HttpResponse<any>>} - No Content
|
|
778
|
+
*/
|
|
779
|
+
async deleteMagicbellSlackbotIntegration(
|
|
780
|
+
params?: DeleteMagicbellSlackbotIntegrationParams,
|
|
781
|
+
requestConfig?: RequestConfig,
|
|
782
|
+
): Promise<HttpResponse<void>> {
|
|
783
|
+
const request = new RequestBuilder()
|
|
784
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
785
|
+
.setConfig(this.config)
|
|
786
|
+
.setMethod('DELETE')
|
|
787
|
+
.setPath('/integrations/magicbell_slackbot')
|
|
788
|
+
.setRequestSchema(z.any())
|
|
789
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
790
|
+
.setRequestContentType(ContentType.Json)
|
|
791
|
+
.addResponse({
|
|
792
|
+
schema: z.undefined(),
|
|
793
|
+
contentType: ContentType.NoContent,
|
|
794
|
+
status: 204,
|
|
795
|
+
})
|
|
796
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
797
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
798
|
+
.setResponseValidation(this.config, requestConfig)
|
|
799
|
+
.addQueryParam({
|
|
800
|
+
key: 'id',
|
|
801
|
+
value: params?.id,
|
|
802
|
+
})
|
|
803
|
+
.build();
|
|
804
|
+
return this.client.call<void>(request);
|
|
805
|
+
}
|
|
806
|
+
|
|
600
807
|
/**
|
|
601
808
|
* Retrieves the current Mailgun integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
602
|
-
* @param {RequestConfig} requestConfig -
|
|
603
|
-
* @returns {Promise<HttpResponse<MailgunConfigCollection>>} OK
|
|
809
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
810
|
+
* @returns {Promise<HttpResponse<MailgunConfigCollection>>} - OK
|
|
604
811
|
*/
|
|
605
812
|
async listMailgunIntegrations(requestConfig?: RequestConfig): Promise<HttpResponse<MailgunConfigCollection>> {
|
|
606
813
|
const request = new RequestBuilder()
|
|
@@ -625,8 +832,8 @@ export class IntegrationsService extends BaseService {
|
|
|
625
832
|
|
|
626
833
|
/**
|
|
627
834
|
* Updates or creates the Mailgun integration for the project.
|
|
628
|
-
* @param {RequestConfig} requestConfig -
|
|
629
|
-
* @returns {Promise<HttpResponse<MailgunConfigPayload>>} OK
|
|
835
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
836
|
+
* @returns {Promise<HttpResponse<MailgunConfigPayload>>} - OK
|
|
630
837
|
*/
|
|
631
838
|
async saveMailgunIntegration(
|
|
632
839
|
body: MailgunConfigPayload,
|
|
@@ -657,8 +864,8 @@ export class IntegrationsService extends BaseService {
|
|
|
657
864
|
/**
|
|
658
865
|
* Deletes the Mailgun integration configuration from the project. This will disable the integration's functionality within the project.
|
|
659
866
|
* @param {string} [params.id] -
|
|
660
|
-
* @param {RequestConfig} requestConfig -
|
|
661
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
867
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
868
|
+
* @returns {Promise<HttpResponse<any>>} - No Content
|
|
662
869
|
*/
|
|
663
870
|
async deleteMailgunIntegration(
|
|
664
871
|
params?: DeleteMailgunIntegrationParams,
|
|
@@ -690,8 +897,8 @@ export class IntegrationsService extends BaseService {
|
|
|
690
897
|
|
|
691
898
|
/**
|
|
692
899
|
* Retrieves the current Ping Email integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
693
|
-
* @param {RequestConfig} requestConfig -
|
|
694
|
-
* @returns {Promise<HttpResponse<PingConfigCollection>>} OK
|
|
900
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
901
|
+
* @returns {Promise<HttpResponse<PingConfigCollection>>} - OK
|
|
695
902
|
*/
|
|
696
903
|
async listPingEmailIntegrations(requestConfig?: RequestConfig): Promise<HttpResponse<PingConfigCollection>> {
|
|
697
904
|
const request = new RequestBuilder()
|
|
@@ -716,8 +923,8 @@ export class IntegrationsService extends BaseService {
|
|
|
716
923
|
|
|
717
924
|
/**
|
|
718
925
|
* Updates or creates the Ping Email integration for the project.
|
|
719
|
-
* @param {RequestConfig} requestConfig -
|
|
720
|
-
* @returns {Promise<HttpResponse<PingConfigPayload>>} OK
|
|
926
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
927
|
+
* @returns {Promise<HttpResponse<PingConfigPayload>>} - OK
|
|
721
928
|
*/
|
|
722
929
|
async savePingEmailIntegration(
|
|
723
930
|
body: PingConfigPayload,
|
|
@@ -748,8 +955,8 @@ export class IntegrationsService extends BaseService {
|
|
|
748
955
|
/**
|
|
749
956
|
* Deletes the Ping Email integration configuration from the project. This will disable the integration's functionality within the project.
|
|
750
957
|
* @param {string} [params.id] -
|
|
751
|
-
* @param {RequestConfig} requestConfig -
|
|
752
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
958
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
959
|
+
* @returns {Promise<HttpResponse<any>>} - No Content
|
|
753
960
|
*/
|
|
754
961
|
async deletePingEmailIntegration(
|
|
755
962
|
params?: DeletePingEmailIntegrationParams,
|
|
@@ -781,8 +988,8 @@ export class IntegrationsService extends BaseService {
|
|
|
781
988
|
|
|
782
989
|
/**
|
|
783
990
|
* Retrieves the current SendGrid integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
784
|
-
* @param {RequestConfig} requestConfig -
|
|
785
|
-
* @returns {Promise<HttpResponse<SendgridConfigCollection>>} OK
|
|
991
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
992
|
+
* @returns {Promise<HttpResponse<SendgridConfigCollection>>} - OK
|
|
786
993
|
*/
|
|
787
994
|
async listSendgridIntegrations(requestConfig?: RequestConfig): Promise<HttpResponse<SendgridConfigCollection>> {
|
|
788
995
|
const request = new RequestBuilder()
|
|
@@ -807,8 +1014,8 @@ export class IntegrationsService extends BaseService {
|
|
|
807
1014
|
|
|
808
1015
|
/**
|
|
809
1016
|
* Updates or creates the SendGrid integration for the project.
|
|
810
|
-
* @param {RequestConfig} requestConfig -
|
|
811
|
-
* @returns {Promise<HttpResponse<SendgridConfigPayload>>} OK
|
|
1017
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1018
|
+
* @returns {Promise<HttpResponse<SendgridConfigPayload>>} - OK
|
|
812
1019
|
*/
|
|
813
1020
|
async saveSendgridIntegration(
|
|
814
1021
|
body: SendgridConfigPayload,
|
|
@@ -839,8 +1046,8 @@ export class IntegrationsService extends BaseService {
|
|
|
839
1046
|
/**
|
|
840
1047
|
* Deletes the SendGrid integration configuration from the project. This will disable the integration's functionality within the project.
|
|
841
1048
|
* @param {string} [params.id] -
|
|
842
|
-
* @param {RequestConfig} requestConfig -
|
|
843
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1049
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1050
|
+
* @returns {Promise<HttpResponse<any>>} - No Content
|
|
844
1051
|
*/
|
|
845
1052
|
async deleteSendgridIntegration(
|
|
846
1053
|
params?: DeleteSendgridIntegrationParams,
|
|
@@ -872,8 +1079,8 @@ export class IntegrationsService extends BaseService {
|
|
|
872
1079
|
|
|
873
1080
|
/**
|
|
874
1081
|
* Retrieves the current Amazon SES integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
875
|
-
* @param {RequestConfig} requestConfig -
|
|
876
|
-
* @returns {Promise<HttpResponse<SesConfigCollection>>} OK
|
|
1082
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1083
|
+
* @returns {Promise<HttpResponse<SesConfigCollection>>} - OK
|
|
877
1084
|
*/
|
|
878
1085
|
async listSesIntegrations(requestConfig?: RequestConfig): Promise<HttpResponse<SesConfigCollection>> {
|
|
879
1086
|
const request = new RequestBuilder()
|
|
@@ -898,8 +1105,8 @@ export class IntegrationsService extends BaseService {
|
|
|
898
1105
|
|
|
899
1106
|
/**
|
|
900
1107
|
* Updates or creates the Amazon SES integration for the project.
|
|
901
|
-
* @param {RequestConfig} requestConfig -
|
|
902
|
-
* @returns {Promise<HttpResponse<SesConfigPayload>>} OK
|
|
1108
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1109
|
+
* @returns {Promise<HttpResponse<SesConfigPayload>>} - OK
|
|
903
1110
|
*/
|
|
904
1111
|
async saveSesIntegration(
|
|
905
1112
|
body: SesConfigPayload,
|
|
@@ -930,8 +1137,8 @@ export class IntegrationsService extends BaseService {
|
|
|
930
1137
|
/**
|
|
931
1138
|
* Deletes the Amazon SES integration configuration from the project. This will disable the integration's functionality within the project.
|
|
932
1139
|
* @param {string} [params.id] -
|
|
933
|
-
* @param {RequestConfig} requestConfig -
|
|
934
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1140
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1141
|
+
* @returns {Promise<HttpResponse<any>>} - No Content
|
|
935
1142
|
*/
|
|
936
1143
|
async deleteSesIntegration(
|
|
937
1144
|
params?: DeleteSesIntegrationParams,
|
|
@@ -963,8 +1170,8 @@ export class IntegrationsService extends BaseService {
|
|
|
963
1170
|
|
|
964
1171
|
/**
|
|
965
1172
|
* Retrieves the current Slack integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
966
|
-
* @param {RequestConfig} requestConfig -
|
|
967
|
-
* @returns {Promise<HttpResponse<SlackConfigCollection>>} OK
|
|
1173
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1174
|
+
* @returns {Promise<HttpResponse<SlackConfigCollection>>} - OK
|
|
968
1175
|
*/
|
|
969
1176
|
async listSlackIntegrations(requestConfig?: RequestConfig): Promise<HttpResponse<SlackConfigCollection>> {
|
|
970
1177
|
const request = new RequestBuilder()
|
|
@@ -989,8 +1196,8 @@ export class IntegrationsService extends BaseService {
|
|
|
989
1196
|
|
|
990
1197
|
/**
|
|
991
1198
|
* Updates or creates the Slack integration for the project.
|
|
992
|
-
* @param {RequestConfig} requestConfig -
|
|
993
|
-
* @returns {Promise<HttpResponse<SlackConfigPayload>>} OK
|
|
1199
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1200
|
+
* @returns {Promise<HttpResponse<SlackConfigPayload>>} - OK
|
|
994
1201
|
*/
|
|
995
1202
|
async saveSlackIntegration(
|
|
996
1203
|
body: SlackConfigPayload,
|
|
@@ -1021,8 +1228,8 @@ export class IntegrationsService extends BaseService {
|
|
|
1021
1228
|
/**
|
|
1022
1229
|
* Deletes the Slack integration configuration from the project. This will disable the integration's functionality within the project.
|
|
1023
1230
|
* @param {string} [params.id] -
|
|
1024
|
-
* @param {RequestConfig} requestConfig -
|
|
1025
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1231
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1232
|
+
* @returns {Promise<HttpResponse<any>>} - No Content
|
|
1026
1233
|
*/
|
|
1027
1234
|
async deleteSlackIntegration(
|
|
1028
1235
|
params?: DeleteSlackIntegrationParams,
|
|
@@ -1052,10 +1259,98 @@ export class IntegrationsService extends BaseService {
|
|
|
1052
1259
|
return this.client.call<void>(request);
|
|
1053
1260
|
}
|
|
1054
1261
|
|
|
1262
|
+
/**
|
|
1263
|
+
* Retrieves the current SMTP integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1264
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1265
|
+
* @returns {Promise<HttpResponse<SmtpConfigObjectCollection>>} - OK
|
|
1266
|
+
*/
|
|
1267
|
+
async listSmtpIntegrations(requestConfig?: RequestConfig): Promise<HttpResponse<SmtpConfigObjectCollection>> {
|
|
1268
|
+
const request = new RequestBuilder()
|
|
1269
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1270
|
+
.setConfig(this.config)
|
|
1271
|
+
.setMethod('GET')
|
|
1272
|
+
.setPath('/integrations/smtp')
|
|
1273
|
+
.setRequestSchema(z.any())
|
|
1274
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1275
|
+
.setRequestContentType(ContentType.Json)
|
|
1276
|
+
.addResponse({
|
|
1277
|
+
schema: smtpConfigObjectCollectionResponse,
|
|
1278
|
+
contentType: ContentType.Json,
|
|
1279
|
+
status: 200,
|
|
1280
|
+
})
|
|
1281
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1282
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1283
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1284
|
+
.build();
|
|
1285
|
+
return this.client.call<SmtpConfigObjectCollection>(request);
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
/**
|
|
1289
|
+
* Updates or creates the SMTP integration for the project.
|
|
1290
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1291
|
+
* @returns {Promise<HttpResponse<SmtpConfig>>} - OK
|
|
1292
|
+
*/
|
|
1293
|
+
async saveSmtpIntegration(body: SmtpConfig, requestConfig?: RequestConfig): Promise<HttpResponse<SmtpConfig>> {
|
|
1294
|
+
const request = new RequestBuilder()
|
|
1295
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1296
|
+
.setConfig(this.config)
|
|
1297
|
+
.setMethod('PUT')
|
|
1298
|
+
.setPath('/integrations/smtp')
|
|
1299
|
+
.setRequestSchema(smtpConfigRequest)
|
|
1300
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1301
|
+
.setRequestContentType(ContentType.Json)
|
|
1302
|
+
.addResponse({
|
|
1303
|
+
schema: smtpConfigResponse,
|
|
1304
|
+
contentType: ContentType.Json,
|
|
1305
|
+
status: 200,
|
|
1306
|
+
})
|
|
1307
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1308
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1309
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1310
|
+
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
1311
|
+
.addBody(body)
|
|
1312
|
+
.build();
|
|
1313
|
+
return this.client.call<SmtpConfig>(request);
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
/**
|
|
1317
|
+
* Deletes the SMTP integration configuration from the project. This will disable the integration's functionality within the project.
|
|
1318
|
+
* @param {string} [params.id] -
|
|
1319
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1320
|
+
* @returns {Promise<HttpResponse<any>>} - No Content
|
|
1321
|
+
*/
|
|
1322
|
+
async deleteSmtpIntegration(
|
|
1323
|
+
params?: DeleteSmtpIntegrationParams,
|
|
1324
|
+
requestConfig?: RequestConfig,
|
|
1325
|
+
): Promise<HttpResponse<void>> {
|
|
1326
|
+
const request = new RequestBuilder()
|
|
1327
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1328
|
+
.setConfig(this.config)
|
|
1329
|
+
.setMethod('DELETE')
|
|
1330
|
+
.setPath('/integrations/smtp')
|
|
1331
|
+
.setRequestSchema(z.any())
|
|
1332
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1333
|
+
.setRequestContentType(ContentType.Json)
|
|
1334
|
+
.addResponse({
|
|
1335
|
+
schema: z.undefined(),
|
|
1336
|
+
contentType: ContentType.NoContent,
|
|
1337
|
+
status: 204,
|
|
1338
|
+
})
|
|
1339
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1340
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1341
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1342
|
+
.addQueryParam({
|
|
1343
|
+
key: 'id',
|
|
1344
|
+
value: params?.id,
|
|
1345
|
+
})
|
|
1346
|
+
.build();
|
|
1347
|
+
return this.client.call<void>(request);
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1055
1350
|
/**
|
|
1056
1351
|
* Retrieves the current Stripe integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1057
|
-
* @param {RequestConfig} requestConfig -
|
|
1058
|
-
* @returns {Promise<HttpResponse<StripeConfigCollection>>} OK
|
|
1352
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1353
|
+
* @returns {Promise<HttpResponse<StripeConfigCollection>>} - OK
|
|
1059
1354
|
*/
|
|
1060
1355
|
async listStripeIntegrations(requestConfig?: RequestConfig): Promise<HttpResponse<StripeConfigCollection>> {
|
|
1061
1356
|
const request = new RequestBuilder()
|
|
@@ -1080,8 +1375,8 @@ export class IntegrationsService extends BaseService {
|
|
|
1080
1375
|
|
|
1081
1376
|
/**
|
|
1082
1377
|
* Updates or creates the Stripe integration for the project.
|
|
1083
|
-
* @param {RequestConfig} requestConfig -
|
|
1084
|
-
* @returns {Promise<HttpResponse<StripeConfigPayload>>} OK
|
|
1378
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1379
|
+
* @returns {Promise<HttpResponse<StripeConfigPayload>>} - OK
|
|
1085
1380
|
*/
|
|
1086
1381
|
async saveStripeIntegration(
|
|
1087
1382
|
body: StripeConfigPayload,
|
|
@@ -1112,8 +1407,8 @@ export class IntegrationsService extends BaseService {
|
|
|
1112
1407
|
/**
|
|
1113
1408
|
* Deletes the Stripe integration configuration from the project. This will disable the integration's functionality within the project.
|
|
1114
1409
|
* @param {string} [params.id] -
|
|
1115
|
-
* @param {RequestConfig} requestConfig -
|
|
1116
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1410
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1411
|
+
* @returns {Promise<HttpResponse<any>>} - No Content
|
|
1117
1412
|
*/
|
|
1118
1413
|
async deleteStripeIntegration(
|
|
1119
1414
|
params?: DeleteStripeIntegrationParams,
|
|
@@ -1145,8 +1440,8 @@ export class IntegrationsService extends BaseService {
|
|
|
1145
1440
|
|
|
1146
1441
|
/**
|
|
1147
1442
|
* Retrieves the current Twilio integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1148
|
-
* @param {RequestConfig} requestConfig -
|
|
1149
|
-
* @returns {Promise<HttpResponse<TwilioConfigCollection>>} OK
|
|
1443
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1444
|
+
* @returns {Promise<HttpResponse<TwilioConfigCollection>>} - OK
|
|
1150
1445
|
*/
|
|
1151
1446
|
async listTwilioIntegrations(requestConfig?: RequestConfig): Promise<HttpResponse<TwilioConfigCollection>> {
|
|
1152
1447
|
const request = new RequestBuilder()
|
|
@@ -1171,8 +1466,8 @@ export class IntegrationsService extends BaseService {
|
|
|
1171
1466
|
|
|
1172
1467
|
/**
|
|
1173
1468
|
* Updates or creates the Twilio integration for the project.
|
|
1174
|
-
* @param {RequestConfig} requestConfig -
|
|
1175
|
-
* @returns {Promise<HttpResponse<TwilioConfigPayload>>} OK
|
|
1469
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1470
|
+
* @returns {Promise<HttpResponse<TwilioConfigPayload>>} - OK
|
|
1176
1471
|
*/
|
|
1177
1472
|
async saveTwilioIntegration(
|
|
1178
1473
|
body: TwilioConfigPayload,
|
|
@@ -1203,8 +1498,8 @@ export class IntegrationsService extends BaseService {
|
|
|
1203
1498
|
/**
|
|
1204
1499
|
* Deletes the Twilio integration configuration from the project. This will disable the integration's functionality within the project.
|
|
1205
1500
|
* @param {string} [params.id] -
|
|
1206
|
-
* @param {RequestConfig} requestConfig -
|
|
1207
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1501
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1502
|
+
* @returns {Promise<HttpResponse<any>>} - No Content
|
|
1208
1503
|
*/
|
|
1209
1504
|
async deleteTwilioIntegration(
|
|
1210
1505
|
params?: DeleteTwilioIntegrationParams,
|
|
@@ -1236,8 +1531,8 @@ export class IntegrationsService extends BaseService {
|
|
|
1236
1531
|
|
|
1237
1532
|
/**
|
|
1238
1533
|
* Retrieves the current Web Push integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1239
|
-
* @param {RequestConfig} requestConfig -
|
|
1240
|
-
* @returns {Promise<HttpResponse<WebpushConfigCollection>>} OK
|
|
1534
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1535
|
+
* @returns {Promise<HttpResponse<WebpushConfigCollection>>} - OK
|
|
1241
1536
|
*/
|
|
1242
1537
|
async listWebPushIntegrations(requestConfig?: RequestConfig): Promise<HttpResponse<WebpushConfigCollection>> {
|
|
1243
1538
|
const request = new RequestBuilder()
|
|
@@ -1262,8 +1557,8 @@ export class IntegrationsService extends BaseService {
|
|
|
1262
1557
|
|
|
1263
1558
|
/**
|
|
1264
1559
|
* Updates or creates the Web Push integration for the project.
|
|
1265
|
-
* @param {RequestConfig} requestConfig -
|
|
1266
|
-
* @returns {Promise<HttpResponse<WebpushConfigPayload>>} OK
|
|
1560
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1561
|
+
* @returns {Promise<HttpResponse<WebpushConfigPayload>>} - OK
|
|
1267
1562
|
*/
|
|
1268
1563
|
async saveWebPushIntegration(
|
|
1269
1564
|
body: WebpushConfigPayload,
|
|
@@ -1294,8 +1589,8 @@ export class IntegrationsService extends BaseService {
|
|
|
1294
1589
|
/**
|
|
1295
1590
|
* Deletes the Web Push integration configuration from the project. This will disable the integration's functionality within the project.
|
|
1296
1591
|
* @param {string} [params.id] -
|
|
1297
|
-
* @param {RequestConfig} requestConfig -
|
|
1298
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1592
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1593
|
+
* @returns {Promise<HttpResponse<any>>} - No Content
|
|
1299
1594
|
*/
|
|
1300
1595
|
async deleteWebPushIntegration(
|
|
1301
1596
|
params?: DeleteWebPushIntegrationParams,
|