magicbell-js 0.1.0 → 0.2.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 +11 -21
- 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 +97 -193
- package/dist/commonjs/project-client/services/integrations/integrations-service.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/integrations/integrations-service.js +128 -528
- 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/theme.d.ts +56 -56
- package/dist/commonjs/project-client/services/integrations/request-params.d.ts +48 -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 +12 -12
- package/dist/commonjs/user-client/services/integrations/integrations-service.js +20 -20
- 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/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 +97 -193
- package/dist/esm/project-client/services/integrations/integrations-service.d.ts.map +1 -1
- package/dist/esm/project-client/services/integrations/integrations-service.js +128 -528
- 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/theme.d.ts +56 -56
- package/dist/esm/project-client/services/integrations/request-params.d.ts +48 -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 +12 -12
- package/dist/esm/user-client/services/integrations/integrations-service.js +20 -20
- 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/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 +195 -545
- package/src/project-client/services/integrations/request-params.ts +64 -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 +20 -20
- 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/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/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/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/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/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/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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/project-client/services/notifications/models/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,YAAY,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/project-client/services/notifications/models/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { HttpResponse, RequestConfig } from '../../http/types.js';
|
|
2
|
-
import { BaseService } from '../base-service.js';
|
|
3
|
-
import { DeliveryPlanCollection } from './models/delivery-plan-collection.js';
|
|
4
|
-
export declare class NotificationsService extends BaseService {
|
|
5
|
-
/**
|
|
6
|
-
* Get the delivery plan for a notification.
|
|
7
|
-
* @param {string} notificationId -
|
|
8
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
9
|
-
* @returns {Promise<HttpResponse<DeliveryPlanCollection>>} OK
|
|
10
|
-
*/
|
|
11
|
-
getDeliveryplan(notificationId: string, requestConfig?: RequestConfig): Promise<HttpResponse<DeliveryPlanCollection>>;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=notifications-service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notifications-service.d.ts","sourceRoot":"","sources":["../../../../../src/project-client/services/notifications/notifications-service.ts"],"names":[],"mappings":"AAMA,OAAO,EAAe,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAkC,MAAM,sCAAsC,CAAC;AAE9G,qBAAa,oBAAqB,SAAQ,WAAW;IACnD;;;;;OAKG;IACG,eAAe,CACnB,cAAc,EAAE,MAAM,EACtB,aAAa,CAAC,EAAE,aAAa,GAC5B,OAAO,CAAC,YAAY,CAAC,sBAAsB,CAAC,CAAC;CAwBjD"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { Environment } from '../../http/environment.js';
|
|
3
|
-
import { RequestBuilder } from '../../http/transport/request-builder.js';
|
|
4
|
-
import { ContentType } from '../../http/types.js';
|
|
5
|
-
import { BaseService } from '../base-service.js';
|
|
6
|
-
import { deliveryPlanCollectionResponse } from './models/delivery-plan-collection.js';
|
|
7
|
-
export class NotificationsService extends BaseService {
|
|
8
|
-
/**
|
|
9
|
-
* Get the delivery plan for a notification.
|
|
10
|
-
* @param {string} notificationId -
|
|
11
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
12
|
-
* @returns {Promise<HttpResponse<DeliveryPlanCollection>>} OK
|
|
13
|
-
*/
|
|
14
|
-
async getDeliveryplan(notificationId, requestConfig) {
|
|
15
|
-
const request = new RequestBuilder()
|
|
16
|
-
.setBaseUrl((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
17
|
-
.setConfig(this.config)
|
|
18
|
-
.setMethod('GET')
|
|
19
|
-
.setPath('/notifications/{notification_id}/deliveryplan')
|
|
20
|
-
.setRequestSchema(z.any())
|
|
21
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
22
|
-
.setRequestContentType(ContentType.Json)
|
|
23
|
-
.addResponse({
|
|
24
|
-
schema: deliveryPlanCollectionResponse,
|
|
25
|
-
contentType: ContentType.Json,
|
|
26
|
-
status: 200,
|
|
27
|
-
})
|
|
28
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
29
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
30
|
-
.setResponseValidation(this.config, requestConfig)
|
|
31
|
-
.addPathParam({
|
|
32
|
-
key: 'notification_id',
|
|
33
|
-
value: notificationId,
|
|
34
|
-
})
|
|
35
|
-
.build();
|
|
36
|
-
return this.client.call(request);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=notifications-service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notifications-service.js","sourceRoot":"","sources":["../../../../../src/project-client/services/notifications/notifications-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAGxD,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,WAAW,EAA+B,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAA0B,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAE9G,MAAM,OAAO,oBAAqB,SAAQ,WAAW;IACnD;;;;;OAKG;IACH,KAAK,CAAC,eAAe,CACnB,cAAsB,EACtB,aAA6B;QAE7B,MAAM,OAAO,GAAG,IAAI,cAAc,EAAE;aACjC,UAAU,CAAC,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,OAAO,KAAI,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,IAAI,WAAW,CAAC,OAAO,CAAC;aAC3G,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC;aACtB,SAAS,CAAC,KAAK,CAAC;aAChB,OAAO,CAAC,+CAA+C,CAAC;aACxD,gBAAgB,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;aACzB,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC;aAC/C,qBAAqB,CAAC,WAAW,CAAC,IAAI,CAAC;aACvC,WAAW,CAAC;YACX,MAAM,EAAE,8BAA8B;YACtC,WAAW,EAAE,WAAW,CAAC,IAAI;YAC7B,MAAM,EAAE,GAAG;SACZ,CAAC;aACD,gBAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC;aAC5C,eAAe,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC;aAC3C,qBAAqB,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC;aACjD,YAAY,CAAC;YACZ,GAAG,EAAE,iBAAiB;YACtB,KAAK,EAAE,cAAc;SACtB,CAAC;aACD,KAAK,EAAE,CAAC;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAyB,OAAO,CAAC,CAAC;IAC3D,CAAC;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../src/project-client/services/users/models/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAaf,CAAC;AAEH;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAExC;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BvB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BtB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../../../src/project-client/services/users/models/user.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The shape of the model inside the application code - what the users use
|
|
5
|
-
*/
|
|
6
|
-
export const slack = z.lazy(() => {
|
|
7
|
-
return z.object({
|
|
8
|
-
actionUrl: z.string().max(2048).optional().nullable(),
|
|
9
|
-
content: z.string().max(1048576).optional(),
|
|
10
|
-
title: z.string().min(1).max(255).optional(),
|
|
11
|
-
});
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @typedef {Slack} slack
|
|
17
|
-
* @property {string}
|
|
18
|
-
* @property {string}
|
|
19
|
-
* @property {string}
|
|
20
|
-
*/
|
|
21
|
-
export type Slack = z.infer<typeof slack>;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* The shape of the model mapping from the api schema into the application shape.
|
|
25
|
-
* Is equal to application shape if all property names match the api schema
|
|
26
|
-
*/
|
|
27
|
-
export const slackResponse = z.lazy(() => {
|
|
28
|
-
return z
|
|
29
|
-
.object({
|
|
30
|
-
action_url: z.string().max(2048).optional().nullable(),
|
|
31
|
-
content: z.string().max(1048576).optional(),
|
|
32
|
-
title: z.string().min(1).max(255).optional(),
|
|
33
|
-
})
|
|
34
|
-
.transform((data) => ({
|
|
35
|
-
actionUrl: data['action_url'],
|
|
36
|
-
content: data['content'],
|
|
37
|
-
title: data['title'],
|
|
38
|
-
}));
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* The shape of the model mapping from the application shape into the api schema.
|
|
43
|
-
* Is equal to application shape if all property names match the api schema
|
|
44
|
-
*/
|
|
45
|
-
export const slackRequest = z.lazy(() => {
|
|
46
|
-
return z
|
|
47
|
-
.object({
|
|
48
|
-
actionUrl: z.string().max(2048).optional().nullable(),
|
|
49
|
-
content: z.string().max(1048576).optional(),
|
|
50
|
-
title: z.string().min(1).max(255).optional(),
|
|
51
|
-
})
|
|
52
|
-
.transform((data) => ({
|
|
53
|
-
action_url: data['actionUrl'],
|
|
54
|
-
content: data['content'],
|
|
55
|
-
title: data['title'],
|
|
56
|
-
}));
|
|
57
|
-
});
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The shape of the model inside the application code - what the users use
|
|
5
|
-
*/
|
|
6
|
-
export const webPush = z.lazy(() => {
|
|
7
|
-
return z.object({
|
|
8
|
-
actionUrl: z.string().max(2048).optional().nullable(),
|
|
9
|
-
content: z.string().max(1048576).optional(),
|
|
10
|
-
title: z.string().min(1).max(255).optional(),
|
|
11
|
-
});
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @typedef {WebPush} webPush
|
|
17
|
-
* @property {string}
|
|
18
|
-
* @property {string}
|
|
19
|
-
* @property {string}
|
|
20
|
-
*/
|
|
21
|
-
export type WebPush = z.infer<typeof webPush>;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* The shape of the model mapping from the api schema into the application shape.
|
|
25
|
-
* Is equal to application shape if all property names match the api schema
|
|
26
|
-
*/
|
|
27
|
-
export const webPushResponse = z.lazy(() => {
|
|
28
|
-
return z
|
|
29
|
-
.object({
|
|
30
|
-
action_url: z.string().max(2048).optional().nullable(),
|
|
31
|
-
content: z.string().max(1048576).optional(),
|
|
32
|
-
title: z.string().min(1).max(255).optional(),
|
|
33
|
-
})
|
|
34
|
-
.transform((data) => ({
|
|
35
|
-
actionUrl: data['action_url'],
|
|
36
|
-
content: data['content'],
|
|
37
|
-
title: data['title'],
|
|
38
|
-
}));
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* The shape of the model mapping from the application shape into the api schema.
|
|
43
|
-
* Is equal to application shape if all property names match the api schema
|
|
44
|
-
*/
|
|
45
|
-
export const webPushRequest = z.lazy(() => {
|
|
46
|
-
return z
|
|
47
|
-
.object({
|
|
48
|
-
actionUrl: z.string().max(2048).optional().nullable(),
|
|
49
|
-
content: z.string().max(1048576).optional(),
|
|
50
|
-
title: z.string().min(1).max(255).optional(),
|
|
51
|
-
})
|
|
52
|
-
.transform((data) => ({
|
|
53
|
-
action_url: data['actionUrl'],
|
|
54
|
-
content: data['content'],
|
|
55
|
-
title: data['title'],
|
|
56
|
-
}));
|
|
57
|
-
});
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
import { Environment } from '../../http/environment.js';
|
|
4
|
-
import { ThrowableError } from '../../http/errors/throwable-error.js';
|
|
5
|
-
import { SerializationStyle } from '../../http/serialization/base-serializer.js';
|
|
6
|
-
import { RequestBuilder } from '../../http/transport/request-builder.js';
|
|
7
|
-
import { ContentType, HttpResponse, RequestConfig } from '../../http/types.js';
|
|
8
|
-
import { BaseService } from '../base-service.js';
|
|
9
|
-
import { AccessTokenCollection, accessTokenCollectionResponse } from './models/access-token-collection.js';
|
|
10
|
-
import { CreateProjectTokenRequest, createProjectTokenRequestRequest } from './models/create-project-token-request.js';
|
|
11
|
-
import { CreateTokenResponse, createTokenResponseResponse } from './models/create-token-response.js';
|
|
12
|
-
import { DiscardTokenResponse, discardTokenResponseResponse } from './models/discard-token-response.js';
|
|
13
|
-
import { FetchProjectTokensParams } from './request-params.js';
|
|
14
|
-
|
|
15
|
-
export class JwtService extends BaseService {
|
|
16
|
-
/**
|
|
17
|
-
* Retrieves a list of all active project-level JWT tokens. Returns a paginated list showing token metadata including creation date, last used date, and expiration time. For security reasons, the actual token values are not included in the response.
|
|
18
|
-
* @param {number} [params.limit] -
|
|
19
|
-
* @param {string} [params.startingAfter] -
|
|
20
|
-
* @param {string} [params.endingBefore] -
|
|
21
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
22
|
-
* @returns {Promise<HttpResponse<AccessTokenCollection>>} OK
|
|
23
|
-
*/
|
|
24
|
-
async fetchProjectTokens(
|
|
25
|
-
params?: FetchProjectTokensParams,
|
|
26
|
-
requestConfig?: RequestConfig,
|
|
27
|
-
): Promise<HttpResponse<AccessTokenCollection>> {
|
|
28
|
-
const request = new RequestBuilder()
|
|
29
|
-
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
30
|
-
.setConfig(this.config)
|
|
31
|
-
.setMethod('GET')
|
|
32
|
-
.setPath('/jwt/project')
|
|
33
|
-
.setRequestSchema(z.any())
|
|
34
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
35
|
-
.setRequestContentType(ContentType.Json)
|
|
36
|
-
.addResponse({
|
|
37
|
-
schema: accessTokenCollectionResponse,
|
|
38
|
-
contentType: ContentType.Json,
|
|
39
|
-
status: 200,
|
|
40
|
-
})
|
|
41
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
42
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
43
|
-
.setResponseValidation(this.config, requestConfig)
|
|
44
|
-
.addQueryParam({
|
|
45
|
-
key: 'limit',
|
|
46
|
-
value: params?.limit,
|
|
47
|
-
})
|
|
48
|
-
.addQueryParam({
|
|
49
|
-
key: 'starting_after',
|
|
50
|
-
value: params?.startingAfter,
|
|
51
|
-
})
|
|
52
|
-
.addQueryParam({
|
|
53
|
-
key: 'ending_before',
|
|
54
|
-
value: params?.endingBefore,
|
|
55
|
-
})
|
|
56
|
-
.build();
|
|
57
|
-
return this.client.call<AccessTokenCollection>(request);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Creates a new project-level JWT token. These tokens provide project-wide access and should be carefully managed. Only administrators can create project tokens. The returned token should be securely stored as it cannot be retrieved again after creation.
|
|
62
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
63
|
-
* @returns {Promise<HttpResponse<CreateTokenResponse>>} Created
|
|
64
|
-
*/
|
|
65
|
-
async createProjectJwt(
|
|
66
|
-
body: CreateProjectTokenRequest,
|
|
67
|
-
requestConfig?: RequestConfig,
|
|
68
|
-
): Promise<HttpResponse<CreateTokenResponse>> {
|
|
69
|
-
const request = new RequestBuilder()
|
|
70
|
-
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
71
|
-
.setConfig(this.config)
|
|
72
|
-
.setMethod('POST')
|
|
73
|
-
.setPath('/jwt/project')
|
|
74
|
-
.setRequestSchema(createProjectTokenRequestRequest)
|
|
75
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
76
|
-
.setRequestContentType(ContentType.Json)
|
|
77
|
-
.addResponse({
|
|
78
|
-
schema: createTokenResponseResponse,
|
|
79
|
-
contentType: ContentType.Json,
|
|
80
|
-
status: 201,
|
|
81
|
-
})
|
|
82
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
83
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
84
|
-
.setResponseValidation(this.config, requestConfig)
|
|
85
|
-
.addHeaderParam({ key: 'Content-Type', value: 'application/json' })
|
|
86
|
-
.addBody(body)
|
|
87
|
-
.build();
|
|
88
|
-
return this.client.call<CreateTokenResponse>(request);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Immediately revokes a project-level JWT token. Once revoked, any requests using this token will be rejected. This action is immediate and cannot be undone. Active sessions using this token will be terminated.
|
|
93
|
-
* @param {string} tokenId -
|
|
94
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
95
|
-
* @returns {Promise<HttpResponse<DiscardTokenResponse>>} OK
|
|
96
|
-
*/
|
|
97
|
-
async discardProjectJwt(tokenId: string, requestConfig?: RequestConfig): Promise<HttpResponse<DiscardTokenResponse>> {
|
|
98
|
-
const request = new RequestBuilder()
|
|
99
|
-
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
100
|
-
.setConfig(this.config)
|
|
101
|
-
.setMethod('DELETE')
|
|
102
|
-
.setPath('/jwt/project/{token_id}')
|
|
103
|
-
.setRequestSchema(z.any())
|
|
104
|
-
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
105
|
-
.setRequestContentType(ContentType.Json)
|
|
106
|
-
.addResponse({
|
|
107
|
-
schema: discardTokenResponseResponse,
|
|
108
|
-
contentType: ContentType.Json,
|
|
109
|
-
status: 200,
|
|
110
|
-
})
|
|
111
|
-
.setRetryAttempts(this.config, requestConfig)
|
|
112
|
-
.setRetryDelayMs(this.config, requestConfig)
|
|
113
|
-
.setResponseValidation(this.config, requestConfig)
|
|
114
|
-
.addPathParam({
|
|
115
|
-
key: 'token_id',
|
|
116
|
-
value: tokenId,
|
|
117
|
-
})
|
|
118
|
-
.build();
|
|
119
|
-
return this.client.call<DiscardTokenResponse>(request);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
import { Links, links, linksRequest, linksResponse } from '../../common/links.js';
|
|
4
|
-
import { AccessToken, accessToken, accessTokenRequest, accessTokenResponse } from './access-token.js';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* The shape of the model inside the application code - what the users use
|
|
8
|
-
*/
|
|
9
|
-
export const accessTokenCollection = z.lazy(() => {
|
|
10
|
-
return z.object({
|
|
11
|
-
data: z.array(accessToken).optional(),
|
|
12
|
-
links: links.optional(),
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @typedef {AccessTokenCollection} accessTokenCollection
|
|
19
|
-
* @property {AccessToken[]}
|
|
20
|
-
* @property {Links}
|
|
21
|
-
*/
|
|
22
|
-
export type AccessTokenCollection = z.infer<typeof accessTokenCollection>;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* The shape of the model mapping from the api schema into the application shape.
|
|
26
|
-
* Is equal to application shape if all property names match the api schema
|
|
27
|
-
*/
|
|
28
|
-
export const accessTokenCollectionResponse = z.lazy(() => {
|
|
29
|
-
return z
|
|
30
|
-
.object({
|
|
31
|
-
data: z.array(accessTokenResponse).optional(),
|
|
32
|
-
links: linksResponse.optional(),
|
|
33
|
-
})
|
|
34
|
-
.transform((data) => ({
|
|
35
|
-
data: data['data'],
|
|
36
|
-
links: data['links'],
|
|
37
|
-
}));
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* The shape of the model mapping from the application shape into the api schema.
|
|
42
|
-
* Is equal to application shape if all property names match the api schema
|
|
43
|
-
*/
|
|
44
|
-
export const accessTokenCollectionRequest = z.lazy(() => {
|
|
45
|
-
return z
|
|
46
|
-
.object({
|
|
47
|
-
data: z.array(accessTokenRequest).optional(),
|
|
48
|
-
links: linksRequest.optional(),
|
|
49
|
-
})
|
|
50
|
-
.transform((data) => ({
|
|
51
|
-
data: data['data'],
|
|
52
|
-
links: data['links'],
|
|
53
|
-
}));
|
|
54
|
-
});
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The shape of the model inside the application code - what the users use
|
|
5
|
-
*/
|
|
6
|
-
export const accessToken = z.lazy(() => {
|
|
7
|
-
return z.object({
|
|
8
|
-
createdAt: z.string(),
|
|
9
|
-
discardedAt: z.string().optional().nullable(),
|
|
10
|
-
expiresAt: z.string().optional(),
|
|
11
|
-
id: z.string().optional(),
|
|
12
|
-
name: z.string().optional().nullable(),
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @typedef {AccessToken} accessToken
|
|
19
|
-
* @property {string}
|
|
20
|
-
* @property {string}
|
|
21
|
-
* @property {string}
|
|
22
|
-
* @property {string}
|
|
23
|
-
* @property {string}
|
|
24
|
-
*/
|
|
25
|
-
export type AccessToken = z.infer<typeof accessToken>;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* The shape of the model mapping from the api schema into the application shape.
|
|
29
|
-
* Is equal to application shape if all property names match the api schema
|
|
30
|
-
*/
|
|
31
|
-
export const accessTokenResponse = z.lazy(() => {
|
|
32
|
-
return z
|
|
33
|
-
.object({
|
|
34
|
-
created_at: z.string(),
|
|
35
|
-
discarded_at: z.string().optional().nullable(),
|
|
36
|
-
expires_at: z.string().optional(),
|
|
37
|
-
id: z.string().optional(),
|
|
38
|
-
name: z.string().optional().nullable(),
|
|
39
|
-
})
|
|
40
|
-
.transform((data) => ({
|
|
41
|
-
createdAt: data['created_at'],
|
|
42
|
-
discardedAt: data['discarded_at'],
|
|
43
|
-
expiresAt: data['expires_at'],
|
|
44
|
-
id: data['id'],
|
|
45
|
-
name: data['name'],
|
|
46
|
-
}));
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* The shape of the model mapping from the application shape into the api schema.
|
|
51
|
-
* Is equal to application shape if all property names match the api schema
|
|
52
|
-
*/
|
|
53
|
-
export const accessTokenRequest = z.lazy(() => {
|
|
54
|
-
return z
|
|
55
|
-
.object({
|
|
56
|
-
createdAt: z.string(),
|
|
57
|
-
discardedAt: z.string().optional().nullable(),
|
|
58
|
-
expiresAt: z.string().optional(),
|
|
59
|
-
id: z.string().optional(),
|
|
60
|
-
name: z.string().optional().nullable(),
|
|
61
|
-
})
|
|
62
|
-
.transform((data) => ({
|
|
63
|
-
created_at: data['createdAt'],
|
|
64
|
-
discarded_at: data['discardedAt'],
|
|
65
|
-
expires_at: data['expiresAt'],
|
|
66
|
-
id: data['id'],
|
|
67
|
-
name: data['name'],
|
|
68
|
-
}));
|
|
69
|
-
});
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The shape of the model inside the application code - what the users use
|
|
5
|
-
*/
|
|
6
|
-
export const createProjectTokenRequest = z.lazy(() => {
|
|
7
|
-
return z.object({
|
|
8
|
-
expiry: z.number().gte(1).optional().nullable(),
|
|
9
|
-
name: z.string().max(255),
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @typedef {CreateProjectTokenRequest} createProjectTokenRequest
|
|
16
|
-
* @property {number} - The duration for which the token is valid (in seconds)
|
|
17
|
-
* @property {string} - The name of the token.
|
|
18
|
-
*/
|
|
19
|
-
export type CreateProjectTokenRequest = z.infer<typeof createProjectTokenRequest>;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* The shape of the model mapping from the api schema into the application shape.
|
|
23
|
-
* Is equal to application shape if all property names match the api schema
|
|
24
|
-
*/
|
|
25
|
-
export const createProjectTokenRequestResponse = z.lazy(() => {
|
|
26
|
-
return z
|
|
27
|
-
.object({
|
|
28
|
-
expiry: z.number().gte(1).optional().nullable(),
|
|
29
|
-
name: z.string().max(255),
|
|
30
|
-
})
|
|
31
|
-
.transform((data) => ({
|
|
32
|
-
expiry: data['expiry'],
|
|
33
|
-
name: data['name'],
|
|
34
|
-
}));
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* The shape of the model mapping from the application shape into the api schema.
|
|
39
|
-
* Is equal to application shape if all property names match the api schema
|
|
40
|
-
*/
|
|
41
|
-
export const createProjectTokenRequestRequest = z.lazy(() => {
|
|
42
|
-
return z
|
|
43
|
-
.object({
|
|
44
|
-
expiry: z.number().gte(1).optional().nullable(),
|
|
45
|
-
name: z.string().max(255),
|
|
46
|
-
})
|
|
47
|
-
.transform((data) => ({
|
|
48
|
-
expiry: data['expiry'],
|
|
49
|
-
name: data['name'],
|
|
50
|
-
}));
|
|
51
|
-
});
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The shape of the model inside the application code - what the users use
|
|
5
|
-
*/
|
|
6
|
-
export const createTokenResponse = z.lazy(() => {
|
|
7
|
-
return z.object({
|
|
8
|
-
createdAt: z.string(),
|
|
9
|
-
expiresAt: z.string().optional().nullable(),
|
|
10
|
-
token: z.string(),
|
|
11
|
-
tokenId: z.string(),
|
|
12
|
-
});
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @typedef {CreateTokenResponse} createTokenResponse
|
|
18
|
-
* @property {string}
|
|
19
|
-
* @property {string}
|
|
20
|
-
* @property {string}
|
|
21
|
-
* @property {string}
|
|
22
|
-
*/
|
|
23
|
-
export type CreateTokenResponse = z.infer<typeof createTokenResponse>;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* The shape of the model mapping from the api schema into the application shape.
|
|
27
|
-
* Is equal to application shape if all property names match the api schema
|
|
28
|
-
*/
|
|
29
|
-
export const createTokenResponseResponse = z.lazy(() => {
|
|
30
|
-
return z
|
|
31
|
-
.object({
|
|
32
|
-
created_at: z.string(),
|
|
33
|
-
expires_at: z.string().optional().nullable(),
|
|
34
|
-
token: z.string(),
|
|
35
|
-
token_id: z.string(),
|
|
36
|
-
})
|
|
37
|
-
.transform((data) => ({
|
|
38
|
-
createdAt: data['created_at'],
|
|
39
|
-
expiresAt: data['expires_at'],
|
|
40
|
-
token: data['token'],
|
|
41
|
-
tokenId: data['token_id'],
|
|
42
|
-
}));
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* The shape of the model mapping from the application shape into the api schema.
|
|
47
|
-
* Is equal to application shape if all property names match the api schema
|
|
48
|
-
*/
|
|
49
|
-
export const createTokenResponseRequest = z.lazy(() => {
|
|
50
|
-
return z
|
|
51
|
-
.object({
|
|
52
|
-
createdAt: z.string(),
|
|
53
|
-
expiresAt: z.string().optional().nullable(),
|
|
54
|
-
token: z.string(),
|
|
55
|
-
tokenId: z.string(),
|
|
56
|
-
})
|
|
57
|
-
.transform((data) => ({
|
|
58
|
-
created_at: data['createdAt'],
|
|
59
|
-
expires_at: data['expiresAt'],
|
|
60
|
-
token: data['token'],
|
|
61
|
-
token_id: data['tokenId'],
|
|
62
|
-
}));
|
|
63
|
-
});
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The shape of the model inside the application code - what the users use
|
|
5
|
-
*/
|
|
6
|
-
export const discardTokenResponse = z.lazy(() => {
|
|
7
|
-
return z.object({
|
|
8
|
-
discardedAt: z.string(),
|
|
9
|
-
tokenId: z.string(),
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @typedef {DiscardTokenResponse} discardTokenResponse
|
|
16
|
-
* @property {string}
|
|
17
|
-
* @property {string}
|
|
18
|
-
*/
|
|
19
|
-
export type DiscardTokenResponse = z.infer<typeof discardTokenResponse>;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* The shape of the model mapping from the api schema into the application shape.
|
|
23
|
-
* Is equal to application shape if all property names match the api schema
|
|
24
|
-
*/
|
|
25
|
-
export const discardTokenResponseResponse = z.lazy(() => {
|
|
26
|
-
return z
|
|
27
|
-
.object({
|
|
28
|
-
discarded_at: z.string(),
|
|
29
|
-
token_id: z.string(),
|
|
30
|
-
})
|
|
31
|
-
.transform((data) => ({
|
|
32
|
-
discardedAt: data['discarded_at'],
|
|
33
|
-
tokenId: data['token_id'],
|
|
34
|
-
}));
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* The shape of the model mapping from the application shape into the api schema.
|
|
39
|
-
* Is equal to application shape if all property names match the api schema
|
|
40
|
-
*/
|
|
41
|
-
export const discardTokenResponseRequest = z.lazy(() => {
|
|
42
|
-
return z
|
|
43
|
-
.object({
|
|
44
|
-
discardedAt: z.string(),
|
|
45
|
-
tokenId: z.string(),
|
|
46
|
-
})
|
|
47
|
-
.transform((data) => ({
|
|
48
|
-
discarded_at: data['discardedAt'],
|
|
49
|
-
token_id: data['tokenId'],
|
|
50
|
-
}));
|
|
51
|
-
});
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type { AccessToken } from './access-token.js';
|
|
2
|
-
export type { AccessTokenCollection } from './access-token-collection.js';
|
|
3
|
-
export type { CreateProjectTokenRequest } from './create-project-token-request.js';
|
|
4
|
-
export type { CreateTokenResponse } from './create-token-response.js';
|
|
5
|
-
export type { DiscardTokenResponse } from './discard-token-response.js';
|