@openpeepshq/client 0.1.36 → 0.1.38

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.
@@ -85,9 +85,11 @@ export const admin = (rawClient) => ({
85
85
  delete: allpeepNoPayloadEndpoint(rawClient, '/admin/profiles/:id', 'delete'),
86
86
  listRoles: allpeepNoPayloadEndpoint(rawClient, '/admin/profiles/:id/roles'),
87
87
  updateRoles: allpeepPayloadEndpoint(rawClient, '/admin/profiles/:id/roles', 'put'),
88
+ activitySummary: allpeepNoPayloadEndpoint(rawClient, '/admin/profiles/:id/activity-summary'),
88
89
  },
89
90
  roles: {
90
91
  list: allpeepNoPayloadEndpoint(rawClient, '/admin/roles'),
92
+ create: allpeepPayloadEndpoint(rawClient, '/admin/roles', 'post'),
91
93
  update: allpeepPayloadEndpoint(rawClient, '/admin/roles/:roleId', 'put'),
92
94
  },
93
95
  stats: {
@@ -98,6 +100,7 @@ export const admin = (rawClient) => ({
98
100
  growth: allpeepNoPayloadEndpoint(rawClient, '/admin/analytics/growth'),
99
101
  engagement: allpeepNoPayloadEndpoint(rawClient, '/admin/analytics/engagement'),
100
102
  retention: allpeepNoPayloadEndpoint(rawClient, '/admin/analytics/retention'),
103
+ clicks: allpeepNoPayloadEndpoint(rawClient, '/admin/analytics/clicks'),
101
104
  reportSettings: {
102
105
  read: allpeepNoPayloadEndpoint(rawClient, '/admin/analytics/report-settings'),
103
106
  update: allpeepPayloadEndpoint(rawClient, '/admin/analytics/report-settings', 'put'),
@@ -120,4 +123,11 @@ export const admin = (rawClient) => ({
120
123
  create: allpeepPayloadEndpoint(rawClient, '/admin/service-access-tokens', 'post'),
121
124
  revoke: allpeepNoPayloadEndpoint(rawClient, '/admin/service-access-tokens/:accessTokenId', 'delete'),
122
125
  },
126
+ plugins: {
127
+ list: allpeepNoPayloadEndpoint(rawClient, '/admin/plugins'),
128
+ install: allpeepPayloadEndpoint(rawClient, '/admin/plugins/install', 'post'),
129
+ uninstall: allpeepNoPayloadEndpoint(rawClient, '/admin/plugins/:namespace/:name', 'delete'),
130
+ update: allpeepPayloadEndpoint(rawClient, '/admin/plugins/:namespace/:name', 'patch'),
131
+ reload: allpeepNoPayloadEndpoint(rawClient, '/admin/plugins/reload', 'post'),
132
+ },
123
133
  });
@@ -0,0 +1,15 @@
1
+ import type { FetchClient } from '@openpeepshq/fetch-client';
2
+ export declare const analytics: (rawClient: FetchClient) => {
3
+ recordClicks: import("@openpeepshq/fetch-client").TypedPayloadEndpoint<{
4
+ success: true;
5
+ }, {
6
+ events: {
7
+ kind: "link" | "page";
8
+ target: string;
9
+ }[];
10
+ }, {
11
+ success: boolean;
12
+ message?: string | undefined;
13
+ key?: string | undefined;
14
+ }, undefined, undefined>;
15
+ };
@@ -0,0 +1,4 @@
1
+ import { allpeepPayloadEndpoint } from './helpers.js';
2
+ export const analytics = (rawClient) => ({
3
+ recordClicks: allpeepPayloadEndpoint(rawClient, '/analytics/clicks'),
4
+ });
@@ -24,6 +24,7 @@ export declare const auth: (rawClient: FetchClient) => {
24
24
  displayName?: string | undefined;
25
25
  confirmPassword?: string | undefined;
26
26
  inviteCode?: string | undefined;
27
+ bot?: boolean | undefined;
27
28
  }, {
28
29
  success: boolean;
29
30
  message?: string | undefined;
@@ -56,7 +57,7 @@ export declare const auth: (rawClient: FetchClient) => {
56
57
  displayName: string;
57
58
  email: string;
58
59
  resource: {
59
- type: "self" | "jams" | "profiles" | "jam" | "notifications" | "posts" | "groups" | "reports" | "webhooks" | "db" | "analytics" | "render" | "*";
60
+ type: "self" | "jams" | "profiles" | "notifications" | "posts" | "groups" | "reports" | "webhooks" | "db" | "analytics" | "render" | "*";
60
61
  id?: string | undefined;
61
62
  };
62
63
  }, {