magicbell-js 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -38
- package/dist/commonjs/project-client/index.d.ts +0 -6
- package/dist/commonjs/project-client/index.d.ts.map +1 -1
- package/dist/commonjs/project-client/index.js +2 -28
- package/dist/commonjs/project-client/index.js.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/broadcasts-service.d.ts +1 -1
- package/dist/commonjs/project-client/services/broadcasts/broadcasts-service.js +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/broadcast-collection.d.ts +924 -942
- package/dist/commonjs/project-client/services/broadcasts/models/broadcast-collection.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/broadcast.d.ts +639 -697
- package/dist/commonjs/project-client/services/broadcasts/models/broadcast.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/broadcast.js +7 -6
- package/dist/commonjs/project-client/services/broadcasts/models/broadcast.js.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/email.d.ts +3 -3
- package/dist/commonjs/project-client/services/broadcasts/models/in-app.d.ts +3 -3
- package/dist/commonjs/project-client/services/broadcasts/models/index.d.ts +0 -2
- package/dist/commonjs/project-client/services/broadcasts/models/index.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/index.js.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/mobile-push.d.ts +3 -3
- package/dist/commonjs/project-client/services/broadcasts/models/overrides-channels.d.ts +17 -229
- package/dist/commonjs/project-client/services/broadcasts/models/overrides-channels.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/overrides-channels.js +0 -12
- package/dist/commonjs/project-client/services/broadcasts/models/overrides-channels.js.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/overrides.d.ts +200 -441
- package/dist/commonjs/project-client/services/broadcasts/models/overrides.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/providers.d.ts +102 -60
- package/dist/commonjs/project-client/services/broadcasts/models/providers.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/providers.js +35 -20
- package/dist/commonjs/project-client/services/broadcasts/models/providers.js.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/sms.d.ts +3 -3
- package/dist/commonjs/project-client/services/channels/channels-service.d.ts +48 -48
- package/dist/commonjs/project-client/services/channels/channels-service.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/channels/channels-service.js +59 -59
- package/dist/commonjs/project-client/services/channels/channels-service.js.map +1 -1
- package/dist/commonjs/project-client/services/channels/models/discard-result.d.ts +8 -8
- package/dist/commonjs/project-client/services/channels/models/inbox-token-response-collection.d.ts +14 -14
- package/dist/commonjs/project-client/services/channels/models/inbox-token-response.d.ts +8 -8
- package/dist/commonjs/project-client/services/channels/models/slack-token-collection.d.ts +14 -14
- package/dist/commonjs/project-client/services/channels/models/slack-token.d.ts +8 -8
- package/dist/commonjs/project-client/services/channels/request-params.d.ts +7 -10
- package/dist/commonjs/project-client/services/channels/request-params.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/common/index.d.ts +1 -0
- package/dist/commonjs/project-client/services/common/index.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/{users/models → common}/user.d.ts +24 -24
- package/dist/commonjs/project-client/services/common/user.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/common/user.js.map +1 -0
- package/dist/commonjs/project-client/services/events/events-service.d.ts +3 -3
- package/dist/commonjs/project-client/services/events/events-service.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/events/events-service.js +6 -6
- package/dist/commonjs/project-client/services/events/events-service.js.map +1 -1
- package/dist/commonjs/project-client/services/integrations/integrations-service.d.ts +67 -267
- package/dist/commonjs/project-client/services/integrations/integrations-service.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/integrations/integrations-service.js +181 -1000
- package/dist/commonjs/project-client/services/integrations/integrations-service.js.map +1 -1
- package/dist/commonjs/project-client/services/integrations/models/inbox-config-collection.d.ts +182 -182
- package/dist/commonjs/project-client/services/integrations/models/inbox-config-payload.d.ts +98 -98
- package/dist/commonjs/project-client/services/integrations/models/inbox-config.d.ts +140 -140
- package/dist/commonjs/project-client/services/integrations/models/index.d.ts +0 -14
- package/dist/commonjs/project-client/services/integrations/models/index.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/integrations/models/index.js.map +1 -1
- package/dist/commonjs/project-client/services/integrations/models/theme.d.ts +56 -56
- package/dist/commonjs/project-client/services/integrations/request-params.d.ts +33 -0
- package/dist/commonjs/project-client/services/integrations/request-params.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/users/models/index.d.ts +0 -1
- package/dist/commonjs/project-client/services/users/models/index.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/users/models/user-collection.d.ts +42 -42
- package/dist/commonjs/project-client/services/users/models/user-collection.js +1 -1
- package/dist/commonjs/project-client/services/users/models/user-collection.js.map +1 -1
- package/dist/commonjs/project-client/services/users/users-service.d.ts +6 -6
- package/dist/commonjs/project-client/services/users/users-service.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/users/users-service.js +8 -8
- package/dist/commonjs/project-client/services/users/users-service.js.map +1 -1
- package/dist/commonjs/user-client/services/channels/channels-service.d.ts +61 -61
- package/dist/commonjs/user-client/services/channels/channels-service.d.ts.map +1 -1
- package/dist/commonjs/user-client/services/channels/channels-service.js +74 -74
- package/dist/commonjs/user-client/services/channels/channels-service.js.map +1 -1
- package/dist/commonjs/user-client/services/channels/models/discard-result.d.ts +8 -8
- package/dist/commonjs/user-client/services/channels/models/inbox-token-response-collection.d.ts +14 -14
- package/dist/commonjs/user-client/services/channels/models/inbox-token-response.d.ts +8 -8
- package/dist/commonjs/user-client/services/channels/models/slack-token-collection.d.ts +14 -14
- package/dist/commonjs/user-client/services/channels/models/slack-token.d.ts +8 -8
- package/dist/commonjs/user-client/services/channels/request-params.d.ts +7 -7
- package/dist/commonjs/user-client/services/channels/request-params.d.ts.map +1 -1
- package/dist/commonjs/user-client/services/integrations/integrations-service.d.ts +10 -17
- package/dist/commonjs/user-client/services/integrations/integrations-service.d.ts.map +1 -1
- package/dist/commonjs/user-client/services/integrations/integrations-service.js +16 -44
- package/dist/commonjs/user-client/services/integrations/integrations-service.js.map +1 -1
- package/dist/commonjs/user-client/services/integrations/models/authed-user.d.ts +8 -8
- package/dist/commonjs/user-client/services/integrations/models/inbox-config-payload.d.ts +98 -98
- package/dist/commonjs/user-client/services/integrations/models/index.d.ts +0 -1
- package/dist/commonjs/user-client/services/integrations/models/index.d.ts.map +1 -1
- package/dist/commonjs/user-client/services/integrations/models/slack-installation.d.ts +57 -57
- package/dist/commonjs/user-client/services/integrations/models/slack-start-install.d.ts +8 -8
- package/dist/commonjs/user-client/services/integrations/models/theme.d.ts +56 -56
- package/dist/commonjs/user-client/services/notifications/models/notification-collection.d.ts +56 -56
- package/dist/commonjs/user-client/services/notifications/models/notification.d.ts +32 -32
- package/dist/commonjs/user-client/services/notifications/notifications-service.d.ts +6 -6
- package/dist/commonjs/user-client/services/notifications/notifications-service.d.ts.map +1 -1
- package/dist/commonjs/user-client/services/notifications/notifications-service.js +5 -5
- package/dist/commonjs/user-client/services/notifications/notifications-service.js.map +1 -1
- package/dist/commonjs/user-client/services/notifications/request-params.d.ts +2 -2
- package/dist/commonjs/user-client/services/notifications/request-params.d.ts.map +1 -1
- package/dist/esm/project-client/index.d.ts +0 -6
- package/dist/esm/project-client/index.d.ts.map +1 -1
- package/dist/esm/project-client/index.js +0 -26
- package/dist/esm/project-client/index.js.map +1 -1
- package/dist/esm/project-client/services/broadcasts/broadcasts-service.d.ts +1 -1
- package/dist/esm/project-client/services/broadcasts/broadcasts-service.js +1 -1
- package/dist/esm/project-client/services/broadcasts/models/broadcast-collection.d.ts +924 -942
- package/dist/esm/project-client/services/broadcasts/models/broadcast-collection.d.ts.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/broadcast.d.ts +639 -697
- package/dist/esm/project-client/services/broadcasts/models/broadcast.d.ts.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/broadcast.js +7 -6
- package/dist/esm/project-client/services/broadcasts/models/broadcast.js.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/email.d.ts +3 -3
- package/dist/esm/project-client/services/broadcasts/models/in-app.d.ts +3 -3
- package/dist/esm/project-client/services/broadcasts/models/index.d.ts +0 -2
- package/dist/esm/project-client/services/broadcasts/models/index.d.ts.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/index.js.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/mobile-push.d.ts +3 -3
- package/dist/esm/project-client/services/broadcasts/models/overrides-channels.d.ts +17 -229
- package/dist/esm/project-client/services/broadcasts/models/overrides-channels.d.ts.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/overrides-channels.js +0 -12
- package/dist/esm/project-client/services/broadcasts/models/overrides-channels.js.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/overrides.d.ts +200 -441
- package/dist/esm/project-client/services/broadcasts/models/overrides.d.ts.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/providers.d.ts +102 -60
- package/dist/esm/project-client/services/broadcasts/models/providers.d.ts.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/providers.js +35 -20
- package/dist/esm/project-client/services/broadcasts/models/providers.js.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/sms.d.ts +3 -3
- package/dist/esm/project-client/services/channels/channels-service.d.ts +48 -48
- package/dist/esm/project-client/services/channels/channels-service.d.ts.map +1 -1
- package/dist/esm/project-client/services/channels/channels-service.js +59 -59
- package/dist/esm/project-client/services/channels/channels-service.js.map +1 -1
- package/dist/esm/project-client/services/channels/models/discard-result.d.ts +8 -8
- package/dist/esm/project-client/services/channels/models/inbox-token-response-collection.d.ts +14 -14
- package/dist/esm/project-client/services/channels/models/inbox-token-response.d.ts +8 -8
- package/dist/esm/project-client/services/channels/models/slack-token-collection.d.ts +14 -14
- package/dist/esm/project-client/services/channels/models/slack-token.d.ts +8 -8
- package/dist/esm/project-client/services/channels/request-params.d.ts +7 -10
- package/dist/esm/project-client/services/channels/request-params.d.ts.map +1 -1
- package/dist/esm/project-client/services/common/index.d.ts +1 -0
- package/dist/esm/project-client/services/common/index.d.ts.map +1 -1
- package/dist/esm/project-client/services/{users/models → common}/user.d.ts +24 -24
- package/dist/esm/project-client/services/common/user.d.ts.map +1 -0
- package/dist/esm/project-client/services/common/user.js.map +1 -0
- package/dist/esm/project-client/services/events/events-service.d.ts +3 -3
- package/dist/esm/project-client/services/events/events-service.d.ts.map +1 -1
- package/dist/esm/project-client/services/events/events-service.js +6 -6
- package/dist/esm/project-client/services/events/events-service.js.map +1 -1
- package/dist/esm/project-client/services/integrations/integrations-service.d.ts +67 -267
- package/dist/esm/project-client/services/integrations/integrations-service.d.ts.map +1 -1
- package/dist/esm/project-client/services/integrations/integrations-service.js +181 -1000
- package/dist/esm/project-client/services/integrations/integrations-service.js.map +1 -1
- package/dist/esm/project-client/services/integrations/models/inbox-config-collection.d.ts +182 -182
- package/dist/esm/project-client/services/integrations/models/inbox-config-payload.d.ts +98 -98
- package/dist/esm/project-client/services/integrations/models/inbox-config.d.ts +140 -140
- package/dist/esm/project-client/services/integrations/models/index.d.ts +0 -14
- package/dist/esm/project-client/services/integrations/models/index.d.ts.map +1 -1
- package/dist/esm/project-client/services/integrations/models/index.js.map +1 -1
- package/dist/esm/project-client/services/integrations/models/theme.d.ts +56 -56
- package/dist/esm/project-client/services/integrations/request-params.d.ts +33 -0
- package/dist/esm/project-client/services/integrations/request-params.d.ts.map +1 -1
- package/dist/esm/project-client/services/users/models/index.d.ts +0 -1
- package/dist/esm/project-client/services/users/models/index.d.ts.map +1 -1
- package/dist/esm/project-client/services/users/models/user-collection.d.ts +42 -42
- package/dist/esm/project-client/services/users/models/user-collection.js +1 -1
- package/dist/esm/project-client/services/users/models/user-collection.js.map +1 -1
- package/dist/esm/project-client/services/users/users-service.d.ts +6 -6
- package/dist/esm/project-client/services/users/users-service.d.ts.map +1 -1
- package/dist/esm/project-client/services/users/users-service.js +8 -8
- package/dist/esm/project-client/services/users/users-service.js.map +1 -1
- package/dist/esm/user-client/services/channels/channels-service.d.ts +61 -61
- package/dist/esm/user-client/services/channels/channels-service.d.ts.map +1 -1
- package/dist/esm/user-client/services/channels/channels-service.js +74 -74
- package/dist/esm/user-client/services/channels/channels-service.js.map +1 -1
- package/dist/esm/user-client/services/channels/models/discard-result.d.ts +8 -8
- package/dist/esm/user-client/services/channels/models/inbox-token-response-collection.d.ts +14 -14
- package/dist/esm/user-client/services/channels/models/inbox-token-response.d.ts +8 -8
- package/dist/esm/user-client/services/channels/models/slack-token-collection.d.ts +14 -14
- package/dist/esm/user-client/services/channels/models/slack-token.d.ts +8 -8
- package/dist/esm/user-client/services/channels/request-params.d.ts +7 -7
- package/dist/esm/user-client/services/channels/request-params.d.ts.map +1 -1
- package/dist/esm/user-client/services/integrations/integrations-service.d.ts +10 -17
- package/dist/esm/user-client/services/integrations/integrations-service.d.ts.map +1 -1
- package/dist/esm/user-client/services/integrations/integrations-service.js +16 -44
- package/dist/esm/user-client/services/integrations/integrations-service.js.map +1 -1
- package/dist/esm/user-client/services/integrations/models/authed-user.d.ts +8 -8
- package/dist/esm/user-client/services/integrations/models/inbox-config-payload.d.ts +98 -98
- package/dist/esm/user-client/services/integrations/models/index.d.ts +0 -1
- package/dist/esm/user-client/services/integrations/models/index.d.ts.map +1 -1
- package/dist/esm/user-client/services/integrations/models/slack-installation.d.ts +57 -57
- package/dist/esm/user-client/services/integrations/models/slack-start-install.d.ts +8 -8
- package/dist/esm/user-client/services/integrations/models/theme.d.ts +56 -56
- package/dist/esm/user-client/services/notifications/models/notification-collection.d.ts +56 -56
- package/dist/esm/user-client/services/notifications/models/notification.d.ts +32 -32
- package/dist/esm/user-client/services/notifications/notifications-service.d.ts +6 -6
- package/dist/esm/user-client/services/notifications/notifications-service.d.ts.map +1 -1
- package/dist/esm/user-client/services/notifications/notifications-service.js +5 -5
- package/dist/esm/user-client/services/notifications/notifications-service.js.map +1 -1
- package/dist/esm/user-client/services/notifications/request-params.d.ts +2 -2
- package/dist/esm/user-client/services/notifications/request-params.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/project-client/index.ts +0 -20
- package/src/project-client/services/broadcasts/broadcasts-service.ts +1 -1
- package/src/project-client/services/broadcasts/models/broadcast.ts +8 -7
- package/src/project-client/services/broadcasts/models/index.ts +0 -2
- package/src/project-client/services/broadcasts/models/overrides-channels.ts +0 -14
- package/src/project-client/services/broadcasts/models/providers.ts +38 -20
- package/src/project-client/services/channels/channels-service.ts +74 -78
- package/src/project-client/services/channels/request-params.ts +7 -11
- package/src/project-client/services/common/index.ts +1 -0
- package/src/project-client/services/events/events-service.ts +6 -6
- package/src/project-client/services/integrations/integrations-service.ts +247 -1082
- package/src/project-client/services/integrations/models/index.ts +0 -14
- package/src/project-client/services/integrations/request-params.ts +44 -0
- package/src/project-client/services/users/models/index.ts +0 -1
- package/src/project-client/services/users/models/user-collection.ts +1 -1
- package/src/project-client/services/users/users-service.ts +8 -8
- package/src/user-client/services/channels/channels-service.ts +88 -106
- package/src/user-client/services/channels/request-params.ts +7 -7
- package/src/user-client/services/integrations/integrations-service.ts +16 -52
- package/src/user-client/services/integrations/models/index.ts +0 -1
- package/src/user-client/services/notifications/notifications-service.ts +12 -8
- package/src/user-client/services/notifications/request-params.ts +2 -2
- package/dist/commonjs/project-client/services/broadcasts/models/slack.d.ts +0 -76
- package/dist/commonjs/project-client/services/broadcasts/models/slack.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/broadcasts/models/slack.js +0 -49
- package/dist/commonjs/project-client/services/broadcasts/models/slack.js.map +0 -1
- package/dist/commonjs/project-client/services/broadcasts/models/web-push.d.ts +0 -76
- package/dist/commonjs/project-client/services/broadcasts/models/web-push.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/broadcasts/models/web-push.js +0 -49
- package/dist/commonjs/project-client/services/broadcasts/models/web-push.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-collection.d.ts +0 -312
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-collection.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-collection.js +0 -46
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-collection.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-payload.d.ts +0 -48
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-payload.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-payload.js +0 -39
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-payload.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/awssns-config.d.ts +0 -122
- package/dist/commonjs/project-client/services/integrations/models/awssns-config.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/awssns-config.js +0 -50
- package/dist/commonjs/project-client/services/integrations/models/awssns-config.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-collection.d.ts +0 -312
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-collection.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-collection.js +0 -46
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-collection.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-payload.d.ts +0 -48
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-payload.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-payload.js +0 -39
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-payload.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/event-source-config.d.ts +0 -122
- package/dist/commonjs/project-client/services/integrations/models/event-source-config.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/event-source-config.js +0 -50
- package/dist/commonjs/project-client/services/integrations/models/event-source-config.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/github-config-collection.d.ts +0 -312
- package/dist/commonjs/project-client/services/integrations/models/github-config-collection.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/github-config-collection.js +0 -46
- package/dist/commonjs/project-client/services/integrations/models/github-config-collection.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/github-config-payload.d.ts +0 -48
- package/dist/commonjs/project-client/services/integrations/models/github-config-payload.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/github-config-payload.js +0 -39
- package/dist/commonjs/project-client/services/integrations/models/github-config-payload.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/github-config.d.ts +0 -122
- package/dist/commonjs/project-client/services/integrations/models/github-config.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/github-config.js +0 -50
- package/dist/commonjs/project-client/services/integrations/models/github-config.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-collection.d.ts +0 -312
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-collection.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-collection.js +0 -46
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-collection.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-payload.d.ts +0 -48
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-payload.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-payload.js +0 -39
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-payload.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/stripe-config.d.ts +0 -122
- package/dist/commonjs/project-client/services/integrations/models/stripe-config.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/stripe-config.js +0 -50
- package/dist/commonjs/project-client/services/integrations/models/stripe-config.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/templates-config-collection.d.ts +0 -246
- package/dist/commonjs/project-client/services/integrations/models/templates-config-collection.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/templates-config-collection.js +0 -46
- package/dist/commonjs/project-client/services/integrations/models/templates-config-collection.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/templates-config.d.ts +0 -76
- package/dist/commonjs/project-client/services/integrations/models/templates-config.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/templates-config.js +0 -49
- package/dist/commonjs/project-client/services/integrations/models/templates-config.js.map +0 -1
- package/dist/commonjs/project-client/services/jwt/index.d.ts +0 -3
- package/dist/commonjs/project-client/services/jwt/index.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/jwt/index.js +0 -8
- package/dist/commonjs/project-client/services/jwt/index.js.map +0 -1
- package/dist/commonjs/project-client/services/jwt/jwt-service.d.ts +0 -32
- package/dist/commonjs/project-client/services/jwt/jwt-service.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/jwt/jwt-service.js +0 -113
- package/dist/commonjs/project-client/services/jwt/jwt-service.js.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/access-token-collection.d.ts +0 -292
- package/dist/commonjs/project-client/services/jwt/models/access-token-collection.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/access-token-collection.js +0 -46
- package/dist/commonjs/project-client/services/jwt/models/access-token-collection.js.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/access-token.d.ts +0 -104
- package/dist/commonjs/project-client/services/jwt/models/access-token.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/access-token.js +0 -59
- package/dist/commonjs/project-client/services/jwt/models/access-token.js.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/create-project-token-request.d.ts +0 -62
- package/dist/commonjs/project-client/services/jwt/models/create-project-token-request.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/create-project-token-request.js +0 -44
- package/dist/commonjs/project-client/services/jwt/models/create-project-token-request.js.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/create-token-response.d.ts +0 -90
- package/dist/commonjs/project-client/services/jwt/models/create-token-response.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/create-token-response.js +0 -54
- package/dist/commonjs/project-client/services/jwt/models/create-token-response.js.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/discard-token-response.d.ts +0 -62
- package/dist/commonjs/project-client/services/jwt/models/discard-token-response.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/discard-token-response.js +0 -44
- package/dist/commonjs/project-client/services/jwt/models/discard-token-response.js.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/index.d.ts +0 -6
- package/dist/commonjs/project-client/services/jwt/models/index.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/index.js +0 -3
- package/dist/commonjs/project-client/services/jwt/models/index.js.map +0 -1
- package/dist/commonjs/project-client/services/jwt/request-params.d.ts +0 -6
- package/dist/commonjs/project-client/services/jwt/request-params.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/jwt/request-params.js +0 -3
- package/dist/commonjs/project-client/services/jwt/request-params.js.map +0 -1
- package/dist/commonjs/project-client/services/notifications/index.d.ts +0 -3
- package/dist/commonjs/project-client/services/notifications/index.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/notifications/index.js +0 -8
- package/dist/commonjs/project-client/services/notifications/index.js.map +0 -1
- package/dist/commonjs/project-client/services/notifications/models/delivery-plan-collection.d.ts +0 -384
- package/dist/commonjs/project-client/services/notifications/models/delivery-plan-collection.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/notifications/models/delivery-plan-collection.js +0 -46
- package/dist/commonjs/project-client/services/notifications/models/delivery-plan-collection.js.map +0 -1
- package/dist/commonjs/project-client/services/notifications/models/delivery-plan.d.ts +0 -160
- package/dist/commonjs/project-client/services/notifications/models/delivery-plan.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/notifications/models/delivery-plan.js +0 -79
- package/dist/commonjs/project-client/services/notifications/models/delivery-plan.js.map +0 -1
- package/dist/commonjs/project-client/services/notifications/models/index.d.ts +0 -3
- package/dist/commonjs/project-client/services/notifications/models/index.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/notifications/models/index.js +0 -3
- package/dist/commonjs/project-client/services/notifications/models/index.js.map +0 -1
- package/dist/commonjs/project-client/services/notifications/notifications-service.d.ts +0 -13
- package/dist/commonjs/project-client/services/notifications/notifications-service.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/notifications/notifications-service.js +0 -43
- package/dist/commonjs/project-client/services/notifications/notifications-service.js.map +0 -1
- package/dist/commonjs/project-client/services/users/models/user.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/users/models/user.js.map +0 -1
- package/dist/commonjs/user-client/services/integrations/models/templates-installation.d.ts +0 -76
- package/dist/commonjs/user-client/services/integrations/models/templates-installation.d.ts.map +0 -1
- package/dist/commonjs/user-client/services/integrations/models/templates-installation.js +0 -49
- package/dist/commonjs/user-client/services/integrations/models/templates-installation.js.map +0 -1
- package/dist/esm/project-client/services/broadcasts/models/slack.d.ts +0 -76
- package/dist/esm/project-client/services/broadcasts/models/slack.d.ts.map +0 -1
- package/dist/esm/project-client/services/broadcasts/models/slack.js +0 -46
- package/dist/esm/project-client/services/broadcasts/models/slack.js.map +0 -1
- package/dist/esm/project-client/services/broadcasts/models/web-push.d.ts +0 -76
- package/dist/esm/project-client/services/broadcasts/models/web-push.d.ts.map +0 -1
- package/dist/esm/project-client/services/broadcasts/models/web-push.js +0 -46
- package/dist/esm/project-client/services/broadcasts/models/web-push.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/awssns-config-collection.d.ts +0 -312
- package/dist/esm/project-client/services/integrations/models/awssns-config-collection.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/awssns-config-collection.js +0 -43
- package/dist/esm/project-client/services/integrations/models/awssns-config-collection.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/awssns-config-payload.d.ts +0 -48
- package/dist/esm/project-client/services/integrations/models/awssns-config-payload.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/awssns-config-payload.js +0 -36
- package/dist/esm/project-client/services/integrations/models/awssns-config-payload.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/awssns-config.d.ts +0 -122
- package/dist/esm/project-client/services/integrations/models/awssns-config.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/awssns-config.js +0 -47
- package/dist/esm/project-client/services/integrations/models/awssns-config.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/event-source-config-collection.d.ts +0 -312
- package/dist/esm/project-client/services/integrations/models/event-source-config-collection.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/event-source-config-collection.js +0 -43
- package/dist/esm/project-client/services/integrations/models/event-source-config-collection.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/event-source-config-payload.d.ts +0 -48
- package/dist/esm/project-client/services/integrations/models/event-source-config-payload.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/event-source-config-payload.js +0 -36
- package/dist/esm/project-client/services/integrations/models/event-source-config-payload.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/event-source-config.d.ts +0 -122
- package/dist/esm/project-client/services/integrations/models/event-source-config.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/event-source-config.js +0 -47
- package/dist/esm/project-client/services/integrations/models/event-source-config.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/github-config-collection.d.ts +0 -312
- package/dist/esm/project-client/services/integrations/models/github-config-collection.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/github-config-collection.js +0 -43
- package/dist/esm/project-client/services/integrations/models/github-config-collection.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/github-config-payload.d.ts +0 -48
- package/dist/esm/project-client/services/integrations/models/github-config-payload.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/github-config-payload.js +0 -36
- package/dist/esm/project-client/services/integrations/models/github-config-payload.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/github-config.d.ts +0 -122
- package/dist/esm/project-client/services/integrations/models/github-config.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/github-config.js +0 -47
- package/dist/esm/project-client/services/integrations/models/github-config.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/stripe-config-collection.d.ts +0 -312
- package/dist/esm/project-client/services/integrations/models/stripe-config-collection.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/stripe-config-collection.js +0 -43
- package/dist/esm/project-client/services/integrations/models/stripe-config-collection.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/stripe-config-payload.d.ts +0 -48
- package/dist/esm/project-client/services/integrations/models/stripe-config-payload.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/stripe-config-payload.js +0 -36
- package/dist/esm/project-client/services/integrations/models/stripe-config-payload.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/stripe-config.d.ts +0 -122
- package/dist/esm/project-client/services/integrations/models/stripe-config.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/stripe-config.js +0 -47
- package/dist/esm/project-client/services/integrations/models/stripe-config.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/templates-config-collection.d.ts +0 -246
- package/dist/esm/project-client/services/integrations/models/templates-config-collection.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/templates-config-collection.js +0 -43
- package/dist/esm/project-client/services/integrations/models/templates-config-collection.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/templates-config.d.ts +0 -76
- package/dist/esm/project-client/services/integrations/models/templates-config.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/templates-config.js +0 -46
- package/dist/esm/project-client/services/integrations/models/templates-config.js.map +0 -1
- package/dist/esm/project-client/services/jwt/index.d.ts +0 -3
- package/dist/esm/project-client/services/jwt/index.d.ts.map +0 -1
- package/dist/esm/project-client/services/jwt/index.js +0 -3
- package/dist/esm/project-client/services/jwt/index.js.map +0 -1
- package/dist/esm/project-client/services/jwt/jwt-service.d.ts +0 -32
- package/dist/esm/project-client/services/jwt/jwt-service.d.ts.map +0 -1
- package/dist/esm/project-client/services/jwt/jwt-service.js +0 -109
- package/dist/esm/project-client/services/jwt/jwt-service.js.map +0 -1
- package/dist/esm/project-client/services/jwt/models/access-token-collection.d.ts +0 -292
- package/dist/esm/project-client/services/jwt/models/access-token-collection.d.ts.map +0 -1
- package/dist/esm/project-client/services/jwt/models/access-token-collection.js +0 -43
- package/dist/esm/project-client/services/jwt/models/access-token-collection.js.map +0 -1
- package/dist/esm/project-client/services/jwt/models/access-token.d.ts +0 -104
- package/dist/esm/project-client/services/jwt/models/access-token.d.ts.map +0 -1
- package/dist/esm/project-client/services/jwt/models/access-token.js +0 -56
- package/dist/esm/project-client/services/jwt/models/access-token.js.map +0 -1
- package/dist/esm/project-client/services/jwt/models/create-project-token-request.d.ts +0 -62
- package/dist/esm/project-client/services/jwt/models/create-project-token-request.d.ts.map +0 -1
- package/dist/esm/project-client/services/jwt/models/create-project-token-request.js +0 -41
- package/dist/esm/project-client/services/jwt/models/create-project-token-request.js.map +0 -1
- package/dist/esm/project-client/services/jwt/models/create-token-response.d.ts +0 -90
- package/dist/esm/project-client/services/jwt/models/create-token-response.d.ts.map +0 -1
- package/dist/esm/project-client/services/jwt/models/create-token-response.js +0 -51
- package/dist/esm/project-client/services/jwt/models/create-token-response.js.map +0 -1
- package/dist/esm/project-client/services/jwt/models/discard-token-response.d.ts +0 -62
- package/dist/esm/project-client/services/jwt/models/discard-token-response.d.ts.map +0 -1
- package/dist/esm/project-client/services/jwt/models/discard-token-response.js +0 -41
- package/dist/esm/project-client/services/jwt/models/discard-token-response.js.map +0 -1
- package/dist/esm/project-client/services/jwt/models/index.d.ts +0 -6
- package/dist/esm/project-client/services/jwt/models/index.d.ts.map +0 -1
- package/dist/esm/project-client/services/jwt/models/index.js +0 -2
- package/dist/esm/project-client/services/jwt/models/index.js.map +0 -1
- package/dist/esm/project-client/services/jwt/request-params.d.ts +0 -6
- package/dist/esm/project-client/services/jwt/request-params.d.ts.map +0 -1
- package/dist/esm/project-client/services/jwt/request-params.js +0 -2
- package/dist/esm/project-client/services/jwt/request-params.js.map +0 -1
- package/dist/esm/project-client/services/notifications/index.d.ts +0 -3
- package/dist/esm/project-client/services/notifications/index.d.ts.map +0 -1
- package/dist/esm/project-client/services/notifications/index.js +0 -3
- package/dist/esm/project-client/services/notifications/index.js.map +0 -1
- package/dist/esm/project-client/services/notifications/models/delivery-plan-collection.d.ts +0 -384
- package/dist/esm/project-client/services/notifications/models/delivery-plan-collection.d.ts.map +0 -1
- package/dist/esm/project-client/services/notifications/models/delivery-plan-collection.js +0 -43
- package/dist/esm/project-client/services/notifications/models/delivery-plan-collection.js.map +0 -1
- package/dist/esm/project-client/services/notifications/models/delivery-plan.d.ts +0 -160
- package/dist/esm/project-client/services/notifications/models/delivery-plan.d.ts.map +0 -1
- package/dist/esm/project-client/services/notifications/models/delivery-plan.js +0 -76
- package/dist/esm/project-client/services/notifications/models/delivery-plan.js.map +0 -1
- package/dist/esm/project-client/services/notifications/models/index.d.ts +0 -3
- package/dist/esm/project-client/services/notifications/models/index.d.ts.map +0 -1
- package/dist/esm/project-client/services/notifications/models/index.js +0 -2
- package/dist/esm/project-client/services/notifications/models/index.js.map +0 -1
- package/dist/esm/project-client/services/notifications/notifications-service.d.ts +0 -13
- package/dist/esm/project-client/services/notifications/notifications-service.d.ts.map +0 -1
- package/dist/esm/project-client/services/notifications/notifications-service.js +0 -39
- package/dist/esm/project-client/services/notifications/notifications-service.js.map +0 -1
- package/dist/esm/project-client/services/users/models/user.d.ts.map +0 -1
- package/dist/esm/project-client/services/users/models/user.js.map +0 -1
- package/dist/esm/user-client/services/integrations/models/templates-installation.d.ts +0 -76
- package/dist/esm/user-client/services/integrations/models/templates-installation.d.ts.map +0 -1
- package/dist/esm/user-client/services/integrations/models/templates-installation.js +0 -46
- package/dist/esm/user-client/services/integrations/models/templates-installation.js.map +0 -1
- package/src/project-client/services/broadcasts/models/slack.ts +0 -57
- package/src/project-client/services/broadcasts/models/web-push.ts +0 -57
- package/src/project-client/services/integrations/models/awssns-config-collection.ts +0 -54
- package/src/project-client/services/integrations/models/awssns-config-payload.ts +0 -45
- package/src/project-client/services/integrations/models/awssns-config.ts +0 -64
- package/src/project-client/services/integrations/models/event-source-config-collection.ts +0 -59
- package/src/project-client/services/integrations/models/event-source-config-payload.ts +0 -45
- package/src/project-client/services/integrations/models/event-source-config.ts +0 -64
- package/src/project-client/services/integrations/models/github-config-collection.ts +0 -54
- package/src/project-client/services/integrations/models/github-config-payload.ts +0 -45
- package/src/project-client/services/integrations/models/github-config.ts +0 -64
- package/src/project-client/services/integrations/models/stripe-config-collection.ts +0 -54
- package/src/project-client/services/integrations/models/stripe-config-payload.ts +0 -45
- package/src/project-client/services/integrations/models/stripe-config.ts +0 -64
- package/src/project-client/services/integrations/models/templates-config-collection.ts +0 -59
- package/src/project-client/services/integrations/models/templates-config.ts +0 -57
- package/src/project-client/services/jwt/index.ts +0 -2
- package/src/project-client/services/jwt/jwt-service.ts +0 -121
- package/src/project-client/services/jwt/models/access-token-collection.ts +0 -54
- package/src/project-client/services/jwt/models/access-token.ts +0 -69
- package/src/project-client/services/jwt/models/create-project-token-request.ts +0 -51
- package/src/project-client/services/jwt/models/create-token-response.ts +0 -63
- package/src/project-client/services/jwt/models/discard-token-response.ts +0 -51
- package/src/project-client/services/jwt/models/index.ts +0 -5
- package/src/project-client/services/jwt/request-params.ts +0 -5
- package/src/project-client/services/notifications/index.ts +0 -2
- package/src/project-client/services/notifications/models/delivery-plan-collection.ts +0 -54
- package/src/project-client/services/notifications/models/delivery-plan.ts +0 -93
- package/src/project-client/services/notifications/models/index.ts +0 -2
- package/src/project-client/services/notifications/notifications-service.ts +0 -45
- package/src/user-client/services/integrations/models/templates-installation.ts +0 -57
- /package/dist/commonjs/project-client/services/{users/models → common}/user.js +0 -0
- /package/dist/esm/project-client/services/{users/models → common}/user.js +0 -0
- /package/src/project-client/services/{users/models → common}/user.ts +0 -0
|
@@ -5,16 +5,10 @@ import { ContentType } from '../../http/types.js';
|
|
|
5
5
|
import { BaseService } from '../base-service.js';
|
|
6
6
|
import { apnsConfigCollectionResponse } from './models/apns-config-collection.js';
|
|
7
7
|
import { apnsConfigPayloadRequest, apnsConfigPayloadResponse, } from './models/apns-config-payload.js';
|
|
8
|
-
import { awssnsConfigCollectionResponse } from './models/awssns-config-collection.js';
|
|
9
|
-
import { awssnsConfigPayloadRequest, awssnsConfigPayloadResponse, } from './models/awssns-config-payload.js';
|
|
10
|
-
import { eventSourceConfigCollectionResponse, } from './models/event-source-config-collection.js';
|
|
11
|
-
import { eventSourceConfigPayloadRequest, eventSourceConfigPayloadResponse, } from './models/event-source-config-payload.js';
|
|
12
8
|
import { expoConfigCollectionResponse } from './models/expo-config-collection.js';
|
|
13
9
|
import { expoConfigPayloadRequest, expoConfigPayloadResponse, } from './models/expo-config-payload.js';
|
|
14
10
|
import { fcmConfigCollectionResponse } from './models/fcm-config-collection.js';
|
|
15
11
|
import { fcmConfigPayloadRequest, fcmConfigPayloadResponse } from './models/fcm-config-payload.js';
|
|
16
|
-
import { githubConfigCollectionResponse } from './models/github-config-collection.js';
|
|
17
|
-
import { githubConfigPayloadRequest, githubConfigPayloadResponse, } from './models/github-config-payload.js';
|
|
18
12
|
import { inboxConfigCollectionResponse } from './models/inbox-config-collection.js';
|
|
19
13
|
import { inboxConfigPayloadRequest, inboxConfigPayloadResponse, } from './models/inbox-config-payload.js';
|
|
20
14
|
import { integrationConfigCollectionResponse, } from './models/integration-config-collection.js';
|
|
@@ -28,9 +22,6 @@ import { sesConfigCollectionResponse } from './models/ses-config-collection.js';
|
|
|
28
22
|
import { sesConfigPayloadRequest, sesConfigPayloadResponse } from './models/ses-config-payload.js';
|
|
29
23
|
import { slackConfigCollectionResponse } from './models/slack-config-collection.js';
|
|
30
24
|
import { slackConfigPayloadRequest, slackConfigPayloadResponse, } from './models/slack-config-payload.js';
|
|
31
|
-
import { stripeConfigCollectionResponse } from './models/stripe-config-collection.js';
|
|
32
|
-
import { stripeConfigPayloadRequest, stripeConfigPayloadResponse, } from './models/stripe-config-payload.js';
|
|
33
|
-
import { templatesConfigCollectionResponse } from './models/templates-config-collection.js';
|
|
34
25
|
import { twilioConfigCollectionResponse } from './models/twilio-config-collection.js';
|
|
35
26
|
import { twilioConfigPayloadRequest, twilioConfigPayloadResponse, } from './models/twilio-config-payload.js';
|
|
36
27
|
import { webpushConfigCollectionResponse } from './models/webpush-config-collection.js';
|
|
@@ -77,11 +68,11 @@ export class IntegrationsService extends BaseService {
|
|
|
77
68
|
return this.client.call(request);
|
|
78
69
|
}
|
|
79
70
|
/**
|
|
80
|
-
* Retrieves the current
|
|
71
|
+
* Retrieves the current APNs integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
81
72
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
82
73
|
* @returns {Promise<HttpResponse<ApnsConfigCollection>>} OK
|
|
83
74
|
*/
|
|
84
|
-
async
|
|
75
|
+
async listApnsIntegrations(requestConfig) {
|
|
85
76
|
const request = new RequestBuilder()
|
|
86
77
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
87
78
|
.setConfig(this.config)
|
|
@@ -102,7 +93,7 @@ export class IntegrationsService extends BaseService {
|
|
|
102
93
|
return this.client.call(request);
|
|
103
94
|
}
|
|
104
95
|
/**
|
|
105
|
-
*
|
|
96
|
+
* Updates or creates the APNs integration for the project.
|
|
106
97
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
107
98
|
* @returns {Promise<HttpResponse<ApnsConfigPayload>>} OK
|
|
108
99
|
*/
|
|
@@ -129,11 +120,12 @@ export class IntegrationsService extends BaseService {
|
|
|
129
120
|
return this.client.call(request);
|
|
130
121
|
}
|
|
131
122
|
/**
|
|
132
|
-
*
|
|
123
|
+
* Deletes the APNs integration configuration from the project. This will disable the integration's functionality within the project.
|
|
124
|
+
* @param {string} [params.id] -
|
|
133
125
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
134
126
|
* @returns {Promise<HttpResponse<any>>} No Content
|
|
135
127
|
*/
|
|
136
|
-
async deleteApnsIntegration(requestConfig) {
|
|
128
|
+
async deleteApnsIntegration(params, requestConfig) {
|
|
137
129
|
const request = new RequestBuilder()
|
|
138
130
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
139
131
|
.setConfig(this.config)
|
|
@@ -150,259 +142,19 @@ export class IntegrationsService extends BaseService {
|
|
|
150
142
|
.setRetryAttempts(this.config, requestConfig)
|
|
151
143
|
.setRetryDelayMs(this.config, requestConfig)
|
|
152
144
|
.setResponseValidation(this.config, requestConfig)
|
|
153
|
-
.
|
|
154
|
-
return this.client.call(request);
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Removes a specific apns integration instance by ID from the project.
|
|
158
|
-
* @param {string} id -
|
|
159
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
160
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
161
|
-
*/
|
|
162
|
-
async deleteApnsIntegrationById(id, requestConfig) {
|
|
163
|
-
const request = new RequestBuilder()
|
|
164
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
165
|
-
.setConfig(this.config)
|
|
166
|
-
.setMethod('DELETE')
|
|
167
|
-
.setPath('/integrations/apns/{id}')
|
|
168
|
-
.setRequestSchema(z.any())
|
|
169
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
170
|
-
.setRequestContentType(ContentType.Json)
|
|
171
|
-
.addResponse({
|
|
172
|
-
schema: z.undefined(),
|
|
173
|
-
contentType: ContentType.NoContent,
|
|
174
|
-
status: 204,
|
|
175
|
-
})
|
|
176
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
177
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
178
|
-
.setResponseValidation(this.config, requestConfig)
|
|
179
|
-
.addPathParam({
|
|
180
|
-
key: 'id',
|
|
181
|
-
value: id,
|
|
182
|
-
})
|
|
183
|
-
.build();
|
|
184
|
-
return this.client.call(request);
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Retrieves the current awssns integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
188
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
189
|
-
* @returns {Promise<HttpResponse<AwssnsConfigCollection>>} OK
|
|
190
|
-
*/
|
|
191
|
-
async getAwssnsIntegration(requestConfig) {
|
|
192
|
-
const request = new RequestBuilder()
|
|
193
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
194
|
-
.setConfig(this.config)
|
|
195
|
-
.setMethod('GET')
|
|
196
|
-
.setPath('/integrations/awssns')
|
|
197
|
-
.setRequestSchema(z.any())
|
|
198
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
199
|
-
.setRequestContentType(ContentType.Json)
|
|
200
|
-
.addResponse({
|
|
201
|
-
schema: awssnsConfigCollectionResponse,
|
|
202
|
-
contentType: ContentType.Json,
|
|
203
|
-
status: 200,
|
|
204
|
-
})
|
|
205
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
206
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
207
|
-
.setResponseValidation(this.config, requestConfig)
|
|
208
|
-
.build();
|
|
209
|
-
return this.client.call(request);
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
* Creates or updates a awssns integration for the project. Only administrators can configure integrations.
|
|
213
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
214
|
-
* @returns {Promise<HttpResponse<AwssnsConfigPayload>>} OK
|
|
215
|
-
*/
|
|
216
|
-
async saveAwssnsIntegration(body, requestConfig) {
|
|
217
|
-
const request = new RequestBuilder()
|
|
218
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
219
|
-
.setConfig(this.config)
|
|
220
|
-
.setMethod('PUT')
|
|
221
|
-
.setPath('/integrations/awssns')
|
|
222
|
-
.setRequestSchema(awssnsConfigPayloadRequest)
|
|
223
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
224
|
-
.setRequestContentType(ContentType.Json)
|
|
225
|
-
.addResponse({
|
|
226
|
-
schema: awssnsConfigPayloadResponse,
|
|
227
|
-
contentType: ContentType.Json,
|
|
228
|
-
status: 200,
|
|
229
|
-
})
|
|
230
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
231
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
232
|
-
.setResponseValidation(this.config, requestConfig)
|
|
233
|
-
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
234
|
-
.addBody(body)
|
|
235
|
-
.build();
|
|
236
|
-
return this.client.call(request);
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* Removes a awssns integration configuration from the project. This will disable the integration's functionality within the project.
|
|
240
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
241
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
242
|
-
*/
|
|
243
|
-
async deleteAwssnsIntegration(requestConfig) {
|
|
244
|
-
const request = new RequestBuilder()
|
|
245
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
246
|
-
.setConfig(this.config)
|
|
247
|
-
.setMethod('DELETE')
|
|
248
|
-
.setPath('/integrations/awssns')
|
|
249
|
-
.setRequestSchema(z.any())
|
|
250
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
251
|
-
.setRequestContentType(ContentType.Json)
|
|
252
|
-
.addResponse({
|
|
253
|
-
schema: z.undefined(),
|
|
254
|
-
contentType: ContentType.NoContent,
|
|
255
|
-
status: 204,
|
|
256
|
-
})
|
|
257
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
258
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
259
|
-
.setResponseValidation(this.config, requestConfig)
|
|
260
|
-
.build();
|
|
261
|
-
return this.client.call(request);
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* Removes a specific awssns integration instance by ID from the project.
|
|
265
|
-
* @param {string} id -
|
|
266
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
267
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
268
|
-
*/
|
|
269
|
-
async deleteAwssnsIntegrationById(id, requestConfig) {
|
|
270
|
-
const request = new RequestBuilder()
|
|
271
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
272
|
-
.setConfig(this.config)
|
|
273
|
-
.setMethod('DELETE')
|
|
274
|
-
.setPath('/integrations/awssns/{id}')
|
|
275
|
-
.setRequestSchema(z.any())
|
|
276
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
277
|
-
.setRequestContentType(ContentType.Json)
|
|
278
|
-
.addResponse({
|
|
279
|
-
schema: z.undefined(),
|
|
280
|
-
contentType: ContentType.NoContent,
|
|
281
|
-
status: 204,
|
|
282
|
-
})
|
|
283
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
284
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
285
|
-
.setResponseValidation(this.config, requestConfig)
|
|
286
|
-
.addPathParam({
|
|
287
|
-
key: 'id',
|
|
288
|
-
value: id,
|
|
289
|
-
})
|
|
290
|
-
.build();
|
|
291
|
-
return this.client.call(request);
|
|
292
|
-
}
|
|
293
|
-
/**
|
|
294
|
-
* Retrieves the current eventsource integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
295
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
296
|
-
* @returns {Promise<HttpResponse<EventSourceConfigCollection>>} OK
|
|
297
|
-
*/
|
|
298
|
-
async getEventsourceIntegration(requestConfig) {
|
|
299
|
-
const request = new RequestBuilder()
|
|
300
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
301
|
-
.setConfig(this.config)
|
|
302
|
-
.setMethod('GET')
|
|
303
|
-
.setPath('/integrations/eventsource')
|
|
304
|
-
.setRequestSchema(z.any())
|
|
305
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
306
|
-
.setRequestContentType(ContentType.Json)
|
|
307
|
-
.addResponse({
|
|
308
|
-
schema: eventSourceConfigCollectionResponse,
|
|
309
|
-
contentType: ContentType.Json,
|
|
310
|
-
status: 200,
|
|
311
|
-
})
|
|
312
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
313
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
314
|
-
.setResponseValidation(this.config, requestConfig)
|
|
315
|
-
.build();
|
|
316
|
-
return this.client.call(request);
|
|
317
|
-
}
|
|
318
|
-
/**
|
|
319
|
-
* Creates or updates a eventsource integration for the project. Only administrators can configure integrations.
|
|
320
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
321
|
-
* @returns {Promise<HttpResponse<EventSourceConfigPayload>>} OK
|
|
322
|
-
*/
|
|
323
|
-
async saveEventsourceIntegration(body, requestConfig) {
|
|
324
|
-
const request = new RequestBuilder()
|
|
325
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
326
|
-
.setConfig(this.config)
|
|
327
|
-
.setMethod('PUT')
|
|
328
|
-
.setPath('/integrations/eventsource')
|
|
329
|
-
.setRequestSchema(eventSourceConfigPayloadRequest)
|
|
330
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
331
|
-
.setRequestContentType(ContentType.Json)
|
|
332
|
-
.addResponse({
|
|
333
|
-
schema: eventSourceConfigPayloadResponse,
|
|
334
|
-
contentType: ContentType.Json,
|
|
335
|
-
status: 200,
|
|
336
|
-
})
|
|
337
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
338
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
339
|
-
.setResponseValidation(this.config, requestConfig)
|
|
340
|
-
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
341
|
-
.addBody(body)
|
|
342
|
-
.build();
|
|
343
|
-
return this.client.call(request);
|
|
344
|
-
}
|
|
345
|
-
/**
|
|
346
|
-
* Removes a eventsource integration configuration from the project. This will disable the integration's functionality within the project.
|
|
347
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
348
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
349
|
-
*/
|
|
350
|
-
async deleteEventsourceIntegration(requestConfig) {
|
|
351
|
-
const request = new RequestBuilder()
|
|
352
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
353
|
-
.setConfig(this.config)
|
|
354
|
-
.setMethod('DELETE')
|
|
355
|
-
.setPath('/integrations/eventsource')
|
|
356
|
-
.setRequestSchema(z.any())
|
|
357
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
358
|
-
.setRequestContentType(ContentType.Json)
|
|
359
|
-
.addResponse({
|
|
360
|
-
schema: z.undefined(),
|
|
361
|
-
contentType: ContentType.NoContent,
|
|
362
|
-
status: 204,
|
|
363
|
-
})
|
|
364
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
365
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
366
|
-
.setResponseValidation(this.config, requestConfig)
|
|
367
|
-
.build();
|
|
368
|
-
return this.client.call(request);
|
|
369
|
-
}
|
|
370
|
-
/**
|
|
371
|
-
* Removes a specific eventsource integration instance by ID from the project.
|
|
372
|
-
* @param {string} id -
|
|
373
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
374
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
375
|
-
*/
|
|
376
|
-
async deleteEventsourceIntegrationById(id, requestConfig) {
|
|
377
|
-
const request = new RequestBuilder()
|
|
378
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
379
|
-
.setConfig(this.config)
|
|
380
|
-
.setMethod('DELETE')
|
|
381
|
-
.setPath('/integrations/eventsource/{id}')
|
|
382
|
-
.setRequestSchema(z.any())
|
|
383
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
384
|
-
.setRequestContentType(ContentType.Json)
|
|
385
|
-
.addResponse({
|
|
386
|
-
schema: z.undefined(),
|
|
387
|
-
contentType: ContentType.NoContent,
|
|
388
|
-
status: 204,
|
|
389
|
-
})
|
|
390
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
391
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
392
|
-
.setResponseValidation(this.config, requestConfig)
|
|
393
|
-
.addPathParam({
|
|
145
|
+
.addQueryParam({
|
|
394
146
|
key: 'id',
|
|
395
|
-
value: id,
|
|
147
|
+
value: params === null || params === void 0 ? void 0 : params.id,
|
|
396
148
|
})
|
|
397
149
|
.build();
|
|
398
150
|
return this.client.call(request);
|
|
399
151
|
}
|
|
400
152
|
/**
|
|
401
|
-
* Retrieves the current
|
|
153
|
+
* Retrieves the current Expo integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
402
154
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
403
155
|
* @returns {Promise<HttpResponse<ExpoConfigCollection>>} OK
|
|
404
156
|
*/
|
|
405
|
-
async
|
|
157
|
+
async listExpoIntegrations(requestConfig) {
|
|
406
158
|
const request = new RequestBuilder()
|
|
407
159
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
408
160
|
.setConfig(this.config)
|
|
@@ -423,7 +175,7 @@ export class IntegrationsService extends BaseService {
|
|
|
423
175
|
return this.client.call(request);
|
|
424
176
|
}
|
|
425
177
|
/**
|
|
426
|
-
*
|
|
178
|
+
* Updates or creates the Expo integration for the project.
|
|
427
179
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
428
180
|
* @returns {Promise<HttpResponse<ExpoConfigPayload>>} OK
|
|
429
181
|
*/
|
|
@@ -450,11 +202,12 @@ export class IntegrationsService extends BaseService {
|
|
|
450
202
|
return this.client.call(request);
|
|
451
203
|
}
|
|
452
204
|
/**
|
|
453
|
-
*
|
|
205
|
+
* Deletes the Expo integration configuration from the project. This will disable the integration's functionality within the project.
|
|
206
|
+
* @param {string} [params.id] -
|
|
454
207
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
455
208
|
* @returns {Promise<HttpResponse<any>>} No Content
|
|
456
209
|
*/
|
|
457
|
-
async deleteExpoIntegration(requestConfig) {
|
|
210
|
+
async deleteExpoIntegration(params, requestConfig) {
|
|
458
211
|
const request = new RequestBuilder()
|
|
459
212
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
460
213
|
.setConfig(this.config)
|
|
@@ -471,45 +224,19 @@ export class IntegrationsService extends BaseService {
|
|
|
471
224
|
.setRetryAttempts(this.config, requestConfig)
|
|
472
225
|
.setRetryDelayMs(this.config, requestConfig)
|
|
473
226
|
.setResponseValidation(this.config, requestConfig)
|
|
474
|
-
.
|
|
475
|
-
return this.client.call(request);
|
|
476
|
-
}
|
|
477
|
-
/**
|
|
478
|
-
* Removes a specific expo integration instance by ID from the project.
|
|
479
|
-
* @param {string} id -
|
|
480
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
481
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
482
|
-
*/
|
|
483
|
-
async deleteExpoIntegrationById(id, requestConfig) {
|
|
484
|
-
const request = new RequestBuilder()
|
|
485
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
486
|
-
.setConfig(this.config)
|
|
487
|
-
.setMethod('DELETE')
|
|
488
|
-
.setPath('/integrations/expo/{id}')
|
|
489
|
-
.setRequestSchema(z.any())
|
|
490
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
491
|
-
.setRequestContentType(ContentType.Json)
|
|
492
|
-
.addResponse({
|
|
493
|
-
schema: z.undefined(),
|
|
494
|
-
contentType: ContentType.NoContent,
|
|
495
|
-
status: 204,
|
|
496
|
-
})
|
|
497
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
498
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
499
|
-
.setResponseValidation(this.config, requestConfig)
|
|
500
|
-
.addPathParam({
|
|
227
|
+
.addQueryParam({
|
|
501
228
|
key: 'id',
|
|
502
|
-
value: id,
|
|
229
|
+
value: params === null || params === void 0 ? void 0 : params.id,
|
|
503
230
|
})
|
|
504
231
|
.build();
|
|
505
232
|
return this.client.call(request);
|
|
506
233
|
}
|
|
507
234
|
/**
|
|
508
|
-
* Retrieves the current
|
|
235
|
+
* Retrieves the current FCM integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
509
236
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
510
237
|
* @returns {Promise<HttpResponse<FcmConfigCollection>>} OK
|
|
511
238
|
*/
|
|
512
|
-
async
|
|
239
|
+
async listFcmIntegrations(requestConfig) {
|
|
513
240
|
const request = new RequestBuilder()
|
|
514
241
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
515
242
|
.setConfig(this.config)
|
|
@@ -530,7 +257,7 @@ export class IntegrationsService extends BaseService {
|
|
|
530
257
|
return this.client.call(request);
|
|
531
258
|
}
|
|
532
259
|
/**
|
|
533
|
-
*
|
|
260
|
+
* Updates or creates the FCM integration for the project.
|
|
534
261
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
535
262
|
* @returns {Promise<HttpResponse<FcmConfigPayload>>} OK
|
|
536
263
|
*/
|
|
@@ -552,475 +279,22 @@ export class IntegrationsService extends BaseService {
|
|
|
552
279
|
.setRetryDelayMs(this.config, requestConfig)
|
|
553
280
|
.setResponseValidation(this.config, requestConfig)
|
|
554
281
|
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
555
|
-
.addBody(body)
|
|
556
|
-
.build();
|
|
557
|
-
return this.client.call(request);
|
|
558
|
-
}
|
|
559
|
-
/**
|
|
560
|
-
* Removes a fcm integration configuration from the project. This will disable the integration's functionality within the project.
|
|
561
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
562
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
563
|
-
*/
|
|
564
|
-
async deleteFcmIntegration(requestConfig) {
|
|
565
|
-
const request = new RequestBuilder()
|
|
566
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
567
|
-
.setConfig(this.config)
|
|
568
|
-
.setMethod('DELETE')
|
|
569
|
-
.setPath('/integrations/fcm')
|
|
570
|
-
.setRequestSchema(z.any())
|
|
571
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
572
|
-
.setRequestContentType(ContentType.Json)
|
|
573
|
-
.addResponse({
|
|
574
|
-
schema: z.undefined(),
|
|
575
|
-
contentType: ContentType.NoContent,
|
|
576
|
-
status: 204,
|
|
577
|
-
})
|
|
578
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
579
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
580
|
-
.setResponseValidation(this.config, requestConfig)
|
|
581
|
-
.build();
|
|
582
|
-
return this.client.call(request);
|
|
583
|
-
}
|
|
584
|
-
/**
|
|
585
|
-
* Removes a specific fcm integration instance by ID from the project.
|
|
586
|
-
* @param {string} id -
|
|
587
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
588
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
589
|
-
*/
|
|
590
|
-
async deleteFcmIntegrationById(id, requestConfig) {
|
|
591
|
-
const request = new RequestBuilder()
|
|
592
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
593
|
-
.setConfig(this.config)
|
|
594
|
-
.setMethod('DELETE')
|
|
595
|
-
.setPath('/integrations/fcm/{id}')
|
|
596
|
-
.setRequestSchema(z.any())
|
|
597
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
598
|
-
.setRequestContentType(ContentType.Json)
|
|
599
|
-
.addResponse({
|
|
600
|
-
schema: z.undefined(),
|
|
601
|
-
contentType: ContentType.NoContent,
|
|
602
|
-
status: 204,
|
|
603
|
-
})
|
|
604
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
605
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
606
|
-
.setResponseValidation(this.config, requestConfig)
|
|
607
|
-
.addPathParam({
|
|
608
|
-
key: 'id',
|
|
609
|
-
value: id,
|
|
610
|
-
})
|
|
611
|
-
.build();
|
|
612
|
-
return this.client.call(request);
|
|
613
|
-
}
|
|
614
|
-
/**
|
|
615
|
-
* Retrieves the current github integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
616
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
617
|
-
* @returns {Promise<HttpResponse<GithubConfigCollection>>} OK
|
|
618
|
-
*/
|
|
619
|
-
async getGithubIntegration(requestConfig) {
|
|
620
|
-
const request = new RequestBuilder()
|
|
621
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
622
|
-
.setConfig(this.config)
|
|
623
|
-
.setMethod('GET')
|
|
624
|
-
.setPath('/integrations/github')
|
|
625
|
-
.setRequestSchema(z.any())
|
|
626
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
627
|
-
.setRequestContentType(ContentType.Json)
|
|
628
|
-
.addResponse({
|
|
629
|
-
schema: githubConfigCollectionResponse,
|
|
630
|
-
contentType: ContentType.Json,
|
|
631
|
-
status: 200,
|
|
632
|
-
})
|
|
633
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
634
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
635
|
-
.setResponseValidation(this.config, requestConfig)
|
|
636
|
-
.build();
|
|
637
|
-
return this.client.call(request);
|
|
638
|
-
}
|
|
639
|
-
/**
|
|
640
|
-
* Creates or updates a github integration for the project. Only administrators can configure integrations.
|
|
641
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
642
|
-
* @returns {Promise<HttpResponse<GithubConfigPayload>>} OK
|
|
643
|
-
*/
|
|
644
|
-
async saveGithubIntegration(body, requestConfig) {
|
|
645
|
-
const request = new RequestBuilder()
|
|
646
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
647
|
-
.setConfig(this.config)
|
|
648
|
-
.setMethod('PUT')
|
|
649
|
-
.setPath('/integrations/github')
|
|
650
|
-
.setRequestSchema(githubConfigPayloadRequest)
|
|
651
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
652
|
-
.setRequestContentType(ContentType.Json)
|
|
653
|
-
.addResponse({
|
|
654
|
-
schema: githubConfigPayloadResponse,
|
|
655
|
-
contentType: ContentType.Json,
|
|
656
|
-
status: 200,
|
|
657
|
-
})
|
|
658
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
659
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
660
|
-
.setResponseValidation(this.config, requestConfig)
|
|
661
|
-
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
662
|
-
.addBody(body)
|
|
663
|
-
.build();
|
|
664
|
-
return this.client.call(request);
|
|
665
|
-
}
|
|
666
|
-
/**
|
|
667
|
-
* Removes a github integration configuration from the project. This will disable the integration's functionality within the project.
|
|
668
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
669
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
670
|
-
*/
|
|
671
|
-
async deleteGithubIntegration(requestConfig) {
|
|
672
|
-
const request = new RequestBuilder()
|
|
673
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
674
|
-
.setConfig(this.config)
|
|
675
|
-
.setMethod('DELETE')
|
|
676
|
-
.setPath('/integrations/github')
|
|
677
|
-
.setRequestSchema(z.any())
|
|
678
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
679
|
-
.setRequestContentType(ContentType.Json)
|
|
680
|
-
.addResponse({
|
|
681
|
-
schema: z.undefined(),
|
|
682
|
-
contentType: ContentType.NoContent,
|
|
683
|
-
status: 204,
|
|
684
|
-
})
|
|
685
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
686
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
687
|
-
.setResponseValidation(this.config, requestConfig)
|
|
688
|
-
.build();
|
|
689
|
-
return this.client.call(request);
|
|
690
|
-
}
|
|
691
|
-
/**
|
|
692
|
-
* Removes a specific github integration instance by ID from the project.
|
|
693
|
-
* @param {string} id -
|
|
694
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
695
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
696
|
-
*/
|
|
697
|
-
async deleteGithubIntegrationById(id, requestConfig) {
|
|
698
|
-
const request = new RequestBuilder()
|
|
699
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
700
|
-
.setConfig(this.config)
|
|
701
|
-
.setMethod('DELETE')
|
|
702
|
-
.setPath('/integrations/github/{id}')
|
|
703
|
-
.setRequestSchema(z.any())
|
|
704
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
705
|
-
.setRequestContentType(ContentType.Json)
|
|
706
|
-
.addResponse({
|
|
707
|
-
schema: z.undefined(),
|
|
708
|
-
contentType: ContentType.NoContent,
|
|
709
|
-
status: 204,
|
|
710
|
-
})
|
|
711
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
712
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
713
|
-
.setResponseValidation(this.config, requestConfig)
|
|
714
|
-
.addPathParam({
|
|
715
|
-
key: 'id',
|
|
716
|
-
value: id,
|
|
717
|
-
})
|
|
718
|
-
.build();
|
|
719
|
-
return this.client.call(request);
|
|
720
|
-
}
|
|
721
|
-
/**
|
|
722
|
-
* Retrieves the current inbox integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
723
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
724
|
-
* @returns {Promise<HttpResponse<InboxConfigCollection>>} OK
|
|
725
|
-
*/
|
|
726
|
-
async getInboxIntegration(requestConfig) {
|
|
727
|
-
const request = new RequestBuilder()
|
|
728
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
729
|
-
.setConfig(this.config)
|
|
730
|
-
.setMethod('GET')
|
|
731
|
-
.setPath('/integrations/inbox')
|
|
732
|
-
.setRequestSchema(z.any())
|
|
733
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
734
|
-
.setRequestContentType(ContentType.Json)
|
|
735
|
-
.addResponse({
|
|
736
|
-
schema: inboxConfigCollectionResponse,
|
|
737
|
-
contentType: ContentType.Json,
|
|
738
|
-
status: 200,
|
|
739
|
-
})
|
|
740
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
741
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
742
|
-
.setResponseValidation(this.config, requestConfig)
|
|
743
|
-
.build();
|
|
744
|
-
return this.client.call(request);
|
|
745
|
-
}
|
|
746
|
-
/**
|
|
747
|
-
* Creates or updates a inbox integration for the project. Only administrators can configure integrations.
|
|
748
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
749
|
-
* @returns {Promise<HttpResponse<InboxConfigPayload>>} OK
|
|
750
|
-
*/
|
|
751
|
-
async saveInboxIntegration(body, requestConfig) {
|
|
752
|
-
const request = new RequestBuilder()
|
|
753
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
754
|
-
.setConfig(this.config)
|
|
755
|
-
.setMethod('PUT')
|
|
756
|
-
.setPath('/integrations/inbox')
|
|
757
|
-
.setRequestSchema(inboxConfigPayloadRequest)
|
|
758
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
759
|
-
.setRequestContentType(ContentType.Json)
|
|
760
|
-
.addResponse({
|
|
761
|
-
schema: inboxConfigPayloadResponse,
|
|
762
|
-
contentType: ContentType.Json,
|
|
763
|
-
status: 200,
|
|
764
|
-
})
|
|
765
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
766
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
767
|
-
.setResponseValidation(this.config, requestConfig)
|
|
768
|
-
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
769
|
-
.addBody(body)
|
|
770
|
-
.build();
|
|
771
|
-
return this.client.call(request);
|
|
772
|
-
}
|
|
773
|
-
/**
|
|
774
|
-
* Removes a inbox integration configuration from the project. This will disable the integration's functionality within the project.
|
|
775
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
776
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
777
|
-
*/
|
|
778
|
-
async deleteInboxIntegration(requestConfig) {
|
|
779
|
-
const request = new RequestBuilder()
|
|
780
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
781
|
-
.setConfig(this.config)
|
|
782
|
-
.setMethod('DELETE')
|
|
783
|
-
.setPath('/integrations/inbox')
|
|
784
|
-
.setRequestSchema(z.any())
|
|
785
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
786
|
-
.setRequestContentType(ContentType.Json)
|
|
787
|
-
.addResponse({
|
|
788
|
-
schema: z.undefined(),
|
|
789
|
-
contentType: ContentType.NoContent,
|
|
790
|
-
status: 204,
|
|
791
|
-
})
|
|
792
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
793
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
794
|
-
.setResponseValidation(this.config, requestConfig)
|
|
795
|
-
.build();
|
|
796
|
-
return this.client.call(request);
|
|
797
|
-
}
|
|
798
|
-
/**
|
|
799
|
-
* Removes a specific inbox 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 deleteInboxIntegrationById(id, requestConfig) {
|
|
805
|
-
const request = new RequestBuilder()
|
|
806
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
807
|
-
.setConfig(this.config)
|
|
808
|
-
.setMethod('DELETE')
|
|
809
|
-
.setPath('/integrations/inbox/{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(request);
|
|
827
|
-
}
|
|
828
|
-
/**
|
|
829
|
-
* Retrieves the current mailgun integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
830
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
831
|
-
* @returns {Promise<HttpResponse<MailgunConfigCollection>>} OK
|
|
832
|
-
*/
|
|
833
|
-
async getMailgunIntegration(requestConfig) {
|
|
834
|
-
const request = new RequestBuilder()
|
|
835
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
836
|
-
.setConfig(this.config)
|
|
837
|
-
.setMethod('GET')
|
|
838
|
-
.setPath('/integrations/mailgun')
|
|
839
|
-
.setRequestSchema(z.any())
|
|
840
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
841
|
-
.setRequestContentType(ContentType.Json)
|
|
842
|
-
.addResponse({
|
|
843
|
-
schema: mailgunConfigCollectionResponse,
|
|
844
|
-
contentType: ContentType.Json,
|
|
845
|
-
status: 200,
|
|
846
|
-
})
|
|
847
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
848
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
849
|
-
.setResponseValidation(this.config, requestConfig)
|
|
850
|
-
.build();
|
|
851
|
-
return this.client.call(request);
|
|
852
|
-
}
|
|
853
|
-
/**
|
|
854
|
-
* Creates or updates a mailgun integration for the project. Only administrators can configure integrations.
|
|
855
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
856
|
-
* @returns {Promise<HttpResponse<MailgunConfigPayload>>} OK
|
|
857
|
-
*/
|
|
858
|
-
async saveMailgunIntegration(body, requestConfig) {
|
|
859
|
-
const request = new RequestBuilder()
|
|
860
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
861
|
-
.setConfig(this.config)
|
|
862
|
-
.setMethod('PUT')
|
|
863
|
-
.setPath('/integrations/mailgun')
|
|
864
|
-
.setRequestSchema(mailgunConfigPayloadRequest)
|
|
865
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
866
|
-
.setRequestContentType(ContentType.Json)
|
|
867
|
-
.addResponse({
|
|
868
|
-
schema: mailgunConfigPayloadResponse,
|
|
869
|
-
contentType: ContentType.Json,
|
|
870
|
-
status: 200,
|
|
871
|
-
})
|
|
872
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
873
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
874
|
-
.setResponseValidation(this.config, requestConfig)
|
|
875
|
-
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
876
|
-
.addBody(body)
|
|
877
|
-
.build();
|
|
878
|
-
return this.client.call(request);
|
|
879
|
-
}
|
|
880
|
-
/**
|
|
881
|
-
* Removes a mailgun integration configuration from the project. This will disable the integration's functionality within the project.
|
|
882
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
883
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
884
|
-
*/
|
|
885
|
-
async deleteMailgunIntegration(requestConfig) {
|
|
886
|
-
const request = new RequestBuilder()
|
|
887
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
888
|
-
.setConfig(this.config)
|
|
889
|
-
.setMethod('DELETE')
|
|
890
|
-
.setPath('/integrations/mailgun')
|
|
891
|
-
.setRequestSchema(z.any())
|
|
892
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
893
|
-
.setRequestContentType(ContentType.Json)
|
|
894
|
-
.addResponse({
|
|
895
|
-
schema: z.undefined(),
|
|
896
|
-
contentType: ContentType.NoContent,
|
|
897
|
-
status: 204,
|
|
898
|
-
})
|
|
899
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
900
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
901
|
-
.setResponseValidation(this.config, requestConfig)
|
|
902
|
-
.build();
|
|
903
|
-
return this.client.call(request);
|
|
904
|
-
}
|
|
905
|
-
/**
|
|
906
|
-
* Removes a specific mailgun integration instance by ID from the project.
|
|
907
|
-
* @param {string} id -
|
|
908
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
909
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
910
|
-
*/
|
|
911
|
-
async deleteMailgunIntegrationById(id, requestConfig) {
|
|
912
|
-
const request = new RequestBuilder()
|
|
913
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
914
|
-
.setConfig(this.config)
|
|
915
|
-
.setMethod('DELETE')
|
|
916
|
-
.setPath('/integrations/mailgun/{id}')
|
|
917
|
-
.setRequestSchema(z.any())
|
|
918
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
919
|
-
.setRequestContentType(ContentType.Json)
|
|
920
|
-
.addResponse({
|
|
921
|
-
schema: z.undefined(),
|
|
922
|
-
contentType: ContentType.NoContent,
|
|
923
|
-
status: 204,
|
|
924
|
-
})
|
|
925
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
926
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
927
|
-
.setResponseValidation(this.config, requestConfig)
|
|
928
|
-
.addPathParam({
|
|
929
|
-
key: 'id',
|
|
930
|
-
value: id,
|
|
931
|
-
})
|
|
932
|
-
.build();
|
|
933
|
-
return this.client.call(request);
|
|
934
|
-
}
|
|
935
|
-
/**
|
|
936
|
-
* Retrieves the current ping_email integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
937
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
938
|
-
* @returns {Promise<HttpResponse<PingConfigCollection>>} OK
|
|
939
|
-
*/
|
|
940
|
-
async getPingEmailIntegration(requestConfig) {
|
|
941
|
-
const request = new RequestBuilder()
|
|
942
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
943
|
-
.setConfig(this.config)
|
|
944
|
-
.setMethod('GET')
|
|
945
|
-
.setPath('/integrations/ping_email')
|
|
946
|
-
.setRequestSchema(z.any())
|
|
947
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
948
|
-
.setRequestContentType(ContentType.Json)
|
|
949
|
-
.addResponse({
|
|
950
|
-
schema: pingConfigCollectionResponse,
|
|
951
|
-
contentType: ContentType.Json,
|
|
952
|
-
status: 200,
|
|
953
|
-
})
|
|
954
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
955
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
956
|
-
.setResponseValidation(this.config, requestConfig)
|
|
957
|
-
.build();
|
|
958
|
-
return this.client.call(request);
|
|
959
|
-
}
|
|
960
|
-
/**
|
|
961
|
-
* Creates or updates a ping_email integration for the project. Only administrators can configure integrations.
|
|
962
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
963
|
-
* @returns {Promise<HttpResponse<PingConfigPayload>>} OK
|
|
964
|
-
*/
|
|
965
|
-
async savePingEmailIntegration(body, requestConfig) {
|
|
966
|
-
const request = new RequestBuilder()
|
|
967
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
968
|
-
.setConfig(this.config)
|
|
969
|
-
.setMethod('PUT')
|
|
970
|
-
.setPath('/integrations/ping_email')
|
|
971
|
-
.setRequestSchema(pingConfigPayloadRequest)
|
|
972
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
973
|
-
.setRequestContentType(ContentType.Json)
|
|
974
|
-
.addResponse({
|
|
975
|
-
schema: pingConfigPayloadResponse,
|
|
976
|
-
contentType: ContentType.Json,
|
|
977
|
-
status: 200,
|
|
978
|
-
})
|
|
979
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
980
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
981
|
-
.setResponseValidation(this.config, requestConfig)
|
|
982
|
-
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
983
|
-
.addBody(body)
|
|
984
|
-
.build();
|
|
985
|
-
return this.client.call(request);
|
|
986
|
-
}
|
|
987
|
-
/**
|
|
988
|
-
* Removes a ping_email integration configuration from the project. This will disable the integration's functionality within the project.
|
|
989
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
990
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
991
|
-
*/
|
|
992
|
-
async deletePingEmailIntegration(requestConfig) {
|
|
993
|
-
const request = new RequestBuilder()
|
|
994
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
995
|
-
.setConfig(this.config)
|
|
996
|
-
.setMethod('DELETE')
|
|
997
|
-
.setPath('/integrations/ping_email')
|
|
998
|
-
.setRequestSchema(z.any())
|
|
999
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1000
|
-
.setRequestContentType(ContentType.Json)
|
|
1001
|
-
.addResponse({
|
|
1002
|
-
schema: z.undefined(),
|
|
1003
|
-
contentType: ContentType.NoContent,
|
|
1004
|
-
status: 204,
|
|
1005
|
-
})
|
|
1006
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
1007
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
1008
|
-
.setResponseValidation(this.config, requestConfig)
|
|
282
|
+
.addBody(body)
|
|
1009
283
|
.build();
|
|
1010
284
|
return this.client.call(request);
|
|
1011
285
|
}
|
|
1012
286
|
/**
|
|
1013
|
-
*
|
|
1014
|
-
* @param {string} id -
|
|
287
|
+
* Deletes the FCM integration configuration from the project. This will disable the integration's functionality within the project.
|
|
288
|
+
* @param {string} [params.id] -
|
|
1015
289
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1016
290
|
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1017
291
|
*/
|
|
1018
|
-
async
|
|
292
|
+
async deleteFcmIntegration(params, requestConfig) {
|
|
1019
293
|
const request = new RequestBuilder()
|
|
1020
294
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1021
295
|
.setConfig(this.config)
|
|
1022
296
|
.setMethod('DELETE')
|
|
1023
|
-
.setPath('/integrations/
|
|
297
|
+
.setPath('/integrations/fcm')
|
|
1024
298
|
.setRequestSchema(z.any())
|
|
1025
299
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1026
300
|
.setRequestContentType(ContentType.Json)
|
|
@@ -1032,29 +306,29 @@ export class IntegrationsService extends BaseService {
|
|
|
1032
306
|
.setRetryAttempts(this.config, requestConfig)
|
|
1033
307
|
.setRetryDelayMs(this.config, requestConfig)
|
|
1034
308
|
.setResponseValidation(this.config, requestConfig)
|
|
1035
|
-
.
|
|
309
|
+
.addQueryParam({
|
|
1036
310
|
key: 'id',
|
|
1037
|
-
value: id,
|
|
311
|
+
value: params === null || params === void 0 ? void 0 : params.id,
|
|
1038
312
|
})
|
|
1039
313
|
.build();
|
|
1040
314
|
return this.client.call(request);
|
|
1041
315
|
}
|
|
1042
316
|
/**
|
|
1043
|
-
* Retrieves the current
|
|
317
|
+
* Retrieves the current Inbox integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1044
318
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1045
|
-
* @returns {Promise<HttpResponse<
|
|
319
|
+
* @returns {Promise<HttpResponse<InboxConfigCollection>>} OK
|
|
1046
320
|
*/
|
|
1047
|
-
async
|
|
321
|
+
async listInboxIntegrations(requestConfig) {
|
|
1048
322
|
const request = new RequestBuilder()
|
|
1049
323
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1050
324
|
.setConfig(this.config)
|
|
1051
325
|
.setMethod('GET')
|
|
1052
|
-
.setPath('/integrations/
|
|
326
|
+
.setPath('/integrations/inbox')
|
|
1053
327
|
.setRequestSchema(z.any())
|
|
1054
328
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1055
329
|
.setRequestContentType(ContentType.Json)
|
|
1056
330
|
.addResponse({
|
|
1057
|
-
schema:
|
|
331
|
+
schema: inboxConfigCollectionResponse,
|
|
1058
332
|
contentType: ContentType.Json,
|
|
1059
333
|
status: 200,
|
|
1060
334
|
})
|
|
@@ -1065,21 +339,21 @@ export class IntegrationsService extends BaseService {
|
|
|
1065
339
|
return this.client.call(request);
|
|
1066
340
|
}
|
|
1067
341
|
/**
|
|
1068
|
-
*
|
|
342
|
+
* Updates or creates the Inbox integration for the project.
|
|
1069
343
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1070
|
-
* @returns {Promise<HttpResponse<
|
|
344
|
+
* @returns {Promise<HttpResponse<InboxConfigPayload>>} OK
|
|
1071
345
|
*/
|
|
1072
|
-
async
|
|
346
|
+
async saveInboxIntegration(body, requestConfig) {
|
|
1073
347
|
const request = new RequestBuilder()
|
|
1074
348
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1075
349
|
.setConfig(this.config)
|
|
1076
350
|
.setMethod('PUT')
|
|
1077
|
-
.setPath('/integrations/
|
|
1078
|
-
.setRequestSchema(
|
|
351
|
+
.setPath('/integrations/inbox')
|
|
352
|
+
.setRequestSchema(inboxConfigPayloadRequest)
|
|
1079
353
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1080
354
|
.setRequestContentType(ContentType.Json)
|
|
1081
355
|
.addResponse({
|
|
1082
|
-
schema:
|
|
356
|
+
schema: inboxConfigPayloadResponse,
|
|
1083
357
|
contentType: ContentType.Json,
|
|
1084
358
|
status: 200,
|
|
1085
359
|
})
|
|
@@ -1092,42 +366,17 @@ export class IntegrationsService extends BaseService {
|
|
|
1092
366
|
return this.client.call(request);
|
|
1093
367
|
}
|
|
1094
368
|
/**
|
|
1095
|
-
*
|
|
1096
|
-
* @param {
|
|
1097
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1098
|
-
*/
|
|
1099
|
-
async deleteSendgridIntegration(requestConfig) {
|
|
1100
|
-
const request = new RequestBuilder()
|
|
1101
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1102
|
-
.setConfig(this.config)
|
|
1103
|
-
.setMethod('DELETE')
|
|
1104
|
-
.setPath('/integrations/sendgrid')
|
|
1105
|
-
.setRequestSchema(z.any())
|
|
1106
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1107
|
-
.setRequestContentType(ContentType.Json)
|
|
1108
|
-
.addResponse({
|
|
1109
|
-
schema: z.undefined(),
|
|
1110
|
-
contentType: ContentType.NoContent,
|
|
1111
|
-
status: 204,
|
|
1112
|
-
})
|
|
1113
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
1114
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
1115
|
-
.setResponseValidation(this.config, requestConfig)
|
|
1116
|
-
.build();
|
|
1117
|
-
return this.client.call(request);
|
|
1118
|
-
}
|
|
1119
|
-
/**
|
|
1120
|
-
* Removes a specific sendgrid integration instance by ID from the project.
|
|
1121
|
-
* @param {string} id -
|
|
369
|
+
* Deletes the Inbox integration configuration from the project. This will disable the integration's functionality within the project.
|
|
370
|
+
* @param {string} [params.id] -
|
|
1122
371
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1123
372
|
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1124
373
|
*/
|
|
1125
|
-
async
|
|
374
|
+
async deleteInboxIntegration(params, requestConfig) {
|
|
1126
375
|
const request = new RequestBuilder()
|
|
1127
376
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1128
377
|
.setConfig(this.config)
|
|
1129
378
|
.setMethod('DELETE')
|
|
1130
|
-
.setPath('/integrations/
|
|
379
|
+
.setPath('/integrations/inbox')
|
|
1131
380
|
.setRequestSchema(z.any())
|
|
1132
381
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1133
382
|
.setRequestContentType(ContentType.Json)
|
|
@@ -1139,29 +388,29 @@ export class IntegrationsService extends BaseService {
|
|
|
1139
388
|
.setRetryAttempts(this.config, requestConfig)
|
|
1140
389
|
.setRetryDelayMs(this.config, requestConfig)
|
|
1141
390
|
.setResponseValidation(this.config, requestConfig)
|
|
1142
|
-
.
|
|
391
|
+
.addQueryParam({
|
|
1143
392
|
key: 'id',
|
|
1144
|
-
value: id,
|
|
393
|
+
value: params === null || params === void 0 ? void 0 : params.id,
|
|
1145
394
|
})
|
|
1146
395
|
.build();
|
|
1147
396
|
return this.client.call(request);
|
|
1148
397
|
}
|
|
1149
398
|
/**
|
|
1150
|
-
* Retrieves the current
|
|
399
|
+
* Retrieves the current Mailgun integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1151
400
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1152
|
-
* @returns {Promise<HttpResponse<
|
|
401
|
+
* @returns {Promise<HttpResponse<MailgunConfigCollection>>} OK
|
|
1153
402
|
*/
|
|
1154
|
-
async
|
|
403
|
+
async listMailgunIntegrations(requestConfig) {
|
|
1155
404
|
const request = new RequestBuilder()
|
|
1156
405
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1157
406
|
.setConfig(this.config)
|
|
1158
407
|
.setMethod('GET')
|
|
1159
|
-
.setPath('/integrations/
|
|
408
|
+
.setPath('/integrations/mailgun')
|
|
1160
409
|
.setRequestSchema(z.any())
|
|
1161
410
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1162
411
|
.setRequestContentType(ContentType.Json)
|
|
1163
412
|
.addResponse({
|
|
1164
|
-
schema:
|
|
413
|
+
schema: mailgunConfigCollectionResponse,
|
|
1165
414
|
contentType: ContentType.Json,
|
|
1166
415
|
status: 200,
|
|
1167
416
|
})
|
|
@@ -1172,21 +421,21 @@ export class IntegrationsService extends BaseService {
|
|
|
1172
421
|
return this.client.call(request);
|
|
1173
422
|
}
|
|
1174
423
|
/**
|
|
1175
|
-
*
|
|
424
|
+
* Updates or creates the Mailgun integration for the project.
|
|
1176
425
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1177
|
-
* @returns {Promise<HttpResponse<
|
|
426
|
+
* @returns {Promise<HttpResponse<MailgunConfigPayload>>} OK
|
|
1178
427
|
*/
|
|
1179
|
-
async
|
|
428
|
+
async saveMailgunIntegration(body, requestConfig) {
|
|
1180
429
|
const request = new RequestBuilder()
|
|
1181
430
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1182
431
|
.setConfig(this.config)
|
|
1183
432
|
.setMethod('PUT')
|
|
1184
|
-
.setPath('/integrations/
|
|
1185
|
-
.setRequestSchema(
|
|
433
|
+
.setPath('/integrations/mailgun')
|
|
434
|
+
.setRequestSchema(mailgunConfigPayloadRequest)
|
|
1186
435
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1187
436
|
.setRequestContentType(ContentType.Json)
|
|
1188
437
|
.addResponse({
|
|
1189
|
-
schema:
|
|
438
|
+
schema: mailgunConfigPayloadResponse,
|
|
1190
439
|
contentType: ContentType.Json,
|
|
1191
440
|
status: 200,
|
|
1192
441
|
})
|
|
@@ -1199,42 +448,17 @@ export class IntegrationsService extends BaseService {
|
|
|
1199
448
|
return this.client.call(request);
|
|
1200
449
|
}
|
|
1201
450
|
/**
|
|
1202
|
-
*
|
|
1203
|
-
* @param {
|
|
1204
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1205
|
-
*/
|
|
1206
|
-
async deleteSesIntegration(requestConfig) {
|
|
1207
|
-
const request = new RequestBuilder()
|
|
1208
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1209
|
-
.setConfig(this.config)
|
|
1210
|
-
.setMethod('DELETE')
|
|
1211
|
-
.setPath('/integrations/ses')
|
|
1212
|
-
.setRequestSchema(z.any())
|
|
1213
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1214
|
-
.setRequestContentType(ContentType.Json)
|
|
1215
|
-
.addResponse({
|
|
1216
|
-
schema: z.undefined(),
|
|
1217
|
-
contentType: ContentType.NoContent,
|
|
1218
|
-
status: 204,
|
|
1219
|
-
})
|
|
1220
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
1221
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
1222
|
-
.setResponseValidation(this.config, requestConfig)
|
|
1223
|
-
.build();
|
|
1224
|
-
return this.client.call(request);
|
|
1225
|
-
}
|
|
1226
|
-
/**
|
|
1227
|
-
* Removes a specific ses integration instance by ID from the project.
|
|
1228
|
-
* @param {string} id -
|
|
451
|
+
* Deletes the Mailgun integration configuration from the project. This will disable the integration's functionality within the project.
|
|
452
|
+
* @param {string} [params.id] -
|
|
1229
453
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1230
454
|
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1231
455
|
*/
|
|
1232
|
-
async
|
|
456
|
+
async deleteMailgunIntegration(params, requestConfig) {
|
|
1233
457
|
const request = new RequestBuilder()
|
|
1234
458
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1235
459
|
.setConfig(this.config)
|
|
1236
460
|
.setMethod('DELETE')
|
|
1237
|
-
.setPath('/integrations/
|
|
461
|
+
.setPath('/integrations/mailgun')
|
|
1238
462
|
.setRequestSchema(z.any())
|
|
1239
463
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1240
464
|
.setRequestContentType(ContentType.Json)
|
|
@@ -1246,29 +470,29 @@ export class IntegrationsService extends BaseService {
|
|
|
1246
470
|
.setRetryAttempts(this.config, requestConfig)
|
|
1247
471
|
.setRetryDelayMs(this.config, requestConfig)
|
|
1248
472
|
.setResponseValidation(this.config, requestConfig)
|
|
1249
|
-
.
|
|
473
|
+
.addQueryParam({
|
|
1250
474
|
key: 'id',
|
|
1251
|
-
value: id,
|
|
475
|
+
value: params === null || params === void 0 ? void 0 : params.id,
|
|
1252
476
|
})
|
|
1253
477
|
.build();
|
|
1254
478
|
return this.client.call(request);
|
|
1255
479
|
}
|
|
1256
480
|
/**
|
|
1257
|
-
* Retrieves the current
|
|
481
|
+
* Retrieves the current Ping Email integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1258
482
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1259
|
-
* @returns {Promise<HttpResponse<
|
|
483
|
+
* @returns {Promise<HttpResponse<PingConfigCollection>>} OK
|
|
1260
484
|
*/
|
|
1261
|
-
async
|
|
485
|
+
async listPingEmailIntegrations(requestConfig) {
|
|
1262
486
|
const request = new RequestBuilder()
|
|
1263
487
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1264
488
|
.setConfig(this.config)
|
|
1265
489
|
.setMethod('GET')
|
|
1266
|
-
.setPath('/integrations/
|
|
490
|
+
.setPath('/integrations/ping_email')
|
|
1267
491
|
.setRequestSchema(z.any())
|
|
1268
492
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1269
493
|
.setRequestContentType(ContentType.Json)
|
|
1270
494
|
.addResponse({
|
|
1271
|
-
schema:
|
|
495
|
+
schema: pingConfigCollectionResponse,
|
|
1272
496
|
contentType: ContentType.Json,
|
|
1273
497
|
status: 200,
|
|
1274
498
|
})
|
|
@@ -1279,21 +503,21 @@ export class IntegrationsService extends BaseService {
|
|
|
1279
503
|
return this.client.call(request);
|
|
1280
504
|
}
|
|
1281
505
|
/**
|
|
1282
|
-
*
|
|
506
|
+
* Updates or creates the Ping Email integration for the project.
|
|
1283
507
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1284
|
-
* @returns {Promise<HttpResponse<
|
|
508
|
+
* @returns {Promise<HttpResponse<PingConfigPayload>>} OK
|
|
1285
509
|
*/
|
|
1286
|
-
async
|
|
510
|
+
async savePingEmailIntegration(body, requestConfig) {
|
|
1287
511
|
const request = new RequestBuilder()
|
|
1288
512
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1289
513
|
.setConfig(this.config)
|
|
1290
514
|
.setMethod('PUT')
|
|
1291
|
-
.setPath('/integrations/
|
|
1292
|
-
.setRequestSchema(
|
|
515
|
+
.setPath('/integrations/ping_email')
|
|
516
|
+
.setRequestSchema(pingConfigPayloadRequest)
|
|
1293
517
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1294
518
|
.setRequestContentType(ContentType.Json)
|
|
1295
519
|
.addResponse({
|
|
1296
|
-
schema:
|
|
520
|
+
schema: pingConfigPayloadResponse,
|
|
1297
521
|
contentType: ContentType.Json,
|
|
1298
522
|
status: 200,
|
|
1299
523
|
})
|
|
@@ -1306,16 +530,17 @@ export class IntegrationsService extends BaseService {
|
|
|
1306
530
|
return this.client.call(request);
|
|
1307
531
|
}
|
|
1308
532
|
/**
|
|
1309
|
-
*
|
|
533
|
+
* Deletes the Ping Email integration configuration from the project. This will disable the integration's functionality within the project.
|
|
534
|
+
* @param {string} [params.id] -
|
|
1310
535
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1311
536
|
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1312
537
|
*/
|
|
1313
|
-
async
|
|
538
|
+
async deletePingEmailIntegration(params, requestConfig) {
|
|
1314
539
|
const request = new RequestBuilder()
|
|
1315
540
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1316
541
|
.setConfig(this.config)
|
|
1317
542
|
.setMethod('DELETE')
|
|
1318
|
-
.setPath('/integrations/
|
|
543
|
+
.setPath('/integrations/ping_email')
|
|
1319
544
|
.setRequestSchema(z.any())
|
|
1320
545
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1321
546
|
.setRequestContentType(ContentType.Json)
|
|
@@ -1327,109 +552,113 @@ export class IntegrationsService extends BaseService {
|
|
|
1327
552
|
.setRetryAttempts(this.config, requestConfig)
|
|
1328
553
|
.setRetryDelayMs(this.config, requestConfig)
|
|
1329
554
|
.setResponseValidation(this.config, requestConfig)
|
|
555
|
+
.addQueryParam({
|
|
556
|
+
key: 'id',
|
|
557
|
+
value: params === null || params === void 0 ? void 0 : params.id,
|
|
558
|
+
})
|
|
1330
559
|
.build();
|
|
1331
560
|
return this.client.call(request);
|
|
1332
561
|
}
|
|
1333
562
|
/**
|
|
1334
|
-
*
|
|
1335
|
-
* @param {string} id -
|
|
563
|
+
* Retrieves the current SendGrid integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1336
564
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1337
|
-
* @returns {Promise<HttpResponse<
|
|
565
|
+
* @returns {Promise<HttpResponse<SendgridConfigCollection>>} OK
|
|
1338
566
|
*/
|
|
1339
|
-
async
|
|
567
|
+
async listSendgridIntegrations(requestConfig) {
|
|
1340
568
|
const request = new RequestBuilder()
|
|
1341
569
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1342
570
|
.setConfig(this.config)
|
|
1343
|
-
.setMethod('
|
|
1344
|
-
.setPath('/integrations/
|
|
571
|
+
.setMethod('GET')
|
|
572
|
+
.setPath('/integrations/sendgrid')
|
|
1345
573
|
.setRequestSchema(z.any())
|
|
1346
574
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1347
575
|
.setRequestContentType(ContentType.Json)
|
|
1348
576
|
.addResponse({
|
|
1349
|
-
schema:
|
|
1350
|
-
contentType: ContentType.
|
|
1351
|
-
status:
|
|
577
|
+
schema: sendgridConfigCollectionResponse,
|
|
578
|
+
contentType: ContentType.Json,
|
|
579
|
+
status: 200,
|
|
1352
580
|
})
|
|
1353
581
|
.setRetryAttempts(this.config, requestConfig)
|
|
1354
582
|
.setRetryDelayMs(this.config, requestConfig)
|
|
1355
583
|
.setResponseValidation(this.config, requestConfig)
|
|
1356
|
-
.addPathParam({
|
|
1357
|
-
key: 'id',
|
|
1358
|
-
value: id,
|
|
1359
|
-
})
|
|
1360
584
|
.build();
|
|
1361
585
|
return this.client.call(request);
|
|
1362
586
|
}
|
|
1363
587
|
/**
|
|
1364
|
-
*
|
|
588
|
+
* Updates or creates the SendGrid integration for the project.
|
|
1365
589
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1366
|
-
* @returns {Promise<HttpResponse<
|
|
590
|
+
* @returns {Promise<HttpResponse<SendgridConfigPayload>>} OK
|
|
1367
591
|
*/
|
|
1368
|
-
async
|
|
592
|
+
async saveSendgridIntegration(body, requestConfig) {
|
|
1369
593
|
const request = new RequestBuilder()
|
|
1370
594
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1371
595
|
.setConfig(this.config)
|
|
1372
|
-
.setMethod('
|
|
1373
|
-
.setPath('/integrations/
|
|
1374
|
-
.setRequestSchema(
|
|
596
|
+
.setMethod('PUT')
|
|
597
|
+
.setPath('/integrations/sendgrid')
|
|
598
|
+
.setRequestSchema(sendgridConfigPayloadRequest)
|
|
1375
599
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1376
600
|
.setRequestContentType(ContentType.Json)
|
|
1377
601
|
.addResponse({
|
|
1378
|
-
schema:
|
|
602
|
+
schema: sendgridConfigPayloadResponse,
|
|
1379
603
|
contentType: ContentType.Json,
|
|
1380
604
|
status: 200,
|
|
1381
605
|
})
|
|
1382
606
|
.setRetryAttempts(this.config, requestConfig)
|
|
1383
607
|
.setRetryDelayMs(this.config, requestConfig)
|
|
1384
608
|
.setResponseValidation(this.config, requestConfig)
|
|
609
|
+
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
610
|
+
.addBody(body)
|
|
1385
611
|
.build();
|
|
1386
612
|
return this.client.call(request);
|
|
1387
613
|
}
|
|
1388
614
|
/**
|
|
1389
|
-
*
|
|
615
|
+
* Deletes the SendGrid integration configuration from the project. This will disable the integration's functionality within the project.
|
|
616
|
+
* @param {string} [params.id] -
|
|
1390
617
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1391
|
-
* @returns {Promise<HttpResponse<
|
|
618
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1392
619
|
*/
|
|
1393
|
-
async
|
|
620
|
+
async deleteSendgridIntegration(params, requestConfig) {
|
|
1394
621
|
const request = new RequestBuilder()
|
|
1395
622
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1396
623
|
.setConfig(this.config)
|
|
1397
|
-
.setMethod('
|
|
1398
|
-
.setPath('/integrations/
|
|
1399
|
-
.setRequestSchema(
|
|
624
|
+
.setMethod('DELETE')
|
|
625
|
+
.setPath('/integrations/sendgrid')
|
|
626
|
+
.setRequestSchema(z.any())
|
|
1400
627
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1401
628
|
.setRequestContentType(ContentType.Json)
|
|
1402
629
|
.addResponse({
|
|
1403
|
-
schema:
|
|
1404
|
-
contentType: ContentType.
|
|
1405
|
-
status:
|
|
630
|
+
schema: z.undefined(),
|
|
631
|
+
contentType: ContentType.NoContent,
|
|
632
|
+
status: 204,
|
|
1406
633
|
})
|
|
1407
634
|
.setRetryAttempts(this.config, requestConfig)
|
|
1408
635
|
.setRetryDelayMs(this.config, requestConfig)
|
|
1409
636
|
.setResponseValidation(this.config, requestConfig)
|
|
1410
|
-
.
|
|
1411
|
-
|
|
637
|
+
.addQueryParam({
|
|
638
|
+
key: 'id',
|
|
639
|
+
value: params === null || params === void 0 ? void 0 : params.id,
|
|
640
|
+
})
|
|
1412
641
|
.build();
|
|
1413
642
|
return this.client.call(request);
|
|
1414
643
|
}
|
|
1415
644
|
/**
|
|
1416
|
-
*
|
|
645
|
+
* Retrieves the current Amazon SES integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1417
646
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1418
|
-
* @returns {Promise<HttpResponse<
|
|
647
|
+
* @returns {Promise<HttpResponse<SesConfigCollection>>} OK
|
|
1419
648
|
*/
|
|
1420
|
-
async
|
|
649
|
+
async listSesIntegrations(requestConfig) {
|
|
1421
650
|
const request = new RequestBuilder()
|
|
1422
651
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1423
652
|
.setConfig(this.config)
|
|
1424
|
-
.setMethod('
|
|
1425
|
-
.setPath('/integrations/
|
|
653
|
+
.setMethod('GET')
|
|
654
|
+
.setPath('/integrations/ses')
|
|
1426
655
|
.setRequestSchema(z.any())
|
|
1427
656
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1428
657
|
.setRequestContentType(ContentType.Json)
|
|
1429
658
|
.addResponse({
|
|
1430
|
-
schema:
|
|
1431
|
-
contentType: ContentType.
|
|
1432
|
-
status:
|
|
659
|
+
schema: sesConfigCollectionResponse,
|
|
660
|
+
contentType: ContentType.Json,
|
|
661
|
+
status: 200,
|
|
1433
662
|
})
|
|
1434
663
|
.setRetryAttempts(this.config, requestConfig)
|
|
1435
664
|
.setRetryDelayMs(this.config, requestConfig)
|
|
@@ -1438,124 +667,126 @@ export class IntegrationsService extends BaseService {
|
|
|
1438
667
|
return this.client.call(request);
|
|
1439
668
|
}
|
|
1440
669
|
/**
|
|
1441
|
-
*
|
|
1442
|
-
* @param {string} id -
|
|
670
|
+
* Updates or creates the Amazon SES integration for the project.
|
|
1443
671
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1444
|
-
* @returns {Promise<HttpResponse<
|
|
672
|
+
* @returns {Promise<HttpResponse<SesConfigPayload>>} OK
|
|
1445
673
|
*/
|
|
1446
|
-
async
|
|
674
|
+
async saveSesIntegration(body, requestConfig) {
|
|
1447
675
|
const request = new RequestBuilder()
|
|
1448
676
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1449
677
|
.setConfig(this.config)
|
|
1450
|
-
.setMethod('
|
|
1451
|
-
.setPath('/integrations/
|
|
1452
|
-
.setRequestSchema(
|
|
678
|
+
.setMethod('PUT')
|
|
679
|
+
.setPath('/integrations/ses')
|
|
680
|
+
.setRequestSchema(sesConfigPayloadRequest)
|
|
1453
681
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1454
682
|
.setRequestContentType(ContentType.Json)
|
|
1455
683
|
.addResponse({
|
|
1456
|
-
schema:
|
|
1457
|
-
contentType: ContentType.
|
|
1458
|
-
status:
|
|
684
|
+
schema: sesConfigPayloadResponse,
|
|
685
|
+
contentType: ContentType.Json,
|
|
686
|
+
status: 200,
|
|
1459
687
|
})
|
|
1460
688
|
.setRetryAttempts(this.config, requestConfig)
|
|
1461
689
|
.setRetryDelayMs(this.config, requestConfig)
|
|
1462
690
|
.setResponseValidation(this.config, requestConfig)
|
|
1463
|
-
.
|
|
1464
|
-
|
|
1465
|
-
value: id,
|
|
1466
|
-
})
|
|
691
|
+
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
692
|
+
.addBody(body)
|
|
1467
693
|
.build();
|
|
1468
694
|
return this.client.call(request);
|
|
1469
695
|
}
|
|
1470
696
|
/**
|
|
1471
|
-
*
|
|
697
|
+
* Deletes the Amazon SES integration configuration from the project. This will disable the integration's functionality within the project.
|
|
698
|
+
* @param {string} [params.id] -
|
|
1472
699
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1473
|
-
* @returns {Promise<HttpResponse<
|
|
700
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1474
701
|
*/
|
|
1475
|
-
async
|
|
702
|
+
async deleteSesIntegration(params, requestConfig) {
|
|
1476
703
|
const request = new RequestBuilder()
|
|
1477
704
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1478
705
|
.setConfig(this.config)
|
|
1479
|
-
.setMethod('
|
|
1480
|
-
.setPath('/integrations/
|
|
706
|
+
.setMethod('DELETE')
|
|
707
|
+
.setPath('/integrations/ses')
|
|
1481
708
|
.setRequestSchema(z.any())
|
|
1482
709
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1483
710
|
.setRequestContentType(ContentType.Json)
|
|
1484
711
|
.addResponse({
|
|
1485
|
-
schema:
|
|
1486
|
-
contentType: ContentType.
|
|
1487
|
-
status:
|
|
712
|
+
schema: z.undefined(),
|
|
713
|
+
contentType: ContentType.NoContent,
|
|
714
|
+
status: 204,
|
|
1488
715
|
})
|
|
1489
716
|
.setRetryAttempts(this.config, requestConfig)
|
|
1490
717
|
.setRetryDelayMs(this.config, requestConfig)
|
|
1491
718
|
.setResponseValidation(this.config, requestConfig)
|
|
719
|
+
.addQueryParam({
|
|
720
|
+
key: 'id',
|
|
721
|
+
value: params === null || params === void 0 ? void 0 : params.id,
|
|
722
|
+
})
|
|
1492
723
|
.build();
|
|
1493
724
|
return this.client.call(request);
|
|
1494
725
|
}
|
|
1495
726
|
/**
|
|
1496
|
-
*
|
|
727
|
+
* Retrieves the current Slack integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1497
728
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1498
|
-
* @returns {Promise<HttpResponse<
|
|
729
|
+
* @returns {Promise<HttpResponse<SlackConfigCollection>>} OK
|
|
1499
730
|
*/
|
|
1500
|
-
async
|
|
731
|
+
async listSlackIntegrations(requestConfig) {
|
|
1501
732
|
const request = new RequestBuilder()
|
|
1502
733
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1503
734
|
.setConfig(this.config)
|
|
1504
|
-
.setMethod('
|
|
1505
|
-
.setPath('/integrations/
|
|
735
|
+
.setMethod('GET')
|
|
736
|
+
.setPath('/integrations/slack')
|
|
1506
737
|
.setRequestSchema(z.any())
|
|
1507
738
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1508
739
|
.setRequestContentType(ContentType.Json)
|
|
1509
740
|
.addResponse({
|
|
1510
|
-
schema:
|
|
741
|
+
schema: slackConfigCollectionResponse,
|
|
1511
742
|
contentType: ContentType.Json,
|
|
1512
743
|
status: 200,
|
|
1513
744
|
})
|
|
1514
745
|
.setRetryAttempts(this.config, requestConfig)
|
|
1515
746
|
.setRetryDelayMs(this.config, requestConfig)
|
|
1516
747
|
.setResponseValidation(this.config, requestConfig)
|
|
1517
|
-
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
1518
|
-
.addBody(body)
|
|
1519
748
|
.build();
|
|
1520
749
|
return this.client.call(request);
|
|
1521
750
|
}
|
|
1522
751
|
/**
|
|
1523
|
-
*
|
|
752
|
+
* Updates or creates the Slack integration for the project.
|
|
1524
753
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1525
|
-
* @returns {Promise<HttpResponse<
|
|
754
|
+
* @returns {Promise<HttpResponse<SlackConfigPayload>>} OK
|
|
1526
755
|
*/
|
|
1527
|
-
async
|
|
756
|
+
async saveSlackIntegration(body, requestConfig) {
|
|
1528
757
|
const request = new RequestBuilder()
|
|
1529
758
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1530
759
|
.setConfig(this.config)
|
|
1531
|
-
.setMethod('
|
|
1532
|
-
.setPath('/integrations/
|
|
1533
|
-
.setRequestSchema(
|
|
760
|
+
.setMethod('PUT')
|
|
761
|
+
.setPath('/integrations/slack')
|
|
762
|
+
.setRequestSchema(slackConfigPayloadRequest)
|
|
1534
763
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1535
764
|
.setRequestContentType(ContentType.Json)
|
|
1536
765
|
.addResponse({
|
|
1537
|
-
schema:
|
|
1538
|
-
contentType: ContentType.
|
|
1539
|
-
status:
|
|
766
|
+
schema: slackConfigPayloadResponse,
|
|
767
|
+
contentType: ContentType.Json,
|
|
768
|
+
status: 200,
|
|
1540
769
|
})
|
|
1541
770
|
.setRetryAttempts(this.config, requestConfig)
|
|
1542
771
|
.setRetryDelayMs(this.config, requestConfig)
|
|
1543
772
|
.setResponseValidation(this.config, requestConfig)
|
|
773
|
+
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
774
|
+
.addBody(body)
|
|
1544
775
|
.build();
|
|
1545
776
|
return this.client.call(request);
|
|
1546
777
|
}
|
|
1547
778
|
/**
|
|
1548
|
-
*
|
|
1549
|
-
* @param {string} id -
|
|
779
|
+
* Deletes the Slack integration configuration from the project. This will disable the integration's functionality within the project.
|
|
780
|
+
* @param {string} [params.id] -
|
|
1550
781
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1551
782
|
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1552
783
|
*/
|
|
1553
|
-
async
|
|
784
|
+
async deleteSlackIntegration(params, requestConfig) {
|
|
1554
785
|
const request = new RequestBuilder()
|
|
1555
786
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1556
787
|
.setConfig(this.config)
|
|
1557
788
|
.setMethod('DELETE')
|
|
1558
|
-
.setPath('/integrations/
|
|
789
|
+
.setPath('/integrations/slack')
|
|
1559
790
|
.setRequestSchema(z.any())
|
|
1560
791
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1561
792
|
.setRequestContentType(ContentType.Json)
|
|
@@ -1567,19 +798,19 @@ export class IntegrationsService extends BaseService {
|
|
|
1567
798
|
.setRetryAttempts(this.config, requestConfig)
|
|
1568
799
|
.setRetryDelayMs(this.config, requestConfig)
|
|
1569
800
|
.setResponseValidation(this.config, requestConfig)
|
|
1570
|
-
.
|
|
801
|
+
.addQueryParam({
|
|
1571
802
|
key: 'id',
|
|
1572
|
-
value: id,
|
|
803
|
+
value: params === null || params === void 0 ? void 0 : params.id,
|
|
1573
804
|
})
|
|
1574
805
|
.build();
|
|
1575
806
|
return this.client.call(request);
|
|
1576
807
|
}
|
|
1577
808
|
/**
|
|
1578
|
-
* Retrieves the current
|
|
809
|
+
* Retrieves the current Twilio integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1579
810
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1580
811
|
* @returns {Promise<HttpResponse<TwilioConfigCollection>>} OK
|
|
1581
812
|
*/
|
|
1582
|
-
async
|
|
813
|
+
async listTwilioIntegrations(requestConfig) {
|
|
1583
814
|
const request = new RequestBuilder()
|
|
1584
815
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1585
816
|
.setConfig(this.config)
|
|
@@ -1600,7 +831,7 @@ export class IntegrationsService extends BaseService {
|
|
|
1600
831
|
return this.client.call(request);
|
|
1601
832
|
}
|
|
1602
833
|
/**
|
|
1603
|
-
*
|
|
834
|
+
* Updates or creates the Twilio integration for the project.
|
|
1604
835
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1605
836
|
* @returns {Promise<HttpResponse<TwilioConfigPayload>>} OK
|
|
1606
837
|
*/
|
|
@@ -1627,11 +858,12 @@ export class IntegrationsService extends BaseService {
|
|
|
1627
858
|
return this.client.call(request);
|
|
1628
859
|
}
|
|
1629
860
|
/**
|
|
1630
|
-
*
|
|
861
|
+
* Deletes the Twilio integration configuration from the project. This will disable the integration's functionality within the project.
|
|
862
|
+
* @param {string} [params.id] -
|
|
1631
863
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1632
864
|
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1633
865
|
*/
|
|
1634
|
-
async deleteTwilioIntegration(requestConfig) {
|
|
866
|
+
async deleteTwilioIntegration(params, requestConfig) {
|
|
1635
867
|
const request = new RequestBuilder()
|
|
1636
868
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1637
869
|
.setConfig(this.config)
|
|
@@ -1648,45 +880,19 @@ export class IntegrationsService extends BaseService {
|
|
|
1648
880
|
.setRetryAttempts(this.config, requestConfig)
|
|
1649
881
|
.setRetryDelayMs(this.config, requestConfig)
|
|
1650
882
|
.setResponseValidation(this.config, requestConfig)
|
|
1651
|
-
.
|
|
1652
|
-
return this.client.call(request);
|
|
1653
|
-
}
|
|
1654
|
-
/**
|
|
1655
|
-
* Removes a specific twilio integration instance by ID from the project.
|
|
1656
|
-
* @param {string} id -
|
|
1657
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1658
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1659
|
-
*/
|
|
1660
|
-
async deleteTwilioIntegrationById(id, requestConfig) {
|
|
1661
|
-
const request = new RequestBuilder()
|
|
1662
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1663
|
-
.setConfig(this.config)
|
|
1664
|
-
.setMethod('DELETE')
|
|
1665
|
-
.setPath('/integrations/twilio/{id}')
|
|
1666
|
-
.setRequestSchema(z.any())
|
|
1667
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1668
|
-
.setRequestContentType(ContentType.Json)
|
|
1669
|
-
.addResponse({
|
|
1670
|
-
schema: z.undefined(),
|
|
1671
|
-
contentType: ContentType.NoContent,
|
|
1672
|
-
status: 204,
|
|
1673
|
-
})
|
|
1674
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
1675
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
1676
|
-
.setResponseValidation(this.config, requestConfig)
|
|
1677
|
-
.addPathParam({
|
|
883
|
+
.addQueryParam({
|
|
1678
884
|
key: 'id',
|
|
1679
|
-
value: id,
|
|
885
|
+
value: params === null || params === void 0 ? void 0 : params.id,
|
|
1680
886
|
})
|
|
1681
887
|
.build();
|
|
1682
888
|
return this.client.call(request);
|
|
1683
889
|
}
|
|
1684
890
|
/**
|
|
1685
|
-
* Retrieves the current
|
|
891
|
+
* Retrieves the current Web Push integration configurations for a specific integration type in the project. Returns configuration details and status information.
|
|
1686
892
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1687
893
|
* @returns {Promise<HttpResponse<WebpushConfigCollection>>} OK
|
|
1688
894
|
*/
|
|
1689
|
-
async
|
|
895
|
+
async listWebPushIntegrations(requestConfig) {
|
|
1690
896
|
const request = new RequestBuilder()
|
|
1691
897
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1692
898
|
.setConfig(this.config)
|
|
@@ -1707,7 +913,7 @@ export class IntegrationsService extends BaseService {
|
|
|
1707
913
|
return this.client.call(request);
|
|
1708
914
|
}
|
|
1709
915
|
/**
|
|
1710
|
-
*
|
|
916
|
+
* Updates or creates the Web Push integration for the project.
|
|
1711
917
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1712
918
|
* @returns {Promise<HttpResponse<WebpushConfigPayload>>} OK
|
|
1713
919
|
*/
|
|
@@ -1734,11 +940,12 @@ export class IntegrationsService extends BaseService {
|
|
|
1734
940
|
return this.client.call(request);
|
|
1735
941
|
}
|
|
1736
942
|
/**
|
|
1737
|
-
*
|
|
943
|
+
* Deletes the Web Push integration configuration from the project. This will disable the integration's functionality within the project.
|
|
944
|
+
* @param {string} [params.id] -
|
|
1738
945
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1739
946
|
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1740
947
|
*/
|
|
1741
|
-
async deleteWebPushIntegration(requestConfig) {
|
|
948
|
+
async deleteWebPushIntegration(params, requestConfig) {
|
|
1742
949
|
const request = new RequestBuilder()
|
|
1743
950
|
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1744
951
|
.setConfig(this.config)
|
|
@@ -1755,35 +962,9 @@ export class IntegrationsService extends BaseService {
|
|
|
1755
962
|
.setRetryAttempts(this.config, requestConfig)
|
|
1756
963
|
.setRetryDelayMs(this.config, requestConfig)
|
|
1757
964
|
.setResponseValidation(this.config, requestConfig)
|
|
1758
|
-
.
|
|
1759
|
-
return this.client.call(request);
|
|
1760
|
-
}
|
|
1761
|
-
/**
|
|
1762
|
-
* Removes a specific web_push integration instance by ID from the project.
|
|
1763
|
-
* @param {string} id -
|
|
1764
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
1765
|
-
* @returns {Promise<HttpResponse<any>>} No Content
|
|
1766
|
-
*/
|
|
1767
|
-
async deleteWebPushIntegrationById(id, requestConfig) {
|
|
1768
|
-
const request = new RequestBuilder()
|
|
1769
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
1770
|
-
.setConfig(this.config)
|
|
1771
|
-
.setMethod('DELETE')
|
|
1772
|
-
.setPath('/integrations/web_push/{id}')
|
|
1773
|
-
.setRequestSchema(z.any())
|
|
1774
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
1775
|
-
.setRequestContentType(ContentType.Json)
|
|
1776
|
-
.addResponse({
|
|
1777
|
-
schema: z.undefined(),
|
|
1778
|
-
contentType: ContentType.NoContent,
|
|
1779
|
-
status: 204,
|
|
1780
|
-
})
|
|
1781
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
1782
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
1783
|
-
.setResponseValidation(this.config, requestConfig)
|
|
1784
|
-
.addPathParam({
|
|
965
|
+
.addQueryParam({
|
|
1785
966
|
key: 'id',
|
|
1786
|
-
value: id,
|
|
967
|
+
value: params === null || params === void 0 ? void 0 : params.id,
|
|
1787
968
|
})
|
|
1788
969
|
.build();
|
|
1789
970
|
return this.client.call(request);
|