@atproto/api 0.6.7 → 0.6.9
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.js +8 -0
- package/dist/agent.d.ts +25 -44
- package/dist/bsky-agent.d.ts +24 -0
- package/dist/client/index.d.ts +14 -9
- package/dist/client/lexicons.d.ts +103 -100
- package/dist/client/types/app/bsky/actor/defs.d.ts +65 -74
- package/dist/client/types/app/bsky/actor/getFeedSuggestions.d.ts +21 -0
- package/dist/client/types/app/bsky/embed/external.d.ts +23 -23
- package/dist/client/types/app/bsky/embed/images.d.ts +20 -20
- package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts +20 -26
- package/dist/client/types/{com/atproto/sync/getCommitPath.d.ts → app/bsky/feed/getFeedSuggestions.d.ts} +5 -4
- package/dist/client/types/app/bsky/feed/getSuggestedFeeds.d.ts +21 -0
- package/dist/client/types/app/bsky/feed/like.d.ts +7 -7
- package/dist/client/types/app/bsky/feed/repost.d.ts +7 -7
- package/dist/client/types/app/bsky/graph/block.d.ts +6 -6
- package/dist/client/types/app/bsky/graph/defs.d.ts +36 -36
- package/dist/client/types/app/bsky/graph/follow.d.ts +6 -6
- package/dist/client/types/app/bsky/graph/listitem.d.ts +7 -7
- package/dist/client/types/app/bsky/richtext/facet.d.ts +22 -26
- package/dist/client/types/com/atproto/label/subscribeLabels.d.ts +12 -12
- package/dist/client/types/com/atproto/moderation/defs.d.ts +7 -16
- package/dist/client/types/com/atproto/repo/strongRef.d.ts +6 -6
- package/dist/client/types/com/atproto/server/defs.d.ts +16 -16
- package/dist/client/types/com/atproto/sync/getCheckout.d.ts +0 -1
- package/dist/client/types/com/atproto/{admin/rebaseRepo.d.ts → sync/getLatestCommit.d.ts} +7 -9
- package/dist/client/types/com/atproto/sync/getRepo.d.ts +1 -2
- package/dist/client/types/com/atproto/sync/listBlobs.d.ts +4 -2
- package/dist/client/types/com/atproto/sync/subscribeRepos.d.ts +48 -46
- package/dist/client/types/{app/bsky/unspecced/registerPushNotification.d.ts → com/atproto/temp/upgradeRepoVersion.d.ts} +7 -5
- package/dist/client/util.d.ts +2 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1651 -1277
- package/dist/index.js.map +4 -4
- package/dist/rich-text/detection.d.ts +4 -4
- package/dist/rich-text/rich-text.d.ts +31 -31
- package/dist/rich-text/sanitization.d.ts +4 -7
- package/dist/rich-text/unicode.d.ts +9 -9
- package/dist/types.d.ts +32 -34
- package/package.json +24 -23
- package/src/bsky-agent.ts +181 -1
- package/src/client/index.ts +49 -39
- package/src/client/lexicons.ts +123 -129
- package/src/client/types/{com/atproto/sync/getCommitPath.ts → app/bsky/feed/getSuggestedFeeds.ts} +5 -7
- package/src/client/types/com/atproto/sync/getCheckout.ts +0 -2
- package/src/client/types/com/atproto/{admin/rebaseRepo.ts → sync/getLatestCommit.ts} +12 -17
- package/src/client/types/com/atproto/sync/getRepo.ts +2 -4
- package/src/client/types/com/atproto/sync/listBlobs.ts +5 -4
- package/src/client/types/com/atproto/sync/subscribeRepos.ts +5 -1
- package/src/client/types/com/atproto/{repo/rebaseRepo.ts → temp/upgradeRepoVersion.ts} +2 -18
- package/src/index.ts +1 -1
- package/src/types.ts +20 -0
- package/tests/bsky-agent.test.ts +149 -0
- package/update-pkg.js +14 -0
- package/LICENSE +0 -21
- package/dist/client/types/com/atproto/repo/rebaseRepo.d.ts +0 -24
- package/tsconfig.build.tsbuildinfo +0 -1
|
@@ -1,88 +1,79 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
2
|
-
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
|
|
3
|
-
import * as AppBskyGraphDefs from '../graph/defs'
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs';
|
|
3
|
+
import * as AppBskyGraphDefs from '../graph/defs';
|
|
4
4
|
export interface ProfileViewBasic {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
did: string;
|
|
6
|
+
handle: string;
|
|
7
|
+
displayName?: string;
|
|
8
|
+
avatar?: string;
|
|
9
|
+
viewer?: ViewerState;
|
|
10
|
+
labels?: ComAtprotoLabelDefs.Label[];
|
|
11
|
+
[k: string]: unknown;
|
|
12
12
|
}
|
|
13
|
-
export declare function isProfileViewBasic(v: unknown): v is ProfileViewBasic
|
|
14
|
-
export declare function validateProfileViewBasic(v: unknown): ValidationResult
|
|
13
|
+
export declare function isProfileViewBasic(v: unknown): v is ProfileViewBasic;
|
|
14
|
+
export declare function validateProfileViewBasic(v: unknown): ValidationResult;
|
|
15
15
|
export interface ProfileView {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
did: string;
|
|
17
|
+
handle: string;
|
|
18
|
+
displayName?: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
avatar?: string;
|
|
21
|
+
indexedAt?: string;
|
|
22
|
+
viewer?: ViewerState;
|
|
23
|
+
labels?: ComAtprotoLabelDefs.Label[];
|
|
24
|
+
[k: string]: unknown;
|
|
25
25
|
}
|
|
26
|
-
export declare function isProfileView(v: unknown): v is ProfileView
|
|
27
|
-
export declare function validateProfileView(v: unknown): ValidationResult
|
|
26
|
+
export declare function isProfileView(v: unknown): v is ProfileView;
|
|
27
|
+
export declare function validateProfileView(v: unknown): ValidationResult;
|
|
28
28
|
export interface ProfileViewDetailed {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
29
|
+
did: string;
|
|
30
|
+
handle: string;
|
|
31
|
+
displayName?: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
avatar?: string;
|
|
34
|
+
banner?: string;
|
|
35
|
+
followersCount?: number;
|
|
36
|
+
followsCount?: number;
|
|
37
|
+
postsCount?: number;
|
|
38
|
+
indexedAt?: string;
|
|
39
|
+
viewer?: ViewerState;
|
|
40
|
+
labels?: ComAtprotoLabelDefs.Label[];
|
|
41
|
+
[k: string]: unknown;
|
|
42
42
|
}
|
|
43
|
-
export declare function isProfileViewDetailed(
|
|
44
|
-
|
|
45
|
-
): v is ProfileViewDetailed
|
|
46
|
-
export declare function validateProfileViewDetailed(
|
|
47
|
-
v: unknown,
|
|
48
|
-
): ValidationResult
|
|
43
|
+
export declare function isProfileViewDetailed(v: unknown): v is ProfileViewDetailed;
|
|
44
|
+
export declare function validateProfileViewDetailed(v: unknown): ValidationResult;
|
|
49
45
|
export interface ViewerState {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
46
|
+
muted?: boolean;
|
|
47
|
+
mutedByList?: AppBskyGraphDefs.ListViewBasic;
|
|
48
|
+
blockedBy?: boolean;
|
|
49
|
+
blocking?: string;
|
|
50
|
+
following?: string;
|
|
51
|
+
followedBy?: string;
|
|
52
|
+
[k: string]: unknown;
|
|
57
53
|
}
|
|
58
|
-
export declare function isViewerState(v: unknown): v is ViewerState
|
|
59
|
-
export declare function validateViewerState(v: unknown): ValidationResult
|
|
60
|
-
export declare type Preferences = (
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
| {
|
|
65
|
-
$type: string
|
|
66
|
-
[k: string]: unknown
|
|
67
|
-
}
|
|
68
|
-
)[]
|
|
54
|
+
export declare function isViewerState(v: unknown): v is ViewerState;
|
|
55
|
+
export declare function validateViewerState(v: unknown): ValidationResult;
|
|
56
|
+
export declare type Preferences = (AdultContentPref | ContentLabelPref | SavedFeedsPref | {
|
|
57
|
+
$type: string;
|
|
58
|
+
[k: string]: unknown;
|
|
59
|
+
})[];
|
|
69
60
|
export interface AdultContentPref {
|
|
70
|
-
|
|
71
|
-
|
|
61
|
+
enabled: boolean;
|
|
62
|
+
[k: string]: unknown;
|
|
72
63
|
}
|
|
73
|
-
export declare function isAdultContentPref(v: unknown): v is AdultContentPref
|
|
74
|
-
export declare function validateAdultContentPref(v: unknown): ValidationResult
|
|
64
|
+
export declare function isAdultContentPref(v: unknown): v is AdultContentPref;
|
|
65
|
+
export declare function validateAdultContentPref(v: unknown): ValidationResult;
|
|
75
66
|
export interface ContentLabelPref {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
67
|
+
label: string;
|
|
68
|
+
visibility: 'show' | 'warn' | 'hide' | (string & {});
|
|
69
|
+
[k: string]: unknown;
|
|
79
70
|
}
|
|
80
|
-
export declare function isContentLabelPref(v: unknown): v is ContentLabelPref
|
|
81
|
-
export declare function validateContentLabelPref(v: unknown): ValidationResult
|
|
71
|
+
export declare function isContentLabelPref(v: unknown): v is ContentLabelPref;
|
|
72
|
+
export declare function validateContentLabelPref(v: unknown): ValidationResult;
|
|
82
73
|
export interface SavedFeedsPref {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
74
|
+
pinned: string[];
|
|
75
|
+
saved: string[];
|
|
76
|
+
[k: string]: unknown;
|
|
86
77
|
}
|
|
87
|
-
export declare function isSavedFeedsPref(v: unknown): v is SavedFeedsPref
|
|
88
|
-
export declare function validateSavedFeedsPref(v: unknown): ValidationResult
|
|
78
|
+
export declare function isSavedFeedsPref(v: unknown): v is SavedFeedsPref;
|
|
79
|
+
export declare function validateSavedFeedsPref(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyFeedDefs from '../feed/defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
limit?: number;
|
|
5
|
+
cursor?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare type InputSchema = undefined;
|
|
8
|
+
export interface OutputSchema {
|
|
9
|
+
cursor?: string;
|
|
10
|
+
feeds: AppBskyFeedDefs.GeneratorView[];
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface CallOptions {
|
|
14
|
+
headers?: Headers;
|
|
15
|
+
}
|
|
16
|
+
export interface Response {
|
|
17
|
+
success: boolean;
|
|
18
|
+
headers: Headers;
|
|
19
|
+
data: OutputSchema;
|
|
20
|
+
}
|
|
21
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
1
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon';
|
|
2
2
|
export interface Main {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
external: External;
|
|
4
|
+
[k: string]: unknown;
|
|
5
5
|
}
|
|
6
|
-
export declare function isMain(v: unknown): v is Main
|
|
7
|
-
export declare function validateMain(v: unknown): ValidationResult
|
|
6
|
+
export declare function isMain(v: unknown): v is Main;
|
|
7
|
+
export declare function validateMain(v: unknown): ValidationResult;
|
|
8
8
|
export interface External {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
uri: string;
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
thumb?: BlobRef;
|
|
13
|
+
[k: string]: unknown;
|
|
14
14
|
}
|
|
15
|
-
export declare function isExternal(v: unknown): v is External
|
|
16
|
-
export declare function validateExternal(v: unknown): ValidationResult
|
|
15
|
+
export declare function isExternal(v: unknown): v is External;
|
|
16
|
+
export declare function validateExternal(v: unknown): ValidationResult;
|
|
17
17
|
export interface View {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
external: ViewExternal;
|
|
19
|
+
[k: string]: unknown;
|
|
20
20
|
}
|
|
21
|
-
export declare function isView(v: unknown): v is View
|
|
22
|
-
export declare function validateView(v: unknown): ValidationResult
|
|
21
|
+
export declare function isView(v: unknown): v is View;
|
|
22
|
+
export declare function validateView(v: unknown): ValidationResult;
|
|
23
23
|
export interface ViewExternal {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
uri: string;
|
|
25
|
+
title: string;
|
|
26
|
+
description: string;
|
|
27
|
+
thumb?: string;
|
|
28
|
+
[k: string]: unknown;
|
|
29
29
|
}
|
|
30
|
-
export declare function isViewExternal(v: unknown): v is ViewExternal
|
|
31
|
-
export declare function validateViewExternal(v: unknown): ValidationResult
|
|
30
|
+
export declare function isViewExternal(v: unknown): v is ViewExternal;
|
|
31
|
+
export declare function validateViewExternal(v: unknown): ValidationResult;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
1
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon';
|
|
2
2
|
export interface Main {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
images: Image[];
|
|
4
|
+
[k: string]: unknown;
|
|
5
5
|
}
|
|
6
|
-
export declare function isMain(v: unknown): v is Main
|
|
7
|
-
export declare function validateMain(v: unknown): ValidationResult
|
|
6
|
+
export declare function isMain(v: unknown): v is Main;
|
|
7
|
+
export declare function validateMain(v: unknown): ValidationResult;
|
|
8
8
|
export interface Image {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
image: BlobRef;
|
|
10
|
+
alt: string;
|
|
11
|
+
[k: string]: unknown;
|
|
12
12
|
}
|
|
13
|
-
export declare function isImage(v: unknown): v is Image
|
|
14
|
-
export declare function validateImage(v: unknown): ValidationResult
|
|
13
|
+
export declare function isImage(v: unknown): v is Image;
|
|
14
|
+
export declare function validateImage(v: unknown): ValidationResult;
|
|
15
15
|
export interface View {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
images: ViewImage[];
|
|
17
|
+
[k: string]: unknown;
|
|
18
18
|
}
|
|
19
|
-
export declare function isView(v: unknown): v is View
|
|
20
|
-
export declare function validateView(v: unknown): ValidationResult
|
|
19
|
+
export declare function isView(v: unknown): v is View;
|
|
20
|
+
export declare function validateView(v: unknown): ValidationResult;
|
|
21
21
|
export interface ViewImage {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
thumb: string;
|
|
23
|
+
fullsize: string;
|
|
24
|
+
alt: string;
|
|
25
|
+
[k: string]: unknown;
|
|
26
26
|
}
|
|
27
|
-
export declare function isViewImage(v: unknown): v is ViewImage
|
|
28
|
-
export declare function validateViewImage(v: unknown): ValidationResult
|
|
27
|
+
export declare function isViewImage(v: unknown): v is ViewImage;
|
|
28
|
+
export declare function validateViewImage(v: unknown): ValidationResult;
|
|
@@ -1,30 +1,24 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
2
|
-
import * as AppBskyEmbedRecord from './record'
|
|
3
|
-
import * as AppBskyEmbedImages from './images'
|
|
4
|
-
import * as AppBskyEmbedExternal from './external'
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as AppBskyEmbedRecord from './record';
|
|
3
|
+
import * as AppBskyEmbedImages from './images';
|
|
4
|
+
import * as AppBskyEmbedExternal from './external';
|
|
5
5
|
export interface Main {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
[k: string]: unknown
|
|
13
|
-
}
|
|
14
|
-
[k: string]: unknown
|
|
6
|
+
record: AppBskyEmbedRecord.Main;
|
|
7
|
+
media: AppBskyEmbedImages.Main | AppBskyEmbedExternal.Main | {
|
|
8
|
+
$type: string;
|
|
9
|
+
[k: string]: unknown;
|
|
10
|
+
};
|
|
11
|
+
[k: string]: unknown;
|
|
15
12
|
}
|
|
16
|
-
export declare function isMain(v: unknown): v is Main
|
|
17
|
-
export declare function validateMain(v: unknown): ValidationResult
|
|
13
|
+
export declare function isMain(v: unknown): v is Main;
|
|
14
|
+
export declare function validateMain(v: unknown): ValidationResult;
|
|
18
15
|
export interface View {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
[k: string]: unknown
|
|
26
|
-
}
|
|
27
|
-
[k: string]: unknown
|
|
16
|
+
record: AppBskyEmbedRecord.View;
|
|
17
|
+
media: AppBskyEmbedImages.View | AppBskyEmbedExternal.View | {
|
|
18
|
+
$type: string;
|
|
19
|
+
[k: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
[k: string]: unknown;
|
|
28
22
|
}
|
|
29
|
-
export declare function isView(v: unknown): v is View
|
|
30
|
-
export declare function validateView(v: unknown): ValidationResult
|
|
23
|
+
export declare function isView(v: unknown): v is View;
|
|
24
|
+
export declare function validateView(v: unknown): ValidationResult;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyFeedDefs from './defs';
|
|
2
3
|
export interface QueryParams {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
earliest?: string;
|
|
4
|
+
limit?: number;
|
|
5
|
+
cursor?: string;
|
|
6
6
|
}
|
|
7
7
|
export declare type InputSchema = undefined;
|
|
8
8
|
export interface OutputSchema {
|
|
9
|
-
|
|
9
|
+
cursor?: string;
|
|
10
|
+
feeds: AppBskyFeedDefs.GeneratorView[];
|
|
10
11
|
[k: string]: unknown;
|
|
11
12
|
}
|
|
12
13
|
export interface CallOptions {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyFeedDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
limit?: number;
|
|
5
|
+
cursor?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare type InputSchema = undefined;
|
|
8
|
+
export interface OutputSchema {
|
|
9
|
+
cursor?: string;
|
|
10
|
+
feeds: AppBskyFeedDefs.GeneratorView[];
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface CallOptions {
|
|
14
|
+
headers?: Headers;
|
|
15
|
+
}
|
|
16
|
+
export interface Response {
|
|
17
|
+
success: boolean;
|
|
18
|
+
headers: Headers;
|
|
19
|
+
data: OutputSchema;
|
|
20
|
+
}
|
|
21
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
2
|
-
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
3
3
|
export interface Record {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
subject: ComAtprotoRepoStrongRef.Main;
|
|
5
|
+
createdAt: string;
|
|
6
|
+
[k: string]: unknown;
|
|
7
7
|
}
|
|
8
|
-
export declare function isRecord(v: unknown): v is Record
|
|
9
|
-
export declare function validateRecord(v: unknown): ValidationResult
|
|
8
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
9
|
+
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
2
|
-
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
3
3
|
export interface Record {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
subject: ComAtprotoRepoStrongRef.Main;
|
|
5
|
+
createdAt: string;
|
|
6
|
+
[k: string]: unknown;
|
|
7
7
|
}
|
|
8
|
-
export declare function isRecord(v: unknown): v is Record
|
|
9
|
-
export declare function validateRecord(v: unknown): ValidationResult
|
|
8
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
9
|
+
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
2
|
export interface Record {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
subject: string;
|
|
4
|
+
createdAt: string;
|
|
5
|
+
[k: string]: unknown;
|
|
6
6
|
}
|
|
7
|
-
export declare function isRecord(v: unknown): v is Record
|
|
8
|
-
export declare function validateRecord(v: unknown): ValidationResult
|
|
7
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
8
|
+
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
2
|
-
import * as AppBskyActorDefs from '../actor/defs'
|
|
3
|
-
import * as AppBskyRichtextFacet from '../richtext/facet'
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as AppBskyActorDefs from '../actor/defs';
|
|
3
|
+
import * as AppBskyRichtextFacet from '../richtext/facet';
|
|
4
4
|
export interface ListViewBasic {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
uri: string;
|
|
6
|
+
cid: string;
|
|
7
|
+
name: string;
|
|
8
|
+
purpose: ListPurpose;
|
|
9
|
+
avatar?: string;
|
|
10
|
+
viewer?: ListViewerState;
|
|
11
|
+
indexedAt?: string;
|
|
12
|
+
[k: string]: unknown;
|
|
13
13
|
}
|
|
14
|
-
export declare function isListViewBasic(v: unknown): v is ListViewBasic
|
|
15
|
-
export declare function validateListViewBasic(v: unknown): ValidationResult
|
|
14
|
+
export declare function isListViewBasic(v: unknown): v is ListViewBasic;
|
|
15
|
+
export declare function validateListViewBasic(v: unknown): ValidationResult;
|
|
16
16
|
export interface ListView {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
uri: string;
|
|
18
|
+
cid: string;
|
|
19
|
+
creator: AppBskyActorDefs.ProfileView;
|
|
20
|
+
name: string;
|
|
21
|
+
purpose: ListPurpose;
|
|
22
|
+
description?: string;
|
|
23
|
+
descriptionFacets?: AppBskyRichtextFacet.Main[];
|
|
24
|
+
avatar?: string;
|
|
25
|
+
viewer?: ListViewerState;
|
|
26
|
+
indexedAt: string;
|
|
27
|
+
[k: string]: unknown;
|
|
28
28
|
}
|
|
29
|
-
export declare function isListView(v: unknown): v is ListView
|
|
30
|
-
export declare function validateListView(v: unknown): ValidationResult
|
|
29
|
+
export declare function isListView(v: unknown): v is ListView;
|
|
30
|
+
export declare function validateListView(v: unknown): ValidationResult;
|
|
31
31
|
export interface ListItemView {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
subject: AppBskyActorDefs.ProfileView;
|
|
33
|
+
[k: string]: unknown;
|
|
34
34
|
}
|
|
35
|
-
export declare function isListItemView(v: unknown): v is ListItemView
|
|
36
|
-
export declare function validateListItemView(v: unknown): ValidationResult
|
|
37
|
-
export declare type ListPurpose = 'app.bsky.graph.defs#modlist' | (string & {})
|
|
38
|
-
export declare const MODLIST =
|
|
35
|
+
export declare function isListItemView(v: unknown): v is ListItemView;
|
|
36
|
+
export declare function validateListItemView(v: unknown): ValidationResult;
|
|
37
|
+
export declare type ListPurpose = 'app.bsky.graph.defs#modlist' | (string & {});
|
|
38
|
+
export declare const MODLIST = "app.bsky.graph.defs#modlist";
|
|
39
39
|
export interface ListViewerState {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
muted?: boolean;
|
|
41
|
+
[k: string]: unknown;
|
|
42
42
|
}
|
|
43
|
-
export declare function isListViewerState(v: unknown): v is ListViewerState
|
|
44
|
-
export declare function validateListViewerState(v: unknown): ValidationResult
|
|
43
|
+
export declare function isListViewerState(v: unknown): v is ListViewerState;
|
|
44
|
+
export declare function validateListViewerState(v: unknown): ValidationResult;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
2
|
export interface Record {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
subject: string;
|
|
4
|
+
createdAt: string;
|
|
5
|
+
[k: string]: unknown;
|
|
6
6
|
}
|
|
7
|
-
export declare function isRecord(v: unknown): v is Record
|
|
8
|
-
export declare function validateRecord(v: unknown): ValidationResult
|
|
7
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
8
|
+
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
2
|
export interface Record {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
subject: string;
|
|
4
|
+
list: string;
|
|
5
|
+
createdAt: string;
|
|
6
|
+
[k: string]: unknown;
|
|
7
7
|
}
|
|
8
|
-
export declare function isRecord(v: unknown): v is Record
|
|
9
|
-
export declare function validateRecord(v: unknown): ValidationResult
|
|
8
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
9
|
+
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1,34 +1,30 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
2
|
export interface Main {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[k: string]: unknown
|
|
10
|
-
}
|
|
11
|
-
)[]
|
|
12
|
-
[k: string]: unknown
|
|
3
|
+
index: ByteSlice;
|
|
4
|
+
features: (Mention | Link | {
|
|
5
|
+
$type: string;
|
|
6
|
+
[k: string]: unknown;
|
|
7
|
+
})[];
|
|
8
|
+
[k: string]: unknown;
|
|
13
9
|
}
|
|
14
|
-
export declare function isMain(v: unknown): v is Main
|
|
15
|
-
export declare function validateMain(v: unknown): ValidationResult
|
|
10
|
+
export declare function isMain(v: unknown): v is Main;
|
|
11
|
+
export declare function validateMain(v: unknown): ValidationResult;
|
|
16
12
|
export interface Mention {
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
did: string;
|
|
14
|
+
[k: string]: unknown;
|
|
19
15
|
}
|
|
20
|
-
export declare function isMention(v: unknown): v is Mention
|
|
21
|
-
export declare function validateMention(v: unknown): ValidationResult
|
|
16
|
+
export declare function isMention(v: unknown): v is Mention;
|
|
17
|
+
export declare function validateMention(v: unknown): ValidationResult;
|
|
22
18
|
export interface Link {
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
uri: string;
|
|
20
|
+
[k: string]: unknown;
|
|
25
21
|
}
|
|
26
|
-
export declare function isLink(v: unknown): v is Link
|
|
27
|
-
export declare function validateLink(v: unknown): ValidationResult
|
|
22
|
+
export declare function isLink(v: unknown): v is Link;
|
|
23
|
+
export declare function validateLink(v: unknown): ValidationResult;
|
|
28
24
|
export interface ByteSlice {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
byteStart: number;
|
|
26
|
+
byteEnd: number;
|
|
27
|
+
[k: string]: unknown;
|
|
32
28
|
}
|
|
33
|
-
export declare function isByteSlice(v: unknown): v is ByteSlice
|
|
34
|
-
export declare function validateByteSlice(v: unknown): ValidationResult
|
|
29
|
+
export declare function isByteSlice(v: unknown): v is ByteSlice;
|
|
30
|
+
export declare function validateByteSlice(v: unknown): ValidationResult;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
2
|
-
import * as ComAtprotoLabelDefs from './defs'
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as ComAtprotoLabelDefs from './defs';
|
|
3
3
|
export interface Labels {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
seq: number;
|
|
5
|
+
labels: ComAtprotoLabelDefs.Label[];
|
|
6
|
+
[k: string]: unknown;
|
|
7
7
|
}
|
|
8
|
-
export declare function isLabels(v: unknown): v is Labels
|
|
9
|
-
export declare function validateLabels(v: unknown): ValidationResult
|
|
8
|
+
export declare function isLabels(v: unknown): v is Labels;
|
|
9
|
+
export declare function validateLabels(v: unknown): ValidationResult;
|
|
10
10
|
export interface Info {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
name: 'OutdatedCursor' | (string & {});
|
|
12
|
+
message?: string;
|
|
13
|
+
[k: string]: unknown;
|
|
14
14
|
}
|
|
15
|
-
export declare function isInfo(v: unknown): v is Info
|
|
16
|
-
export declare function validateInfo(v: unknown): ValidationResult
|
|
15
|
+
export declare function isInfo(v: unknown): v is Info;
|
|
16
|
+
export declare function validateInfo(v: unknown): ValidationResult;
|