@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.
- package/dist/endpoints/accounts.d.ts +69 -0
- package/dist/endpoints/accounts.js +1 -0
- package/dist/endpoints/admin.d.ts +115 -17271
- package/dist/endpoints/admin.js +10 -0
- package/dist/endpoints/analytics.d.ts +15 -0
- package/dist/endpoints/analytics.js +4 -0
- package/dist/endpoints/auth.d.ts +2 -1
- package/dist/endpoints/conversations.d.ts +35481 -5352
- package/dist/endpoints/conversations.js +2 -0
- package/dist/endpoints/groups.d.ts +15 -3
- package/dist/endpoints/jams.d.ts +7500 -716
- package/dist/endpoints/jams.js +12 -0
- package/dist/endpoints/plugins.d.ts +1 -1
- package/dist/endpoints/posts.d.ts +72 -76801
- package/dist/endpoints/posts.js +2 -0
- package/dist/endpoints/profiles.d.ts +27284 -3728
- package/dist/endpoints/profiles.js +12 -1
- package/dist/endpoints/search.d.ts +24551 -4361
- package/dist/endpoints/server.d.ts +26 -1
- package/dist/endpoints/types.d.ts +3 -0
- package/dist/index.js +3 -1
- package/package.json +3 -3
|
@@ -22,6 +22,75 @@ export declare const accounts: (rawClient: FetchClient) => {
|
|
|
22
22
|
message?: string | undefined;
|
|
23
23
|
key?: string | undefined;
|
|
24
24
|
}, undefined, undefined>;
|
|
25
|
+
export: import("@openpeepshq/fetch-client").TypedNoPayloadEndpoint<{
|
|
26
|
+
account: {
|
|
27
|
+
id: string;
|
|
28
|
+
email: string;
|
|
29
|
+
emailValidated: boolean;
|
|
30
|
+
};
|
|
31
|
+
profiles: {
|
|
32
|
+
id: string;
|
|
33
|
+
type: "guest" | "local" | "federated";
|
|
34
|
+
createdAt: string;
|
|
35
|
+
updatedAt: string;
|
|
36
|
+
handle: string;
|
|
37
|
+
memberships: {
|
|
38
|
+
group: {
|
|
39
|
+
handle: string;
|
|
40
|
+
capabilities: Record<string, {
|
|
41
|
+
add?: string[] | undefined;
|
|
42
|
+
remove?: string[] | undefined;
|
|
43
|
+
} | undefined>;
|
|
44
|
+
id: string;
|
|
45
|
+
createdAt: string;
|
|
46
|
+
updatedAt: string;
|
|
47
|
+
avatar?: string | null | undefined;
|
|
48
|
+
header?: string | null | undefined;
|
|
49
|
+
displayName?: string | undefined;
|
|
50
|
+
description?: string | undefined;
|
|
51
|
+
rules?: string | undefined;
|
|
52
|
+
pinnedPostId?: string | undefined;
|
|
53
|
+
discoverable?: boolean | undefined;
|
|
54
|
+
deletedAt?: string | null | undefined;
|
|
55
|
+
};
|
|
56
|
+
roles?: ("none" | "local" | "member" | "moderator" | "admin" | "owner" | "invited")[] | null | undefined;
|
|
57
|
+
}[] | undefined;
|
|
58
|
+
deletedAt?: string | null | undefined;
|
|
59
|
+
avatar?: string | null | undefined;
|
|
60
|
+
header?: string | null | undefined;
|
|
61
|
+
displayName?: string | undefined;
|
|
62
|
+
bio?: string | undefined;
|
|
63
|
+
location?: {
|
|
64
|
+
text: string;
|
|
65
|
+
coordinates?: {
|
|
66
|
+
lat: number;
|
|
67
|
+
lng: number;
|
|
68
|
+
alt?: number | undefined;
|
|
69
|
+
} | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
locked?: boolean | undefined;
|
|
72
|
+
bot?: boolean | undefined;
|
|
73
|
+
discoverable?: boolean | undefined;
|
|
74
|
+
roles?: {
|
|
75
|
+
key: string;
|
|
76
|
+
displayName: string;
|
|
77
|
+
}[] | undefined;
|
|
78
|
+
fields?: {
|
|
79
|
+
name: string;
|
|
80
|
+
value: string;
|
|
81
|
+
}[] | undefined;
|
|
82
|
+
profileStats?: {
|
|
83
|
+
followersCount: number;
|
|
84
|
+
followingCount: number;
|
|
85
|
+
} | undefined;
|
|
86
|
+
pinnedPostId?: string | undefined;
|
|
87
|
+
blockedByMe?: boolean | undefined;
|
|
88
|
+
}[];
|
|
89
|
+
}, {
|
|
90
|
+
success: boolean;
|
|
91
|
+
message?: string | undefined;
|
|
92
|
+
key?: string | undefined;
|
|
93
|
+
}, undefined, undefined>;
|
|
25
94
|
createPushSubscription: import("@openpeepshq/fetch-client").TypedPayloadEndpoint<{
|
|
26
95
|
type: "web";
|
|
27
96
|
endpoint: string;
|
|
@@ -3,6 +3,7 @@ export const accounts = (rawClient) => ({
|
|
|
3
3
|
current: {
|
|
4
4
|
update: allpeepPayloadEndpoint(rawClient, '/accounts/current', 'patch'),
|
|
5
5
|
read: allpeepNoPayloadEndpoint(rawClient, '/accounts/current'),
|
|
6
|
+
export: allpeepNoPayloadEndpoint(rawClient, '/accounts/current/export'),
|
|
6
7
|
createPushSubscription: allpeepPayloadEndpoint(rawClient, '/accounts/current/push-subscriptions'),
|
|
7
8
|
listPushSubscriptions: allpeepNoPayloadEndpoint(rawClient, '/accounts/current/push-subscriptions'),
|
|
8
9
|
testPushSubscription: allpeepPayloadEndpoint(rawClient, '/accounts/current/push-subscriptions/test'),
|