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