@atproto/api 0.2.0 → 0.2.1
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/client/lexicons.d.ts +7 -0
- package/dist/client/types/app/bsky/actor/updateProfile.d.ts +10 -3
- package/dist/client/types/app/bsky/embed/complexRecord.d.ts +24 -0
- package/dist/client/types/app/bsky/embed/post.d.ts +33 -0
- package/dist/index.js +14 -7
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/src/client/lexicons.ts +14 -7
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/client/types/app/bsky/actor/createScene.d.ts +0 -32
- package/dist/client/types/app/bsky/feed/repost.d.ts +0 -9
- package/dist/client/types/app/bsky/feed/trend.d.ts +0 -9
- package/dist/client/types/app/bsky/graph/getAssertions.d.ts +0 -48
- package/dist/client/types/app/bsky/graph/getMembers.d.ts +0 -36
- package/dist/client/types/app/bsky/graph/getMemberships.d.ts +0 -36
- package/dist/client/types/app/bsky/notification/updateSeen.d.ts +0 -17
- package/dist/client/types/app/bsky/system/actorScene.d.ts +0 -1
- package/dist/client/types/com/atproto/repo/strongRef.d.ts +0 -8
- package/dist/client/types/com/atproto/sync/getCheckout.d.ts +0 -15
- package/dist/client/types/com/atproto/sync/getCommitPath.d.ts +0 -20
- package/dist/client/types/com/atproto/sync/getHead.d.ts +0 -18
- package/dist/client/types/com/atproto/sync/getRecord.d.ts +0 -17
- package/dist/client/types/com/atproto/sync/getRoot.d.ts +0 -18
- package/dist/client/types/com/atproto/sync/updateRepo.d.ts +0 -15
- package/dist/client/util.d.ts +0 -2
- package/dist/helpers/bsky.d.ts +0 -20
- package/dist/mixins/bsky.d.ts +0 -23
- package/dist/rich-text/sanitize.d.ts +0 -4
|
@@ -2334,6 +2334,7 @@ export declare const schemaDict: {
|
|
|
2334
2334
|
};
|
|
2335
2335
|
displayName: {
|
|
2336
2336
|
type: string;
|
|
2337
|
+
maxGraphemes: number;
|
|
2337
2338
|
maxLength: number;
|
|
2338
2339
|
};
|
|
2339
2340
|
avatar: {
|
|
@@ -2359,10 +2360,12 @@ export declare const schemaDict: {
|
|
|
2359
2360
|
};
|
|
2360
2361
|
displayName: {
|
|
2361
2362
|
type: string;
|
|
2363
|
+
maxGraphemes: number;
|
|
2362
2364
|
maxLength: number;
|
|
2363
2365
|
};
|
|
2364
2366
|
description: {
|
|
2365
2367
|
type: string;
|
|
2368
|
+
maxGraphemes: number;
|
|
2366
2369
|
maxLength: number;
|
|
2367
2370
|
};
|
|
2368
2371
|
avatar: {
|
|
@@ -2392,10 +2395,12 @@ export declare const schemaDict: {
|
|
|
2392
2395
|
};
|
|
2393
2396
|
displayName: {
|
|
2394
2397
|
type: string;
|
|
2398
|
+
maxGraphemes: number;
|
|
2395
2399
|
maxLength: number;
|
|
2396
2400
|
};
|
|
2397
2401
|
description: {
|
|
2398
2402
|
type: string;
|
|
2403
|
+
maxGraphemes: number;
|
|
2399
2404
|
maxLength: number;
|
|
2400
2405
|
};
|
|
2401
2406
|
avatar: {
|
|
@@ -2561,10 +2566,12 @@ export declare const schemaDict: {
|
|
|
2561
2566
|
properties: {
|
|
2562
2567
|
displayName: {
|
|
2563
2568
|
type: string;
|
|
2569
|
+
maxGraphemes: number;
|
|
2564
2570
|
maxLength: number;
|
|
2565
2571
|
};
|
|
2566
2572
|
description: {
|
|
2567
2573
|
type: string;
|
|
2574
|
+
maxGraphemes: number;
|
|
2568
2575
|
maxLength: number;
|
|
2569
2576
|
};
|
|
2570
2577
|
avatar: {
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
-
import { BlobRef } from '@atproto/lexicon';
|
|
3
2
|
export interface QueryParams {
|
|
4
3
|
}
|
|
5
4
|
export interface InputSchema {
|
|
6
5
|
displayName?: string;
|
|
7
6
|
description?: string | null;
|
|
8
|
-
avatar?:
|
|
9
|
-
|
|
7
|
+
avatar?: {
|
|
8
|
+
cid: string;
|
|
9
|
+
mimeType: string;
|
|
10
|
+
[k: string]: unknown;
|
|
11
|
+
} | null;
|
|
12
|
+
banner?: {
|
|
13
|
+
cid: string;
|
|
14
|
+
mimeType: string;
|
|
15
|
+
[k: string]: unknown;
|
|
16
|
+
} | null;
|
|
10
17
|
[k: string]: unknown;
|
|
11
18
|
}
|
|
12
19
|
export interface OutputSchema {
|
|
@@ -0,0 +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';
|
|
5
|
+
export interface Main {
|
|
6
|
+
record: AppBskyEmbedRecord.Main;
|
|
7
|
+
media: AppBskyEmbedImages.Main | AppBskyEmbedExternal.Main | {
|
|
8
|
+
$type: string;
|
|
9
|
+
[k: string]: unknown;
|
|
10
|
+
};
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
export declare function isMain(v: unknown): v is Main;
|
|
14
|
+
export declare function validateMain(v: unknown): ValidationResult;
|
|
15
|
+
export interface View {
|
|
16
|
+
record: AppBskyEmbedRecord.View;
|
|
17
|
+
media: AppBskyEmbedImages.View | AppBskyEmbedExternal.View | {
|
|
18
|
+
$type: string;
|
|
19
|
+
[k: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
[k: string]: unknown;
|
|
22
|
+
}
|
|
23
|
+
export declare function isView(v: unknown): v is View;
|
|
24
|
+
export declare function validateView(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
3
|
+
import * as AppBskyActorRef from '../actor/ref';
|
|
4
|
+
export interface Main {
|
|
5
|
+
post: ComAtprotoRepoStrongRef.Main;
|
|
6
|
+
[k: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export declare function isMain(v: unknown): v is Main;
|
|
9
|
+
export declare function validateMain(v: unknown): ValidationResult;
|
|
10
|
+
export interface Presented {
|
|
11
|
+
post: PresentedPost | PresentedNotFound | {
|
|
12
|
+
$type: string;
|
|
13
|
+
[k: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
[k: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
export declare function isPresented(v: unknown): v is Presented;
|
|
18
|
+
export declare function validatePresented(v: unknown): ValidationResult;
|
|
19
|
+
export interface PresentedPost {
|
|
20
|
+
uri: string;
|
|
21
|
+
cid: string;
|
|
22
|
+
author: AppBskyActorRef.WithInfo;
|
|
23
|
+
record: {};
|
|
24
|
+
[k: string]: unknown;
|
|
25
|
+
}
|
|
26
|
+
export declare function isPresentedPost(v: unknown): v is PresentedPost;
|
|
27
|
+
export declare function validatePresentedPost(v: unknown): ValidationResult;
|
|
28
|
+
export interface PresentedNotFound {
|
|
29
|
+
uri: string;
|
|
30
|
+
[k: string]: unknown;
|
|
31
|
+
}
|
|
32
|
+
export declare function isPresentedNotFound(v: unknown): v is PresentedNotFound;
|
|
33
|
+
export declare function validatePresentedNotFound(v: unknown): ValidationResult;
|
package/dist/index.js
CHANGED
|
@@ -9594,7 +9594,8 @@ var schemaDict = {
|
|
|
9594
9594
|
},
|
|
9595
9595
|
displayName: {
|
|
9596
9596
|
type: "string",
|
|
9597
|
-
|
|
9597
|
+
maxGraphemes: 64,
|
|
9598
|
+
maxLength: 640
|
|
9598
9599
|
},
|
|
9599
9600
|
avatar: {
|
|
9600
9601
|
type: "string"
|
|
@@ -9619,11 +9620,13 @@ var schemaDict = {
|
|
|
9619
9620
|
},
|
|
9620
9621
|
displayName: {
|
|
9621
9622
|
type: "string",
|
|
9622
|
-
|
|
9623
|
+
maxGraphemes: 64,
|
|
9624
|
+
maxLength: 640
|
|
9623
9625
|
},
|
|
9624
9626
|
description: {
|
|
9625
9627
|
type: "string",
|
|
9626
|
-
|
|
9628
|
+
maxGraphemes: 256,
|
|
9629
|
+
maxLength: 2560
|
|
9627
9630
|
},
|
|
9628
9631
|
avatar: {
|
|
9629
9632
|
type: "string"
|
|
@@ -9652,11 +9655,13 @@ var schemaDict = {
|
|
|
9652
9655
|
},
|
|
9653
9656
|
displayName: {
|
|
9654
9657
|
type: "string",
|
|
9655
|
-
|
|
9658
|
+
maxGraphemes: 64,
|
|
9659
|
+
maxLength: 640
|
|
9656
9660
|
},
|
|
9657
9661
|
description: {
|
|
9658
9662
|
type: "string",
|
|
9659
|
-
|
|
9663
|
+
maxGraphemes: 256,
|
|
9664
|
+
maxLength: 2560
|
|
9660
9665
|
},
|
|
9661
9666
|
avatar: {
|
|
9662
9667
|
type: "string"
|
|
@@ -9821,11 +9826,13 @@ var schemaDict = {
|
|
|
9821
9826
|
properties: {
|
|
9822
9827
|
displayName: {
|
|
9823
9828
|
type: "string",
|
|
9824
|
-
|
|
9829
|
+
maxGraphemes: 64,
|
|
9830
|
+
maxLength: 640
|
|
9825
9831
|
},
|
|
9826
9832
|
description: {
|
|
9827
9833
|
type: "string",
|
|
9828
|
-
|
|
9834
|
+
maxGraphemes: 256,
|
|
9835
|
+
maxLength: 2560
|
|
9829
9836
|
},
|
|
9830
9837
|
avatar: {
|
|
9831
9838
|
type: "blob",
|