@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.
@@ -4,12 +4,23 @@ export declare const server: (rawClient: FetchClient) => {
4
4
  version: string;
5
5
  environment: string;
6
6
  publicContent: boolean;
7
+ startedAt: string;
8
+ uptimeSeconds: number;
9
+ disk: {
10
+ folderBytes: number;
11
+ freeBytes: number;
12
+ totalBytes: number;
13
+ } | null;
14
+ lastAccessed: string | null;
7
15
  communityConfig: {
8
16
  theme: {
9
17
  base: string;
10
- primaryHex: string;
11
18
  light: {
12
19
  primaryHex: string;
20
+ secondaryHex?: string | undefined;
21
+ fontFamily?: string | undefined;
22
+ buttonRadius?: string | undefined;
23
+ radius?: string | undefined;
13
24
  logoSmall?: string | undefined;
14
25
  defaultProfileAvatar?: string | undefined;
15
26
  defaultGroupAvatar?: string | undefined;
@@ -18,6 +29,10 @@ export declare const server: (rawClient: FetchClient) => {
18
29
  };
19
30
  dark: {
20
31
  primaryHex: string;
32
+ secondaryHex?: string | undefined;
33
+ fontFamily?: string | undefined;
34
+ buttonRadius?: string | undefined;
35
+ radius?: string | undefined;
21
36
  logoSmall?: string | undefined;
22
37
  defaultProfileAvatar?: string | undefined;
23
38
  defaultGroupAvatar?: string | undefined;
@@ -26,6 +41,7 @@ export declare const server: (rawClient: FetchClient) => {
26
41
  };
27
42
  icon?: string | undefined;
28
43
  mobileIcon?: string | undefined;
44
+ primaryHex?: string | undefined;
29
45
  logoFull?: string | undefined;
30
46
  logoSmall?: string | undefined;
31
47
  defaultProfileAvatar?: string | undefined;
@@ -50,6 +66,8 @@ export declare const server: (rawClient: FetchClient) => {
50
66
  settings: {
51
67
  openRegistrations: boolean;
52
68
  defaultLanguage?: string | undefined;
69
+ defaultTimeZone?: string | undefined;
70
+ defaultFeedFormat?: "threaded" | "linear" | undefined;
53
71
  };
54
72
  roles: {
55
73
  onRegistration: {
@@ -92,12 +110,19 @@ export declare const server: (rawClient: FetchClient) => {
92
110
  };
93
111
  };
94
112
  };
113
+ build?: string | undefined;
95
114
  maxProfiles?: number | undefined;
96
115
  sso?: {
116
+ generic: {
117
+ id: string;
118
+ name: string;
119
+ loginLink: string;
120
+ }[];
97
121
  oidc: {
98
122
  id: string;
99
123
  name: string;
100
124
  }[];
125
+ onlySSO?: boolean | undefined;
101
126
  } | undefined;
102
127
  }, {
103
128
  success: boolean;
@@ -12,6 +12,7 @@ import type { reports } from './reports';
12
12
  import type { server } from './server';
13
13
  import type { sso } from './sso';
14
14
  import type { admin } from './admin';
15
+ import type { analytics } from './analytics';
15
16
  import type { previewLink } from './previewLink';
16
17
  import type { search } from './search';
17
18
  import type { payments } from './payments';
@@ -19,6 +20,7 @@ import type { plugins } from './plugins';
19
20
  import type { streaming } from './streaming';
20
21
  import type { WebhookHandler } from '../webhooks';
21
22
  export type AdminEndpoints = ReturnType<typeof admin>;
23
+ export type AnalyticsEndpoints = ReturnType<typeof analytics>;
22
24
  export type AccountsEndpoints = ReturnType<typeof accounts>;
23
25
  export type AuthEndpoints = ReturnType<typeof auth>;
24
26
  export type ConversationsEndpoints = ReturnType<typeof conversations>;
@@ -39,6 +41,7 @@ export type PluginEndpoints = ReturnType<typeof plugins>;
39
41
  export type StreamingEndpoints = ReturnType<typeof streaming>;
40
42
  export type Endpoints = {
41
43
  admin: AdminEndpoints;
44
+ analytics: AnalyticsEndpoints;
42
45
  accounts: AccountsEndpoints;
43
46
  auth: AuthEndpoints;
44
47
  conversations: ConversationsEndpoints;
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { noPayloadEventSource, fetchClient } from '@openpeepshq/fetch-client';
2
2
  import { admin } from './endpoints/admin.js';
3
+ import { analytics } from './endpoints/analytics.js';
3
4
  import { i18n } from './endpoints/i18n.js';
4
5
  import { accounts } from './endpoints/accounts.js';
5
6
  import { jams } from './endpoints/jams.js';
@@ -39,6 +40,7 @@ export const openpeepsClient = (options) => {
39
40
  const serverEndpoints = server(rawClient);
40
41
  return {
41
42
  admin: admin(rawClient),
43
+ analytics: analytics(rawClient),
42
44
  accounts: accounts(rawClient),
43
45
  auth: auth(rawClient),
44
46
  conversations: conversations(rawClient),
@@ -49,7 +51,7 @@ export const openpeepsClient = (options) => {
49
51
  plugins: plugins(rawClient),
50
52
  posts: posts(rawClient),
51
53
  previewLink: previewLink(rawClient),
52
- profiles: profiles(rawClient),
54
+ profiles: profiles(rawClient, allPeepNoPayloadEventSource),
53
55
  server: serverEndpoints,
54
56
  sso: sso(rawClient),
55
57
  location: location(rawClient),
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@openpeepshq/client",
3
- "version": "0.1.36",
3
+ "version": "0.1.38",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "validator": "^13.11.0",
8
8
  "zod": "^4.4.3",
9
- "@openpeepshq/common": "^0.1.43",
10
- "@openpeepshq/fetch-client": "^0.1.6"
9
+ "@openpeepshq/common": "^0.1.46",
10
+ "@openpeepshq/fetch-client": "^0.1.7"
11
11
  },
12
12
  "main": "dist/index.js",
13
13
  "types": "dist/index.d.ts",