magicbell-js 0.0.3 → 0.0.4
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/package.json +2 -1
- package/src/project-client/http/client.ts +71 -0
- package/src/project-client/http/environment.ts +3 -0
- package/src/project-client/http/error.ts +14 -0
- package/src/project-client/http/errors/validation-error.ts +25 -0
- package/src/project-client/http/handlers/handler-chain.ts +30 -0
- package/src/project-client/http/handlers/hook-handler.ts +78 -0
- package/src/project-client/http/handlers/request-validation-handler.ts +111 -0
- package/src/project-client/http/handlers/response-validation-handler.ts +203 -0
- package/src/project-client/http/handlers/retry-handler.ts +60 -0
- package/src/project-client/http/handlers/terminating-handler.ts +14 -0
- package/src/project-client/http/hooks/custom-hook.ts +25 -0
- package/src/project-client/http/hooks/hook.ts +41 -0
- package/src/project-client/http/index.ts +11 -0
- package/src/project-client/http/serialization/base-serializer.ts +139 -0
- package/src/project-client/http/serialization/header-serializer.ts +19 -0
- package/src/project-client/http/serialization/path-serializer.ts +12 -0
- package/src/project-client/http/serialization/query-serializer.ts +18 -0
- package/src/project-client/http/transport/request-builder.ts +242 -0
- package/src/project-client/http/transport/request-fetch-adapter.ts +131 -0
- package/src/project-client/http/transport/request.ts +222 -0
- package/src/project-client/http/transport/transport-hook-adapter.ts +91 -0
- package/src/project-client/http/transport/types.ts +50 -0
- package/src/project-client/http/types.ts +74 -0
- package/src/project-client/http/utils/content-type.ts +33 -0
- package/src/project-client/http/utils/line-decoder.ts +35 -0
- package/src/project-client/http/utils/response-matcher.ts +25 -0
- package/src/project-client/index.ts +94 -0
- package/src/project-client/services/base-service.ts +27 -0
- package/src/project-client/services/broadcasts/broadcasts-service.ts +115 -0
- package/src/project-client/services/broadcasts/index.ts +2 -0
- package/src/project-client/services/broadcasts/models/broadcast-collection.ts +54 -0
- package/src/project-client/services/broadcasts/models/broadcast-status.ts +60 -0
- package/src/project-client/services/broadcasts/models/broadcast.ts +143 -0
- package/src/project-client/services/broadcasts/models/email.ts +57 -0
- package/src/project-client/services/broadcasts/models/errors.ts +45 -0
- package/src/project-client/services/broadcasts/models/in-app.ts +57 -0
- package/src/project-client/services/broadcasts/models/index.ts +15 -0
- package/src/project-client/services/broadcasts/models/mobile-push.ts +57 -0
- package/src/project-client/services/broadcasts/models/overrides-channels.ts +82 -0
- package/src/project-client/services/broadcasts/models/overrides.ts +59 -0
- package/src/project-client/services/broadcasts/models/providers.ts +81 -0
- package/src/project-client/services/broadcasts/models/slack.ts +57 -0
- package/src/project-client/services/broadcasts/models/sms.ts +57 -0
- package/src/project-client/services/broadcasts/models/status-status.ts +7 -0
- package/src/project-client/services/broadcasts/models/summary.ts +51 -0
- package/src/project-client/services/broadcasts/models/web-push.ts +57 -0
- package/src/project-client/services/broadcasts/request-params.ts +5 -0
- package/src/project-client/services/channels/channels-service.ts +1017 -0
- package/src/project-client/services/channels/index.ts +2 -0
- package/src/project-client/services/channels/models/apns-token-collection.ts +54 -0
- package/src/project-client/services/channels/models/apns-token-installation-id.ts +6 -0
- package/src/project-client/services/channels/models/apns-token.ts +90 -0
- package/src/project-client/services/channels/models/category-delivery-config-channels.ts +57 -0
- package/src/project-client/services/channels/models/category-delivery-config.ts +73 -0
- package/src/project-client/services/channels/models/channel.ts +11 -0
- package/src/project-client/services/channels/models/discard-result.ts +51 -0
- package/src/project-client/services/channels/models/expo-token-collection.ts +54 -0
- package/src/project-client/services/channels/models/expo-token.ts +69 -0
- package/src/project-client/services/channels/models/fcm-token-collection.ts +54 -0
- package/src/project-client/services/channels/models/fcm-token-installation-id.ts +6 -0
- package/src/project-client/services/channels/models/fcm-token.ts +75 -0
- package/src/project-client/services/channels/models/inbox-token-response-collection.ts +59 -0
- package/src/project-client/services/channels/models/inbox-token-response.ts +75 -0
- package/src/project-client/services/channels/models/index.ts +24 -0
- package/src/project-client/services/channels/models/keys.ts +51 -0
- package/src/project-client/services/channels/models/oauth.ts +57 -0
- package/src/project-client/services/channels/models/slack-token-collection.ts +54 -0
- package/src/project-client/services/channels/models/slack-token-webhook.ts +45 -0
- package/src/project-client/services/channels/models/slack-token.ts +83 -0
- package/src/project-client/services/channels/models/teams-token-collection.ts +54 -0
- package/src/project-client/services/channels/models/teams-token-webhook.ts +45 -0
- package/src/project-client/services/channels/models/teams-token.ts +76 -0
- package/src/project-client/services/channels/models/web-push-token-collection.ts +54 -0
- package/src/project-client/services/channels/models/web-push-token.ts +77 -0
- package/src/project-client/services/channels/request-params.ts +45 -0
- package/src/project-client/services/common/index.ts +1 -0
- package/src/project-client/services/common/links.ts +57 -0
- package/src/project-client/services/events/events-service.ts +84 -0
- package/src/project-client/services/events/index.ts +2 -0
- package/src/project-client/services/events/models/event-collection.ts +54 -0
- package/src/project-client/services/events/models/event.ts +81 -0
- package/src/project-client/services/events/models/index.ts +2 -0
- package/src/project-client/services/events/request-params.ts +5 -0
- package/src/project-client/services/integrations/index.ts +2 -0
- package/src/project-client/services/integrations/integrations-service.ts +1965 -0
- package/src/project-client/services/integrations/models/apns-config-collection.ts +54 -0
- package/src/project-client/services/integrations/models/apns-config-payload.ts +81 -0
- package/src/project-client/services/integrations/models/apns-config.ts +64 -0
- package/src/project-client/services/integrations/models/awssns-config-collection.ts +54 -0
- package/src/project-client/services/integrations/models/awssns-config-payload.ts +45 -0
- package/src/project-client/services/integrations/models/awssns-config.ts +64 -0
- package/src/project-client/services/integrations/models/badge.ts +6 -0
- package/src/project-client/services/integrations/models/banner.ts +63 -0
- package/src/project-client/services/integrations/models/default-hover.ts +45 -0
- package/src/project-client/services/integrations/models/default-state.ts +45 -0
- package/src/project-client/services/integrations/models/default_.ts +90 -0
- package/src/project-client/services/integrations/models/dialog.ts +57 -0
- 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/expo-config-collection.ts +54 -0
- package/src/project-client/services/integrations/models/expo-config-payload.ts +45 -0
- package/src/project-client/services/integrations/models/expo-config.ts +64 -0
- package/src/project-client/services/integrations/models/fcm-config-collection.ts +54 -0
- package/src/project-client/services/integrations/models/fcm-config-payload.ts +105 -0
- package/src/project-client/services/integrations/models/fcm-config.ts +64 -0
- package/src/project-client/services/integrations/models/footer.ts +63 -0
- package/src/project-client/services/integrations/models/github-config-collection.ts +54 -0
- package/src/project-client/services/integrations/models/github-config-payload.ts +45 -0
- package/src/project-client/services/integrations/models/github-config.ts +64 -0
- package/src/project-client/services/integrations/models/header.ts +69 -0
- package/src/project-client/services/integrations/models/icon.ts +51 -0
- package/src/project-client/services/integrations/models/images.ts +45 -0
- package/src/project-client/services/integrations/models/inbox-config-collection.ts +54 -0
- package/src/project-client/services/integrations/models/inbox-config-payload.ts +60 -0
- package/src/project-client/services/integrations/models/inbox-config.ts +64 -0
- package/src/project-client/services/integrations/models/index.ts +75 -0
- package/src/project-client/services/integrations/models/integration-config-collection.ts +59 -0
- package/src/project-client/services/integrations/models/integration-config.ts +57 -0
- package/src/project-client/services/integrations/models/mailgun-config-collection.ts +54 -0
- package/src/project-client/services/integrations/models/mailgun-config-payload-from.ts +51 -0
- package/src/project-client/services/integrations/models/mailgun-config-payload.ts +70 -0
- package/src/project-client/services/integrations/models/mailgun-config.ts +64 -0
- package/src/project-client/services/integrations/models/notification.ts +61 -0
- package/src/project-client/services/integrations/models/payload-version.ts +6 -0
- package/src/project-client/services/integrations/models/ping-config-collection.ts +54 -0
- package/src/project-client/services/integrations/models/ping-config-payload.ts +45 -0
- package/src/project-client/services/integrations/models/ping-config.ts +64 -0
- package/src/project-client/services/integrations/models/region.ts +6 -0
- package/src/project-client/services/integrations/models/reply-to.ts +51 -0
- package/src/project-client/services/integrations/models/sendgrid-config-collection.ts +54 -0
- package/src/project-client/services/integrations/models/sendgrid-config-payload-from.ts +51 -0
- package/src/project-client/services/integrations/models/sendgrid-config-payload.ts +65 -0
- package/src/project-client/services/integrations/models/sendgrid-config.ts +64 -0
- package/src/project-client/services/integrations/models/ses-config-collection.ts +54 -0
- package/src/project-client/services/integrations/models/ses-config-payload-from.ts +51 -0
- package/src/project-client/services/integrations/models/ses-config-payload.ts +70 -0
- package/src/project-client/services/integrations/models/ses-config.ts +64 -0
- package/src/project-client/services/integrations/models/slack-config-collection.ts +54 -0
- package/src/project-client/services/integrations/models/slack-config-payload.ts +63 -0
- package/src/project-client/services/integrations/models/slack-config.ts +64 -0
- package/src/project-client/services/integrations/models/stripe-config-collection.ts +54 -0
- package/src/project-client/services/integrations/models/stripe-config-payload.ts +45 -0
- package/src/project-client/services/integrations/models/stripe-config.ts +64 -0
- package/src/project-client/services/integrations/models/templates-config-collection.ts +59 -0
- package/src/project-client/services/integrations/models/templates-config.ts +57 -0
- package/src/project-client/services/integrations/models/theme.ts +89 -0
- package/src/project-client/services/integrations/models/twilio-config-collection.ts +54 -0
- package/src/project-client/services/integrations/models/twilio-config-payload.ts +75 -0
- package/src/project-client/services/integrations/models/twilio-config.ts +64 -0
- package/src/project-client/services/integrations/models/type_.ts +5 -0
- package/src/project-client/services/integrations/models/unread-hover.ts +45 -0
- package/src/project-client/services/integrations/models/unread-state.ts +45 -0
- package/src/project-client/services/integrations/models/unread.ts +66 -0
- package/src/project-client/services/integrations/models/unseen-badge.ts +45 -0
- package/src/project-client/services/integrations/models/unseen-hover.ts +45 -0
- package/src/project-client/services/integrations/models/unseen-state.ts +45 -0
- package/src/project-client/services/integrations/models/unseen.ts +66 -0
- package/src/project-client/services/integrations/models/webpush-config-collection.ts +54 -0
- package/src/project-client/services/integrations/models/webpush-config-payload.ts +51 -0
- package/src/project-client/services/integrations/models/webpush-config.ts +64 -0
- package/src/project-client/services/integrations/request-params.ts +5 -0
- package/src/project-client/services/jwt/index.ts +2 -0
- package/src/project-client/services/jwt/jwt-service.ts +233 -0
- package/src/project-client/services/jwt/models/access-token-collection.ts +54 -0
- package/src/project-client/services/jwt/models/access-token.ts +69 -0
- package/src/project-client/services/jwt/models/create-project-token-request.ts +51 -0
- package/src/project-client/services/jwt/models/create-token-response.ts +63 -0
- package/src/project-client/services/jwt/models/create-user-token-request.ts +63 -0
- package/src/project-client/services/jwt/models/discard-token-response.ts +51 -0
- package/src/project-client/services/jwt/models/index.ts +6 -0
- package/src/project-client/services/jwt/request-params.ts +11 -0
- package/src/project-client/services/notifications/index.ts +2 -0
- package/src/project-client/services/notifications/models/delivery-plan-collection.ts +54 -0
- package/src/project-client/services/notifications/models/delivery-plan.ts +93 -0
- package/src/project-client/services/notifications/models/index.ts +2 -0
- package/src/project-client/services/notifications/notifications-service.ts +44 -0
- package/src/project-client/services/users/index.ts +2 -0
- package/src/project-client/services/users/models/index.ts +2 -0
- package/src/project-client/services/users/models/user-collection.ts +54 -0
- package/src/project-client/services/users/models/user.ts +99 -0
- package/src/project-client/services/users/request-params.ts +6 -0
- package/src/project-client/services/users/users-service.ts +117 -0
- package/src/project-client.ts +1 -0
- package/src/user-client/http/client.ts +71 -0
- package/src/user-client/http/environment.ts +3 -0
- package/src/user-client/http/error.ts +14 -0
- package/src/user-client/http/errors/validation-error.ts +25 -0
- package/src/user-client/http/handlers/handler-chain.ts +30 -0
- package/src/user-client/http/handlers/hook-handler.ts +78 -0
- package/src/user-client/http/handlers/request-validation-handler.ts +111 -0
- package/src/user-client/http/handlers/response-validation-handler.ts +203 -0
- package/src/user-client/http/handlers/retry-handler.ts +60 -0
- package/src/user-client/http/handlers/terminating-handler.ts +14 -0
- package/src/user-client/http/hooks/custom-hook.ts +25 -0
- package/src/user-client/http/hooks/hook.ts +41 -0
- package/src/user-client/http/index.ts +11 -0
- package/src/user-client/http/serialization/base-serializer.ts +139 -0
- package/src/user-client/http/serialization/header-serializer.ts +19 -0
- package/src/user-client/http/serialization/path-serializer.ts +12 -0
- package/src/user-client/http/serialization/query-serializer.ts +18 -0
- package/src/user-client/http/transport/request-builder.ts +242 -0
- package/src/user-client/http/transport/request-fetch-adapter.ts +131 -0
- package/src/user-client/http/transport/request.ts +222 -0
- package/src/user-client/http/transport/transport-hook-adapter.ts +91 -0
- package/src/user-client/http/transport/types.ts +50 -0
- package/src/user-client/http/types.ts +74 -0
- package/src/user-client/http/utils/content-type.ts +33 -0
- package/src/user-client/http/utils/line-decoder.ts +35 -0
- package/src/user-client/http/utils/response-matcher.ts +25 -0
- package/src/user-client/index.ts +54 -0
- package/src/user-client/services/base-service.ts +27 -0
- package/src/user-client/services/channels/channels-service.ts +1020 -0
- package/src/user-client/services/channels/index.ts +2 -0
- package/src/user-client/services/channels/models/apns-token-collection.ts +54 -0
- package/src/user-client/services/channels/models/apns-token-installation-id.ts +6 -0
- package/src/user-client/services/channels/models/apns-token-payload-installation-id.ts +6 -0
- package/src/user-client/services/channels/models/apns-token-payload.ts +66 -0
- package/src/user-client/services/channels/models/apns-token.ts +90 -0
- package/src/user-client/services/channels/models/discard-result.ts +51 -0
- package/src/user-client/services/channels/models/expo-token-collection.ts +54 -0
- package/src/user-client/services/channels/models/expo-token-payload.ts +45 -0
- package/src/user-client/services/channels/models/expo-token.ts +69 -0
- package/src/user-client/services/channels/models/fcm-token-collection.ts +54 -0
- package/src/user-client/services/channels/models/fcm-token-installation-id.ts +6 -0
- package/src/user-client/services/channels/models/fcm-token-payload-installation-id.ts +6 -0
- package/src/user-client/services/channels/models/fcm-token-payload.ts +51 -0
- package/src/user-client/services/channels/models/fcm-token.ts +75 -0
- package/src/user-client/services/channels/models/inbox-token-response-collection.ts +59 -0
- package/src/user-client/services/channels/models/inbox-token-response.ts +75 -0
- package/src/user-client/services/channels/models/inbox-token.ts +51 -0
- package/src/user-client/services/channels/models/index.ts +33 -0
- package/src/user-client/services/channels/models/slack-token-collection.ts +54 -0
- package/src/user-client/services/channels/models/slack-token-oauth.ts +57 -0
- package/src/user-client/services/channels/models/slack-token-payload-oauth.ts +57 -0
- package/src/user-client/services/channels/models/slack-token-payload-webhook.ts +45 -0
- package/src/user-client/services/channels/models/slack-token-payload.ts +64 -0
- package/src/user-client/services/channels/models/slack-token-webhook.ts +45 -0
- package/src/user-client/services/channels/models/slack-token.ts +88 -0
- package/src/user-client/services/channels/models/teams-token-collection.ts +54 -0
- package/src/user-client/services/channels/models/teams-token-payload-webhook.ts +45 -0
- package/src/user-client/services/channels/models/teams-token-payload.ts +52 -0
- package/src/user-client/services/channels/models/teams-token-webhook.ts +45 -0
- package/src/user-client/services/channels/models/teams-token.ts +76 -0
- package/src/user-client/services/channels/models/web-push-token-collection.ts +54 -0
- package/src/user-client/services/channels/models/web-push-token-keys.ts +51 -0
- package/src/user-client/services/channels/models/web-push-token-payload-keys.ts +51 -0
- package/src/user-client/services/channels/models/web-push-token.ts +82 -0
- package/src/user-client/services/channels/request-params.ts +41 -0
- package/src/user-client/services/common/index.ts +2 -0
- package/src/user-client/services/common/links.ts +57 -0
- package/src/user-client/services/common/web-push-token-payload.ts +58 -0
- package/src/user-client/services/integrations/index.ts +2 -0
- package/src/user-client/services/integrations/integrations-service.ts +278 -0
- package/src/user-client/services/integrations/models/authed-user.ts +75 -0
- package/src/user-client/services/integrations/models/banner.ts +63 -0
- package/src/user-client/services/integrations/models/default-hover.ts +45 -0
- package/src/user-client/services/integrations/models/default-state.ts +45 -0
- package/src/user-client/services/integrations/models/default_.ts +90 -0
- package/src/user-client/services/integrations/models/dialog.ts +57 -0
- package/src/user-client/services/integrations/models/enterprise.ts +51 -0
- package/src/user-client/services/integrations/models/footer.ts +63 -0
- package/src/user-client/services/integrations/models/header.ts +69 -0
- package/src/user-client/services/integrations/models/icon.ts +51 -0
- package/src/user-client/services/integrations/models/images.ts +45 -0
- package/src/user-client/services/integrations/models/inbox-config-payload.ts +60 -0
- package/src/user-client/services/integrations/models/incoming-webhook.ts +57 -0
- package/src/user-client/services/integrations/models/index.ts +29 -0
- package/src/user-client/services/integrations/models/slack-finish-install-response.ts +57 -0
- package/src/user-client/services/integrations/models/slack-installation.ts +136 -0
- package/src/user-client/services/integrations/models/slack-start-install-response-content.ts +57 -0
- package/src/user-client/services/integrations/models/slack-start-install.ts +63 -0
- package/src/user-client/services/integrations/models/team.ts +51 -0
- package/src/user-client/services/integrations/models/templates-installation.ts +57 -0
- package/src/user-client/services/integrations/models/theme-notification.ts +61 -0
- package/src/user-client/services/integrations/models/theme.ts +94 -0
- package/src/user-client/services/integrations/models/unread-hover.ts +45 -0
- package/src/user-client/services/integrations/models/unread-state.ts +45 -0
- package/src/user-client/services/integrations/models/unread.ts +66 -0
- package/src/user-client/services/integrations/models/unseen-badge.ts +45 -0
- package/src/user-client/services/integrations/models/unseen-hover.ts +45 -0
- package/src/user-client/services/integrations/models/unseen-state.ts +45 -0
- package/src/user-client/services/integrations/models/unseen.ts +66 -0
- package/src/user-client/services/integrations/models/web-push-start-installation-response.ts +51 -0
- package/src/user-client/services/notifications/index.ts +2 -0
- package/src/user-client/services/notifications/models/index.ts +2 -0
- package/src/user-client/services/notifications/models/notification-collection.ts +54 -0
- package/src/user-client/services/notifications/models/notification.ts +129 -0
- package/src/user-client/services/notifications/notifications-service.ts +189 -0
- package/src/user-client/services/notifications/request-params.ts +7 -0
- package/src/user-client.ts +1 -0
|
@@ -0,0 +1,1965 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
import { Environment } from '../../http/environment.js';
|
|
4
|
+
import { SerializationStyle } from '../../http/serialization/base-serializer.js';
|
|
5
|
+
import { RequestBuilder } from '../../http/transport/request-builder.js';
|
|
6
|
+
import { ContentType, HttpResponse, RequestConfig } from '../../http/types.js';
|
|
7
|
+
import { BaseService } from '../base-service.js';
|
|
8
|
+
import { ApnsConfigCollection, apnsConfigCollectionResponse } from './models/apns-config-collection.js';
|
|
9
|
+
import {
|
|
10
|
+
ApnsConfigPayload,
|
|
11
|
+
apnsConfigPayloadRequest,
|
|
12
|
+
apnsConfigPayloadResponse,
|
|
13
|
+
} from './models/apns-config-payload.js';
|
|
14
|
+
import { AwssnsConfigCollection, awssnsConfigCollectionResponse } from './models/awssns-config-collection.js';
|
|
15
|
+
import {
|
|
16
|
+
AwssnsConfigPayload,
|
|
17
|
+
awssnsConfigPayloadRequest,
|
|
18
|
+
awssnsConfigPayloadResponse,
|
|
19
|
+
} from './models/awssns-config-payload.js';
|
|
20
|
+
import {
|
|
21
|
+
EventSourceConfigCollection,
|
|
22
|
+
eventSourceConfigCollectionResponse,
|
|
23
|
+
} from './models/event-source-config-collection.js';
|
|
24
|
+
import {
|
|
25
|
+
EventSourceConfigPayload,
|
|
26
|
+
eventSourceConfigPayloadRequest,
|
|
27
|
+
eventSourceConfigPayloadResponse,
|
|
28
|
+
} from './models/event-source-config-payload.js';
|
|
29
|
+
import { ExpoConfigCollection, expoConfigCollectionResponse } from './models/expo-config-collection.js';
|
|
30
|
+
import {
|
|
31
|
+
ExpoConfigPayload,
|
|
32
|
+
expoConfigPayloadRequest,
|
|
33
|
+
expoConfigPayloadResponse,
|
|
34
|
+
} from './models/expo-config-payload.js';
|
|
35
|
+
import { FcmConfigCollection, fcmConfigCollectionResponse } from './models/fcm-config-collection.js';
|
|
36
|
+
import { FcmConfigPayload, fcmConfigPayloadRequest, fcmConfigPayloadResponse } from './models/fcm-config-payload.js';
|
|
37
|
+
import { GithubConfigCollection, githubConfigCollectionResponse } from './models/github-config-collection.js';
|
|
38
|
+
import {
|
|
39
|
+
GithubConfigPayload,
|
|
40
|
+
githubConfigPayloadRequest,
|
|
41
|
+
githubConfigPayloadResponse,
|
|
42
|
+
} from './models/github-config-payload.js';
|
|
43
|
+
import { InboxConfigCollection, inboxConfigCollectionResponse } from './models/inbox-config-collection.js';
|
|
44
|
+
import {
|
|
45
|
+
InboxConfigPayload,
|
|
46
|
+
inboxConfigPayloadRequest,
|
|
47
|
+
inboxConfigPayloadResponse,
|
|
48
|
+
} from './models/inbox-config-payload.js';
|
|
49
|
+
import {
|
|
50
|
+
IntegrationConfigCollection,
|
|
51
|
+
integrationConfigCollectionResponse,
|
|
52
|
+
} from './models/integration-config-collection.js';
|
|
53
|
+
import { MailgunConfigCollection, mailgunConfigCollectionResponse } from './models/mailgun-config-collection.js';
|
|
54
|
+
import {
|
|
55
|
+
MailgunConfigPayload,
|
|
56
|
+
mailgunConfigPayloadRequest,
|
|
57
|
+
mailgunConfigPayloadResponse,
|
|
58
|
+
} from './models/mailgun-config-payload.js';
|
|
59
|
+
import { PingConfigCollection, pingConfigCollectionResponse } from './models/ping-config-collection.js';
|
|
60
|
+
import {
|
|
61
|
+
PingConfigPayload,
|
|
62
|
+
pingConfigPayloadRequest,
|
|
63
|
+
pingConfigPayloadResponse,
|
|
64
|
+
} from './models/ping-config-payload.js';
|
|
65
|
+
import { SendgridConfigCollection, sendgridConfigCollectionResponse } from './models/sendgrid-config-collection.js';
|
|
66
|
+
import {
|
|
67
|
+
SendgridConfigPayload,
|
|
68
|
+
sendgridConfigPayloadRequest,
|
|
69
|
+
sendgridConfigPayloadResponse,
|
|
70
|
+
} from './models/sendgrid-config-payload.js';
|
|
71
|
+
import { SesConfigCollection, sesConfigCollectionResponse } from './models/ses-config-collection.js';
|
|
72
|
+
import { SesConfigPayload, sesConfigPayloadRequest, sesConfigPayloadResponse } from './models/ses-config-payload.js';
|
|
73
|
+
import { SlackConfigCollection, slackConfigCollectionResponse } from './models/slack-config-collection.js';
|
|
74
|
+
import {
|
|
75
|
+
SlackConfigPayload,
|
|
76
|
+
slackConfigPayloadRequest,
|
|
77
|
+
slackConfigPayloadResponse,
|
|
78
|
+
} from './models/slack-config-payload.js';
|
|
79
|
+
import { StripeConfigCollection, stripeConfigCollectionResponse } from './models/stripe-config-collection.js';
|
|
80
|
+
import {
|
|
81
|
+
StripeConfigPayload,
|
|
82
|
+
stripeConfigPayloadRequest,
|
|
83
|
+
stripeConfigPayloadResponse,
|
|
84
|
+
} from './models/stripe-config-payload.js';
|
|
85
|
+
import { TemplatesConfigCollection, templatesConfigCollectionResponse } from './models/templates-config-collection.js';
|
|
86
|
+
import { TwilioConfigCollection, twilioConfigCollectionResponse } from './models/twilio-config-collection.js';
|
|
87
|
+
import {
|
|
88
|
+
TwilioConfigPayload,
|
|
89
|
+
twilioConfigPayloadRequest,
|
|
90
|
+
twilioConfigPayloadResponse,
|
|
91
|
+
} from './models/twilio-config-payload.js';
|
|
92
|
+
import { WebpushConfigCollection, webpushConfigCollectionResponse } from './models/webpush-config-collection.js';
|
|
93
|
+
import {
|
|
94
|
+
WebpushConfigPayload,
|
|
95
|
+
webpushConfigPayloadRequest,
|
|
96
|
+
webpushConfigPayloadResponse,
|
|
97
|
+
} from './models/webpush-config-payload.js';
|
|
98
|
+
import { ListIntegrationsParams } from './request-params.js';
|
|
99
|
+
|
|
100
|
+
export class IntegrationsService extends BaseService {
|
|
101
|
+
/**
|
|
102
|
+
* Lists all available and configured integrations for the project. Returns a summary of each integration including its type, status, and basic configuration information.
|
|
103
|
+
* @param {number} [params.limit] -
|
|
104
|
+
* @param {string} [params.startingAfter] -
|
|
105
|
+
* @param {string} [params.endingBefore] -
|
|
106
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
107
|
+
* @returns {Promise<HttpResponse<IntegrationConfigCollection>>} OK
|
|
108
|
+
*/
|
|
109
|
+
async listIntegrations(
|
|
110
|
+
params?: ListIntegrationsParams,
|
|
111
|
+
requestConfig?: RequestConfig,
|
|
112
|
+
): Promise<HttpResponse<IntegrationConfigCollection>> {
|
|
113
|
+
const request = new RequestBuilder()
|
|
114
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
115
|
+
.setConfig(this.config)
|
|
116
|
+
.setMethod('GET')
|
|
117
|
+
.setPath('/integrations')
|
|
118
|
+
.setRequestSchema(z.any())
|
|
119
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
120
|
+
.setRequestContentType(ContentType.Json)
|
|
121
|
+
.addResponse({
|
|
122
|
+
schema: integrationConfigCollectionResponse,
|
|
123
|
+
contentType: ContentType.Json,
|
|
124
|
+
status: 200,
|
|
125
|
+
})
|
|
126
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
127
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
128
|
+
.setResponseValidation(this.config, requestConfig)
|
|
129
|
+
.addQueryParam({
|
|
130
|
+
key: 'limit',
|
|
131
|
+
value: params?.limit,
|
|
132
|
+
})
|
|
133
|
+
.addQueryParam({
|
|
134
|
+
key: 'starting_after',
|
|
135
|
+
value: params?.startingAfter,
|
|
136
|
+
})
|
|
137
|
+
.addQueryParam({
|
|
138
|
+
key: 'ending_before',
|
|
139
|
+
value: params?.endingBefore,
|
|
140
|
+
})
|
|
141
|
+
.build();
|
|
142
|
+
return this.client.call<IntegrationConfigCollection>(request);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Retrieves the current apns integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
147
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
148
|
+
* @returns {Promise<HttpResponse<ApnsConfigCollection>>} OK
|
|
149
|
+
*/
|
|
150
|
+
async getApnsIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<ApnsConfigCollection>> {
|
|
151
|
+
const request = new RequestBuilder()
|
|
152
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
153
|
+
.setConfig(this.config)
|
|
154
|
+
.setMethod('GET')
|
|
155
|
+
.setPath('/integrations/apns')
|
|
156
|
+
.setRequestSchema(z.any())
|
|
157
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
158
|
+
.setRequestContentType(ContentType.Json)
|
|
159
|
+
.addResponse({
|
|
160
|
+
schema: apnsConfigCollectionResponse,
|
|
161
|
+
contentType: ContentType.Json,
|
|
162
|
+
status: 200,
|
|
163
|
+
})
|
|
164
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
165
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
166
|
+
.setResponseValidation(this.config, requestConfig)
|
|
167
|
+
.build();
|
|
168
|
+
return this.client.call<ApnsConfigCollection>(request);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Creates or updates a apns integration for the project. Only administrators can configure integrations.
|
|
173
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
174
|
+
* @returns {Promise<HttpResponse<ApnsConfigPayload>>} OK
|
|
175
|
+
*/
|
|
176
|
+
async saveApnsIntegration(
|
|
177
|
+
body: ApnsConfigPayload,
|
|
178
|
+
requestConfig?: RequestConfig,
|
|
179
|
+
): Promise<HttpResponse<ApnsConfigPayload>> {
|
|
180
|
+
const request = new RequestBuilder()
|
|
181
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
182
|
+
.setConfig(this.config)
|
|
183
|
+
.setMethod('PUT')
|
|
184
|
+
.setPath('/integrations/apns')
|
|
185
|
+
.setRequestSchema(apnsConfigPayloadRequest)
|
|
186
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
187
|
+
.setRequestContentType(ContentType.Json)
|
|
188
|
+
.addResponse({
|
|
189
|
+
schema: apnsConfigPayloadResponse,
|
|
190
|
+
contentType: ContentType.Json,
|
|
191
|
+
status: 200,
|
|
192
|
+
})
|
|
193
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
194
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
195
|
+
.setResponseValidation(this.config, requestConfig)
|
|
196
|
+
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
197
|
+
.addBody(body)
|
|
198
|
+
.build();
|
|
199
|
+
return this.client.call<ApnsConfigPayload>(request);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Removes a apns integration configuration from the project. This will disable the integration's functionality within the project.
|
|
204
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
205
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
206
|
+
*/
|
|
207
|
+
async deleteApnsIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
208
|
+
const request = new RequestBuilder()
|
|
209
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
210
|
+
.setConfig(this.config)
|
|
211
|
+
.setMethod('DELETE')
|
|
212
|
+
.setPath('/integrations/apns')
|
|
213
|
+
.setRequestSchema(z.any())
|
|
214
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
215
|
+
.setRequestContentType(ContentType.Json)
|
|
216
|
+
.addResponse({
|
|
217
|
+
schema: z.undefined(),
|
|
218
|
+
contentType: ContentType.NoContent,
|
|
219
|
+
status: 204,
|
|
220
|
+
})
|
|
221
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
222
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
223
|
+
.setResponseValidation(this.config, requestConfig)
|
|
224
|
+
.build();
|
|
225
|
+
return this.client.call<void>(request);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Removes a specific apns integration instance by ID from the project.
|
|
230
|
+
* @param {string} id -
|
|
231
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
232
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
233
|
+
*/
|
|
234
|
+
async deleteApnsIntegrationById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
235
|
+
const request = new RequestBuilder()
|
|
236
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
237
|
+
.setConfig(this.config)
|
|
238
|
+
.setMethod('DELETE')
|
|
239
|
+
.setPath('/integrations/apns/{id}')
|
|
240
|
+
.setRequestSchema(z.any())
|
|
241
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
242
|
+
.setRequestContentType(ContentType.Json)
|
|
243
|
+
.addResponse({
|
|
244
|
+
schema: z.undefined(),
|
|
245
|
+
contentType: ContentType.NoContent,
|
|
246
|
+
status: 204,
|
|
247
|
+
})
|
|
248
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
249
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
250
|
+
.setResponseValidation(this.config, requestConfig)
|
|
251
|
+
.addPathParam({
|
|
252
|
+
key: 'id',
|
|
253
|
+
value: id,
|
|
254
|
+
})
|
|
255
|
+
.build();
|
|
256
|
+
return this.client.call<void>(request);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Retrieves the current awssns integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
261
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
262
|
+
* @returns {Promise<HttpResponse<AwssnsConfigCollection>>} OK
|
|
263
|
+
*/
|
|
264
|
+
async getAwssnsIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<AwssnsConfigCollection>> {
|
|
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/awssns')
|
|
270
|
+
.setRequestSchema(z.any())
|
|
271
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
272
|
+
.setRequestContentType(ContentType.Json)
|
|
273
|
+
.addResponse({
|
|
274
|
+
schema: awssnsConfigCollectionResponse,
|
|
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<AwssnsConfigCollection>(request);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Creates or updates a awssns integration for the project. Only administrators can configure integrations.
|
|
287
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
288
|
+
* @returns {Promise<HttpResponse<AwssnsConfigPayload>>} OK
|
|
289
|
+
*/
|
|
290
|
+
async saveAwssnsIntegration(
|
|
291
|
+
body: AwssnsConfigPayload,
|
|
292
|
+
requestConfig?: RequestConfig,
|
|
293
|
+
): Promise<HttpResponse<AwssnsConfigPayload>> {
|
|
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/awssns')
|
|
299
|
+
.setRequestSchema(awssnsConfigPayloadRequest)
|
|
300
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
301
|
+
.setRequestContentType(ContentType.Json)
|
|
302
|
+
.addResponse({
|
|
303
|
+
schema: awssnsConfigPayloadResponse,
|
|
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<AwssnsConfigPayload>(request);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Removes a awssns integration configuration from the project. This will disable the integration's functionality within the project.
|
|
318
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
319
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
320
|
+
*/
|
|
321
|
+
async deleteAwssnsIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
322
|
+
const request = new RequestBuilder()
|
|
323
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
324
|
+
.setConfig(this.config)
|
|
325
|
+
.setMethod('DELETE')
|
|
326
|
+
.setPath('/integrations/awssns')
|
|
327
|
+
.setRequestSchema(z.any())
|
|
328
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
329
|
+
.setRequestContentType(ContentType.Json)
|
|
330
|
+
.addResponse({
|
|
331
|
+
schema: z.undefined(),
|
|
332
|
+
contentType: ContentType.NoContent,
|
|
333
|
+
status: 204,
|
|
334
|
+
})
|
|
335
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
336
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
337
|
+
.setResponseValidation(this.config, requestConfig)
|
|
338
|
+
.build();
|
|
339
|
+
return this.client.call<void>(request);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Removes a specific awssns integration instance by ID from the project.
|
|
344
|
+
* @param {string} id -
|
|
345
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
346
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
347
|
+
*/
|
|
348
|
+
async deleteAwssnsIntegrationById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
349
|
+
const request = new RequestBuilder()
|
|
350
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
351
|
+
.setConfig(this.config)
|
|
352
|
+
.setMethod('DELETE')
|
|
353
|
+
.setPath('/integrations/awssns/{id}')
|
|
354
|
+
.setRequestSchema(z.any())
|
|
355
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
356
|
+
.setRequestContentType(ContentType.Json)
|
|
357
|
+
.addResponse({
|
|
358
|
+
schema: z.undefined(),
|
|
359
|
+
contentType: ContentType.NoContent,
|
|
360
|
+
status: 204,
|
|
361
|
+
})
|
|
362
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
363
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
364
|
+
.setResponseValidation(this.config, requestConfig)
|
|
365
|
+
.addPathParam({
|
|
366
|
+
key: 'id',
|
|
367
|
+
value: id,
|
|
368
|
+
})
|
|
369
|
+
.build();
|
|
370
|
+
return this.client.call<void>(request);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Retrieves the current eventsource integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
375
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
376
|
+
* @returns {Promise<HttpResponse<EventSourceConfigCollection>>} OK
|
|
377
|
+
*/
|
|
378
|
+
async getEventsourceIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<EventSourceConfigCollection>> {
|
|
379
|
+
const request = new RequestBuilder()
|
|
380
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
381
|
+
.setConfig(this.config)
|
|
382
|
+
.setMethod('GET')
|
|
383
|
+
.setPath('/integrations/eventsource')
|
|
384
|
+
.setRequestSchema(z.any())
|
|
385
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
386
|
+
.setRequestContentType(ContentType.Json)
|
|
387
|
+
.addResponse({
|
|
388
|
+
schema: eventSourceConfigCollectionResponse,
|
|
389
|
+
contentType: ContentType.Json,
|
|
390
|
+
status: 200,
|
|
391
|
+
})
|
|
392
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
393
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
394
|
+
.setResponseValidation(this.config, requestConfig)
|
|
395
|
+
.build();
|
|
396
|
+
return this.client.call<EventSourceConfigCollection>(request);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* Creates or updates a eventsource integration for the project. Only administrators can configure integrations.
|
|
401
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
402
|
+
* @returns {Promise<HttpResponse<EventSourceConfigPayload>>} OK
|
|
403
|
+
*/
|
|
404
|
+
async saveEventsourceIntegration(
|
|
405
|
+
body: EventSourceConfigPayload,
|
|
406
|
+
requestConfig?: RequestConfig,
|
|
407
|
+
): Promise<HttpResponse<EventSourceConfigPayload>> {
|
|
408
|
+
const request = new RequestBuilder()
|
|
409
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
410
|
+
.setConfig(this.config)
|
|
411
|
+
.setMethod('PUT')
|
|
412
|
+
.setPath('/integrations/eventsource')
|
|
413
|
+
.setRequestSchema(eventSourceConfigPayloadRequest)
|
|
414
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
415
|
+
.setRequestContentType(ContentType.Json)
|
|
416
|
+
.addResponse({
|
|
417
|
+
schema: eventSourceConfigPayloadResponse,
|
|
418
|
+
contentType: ContentType.Json,
|
|
419
|
+
status: 200,
|
|
420
|
+
})
|
|
421
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
422
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
423
|
+
.setResponseValidation(this.config, requestConfig)
|
|
424
|
+
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
425
|
+
.addBody(body)
|
|
426
|
+
.build();
|
|
427
|
+
return this.client.call<EventSourceConfigPayload>(request);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Removes a eventsource integration configuration from the project. This will disable the integration's functionality within the project.
|
|
432
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
433
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
434
|
+
*/
|
|
435
|
+
async deleteEventsourceIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
436
|
+
const request = new RequestBuilder()
|
|
437
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
438
|
+
.setConfig(this.config)
|
|
439
|
+
.setMethod('DELETE')
|
|
440
|
+
.setPath('/integrations/eventsource')
|
|
441
|
+
.setRequestSchema(z.any())
|
|
442
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
443
|
+
.setRequestContentType(ContentType.Json)
|
|
444
|
+
.addResponse({
|
|
445
|
+
schema: z.undefined(),
|
|
446
|
+
contentType: ContentType.NoContent,
|
|
447
|
+
status: 204,
|
|
448
|
+
})
|
|
449
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
450
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
451
|
+
.setResponseValidation(this.config, requestConfig)
|
|
452
|
+
.build();
|
|
453
|
+
return this.client.call<void>(request);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Removes a specific eventsource integration instance by ID from the project.
|
|
458
|
+
* @param {string} id -
|
|
459
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
460
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
461
|
+
*/
|
|
462
|
+
async deleteEventsourceIntegrationById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
463
|
+
const request = new RequestBuilder()
|
|
464
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
465
|
+
.setConfig(this.config)
|
|
466
|
+
.setMethod('DELETE')
|
|
467
|
+
.setPath('/integrations/eventsource/{id}')
|
|
468
|
+
.setRequestSchema(z.any())
|
|
469
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
470
|
+
.setRequestContentType(ContentType.Json)
|
|
471
|
+
.addResponse({
|
|
472
|
+
schema: z.undefined(),
|
|
473
|
+
contentType: ContentType.NoContent,
|
|
474
|
+
status: 204,
|
|
475
|
+
})
|
|
476
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
477
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
478
|
+
.setResponseValidation(this.config, requestConfig)
|
|
479
|
+
.addPathParam({
|
|
480
|
+
key: 'id',
|
|
481
|
+
value: id,
|
|
482
|
+
})
|
|
483
|
+
.build();
|
|
484
|
+
return this.client.call<void>(request);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Retrieves the current expo integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
489
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
490
|
+
* @returns {Promise<HttpResponse<ExpoConfigCollection>>} OK
|
|
491
|
+
*/
|
|
492
|
+
async getExpoIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<ExpoConfigCollection>> {
|
|
493
|
+
const request = new RequestBuilder()
|
|
494
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
495
|
+
.setConfig(this.config)
|
|
496
|
+
.setMethod('GET')
|
|
497
|
+
.setPath('/integrations/expo')
|
|
498
|
+
.setRequestSchema(z.any())
|
|
499
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
500
|
+
.setRequestContentType(ContentType.Json)
|
|
501
|
+
.addResponse({
|
|
502
|
+
schema: expoConfigCollectionResponse,
|
|
503
|
+
contentType: ContentType.Json,
|
|
504
|
+
status: 200,
|
|
505
|
+
})
|
|
506
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
507
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
508
|
+
.setResponseValidation(this.config, requestConfig)
|
|
509
|
+
.build();
|
|
510
|
+
return this.client.call<ExpoConfigCollection>(request);
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Creates or updates a expo integration for the project. Only administrators can configure integrations.
|
|
515
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
516
|
+
* @returns {Promise<HttpResponse<ExpoConfigPayload>>} OK
|
|
517
|
+
*/
|
|
518
|
+
async saveExpoIntegration(
|
|
519
|
+
body: ExpoConfigPayload,
|
|
520
|
+
requestConfig?: RequestConfig,
|
|
521
|
+
): Promise<HttpResponse<ExpoConfigPayload>> {
|
|
522
|
+
const request = new RequestBuilder()
|
|
523
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
524
|
+
.setConfig(this.config)
|
|
525
|
+
.setMethod('PUT')
|
|
526
|
+
.setPath('/integrations/expo')
|
|
527
|
+
.setRequestSchema(expoConfigPayloadRequest)
|
|
528
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
529
|
+
.setRequestContentType(ContentType.Json)
|
|
530
|
+
.addResponse({
|
|
531
|
+
schema: expoConfigPayloadResponse,
|
|
532
|
+
contentType: ContentType.Json,
|
|
533
|
+
status: 200,
|
|
534
|
+
})
|
|
535
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
536
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
537
|
+
.setResponseValidation(this.config, requestConfig)
|
|
538
|
+
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
539
|
+
.addBody(body)
|
|
540
|
+
.build();
|
|
541
|
+
return this.client.call<ExpoConfigPayload>(request);
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Removes a expo integration configuration from the project. This will disable the integration's functionality within the project.
|
|
546
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
547
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
548
|
+
*/
|
|
549
|
+
async deleteExpoIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
550
|
+
const request = new RequestBuilder()
|
|
551
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
552
|
+
.setConfig(this.config)
|
|
553
|
+
.setMethod('DELETE')
|
|
554
|
+
.setPath('/integrations/expo')
|
|
555
|
+
.setRequestSchema(z.any())
|
|
556
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
557
|
+
.setRequestContentType(ContentType.Json)
|
|
558
|
+
.addResponse({
|
|
559
|
+
schema: z.undefined(),
|
|
560
|
+
contentType: ContentType.NoContent,
|
|
561
|
+
status: 204,
|
|
562
|
+
})
|
|
563
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
564
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
565
|
+
.setResponseValidation(this.config, requestConfig)
|
|
566
|
+
.build();
|
|
567
|
+
return this.client.call<void>(request);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* Removes a specific expo integration instance by ID from the project.
|
|
572
|
+
* @param {string} id -
|
|
573
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
574
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
575
|
+
*/
|
|
576
|
+
async deleteExpoIntegrationById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
577
|
+
const request = new RequestBuilder()
|
|
578
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
579
|
+
.setConfig(this.config)
|
|
580
|
+
.setMethod('DELETE')
|
|
581
|
+
.setPath('/integrations/expo/{id}')
|
|
582
|
+
.setRequestSchema(z.any())
|
|
583
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
584
|
+
.setRequestContentType(ContentType.Json)
|
|
585
|
+
.addResponse({
|
|
586
|
+
schema: z.undefined(),
|
|
587
|
+
contentType: ContentType.NoContent,
|
|
588
|
+
status: 204,
|
|
589
|
+
})
|
|
590
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
591
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
592
|
+
.setResponseValidation(this.config, requestConfig)
|
|
593
|
+
.addPathParam({
|
|
594
|
+
key: 'id',
|
|
595
|
+
value: id,
|
|
596
|
+
})
|
|
597
|
+
.build();
|
|
598
|
+
return this.client.call<void>(request);
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* Retrieves the current fcm integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
603
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
604
|
+
* @returns {Promise<HttpResponse<FcmConfigCollection>>} OK
|
|
605
|
+
*/
|
|
606
|
+
async getFcmIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<FcmConfigCollection>> {
|
|
607
|
+
const request = new RequestBuilder()
|
|
608
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
609
|
+
.setConfig(this.config)
|
|
610
|
+
.setMethod('GET')
|
|
611
|
+
.setPath('/integrations/fcm')
|
|
612
|
+
.setRequestSchema(z.any())
|
|
613
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
614
|
+
.setRequestContentType(ContentType.Json)
|
|
615
|
+
.addResponse({
|
|
616
|
+
schema: fcmConfigCollectionResponse,
|
|
617
|
+
contentType: ContentType.Json,
|
|
618
|
+
status: 200,
|
|
619
|
+
})
|
|
620
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
621
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
622
|
+
.setResponseValidation(this.config, requestConfig)
|
|
623
|
+
.build();
|
|
624
|
+
return this.client.call<FcmConfigCollection>(request);
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* Creates or updates a fcm integration for the project. Only administrators can configure integrations.
|
|
629
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
630
|
+
* @returns {Promise<HttpResponse<FcmConfigPayload>>} OK
|
|
631
|
+
*/
|
|
632
|
+
async saveFcmIntegration(
|
|
633
|
+
body: FcmConfigPayload,
|
|
634
|
+
requestConfig?: RequestConfig,
|
|
635
|
+
): Promise<HttpResponse<FcmConfigPayload>> {
|
|
636
|
+
const request = new RequestBuilder()
|
|
637
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
638
|
+
.setConfig(this.config)
|
|
639
|
+
.setMethod('PUT')
|
|
640
|
+
.setPath('/integrations/fcm')
|
|
641
|
+
.setRequestSchema(fcmConfigPayloadRequest)
|
|
642
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
643
|
+
.setRequestContentType(ContentType.Json)
|
|
644
|
+
.addResponse({
|
|
645
|
+
schema: fcmConfigPayloadResponse,
|
|
646
|
+
contentType: ContentType.Json,
|
|
647
|
+
status: 200,
|
|
648
|
+
})
|
|
649
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
650
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
651
|
+
.setResponseValidation(this.config, requestConfig)
|
|
652
|
+
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
653
|
+
.addBody(body)
|
|
654
|
+
.build();
|
|
655
|
+
return this.client.call<FcmConfigPayload>(request);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Removes a fcm integration configuration from the project. This will disable the integration's functionality within the project.
|
|
660
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
661
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
662
|
+
*/
|
|
663
|
+
async deleteFcmIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
664
|
+
const request = new RequestBuilder()
|
|
665
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
666
|
+
.setConfig(this.config)
|
|
667
|
+
.setMethod('DELETE')
|
|
668
|
+
.setPath('/integrations/fcm')
|
|
669
|
+
.setRequestSchema(z.any())
|
|
670
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
671
|
+
.setRequestContentType(ContentType.Json)
|
|
672
|
+
.addResponse({
|
|
673
|
+
schema: z.undefined(),
|
|
674
|
+
contentType: ContentType.NoContent,
|
|
675
|
+
status: 204,
|
|
676
|
+
})
|
|
677
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
678
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
679
|
+
.setResponseValidation(this.config, requestConfig)
|
|
680
|
+
.build();
|
|
681
|
+
return this.client.call<void>(request);
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* Removes a specific fcm integration instance by ID from the project.
|
|
686
|
+
* @param {string} id -
|
|
687
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
688
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
689
|
+
*/
|
|
690
|
+
async deleteFcmIntegrationById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
691
|
+
const request = new RequestBuilder()
|
|
692
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
693
|
+
.setConfig(this.config)
|
|
694
|
+
.setMethod('DELETE')
|
|
695
|
+
.setPath('/integrations/fcm/{id}')
|
|
696
|
+
.setRequestSchema(z.any())
|
|
697
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
698
|
+
.setRequestContentType(ContentType.Json)
|
|
699
|
+
.addResponse({
|
|
700
|
+
schema: z.undefined(),
|
|
701
|
+
contentType: ContentType.NoContent,
|
|
702
|
+
status: 204,
|
|
703
|
+
})
|
|
704
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
705
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
706
|
+
.setResponseValidation(this.config, requestConfig)
|
|
707
|
+
.addPathParam({
|
|
708
|
+
key: 'id',
|
|
709
|
+
value: id,
|
|
710
|
+
})
|
|
711
|
+
.build();
|
|
712
|
+
return this.client.call<void>(request);
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Retrieves the current github integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
717
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
718
|
+
* @returns {Promise<HttpResponse<GithubConfigCollection>>} OK
|
|
719
|
+
*/
|
|
720
|
+
async getGithubIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<GithubConfigCollection>> {
|
|
721
|
+
const request = new RequestBuilder()
|
|
722
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
723
|
+
.setConfig(this.config)
|
|
724
|
+
.setMethod('GET')
|
|
725
|
+
.setPath('/integrations/github')
|
|
726
|
+
.setRequestSchema(z.any())
|
|
727
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
728
|
+
.setRequestContentType(ContentType.Json)
|
|
729
|
+
.addResponse({
|
|
730
|
+
schema: githubConfigCollectionResponse,
|
|
731
|
+
contentType: ContentType.Json,
|
|
732
|
+
status: 200,
|
|
733
|
+
})
|
|
734
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
735
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
736
|
+
.setResponseValidation(this.config, requestConfig)
|
|
737
|
+
.build();
|
|
738
|
+
return this.client.call<GithubConfigCollection>(request);
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* Creates or updates a github integration for the project. Only administrators can configure integrations.
|
|
743
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
744
|
+
* @returns {Promise<HttpResponse<GithubConfigPayload>>} OK
|
|
745
|
+
*/
|
|
746
|
+
async saveGithubIntegration(
|
|
747
|
+
body: GithubConfigPayload,
|
|
748
|
+
requestConfig?: RequestConfig,
|
|
749
|
+
): Promise<HttpResponse<GithubConfigPayload>> {
|
|
750
|
+
const request = new RequestBuilder()
|
|
751
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
752
|
+
.setConfig(this.config)
|
|
753
|
+
.setMethod('PUT')
|
|
754
|
+
.setPath('/integrations/github')
|
|
755
|
+
.setRequestSchema(githubConfigPayloadRequest)
|
|
756
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
757
|
+
.setRequestContentType(ContentType.Json)
|
|
758
|
+
.addResponse({
|
|
759
|
+
schema: githubConfigPayloadResponse,
|
|
760
|
+
contentType: ContentType.Json,
|
|
761
|
+
status: 200,
|
|
762
|
+
})
|
|
763
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
764
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
765
|
+
.setResponseValidation(this.config, requestConfig)
|
|
766
|
+
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
767
|
+
.addBody(body)
|
|
768
|
+
.build();
|
|
769
|
+
return this.client.call<GithubConfigPayload>(request);
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* Removes a github integration configuration from the project. This will disable the integration's functionality within the project.
|
|
774
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
775
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
776
|
+
*/
|
|
777
|
+
async deleteGithubIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
778
|
+
const request = new RequestBuilder()
|
|
779
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
780
|
+
.setConfig(this.config)
|
|
781
|
+
.setMethod('DELETE')
|
|
782
|
+
.setPath('/integrations/github')
|
|
783
|
+
.setRequestSchema(z.any())
|
|
784
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
785
|
+
.setRequestContentType(ContentType.Json)
|
|
786
|
+
.addResponse({
|
|
787
|
+
schema: z.undefined(),
|
|
788
|
+
contentType: ContentType.NoContent,
|
|
789
|
+
status: 204,
|
|
790
|
+
})
|
|
791
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
792
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
793
|
+
.setResponseValidation(this.config, requestConfig)
|
|
794
|
+
.build();
|
|
795
|
+
return this.client.call<void>(request);
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* Removes a specific github integration instance by ID from the project.
|
|
800
|
+
* @param {string} id -
|
|
801
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
802
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
803
|
+
*/
|
|
804
|
+
async deleteGithubIntegrationById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
805
|
+
const request = new RequestBuilder()
|
|
806
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
807
|
+
.setConfig(this.config)
|
|
808
|
+
.setMethod('DELETE')
|
|
809
|
+
.setPath('/integrations/github/{id}')
|
|
810
|
+
.setRequestSchema(z.any())
|
|
811
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
812
|
+
.setRequestContentType(ContentType.Json)
|
|
813
|
+
.addResponse({
|
|
814
|
+
schema: z.undefined(),
|
|
815
|
+
contentType: ContentType.NoContent,
|
|
816
|
+
status: 204,
|
|
817
|
+
})
|
|
818
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
819
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
820
|
+
.setResponseValidation(this.config, requestConfig)
|
|
821
|
+
.addPathParam({
|
|
822
|
+
key: 'id',
|
|
823
|
+
value: id,
|
|
824
|
+
})
|
|
825
|
+
.build();
|
|
826
|
+
return this.client.call<void>(request);
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* Retrieves the current inbox integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
831
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
832
|
+
* @returns {Promise<HttpResponse<InboxConfigCollection>>} OK
|
|
833
|
+
*/
|
|
834
|
+
async getInboxIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<InboxConfigCollection>> {
|
|
835
|
+
const request = new RequestBuilder()
|
|
836
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
837
|
+
.setConfig(this.config)
|
|
838
|
+
.setMethod('GET')
|
|
839
|
+
.setPath('/integrations/inbox')
|
|
840
|
+
.setRequestSchema(z.any())
|
|
841
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
842
|
+
.setRequestContentType(ContentType.Json)
|
|
843
|
+
.addResponse({
|
|
844
|
+
schema: inboxConfigCollectionResponse,
|
|
845
|
+
contentType: ContentType.Json,
|
|
846
|
+
status: 200,
|
|
847
|
+
})
|
|
848
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
849
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
850
|
+
.setResponseValidation(this.config, requestConfig)
|
|
851
|
+
.build();
|
|
852
|
+
return this.client.call<InboxConfigCollection>(request);
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* Creates or updates a inbox integration for the project. Only administrators can configure integrations.
|
|
857
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
858
|
+
* @returns {Promise<HttpResponse<InboxConfigPayload>>} OK
|
|
859
|
+
*/
|
|
860
|
+
async saveInboxIntegration(
|
|
861
|
+
body: InboxConfigPayload,
|
|
862
|
+
requestConfig?: RequestConfig,
|
|
863
|
+
): Promise<HttpResponse<InboxConfigPayload>> {
|
|
864
|
+
const request = new RequestBuilder()
|
|
865
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
866
|
+
.setConfig(this.config)
|
|
867
|
+
.setMethod('PUT')
|
|
868
|
+
.setPath('/integrations/inbox')
|
|
869
|
+
.setRequestSchema(inboxConfigPayloadRequest)
|
|
870
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
871
|
+
.setRequestContentType(ContentType.Json)
|
|
872
|
+
.addResponse({
|
|
873
|
+
schema: inboxConfigPayloadResponse,
|
|
874
|
+
contentType: ContentType.Json,
|
|
875
|
+
status: 200,
|
|
876
|
+
})
|
|
877
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
878
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
879
|
+
.setResponseValidation(this.config, requestConfig)
|
|
880
|
+
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
881
|
+
.addBody(body)
|
|
882
|
+
.build();
|
|
883
|
+
return this.client.call<InboxConfigPayload>(request);
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* Removes a inbox integration configuration from the project. This will disable the integration's functionality within the project.
|
|
888
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
889
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
890
|
+
*/
|
|
891
|
+
async deleteInboxIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
892
|
+
const request = new RequestBuilder()
|
|
893
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
894
|
+
.setConfig(this.config)
|
|
895
|
+
.setMethod('DELETE')
|
|
896
|
+
.setPath('/integrations/inbox')
|
|
897
|
+
.setRequestSchema(z.any())
|
|
898
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
899
|
+
.setRequestContentType(ContentType.Json)
|
|
900
|
+
.addResponse({
|
|
901
|
+
schema: z.undefined(),
|
|
902
|
+
contentType: ContentType.NoContent,
|
|
903
|
+
status: 204,
|
|
904
|
+
})
|
|
905
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
906
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
907
|
+
.setResponseValidation(this.config, requestConfig)
|
|
908
|
+
.build();
|
|
909
|
+
return this.client.call<void>(request);
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* Removes a specific inbox integration instance by ID from the project.
|
|
914
|
+
* @param {string} id -
|
|
915
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
916
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
917
|
+
*/
|
|
918
|
+
async deleteInboxIntegrationById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
919
|
+
const request = new RequestBuilder()
|
|
920
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
921
|
+
.setConfig(this.config)
|
|
922
|
+
.setMethod('DELETE')
|
|
923
|
+
.setPath('/integrations/inbox/{id}')
|
|
924
|
+
.setRequestSchema(z.any())
|
|
925
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
926
|
+
.setRequestContentType(ContentType.Json)
|
|
927
|
+
.addResponse({
|
|
928
|
+
schema: z.undefined(),
|
|
929
|
+
contentType: ContentType.NoContent,
|
|
930
|
+
status: 204,
|
|
931
|
+
})
|
|
932
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
933
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
934
|
+
.setResponseValidation(this.config, requestConfig)
|
|
935
|
+
.addPathParam({
|
|
936
|
+
key: 'id',
|
|
937
|
+
value: id,
|
|
938
|
+
})
|
|
939
|
+
.build();
|
|
940
|
+
return this.client.call<void>(request);
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
/**
|
|
944
|
+
* Retrieves the current mailgun integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
945
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
946
|
+
* @returns {Promise<HttpResponse<MailgunConfigCollection>>} OK
|
|
947
|
+
*/
|
|
948
|
+
async getMailgunIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<MailgunConfigCollection>> {
|
|
949
|
+
const request = new RequestBuilder()
|
|
950
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
951
|
+
.setConfig(this.config)
|
|
952
|
+
.setMethod('GET')
|
|
953
|
+
.setPath('/integrations/mailgun')
|
|
954
|
+
.setRequestSchema(z.any())
|
|
955
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
956
|
+
.setRequestContentType(ContentType.Json)
|
|
957
|
+
.addResponse({
|
|
958
|
+
schema: mailgunConfigCollectionResponse,
|
|
959
|
+
contentType: ContentType.Json,
|
|
960
|
+
status: 200,
|
|
961
|
+
})
|
|
962
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
963
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
964
|
+
.setResponseValidation(this.config, requestConfig)
|
|
965
|
+
.build();
|
|
966
|
+
return this.client.call<MailgunConfigCollection>(request);
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* Creates or updates a mailgun integration for the project. Only administrators can configure integrations.
|
|
971
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
972
|
+
* @returns {Promise<HttpResponse<MailgunConfigPayload>>} OK
|
|
973
|
+
*/
|
|
974
|
+
async saveMailgunIntegration(
|
|
975
|
+
body: MailgunConfigPayload,
|
|
976
|
+
requestConfig?: RequestConfig,
|
|
977
|
+
): Promise<HttpResponse<MailgunConfigPayload>> {
|
|
978
|
+
const request = new RequestBuilder()
|
|
979
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
980
|
+
.setConfig(this.config)
|
|
981
|
+
.setMethod('PUT')
|
|
982
|
+
.setPath('/integrations/mailgun')
|
|
983
|
+
.setRequestSchema(mailgunConfigPayloadRequest)
|
|
984
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
985
|
+
.setRequestContentType(ContentType.Json)
|
|
986
|
+
.addResponse({
|
|
987
|
+
schema: mailgunConfigPayloadResponse,
|
|
988
|
+
contentType: ContentType.Json,
|
|
989
|
+
status: 200,
|
|
990
|
+
})
|
|
991
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
992
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
993
|
+
.setResponseValidation(this.config, requestConfig)
|
|
994
|
+
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
995
|
+
.addBody(body)
|
|
996
|
+
.build();
|
|
997
|
+
return this.client.call<MailgunConfigPayload>(request);
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* Removes a mailgun integration configuration from the project. This will disable the integration's functionality within the project.
|
|
1002
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1003
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1004
|
+
*/
|
|
1005
|
+
async deleteMailgunIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
1006
|
+
const request = new RequestBuilder()
|
|
1007
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1008
|
+
.setConfig(this.config)
|
|
1009
|
+
.setMethod('DELETE')
|
|
1010
|
+
.setPath('/integrations/mailgun')
|
|
1011
|
+
.setRequestSchema(z.any())
|
|
1012
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1013
|
+
.setRequestContentType(ContentType.Json)
|
|
1014
|
+
.addResponse({
|
|
1015
|
+
schema: z.undefined(),
|
|
1016
|
+
contentType: ContentType.NoContent,
|
|
1017
|
+
status: 204,
|
|
1018
|
+
})
|
|
1019
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1020
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1021
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1022
|
+
.build();
|
|
1023
|
+
return this.client.call<void>(request);
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
/**
|
|
1027
|
+
* Removes a specific mailgun integration instance by ID from the project.
|
|
1028
|
+
* @param {string} id -
|
|
1029
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1030
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1031
|
+
*/
|
|
1032
|
+
async deleteMailgunIntegrationById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
1033
|
+
const request = new RequestBuilder()
|
|
1034
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1035
|
+
.setConfig(this.config)
|
|
1036
|
+
.setMethod('DELETE')
|
|
1037
|
+
.setPath('/integrations/mailgun/{id}')
|
|
1038
|
+
.setRequestSchema(z.any())
|
|
1039
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1040
|
+
.setRequestContentType(ContentType.Json)
|
|
1041
|
+
.addResponse({
|
|
1042
|
+
schema: z.undefined(),
|
|
1043
|
+
contentType: ContentType.NoContent,
|
|
1044
|
+
status: 204,
|
|
1045
|
+
})
|
|
1046
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1047
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1048
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1049
|
+
.addPathParam({
|
|
1050
|
+
key: 'id',
|
|
1051
|
+
value: id,
|
|
1052
|
+
})
|
|
1053
|
+
.build();
|
|
1054
|
+
return this.client.call<void>(request);
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
/**
|
|
1058
|
+
* Retrieves the current ping_email integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1059
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1060
|
+
* @returns {Promise<HttpResponse<PingConfigCollection>>} OK
|
|
1061
|
+
*/
|
|
1062
|
+
async getPingEmailIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<PingConfigCollection>> {
|
|
1063
|
+
const request = new RequestBuilder()
|
|
1064
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1065
|
+
.setConfig(this.config)
|
|
1066
|
+
.setMethod('GET')
|
|
1067
|
+
.setPath('/integrations/ping_email')
|
|
1068
|
+
.setRequestSchema(z.any())
|
|
1069
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1070
|
+
.setRequestContentType(ContentType.Json)
|
|
1071
|
+
.addResponse({
|
|
1072
|
+
schema: pingConfigCollectionResponse,
|
|
1073
|
+
contentType: ContentType.Json,
|
|
1074
|
+
status: 200,
|
|
1075
|
+
})
|
|
1076
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1077
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1078
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1079
|
+
.build();
|
|
1080
|
+
return this.client.call<PingConfigCollection>(request);
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* Creates or updates a ping_email integration for the project. Only administrators can configure integrations.
|
|
1085
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1086
|
+
* @returns {Promise<HttpResponse<PingConfigPayload>>} OK
|
|
1087
|
+
*/
|
|
1088
|
+
async savePingEmailIntegration(
|
|
1089
|
+
body: PingConfigPayload,
|
|
1090
|
+
requestConfig?: RequestConfig,
|
|
1091
|
+
): Promise<HttpResponse<PingConfigPayload>> {
|
|
1092
|
+
const request = new RequestBuilder()
|
|
1093
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1094
|
+
.setConfig(this.config)
|
|
1095
|
+
.setMethod('PUT')
|
|
1096
|
+
.setPath('/integrations/ping_email')
|
|
1097
|
+
.setRequestSchema(pingConfigPayloadRequest)
|
|
1098
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1099
|
+
.setRequestContentType(ContentType.Json)
|
|
1100
|
+
.addResponse({
|
|
1101
|
+
schema: pingConfigPayloadResponse,
|
|
1102
|
+
contentType: ContentType.Json,
|
|
1103
|
+
status: 200,
|
|
1104
|
+
})
|
|
1105
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1106
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1107
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1108
|
+
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
1109
|
+
.addBody(body)
|
|
1110
|
+
.build();
|
|
1111
|
+
return this.client.call<PingConfigPayload>(request);
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* Removes a ping_email integration configuration from the project. This will disable the integration's functionality within the project.
|
|
1116
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1117
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1118
|
+
*/
|
|
1119
|
+
async deletePingEmailIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
1120
|
+
const request = new RequestBuilder()
|
|
1121
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1122
|
+
.setConfig(this.config)
|
|
1123
|
+
.setMethod('DELETE')
|
|
1124
|
+
.setPath('/integrations/ping_email')
|
|
1125
|
+
.setRequestSchema(z.any())
|
|
1126
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1127
|
+
.setRequestContentType(ContentType.Json)
|
|
1128
|
+
.addResponse({
|
|
1129
|
+
schema: z.undefined(),
|
|
1130
|
+
contentType: ContentType.NoContent,
|
|
1131
|
+
status: 204,
|
|
1132
|
+
})
|
|
1133
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1134
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1135
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1136
|
+
.build();
|
|
1137
|
+
return this.client.call<void>(request);
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
/**
|
|
1141
|
+
* Removes a specific ping_email integration instance by ID from the project.
|
|
1142
|
+
* @param {string} id -
|
|
1143
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1144
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1145
|
+
*/
|
|
1146
|
+
async deletePingEmailIntegrationById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
1147
|
+
const request = new RequestBuilder()
|
|
1148
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1149
|
+
.setConfig(this.config)
|
|
1150
|
+
.setMethod('DELETE')
|
|
1151
|
+
.setPath('/integrations/ping_email/{id}')
|
|
1152
|
+
.setRequestSchema(z.any())
|
|
1153
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1154
|
+
.setRequestContentType(ContentType.Json)
|
|
1155
|
+
.addResponse({
|
|
1156
|
+
schema: z.undefined(),
|
|
1157
|
+
contentType: ContentType.NoContent,
|
|
1158
|
+
status: 204,
|
|
1159
|
+
})
|
|
1160
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1161
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1162
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1163
|
+
.addPathParam({
|
|
1164
|
+
key: 'id',
|
|
1165
|
+
value: id,
|
|
1166
|
+
})
|
|
1167
|
+
.build();
|
|
1168
|
+
return this.client.call<void>(request);
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
/**
|
|
1172
|
+
* Retrieves the current sendgrid integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1173
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1174
|
+
* @returns {Promise<HttpResponse<SendgridConfigCollection>>} OK
|
|
1175
|
+
*/
|
|
1176
|
+
async getSendgridIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<SendgridConfigCollection>> {
|
|
1177
|
+
const request = new RequestBuilder()
|
|
1178
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1179
|
+
.setConfig(this.config)
|
|
1180
|
+
.setMethod('GET')
|
|
1181
|
+
.setPath('/integrations/sendgrid')
|
|
1182
|
+
.setRequestSchema(z.any())
|
|
1183
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1184
|
+
.setRequestContentType(ContentType.Json)
|
|
1185
|
+
.addResponse({
|
|
1186
|
+
schema: sendgridConfigCollectionResponse,
|
|
1187
|
+
contentType: ContentType.Json,
|
|
1188
|
+
status: 200,
|
|
1189
|
+
})
|
|
1190
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1191
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1192
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1193
|
+
.build();
|
|
1194
|
+
return this.client.call<SendgridConfigCollection>(request);
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
/**
|
|
1198
|
+
* Creates or updates a sendgrid integration for the project. Only administrators can configure integrations.
|
|
1199
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1200
|
+
* @returns {Promise<HttpResponse<SendgridConfigPayload>>} OK
|
|
1201
|
+
*/
|
|
1202
|
+
async saveSendgridIntegration(
|
|
1203
|
+
body: SendgridConfigPayload,
|
|
1204
|
+
requestConfig?: RequestConfig,
|
|
1205
|
+
): Promise<HttpResponse<SendgridConfigPayload>> {
|
|
1206
|
+
const request = new RequestBuilder()
|
|
1207
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1208
|
+
.setConfig(this.config)
|
|
1209
|
+
.setMethod('PUT')
|
|
1210
|
+
.setPath('/integrations/sendgrid')
|
|
1211
|
+
.setRequestSchema(sendgridConfigPayloadRequest)
|
|
1212
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1213
|
+
.setRequestContentType(ContentType.Json)
|
|
1214
|
+
.addResponse({
|
|
1215
|
+
schema: sendgridConfigPayloadResponse,
|
|
1216
|
+
contentType: ContentType.Json,
|
|
1217
|
+
status: 200,
|
|
1218
|
+
})
|
|
1219
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1220
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1221
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1222
|
+
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
1223
|
+
.addBody(body)
|
|
1224
|
+
.build();
|
|
1225
|
+
return this.client.call<SendgridConfigPayload>(request);
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
/**
|
|
1229
|
+
* Removes a sendgrid integration configuration from the project. This will disable the integration's functionality within the project.
|
|
1230
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1231
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1232
|
+
*/
|
|
1233
|
+
async deleteSendgridIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
1234
|
+
const request = new RequestBuilder()
|
|
1235
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1236
|
+
.setConfig(this.config)
|
|
1237
|
+
.setMethod('DELETE')
|
|
1238
|
+
.setPath('/integrations/sendgrid')
|
|
1239
|
+
.setRequestSchema(z.any())
|
|
1240
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1241
|
+
.setRequestContentType(ContentType.Json)
|
|
1242
|
+
.addResponse({
|
|
1243
|
+
schema: z.undefined(),
|
|
1244
|
+
contentType: ContentType.NoContent,
|
|
1245
|
+
status: 204,
|
|
1246
|
+
})
|
|
1247
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1248
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1249
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1250
|
+
.build();
|
|
1251
|
+
return this.client.call<void>(request);
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
/**
|
|
1255
|
+
* Removes a specific sendgrid integration instance by ID from the project.
|
|
1256
|
+
* @param {string} id -
|
|
1257
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1258
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1259
|
+
*/
|
|
1260
|
+
async deleteSendgridIntegrationById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
1261
|
+
const request = new RequestBuilder()
|
|
1262
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1263
|
+
.setConfig(this.config)
|
|
1264
|
+
.setMethod('DELETE')
|
|
1265
|
+
.setPath('/integrations/sendgrid/{id}')
|
|
1266
|
+
.setRequestSchema(z.any())
|
|
1267
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1268
|
+
.setRequestContentType(ContentType.Json)
|
|
1269
|
+
.addResponse({
|
|
1270
|
+
schema: z.undefined(),
|
|
1271
|
+
contentType: ContentType.NoContent,
|
|
1272
|
+
status: 204,
|
|
1273
|
+
})
|
|
1274
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1275
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1276
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1277
|
+
.addPathParam({
|
|
1278
|
+
key: 'id',
|
|
1279
|
+
value: id,
|
|
1280
|
+
})
|
|
1281
|
+
.build();
|
|
1282
|
+
return this.client.call<void>(request);
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
/**
|
|
1286
|
+
* Retrieves the current ses integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1287
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1288
|
+
* @returns {Promise<HttpResponse<SesConfigCollection>>} OK
|
|
1289
|
+
*/
|
|
1290
|
+
async getSesIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<SesConfigCollection>> {
|
|
1291
|
+
const request = new RequestBuilder()
|
|
1292
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1293
|
+
.setConfig(this.config)
|
|
1294
|
+
.setMethod('GET')
|
|
1295
|
+
.setPath('/integrations/ses')
|
|
1296
|
+
.setRequestSchema(z.any())
|
|
1297
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1298
|
+
.setRequestContentType(ContentType.Json)
|
|
1299
|
+
.addResponse({
|
|
1300
|
+
schema: sesConfigCollectionResponse,
|
|
1301
|
+
contentType: ContentType.Json,
|
|
1302
|
+
status: 200,
|
|
1303
|
+
})
|
|
1304
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1305
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1306
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1307
|
+
.build();
|
|
1308
|
+
return this.client.call<SesConfigCollection>(request);
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
/**
|
|
1312
|
+
* Creates or updates a ses integration for the project. Only administrators can configure integrations.
|
|
1313
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1314
|
+
* @returns {Promise<HttpResponse<SesConfigPayload>>} OK
|
|
1315
|
+
*/
|
|
1316
|
+
async saveSesIntegration(
|
|
1317
|
+
body: SesConfigPayload,
|
|
1318
|
+
requestConfig?: RequestConfig,
|
|
1319
|
+
): Promise<HttpResponse<SesConfigPayload>> {
|
|
1320
|
+
const request = new RequestBuilder()
|
|
1321
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1322
|
+
.setConfig(this.config)
|
|
1323
|
+
.setMethod('PUT')
|
|
1324
|
+
.setPath('/integrations/ses')
|
|
1325
|
+
.setRequestSchema(sesConfigPayloadRequest)
|
|
1326
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1327
|
+
.setRequestContentType(ContentType.Json)
|
|
1328
|
+
.addResponse({
|
|
1329
|
+
schema: sesConfigPayloadResponse,
|
|
1330
|
+
contentType: ContentType.Json,
|
|
1331
|
+
status: 200,
|
|
1332
|
+
})
|
|
1333
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1334
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1335
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1336
|
+
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
1337
|
+
.addBody(body)
|
|
1338
|
+
.build();
|
|
1339
|
+
return this.client.call<SesConfigPayload>(request);
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* Removes a ses integration configuration from the project. This will disable the integration's functionality within the project.
|
|
1344
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1345
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1346
|
+
*/
|
|
1347
|
+
async deleteSesIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
1348
|
+
const request = new RequestBuilder()
|
|
1349
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1350
|
+
.setConfig(this.config)
|
|
1351
|
+
.setMethod('DELETE')
|
|
1352
|
+
.setPath('/integrations/ses')
|
|
1353
|
+
.setRequestSchema(z.any())
|
|
1354
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1355
|
+
.setRequestContentType(ContentType.Json)
|
|
1356
|
+
.addResponse({
|
|
1357
|
+
schema: z.undefined(),
|
|
1358
|
+
contentType: ContentType.NoContent,
|
|
1359
|
+
status: 204,
|
|
1360
|
+
})
|
|
1361
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1362
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1363
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1364
|
+
.build();
|
|
1365
|
+
return this.client.call<void>(request);
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* Removes a specific ses integration instance by ID from the project.
|
|
1370
|
+
* @param {string} id -
|
|
1371
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1372
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1373
|
+
*/
|
|
1374
|
+
async deleteSesIntegrationById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
1375
|
+
const request = new RequestBuilder()
|
|
1376
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1377
|
+
.setConfig(this.config)
|
|
1378
|
+
.setMethod('DELETE')
|
|
1379
|
+
.setPath('/integrations/ses/{id}')
|
|
1380
|
+
.setRequestSchema(z.any())
|
|
1381
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1382
|
+
.setRequestContentType(ContentType.Json)
|
|
1383
|
+
.addResponse({
|
|
1384
|
+
schema: z.undefined(),
|
|
1385
|
+
contentType: ContentType.NoContent,
|
|
1386
|
+
status: 204,
|
|
1387
|
+
})
|
|
1388
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1389
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1390
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1391
|
+
.addPathParam({
|
|
1392
|
+
key: 'id',
|
|
1393
|
+
value: id,
|
|
1394
|
+
})
|
|
1395
|
+
.build();
|
|
1396
|
+
return this.client.call<void>(request);
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
* Retrieves the current slack integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1401
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1402
|
+
* @returns {Promise<HttpResponse<SlackConfigCollection>>} OK
|
|
1403
|
+
*/
|
|
1404
|
+
async getSlackIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<SlackConfigCollection>> {
|
|
1405
|
+
const request = new RequestBuilder()
|
|
1406
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1407
|
+
.setConfig(this.config)
|
|
1408
|
+
.setMethod('GET')
|
|
1409
|
+
.setPath('/integrations/slack')
|
|
1410
|
+
.setRequestSchema(z.any())
|
|
1411
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1412
|
+
.setRequestContentType(ContentType.Json)
|
|
1413
|
+
.addResponse({
|
|
1414
|
+
schema: slackConfigCollectionResponse,
|
|
1415
|
+
contentType: ContentType.Json,
|
|
1416
|
+
status: 200,
|
|
1417
|
+
})
|
|
1418
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1419
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1420
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1421
|
+
.build();
|
|
1422
|
+
return this.client.call<SlackConfigCollection>(request);
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* Creates or updates a slack integration for the project. Only administrators can configure integrations.
|
|
1427
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1428
|
+
* @returns {Promise<HttpResponse<SlackConfigPayload>>} OK
|
|
1429
|
+
*/
|
|
1430
|
+
async saveSlackIntegration(
|
|
1431
|
+
body: SlackConfigPayload,
|
|
1432
|
+
requestConfig?: RequestConfig,
|
|
1433
|
+
): Promise<HttpResponse<SlackConfigPayload>> {
|
|
1434
|
+
const request = new RequestBuilder()
|
|
1435
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1436
|
+
.setConfig(this.config)
|
|
1437
|
+
.setMethod('PUT')
|
|
1438
|
+
.setPath('/integrations/slack')
|
|
1439
|
+
.setRequestSchema(slackConfigPayloadRequest)
|
|
1440
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1441
|
+
.setRequestContentType(ContentType.Json)
|
|
1442
|
+
.addResponse({
|
|
1443
|
+
schema: slackConfigPayloadResponse,
|
|
1444
|
+
contentType: ContentType.Json,
|
|
1445
|
+
status: 200,
|
|
1446
|
+
})
|
|
1447
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1448
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1449
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1450
|
+
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
1451
|
+
.addBody(body)
|
|
1452
|
+
.build();
|
|
1453
|
+
return this.client.call<SlackConfigPayload>(request);
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
/**
|
|
1457
|
+
* Removes a slack integration configuration from the project. This will disable the integration's functionality within the project.
|
|
1458
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1459
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1460
|
+
*/
|
|
1461
|
+
async deleteSlackIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
1462
|
+
const request = new RequestBuilder()
|
|
1463
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1464
|
+
.setConfig(this.config)
|
|
1465
|
+
.setMethod('DELETE')
|
|
1466
|
+
.setPath('/integrations/slack')
|
|
1467
|
+
.setRequestSchema(z.any())
|
|
1468
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1469
|
+
.setRequestContentType(ContentType.Json)
|
|
1470
|
+
.addResponse({
|
|
1471
|
+
schema: z.undefined(),
|
|
1472
|
+
contentType: ContentType.NoContent,
|
|
1473
|
+
status: 204,
|
|
1474
|
+
})
|
|
1475
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1476
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1477
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1478
|
+
.build();
|
|
1479
|
+
return this.client.call<void>(request);
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* Removes a specific slack integration instance by ID from the project.
|
|
1484
|
+
* @param {string} id -
|
|
1485
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1486
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1487
|
+
*/
|
|
1488
|
+
async deleteSlackIntegrationById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
1489
|
+
const request = new RequestBuilder()
|
|
1490
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1491
|
+
.setConfig(this.config)
|
|
1492
|
+
.setMethod('DELETE')
|
|
1493
|
+
.setPath('/integrations/slack/{id}')
|
|
1494
|
+
.setRequestSchema(z.any())
|
|
1495
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1496
|
+
.setRequestContentType(ContentType.Json)
|
|
1497
|
+
.addResponse({
|
|
1498
|
+
schema: z.undefined(),
|
|
1499
|
+
contentType: ContentType.NoContent,
|
|
1500
|
+
status: 204,
|
|
1501
|
+
})
|
|
1502
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1503
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1504
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1505
|
+
.addPathParam({
|
|
1506
|
+
key: 'id',
|
|
1507
|
+
value: id,
|
|
1508
|
+
})
|
|
1509
|
+
.build();
|
|
1510
|
+
return this.client.call<void>(request);
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
/**
|
|
1514
|
+
* Retrieves the current stripe integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1515
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1516
|
+
* @returns {Promise<HttpResponse<StripeConfigCollection>>} OK
|
|
1517
|
+
*/
|
|
1518
|
+
async getStripeIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<StripeConfigCollection>> {
|
|
1519
|
+
const request = new RequestBuilder()
|
|
1520
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1521
|
+
.setConfig(this.config)
|
|
1522
|
+
.setMethod('GET')
|
|
1523
|
+
.setPath('/integrations/stripe')
|
|
1524
|
+
.setRequestSchema(z.any())
|
|
1525
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1526
|
+
.setRequestContentType(ContentType.Json)
|
|
1527
|
+
.addResponse({
|
|
1528
|
+
schema: stripeConfigCollectionResponse,
|
|
1529
|
+
contentType: ContentType.Json,
|
|
1530
|
+
status: 200,
|
|
1531
|
+
})
|
|
1532
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1533
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1534
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1535
|
+
.build();
|
|
1536
|
+
return this.client.call<StripeConfigCollection>(request);
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
/**
|
|
1540
|
+
* Creates or updates a stripe integration for the project. Only administrators can configure integrations.
|
|
1541
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1542
|
+
* @returns {Promise<HttpResponse<StripeConfigPayload>>} OK
|
|
1543
|
+
*/
|
|
1544
|
+
async saveStripeIntegration(
|
|
1545
|
+
body: StripeConfigPayload,
|
|
1546
|
+
requestConfig?: RequestConfig,
|
|
1547
|
+
): Promise<HttpResponse<StripeConfigPayload>> {
|
|
1548
|
+
const request = new RequestBuilder()
|
|
1549
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1550
|
+
.setConfig(this.config)
|
|
1551
|
+
.setMethod('PUT')
|
|
1552
|
+
.setPath('/integrations/stripe')
|
|
1553
|
+
.setRequestSchema(stripeConfigPayloadRequest)
|
|
1554
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1555
|
+
.setRequestContentType(ContentType.Json)
|
|
1556
|
+
.addResponse({
|
|
1557
|
+
schema: stripeConfigPayloadResponse,
|
|
1558
|
+
contentType: ContentType.Json,
|
|
1559
|
+
status: 200,
|
|
1560
|
+
})
|
|
1561
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1562
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1563
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1564
|
+
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
1565
|
+
.addBody(body)
|
|
1566
|
+
.build();
|
|
1567
|
+
return this.client.call<StripeConfigPayload>(request);
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* Removes a stripe integration configuration from the project. This will disable the integration's functionality within the project.
|
|
1572
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1573
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1574
|
+
*/
|
|
1575
|
+
async deleteStripeIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
1576
|
+
const request = new RequestBuilder()
|
|
1577
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1578
|
+
.setConfig(this.config)
|
|
1579
|
+
.setMethod('DELETE')
|
|
1580
|
+
.setPath('/integrations/stripe')
|
|
1581
|
+
.setRequestSchema(z.any())
|
|
1582
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1583
|
+
.setRequestContentType(ContentType.Json)
|
|
1584
|
+
.addResponse({
|
|
1585
|
+
schema: z.undefined(),
|
|
1586
|
+
contentType: ContentType.NoContent,
|
|
1587
|
+
status: 204,
|
|
1588
|
+
})
|
|
1589
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1590
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1591
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1592
|
+
.build();
|
|
1593
|
+
return this.client.call<void>(request);
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
/**
|
|
1597
|
+
* Removes a specific stripe integration instance by ID from the project.
|
|
1598
|
+
* @param {string} id -
|
|
1599
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1600
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1601
|
+
*/
|
|
1602
|
+
async deleteStripeIntegrationById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
1603
|
+
const request = new RequestBuilder()
|
|
1604
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1605
|
+
.setConfig(this.config)
|
|
1606
|
+
.setMethod('DELETE')
|
|
1607
|
+
.setPath('/integrations/stripe/{id}')
|
|
1608
|
+
.setRequestSchema(z.any())
|
|
1609
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1610
|
+
.setRequestContentType(ContentType.Json)
|
|
1611
|
+
.addResponse({
|
|
1612
|
+
schema: z.undefined(),
|
|
1613
|
+
contentType: ContentType.NoContent,
|
|
1614
|
+
status: 204,
|
|
1615
|
+
})
|
|
1616
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1617
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1618
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1619
|
+
.addPathParam({
|
|
1620
|
+
key: 'id',
|
|
1621
|
+
value: id,
|
|
1622
|
+
})
|
|
1623
|
+
.build();
|
|
1624
|
+
return this.client.call<void>(request);
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
/**
|
|
1628
|
+
* Retrieves the current templates integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1629
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1630
|
+
* @returns {Promise<HttpResponse<TemplatesConfigCollection>>} OK
|
|
1631
|
+
*/
|
|
1632
|
+
async getTemplatesIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<TemplatesConfigCollection>> {
|
|
1633
|
+
const request = new RequestBuilder()
|
|
1634
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1635
|
+
.setConfig(this.config)
|
|
1636
|
+
.setMethod('GET')
|
|
1637
|
+
.setPath('/integrations/templates')
|
|
1638
|
+
.setRequestSchema(z.any())
|
|
1639
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1640
|
+
.setRequestContentType(ContentType.Json)
|
|
1641
|
+
.addResponse({
|
|
1642
|
+
schema: templatesConfigCollectionResponse,
|
|
1643
|
+
contentType: ContentType.Json,
|
|
1644
|
+
status: 200,
|
|
1645
|
+
})
|
|
1646
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1647
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1648
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1649
|
+
.build();
|
|
1650
|
+
return this.client.call<TemplatesConfigCollection>(request);
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
/**
|
|
1654
|
+
* Creates or updates a templates integration for the project. Only administrators can configure integrations.
|
|
1655
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1656
|
+
* @returns {Promise<HttpResponse<any>>} OK
|
|
1657
|
+
*/
|
|
1658
|
+
async saveTemplatesIntegration(body: any, requestConfig?: RequestConfig): Promise<HttpResponse<any>> {
|
|
1659
|
+
const request = new RequestBuilder()
|
|
1660
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1661
|
+
.setConfig(this.config)
|
|
1662
|
+
.setMethod('PUT')
|
|
1663
|
+
.setPath('/integrations/templates')
|
|
1664
|
+
.setRequestSchema(z.any())
|
|
1665
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1666
|
+
.setRequestContentType(ContentType.Json)
|
|
1667
|
+
.addResponse({
|
|
1668
|
+
schema: z.any(),
|
|
1669
|
+
contentType: ContentType.Json,
|
|
1670
|
+
status: 200,
|
|
1671
|
+
})
|
|
1672
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1673
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1674
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1675
|
+
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
1676
|
+
.addBody(body)
|
|
1677
|
+
.build();
|
|
1678
|
+
return this.client.call<any>(request);
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
/**
|
|
1682
|
+
* Removes a templates integration configuration from the project. This will disable the integration's functionality within the project.
|
|
1683
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1684
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1685
|
+
*/
|
|
1686
|
+
async deleteTemplatesIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
1687
|
+
const request = new RequestBuilder()
|
|
1688
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1689
|
+
.setConfig(this.config)
|
|
1690
|
+
.setMethod('DELETE')
|
|
1691
|
+
.setPath('/integrations/templates')
|
|
1692
|
+
.setRequestSchema(z.any())
|
|
1693
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1694
|
+
.setRequestContentType(ContentType.Json)
|
|
1695
|
+
.addResponse({
|
|
1696
|
+
schema: z.undefined(),
|
|
1697
|
+
contentType: ContentType.NoContent,
|
|
1698
|
+
status: 204,
|
|
1699
|
+
})
|
|
1700
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1701
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1702
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1703
|
+
.build();
|
|
1704
|
+
return this.client.call<void>(request);
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
/**
|
|
1708
|
+
* Removes a specific templates integration instance by ID from the project.
|
|
1709
|
+
* @param {string} id -
|
|
1710
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1711
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1712
|
+
*/
|
|
1713
|
+
async deleteTemplatesIntegrationById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
1714
|
+
const request = new RequestBuilder()
|
|
1715
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1716
|
+
.setConfig(this.config)
|
|
1717
|
+
.setMethod('DELETE')
|
|
1718
|
+
.setPath('/integrations/templates/{id}')
|
|
1719
|
+
.setRequestSchema(z.any())
|
|
1720
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1721
|
+
.setRequestContentType(ContentType.Json)
|
|
1722
|
+
.addResponse({
|
|
1723
|
+
schema: z.undefined(),
|
|
1724
|
+
contentType: ContentType.NoContent,
|
|
1725
|
+
status: 204,
|
|
1726
|
+
})
|
|
1727
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1728
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1729
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1730
|
+
.addPathParam({
|
|
1731
|
+
key: 'id',
|
|
1732
|
+
value: id,
|
|
1733
|
+
})
|
|
1734
|
+
.build();
|
|
1735
|
+
return this.client.call<void>(request);
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
/**
|
|
1739
|
+
* Retrieves the current twilio integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1740
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1741
|
+
* @returns {Promise<HttpResponse<TwilioConfigCollection>>} OK
|
|
1742
|
+
*/
|
|
1743
|
+
async getTwilioIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<TwilioConfigCollection>> {
|
|
1744
|
+
const request = new RequestBuilder()
|
|
1745
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1746
|
+
.setConfig(this.config)
|
|
1747
|
+
.setMethod('GET')
|
|
1748
|
+
.setPath('/integrations/twilio')
|
|
1749
|
+
.setRequestSchema(z.any())
|
|
1750
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1751
|
+
.setRequestContentType(ContentType.Json)
|
|
1752
|
+
.addResponse({
|
|
1753
|
+
schema: twilioConfigCollectionResponse,
|
|
1754
|
+
contentType: ContentType.Json,
|
|
1755
|
+
status: 200,
|
|
1756
|
+
})
|
|
1757
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1758
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1759
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1760
|
+
.build();
|
|
1761
|
+
return this.client.call<TwilioConfigCollection>(request);
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
/**
|
|
1765
|
+
* Creates or updates a twilio integration for the project. Only administrators can configure integrations.
|
|
1766
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1767
|
+
* @returns {Promise<HttpResponse<TwilioConfigPayload>>} OK
|
|
1768
|
+
*/
|
|
1769
|
+
async saveTwilioIntegration(
|
|
1770
|
+
body: TwilioConfigPayload,
|
|
1771
|
+
requestConfig?: RequestConfig,
|
|
1772
|
+
): Promise<HttpResponse<TwilioConfigPayload>> {
|
|
1773
|
+
const request = new RequestBuilder()
|
|
1774
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1775
|
+
.setConfig(this.config)
|
|
1776
|
+
.setMethod('PUT')
|
|
1777
|
+
.setPath('/integrations/twilio')
|
|
1778
|
+
.setRequestSchema(twilioConfigPayloadRequest)
|
|
1779
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1780
|
+
.setRequestContentType(ContentType.Json)
|
|
1781
|
+
.addResponse({
|
|
1782
|
+
schema: twilioConfigPayloadResponse,
|
|
1783
|
+
contentType: ContentType.Json,
|
|
1784
|
+
status: 200,
|
|
1785
|
+
})
|
|
1786
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1787
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1788
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1789
|
+
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
1790
|
+
.addBody(body)
|
|
1791
|
+
.build();
|
|
1792
|
+
return this.client.call<TwilioConfigPayload>(request);
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1795
|
+
/**
|
|
1796
|
+
* Removes a twilio integration configuration from the project. This will disable the integration's functionality within the project.
|
|
1797
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1798
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1799
|
+
*/
|
|
1800
|
+
async deleteTwilioIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
1801
|
+
const request = new RequestBuilder()
|
|
1802
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1803
|
+
.setConfig(this.config)
|
|
1804
|
+
.setMethod('DELETE')
|
|
1805
|
+
.setPath('/integrations/twilio')
|
|
1806
|
+
.setRequestSchema(z.any())
|
|
1807
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1808
|
+
.setRequestContentType(ContentType.Json)
|
|
1809
|
+
.addResponse({
|
|
1810
|
+
schema: z.undefined(),
|
|
1811
|
+
contentType: ContentType.NoContent,
|
|
1812
|
+
status: 204,
|
|
1813
|
+
})
|
|
1814
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1815
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1816
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1817
|
+
.build();
|
|
1818
|
+
return this.client.call<void>(request);
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
/**
|
|
1822
|
+
* Removes a specific twilio integration instance by ID from the project.
|
|
1823
|
+
* @param {string} id -
|
|
1824
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1825
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1826
|
+
*/
|
|
1827
|
+
async deleteTwilioIntegrationById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
1828
|
+
const request = new RequestBuilder()
|
|
1829
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1830
|
+
.setConfig(this.config)
|
|
1831
|
+
.setMethod('DELETE')
|
|
1832
|
+
.setPath('/integrations/twilio/{id}')
|
|
1833
|
+
.setRequestSchema(z.any())
|
|
1834
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1835
|
+
.setRequestContentType(ContentType.Json)
|
|
1836
|
+
.addResponse({
|
|
1837
|
+
schema: z.undefined(),
|
|
1838
|
+
contentType: ContentType.NoContent,
|
|
1839
|
+
status: 204,
|
|
1840
|
+
})
|
|
1841
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1842
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1843
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1844
|
+
.addPathParam({
|
|
1845
|
+
key: 'id',
|
|
1846
|
+
value: id,
|
|
1847
|
+
})
|
|
1848
|
+
.build();
|
|
1849
|
+
return this.client.call<void>(request);
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
/**
|
|
1853
|
+
* Retrieves the current web_push integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1854
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1855
|
+
* @returns {Promise<HttpResponse<WebpushConfigCollection>>} OK
|
|
1856
|
+
*/
|
|
1857
|
+
async getWebPushIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<WebpushConfigCollection>> {
|
|
1858
|
+
const request = new RequestBuilder()
|
|
1859
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1860
|
+
.setConfig(this.config)
|
|
1861
|
+
.setMethod('GET')
|
|
1862
|
+
.setPath('/integrations/web_push')
|
|
1863
|
+
.setRequestSchema(z.any())
|
|
1864
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1865
|
+
.setRequestContentType(ContentType.Json)
|
|
1866
|
+
.addResponse({
|
|
1867
|
+
schema: webpushConfigCollectionResponse,
|
|
1868
|
+
contentType: ContentType.Json,
|
|
1869
|
+
status: 200,
|
|
1870
|
+
})
|
|
1871
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1872
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1873
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1874
|
+
.build();
|
|
1875
|
+
return this.client.call<WebpushConfigCollection>(request);
|
|
1876
|
+
}
|
|
1877
|
+
|
|
1878
|
+
/**
|
|
1879
|
+
* Creates or updates a web_push integration for the project. Only administrators can configure integrations.
|
|
1880
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1881
|
+
* @returns {Promise<HttpResponse<WebpushConfigPayload>>} OK
|
|
1882
|
+
*/
|
|
1883
|
+
async saveWebPushIntegration(
|
|
1884
|
+
body: WebpushConfigPayload,
|
|
1885
|
+
requestConfig?: RequestConfig,
|
|
1886
|
+
): Promise<HttpResponse<WebpushConfigPayload>> {
|
|
1887
|
+
const request = new RequestBuilder()
|
|
1888
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1889
|
+
.setConfig(this.config)
|
|
1890
|
+
.setMethod('PUT')
|
|
1891
|
+
.setPath('/integrations/web_push')
|
|
1892
|
+
.setRequestSchema(webpushConfigPayloadRequest)
|
|
1893
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1894
|
+
.setRequestContentType(ContentType.Json)
|
|
1895
|
+
.addResponse({
|
|
1896
|
+
schema: webpushConfigPayloadResponse,
|
|
1897
|
+
contentType: ContentType.Json,
|
|
1898
|
+
status: 200,
|
|
1899
|
+
})
|
|
1900
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1901
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1902
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1903
|
+
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
1904
|
+
.addBody(body)
|
|
1905
|
+
.build();
|
|
1906
|
+
return this.client.call<WebpushConfigPayload>(request);
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
/**
|
|
1910
|
+
* Removes a web_push integration configuration from the project. This will disable the integration's functionality within the project.
|
|
1911
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1912
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1913
|
+
*/
|
|
1914
|
+
async deleteWebPushIntegration(requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
1915
|
+
const request = new RequestBuilder()
|
|
1916
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1917
|
+
.setConfig(this.config)
|
|
1918
|
+
.setMethod('DELETE')
|
|
1919
|
+
.setPath('/integrations/web_push')
|
|
1920
|
+
.setRequestSchema(z.any())
|
|
1921
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1922
|
+
.setRequestContentType(ContentType.Json)
|
|
1923
|
+
.addResponse({
|
|
1924
|
+
schema: z.undefined(),
|
|
1925
|
+
contentType: ContentType.NoContent,
|
|
1926
|
+
status: 204,
|
|
1927
|
+
})
|
|
1928
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1929
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1930
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1931
|
+
.build();
|
|
1932
|
+
return this.client.call<void>(request);
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1935
|
+
/**
|
|
1936
|
+
* Removes a specific web_push integration instance by ID from the project.
|
|
1937
|
+
* @param {string} id -
|
|
1938
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1939
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1940
|
+
*/
|
|
1941
|
+
async deleteWebPushIntegrationById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>> {
|
|
1942
|
+
const request = new RequestBuilder()
|
|
1943
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1944
|
+
.setConfig(this.config)
|
|
1945
|
+
.setMethod('DELETE')
|
|
1946
|
+
.setPath('/integrations/web_push/{id}')
|
|
1947
|
+
.setRequestSchema(z.any())
|
|
1948
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1949
|
+
.setRequestContentType(ContentType.Json)
|
|
1950
|
+
.addResponse({
|
|
1951
|
+
schema: z.undefined(),
|
|
1952
|
+
contentType: ContentType.NoContent,
|
|
1953
|
+
status: 204,
|
|
1954
|
+
})
|
|
1955
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
1956
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
1957
|
+
.setResponseValidation(this.config, requestConfig)
|
|
1958
|
+
.addPathParam({
|
|
1959
|
+
key: 'id',
|
|
1960
|
+
value: id,
|
|
1961
|
+
})
|
|
1962
|
+
.build();
|
|
1963
|
+
return this.client.call<void>(request);
|
|
1964
|
+
}
|
|
1965
|
+
}
|