@atiproto/lexicons 0.5.0 → 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.
@@ -134,6 +134,10 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
134
134
  /** View of a cart record for use in API responses */
135
135
  type View = {
136
136
  $type?: 'com.atiproto.cart#view';
137
+ /**
138
+ * AT-URI of the cart record
139
+ */
140
+ uri: l.AtUriString;
137
141
  items: CartItem[];
138
142
  /**
139
143
  * ISO 4217 currency code
@@ -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 URI */
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 URI */
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 for the authenticated user */
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<{
@@ -229,6 +229,10 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
229
229
  /** View of a user's profile settings for use in API responses */
230
230
  type View = {
231
231
  $type?: 'com.atiproto.profile#view';
232
+ /**
233
+ * AT-URI of the profile record
234
+ */
235
+ uri: l.AtUriString;
232
236
  /**
233
237
  * Whether user accepts tips (default: true)
234
238
  */
@@ -245,6 +245,10 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
245
245
  /** View of a subscription record for use in API responses */
246
246
  type View = {
247
247
  $type?: 'com.atiproto.subscription#view';
248
+ /**
249
+ * AT-URI of the subscription record
250
+ */
251
+ uri: l.AtUriString;
248
252
  /**
249
253
  * DID of the user being subscribed to
250
254
  */
@@ -271,6 +271,10 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
271
271
  /** View of a tip record for use in API responses */
272
272
  type View = {
273
273
  $type?: 'com.atiproto.tip#view';
274
+ /**
275
+ * AT-URI of the tip record
276
+ */
277
+ uri: l.AtUriString;
274
278
  /**
275
279
  * DID of the user receiving the tip
276
280
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atiproto/lexicons",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "ATProto lexicon types and utilities",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",