@atiproto/lexicons 0.5.3 → 0.7.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/dist/index.js +99 -88
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +99 -88
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons/com/atiproto/account/cart/list.defs.d.ts +14 -2
- package/dist/lexicons/com/atiproto/feed/list.defs.d.ts +12 -2
- package/dist/lexicons/com/atiproto/feed/subscription/list.defs.d.ts +12 -2
- package/dist/lexicons/com/atiproto/feed/tip/list.defs.d.ts +24 -2
- package/package.json +1 -1
|
@@ -3,7 +3,13 @@ import * as AtiprotoCart from '../../cart.defs.js';
|
|
|
3
3
|
declare const $nsid = "com.atiproto.account.cart.list";
|
|
4
4
|
export { $nsid };
|
|
5
5
|
/** List carts for the authenticated user */
|
|
6
|
-
declare const main: l.Query<"com.atiproto.account.cart.list", l.ParamsSchema<{
|
|
6
|
+
declare const main: l.Query<"com.atiproto.account.cart.list", l.ParamsSchema<{
|
|
7
|
+
readonly status: l.OptionalSchema<l.EnumSchema<"open" | "completed" | "expired" | "abandoned">>;
|
|
8
|
+
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
9
|
+
readonly maxLength: 512;
|
|
10
|
+
}>>;
|
|
11
|
+
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
12
|
+
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
7
13
|
carts: l.ArraySchema<l.RefSchema<l.Validator<CartResponse, CartResponse>>>;
|
|
8
14
|
cursor: l.OptionalSchema<l.StringSchema<{
|
|
9
15
|
readonly maxLength: 512;
|
|
@@ -13,7 +19,13 @@ export { main };
|
|
|
13
19
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
14
20
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
15
21
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
16
|
-
export declare const $lxm: "com.atiproto.account.cart.list", $params: l.ParamsSchema<{
|
|
22
|
+
export declare const $lxm: "com.atiproto.account.cart.list", $params: l.ParamsSchema<{
|
|
23
|
+
readonly status: l.OptionalSchema<l.EnumSchema<"open" | "completed" | "expired" | "abandoned">>;
|
|
24
|
+
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
25
|
+
readonly maxLength: 512;
|
|
26
|
+
}>>;
|
|
27
|
+
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
28
|
+
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
17
29
|
carts: l.ArraySchema<l.RefSchema<l.Validator<CartResponse, CartResponse>>>;
|
|
18
30
|
cursor: l.OptionalSchema<l.StringSchema<{
|
|
19
31
|
readonly maxLength: 512;
|
|
@@ -4,7 +4,12 @@ import * as AtiprotoSubscription from '../subscription.defs.js';
|
|
|
4
4
|
declare const $nsid = "com.atiproto.feed.list";
|
|
5
5
|
export { $nsid };
|
|
6
6
|
/** List tips and subscriptions for the authenticated user. Always returns tips given by the user and subscriptions the user has created. */
|
|
7
|
-
declare const main: l.Query<"com.atiproto.feed.list", l.ParamsSchema<{
|
|
7
|
+
declare const main: l.Query<"com.atiproto.feed.list", l.ParamsSchema<{
|
|
8
|
+
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
9
|
+
readonly maxLength: 512;
|
|
10
|
+
}>>;
|
|
11
|
+
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
12
|
+
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
8
13
|
items: l.ArraySchema<l.TypedUnionSchema<readonly [l.TypedRefSchema<l.TypedObjectValidator<AtiprotoTip.Main, AtiprotoTip.Main>>, l.TypedRefSchema<l.TypedObjectValidator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>], false>>;
|
|
9
14
|
cursor: l.OptionalSchema<l.StringSchema<{
|
|
10
15
|
readonly maxLength: 512;
|
|
@@ -14,7 +19,12 @@ export { main };
|
|
|
14
19
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
15
20
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
16
21
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
17
|
-
export declare const $lxm: "com.atiproto.feed.list", $params: l.ParamsSchema<{
|
|
22
|
+
export declare const $lxm: "com.atiproto.feed.list", $params: l.ParamsSchema<{
|
|
23
|
+
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
24
|
+
readonly maxLength: 512;
|
|
25
|
+
}>>;
|
|
26
|
+
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
27
|
+
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
18
28
|
items: l.ArraySchema<l.TypedUnionSchema<readonly [l.TypedRefSchema<l.TypedObjectValidator<AtiprotoTip.Main, AtiprotoTip.Main>>, l.TypedRefSchema<l.TypedObjectValidator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>], false>>;
|
|
19
29
|
cursor: l.OptionalSchema<l.StringSchema<{
|
|
20
30
|
readonly maxLength: 512;
|
|
@@ -3,7 +3,12 @@ import * as AtiprotoSubscription from '../../subscription.defs.js';
|
|
|
3
3
|
declare const $nsid = "com.atiproto.feed.subscription.list";
|
|
4
4
|
export { $nsid };
|
|
5
5
|
/** List subscriptions for the authenticated user */
|
|
6
|
-
declare const main: l.Query<"com.atiproto.feed.subscription.list", l.ParamsSchema<{
|
|
6
|
+
declare const main: l.Query<"com.atiproto.feed.subscription.list", l.ParamsSchema<{
|
|
7
|
+
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
8
|
+
readonly maxLength: 512;
|
|
9
|
+
}>>;
|
|
10
|
+
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
11
|
+
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
7
12
|
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
|
|
8
13
|
cursor: l.OptionalSchema<l.StringSchema<{
|
|
9
14
|
readonly maxLength: 512;
|
|
@@ -13,7 +18,12 @@ export { main };
|
|
|
13
18
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
14
19
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
15
20
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
16
|
-
export declare const $lxm: "com.atiproto.feed.subscription.list", $params: l.ParamsSchema<{
|
|
21
|
+
export declare const $lxm: "com.atiproto.feed.subscription.list", $params: l.ParamsSchema<{
|
|
22
|
+
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
23
|
+
readonly maxLength: 512;
|
|
24
|
+
}>>;
|
|
25
|
+
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
26
|
+
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
17
27
|
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
|
|
18
28
|
cursor: l.OptionalSchema<l.StringSchema<{
|
|
19
29
|
readonly maxLength: 512;
|
|
@@ -3,7 +3,18 @@ import * as AtiprotoTip from '../../tip.defs.js';
|
|
|
3
3
|
declare const $nsid = "com.atiproto.feed.tip.list";
|
|
4
4
|
export { $nsid };
|
|
5
5
|
/** List tips sent by the authenticated user */
|
|
6
|
-
declare const main: l.Query<"com.atiproto.feed.tip.list", l.ParamsSchema<{
|
|
6
|
+
declare const main: l.Query<"com.atiproto.feed.tip.list", l.ParamsSchema<{
|
|
7
|
+
readonly subject: l.OptionalSchema<l.StringSchema<{
|
|
8
|
+
readonly format: "did";
|
|
9
|
+
}>>;
|
|
10
|
+
readonly recordUri: l.OptionalSchema<l.StringSchema<{
|
|
11
|
+
readonly format: "at-uri";
|
|
12
|
+
}>>;
|
|
13
|
+
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
14
|
+
readonly maxLength: 512;
|
|
15
|
+
}>>;
|
|
16
|
+
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
17
|
+
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
7
18
|
tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
|
|
8
19
|
cursor: l.OptionalSchema<l.StringSchema<{
|
|
9
20
|
readonly maxLength: 512;
|
|
@@ -13,7 +24,18 @@ export { main };
|
|
|
13
24
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
14
25
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
15
26
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
16
|
-
export declare const $lxm: "com.atiproto.feed.tip.list", $params: l.ParamsSchema<{
|
|
27
|
+
export declare const $lxm: "com.atiproto.feed.tip.list", $params: l.ParamsSchema<{
|
|
28
|
+
readonly subject: l.OptionalSchema<l.StringSchema<{
|
|
29
|
+
readonly format: "did";
|
|
30
|
+
}>>;
|
|
31
|
+
readonly recordUri: l.OptionalSchema<l.StringSchema<{
|
|
32
|
+
readonly format: "at-uri";
|
|
33
|
+
}>>;
|
|
34
|
+
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
35
|
+
readonly maxLength: 512;
|
|
36
|
+
}>>;
|
|
37
|
+
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
38
|
+
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
17
39
|
tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
|
|
18
40
|
cursor: l.OptionalSchema<l.StringSchema<{
|
|
19
41
|
readonly maxLength: 512;
|