@atiproto/lexicons 0.5.1 → 0.5.2
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/index.js +39 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +39 -9
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons/com/atiproto/feed/subscription/get.defs.d.ts +11 -5
- package/dist/lexicons/com/atiproto/feed/tip/get.defs.d.ts +17 -5
- package/dist/lexicons/com/atiproto/feed/tip/list.defs.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2,11 +2,14 @@ import { l } from '@atproto/lex';
|
|
|
2
2
|
import * as AtiprotoSubscription from '../../subscription.defs.js';
|
|
3
3
|
declare const $nsid = "com.atiproto.feed.subscription.get";
|
|
4
4
|
export { $nsid };
|
|
5
|
-
/** Get a specific subscription by
|
|
5
|
+
/** Get a specific subscription sent by the authenticated user. Looks up by subscription record uri or subject (recipient) DID. These are mutually exclusive; uri takes precedence. */
|
|
6
6
|
declare const main: l.Query<"com.atiproto.feed.subscription.get", l.ParamsSchema<{
|
|
7
|
-
readonly uri: l.StringSchema<{
|
|
7
|
+
readonly uri: l.OptionalSchema<l.StringSchema<{
|
|
8
8
|
readonly format: "at-uri";
|
|
9
|
-
}
|
|
9
|
+
}>>;
|
|
10
|
+
readonly subject: l.OptionalSchema<l.StringSchema<{
|
|
11
|
+
readonly format: "did";
|
|
12
|
+
}>>;
|
|
10
13
|
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
11
14
|
uri: l.StringSchema<{
|
|
12
15
|
readonly format: "at-uri";
|
|
@@ -21,9 +24,12 @@ export type $Params = l.InferMethodParams<typeof main>;
|
|
|
21
24
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
22
25
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
23
26
|
export declare const $lxm: "com.atiproto.feed.subscription.get", $params: l.ParamsSchema<{
|
|
24
|
-
readonly uri: l.StringSchema<{
|
|
27
|
+
readonly uri: l.OptionalSchema<l.StringSchema<{
|
|
25
28
|
readonly format: "at-uri";
|
|
26
|
-
}
|
|
29
|
+
}>>;
|
|
30
|
+
readonly subject: l.OptionalSchema<l.StringSchema<{
|
|
31
|
+
readonly format: "did";
|
|
32
|
+
}>>;
|
|
27
33
|
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
28
34
|
uri: l.StringSchema<{
|
|
29
35
|
readonly format: "at-uri";
|
|
@@ -2,11 +2,17 @@ import { l } from '@atproto/lex';
|
|
|
2
2
|
import * as AtiprotoTip from '../../tip.defs.js';
|
|
3
3
|
declare const $nsid = "com.atiproto.feed.tip.get";
|
|
4
4
|
export { $nsid };
|
|
5
|
-
/** Get a specific tip by
|
|
5
|
+
/** Get a specific tip sent by the authenticated user. Looks up by tip record uri, subject (recipient) DID, or record uri. These are mutually exclusive and resolved in that order. */
|
|
6
6
|
declare const main: l.Query<"com.atiproto.feed.tip.get", l.ParamsSchema<{
|
|
7
|
-
readonly uri: l.StringSchema<{
|
|
7
|
+
readonly uri: l.OptionalSchema<l.StringSchema<{
|
|
8
8
|
readonly format: "at-uri";
|
|
9
|
-
}
|
|
9
|
+
}>>;
|
|
10
|
+
readonly subject: l.OptionalSchema<l.StringSchema<{
|
|
11
|
+
readonly format: "did";
|
|
12
|
+
}>>;
|
|
13
|
+
readonly recordUri: l.OptionalSchema<l.StringSchema<{
|
|
14
|
+
readonly format: "at-uri";
|
|
15
|
+
}>>;
|
|
10
16
|
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
11
17
|
uri: l.StringSchema<{
|
|
12
18
|
readonly format: "at-uri";
|
|
@@ -21,9 +27,15 @@ export type $Params = l.InferMethodParams<typeof main>;
|
|
|
21
27
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
22
28
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
23
29
|
export declare const $lxm: "com.atiproto.feed.tip.get", $params: l.ParamsSchema<{
|
|
24
|
-
readonly uri: l.StringSchema<{
|
|
30
|
+
readonly uri: l.OptionalSchema<l.StringSchema<{
|
|
25
31
|
readonly format: "at-uri";
|
|
26
|
-
}
|
|
32
|
+
}>>;
|
|
33
|
+
readonly subject: l.OptionalSchema<l.StringSchema<{
|
|
34
|
+
readonly format: "did";
|
|
35
|
+
}>>;
|
|
36
|
+
readonly recordUri: l.OptionalSchema<l.StringSchema<{
|
|
37
|
+
readonly format: "at-uri";
|
|
38
|
+
}>>;
|
|
27
39
|
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
28
40
|
uri: l.StringSchema<{
|
|
29
41
|
readonly format: "at-uri";
|
|
@@ -2,7 +2,7 @@ import { l } from '@atproto/lex';
|
|
|
2
2
|
import * as AtiprotoTip from '../../tip.defs.js';
|
|
3
3
|
declare const $nsid = "com.atiproto.feed.tip.list";
|
|
4
4
|
export { $nsid };
|
|
5
|
-
/** List tips
|
|
5
|
+
/** List tips sent by the authenticated user */
|
|
6
6
|
declare const main: l.Query<"com.atiproto.feed.tip.list", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
7
7
|
records: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
|
|
8
8
|
cursor: l.OptionalSchema<l.StringSchema<{
|