graze-client 0.8.0 → 0.9.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/build/dts/GrazeClient.d.ts +368 -242
- package/build/dts/GrazeClient.d.ts.map +1 -1
- package/build/dts/builder.d.ts +8 -8
- package/build/dts/builder.d.ts.map +1 -1
- package/build/dts/common.d.ts +2 -3
- package/build/dts/common.d.ts.map +1 -1
- package/build/dts/index.d.ts +13 -13
- package/build/dts/index.d.ts.map +1 -1
- package/build/dts/schema/Post.d.ts +52 -52
- package/build/dts/schema/StickyPosts.d.ts +55 -56
- package/build/dts/schema/StickyPosts.d.ts.map +1 -1
- package/build/dts/schema/UpdateAlgorithmPayload.d.ts +187 -163
- package/build/dts/schema/UpdateAlgorithmPayload.d.ts.map +1 -1
- package/build/dts/schema/shared.d.ts +127 -127
- package/build/dts/schema/shared.d.ts.map +1 -1
- package/build/dts/stickyposts.d.ts +80 -78
- package/build/dts/stickyposts.d.ts.map +1 -1
- package/build/esm/GrazeClient.js +45 -29
- package/build/esm/GrazeClient.js.map +1 -1
- package/build/esm/builder.js +2 -2
- package/build/esm/builder.js.map +1 -1
- package/build/esm/common.js +4 -3
- package/build/esm/common.js.map +1 -1
- package/build/esm/index.js +8 -5
- package/build/esm/index.js.map +1 -1
- package/build/esm/schema/Post.js +6 -6
- package/build/esm/schema/Post.js.map +1 -1
- package/build/esm/schema/StickyPosts.js +2 -3
- package/build/esm/schema/StickyPosts.js.map +1 -1
- package/build/esm/schema/UpdateAlgorithmPayload.js +116 -39
- package/build/esm/schema/UpdateAlgorithmPayload.js.map +1 -1
- package/build/esm/schema/shared.js +6 -6
- package/build/esm/schema/shared.js.map +1 -1
- package/build/esm/stickyposts.js +28 -13
- package/build/esm/stickyposts.js.map +1 -1
- package/package.json +8 -10
- package/src/GrazeClient.ts +55 -47
- package/src/builder.ts +14 -14
- package/src/common.ts +4 -9
- package/src/index.ts +24 -19
- package/src/schema/Post.ts +6 -6
- package/src/schema/StickyPosts.ts +3 -7
- package/src/schema/UpdateAlgorithmPayload.ts +80 -67
- package/src/schema/shared.ts +6 -6
- package/src/stickyposts.ts +44 -23
package/build/dts/builder.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { AttributeComparison, AttributeName, AttributeValue, ContentModerationBlock, EmbedType, Filter, ListMemberFilter, PostTypeFilter, RegexMatches, RegexNegationMatches, SocialGraph, TextMatchesAny, TextMatchesNone } from "./schema/index.js";
|
|
1
|
+
import type { AttributeComparison, AttributeName, AttributeValue, ContentModerationBlock, EmbedType, Filter, ListMemberFilter, PostTypeFilter, RegexMatches, RegexNegationMatches, SocialGraph, TextMatchesAny, TextMatchesNone } from "./schema/index.js";
|
|
2
2
|
export declare const Algo: {
|
|
3
|
-
filter: (...filters: Filter
|
|
3
|
+
filter: (...filters: Array<Filter>) => {
|
|
4
4
|
filter: Filter;
|
|
5
5
|
};
|
|
6
6
|
};
|
|
7
7
|
export declare const F: {
|
|
8
|
-
and: (...filters:
|
|
9
|
-
or: (...filters:
|
|
8
|
+
and: (...filters: Array<Filter | null>) => Filter;
|
|
9
|
+
or: (...filters: Array<Filter | null>) => Filter;
|
|
10
10
|
regexMatches: (attribute: RegexMatches["regex_matches"][0], regex: string) => RegexMatches;
|
|
11
11
|
regexNegationMatches: (attribute: RegexNegationMatches["regex_negation_matches"][0], regex: string) => RegexNegationMatches;
|
|
12
|
-
textMatchesAny: ({ attribute,
|
|
12
|
+
textMatchesAny: ({ attribute, caseInsensitive, patterns, useRegex, }: {
|
|
13
13
|
attribute: AttributeName;
|
|
14
|
-
patterns: string
|
|
14
|
+
patterns: Array<string>;
|
|
15
15
|
caseInsensitive?: boolean;
|
|
16
16
|
useRegex?: boolean;
|
|
17
17
|
}) => TextMatchesAny;
|
|
18
|
-
textMatchesNone: ({ attribute,
|
|
18
|
+
textMatchesNone: ({ attribute, caseInsensitive, patterns, useRegex, }: {
|
|
19
19
|
attribute: AttributeName;
|
|
20
|
-
patterns: string
|
|
20
|
+
patterns: Array<string>;
|
|
21
21
|
caseInsensitive?: boolean;
|
|
22
22
|
useRegex?: boolean;
|
|
23
23
|
}) => TextMatchesNone;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../src/builder.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../src/builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,sBAAsB,EACtB,SAAS,EACT,MAAM,EACN,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,oBAAoB,EACpB,WAAW,EACX,cAAc,EACd,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAwI3B,eAAO,MAAM,IAAI;yBACM,KAAK,CAAC,MAAM,CAAC,KAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE;CAGxD,CAAC;AAEF,eAAO,MAAM,CAAC;sBAxIW,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,KAAG,MAAM;qBAe9B,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,KAAG,MAAM;8BAexC,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SACpC,MAAM,KACZ,YAAY;sCAKF,oBAAoB,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,SACrD,MAAM,KACZ,oBAAoB;0EASpB;QACD,SAAS,EAAE,aAAa,CAAC;QACzB,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACxB,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,KAAG,cAAc;2EASf;QACD,SAAS,EAAE,aAAa,CAAC;QACzB,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACxB,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,KAAG,eAAe;6BA8CX,aAAa,MACf,mBAAmB,SAChB,cAAc,KACpB,MAAM;wBA7CkB,MAAM,KAAG,gBAAgB;2BAGtB,MAAM,KAAG,gBAAgB;8BAIzC,MAAM,MACd,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,YACxB,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,KACvC,WAAW;qCAG0B,MAAM;;;gCAEX,MAAM;;;wCAEE,MAAM;;;sCAER,MAAM;;;;;;;2BAUjB,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KAAG,MAAM;8BAGpC,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KAAG,MAAM;;;;;;8BAuBxC,MAAM,KAAS,sBAAsB;0BAjCxC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,KAAG,MAAM;gCAG7B,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,KAAG,MAAM;CAmErE,CAAC"}
|
package/build/dts/common.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { HttpApiSchema } from "@effect/platform";
|
|
2
1
|
import { Schema } from "effect";
|
|
3
|
-
export declare const UserIdParam:
|
|
4
|
-
export declare const FeedIdParam:
|
|
2
|
+
export declare const UserIdParam: Schema.NumberFromString;
|
|
3
|
+
export declare const FeedIdParam: Schema.NumberFromString;
|
|
5
4
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,WAAW,yBAA0B,CAAC;AACnD,eAAO,MAAM,WAAW,yBAA0B,CAAC"}
|
package/build/dts/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Effect } from "effect";
|
|
2
|
-
import {
|
|
3
|
-
type Promisify<T> = T extends (...args: any
|
|
2
|
+
import { type GrazeClientService } from "./GrazeClient.js";
|
|
3
|
+
type Promisify<T> = T extends (...args: Array<any>) => Effect.Effect<infer A, infer _E, never> ? (...args: Parameters<T>) => Promise<A> : never;
|
|
4
4
|
export declare class GrazeService {
|
|
5
|
-
getFeed: Promisify<
|
|
6
|
-
getFeeds: Promisify<
|
|
7
|
-
hidePost: Promisify<
|
|
8
|
-
unhidePost: Promisify<
|
|
9
|
-
updateAlgorithm: Promisify<
|
|
10
|
-
publishAlgorithm: Promisify<
|
|
5
|
+
getFeed: Promisify<GrazeClientService["getFeed"]>;
|
|
6
|
+
getFeeds: Promisify<GrazeClientService["getFeeds"]>;
|
|
7
|
+
hidePost: Promisify<GrazeClientService["hidePost"]>;
|
|
8
|
+
unhidePost: Promisify<GrazeClientService["unhidePost"]>;
|
|
9
|
+
updateAlgorithm: Promisify<GrazeClientService["updateAlgorithm"]>;
|
|
10
|
+
publishAlgorithm: Promisify<GrazeClientService["publishAlgorithm"]>;
|
|
11
11
|
stickyposts: {
|
|
12
|
-
get: Promisify<
|
|
13
|
-
create: Promisify<
|
|
14
|
-
delete: Promisify<
|
|
15
|
-
update: Promisify<
|
|
12
|
+
get: Promisify<GrazeClientService["stickyposts"]["get"]>;
|
|
13
|
+
create: Promisify<GrazeClientService["stickyposts"]["create"]>;
|
|
14
|
+
delete: Promisify<GrazeClientService["stickyposts"]["delete"]>;
|
|
15
|
+
update: Promisify<GrazeClientService["stickyposts"]["update"]>;
|
|
16
16
|
};
|
|
17
17
|
constructor({ apiUrl, cookie, userId, }: {
|
|
18
18
|
apiUrl: string;
|
|
@@ -20,6 +20,6 @@ export declare class GrazeService {
|
|
|
20
20
|
userId: number;
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
+
export { Algo, F } from "./builder.js";
|
|
23
24
|
export * from "./schema/index.js";
|
|
24
|
-
export { F, Algo } from "./builder.js";
|
|
25
25
|
//# sourceMappingURL=index.d.ts.map
|
package/build/dts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,EAAe,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAExE,KAAK,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,CAC5B,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAChB,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,CAAC,GACxC,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,GACtC,KAAK,CAAC;AAEV,qBAAa,YAAY;IACvB,OAAO,EAAE,SAAS,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC,CAAC;IAClD,QAAQ,EAAE,SAAS,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC;IACpD,QAAQ,EAAE,SAAS,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC;IACpD,UAAU,EAAE,SAAS,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC,CAAC;IACxD,eAAe,EAAE,SAAS,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAClE,gBAAgB,EAAE,SAAS,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACpE,WAAW,EAAE;QACX,GAAG,EAAE,SAAS,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QACzD,MAAM,EAAE,SAAS,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC/D,MAAM,EAAE,SAAS,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC/D,MAAM,EAAE,SAAS,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;KAChE,CAAC;gBAEU,EACV,MAAM,EACN,MAAM,EACN,MAAM,GACP,EAAE;QACD,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;KAChB;CA+BF;AA4CD,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,mBAAmB,CAAC"}
|
|
@@ -3,66 +3,66 @@ import { Schema as S } from "effect";
|
|
|
3
3
|
* Schema for Bluesky objects
|
|
4
4
|
*/
|
|
5
5
|
export declare const Author: S.Struct<{
|
|
6
|
-
did:
|
|
7
|
-
$type:
|
|
8
|
-
avatar:
|
|
9
|
-
handle:
|
|
10
|
-
labels: S
|
|
11
|
-
viewer:
|
|
12
|
-
createdAt:
|
|
13
|
-
associated: S.Union<[
|
|
14
|
-
displayName:
|
|
6
|
+
readonly did: S.String;
|
|
7
|
+
readonly $type: S.String;
|
|
8
|
+
readonly avatar: S.String;
|
|
9
|
+
readonly handle: S.String;
|
|
10
|
+
readonly labels: S.$Array<S.Any>;
|
|
11
|
+
readonly viewer: S.Any;
|
|
12
|
+
readonly createdAt: S.String;
|
|
13
|
+
readonly associated: S.Union<readonly [S.Null, S.Any]>;
|
|
14
|
+
readonly displayName: S.String;
|
|
15
15
|
}>;
|
|
16
16
|
export type Author = typeof Author.Type;
|
|
17
17
|
export declare const Record: S.Struct<{
|
|
18
|
-
tags: S.Union<[
|
|
19
|
-
text:
|
|
20
|
-
$type:
|
|
21
|
-
embed:
|
|
22
|
-
langs: S.NullOr<S
|
|
23
|
-
reply: S.Union<[
|
|
24
|
-
facets: S.NullOr<S
|
|
25
|
-
labels: S.Union<[
|
|
26
|
-
entities: S.Union<[
|
|
27
|
-
createdAt:
|
|
18
|
+
readonly tags: S.Union<readonly [S.Null, S.Any]>;
|
|
19
|
+
readonly text: S.String;
|
|
20
|
+
readonly $type: S.String;
|
|
21
|
+
readonly embed: S.Any;
|
|
22
|
+
readonly langs: S.NullOr<S.$Array<S.String>>;
|
|
23
|
+
readonly reply: S.Union<readonly [S.Null, S.Any]>;
|
|
24
|
+
readonly facets: S.NullOr<S.$Array<S.Any>>;
|
|
25
|
+
readonly labels: S.Union<readonly [S.Null, S.Any]>;
|
|
26
|
+
readonly entities: S.Union<readonly [S.Null, S.Any]>;
|
|
27
|
+
readonly createdAt: S.String;
|
|
28
28
|
}>;
|
|
29
29
|
export type Record = typeof Record.Type;
|
|
30
30
|
export declare const Post: S.Struct<{
|
|
31
|
-
cid:
|
|
32
|
-
uri:
|
|
33
|
-
$type:
|
|
34
|
-
embed:
|
|
35
|
-
author: S.Struct<{
|
|
36
|
-
did:
|
|
37
|
-
$type:
|
|
38
|
-
avatar:
|
|
39
|
-
handle:
|
|
40
|
-
labels: S
|
|
41
|
-
viewer:
|
|
42
|
-
createdAt:
|
|
43
|
-
associated: S.Union<[
|
|
44
|
-
displayName:
|
|
31
|
+
readonly cid: S.String;
|
|
32
|
+
readonly uri: S.String;
|
|
33
|
+
readonly $type: S.String;
|
|
34
|
+
readonly embed: S.Any;
|
|
35
|
+
readonly author: S.Struct<{
|
|
36
|
+
readonly did: S.String;
|
|
37
|
+
readonly $type: S.String;
|
|
38
|
+
readonly avatar: S.String;
|
|
39
|
+
readonly handle: S.String;
|
|
40
|
+
readonly labels: S.$Array<S.Any>;
|
|
41
|
+
readonly viewer: S.Any;
|
|
42
|
+
readonly createdAt: S.String;
|
|
43
|
+
readonly associated: S.Union<readonly [S.Null, S.Any]>;
|
|
44
|
+
readonly displayName: S.String;
|
|
45
45
|
}>;
|
|
46
|
-
labels:
|
|
47
|
-
record: S.Struct<{
|
|
48
|
-
tags: S.Union<[
|
|
49
|
-
text:
|
|
50
|
-
$type:
|
|
51
|
-
embed:
|
|
52
|
-
langs: S.NullOr<S
|
|
53
|
-
reply: S.Union<[
|
|
54
|
-
facets: S.NullOr<S
|
|
55
|
-
labels: S.Union<[
|
|
56
|
-
entities: S.Union<[
|
|
57
|
-
createdAt:
|
|
46
|
+
readonly labels: S.Any;
|
|
47
|
+
readonly record: S.Struct<{
|
|
48
|
+
readonly tags: S.Union<readonly [S.Null, S.Any]>;
|
|
49
|
+
readonly text: S.String;
|
|
50
|
+
readonly $type: S.String;
|
|
51
|
+
readonly embed: S.Any;
|
|
52
|
+
readonly langs: S.NullOr<S.$Array<S.String>>;
|
|
53
|
+
readonly reply: S.Union<readonly [S.Null, S.Any]>;
|
|
54
|
+
readonly facets: S.NullOr<S.$Array<S.Any>>;
|
|
55
|
+
readonly labels: S.Union<readonly [S.Null, S.Any]>;
|
|
56
|
+
readonly entities: S.Union<readonly [S.Null, S.Any]>;
|
|
57
|
+
readonly createdAt: S.String;
|
|
58
58
|
}>;
|
|
59
|
-
viewer:
|
|
60
|
-
indexedAt:
|
|
61
|
-
likeCount:
|
|
62
|
-
quoteCount:
|
|
63
|
-
replyCount:
|
|
64
|
-
threadgate: S.Union<[
|
|
65
|
-
repostCount:
|
|
59
|
+
readonly viewer: S.Any;
|
|
60
|
+
readonly indexedAt: S.String;
|
|
61
|
+
readonly likeCount: S.Number;
|
|
62
|
+
readonly quoteCount: S.Number;
|
|
63
|
+
readonly replyCount: S.Number;
|
|
64
|
+
readonly threadgate: S.Union<readonly [S.Null, S.Unknown]>;
|
|
65
|
+
readonly repostCount: S.Number;
|
|
66
66
|
}>;
|
|
67
67
|
export type Post = typeof Post.Type;
|
|
68
68
|
//# sourceMappingURL=Post.d.ts.map
|
|
@@ -1,78 +1,77 @@
|
|
|
1
1
|
import { Schema as S } from "effect";
|
|
2
|
-
|
|
3
|
-
export declare const StickyPostIdParam: HttpApiSchema.Param<"stickyPostId", typeof S.NumberFromString>;
|
|
2
|
+
export declare const StickyPostIdParam: S.NumberFromString;
|
|
4
3
|
export type StickyPostIdParam = typeof StickyPostIdParam.Type;
|
|
5
4
|
export declare const StoppingCriteria: S.Struct<{
|
|
6
|
-
expiration_time: S.optional<
|
|
5
|
+
readonly expiration_time: S.optional<S.Number>;
|
|
7
6
|
}>;
|
|
8
7
|
export type StoppingCriteria = typeof StoppingCriteria.Type;
|
|
9
|
-
export declare const StickyType: S.
|
|
8
|
+
export declare const StickyType: S.Literals<readonly ["pinned", "rotating"]>;
|
|
10
9
|
export type StickyType = typeof StickyType.Type;
|
|
11
10
|
export declare const CreateStickyPostBody: S.Struct<{
|
|
12
|
-
is_active:
|
|
13
|
-
sticky_type: S.
|
|
14
|
-
algo_id:
|
|
15
|
-
post_url:
|
|
16
|
-
stopping_criteria: S.optional<S.Struct<{
|
|
17
|
-
expiration_time: S.optional<
|
|
11
|
+
readonly is_active: S.Boolean;
|
|
12
|
+
readonly sticky_type: S.Literals<readonly ["pinned", "rotating"]>;
|
|
13
|
+
readonly algo_id: S.Number;
|
|
14
|
+
readonly post_url: S.String;
|
|
15
|
+
readonly stopping_criteria: S.optional<S.Struct<{
|
|
16
|
+
readonly expiration_time: S.optional<S.Number>;
|
|
18
17
|
}>>;
|
|
19
18
|
}>;
|
|
20
19
|
export type CreateStickyPostBody = typeof CreateStickyPostBody.Type;
|
|
21
20
|
export declare const GetStickyPostsBody: S.Struct<{
|
|
22
|
-
sticky_posts: S
|
|
23
|
-
stopping_criteria: S.optional<S.Struct<{
|
|
24
|
-
expiration_time: S.optional<
|
|
21
|
+
readonly sticky_posts: S.$Array<S.Struct<{
|
|
22
|
+
readonly stopping_criteria: S.optional<S.Struct<{
|
|
23
|
+
readonly expiration_time: S.optional<S.Number>;
|
|
25
24
|
}>>;
|
|
26
|
-
hidden:
|
|
27
|
-
uri:
|
|
28
|
-
post: S.Struct<{
|
|
29
|
-
cid:
|
|
30
|
-
uri:
|
|
31
|
-
$type:
|
|
32
|
-
embed:
|
|
33
|
-
author: S.Struct<{
|
|
34
|
-
did:
|
|
35
|
-
$type:
|
|
36
|
-
avatar:
|
|
37
|
-
handle:
|
|
38
|
-
labels: S
|
|
39
|
-
viewer:
|
|
40
|
-
createdAt:
|
|
41
|
-
associated: S.Union<[
|
|
42
|
-
displayName:
|
|
25
|
+
readonly hidden: S.Boolean;
|
|
26
|
+
readonly uri: S.String;
|
|
27
|
+
readonly post: S.Struct<{
|
|
28
|
+
readonly cid: S.String;
|
|
29
|
+
readonly uri: S.String;
|
|
30
|
+
readonly $type: S.String;
|
|
31
|
+
readonly embed: S.Any;
|
|
32
|
+
readonly author: S.Struct<{
|
|
33
|
+
readonly did: S.String;
|
|
34
|
+
readonly $type: S.String;
|
|
35
|
+
readonly avatar: S.String;
|
|
36
|
+
readonly handle: S.String;
|
|
37
|
+
readonly labels: S.$Array<S.Any>;
|
|
38
|
+
readonly viewer: S.Any;
|
|
39
|
+
readonly createdAt: S.String;
|
|
40
|
+
readonly associated: S.Union<readonly [S.Null, S.Any]>;
|
|
41
|
+
readonly displayName: S.String;
|
|
43
42
|
}>;
|
|
44
|
-
labels:
|
|
45
|
-
record: S.Struct<{
|
|
46
|
-
tags: S.Union<[
|
|
47
|
-
text:
|
|
48
|
-
$type:
|
|
49
|
-
embed:
|
|
50
|
-
langs: S.NullOr<S
|
|
51
|
-
reply: S.Union<[
|
|
52
|
-
facets: S.NullOr<S
|
|
53
|
-
labels: S.Union<[
|
|
54
|
-
entities: S.Union<[
|
|
55
|
-
createdAt:
|
|
43
|
+
readonly labels: S.Any;
|
|
44
|
+
readonly record: S.Struct<{
|
|
45
|
+
readonly tags: S.Union<readonly [S.Null, S.Any]>;
|
|
46
|
+
readonly text: S.String;
|
|
47
|
+
readonly $type: S.String;
|
|
48
|
+
readonly embed: S.Any;
|
|
49
|
+
readonly langs: S.NullOr<S.$Array<S.String>>;
|
|
50
|
+
readonly reply: S.Union<readonly [S.Null, S.Any]>;
|
|
51
|
+
readonly facets: S.NullOr<S.$Array<S.Any>>;
|
|
52
|
+
readonly labels: S.Union<readonly [S.Null, S.Any]>;
|
|
53
|
+
readonly entities: S.Union<readonly [S.Null, S.Any]>;
|
|
54
|
+
readonly createdAt: S.String;
|
|
56
55
|
}>;
|
|
57
|
-
viewer:
|
|
58
|
-
indexedAt:
|
|
59
|
-
likeCount:
|
|
60
|
-
quoteCount:
|
|
61
|
-
replyCount:
|
|
62
|
-
threadgate: S.Union<[
|
|
63
|
-
repostCount:
|
|
56
|
+
readonly viewer: S.Any;
|
|
57
|
+
readonly indexedAt: S.String;
|
|
58
|
+
readonly likeCount: S.Number;
|
|
59
|
+
readonly quoteCount: S.Number;
|
|
60
|
+
readonly replyCount: S.Number;
|
|
61
|
+
readonly threadgate: S.Union<readonly [S.Null, S.Unknown]>;
|
|
62
|
+
readonly repostCount: S.Number;
|
|
64
63
|
}>;
|
|
65
|
-
author:
|
|
66
|
-
created_at:
|
|
67
|
-
updated_at:
|
|
68
|
-
is_active:
|
|
69
|
-
sticky_type: S.
|
|
70
|
-
id:
|
|
64
|
+
readonly author: S.String;
|
|
65
|
+
readonly created_at: S.String;
|
|
66
|
+
readonly updated_at: S.String;
|
|
67
|
+
readonly is_active: S.Boolean;
|
|
68
|
+
readonly sticky_type: S.Literals<readonly ["pinned", "rotating"]>;
|
|
69
|
+
readonly id: S.Number;
|
|
71
70
|
}>>;
|
|
72
71
|
}>;
|
|
73
72
|
export type GetStickyPostsBody = typeof GetStickyPostsBody.Type;
|
|
74
73
|
export declare const StickyPostSuccess: S.Struct<{
|
|
75
|
-
message:
|
|
74
|
+
readonly message: S.String;
|
|
76
75
|
}>;
|
|
77
76
|
export type StickyPostSuccess = typeof StickyPostSuccess.Type;
|
|
78
77
|
//# sourceMappingURL=StickyPosts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StickyPosts.d.ts","sourceRoot":"","sources":["../../../src/schema/StickyPosts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"StickyPosts.d.ts","sourceRoot":"","sources":["../../../src/schema/StickyPosts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAC;AAGrC,eAAO,MAAM,iBAAiB,oBAAqB,CAAC;AACpD,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAC;AAE9D,eAAO,MAAM,gBAAgB;;EAE3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,IAAI,CAAC;AAE5D,eAAO,MAAM,UAAU,6CAAqC,CAAC;AAC7D,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,IAAI,CAAC;AAOhD,eAAO,MAAM,oBAAoB;;;;;;;;EAK/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAEpE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAC;AAEhE,eAAO,MAAM,iBAAiB;;EAE5B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAC"}
|