@openpeepshq/client 0.9.0 → 0.11.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.
@@ -15,6 +15,11 @@ export const profiles = (rawClient, eventSource) => ({
15
15
  accessTokens: allpeepNoPayloadEndpoint(rawClient, '/profiles/current/access-tokens'),
16
16
  createAccessToken: allpeepPayloadEndpoint(rawClient, '/profiles/current/access-tokens', 'post'),
17
17
  revokeAccessToken: allpeepNoPayloadEndpoint(rawClient, '/profiles/current/access-tokens/:accessTokenId', 'delete'),
18
+ // `calendarFeed` is a bare resource: POST mints (and revokes the old)
19
+ // token, DELETE revokes all — neither takes or returns a body beyond the
20
+ // typed response.
21
+ calendarFeed: allpeepNoPayloadEndpoint(rawClient, '/profiles/current/calendar-feed', 'post'),
22
+ revokeCalendarFeed: allpeepNoPayloadEndpoint(rawClient, '/profiles/current/calendar-feed', 'delete'),
18
23
  sessionEvents: {
19
24
  listen: eventSource('/profiles/current/session/events'),
20
25
  },