@atiproto/lexicons 0.5.2 → 0.6.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.
@@ -11,13 +11,7 @@ declare const main: l.Query<"com.atiproto.feed.subscription.get", l.ParamsSchema
11
11
  readonly format: "did";
12
12
  }>>;
13
13
  }>, l.Payload<"application/json", l.ObjectSchema<{
14
- uri: l.StringSchema<{
15
- readonly format: "at-uri";
16
- }>;
17
- cid: l.StringSchema<{
18
- readonly format: "cid";
19
- }>;
20
- record: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>;
14
+ subscription: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>;
21
15
  }>>, undefined>;
22
16
  export { main };
23
17
  export type $Params = l.InferMethodParams<typeof main>;
@@ -31,11 +25,5 @@ export declare const $lxm: "com.atiproto.feed.subscription.get", $params: l.Para
31
25
  readonly format: "did";
32
26
  }>>;
33
27
  }>, $output: l.Payload<"application/json", l.ObjectSchema<{
34
- uri: l.StringSchema<{
35
- readonly format: "at-uri";
36
- }>;
37
- cid: l.StringSchema<{
38
- readonly format: "cid";
39
- }>;
40
- record: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>;
28
+ subscription: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>;
41
29
  }>>;
@@ -4,7 +4,7 @@ declare const $nsid = "com.atiproto.feed.subscription.list";
4
4
  export { $nsid };
5
5
  /** List subscriptions for the authenticated user */
6
6
  declare const main: l.Query<"com.atiproto.feed.subscription.list", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
7
- subscriptions: l.ArraySchema<l.RefSchema<l.Validator<SubscriptionResponse, SubscriptionResponse>>>;
7
+ subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
8
8
  cursor: l.OptionalSchema<l.StringSchema<{
9
9
  readonly maxLength: 512;
10
10
  }>>;
@@ -14,19 +14,8 @@ export type $Params = l.InferMethodParams<typeof main>;
14
14
  export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
15
15
  export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
16
16
  export declare const $lxm: "com.atiproto.feed.subscription.list", $params: l.ParamsSchema<{}>, $output: l.Payload<"application/json", l.ObjectSchema<{
17
- subscriptions: l.ArraySchema<l.RefSchema<l.Validator<SubscriptionResponse, SubscriptionResponse>>>;
17
+ subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
18
18
  cursor: l.OptionalSchema<l.StringSchema<{
19
19
  readonly maxLength: 512;
20
20
  }>>;
21
21
  }>>;
22
- type SubscriptionResponse = {
23
- $type?: 'com.atiproto.feed.subscription.list#subscriptionResponse';
24
- /**
25
- * AT-URI of the subscription record
26
- */
27
- uri: l.AtUriString;
28
- record: AtiprotoSubscription.View;
29
- };
30
- export type { SubscriptionResponse };
31
- declare const subscriptionResponse: l.TypedObjectSchema<"com.atiproto.feed.subscription.list#subscriptionResponse", l.Validator<SubscriptionResponse, SubscriptionResponse>>;
32
- export { subscriptionResponse };
@@ -14,13 +14,7 @@ declare const main: l.Query<"com.atiproto.feed.tip.get", l.ParamsSchema<{
14
14
  readonly format: "at-uri";
15
15
  }>>;
16
16
  }>, l.Payload<"application/json", l.ObjectSchema<{
17
- uri: l.StringSchema<{
18
- readonly format: "at-uri";
19
- }>;
20
- cid: l.StringSchema<{
21
- readonly format: "cid";
22
- }>;
23
- value: l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>;
17
+ tip: l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>;
24
18
  }>>, undefined>;
25
19
  export { main };
26
20
  export type $Params = l.InferMethodParams<typeof main>;
@@ -37,11 +31,5 @@ export declare const $lxm: "com.atiproto.feed.tip.get", $params: l.ParamsSchema<
37
31
  readonly format: "at-uri";
38
32
  }>>;
39
33
  }>, $output: l.Payload<"application/json", l.ObjectSchema<{
40
- uri: l.StringSchema<{
41
- readonly format: "at-uri";
42
- }>;
43
- cid: l.StringSchema<{
44
- readonly format: "cid";
45
- }>;
46
- value: l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>;
34
+ tip: l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>;
47
35
  }>>;
@@ -4,7 +4,7 @@ declare const $nsid = "com.atiproto.feed.tip.list";
4
4
  export { $nsid };
5
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
- records: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
7
+ tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
8
8
  cursor: l.OptionalSchema<l.StringSchema<{
9
9
  readonly maxLength: 512;
10
10
  }>>;
@@ -14,7 +14,7 @@ export type $Params = l.InferMethodParams<typeof main>;
14
14
  export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
15
15
  export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
16
16
  export declare const $lxm: "com.atiproto.feed.tip.list", $params: l.ParamsSchema<{}>, $output: l.Payload<"application/json", l.ObjectSchema<{
17
- records: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
17
+ tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
18
18
  cursor: l.OptionalSchema<l.StringSchema<{
19
19
  readonly maxLength: 512;
20
20
  }>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atiproto/lexicons",
3
- "version": "0.5.2",
3
+ "version": "0.6.0",
4
4
  "description": "ATProto lexicon types and utilities",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",